configure 362 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.53.
  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. # Find the correct PATH separator. Usually this is `:', but
  10. # DJGPP uses `;' like DOS.
  11. if test "X${PATH_SEPARATOR+set}" != Xset; then
  12. UNAME=${UNAME-`uname 2>/dev/null`}
  13. case X$UNAME in
  14. *-DOS) lt_cv_sys_path_separator=';' ;;
  15. *) lt_cv_sys_path_separator=':' ;;
  16. esac
  17. PATH_SEPARATOR=$lt_cv_sys_path_separator
  18. fi
  19. # Check that we are running under the correct shell.
  20. SHELL=${CONFIG_SHELL-/bin/sh}
  21. case X$ECHO in
  22. X*--fallback-echo)
  23. # Remove one level of quotation (which was required for Make).
  24. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  25. ;;
  26. esac
  27. echo=${ECHO-echo}
  28. if test "X$1" = X--no-reexec; then
  29. # Discard the --no-reexec flag, and continue.
  30. shift
  31. elif test "X$1" = X--fallback-echo; then
  32. # Avoid inline document here, it may be left over
  33. :
  34. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  35. # Yippee, $echo works!
  36. :
  37. else
  38. # Restart under the correct shell.
  39. exec $SHELL "$0" --no-reexec ${1+"$@"}
  40. fi
  41. if test "X$1" = X--fallback-echo; then
  42. # used as fallback echo
  43. shift
  44. cat <<EOF
  45. EOF
  46. exit 0
  47. fi
  48. # The HP-UX ksh and POSIX shell print the target directory to stdout
  49. # if CDPATH is set.
  50. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  51. if test -z "$ECHO"; then
  52. if test "X${echo_test_string+set}" != Xset; then
  53. # find a string as large as possible, as long as the shell can cope with it
  54. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  55. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  56. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  57. echo_test_string="`eval $cmd`" &&
  58. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  59. then
  60. break
  61. fi
  62. done
  63. fi
  64. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  65. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  66. test "X$echo_testing_string" = "X$echo_test_string"; then
  67. :
  68. else
  69. # The Solaris, AIX, and Digital Unix default echo programs unquote
  70. # backslashes. This makes it impossible to quote backslashes using
  71. # echo "$something" | sed 's/\\/\\\\/g'
  72. #
  73. # So, first we look for a working echo in the user's PATH.
  74. IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  75. for dir in $PATH /usr/ucb; do
  76. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  77. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  78. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  79. test "X$echo_testing_string" = "X$echo_test_string"; then
  80. echo="$dir/echo"
  81. break
  82. fi
  83. done
  84. IFS="$save_ifs"
  85. if test "X$echo" = Xecho; then
  86. # We didn't find a better echo, so look for alternatives.
  87. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  88. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  89. test "X$echo_testing_string" = "X$echo_test_string"; then
  90. # This shell has a builtin print -r that does the trick.
  91. echo='print -r'
  92. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  93. test "X$CONFIG_SHELL" != X/bin/ksh; then
  94. # If we have ksh, try running configure again with it.
  95. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  96. export ORIGINAL_CONFIG_SHELL
  97. CONFIG_SHELL=/bin/ksh
  98. export CONFIG_SHELL
  99. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  100. else
  101. # Try using printf.
  102. echo='printf %s\n'
  103. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  104. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  105. test "X$echo_testing_string" = "X$echo_test_string"; then
  106. # Cool, printf works
  107. :
  108. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  109. test "X$echo_testing_string" = 'X\t' &&
  110. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  111. test "X$echo_testing_string" = "X$echo_test_string"; then
  112. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  113. export CONFIG_SHELL
  114. SHELL="$CONFIG_SHELL"
  115. export SHELL
  116. echo="$CONFIG_SHELL $0 --fallback-echo"
  117. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  118. test "X$echo_testing_string" = 'X\t' &&
  119. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  120. test "X$echo_testing_string" = "X$echo_test_string"; then
  121. echo="$CONFIG_SHELL $0 --fallback-echo"
  122. else
  123. # maybe with a smaller string...
  124. prev=:
  125. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  126. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  127. then
  128. break
  129. fi
  130. prev="$cmd"
  131. done
  132. if test "$prev" != 'sed 50q "$0"'; then
  133. echo_test_string=`eval $prev`
  134. export echo_test_string
  135. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  136. else
  137. # Oops. We lost completely, so just stick with echo.
  138. echo=echo
  139. fi
  140. fi
  141. fi
  142. fi
  143. fi
  144. fi
  145. # Copy echo and quote the copy suitably for passing to libtool from
  146. # the Makefile, instead of quoting the original, which is used later.
  147. ECHO=$echo
  148. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  149. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  150. fi
  151. if expr a : '\(a\)' >/dev/null 2>&1; then
  152. as_expr=expr
  153. else
  154. as_expr=false
  155. fi
  156. ## --------------------- ##
  157. ## M4sh Initialization. ##
  158. ## --------------------- ##
  159. # Be Bourne compatible
  160. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  161. emulate sh
  162. NULLCMD=:
  163. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  164. set -o posix
  165. fi
  166. # NLS nuisances.
  167. # Support unset when possible.
  168. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  169. as_unset=unset
  170. else
  171. as_unset=false
  172. fi
  173. (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
  174. { $as_unset LANG || test "${LANG+set}" != set; } ||
  175. { LANG=C; export LANG; }
  176. (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
  177. { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
  178. { LC_ALL=C; export LC_ALL; }
  179. (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
  180. { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
  181. { LC_TIME=C; export LC_TIME; }
  182. (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
  183. { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
  184. { LC_CTYPE=C; export LC_CTYPE; }
  185. (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
  186. { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
  187. { LANGUAGE=C; export LANGUAGE; }
  188. (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
  189. { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
  190. { LC_COLLATE=C; export LC_COLLATE; }
  191. (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
  192. { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
  193. { LC_NUMERIC=C; export LC_NUMERIC; }
  194. (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
  195. { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
  196. { LC_MESSAGES=C; export LC_MESSAGES; }
  197. # Name of the executable.
  198. as_me=`(basename "$0") 2>/dev/null ||
  199. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  200. X"$0" : 'X\(//\)$' \| \
  201. X"$0" : 'X\(/\)$' \| \
  202. . : '\(.\)' 2>/dev/null ||
  203. echo X/"$0" |
  204. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  205. /^X\/\(\/\/\)$/{ s//\1/; q; }
  206. /^X\/\(\/\).*/{ s//\1/; q; }
  207. s/.*/./; q'`
  208. # PATH needs CR, and LINENO needs CR and PATH.
  209. # Avoid depending upon Character Ranges.
  210. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  211. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  212. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  213. as_cr_digits='0123456789'
  214. as_cr_alnum=$as_cr_Letters$as_cr_digits
  215. # The user is always right.
  216. if test "${PATH_SEPARATOR+set}" != set; then
  217. echo "#! /bin/sh" >conftest.sh
  218. echo "exit 0" >>conftest.sh
  219. chmod +x conftest.sh
  220. if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
  221. PATH_SEPARATOR=';'
  222. else
  223. PATH_SEPARATOR=:
  224. fi
  225. rm -f conftest.sh
  226. fi
  227. as_lineno_1=$LINENO
  228. as_lineno_2=$LINENO
  229. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  230. test "x$as_lineno_1" != "x$as_lineno_2" &&
  231. test "x$as_lineno_3" = "x$as_lineno_2" || {
  232. # Find who we are. Look in the path if we contain no path at all
  233. # relative or not.
  234. case $0 in
  235. *[\\/]* ) as_myself=$0 ;;
  236. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  237. for as_dir in $PATH
  238. do
  239. IFS=$as_save_IFS
  240. test -z "$as_dir" && as_dir=.
  241. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  242. done
  243. ;;
  244. esac
  245. # We did not find ourselves, most probably we were run as `sh COMMAND'
  246. # in which case we are not to be found in the path.
  247. if test "x$as_myself" = x; then
  248. as_myself=$0
  249. fi
  250. if test ! -f "$as_myself"; then
  251. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  252. { (exit 1); exit 1; }; }
  253. fi
  254. case $CONFIG_SHELL in
  255. '')
  256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  257. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  258. do
  259. IFS=$as_save_IFS
  260. test -z "$as_dir" && as_dir=.
  261. for as_base in sh bash ksh sh5; do
  262. case $as_dir in
  263. /*)
  264. if ("$as_dir/$as_base" -c '
  265. as_lineno_1=$LINENO
  266. as_lineno_2=$LINENO
  267. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  268. test "x$as_lineno_1" != "x$as_lineno_2" &&
  269. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  270. CONFIG_SHELL=$as_dir/$as_base
  271. export CONFIG_SHELL
  272. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  273. fi;;
  274. esac
  275. done
  276. done
  277. ;;
  278. esac
  279. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  280. # uniformly replaced by the line number. The first 'sed' inserts a
  281. # line-number line before each line; the second 'sed' does the real
  282. # work. The second script uses 'N' to pair each line-number line
  283. # with the numbered line, and appends trailing '-' during
  284. # substitution so that $LINENO is not a special case at line end.
  285. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  286. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  287. sed '=' <$as_myself |
  288. sed '
  289. N
  290. s,$,-,
  291. : loop
  292. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  293. t loop
  294. s,-$,,
  295. s,^['$as_cr_digits']*\n,,
  296. ' >$as_me.lineno &&
  297. chmod +x $as_me.lineno ||
  298. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  299. { (exit 1); exit 1; }; }
  300. # Don't try to exec as it changes $[0], causing all sort of problems
  301. # (the dirname of $[0] is not the place where we might find the
  302. # original and so on. Autoconf is especially sensible to this).
  303. . ./$as_me.lineno
  304. # Exit status is that of the last command.
  305. exit
  306. }
  307. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  308. *c*,-n*) ECHO_N= ECHO_C='
  309. ' ECHO_T=' ' ;;
  310. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  311. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  312. esac
  313. if expr a : '\(a\)' >/dev/null 2>&1; then
  314. as_expr=expr
  315. else
  316. as_expr=false
  317. fi
  318. rm -f conf$$ conf$$.exe conf$$.file
  319. echo >conf$$.file
  320. if ln -s conf$$.file conf$$ 2>/dev/null; then
  321. # We could just check for DJGPP; but this test a) works b) is more generic
  322. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  323. if test -f conf$$.exe; then
  324. # Don't use ln at all; we don't have any links
  325. as_ln_s='cp -p'
  326. else
  327. as_ln_s='ln -s'
  328. fi
  329. elif ln conf$$.file conf$$ 2>/dev/null; then
  330. as_ln_s=ln
  331. else
  332. as_ln_s='cp -p'
  333. fi
  334. rm -f conf$$ conf$$.exe conf$$.file
  335. as_executable_p="test -f"
  336. # Sed expression to map a string onto a valid CPP name.
  337. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  338. # Sed expression to map a string onto a valid variable name.
  339. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  340. # IFS
  341. # We need space, tab and new line, in precisely that order.
  342. as_nl='
  343. '
  344. IFS=" $as_nl"
  345. # CDPATH.
  346. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
  347. # Name of the host.
  348. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  349. # so uname gets run too.
  350. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  351. exec 6>&1
  352. #
  353. # Initializations.
  354. #
  355. ac_default_prefix=/usr/local
  356. cross_compiling=no
  357. subdirs=
  358. MFLAGS=
  359. MAKEFLAGS=
  360. SHELL=${CONFIG_SHELL-/bin/sh}
  361. # Maximum number of lines to put in a shell here document.
  362. # This variable seems obsolete. It should probably be removed, and
  363. # only ac_max_sed_lines should be used.
  364. : ${ac_max_here_lines=38}
  365. # Identity of this package.
  366. PACKAGE_NAME=
  367. PACKAGE_TARNAME=
  368. PACKAGE_VERSION=
  369. PACKAGE_STRING=
  370. PACKAGE_BUGREPORT=
  371. ac_unique_file="src/file.c"
  372. # Factoring default headers for most tests.
  373. ac_includes_default="\
  374. #include <stdio.h>
  375. #if HAVE_SYS_TYPES_H
  376. # include <sys/types.h>
  377. #endif
  378. #if HAVE_SYS_STAT_H
  379. # include <sys/stat.h>
  380. #endif
  381. #if STDC_HEADERS
  382. # include <stdlib.h>
  383. # include <stddef.h>
  384. #else
  385. # if HAVE_STDLIB_H
  386. # include <stdlib.h>
  387. # endif
  388. #endif
  389. #if HAVE_STRING_H
  390. # if !STDC_HEADERS && HAVE_MEMORY_H
  391. # include <memory.h>
  392. # endif
  393. # include <string.h>
  394. #endif
  395. #if HAVE_STRINGS_H
  396. # include <strings.h>
  397. #endif
  398. #if HAVE_INTTYPES_H
  399. # include <inttypes.h>
  400. #else
  401. # if HAVE_STDINT_H
  402. # include <stdint.h>
  403. # endif
  404. #endif
  405. #if HAVE_UNISTD_H
  406. # include <unistd.h>
  407. #endif"
  408. # Initialize some variables set by options.
  409. ac_init_help=
  410. ac_init_version=false
  411. # The variables have the same names as the options, with
  412. # dashes changed to underlines.
  413. cache_file=/dev/null
  414. exec_prefix=NONE
  415. no_create=
  416. no_recursion=
  417. prefix=NONE
  418. program_prefix=NONE
  419. program_suffix=NONE
  420. program_transform_name=s,x,x,
  421. silent=
  422. site=
  423. srcdir=
  424. verbose=
  425. x_includes=NONE
  426. x_libraries=NONE
  427. # Installation directory options.
  428. # These are left unexpanded so users can "make install exec_prefix=/foo"
  429. # and all the variables that are supposed to be based on exec_prefix
  430. # by default will actually change.
  431. # Use braces instead of parens because sh, perl, etc. also accept them.
  432. bindir='${exec_prefix}/bin'
  433. sbindir='${exec_prefix}/sbin'
  434. libexecdir='${exec_prefix}/libexec'
  435. datadir='${prefix}/share'
  436. sysconfdir='${prefix}/etc'
  437. sharedstatedir='${prefix}/com'
  438. localstatedir='${prefix}/var'
  439. libdir='${exec_prefix}/lib'
  440. includedir='${prefix}/include'
  441. oldincludedir='/usr/include'
  442. infodir='${prefix}/info'
  443. mandir='${prefix}/man'
  444. ac_prev=
  445. for ac_option
  446. do
  447. # If the previous option needs an argument, assign it.
  448. if test -n "$ac_prev"; then
  449. eval "$ac_prev=\$ac_option"
  450. ac_prev=
  451. continue
  452. fi
  453. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  454. # Accept the important Cygnus configure options, so we can diagnose typos.
  455. case $ac_option in
  456. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  457. ac_prev=bindir ;;
  458. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  459. bindir=$ac_optarg ;;
  460. -build | --build | --buil | --bui | --bu)
  461. ac_prev=build_alias ;;
  462. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  463. build_alias=$ac_optarg ;;
  464. -cache-file | --cache-file | --cache-fil | --cache-fi \
  465. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  466. ac_prev=cache_file ;;
  467. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  468. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  469. cache_file=$ac_optarg ;;
  470. --config-cache | -C)
  471. cache_file=config.cache ;;
  472. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  473. ac_prev=datadir ;;
  474. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  475. | --da=*)
  476. datadir=$ac_optarg ;;
  477. -disable-* | --disable-*)
  478. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  479. # Reject names that are not valid shell variable names.
  480. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  481. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  482. { (exit 1); exit 1; }; }
  483. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  484. eval "enable_$ac_feature=no" ;;
  485. -enable-* | --enable-*)
  486. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  487. # Reject names that are not valid shell variable names.
  488. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  489. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  490. { (exit 1); exit 1; }; }
  491. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  492. case $ac_option in
  493. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  494. *) ac_optarg=yes ;;
  495. esac
  496. eval "enable_$ac_feature='$ac_optarg'" ;;
  497. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  498. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  499. | --exec | --exe | --ex)
  500. ac_prev=exec_prefix ;;
  501. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  502. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  503. | --exec=* | --exe=* | --ex=*)
  504. exec_prefix=$ac_optarg ;;
  505. -gas | --gas | --ga | --g)
  506. # Obsolete; use --with-gas.
  507. with_gas=yes ;;
  508. -help | --help | --hel | --he | -h)
  509. ac_init_help=long ;;
  510. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  511. ac_init_help=recursive ;;
  512. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  513. ac_init_help=short ;;
  514. -host | --host | --hos | --ho)
  515. ac_prev=host_alias ;;
  516. -host=* | --host=* | --hos=* | --ho=*)
  517. host_alias=$ac_optarg ;;
  518. -includedir | --includedir | --includedi | --included | --include \
  519. | --includ | --inclu | --incl | --inc)
  520. ac_prev=includedir ;;
  521. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  522. | --includ=* | --inclu=* | --incl=* | --inc=*)
  523. includedir=$ac_optarg ;;
  524. -infodir | --infodir | --infodi | --infod | --info | --inf)
  525. ac_prev=infodir ;;
  526. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  527. infodir=$ac_optarg ;;
  528. -libdir | --libdir | --libdi | --libd)
  529. ac_prev=libdir ;;
  530. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  531. libdir=$ac_optarg ;;
  532. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  533. | --libexe | --libex | --libe)
  534. ac_prev=libexecdir ;;
  535. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  536. | --libexe=* | --libex=* | --libe=*)
  537. libexecdir=$ac_optarg ;;
  538. -localstatedir | --localstatedir | --localstatedi | --localstated \
  539. | --localstate | --localstat | --localsta | --localst \
  540. | --locals | --local | --loca | --loc | --lo)
  541. ac_prev=localstatedir ;;
  542. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  543. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  544. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  545. localstatedir=$ac_optarg ;;
  546. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  547. ac_prev=mandir ;;
  548. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  549. mandir=$ac_optarg ;;
  550. -nfp | --nfp | --nf)
  551. # Obsolete; use --without-fp.
  552. with_fp=no ;;
  553. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  554. | --no-cr | --no-c | -n)
  555. no_create=yes ;;
  556. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  557. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  558. no_recursion=yes ;;
  559. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  560. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  561. | --oldin | --oldi | --old | --ol | --o)
  562. ac_prev=oldincludedir ;;
  563. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  564. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  565. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  566. oldincludedir=$ac_optarg ;;
  567. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  568. ac_prev=prefix ;;
  569. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  570. prefix=$ac_optarg ;;
  571. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  572. | --program-pre | --program-pr | --program-p)
  573. ac_prev=program_prefix ;;
  574. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  575. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  576. program_prefix=$ac_optarg ;;
  577. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  578. | --program-suf | --program-su | --program-s)
  579. ac_prev=program_suffix ;;
  580. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  581. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  582. program_suffix=$ac_optarg ;;
  583. -program-transform-name | --program-transform-name \
  584. | --program-transform-nam | --program-transform-na \
  585. | --program-transform-n | --program-transform- \
  586. | --program-transform | --program-transfor \
  587. | --program-transfo | --program-transf \
  588. | --program-trans | --program-tran \
  589. | --progr-tra | --program-tr | --program-t)
  590. ac_prev=program_transform_name ;;
  591. -program-transform-name=* | --program-transform-name=* \
  592. | --program-transform-nam=* | --program-transform-na=* \
  593. | --program-transform-n=* | --program-transform-=* \
  594. | --program-transform=* | --program-transfor=* \
  595. | --program-transfo=* | --program-transf=* \
  596. | --program-trans=* | --program-tran=* \
  597. | --progr-tra=* | --program-tr=* | --program-t=*)
  598. program_transform_name=$ac_optarg ;;
  599. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  600. | -silent | --silent | --silen | --sile | --sil)
  601. silent=yes ;;
  602. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  603. ac_prev=sbindir ;;
  604. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  605. | --sbi=* | --sb=*)
  606. sbindir=$ac_optarg ;;
  607. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  608. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  609. | --sharedst | --shareds | --shared | --share | --shar \
  610. | --sha | --sh)
  611. ac_prev=sharedstatedir ;;
  612. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  613. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  614. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  615. | --sha=* | --sh=*)
  616. sharedstatedir=$ac_optarg ;;
  617. -site | --site | --sit)
  618. ac_prev=site ;;
  619. -site=* | --site=* | --sit=*)
  620. site=$ac_optarg ;;
  621. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  622. ac_prev=srcdir ;;
  623. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  624. srcdir=$ac_optarg ;;
  625. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  626. | --syscon | --sysco | --sysc | --sys | --sy)
  627. ac_prev=sysconfdir ;;
  628. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  629. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  630. sysconfdir=$ac_optarg ;;
  631. -target | --target | --targe | --targ | --tar | --ta | --t)
  632. ac_prev=target_alias ;;
  633. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  634. target_alias=$ac_optarg ;;
  635. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  636. verbose=yes ;;
  637. -version | --version | --versio | --versi | --vers | -V)
  638. ac_init_version=: ;;
  639. -with-* | --with-*)
  640. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  641. # Reject names that are not valid shell variable names.
  642. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  643. { echo "$as_me: error: invalid package name: $ac_package" >&2
  644. { (exit 1); exit 1; }; }
  645. ac_package=`echo $ac_package| sed 's/-/_/g'`
  646. case $ac_option in
  647. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  648. *) ac_optarg=yes ;;
  649. esac
  650. eval "with_$ac_package='$ac_optarg'" ;;
  651. -without-* | --without-*)
  652. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  653. # Reject names that are not valid shell variable names.
  654. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  655. { echo "$as_me: error: invalid package name: $ac_package" >&2
  656. { (exit 1); exit 1; }; }
  657. ac_package=`echo $ac_package | sed 's/-/_/g'`
  658. eval "with_$ac_package=no" ;;
  659. --x)
  660. # Obsolete; use --with-x.
  661. with_x=yes ;;
  662. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  663. | --x-incl | --x-inc | --x-in | --x-i)
  664. ac_prev=x_includes ;;
  665. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  666. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  667. x_includes=$ac_optarg ;;
  668. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  669. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  670. ac_prev=x_libraries ;;
  671. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  672. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  673. x_libraries=$ac_optarg ;;
  674. -*) { echo "$as_me: error: unrecognized option: $ac_option
  675. Try \`$0 --help' for more information." >&2
  676. { (exit 1); exit 1; }; }
  677. ;;
  678. *=*)
  679. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  680. # Reject names that are not valid shell variable names.
  681. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  682. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  683. { (exit 1); exit 1; }; }
  684. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  685. eval "$ac_envvar='$ac_optarg'"
  686. export $ac_envvar ;;
  687. *)
  688. # FIXME: should be removed in autoconf 3.0.
  689. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  690. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  691. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  692. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  693. ;;
  694. esac
  695. done
  696. if test -n "$ac_prev"; then
  697. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  698. { echo "$as_me: error: missing argument to $ac_option" >&2
  699. { (exit 1); exit 1; }; }
  700. fi
  701. # Be sure to have absolute paths.
  702. for ac_var in exec_prefix prefix
  703. do
  704. eval ac_val=$`echo $ac_var`
  705. case $ac_val in
  706. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  707. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  708. { (exit 1); exit 1; }; };;
  709. esac
  710. done
  711. # Be sure to have absolute paths.
  712. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  713. localstatedir libdir includedir oldincludedir infodir mandir
  714. do
  715. eval ac_val=$`echo $ac_var`
  716. case $ac_val in
  717. [\\/$]* | ?:[\\/]* ) ;;
  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. # There might be people who depend on the old broken behavior: `$host'
  723. # used to hold the argument of --host etc.
  724. # FIXME: To remove some day.
  725. build=$build_alias
  726. host=$host_alias
  727. target=$target_alias
  728. # FIXME: To remove some day.
  729. if test "x$host_alias" != x; then
  730. if test "x$build_alias" = x; then
  731. cross_compiling=maybe
  732. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  733. If a cross compiler is detected then cross compile mode will be used." >&2
  734. elif test "x$build_alias" != "x$host_alias"; then
  735. cross_compiling=yes
  736. fi
  737. fi
  738. ac_tool_prefix=
  739. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  740. test "$silent" = yes && exec 6>/dev/null
  741. # Find the source files, if location was not specified.
  742. if test -z "$srcdir"; then
  743. ac_srcdir_defaulted=yes
  744. # Try the directory containing this script, then its parent.
  745. ac_confdir=`(dirname "$0") 2>/dev/null ||
  746. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  747. X"$0" : 'X\(//\)[^/]' \| \
  748. X"$0" : 'X\(//\)$' \| \
  749. X"$0" : 'X\(/\)' \| \
  750. . : '\(.\)' 2>/dev/null ||
  751. echo X"$0" |
  752. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  753. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  754. /^X\(\/\/\)$/{ s//\1/; q; }
  755. /^X\(\/\).*/{ s//\1/; q; }
  756. s/.*/./; q'`
  757. srcdir=$ac_confdir
  758. if test ! -r $srcdir/$ac_unique_file; then
  759. srcdir=..
  760. fi
  761. else
  762. ac_srcdir_defaulted=no
  763. fi
  764. if test ! -r $srcdir/$ac_unique_file; then
  765. if test "$ac_srcdir_defaulted" = yes; then
  766. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  767. { (exit 1); exit 1; }; }
  768. else
  769. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  770. { (exit 1); exit 1; }; }
  771. fi
  772. fi
  773. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  774. ac_env_build_alias_set=${build_alias+set}
  775. ac_env_build_alias_value=$build_alias
  776. ac_cv_env_build_alias_set=${build_alias+set}
  777. ac_cv_env_build_alias_value=$build_alias
  778. ac_env_host_alias_set=${host_alias+set}
  779. ac_env_host_alias_value=$host_alias
  780. ac_cv_env_host_alias_set=${host_alias+set}
  781. ac_cv_env_host_alias_value=$host_alias
  782. ac_env_target_alias_set=${target_alias+set}
  783. ac_env_target_alias_value=$target_alias
  784. ac_cv_env_target_alias_set=${target_alias+set}
  785. ac_cv_env_target_alias_value=$target_alias
  786. ac_env_CC_set=${CC+set}
  787. ac_env_CC_value=$CC
  788. ac_cv_env_CC_set=${CC+set}
  789. ac_cv_env_CC_value=$CC
  790. ac_env_CFLAGS_set=${CFLAGS+set}
  791. ac_env_CFLAGS_value=$CFLAGS
  792. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  793. ac_cv_env_CFLAGS_value=$CFLAGS
  794. ac_env_LDFLAGS_set=${LDFLAGS+set}
  795. ac_env_LDFLAGS_value=$LDFLAGS
  796. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  797. ac_cv_env_LDFLAGS_value=$LDFLAGS
  798. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  799. ac_env_CPPFLAGS_value=$CPPFLAGS
  800. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  801. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  802. ac_env_CPP_set=${CPP+set}
  803. ac_env_CPP_value=$CPP
  804. ac_cv_env_CPP_set=${CPP+set}
  805. ac_cv_env_CPP_value=$CPP
  806. #
  807. # Report the --help message.
  808. #
  809. if test "$ac_init_help" = "long"; then
  810. # Omit some internal or obsolete options to make the list less imposing.
  811. # This message is too long to be a string in the A/UX 3.1 sh.
  812. cat <<_ACEOF
  813. \`configure' configures this package to adapt to many kinds of systems.
  814. Usage: $0 [OPTION]... [VAR=VALUE]...
  815. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  816. VAR=VALUE. See below for descriptions of some of the useful variables.
  817. Defaults for the options are specified in brackets.
  818. Configuration:
  819. -h, --help display this help and exit
  820. --help=short display options specific to this package
  821. --help=recursive display the short help of all the included packages
  822. -V, --version display version information and exit
  823. -q, --quiet, --silent do not print \`checking...' messages
  824. --cache-file=FILE cache test results in FILE [disabled]
  825. -C, --config-cache alias for \`--cache-file=config.cache'
  826. -n, --no-create do not create output files
  827. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  828. _ACEOF
  829. cat <<_ACEOF
  830. Installation directories:
  831. --prefix=PREFIX install architecture-independent files in PREFIX
  832. [$ac_default_prefix]
  833. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  834. [PREFIX]
  835. By default, \`make install' will install all the files in
  836. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  837. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  838. for instance \`--prefix=\$HOME'.
  839. For better control, use the options below.
  840. Fine tuning of the installation directories:
  841. --bindir=DIR user executables [EPREFIX/bin]
  842. --sbindir=DIR system admin executables [EPREFIX/sbin]
  843. --libexecdir=DIR program executables [EPREFIX/libexec]
  844. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  845. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  846. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  847. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  848. --libdir=DIR object code libraries [EPREFIX/lib]
  849. --includedir=DIR C header files [PREFIX/include]
  850. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  851. --infodir=DIR info documentation [PREFIX/info]
  852. --mandir=DIR man documentation [PREFIX/man]
  853. _ACEOF
  854. cat <<\_ACEOF
  855. Program names:
  856. --program-prefix=PREFIX prepend PREFIX to installed program names
  857. --program-suffix=SUFFIX append SUFFIX to installed program names
  858. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  859. System types:
  860. --build=BUILD configure for building on BUILD [guessed]
  861. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  862. _ACEOF
  863. fi
  864. if test -n "$ac_init_help"; then
  865. cat <<\_ACEOF
  866. Optional Features:
  867. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  868. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  869. --disable-elf disable builtin ELF support
  870. --disable-elf-core disable ELF core file support
  871. --enable-fsect-man5 enable file formats in man section 5
  872. --disable-dependency-tracking Speeds up one-time builds
  873. --enable-dependency-tracking Do not reject slow dependency extractors
  874. --enable-shared=PKGS build shared libraries default=yes
  875. --enable-static=PKGS build static libraries default=yes
  876. --enable-fast-install=PKGS optimize for fast installation default=yes
  877. --disable-libtool-lock avoid locking (might break parallel builds)
  878. --disable-largefile omit support for large files
  879. Optional Packages:
  880. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  881. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  882. --with-gnu-ld assume the C compiler uses GNU ld default=no
  883. --with-pic try to use only PIC/non-PIC objects default=use both
  884. Some influential environment variables:
  885. CC C compiler command
  886. CFLAGS C compiler flags
  887. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  888. nonstandard directory <lib dir>
  889. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  890. headers in a nonstandard directory <include dir>
  891. CPP C preprocessor
  892. Use these variables to override the choices made by `configure' or to help
  893. it to find libraries and programs with nonstandard names/locations.
  894. _ACEOF
  895. fi
  896. if test "$ac_init_help" = "recursive"; then
  897. # If there are subdirs, report their specific --help.
  898. ac_popdir=`pwd`
  899. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  900. test -d $ac_dir || continue
  901. ac_builddir=.
  902. if test "$ac_dir" != .; then
  903. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  904. # A "../" for each directory in $ac_dir_suffix.
  905. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  906. else
  907. ac_dir_suffix= ac_top_builddir=
  908. fi
  909. case $srcdir in
  910. .) # No --srcdir option. We are building in place.
  911. ac_srcdir=.
  912. if test -z "$ac_top_builddir"; then
  913. ac_top_srcdir=.
  914. else
  915. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  916. fi ;;
  917. [\\/]* | ?:[\\/]* ) # Absolute path.
  918. ac_srcdir=$srcdir$ac_dir_suffix;
  919. ac_top_srcdir=$srcdir ;;
  920. *) # Relative path.
  921. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  922. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  923. esac
  924. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  925. # absolute.
  926. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  927. ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  928. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  929. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  930. cd $ac_dir
  931. # Check for guested configure; otherwise get Cygnus style configure.
  932. if test -f $ac_srcdir/configure.gnu; then
  933. echo
  934. $SHELL $ac_srcdir/configure.gnu --help=recursive
  935. elif test -f $ac_srcdir/configure; then
  936. echo
  937. $SHELL $ac_srcdir/configure --help=recursive
  938. elif test -f $ac_srcdir/configure.ac ||
  939. test -f $ac_srcdir/configure.in; then
  940. echo
  941. $ac_configure --help
  942. else
  943. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  944. fi
  945. cd $ac_popdir
  946. done
  947. fi
  948. test -n "$ac_init_help" && exit 0
  949. if $ac_init_version; then
  950. cat <<\_ACEOF
  951. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  952. Free Software Foundation, Inc.
  953. This configure script is free software; the Free Software Foundation
  954. gives unlimited permission to copy, distribute and modify it.
  955. _ACEOF
  956. exit 0
  957. fi
  958. exec 5>config.log
  959. cat >&5 <<_ACEOF
  960. This file contains any messages produced by compilers while
  961. running configure, to aid debugging if configure makes a mistake.
  962. It was created by $as_me, which was
  963. generated by GNU Autoconf 2.53. Invocation command line was
  964. $ $0 $@
  965. _ACEOF
  966. {
  967. cat <<_ASUNAME
  968. ## --------- ##
  969. ## Platform. ##
  970. ## --------- ##
  971. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  972. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  973. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  974. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  975. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  976. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  977. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  978. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  979. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  980. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  981. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  982. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  983. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  984. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  985. _ASUNAME
  986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  987. for as_dir in $PATH
  988. do
  989. IFS=$as_save_IFS
  990. test -z "$as_dir" && as_dir=.
  991. echo "PATH: $as_dir"
  992. done
  993. } >&5
  994. cat >&5 <<_ACEOF
  995. ## ----------- ##
  996. ## Core tests. ##
  997. ## ----------- ##
  998. _ACEOF
  999. # Keep a trace of the command line.
  1000. # Strip out --no-create and --no-recursion so they do not pile up.
  1001. # Also quote any args containing shell meta-characters.
  1002. ac_configure_args=
  1003. ac_sep=
  1004. for ac_arg
  1005. do
  1006. case $ac_arg in
  1007. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1008. | --no-cr | --no-c | -n ) continue ;;
  1009. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1010. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1011. continue ;;
  1012. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1013. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1014. esac
  1015. case " $ac_configure_args " in
  1016. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1017. *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1018. ac_sep=" " ;;
  1019. esac
  1020. # Get rid of the leading space.
  1021. done
  1022. # When interrupted or exit'd, cleanup temporary files, and complete
  1023. # config.log. We remove comments because anyway the quotes in there
  1024. # would cause problems or look ugly.
  1025. # WARNING: Be sure not to use single quotes in there, as some shells,
  1026. # such as our DU 5.0 friend, will then `close' the trap.
  1027. trap 'exit_status=$?
  1028. # Save into config.log some information that might help in debugging.
  1029. {
  1030. echo
  1031. cat <<\_ASBOX
  1032. ## ---------------- ##
  1033. ## Cache variables. ##
  1034. ## ---------------- ##
  1035. _ASBOX
  1036. echo
  1037. # The following way of writing the cache mishandles newlines in values,
  1038. {
  1039. (set) 2>&1 |
  1040. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1041. *ac_space=\ *)
  1042. sed -n \
  1043. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1044. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1045. ;;
  1046. *)
  1047. sed -n \
  1048. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1049. ;;
  1050. esac;
  1051. }
  1052. echo
  1053. if test -s confdefs.h; then
  1054. cat <<\_ASBOX
  1055. ## ----------- ##
  1056. ## confdefs.h. ##
  1057. ## ----------- ##
  1058. _ASBOX
  1059. echo
  1060. sed "/^$/d" confdefs.h
  1061. echo
  1062. fi
  1063. test "$ac_signal" != 0 &&
  1064. echo "$as_me: caught signal $ac_signal"
  1065. echo "$as_me: exit $exit_status"
  1066. } >&5
  1067. rm -f core core.* *.core &&
  1068. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1069. exit $exit_status
  1070. ' 0
  1071. for ac_signal in 1 2 13 15; do
  1072. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1073. done
  1074. ac_signal=0
  1075. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1076. rm -rf conftest* confdefs.h
  1077. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1078. echo >confdefs.h
  1079. # Predefined preprocessor variables.
  1080. cat >>confdefs.h <<_ACEOF
  1081. #define PACKAGE_NAME "$PACKAGE_NAME"
  1082. _ACEOF
  1083. cat >>confdefs.h <<_ACEOF
  1084. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1085. _ACEOF
  1086. cat >>confdefs.h <<_ACEOF
  1087. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1088. _ACEOF
  1089. cat >>confdefs.h <<_ACEOF
  1090. #define PACKAGE_STRING "$PACKAGE_STRING"
  1091. _ACEOF
  1092. cat >>confdefs.h <<_ACEOF
  1093. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1094. _ACEOF
  1095. # Let the site file select an alternate cache file if it wants to.
  1096. # Prefer explicitly selected file to automatically selected ones.
  1097. if test -z "$CONFIG_SITE"; then
  1098. if test "x$prefix" != xNONE; then
  1099. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1100. else
  1101. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1102. fi
  1103. fi
  1104. for ac_site_file in $CONFIG_SITE; do
  1105. if test -r "$ac_site_file"; then
  1106. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1107. echo "$as_me: loading site script $ac_site_file" >&6;}
  1108. sed 's/^/| /' "$ac_site_file" >&5
  1109. . "$ac_site_file"
  1110. fi
  1111. done
  1112. if test -r "$cache_file"; then
  1113. # Some versions of bash will fail to source /dev/null (special
  1114. # files actually), so we avoid doing that.
  1115. if test -f "$cache_file"; then
  1116. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1117. echo "$as_me: loading cache $cache_file" >&6;}
  1118. case $cache_file in
  1119. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1120. *) . ./$cache_file;;
  1121. esac
  1122. fi
  1123. else
  1124. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1125. echo "$as_me: creating cache $cache_file" >&6;}
  1126. >$cache_file
  1127. fi
  1128. # Check that the precious variables saved in the cache have kept the same
  1129. # value.
  1130. ac_cache_corrupted=false
  1131. for ac_var in `(set) 2>&1 |
  1132. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1133. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1134. eval ac_new_set=\$ac_env_${ac_var}_set
  1135. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1136. eval ac_new_val="\$ac_env_${ac_var}_value"
  1137. case $ac_old_set,$ac_new_set in
  1138. set,)
  1139. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1140. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1141. ac_cache_corrupted=: ;;
  1142. ,set)
  1143. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1144. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1145. ac_cache_corrupted=: ;;
  1146. ,);;
  1147. *)
  1148. if test "x$ac_old_val" != "x$ac_new_val"; then
  1149. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1150. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1151. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1152. echo "$as_me: former value: $ac_old_val" >&2;}
  1153. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1154. echo "$as_me: current value: $ac_new_val" >&2;}
  1155. ac_cache_corrupted=:
  1156. fi;;
  1157. esac
  1158. # Pass precious variables to config.status.
  1159. if test "$ac_new_set" = set; then
  1160. case $ac_new_val in
  1161. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1162. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1163. *) ac_arg=$ac_var=$ac_new_val ;;
  1164. esac
  1165. case " $ac_configure_args " in
  1166. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1167. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1168. esac
  1169. fi
  1170. done
  1171. if $ac_cache_corrupted; then
  1172. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1173. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1174. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1175. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1176. { (exit 1); exit 1; }; }
  1177. fi
  1178. ac_ext=c
  1179. ac_cpp='$CPP $CPPFLAGS'
  1180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1183. am__api_version="1.6"
  1184. ac_aux_dir=
  1185. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1186. if test -f $ac_dir/install-sh; then
  1187. ac_aux_dir=$ac_dir
  1188. ac_install_sh="$ac_aux_dir/install-sh -c"
  1189. break
  1190. elif test -f $ac_dir/install.sh; then
  1191. ac_aux_dir=$ac_dir
  1192. ac_install_sh="$ac_aux_dir/install.sh -c"
  1193. break
  1194. elif test -f $ac_dir/shtool; then
  1195. ac_aux_dir=$ac_dir
  1196. ac_install_sh="$ac_aux_dir/shtool install -c"
  1197. break
  1198. fi
  1199. done
  1200. if test -z "$ac_aux_dir"; then
  1201. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1202. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1203. { (exit 1); exit 1; }; }
  1204. fi
  1205. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1206. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1207. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1208. # Find a good install program. We prefer a C program (faster),
  1209. # so one script is as good as another. But avoid the broken or
  1210. # incompatible versions:
  1211. # SysV /etc/install, /usr/sbin/install
  1212. # SunOS /usr/etc/install
  1213. # IRIX /sbin/install
  1214. # AIX /bin/install
  1215. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1216. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1217. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1218. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1219. # ./install, which can be erroneously created by make from ./install.sh.
  1220. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1221. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1222. if test -z "$INSTALL"; then
  1223. if test "${ac_cv_path_install+set}" = set; then
  1224. echo $ECHO_N "(cached) $ECHO_C" >&6
  1225. else
  1226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1227. for as_dir in $PATH
  1228. do
  1229. IFS=$as_save_IFS
  1230. test -z "$as_dir" && as_dir=.
  1231. # Account for people who put trailing slashes in PATH elements.
  1232. case $as_dir/ in
  1233. ./ | .// | /cC/* | \
  1234. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1235. /usr/ucb/* ) ;;
  1236. *)
  1237. # OSF1 and SCO ODT 3.0 have their own names for install.
  1238. # Don't use installbsd from OSF since it installs stuff as root
  1239. # by default.
  1240. for ac_prog in ginstall scoinst install; do
  1241. for ac_exec_ext in '' $ac_executable_extensions; do
  1242. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1243. if test $ac_prog = install &&
  1244. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1245. # AIX install. It has an incompatible calling convention.
  1246. :
  1247. elif test $ac_prog = install &&
  1248. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1249. # program-specific install script used by HP pwplus--don't use.
  1250. :
  1251. else
  1252. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1253. break 3
  1254. fi
  1255. fi
  1256. done
  1257. done
  1258. ;;
  1259. esac
  1260. done
  1261. fi
  1262. if test "${ac_cv_path_install+set}" = set; then
  1263. INSTALL=$ac_cv_path_install
  1264. else
  1265. # As a last resort, use the slow shell script. We don't cache a
  1266. # path for INSTALL within a source directory, because that will
  1267. # break other packages using the cache if that directory is
  1268. # removed, or if the path is relative.
  1269. INSTALL=$ac_install_sh
  1270. fi
  1271. fi
  1272. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1273. echo "${ECHO_T}$INSTALL" >&6
  1274. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1275. # It thinks the first close brace ends the variable substitution.
  1276. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1277. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1278. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1279. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1280. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1281. # Just in case
  1282. sleep 1
  1283. echo timestamp > conftest.file
  1284. # Do `set' in a subshell so we don't clobber the current shell's
  1285. # arguments. Must try -L first in case configure is actually a
  1286. # symlink; some systems play weird games with the mod time of symlinks
  1287. # (eg FreeBSD returns the mod time of the symlink's containing
  1288. # directory).
  1289. if (
  1290. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1291. if test "$*" = "X"; then
  1292. # -L didn't work.
  1293. set X `ls -t $srcdir/configure conftest.file`
  1294. fi
  1295. rm -f conftest.file
  1296. if test "$*" != "X $srcdir/configure conftest.file" \
  1297. && test "$*" != "X conftest.file $srcdir/configure"; then
  1298. # If neither matched, then we have a broken ls. This can happen
  1299. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1300. # broken ls alias from the environment. This has actually
  1301. # happened. Such a system could not be considered "sane".
  1302. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1303. alias in your environment" >&5
  1304. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1305. alias in your environment" >&2;}
  1306. { (exit 1); exit 1; }; }
  1307. fi
  1308. test "$2" = conftest.file
  1309. )
  1310. then
  1311. # Ok.
  1312. :
  1313. else
  1314. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1315. Check your system clock" >&5
  1316. echo "$as_me: error: newly created file is older than distributed files!
  1317. Check your system clock" >&2;}
  1318. { (exit 1); exit 1; }; }
  1319. fi
  1320. echo "$as_me:$LINENO: result: yes" >&5
  1321. echo "${ECHO_T}yes" >&6
  1322. test "$program_prefix" != NONE &&
  1323. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1324. # Use a double $ so make ignores it.
  1325. test "$program_suffix" != NONE &&
  1326. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1327. # Double any \ or $. echo might interpret backslashes.
  1328. # By default was `s,x,x', remove it if useless.
  1329. cat <<\_ACEOF >conftest.sed
  1330. s/[\\$]/&&/g;s/;s,x,x,$//
  1331. _ACEOF
  1332. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1333. rm conftest.sed
  1334. # expand $ac_aux_dir to an absolute path
  1335. am_aux_dir=`cd $ac_aux_dir && pwd`
  1336. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1337. # Use eval to expand $SHELL
  1338. if eval "$MISSING --run true"; then
  1339. am_missing_run="$MISSING --run "
  1340. else
  1341. am_missing_run=
  1342. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1343. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1344. fi
  1345. for ac_prog in gawk mawk nawk awk
  1346. do
  1347. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1348. set dummy $ac_prog; ac_word=$2
  1349. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1350. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1351. if test "${ac_cv_prog_AWK+set}" = set; then
  1352. echo $ECHO_N "(cached) $ECHO_C" >&6
  1353. else
  1354. if test -n "$AWK"; then
  1355. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1356. else
  1357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1358. for as_dir in $PATH
  1359. do
  1360. IFS=$as_save_IFS
  1361. test -z "$as_dir" && as_dir=.
  1362. for ac_exec_ext in '' $ac_executable_extensions; do
  1363. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1364. ac_cv_prog_AWK="$ac_prog"
  1365. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1366. break 2
  1367. fi
  1368. done
  1369. done
  1370. fi
  1371. fi
  1372. AWK=$ac_cv_prog_AWK
  1373. if test -n "$AWK"; then
  1374. echo "$as_me:$LINENO: result: $AWK" >&5
  1375. echo "${ECHO_T}$AWK" >&6
  1376. else
  1377. echo "$as_me:$LINENO: result: no" >&5
  1378. echo "${ECHO_T}no" >&6
  1379. fi
  1380. test -n "$AWK" && break
  1381. done
  1382. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1383. echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  1384. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1385. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1386. echo $ECHO_N "(cached) $ECHO_C" >&6
  1387. else
  1388. cat >conftest.make <<\_ACEOF
  1389. all:
  1390. @echo 'ac_maketemp="${MAKE}"'
  1391. _ACEOF
  1392. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1393. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1394. if test -n "$ac_maketemp"; then
  1395. eval ac_cv_prog_make_${ac_make}_set=yes
  1396. else
  1397. eval ac_cv_prog_make_${ac_make}_set=no
  1398. fi
  1399. rm -f conftest.make
  1400. fi
  1401. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1402. echo "$as_me:$LINENO: result: yes" >&5
  1403. echo "${ECHO_T}yes" >&6
  1404. SET_MAKE=
  1405. else
  1406. echo "$as_me:$LINENO: result: no" >&5
  1407. echo "${ECHO_T}no" >&6
  1408. SET_MAKE="MAKE=${MAKE-make}"
  1409. fi
  1410. # test to see if srcdir already configured
  1411. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1412. test -f $srcdir/config.status; then
  1413. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1414. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1415. { (exit 1); exit 1; }; }
  1416. fi
  1417. # Define the identity of the package.
  1418. PACKAGE=file
  1419. VERSION=4.12
  1420. cat >>confdefs.h <<_ACEOF
  1421. #define PACKAGE "$PACKAGE"
  1422. _ACEOF
  1423. cat >>confdefs.h <<_ACEOF
  1424. #define VERSION "$VERSION"
  1425. _ACEOF
  1426. # Some tools Automake needs.
  1427. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1428. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1429. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1430. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1431. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1432. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1433. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1434. # Installed binaries are usually stripped using `strip' when the user
  1435. # run `make install-strip'. However `strip' might not be the right
  1436. # tool to use in cross-compilation environments, therefore Automake
  1437. # will honor the `STRIP' environment variable to overrule this program.
  1438. if test "$cross_compiling" != no; then
  1439. if test -n "$ac_tool_prefix"; then
  1440. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1441. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1442. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1443. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1444. if test "${ac_cv_prog_STRIP+set}" = set; then
  1445. echo $ECHO_N "(cached) $ECHO_C" >&6
  1446. else
  1447. if test -n "$STRIP"; then
  1448. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1449. else
  1450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1451. for as_dir in $PATH
  1452. do
  1453. IFS=$as_save_IFS
  1454. test -z "$as_dir" && as_dir=.
  1455. for ac_exec_ext in '' $ac_executable_extensions; do
  1456. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1457. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1458. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1459. break 2
  1460. fi
  1461. done
  1462. done
  1463. fi
  1464. fi
  1465. STRIP=$ac_cv_prog_STRIP
  1466. if test -n "$STRIP"; then
  1467. echo "$as_me:$LINENO: result: $STRIP" >&5
  1468. echo "${ECHO_T}$STRIP" >&6
  1469. else
  1470. echo "$as_me:$LINENO: result: no" >&5
  1471. echo "${ECHO_T}no" >&6
  1472. fi
  1473. fi
  1474. if test -z "$ac_cv_prog_STRIP"; then
  1475. ac_ct_STRIP=$STRIP
  1476. # Extract the first word of "strip", so it can be a program name with args.
  1477. set dummy strip; ac_word=$2
  1478. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1479. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1480. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1481. echo $ECHO_N "(cached) $ECHO_C" >&6
  1482. else
  1483. if test -n "$ac_ct_STRIP"; then
  1484. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1485. else
  1486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1487. for as_dir in $PATH
  1488. do
  1489. IFS=$as_save_IFS
  1490. test -z "$as_dir" && as_dir=.
  1491. for ac_exec_ext in '' $ac_executable_extensions; do
  1492. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1493. ac_cv_prog_ac_ct_STRIP="strip"
  1494. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1495. break 2
  1496. fi
  1497. done
  1498. done
  1499. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1500. fi
  1501. fi
  1502. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1503. if test -n "$ac_ct_STRIP"; then
  1504. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1505. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1506. else
  1507. echo "$as_me:$LINENO: result: no" >&5
  1508. echo "${ECHO_T}no" >&6
  1509. fi
  1510. STRIP=$ac_ct_STRIP
  1511. else
  1512. STRIP="$ac_cv_prog_STRIP"
  1513. fi
  1514. fi
  1515. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1516. # We need awk for the "check" target. The system "awk" is bad on
  1517. # some platforms.
  1518. # Add the stamp file to the list of files AC keeps track of,
  1519. # along with our hook.
  1520. ac_config_headers="$ac_config_headers config.h"
  1521. echo "$as_me:$LINENO: checking for builtin ELF support" >&5
  1522. echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6
  1523. # Check whether --enable-elf or --disable-elf was given.
  1524. if test "${enable_elf+set}" = set; then
  1525. enableval="$enable_elf"
  1526. if test "${enableval}" = yes; then
  1527. echo "$as_me:$LINENO: result: yes" >&5
  1528. echo "${ECHO_T}yes" >&6
  1529. cat >>confdefs.h <<\_ACEOF
  1530. #define BUILTIN_ELF 1
  1531. _ACEOF
  1532. else
  1533. echo "$as_me:$LINENO: result: no" >&5
  1534. echo "${ECHO_T}no" >&6
  1535. fi
  1536. else
  1537. # enable by default
  1538. echo "$as_me:$LINENO: result: yes" >&5
  1539. echo "${ECHO_T}yes" >&6
  1540. cat >>confdefs.h <<\_ACEOF
  1541. #define BUILTIN_ELF 1
  1542. _ACEOF
  1543. fi;
  1544. echo "$as_me:$LINENO: checking for ELF core file support" >&5
  1545. echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6
  1546. # Check whether --enable-elf-core or --disable-elf-core was given.
  1547. if test "${enable_elf_core+set}" = set; then
  1548. enableval="$enable_elf_core"
  1549. if test "${enableval}" = yes; then
  1550. echo "$as_me:$LINENO: result: yes" >&5
  1551. echo "${ECHO_T}yes" >&6
  1552. cat >>confdefs.h <<\_ACEOF
  1553. #define ELFCORE 1
  1554. _ACEOF
  1555. else
  1556. echo "$as_me:$LINENO: result: no" >&5
  1557. echo "${ECHO_T}no" >&6
  1558. fi
  1559. else
  1560. # enable by default
  1561. echo "$as_me:$LINENO: result: yes" >&5
  1562. echo "${ECHO_T}yes" >&6
  1563. cat >>confdefs.h <<\_ACEOF
  1564. #define ELFCORE 1
  1565. _ACEOF
  1566. fi;
  1567. echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
  1568. echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6
  1569. # Check whether --enable-fsect-man5 or --disable-fsect-man5 was given.
  1570. if test "${enable_fsect_man5+set}" = set; then
  1571. enableval="$enable_fsect_man5"
  1572. if test "${enableval}" = yes; then
  1573. echo "$as_me:$LINENO: result: yes" >&5
  1574. echo "${ECHO_T}yes" >&6
  1575. fsect=5
  1576. else
  1577. echo "$as_me:$LINENO: result: no" >&5
  1578. echo "${ECHO_T}no" >&6
  1579. fsect=4
  1580. fi
  1581. else
  1582. # disable by default
  1583. echo "$as_me:$LINENO: result: no" >&5
  1584. echo "${ECHO_T}no" >&6
  1585. fsect=4
  1586. fi;
  1587. if test x$fsect = x5; then
  1588. FSECT5_TRUE=
  1589. FSECT5_FALSE='#'
  1590. else
  1591. FSECT5_TRUE='#'
  1592. FSECT5_FALSE=
  1593. fi
  1594. ac_ext=c
  1595. ac_cpp='$CPP $CPPFLAGS'
  1596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1599. if test -n "$ac_tool_prefix"; then
  1600. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1601. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1602. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1603. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1604. if test "${ac_cv_prog_CC+set}" = set; then
  1605. echo $ECHO_N "(cached) $ECHO_C" >&6
  1606. else
  1607. if test -n "$CC"; then
  1608. ac_cv_prog_CC="$CC" # Let the user override the test.
  1609. else
  1610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1611. for as_dir in $PATH
  1612. do
  1613. IFS=$as_save_IFS
  1614. test -z "$as_dir" && as_dir=.
  1615. for ac_exec_ext in '' $ac_executable_extensions; do
  1616. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1617. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1618. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1619. break 2
  1620. fi
  1621. done
  1622. done
  1623. fi
  1624. fi
  1625. CC=$ac_cv_prog_CC
  1626. if test -n "$CC"; then
  1627. echo "$as_me:$LINENO: result: $CC" >&5
  1628. echo "${ECHO_T}$CC" >&6
  1629. else
  1630. echo "$as_me:$LINENO: result: no" >&5
  1631. echo "${ECHO_T}no" >&6
  1632. fi
  1633. fi
  1634. if test -z "$ac_cv_prog_CC"; then
  1635. ac_ct_CC=$CC
  1636. # Extract the first word of "gcc", so it can be a program name with args.
  1637. set dummy gcc; ac_word=$2
  1638. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1639. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1640. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1641. echo $ECHO_N "(cached) $ECHO_C" >&6
  1642. else
  1643. if test -n "$ac_ct_CC"; then
  1644. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1645. else
  1646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1647. for as_dir in $PATH
  1648. do
  1649. IFS=$as_save_IFS
  1650. test -z "$as_dir" && as_dir=.
  1651. for ac_exec_ext in '' $ac_executable_extensions; do
  1652. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1653. ac_cv_prog_ac_ct_CC="gcc"
  1654. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1655. break 2
  1656. fi
  1657. done
  1658. done
  1659. fi
  1660. fi
  1661. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1662. if test -n "$ac_ct_CC"; then
  1663. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1664. echo "${ECHO_T}$ac_ct_CC" >&6
  1665. else
  1666. echo "$as_me:$LINENO: result: no" >&5
  1667. echo "${ECHO_T}no" >&6
  1668. fi
  1669. CC=$ac_ct_CC
  1670. else
  1671. CC="$ac_cv_prog_CC"
  1672. fi
  1673. if test -z "$CC"; then
  1674. if test -n "$ac_tool_prefix"; then
  1675. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1676. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1677. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1678. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1679. if test "${ac_cv_prog_CC+set}" = set; then
  1680. echo $ECHO_N "(cached) $ECHO_C" >&6
  1681. else
  1682. if test -n "$CC"; then
  1683. ac_cv_prog_CC="$CC" # Let the user override the test.
  1684. else
  1685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1686. for as_dir in $PATH
  1687. do
  1688. IFS=$as_save_IFS
  1689. test -z "$as_dir" && as_dir=.
  1690. for ac_exec_ext in '' $ac_executable_extensions; do
  1691. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1692. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1693. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1694. break 2
  1695. fi
  1696. done
  1697. done
  1698. fi
  1699. fi
  1700. CC=$ac_cv_prog_CC
  1701. if test -n "$CC"; then
  1702. echo "$as_me:$LINENO: result: $CC" >&5
  1703. echo "${ECHO_T}$CC" >&6
  1704. else
  1705. echo "$as_me:$LINENO: result: no" >&5
  1706. echo "${ECHO_T}no" >&6
  1707. fi
  1708. fi
  1709. if test -z "$ac_cv_prog_CC"; then
  1710. ac_ct_CC=$CC
  1711. # Extract the first word of "cc", so it can be a program name with args.
  1712. set dummy cc; ac_word=$2
  1713. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1714. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1715. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1716. echo $ECHO_N "(cached) $ECHO_C" >&6
  1717. else
  1718. if test -n "$ac_ct_CC"; then
  1719. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1720. else
  1721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1722. for as_dir in $PATH
  1723. do
  1724. IFS=$as_save_IFS
  1725. test -z "$as_dir" && as_dir=.
  1726. for ac_exec_ext in '' $ac_executable_extensions; do
  1727. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1728. ac_cv_prog_ac_ct_CC="cc"
  1729. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1730. break 2
  1731. fi
  1732. done
  1733. done
  1734. fi
  1735. fi
  1736. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1737. if test -n "$ac_ct_CC"; then
  1738. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1739. echo "${ECHO_T}$ac_ct_CC" >&6
  1740. else
  1741. echo "$as_me:$LINENO: result: no" >&5
  1742. echo "${ECHO_T}no" >&6
  1743. fi
  1744. CC=$ac_ct_CC
  1745. else
  1746. CC="$ac_cv_prog_CC"
  1747. fi
  1748. fi
  1749. if test -z "$CC"; then
  1750. # Extract the first word of "cc", so it can be a program name with args.
  1751. set dummy cc; ac_word=$2
  1752. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1753. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1754. if test "${ac_cv_prog_CC+set}" = set; then
  1755. echo $ECHO_N "(cached) $ECHO_C" >&6
  1756. else
  1757. if test -n "$CC"; then
  1758. ac_cv_prog_CC="$CC" # Let the user override the test.
  1759. else
  1760. ac_prog_rejected=no
  1761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1762. for as_dir in $PATH
  1763. do
  1764. IFS=$as_save_IFS
  1765. test -z "$as_dir" && as_dir=.
  1766. for ac_exec_ext in '' $ac_executable_extensions; do
  1767. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1768. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1769. ac_prog_rejected=yes
  1770. continue
  1771. fi
  1772. ac_cv_prog_CC="cc"
  1773. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1774. break 2
  1775. fi
  1776. done
  1777. done
  1778. if test $ac_prog_rejected = yes; then
  1779. # We found a bogon in the path, so make sure we never use it.
  1780. set dummy $ac_cv_prog_CC
  1781. shift
  1782. if test $# != 0; then
  1783. # We chose a different compiler from the bogus one.
  1784. # However, it has the same basename, so the bogon will be chosen
  1785. # first if we set CC to just the basename; use the full file name.
  1786. shift
  1787. set dummy "$as_dir/$ac_word" ${1+"$@"}
  1788. shift
  1789. ac_cv_prog_CC="$@"
  1790. fi
  1791. fi
  1792. fi
  1793. fi
  1794. CC=$ac_cv_prog_CC
  1795. if test -n "$CC"; then
  1796. echo "$as_me:$LINENO: result: $CC" >&5
  1797. echo "${ECHO_T}$CC" >&6
  1798. else
  1799. echo "$as_me:$LINENO: result: no" >&5
  1800. echo "${ECHO_T}no" >&6
  1801. fi
  1802. fi
  1803. if test -z "$CC"; then
  1804. if test -n "$ac_tool_prefix"; then
  1805. for ac_prog in cl
  1806. do
  1807. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1808. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1809. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1810. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1811. if test "${ac_cv_prog_CC+set}" = set; then
  1812. echo $ECHO_N "(cached) $ECHO_C" >&6
  1813. else
  1814. if test -n "$CC"; then
  1815. ac_cv_prog_CC="$CC" # Let the user override the test.
  1816. else
  1817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1818. for as_dir in $PATH
  1819. do
  1820. IFS=$as_save_IFS
  1821. test -z "$as_dir" && as_dir=.
  1822. for ac_exec_ext in '' $ac_executable_extensions; do
  1823. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1824. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1825. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1826. break 2
  1827. fi
  1828. done
  1829. done
  1830. fi
  1831. fi
  1832. CC=$ac_cv_prog_CC
  1833. if test -n "$CC"; then
  1834. echo "$as_me:$LINENO: result: $CC" >&5
  1835. echo "${ECHO_T}$CC" >&6
  1836. else
  1837. echo "$as_me:$LINENO: result: no" >&5
  1838. echo "${ECHO_T}no" >&6
  1839. fi
  1840. test -n "$CC" && break
  1841. done
  1842. fi
  1843. if test -z "$CC"; then
  1844. ac_ct_CC=$CC
  1845. for ac_prog in cl
  1846. do
  1847. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1848. set dummy $ac_prog; ac_word=$2
  1849. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1850. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1851. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1852. echo $ECHO_N "(cached) $ECHO_C" >&6
  1853. else
  1854. if test -n "$ac_ct_CC"; then
  1855. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1856. else
  1857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1858. for as_dir in $PATH
  1859. do
  1860. IFS=$as_save_IFS
  1861. test -z "$as_dir" && as_dir=.
  1862. for ac_exec_ext in '' $ac_executable_extensions; do
  1863. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1864. ac_cv_prog_ac_ct_CC="$ac_prog"
  1865. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1866. break 2
  1867. fi
  1868. done
  1869. done
  1870. fi
  1871. fi
  1872. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1873. if test -n "$ac_ct_CC"; then
  1874. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1875. echo "${ECHO_T}$ac_ct_CC" >&6
  1876. else
  1877. echo "$as_me:$LINENO: result: no" >&5
  1878. echo "${ECHO_T}no" >&6
  1879. fi
  1880. test -n "$ac_ct_CC" && break
  1881. done
  1882. CC=$ac_ct_CC
  1883. fi
  1884. fi
  1885. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
  1886. echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
  1887. { (exit 1); exit 1; }; }
  1888. # Provide some information about the compiler.
  1889. echo "$as_me:$LINENO:" \
  1890. "checking for C compiler version" >&5
  1891. ac_compiler=`set X $ac_compile; echo $2`
  1892. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1893. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1894. ac_status=$?
  1895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1896. (exit $ac_status); }
  1897. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1898. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1899. ac_status=$?
  1900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1901. (exit $ac_status); }
  1902. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1903. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1904. ac_status=$?
  1905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1906. (exit $ac_status); }
  1907. cat >conftest.$ac_ext <<_ACEOF
  1908. #line $LINENO "configure"
  1909. #include "confdefs.h"
  1910. #ifdef F77_DUMMY_MAIN
  1911. # ifdef __cplusplus
  1912. extern "C"
  1913. # endif
  1914. int F77_DUMMY_MAIN() { return 1; }
  1915. #endif
  1916. int
  1917. main ()
  1918. {
  1919. ;
  1920. return 0;
  1921. }
  1922. _ACEOF
  1923. ac_clean_files_save=$ac_clean_files
  1924. ac_clean_files="$ac_clean_files a.out a.exe"
  1925. # Try to create an executable without -o first, disregard a.out.
  1926. # It will help us diagnose broken compilers, and finding out an intuition
  1927. # of exeext.
  1928. echo "$as_me:$LINENO: checking for C compiler default output" >&5
  1929. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1930. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1931. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1932. (eval $ac_link_default) 2>&5
  1933. ac_status=$?
  1934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1935. (exit $ac_status); }; then
  1936. # Find the output, starting from the most likely. This scheme is
  1937. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1938. # resort.
  1939. # Be careful to initialize this variable, since it used to be cached.
  1940. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1941. ac_cv_exeext=
  1942. for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
  1943. ls a.out conftest 2>/dev/null;
  1944. ls a.* conftest.* 2>/dev/null`; do
  1945. case $ac_file in
  1946. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
  1947. a.out ) # We found the default executable, but exeext='' is most
  1948. # certainly right.
  1949. break;;
  1950. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1951. # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  1952. export ac_cv_exeext
  1953. break;;
  1954. * ) break;;
  1955. esac
  1956. done
  1957. else
  1958. echo "$as_me: failed program was:" >&5
  1959. cat conftest.$ac_ext >&5
  1960. { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
  1961. echo "$as_me: error: C compiler cannot create executables" >&2;}
  1962. { (exit 77); exit 77; }; }
  1963. fi
  1964. ac_exeext=$ac_cv_exeext
  1965. echo "$as_me:$LINENO: result: $ac_file" >&5
  1966. echo "${ECHO_T}$ac_file" >&6
  1967. # Check the compiler produces executables we can run. If not, either
  1968. # the compiler is broken, or we cross compile.
  1969. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1970. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1971. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1972. # If not cross compiling, check that we can run a simple program.
  1973. if test "$cross_compiling" != yes; then
  1974. if { ac_try='./$ac_file'
  1975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1976. (eval $ac_try) 2>&5
  1977. ac_status=$?
  1978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1979. (exit $ac_status); }; }; then
  1980. cross_compiling=no
  1981. else
  1982. if test "$cross_compiling" = maybe; then
  1983. cross_compiling=yes
  1984. else
  1985. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1986. If you meant to cross compile, use \`--host'." >&5
  1987. echo "$as_me: error: cannot run C compiled programs.
  1988. If you meant to cross compile, use \`--host'." >&2;}
  1989. { (exit 1); exit 1; }; }
  1990. fi
  1991. fi
  1992. fi
  1993. echo "$as_me:$LINENO: result: yes" >&5
  1994. echo "${ECHO_T}yes" >&6
  1995. rm -f a.out a.exe conftest$ac_cv_exeext
  1996. ac_clean_files=$ac_clean_files_save
  1997. # Check the compiler produces executables we can run. If not, either
  1998. # the compiler is broken, or we cross compile.
  1999. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2000. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2001. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2002. echo "${ECHO_T}$cross_compiling" >&6
  2003. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2004. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2005. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2006. (eval $ac_link) 2>&5
  2007. ac_status=$?
  2008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2009. (exit $ac_status); }; then
  2010. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2011. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2012. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2013. # `rm'.
  2014. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  2015. case $ac_file in
  2016. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  2017. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2018. export ac_cv_exeext
  2019. break;;
  2020. * ) break;;
  2021. esac
  2022. done
  2023. else
  2024. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
  2025. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
  2026. { (exit 1); exit 1; }; }
  2027. fi
  2028. rm -f conftest$ac_cv_exeext
  2029. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2030. echo "${ECHO_T}$ac_cv_exeext" >&6
  2031. rm -f conftest.$ac_ext
  2032. EXEEXT=$ac_cv_exeext
  2033. ac_exeext=$EXEEXT
  2034. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2035. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2036. if test "${ac_cv_objext+set}" = set; then
  2037. echo $ECHO_N "(cached) $ECHO_C" >&6
  2038. else
  2039. cat >conftest.$ac_ext <<_ACEOF
  2040. #line $LINENO "configure"
  2041. #include "confdefs.h"
  2042. #ifdef F77_DUMMY_MAIN
  2043. # ifdef __cplusplus
  2044. extern "C"
  2045. # endif
  2046. int F77_DUMMY_MAIN() { return 1; }
  2047. #endif
  2048. int
  2049. main ()
  2050. {
  2051. ;
  2052. return 0;
  2053. }
  2054. _ACEOF
  2055. rm -f conftest.o conftest.obj
  2056. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2057. (eval $ac_compile) 2>&5
  2058. ac_status=$?
  2059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2060. (exit $ac_status); }; then
  2061. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2062. case $ac_file in
  2063. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  2064. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2065. break;;
  2066. esac
  2067. done
  2068. else
  2069. echo "$as_me: failed program was:" >&5
  2070. cat conftest.$ac_ext >&5
  2071. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
  2072. echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
  2073. { (exit 1); exit 1; }; }
  2074. fi
  2075. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2076. fi
  2077. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2078. echo "${ECHO_T}$ac_cv_objext" >&6
  2079. OBJEXT=$ac_cv_objext
  2080. ac_objext=$OBJEXT
  2081. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2082. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2083. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2084. echo $ECHO_N "(cached) $ECHO_C" >&6
  2085. else
  2086. cat >conftest.$ac_ext <<_ACEOF
  2087. #line $LINENO "configure"
  2088. #include "confdefs.h"
  2089. #ifdef F77_DUMMY_MAIN
  2090. # ifdef __cplusplus
  2091. extern "C"
  2092. # endif
  2093. int F77_DUMMY_MAIN() { return 1; }
  2094. #endif
  2095. int
  2096. main ()
  2097. {
  2098. #ifndef __GNUC__
  2099. choke me
  2100. #endif
  2101. ;
  2102. return 0;
  2103. }
  2104. _ACEOF
  2105. rm -f conftest.$ac_objext
  2106. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2107. (eval $ac_compile) 2>&5
  2108. ac_status=$?
  2109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2110. (exit $ac_status); } &&
  2111. { ac_try='test -s conftest.$ac_objext'
  2112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2113. (eval $ac_try) 2>&5
  2114. ac_status=$?
  2115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2116. (exit $ac_status); }; }; then
  2117. ac_compiler_gnu=yes
  2118. else
  2119. echo "$as_me: failed program was:" >&5
  2120. cat conftest.$ac_ext >&5
  2121. ac_compiler_gnu=no
  2122. fi
  2123. rm -f conftest.$ac_objext conftest.$ac_ext
  2124. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2125. fi
  2126. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2127. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2128. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2129. ac_test_CFLAGS=${CFLAGS+set}
  2130. ac_save_CFLAGS=$CFLAGS
  2131. CFLAGS="-g"
  2132. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2133. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2134. if test "${ac_cv_prog_cc_g+set}" = set; then
  2135. echo $ECHO_N "(cached) $ECHO_C" >&6
  2136. else
  2137. cat >conftest.$ac_ext <<_ACEOF
  2138. #line $LINENO "configure"
  2139. #include "confdefs.h"
  2140. #ifdef F77_DUMMY_MAIN
  2141. # ifdef __cplusplus
  2142. extern "C"
  2143. # endif
  2144. int F77_DUMMY_MAIN() { return 1; }
  2145. #endif
  2146. int
  2147. main ()
  2148. {
  2149. ;
  2150. return 0;
  2151. }
  2152. _ACEOF
  2153. rm -f conftest.$ac_objext
  2154. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2155. (eval $ac_compile) 2>&5
  2156. ac_status=$?
  2157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2158. (exit $ac_status); } &&
  2159. { ac_try='test -s conftest.$ac_objext'
  2160. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2161. (eval $ac_try) 2>&5
  2162. ac_status=$?
  2163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2164. (exit $ac_status); }; }; then
  2165. ac_cv_prog_cc_g=yes
  2166. else
  2167. echo "$as_me: failed program was:" >&5
  2168. cat conftest.$ac_ext >&5
  2169. ac_cv_prog_cc_g=no
  2170. fi
  2171. rm -f conftest.$ac_objext conftest.$ac_ext
  2172. fi
  2173. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2174. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2175. if test "$ac_test_CFLAGS" = set; then
  2176. CFLAGS=$ac_save_CFLAGS
  2177. elif test $ac_cv_prog_cc_g = yes; then
  2178. if test "$GCC" = yes; then
  2179. CFLAGS="-g -O2"
  2180. else
  2181. CFLAGS="-g"
  2182. fi
  2183. else
  2184. if test "$GCC" = yes; then
  2185. CFLAGS="-O2"
  2186. else
  2187. CFLAGS=
  2188. fi
  2189. fi
  2190. # Some people use a C++ compiler to compile C. Since we use `exit',
  2191. # in C++ we need to declare it. In case someone uses the same compiler
  2192. # for both compiling C and C++ we need to have the C++ compiler decide
  2193. # the declaration of exit, since it's the most demanding environment.
  2194. cat >conftest.$ac_ext <<_ACEOF
  2195. #ifndef __cplusplus
  2196. choke me
  2197. #endif
  2198. _ACEOF
  2199. rm -f conftest.$ac_objext
  2200. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2201. (eval $ac_compile) 2>&5
  2202. ac_status=$?
  2203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2204. (exit $ac_status); } &&
  2205. { ac_try='test -s conftest.$ac_objext'
  2206. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2207. (eval $ac_try) 2>&5
  2208. ac_status=$?
  2209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2210. (exit $ac_status); }; }; then
  2211. for ac_declaration in \
  2212. ''\
  2213. '#include <stdlib.h>' \
  2214. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2215. 'extern "C" void std::exit (int); using std::exit;' \
  2216. 'extern "C" void exit (int) throw ();' \
  2217. 'extern "C" void exit (int);' \
  2218. 'void exit (int);'
  2219. do
  2220. cat >conftest.$ac_ext <<_ACEOF
  2221. #line $LINENO "configure"
  2222. #include "confdefs.h"
  2223. #include <stdlib.h>
  2224. $ac_declaration
  2225. #ifdef F77_DUMMY_MAIN
  2226. # ifdef __cplusplus
  2227. extern "C"
  2228. # endif
  2229. int F77_DUMMY_MAIN() { return 1; }
  2230. #endif
  2231. int
  2232. main ()
  2233. {
  2234. exit (42);
  2235. ;
  2236. return 0;
  2237. }
  2238. _ACEOF
  2239. rm -f conftest.$ac_objext
  2240. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2241. (eval $ac_compile) 2>&5
  2242. ac_status=$?
  2243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2244. (exit $ac_status); } &&
  2245. { ac_try='test -s conftest.$ac_objext'
  2246. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2247. (eval $ac_try) 2>&5
  2248. ac_status=$?
  2249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2250. (exit $ac_status); }; }; then
  2251. :
  2252. else
  2253. echo "$as_me: failed program was:" >&5
  2254. cat conftest.$ac_ext >&5
  2255. continue
  2256. fi
  2257. rm -f conftest.$ac_objext conftest.$ac_ext
  2258. cat >conftest.$ac_ext <<_ACEOF
  2259. #line $LINENO "configure"
  2260. #include "confdefs.h"
  2261. $ac_declaration
  2262. #ifdef F77_DUMMY_MAIN
  2263. # ifdef __cplusplus
  2264. extern "C"
  2265. # endif
  2266. int F77_DUMMY_MAIN() { return 1; }
  2267. #endif
  2268. int
  2269. main ()
  2270. {
  2271. exit (42);
  2272. ;
  2273. return 0;
  2274. }
  2275. _ACEOF
  2276. rm -f conftest.$ac_objext
  2277. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2278. (eval $ac_compile) 2>&5
  2279. ac_status=$?
  2280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2281. (exit $ac_status); } &&
  2282. { ac_try='test -s conftest.$ac_objext'
  2283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2284. (eval $ac_try) 2>&5
  2285. ac_status=$?
  2286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2287. (exit $ac_status); }; }; then
  2288. break
  2289. else
  2290. echo "$as_me: failed program was:" >&5
  2291. cat conftest.$ac_ext >&5
  2292. fi
  2293. rm -f conftest.$ac_objext conftest.$ac_ext
  2294. done
  2295. rm -f conftest*
  2296. if test -n "$ac_declaration"; then
  2297. echo '#ifdef __cplusplus' >>confdefs.h
  2298. echo $ac_declaration >>confdefs.h
  2299. echo '#endif' >>confdefs.h
  2300. fi
  2301. else
  2302. echo "$as_me: failed program was:" >&5
  2303. cat conftest.$ac_ext >&5
  2304. fi
  2305. rm -f conftest.$ac_objext conftest.$ac_ext
  2306. ac_ext=c
  2307. ac_cpp='$CPP $CPPFLAGS'
  2308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2311. rm -f .deps 2>/dev/null
  2312. mkdir .deps 2>/dev/null
  2313. if test -d .deps; then
  2314. DEPDIR=.deps
  2315. else
  2316. # MS-DOS does not allow filenames that begin with a dot.
  2317. DEPDIR=_deps
  2318. fi
  2319. rmdir .deps 2>/dev/null
  2320. ac_config_commands="$ac_config_commands depfiles"
  2321. am_make=${MAKE-make}
  2322. cat > confinc << 'END'
  2323. doit:
  2324. @echo done
  2325. END
  2326. # If we don't find an include directive, just comment out the code.
  2327. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2328. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2329. am__include="#"
  2330. am__quote=
  2331. _am_result=none
  2332. # First try GNU make style include.
  2333. echo "include confinc" > confmf
  2334. # We grep out `Entering directory' and `Leaving directory'
  2335. # messages which can occur if `w' ends up in MAKEFLAGS.
  2336. # In particular we don't look at `^make:' because GNU make might
  2337. # be invoked under some other name (usually "gmake"), in which
  2338. # case it prints its new name instead of `make'.
  2339. if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
  2340. am__include=include
  2341. am__quote=
  2342. _am_result=GNU
  2343. fi
  2344. # Now try BSD make style include.
  2345. if test "$am__include" = "#"; then
  2346. echo '.include "confinc"' > confmf
  2347. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2348. am__include=.include
  2349. am__quote="\""
  2350. _am_result=BSD
  2351. fi
  2352. fi
  2353. echo "$as_me:$LINENO: result: $_am_result" >&5
  2354. echo "${ECHO_T}$_am_result" >&6
  2355. rm -f confinc confmf
  2356. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2357. if test "${enable_dependency_tracking+set}" = set; then
  2358. enableval="$enable_dependency_tracking"
  2359. fi;
  2360. if test "x$enable_dependency_tracking" != xno; then
  2361. am_depcomp="$ac_aux_dir/depcomp"
  2362. AMDEPBACKSLASH='\'
  2363. fi
  2364. if test "x$enable_dependency_tracking" != xno; then
  2365. AMDEP_TRUE=
  2366. AMDEP_FALSE='#'
  2367. else
  2368. AMDEP_TRUE='#'
  2369. AMDEP_FALSE=
  2370. fi
  2371. depcc="$CC" am_compiler_list=
  2372. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2373. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2374. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2375. echo $ECHO_N "(cached) $ECHO_C" >&6
  2376. else
  2377. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2378. # We make a subdir and do the tests there. Otherwise we can end up
  2379. # making bogus files that we don't know about and never remove. For
  2380. # instance it was reported that on HP-UX the gcc test will end up
  2381. # making a dummy file named `D' -- because `-MD' means `put the output
  2382. # in D'.
  2383. mkdir conftest.dir
  2384. # Copy depcomp to subdir because otherwise we won't find it if we're
  2385. # using a relative directory.
  2386. cp "$am_depcomp" conftest.dir
  2387. cd conftest.dir
  2388. am_cv_CC_dependencies_compiler_type=none
  2389. if test "$am_compiler_list" = ""; then
  2390. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2391. fi
  2392. for depmode in $am_compiler_list; do
  2393. # We need to recreate these files for each test, as the compiler may
  2394. # overwrite some of them when testing with obscure command lines.
  2395. # This happens at least with the AIX C compiler.
  2396. echo '#include "conftest.h"' > conftest.c
  2397. echo 'int i;' > conftest.h
  2398. echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  2399. case $depmode in
  2400. nosideeffect)
  2401. # after this tag, mechanisms are not by side-effect, so they'll
  2402. # only be used when explicitly requested
  2403. if test "x$enable_dependency_tracking" = xyes; then
  2404. continue
  2405. else
  2406. break
  2407. fi
  2408. ;;
  2409. none) break ;;
  2410. esac
  2411. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2412. # mode. It turns out that the SunPro C++ compiler does not properly
  2413. # handle `-M -o', and we need to detect this.
  2414. if depmode=$depmode \
  2415. source=conftest.c object=conftest.o \
  2416. depfile=conftest.Po tmpdepfile=conftest.TPo \
  2417. $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
  2418. grep conftest.h conftest.Po > /dev/null 2>&1 &&
  2419. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2420. am_cv_CC_dependencies_compiler_type=$depmode
  2421. break
  2422. fi
  2423. done
  2424. cd ..
  2425. rm -rf conftest.dir
  2426. else
  2427. am_cv_CC_dependencies_compiler_type=none
  2428. fi
  2429. fi
  2430. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2431. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2432. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2433. # Find a good install program. We prefer a C program (faster),
  2434. # so one script is as good as another. But avoid the broken or
  2435. # incompatible versions:
  2436. # SysV /etc/install, /usr/sbin/install
  2437. # SunOS /usr/etc/install
  2438. # IRIX /sbin/install
  2439. # AIX /bin/install
  2440. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2441. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2442. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2443. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2444. # ./install, which can be erroneously created by make from ./install.sh.
  2445. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2446. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2447. if test -z "$INSTALL"; then
  2448. if test "${ac_cv_path_install+set}" = set; then
  2449. echo $ECHO_N "(cached) $ECHO_C" >&6
  2450. else
  2451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2452. for as_dir in $PATH
  2453. do
  2454. IFS=$as_save_IFS
  2455. test -z "$as_dir" && as_dir=.
  2456. # Account for people who put trailing slashes in PATH elements.
  2457. case $as_dir/ in
  2458. ./ | .// | /cC/* | \
  2459. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2460. /usr/ucb/* ) ;;
  2461. *)
  2462. # OSF1 and SCO ODT 3.0 have their own names for install.
  2463. # Don't use installbsd from OSF since it installs stuff as root
  2464. # by default.
  2465. for ac_prog in ginstall scoinst install; do
  2466. for ac_exec_ext in '' $ac_executable_extensions; do
  2467. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2468. if test $ac_prog = install &&
  2469. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2470. # AIX install. It has an incompatible calling convention.
  2471. :
  2472. elif test $ac_prog = install &&
  2473. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2474. # program-specific install script used by HP pwplus--don't use.
  2475. :
  2476. else
  2477. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2478. break 3
  2479. fi
  2480. fi
  2481. done
  2482. done
  2483. ;;
  2484. esac
  2485. done
  2486. fi
  2487. if test "${ac_cv_path_install+set}" = set; then
  2488. INSTALL=$ac_cv_path_install
  2489. else
  2490. # As a last resort, use the slow shell script. We don't cache a
  2491. # path for INSTALL within a source directory, because that will
  2492. # break other packages using the cache if that directory is
  2493. # removed, or if the path is relative.
  2494. INSTALL=$ac_install_sh
  2495. fi
  2496. fi
  2497. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2498. echo "${ECHO_T}$INSTALL" >&6
  2499. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2500. # It thinks the first close brace ends the variable substitution.
  2501. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2502. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2503. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2504. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2505. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2506. LN_S=$as_ln_s
  2507. if test "$LN_S" = "ln -s"; then
  2508. echo "$as_me:$LINENO: result: yes" >&5
  2509. echo "${ECHO_T}yes" >&6
  2510. else
  2511. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2512. echo "${ECHO_T}no, using $LN_S" >&6
  2513. fi
  2514. # Check whether --enable-shared or --disable-shared was given.
  2515. if test "${enable_shared+set}" = set; then
  2516. enableval="$enable_shared"
  2517. p=${PACKAGE-default}
  2518. case $enableval in
  2519. yes) enable_shared=yes ;;
  2520. no) enable_shared=no ;;
  2521. *)
  2522. enable_shared=no
  2523. # Look at the argument we got. We use all the common list separators.
  2524. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2525. for pkg in $enableval; do
  2526. if test "X$pkg" = "X$p"; then
  2527. enable_shared=yes
  2528. fi
  2529. done
  2530. IFS="$ac_save_ifs"
  2531. ;;
  2532. esac
  2533. else
  2534. enable_shared=yes
  2535. fi;
  2536. # Check whether --enable-static or --disable-static was given.
  2537. if test "${enable_static+set}" = set; then
  2538. enableval="$enable_static"
  2539. p=${PACKAGE-default}
  2540. case $enableval in
  2541. yes) enable_static=yes ;;
  2542. no) enable_static=no ;;
  2543. *)
  2544. enable_static=no
  2545. # Look at the argument we got. We use all the common list separators.
  2546. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2547. for pkg in $enableval; do
  2548. if test "X$pkg" = "X$p"; then
  2549. enable_static=yes
  2550. fi
  2551. done
  2552. IFS="$ac_save_ifs"
  2553. ;;
  2554. esac
  2555. else
  2556. enable_static=yes
  2557. fi;
  2558. # Check whether --enable-fast-install or --disable-fast-install was given.
  2559. if test "${enable_fast_install+set}" = set; then
  2560. enableval="$enable_fast_install"
  2561. p=${PACKAGE-default}
  2562. case $enableval in
  2563. yes) enable_fast_install=yes ;;
  2564. no) enable_fast_install=no ;;
  2565. *)
  2566. enable_fast_install=no
  2567. # Look at the argument we got. We use all the common list separators.
  2568. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2569. for pkg in $enableval; do
  2570. if test "X$pkg" = "X$p"; then
  2571. enable_fast_install=yes
  2572. fi
  2573. done
  2574. IFS="$ac_save_ifs"
  2575. ;;
  2576. esac
  2577. else
  2578. enable_fast_install=yes
  2579. fi;
  2580. # Make sure we can run config.sub.
  2581. $ac_config_sub sun4 >/dev/null 2>&1 ||
  2582. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  2583. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  2584. { (exit 1); exit 1; }; }
  2585. echo "$as_me:$LINENO: checking build system type" >&5
  2586. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  2587. if test "${ac_cv_build+set}" = set; then
  2588. echo $ECHO_N "(cached) $ECHO_C" >&6
  2589. else
  2590. ac_cv_build_alias=$build_alias
  2591. test -z "$ac_cv_build_alias" &&
  2592. ac_cv_build_alias=`$ac_config_guess`
  2593. test -z "$ac_cv_build_alias" &&
  2594. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2595. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2596. { (exit 1); exit 1; }; }
  2597. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  2598. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  2599. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  2600. { (exit 1); exit 1; }; }
  2601. fi
  2602. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2603. echo "${ECHO_T}$ac_cv_build" >&6
  2604. build=$ac_cv_build
  2605. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2606. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2607. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2608. echo "$as_me:$LINENO: checking host system type" >&5
  2609. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  2610. if test "${ac_cv_host+set}" = set; then
  2611. echo $ECHO_N "(cached) $ECHO_C" >&6
  2612. else
  2613. ac_cv_host_alias=$host_alias
  2614. test -z "$ac_cv_host_alias" &&
  2615. ac_cv_host_alias=$ac_cv_build_alias
  2616. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  2617. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  2618. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  2619. { (exit 1); exit 1; }; }
  2620. fi
  2621. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2622. echo "${ECHO_T}$ac_cv_host" >&6
  2623. host=$ac_cv_host
  2624. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2625. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2626. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2627. # Find the correct PATH separator. Usually this is `:', but
  2628. # DJGPP uses `;' like DOS.
  2629. if test "X${PATH_SEPARATOR+set}" != Xset; then
  2630. UNAME=${UNAME-`uname 2>/dev/null`}
  2631. case X$UNAME in
  2632. *-DOS) lt_cv_sys_path_separator=';' ;;
  2633. *) lt_cv_sys_path_separator=':' ;;
  2634. esac
  2635. PATH_SEPARATOR=$lt_cv_sys_path_separator
  2636. fi
  2637. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2638. if test "${with_gnu_ld+set}" = set; then
  2639. withval="$with_gnu_ld"
  2640. test "$withval" = no || with_gnu_ld=yes
  2641. else
  2642. with_gnu_ld=no
  2643. fi;
  2644. ac_prog=ld
  2645. if test "$GCC" = yes; then
  2646. # Check if gcc -print-prog-name=ld gives a path.
  2647. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  2648. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  2649. case $host in
  2650. *-*-mingw*)
  2651. # gcc leaves a trailing carriage return which upsets mingw
  2652. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2653. *)
  2654. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2655. esac
  2656. case $ac_prog in
  2657. # Accept absolute paths.
  2658. [\\/]* | [A-Za-z]:[\\/]*)
  2659. re_direlt='/[^/][^/]*/\.\./'
  2660. # Canonicalize the path of ld
  2661. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  2662. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2663. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  2664. done
  2665. test -z "$LD" && LD="$ac_prog"
  2666. ;;
  2667. "")
  2668. # If it fails, then pretend we aren't using GCC.
  2669. ac_prog=ld
  2670. ;;
  2671. *)
  2672. # If it is relative, then search for the first ld in PATH.
  2673. with_gnu_ld=unknown
  2674. ;;
  2675. esac
  2676. elif test "$with_gnu_ld" = yes; then
  2677. echo "$as_me:$LINENO: checking for GNU ld" >&5
  2678. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  2679. else
  2680. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  2681. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  2682. fi
  2683. if test "${lt_cv_path_LD+set}" = set; then
  2684. echo $ECHO_N "(cached) $ECHO_C" >&6
  2685. else
  2686. if test -z "$LD"; then
  2687. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2688. for ac_dir in $PATH; do
  2689. test -z "$ac_dir" && ac_dir=.
  2690. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2691. lt_cv_path_LD="$ac_dir/$ac_prog"
  2692. # Check to see if the program is GNU ld. I'd rather use --version,
  2693. # but apparently some GNU ld's only accept -v.
  2694. # Break only if it was the GNU/non-GNU ld that we prefer.
  2695. if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  2696. test "$with_gnu_ld" != no && break
  2697. else
  2698. test "$with_gnu_ld" != yes && break
  2699. fi
  2700. fi
  2701. done
  2702. IFS="$ac_save_ifs"
  2703. else
  2704. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2705. fi
  2706. fi
  2707. LD="$lt_cv_path_LD"
  2708. if test -n "$LD"; then
  2709. echo "$as_me:$LINENO: result: $LD" >&5
  2710. echo "${ECHO_T}$LD" >&6
  2711. else
  2712. echo "$as_me:$LINENO: result: no" >&5
  2713. echo "${ECHO_T}no" >&6
  2714. fi
  2715. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  2716. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  2717. { (exit 1); exit 1; }; }
  2718. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  2719. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  2720. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  2721. echo $ECHO_N "(cached) $ECHO_C" >&6
  2722. else
  2723. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  2724. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  2725. lt_cv_prog_gnu_ld=yes
  2726. else
  2727. lt_cv_prog_gnu_ld=no
  2728. fi
  2729. fi
  2730. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  2731. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  2732. with_gnu_ld=$lt_cv_prog_gnu_ld
  2733. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  2734. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  2735. if test "${lt_cv_ld_reload_flag+set}" = set; then
  2736. echo $ECHO_N "(cached) $ECHO_C" >&6
  2737. else
  2738. lt_cv_ld_reload_flag='-r'
  2739. fi
  2740. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  2741. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  2742. reload_flag=$lt_cv_ld_reload_flag
  2743. test -n "$reload_flag" && reload_flag=" $reload_flag"
  2744. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  2745. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  2746. if test "${lt_cv_path_NM+set}" = set; then
  2747. echo $ECHO_N "(cached) $ECHO_C" >&6
  2748. else
  2749. if test -n "$NM"; then
  2750. # Let the user override the test.
  2751. lt_cv_path_NM="$NM"
  2752. else
  2753. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2754. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  2755. test -z "$ac_dir" && ac_dir=.
  2756. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  2757. if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  2758. # Check to see if the nm accepts a BSD-compat flag.
  2759. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2760. # nm: unknown option "B" ignored
  2761. # Tru64's nm complains that /dev/null is an invalid object file
  2762. if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  2763. lt_cv_path_NM="$tmp_nm -B"
  2764. break
  2765. elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  2766. lt_cv_path_NM="$tmp_nm -p"
  2767. break
  2768. else
  2769. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2770. continue # so that we can try to find one that supports BSD flags
  2771. fi
  2772. fi
  2773. done
  2774. IFS="$ac_save_ifs"
  2775. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2776. fi
  2777. fi
  2778. NM="$lt_cv_path_NM"
  2779. echo "$as_me:$LINENO: result: $NM" >&5
  2780. echo "${ECHO_T}$NM" >&6
  2781. echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
  2782. echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
  2783. if test "${lt_cv_deplibs_check_method+set}" = set; then
  2784. echo $ECHO_N "(cached) $ECHO_C" >&6
  2785. else
  2786. lt_cv_file_magic_cmd='$MAGIC_CMD'
  2787. lt_cv_file_magic_test_file=
  2788. lt_cv_deplibs_check_method='unknown'
  2789. # Need to set the preceding variable on all platforms that support
  2790. # interlibrary dependencies.
  2791. # 'none' -- dependencies not supported.
  2792. # `unknown' -- same as none, but documents that we really don't know.
  2793. # 'pass_all' -- all dependencies passed with no checks.
  2794. # 'test_compile' -- check by making test program.
  2795. # 'file_magic [[regex]]' -- check by looking for files in library path
  2796. # which responds to the $file_magic_cmd with a given egrep regex.
  2797. # If you have `file' or equivalent on your system and you're not sure
  2798. # whether `pass_all' will *always* work, you probably want this one.
  2799. case $host_os in
  2800. aix4* | aix5*)
  2801. lt_cv_deplibs_check_method=pass_all
  2802. ;;
  2803. beos*)
  2804. lt_cv_deplibs_check_method=pass_all
  2805. ;;
  2806. bsdi4*)
  2807. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  2808. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2809. lt_cv_file_magic_test_file=/shlib/libc.so
  2810. ;;
  2811. cygwin* | mingw* | pw32*)
  2812. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2813. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2814. ;;
  2815. darwin* | rhapsody*)
  2816. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  2817. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2818. case "$host_os" in
  2819. rhapsody* | darwin1.[012])
  2820. lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  2821. ;;
  2822. *) # Darwin 1.3 on
  2823. lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  2824. ;;
  2825. esac
  2826. ;;
  2827. freebsd*)
  2828. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2829. case $host_cpu in
  2830. i*86 )
  2831. # Not sure whether the presence of OpenBSD here was a mistake.
  2832. # Let's accept both of them until this is cleared up.
  2833. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  2834. lt_cv_file_magic_cmd=/usr/bin/file
  2835. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2836. ;;
  2837. esac
  2838. else
  2839. lt_cv_deplibs_check_method=pass_all
  2840. fi
  2841. ;;
  2842. gnu*)
  2843. lt_cv_deplibs_check_method=pass_all
  2844. ;;
  2845. hpux10.20*|hpux11*)
  2846. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  2847. lt_cv_file_magic_cmd=/usr/bin/file
  2848. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2849. ;;
  2850. irix5* | irix6*)
  2851. case $host_os in
  2852. irix5*)
  2853. # this will be overridden with pass_all, but let us keep it just in case
  2854. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  2855. ;;
  2856. *)
  2857. case $LD in
  2858. *-32|*"-32 ") libmagic=32-bit;;
  2859. *-n32|*"-n32 ") libmagic=N32;;
  2860. *-64|*"-64 ") libmagic=64-bit;;
  2861. *) libmagic=never-match;;
  2862. esac
  2863. # this will be overridden with pass_all, but let us keep it just in case
  2864. lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  2865. ;;
  2866. esac
  2867. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  2868. lt_cv_deplibs_check_method=pass_all
  2869. ;;
  2870. # This must be Linux ELF.
  2871. linux-gnu*)
  2872. case $host_cpu in
  2873. alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
  2874. lt_cv_deplibs_check_method=pass_all ;;
  2875. *)
  2876. # glibc up to 2.1.1 does not perform some relocations on ARM
  2877. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  2878. esac
  2879. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  2880. ;;
  2881. netbsd*)
  2882. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2883. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  2884. else
  2885. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  2886. fi
  2887. ;;
  2888. newos6*)
  2889. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  2890. lt_cv_file_magic_cmd=/usr/bin/file
  2891. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2892. ;;
  2893. openbsd*)
  2894. lt_cv_file_magic_cmd=/usr/bin/file
  2895. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2896. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2897. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  2898. else
  2899. lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  2900. fi
  2901. ;;
  2902. osf3* | osf4* | osf5*)
  2903. # this will be overridden with pass_all, but let us keep it just in case
  2904. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  2905. lt_cv_file_magic_test_file=/shlib/libc.so
  2906. lt_cv_deplibs_check_method=pass_all
  2907. ;;
  2908. sco3.2v5*)
  2909. lt_cv_deplibs_check_method=pass_all
  2910. ;;
  2911. solaris*)
  2912. lt_cv_deplibs_check_method=pass_all
  2913. lt_cv_file_magic_test_file=/lib/libc.so
  2914. ;;
  2915. sysv5uw[78]* | sysv4*uw2*)
  2916. lt_cv_deplibs_check_method=pass_all
  2917. ;;
  2918. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2919. case $host_vendor in
  2920. motorola)
  2921. 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]'
  2922. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2923. ;;
  2924. ncr)
  2925. lt_cv_deplibs_check_method=pass_all
  2926. ;;
  2927. sequent)
  2928. lt_cv_file_magic_cmd='/bin/file'
  2929. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  2930. ;;
  2931. sni)
  2932. lt_cv_file_magic_cmd='/bin/file'
  2933. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  2934. lt_cv_file_magic_test_file=/lib/libc.so
  2935. ;;
  2936. esac
  2937. ;;
  2938. esac
  2939. fi
  2940. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  2941. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  2942. file_magic_cmd=$lt_cv_file_magic_cmd
  2943. deplibs_check_method=$lt_cv_deplibs_check_method
  2944. # Check for command to grab the raw symbol name followed by C symbol from nm.
  2945. echo "$as_me:$LINENO: checking command to parse $NM output" >&5
  2946. echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
  2947. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  2948. echo $ECHO_N "(cached) $ECHO_C" >&6
  2949. else
  2950. # These are sane defaults that work on at least a few old systems.
  2951. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  2952. # Character class describing NM global symbol codes.
  2953. symcode='[BCDEGRST]'
  2954. # Regexp to match symbols that can be accessed directly from C.
  2955. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  2956. # Transform the above into a raw symbol and a C symbol.
  2957. symxfrm='\1 \2\3 \3'
  2958. # Transform an extracted symbol line into a proper C declaration
  2959. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  2960. # Transform an extracted symbol line into symbol name and symbol address
  2961. 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'"
  2962. # Define system-specific variables.
  2963. case $host_os in
  2964. aix*)
  2965. symcode='[BCDT]'
  2966. ;;
  2967. cygwin* | mingw* | pw32*)
  2968. symcode='[ABCDGISTW]'
  2969. ;;
  2970. hpux*) # Its linker distinguishes data from code symbols
  2971. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  2972. 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'"
  2973. ;;
  2974. irix*)
  2975. symcode='[BCDEGRST]'
  2976. ;;
  2977. solaris* | sysv5*)
  2978. symcode='[BDT]'
  2979. ;;
  2980. sysv4)
  2981. symcode='[DFNSTU]'
  2982. ;;
  2983. esac
  2984. # Handle CRLF in mingw tool chain
  2985. opt_cr=
  2986. case $host_os in
  2987. mingw*)
  2988. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  2989. ;;
  2990. esac
  2991. # If we're using GNU nm, then use its standard symbol codes.
  2992. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  2993. symcode='[ABCDGISTW]'
  2994. fi
  2995. # Try without a prefix undercore, then with it.
  2996. for ac_symprfx in "" "_"; do
  2997. # Write the raw and C identifiers.
  2998. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  2999. # Check to see that the pipe works correctly.
  3000. pipe_works=no
  3001. rm -f conftest*
  3002. cat > conftest.$ac_ext <<EOF
  3003. #ifdef __cplusplus
  3004. extern "C" {
  3005. #endif
  3006. char nm_test_var;
  3007. void nm_test_func(){}
  3008. #ifdef __cplusplus
  3009. }
  3010. #endif
  3011. int main(){nm_test_var='a';nm_test_func();return(0);}
  3012. EOF
  3013. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3014. (eval $ac_compile) 2>&5
  3015. ac_status=$?
  3016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3017. (exit $ac_status); }; then
  3018. # Now try to grab the symbols.
  3019. nlist=conftest.nm
  3020. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  3021. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  3022. ac_status=$?
  3023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3024. (exit $ac_status); } && test -s "$nlist"; then
  3025. # Try sorting and uniquifying the output.
  3026. if sort "$nlist" | uniq > "$nlist"T; then
  3027. mv -f "$nlist"T "$nlist"
  3028. else
  3029. rm -f "$nlist"T
  3030. fi
  3031. # Make sure that we snagged all the symbols we need.
  3032. if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  3033. if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  3034. cat <<EOF > conftest.$ac_ext
  3035. #ifdef __cplusplus
  3036. extern "C" {
  3037. #endif
  3038. EOF
  3039. # Now generate the symbol file.
  3040. eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  3041. cat <<EOF >> conftest.$ac_ext
  3042. #if defined (__STDC__) && __STDC__
  3043. # define lt_ptr void *
  3044. #else
  3045. # define lt_ptr char *
  3046. # define const
  3047. #endif
  3048. /* The mapping between symbol names and symbols. */
  3049. const struct {
  3050. const char *name;
  3051. lt_ptr address;
  3052. }
  3053. lt_preloaded_symbols[] =
  3054. {
  3055. EOF
  3056. sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  3057. cat <<\EOF >> conftest.$ac_ext
  3058. {0, (lt_ptr) 0}
  3059. };
  3060. #ifdef __cplusplus
  3061. }
  3062. #endif
  3063. EOF
  3064. # Now try linking the two files.
  3065. mv conftest.$ac_objext conftstm.$ac_objext
  3066. save_LIBS="$LIBS"
  3067. save_CFLAGS="$CFLAGS"
  3068. LIBS="conftstm.$ac_objext"
  3069. CFLAGS="$CFLAGS$no_builtin_flag"
  3070. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3071. (eval $ac_link) 2>&5
  3072. ac_status=$?
  3073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3074. (exit $ac_status); } && test -s conftest; then
  3075. pipe_works=yes
  3076. fi
  3077. LIBS="$save_LIBS"
  3078. CFLAGS="$save_CFLAGS"
  3079. else
  3080. echo "cannot find nm_test_func in $nlist" >&5
  3081. fi
  3082. else
  3083. echo "cannot find nm_test_var in $nlist" >&5
  3084. fi
  3085. else
  3086. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  3087. fi
  3088. else
  3089. echo "$progname: failed program was:" >&5
  3090. cat conftest.$ac_ext >&5
  3091. fi
  3092. rm -f conftest* conftst*
  3093. # Do not use the global_symbol_pipe unless it works.
  3094. if test "$pipe_works" = yes; then
  3095. break
  3096. else
  3097. lt_cv_sys_global_symbol_pipe=
  3098. fi
  3099. done
  3100. fi
  3101. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  3102. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3103. global_symbol_to_cdecl=
  3104. global_symbol_to_c_name_address=
  3105. else
  3106. global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  3107. global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  3108. fi
  3109. if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  3110. then
  3111. echo "$as_me:$LINENO: result: failed" >&5
  3112. echo "${ECHO_T}failed" >&6
  3113. else
  3114. echo "$as_me:$LINENO: result: ok" >&5
  3115. echo "${ECHO_T}ok" >&6
  3116. fi
  3117. ac_ext=c
  3118. ac_cpp='$CPP $CPPFLAGS'
  3119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3122. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3123. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3124. # On Suns, sometimes $CPP names a directory.
  3125. if test -n "$CPP" && test -d "$CPP"; then
  3126. CPP=
  3127. fi
  3128. if test -z "$CPP"; then
  3129. if test "${ac_cv_prog_CPP+set}" = set; then
  3130. echo $ECHO_N "(cached) $ECHO_C" >&6
  3131. else
  3132. # Double quotes because CPP needs to be expanded
  3133. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3134. do
  3135. ac_preproc_ok=false
  3136. for ac_c_preproc_warn_flag in '' yes
  3137. do
  3138. # Use a header file that comes with gcc, so configuring glibc
  3139. # with a fresh cross-compiler works.
  3140. # On the NeXT, cc -E runs the code through the compiler's parser,
  3141. # not just through cpp. "Syntax error" is here to catch this case.
  3142. cat >conftest.$ac_ext <<_ACEOF
  3143. #line $LINENO "configure"
  3144. #include "confdefs.h"
  3145. #include <assert.h>
  3146. Syntax error
  3147. _ACEOF
  3148. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3149. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3150. ac_status=$?
  3151. egrep -v '^ *\+' conftest.er1 >conftest.err
  3152. rm -f conftest.er1
  3153. cat conftest.err >&5
  3154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3155. (exit $ac_status); } >/dev/null; then
  3156. if test -s conftest.err; then
  3157. ac_cpp_err=$ac_c_preproc_warn_flag
  3158. else
  3159. ac_cpp_err=
  3160. fi
  3161. else
  3162. ac_cpp_err=yes
  3163. fi
  3164. if test -z "$ac_cpp_err"; then
  3165. :
  3166. else
  3167. echo "$as_me: failed program was:" >&5
  3168. cat conftest.$ac_ext >&5
  3169. # Broken: fails on valid input.
  3170. continue
  3171. fi
  3172. rm -f conftest.err conftest.$ac_ext
  3173. # OK, works on sane cases. Now check whether non-existent headers
  3174. # can be detected and how.
  3175. cat >conftest.$ac_ext <<_ACEOF
  3176. #line $LINENO "configure"
  3177. #include "confdefs.h"
  3178. #include <ac_nonexistent.h>
  3179. _ACEOF
  3180. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3181. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3182. ac_status=$?
  3183. egrep -v '^ *\+' conftest.er1 >conftest.err
  3184. rm -f conftest.er1
  3185. cat conftest.err >&5
  3186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3187. (exit $ac_status); } >/dev/null; then
  3188. if test -s conftest.err; then
  3189. ac_cpp_err=$ac_c_preproc_warn_flag
  3190. else
  3191. ac_cpp_err=
  3192. fi
  3193. else
  3194. ac_cpp_err=yes
  3195. fi
  3196. if test -z "$ac_cpp_err"; then
  3197. # Broken: success on invalid input.
  3198. continue
  3199. else
  3200. echo "$as_me: failed program was:" >&5
  3201. cat conftest.$ac_ext >&5
  3202. # Passes both tests.
  3203. ac_preproc_ok=:
  3204. break
  3205. fi
  3206. rm -f conftest.err conftest.$ac_ext
  3207. done
  3208. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3209. rm -f conftest.err conftest.$ac_ext
  3210. if $ac_preproc_ok; then
  3211. break
  3212. fi
  3213. done
  3214. ac_cv_prog_CPP=$CPP
  3215. fi
  3216. CPP=$ac_cv_prog_CPP
  3217. else
  3218. ac_cv_prog_CPP=$CPP
  3219. fi
  3220. echo "$as_me:$LINENO: result: $CPP" >&5
  3221. echo "${ECHO_T}$CPP" >&6
  3222. ac_preproc_ok=false
  3223. for ac_c_preproc_warn_flag in '' yes
  3224. do
  3225. # Use a header file that comes with gcc, so configuring glibc
  3226. # with a fresh cross-compiler works.
  3227. # On the NeXT, cc -E runs the code through the compiler's parser,
  3228. # not just through cpp. "Syntax error" is here to catch this case.
  3229. cat >conftest.$ac_ext <<_ACEOF
  3230. #line $LINENO "configure"
  3231. #include "confdefs.h"
  3232. #include <assert.h>
  3233. Syntax error
  3234. _ACEOF
  3235. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3236. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3237. ac_status=$?
  3238. egrep -v '^ *\+' conftest.er1 >conftest.err
  3239. rm -f conftest.er1
  3240. cat conftest.err >&5
  3241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3242. (exit $ac_status); } >/dev/null; then
  3243. if test -s conftest.err; then
  3244. ac_cpp_err=$ac_c_preproc_warn_flag
  3245. else
  3246. ac_cpp_err=
  3247. fi
  3248. else
  3249. ac_cpp_err=yes
  3250. fi
  3251. if test -z "$ac_cpp_err"; then
  3252. :
  3253. else
  3254. echo "$as_me: failed program was:" >&5
  3255. cat conftest.$ac_ext >&5
  3256. # Broken: fails on valid input.
  3257. continue
  3258. fi
  3259. rm -f conftest.err conftest.$ac_ext
  3260. # OK, works on sane cases. Now check whether non-existent headers
  3261. # can be detected and how.
  3262. cat >conftest.$ac_ext <<_ACEOF
  3263. #line $LINENO "configure"
  3264. #include "confdefs.h"
  3265. #include <ac_nonexistent.h>
  3266. _ACEOF
  3267. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3268. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3269. ac_status=$?
  3270. egrep -v '^ *\+' conftest.er1 >conftest.err
  3271. rm -f conftest.er1
  3272. cat conftest.err >&5
  3273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3274. (exit $ac_status); } >/dev/null; then
  3275. if test -s conftest.err; then
  3276. ac_cpp_err=$ac_c_preproc_warn_flag
  3277. else
  3278. ac_cpp_err=
  3279. fi
  3280. else
  3281. ac_cpp_err=yes
  3282. fi
  3283. if test -z "$ac_cpp_err"; then
  3284. # Broken: success on invalid input.
  3285. continue
  3286. else
  3287. echo "$as_me: failed program was:" >&5
  3288. cat conftest.$ac_ext >&5
  3289. # Passes both tests.
  3290. ac_preproc_ok=:
  3291. break
  3292. fi
  3293. rm -f conftest.err conftest.$ac_ext
  3294. done
  3295. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3296. rm -f conftest.err conftest.$ac_ext
  3297. if $ac_preproc_ok; then
  3298. :
  3299. else
  3300. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
  3301. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
  3302. { (exit 1); exit 1; }; }
  3303. fi
  3304. ac_ext=c
  3305. ac_cpp='$CPP $CPPFLAGS'
  3306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3309. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3310. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3311. if test "${ac_cv_header_stdc+set}" = set; then
  3312. echo $ECHO_N "(cached) $ECHO_C" >&6
  3313. else
  3314. cat >conftest.$ac_ext <<_ACEOF
  3315. #line $LINENO "configure"
  3316. #include "confdefs.h"
  3317. #include <stdlib.h>
  3318. #include <stdarg.h>
  3319. #include <string.h>
  3320. #include <float.h>
  3321. _ACEOF
  3322. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3323. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3324. ac_status=$?
  3325. egrep -v '^ *\+' conftest.er1 >conftest.err
  3326. rm -f conftest.er1
  3327. cat conftest.err >&5
  3328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3329. (exit $ac_status); } >/dev/null; then
  3330. if test -s conftest.err; then
  3331. ac_cpp_err=$ac_c_preproc_warn_flag
  3332. else
  3333. ac_cpp_err=
  3334. fi
  3335. else
  3336. ac_cpp_err=yes
  3337. fi
  3338. if test -z "$ac_cpp_err"; then
  3339. ac_cv_header_stdc=yes
  3340. else
  3341. echo "$as_me: failed program was:" >&5
  3342. cat conftest.$ac_ext >&5
  3343. ac_cv_header_stdc=no
  3344. fi
  3345. rm -f conftest.err conftest.$ac_ext
  3346. if test $ac_cv_header_stdc = yes; then
  3347. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3348. cat >conftest.$ac_ext <<_ACEOF
  3349. #line $LINENO "configure"
  3350. #include "confdefs.h"
  3351. #include <string.h>
  3352. _ACEOF
  3353. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3354. egrep "memchr" >/dev/null 2>&1; then
  3355. :
  3356. else
  3357. ac_cv_header_stdc=no
  3358. fi
  3359. rm -f conftest*
  3360. fi
  3361. if test $ac_cv_header_stdc = yes; then
  3362. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3363. cat >conftest.$ac_ext <<_ACEOF
  3364. #line $LINENO "configure"
  3365. #include "confdefs.h"
  3366. #include <stdlib.h>
  3367. _ACEOF
  3368. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3369. egrep "free" >/dev/null 2>&1; then
  3370. :
  3371. else
  3372. ac_cv_header_stdc=no
  3373. fi
  3374. rm -f conftest*
  3375. fi
  3376. if test $ac_cv_header_stdc = yes; then
  3377. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3378. if test "$cross_compiling" = yes; then
  3379. :
  3380. else
  3381. cat >conftest.$ac_ext <<_ACEOF
  3382. #line $LINENO "configure"
  3383. #include "confdefs.h"
  3384. #include <ctype.h>
  3385. #if ((' ' & 0x0FF) == 0x020)
  3386. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3387. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3388. #else
  3389. # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  3390. || ('j' <= (c) && (c) <= 'r') \
  3391. || ('s' <= (c) && (c) <= 'z'))
  3392. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3393. #endif
  3394. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3395. int
  3396. main ()
  3397. {
  3398. int i;
  3399. for (i = 0; i < 256; i++)
  3400. if (XOR (islower (i), ISLOWER (i))
  3401. || toupper (i) != TOUPPER (i))
  3402. exit(2);
  3403. exit (0);
  3404. }
  3405. _ACEOF
  3406. rm -f conftest$ac_exeext
  3407. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3408. (eval $ac_link) 2>&5
  3409. ac_status=$?
  3410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3411. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3413. (eval $ac_try) 2>&5
  3414. ac_status=$?
  3415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3416. (exit $ac_status); }; }; then
  3417. :
  3418. else
  3419. echo "$as_me: program exited with status $ac_status" >&5
  3420. echo "$as_me: failed program was:" >&5
  3421. cat conftest.$ac_ext >&5
  3422. ( exit $ac_status )
  3423. ac_cv_header_stdc=no
  3424. fi
  3425. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3426. fi
  3427. fi
  3428. fi
  3429. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3430. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3431. if test $ac_cv_header_stdc = yes; then
  3432. cat >>confdefs.h <<\_ACEOF
  3433. #define STDC_HEADERS 1
  3434. _ACEOF
  3435. fi
  3436. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3437. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3438. inttypes.h stdint.h unistd.h
  3439. do
  3440. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3441. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3442. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3443. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3444. echo $ECHO_N "(cached) $ECHO_C" >&6
  3445. else
  3446. cat >conftest.$ac_ext <<_ACEOF
  3447. #line $LINENO "configure"
  3448. #include "confdefs.h"
  3449. $ac_includes_default
  3450. #include <$ac_header>
  3451. _ACEOF
  3452. rm -f conftest.$ac_objext
  3453. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3454. (eval $ac_compile) 2>&5
  3455. ac_status=$?
  3456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3457. (exit $ac_status); } &&
  3458. { ac_try='test -s conftest.$ac_objext'
  3459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3460. (eval $ac_try) 2>&5
  3461. ac_status=$?
  3462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3463. (exit $ac_status); }; }; then
  3464. eval "$as_ac_Header=yes"
  3465. else
  3466. echo "$as_me: failed program was:" >&5
  3467. cat conftest.$ac_ext >&5
  3468. eval "$as_ac_Header=no"
  3469. fi
  3470. rm -f conftest.$ac_objext conftest.$ac_ext
  3471. fi
  3472. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3473. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3474. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3475. cat >>confdefs.h <<_ACEOF
  3476. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3477. _ACEOF
  3478. fi
  3479. done
  3480. for ac_header in dlfcn.h
  3481. do
  3482. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3483. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3484. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3485. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3486. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3487. echo $ECHO_N "(cached) $ECHO_C" >&6
  3488. fi
  3489. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3490. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3491. else
  3492. # Is the header compilable?
  3493. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3494. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3495. cat >conftest.$ac_ext <<_ACEOF
  3496. #line $LINENO "configure"
  3497. #include "confdefs.h"
  3498. $ac_includes_default
  3499. #include <$ac_header>
  3500. _ACEOF
  3501. rm -f conftest.$ac_objext
  3502. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3503. (eval $ac_compile) 2>&5
  3504. ac_status=$?
  3505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3506. (exit $ac_status); } &&
  3507. { ac_try='test -s conftest.$ac_objext'
  3508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3509. (eval $ac_try) 2>&5
  3510. ac_status=$?
  3511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3512. (exit $ac_status); }; }; then
  3513. ac_header_compiler=yes
  3514. else
  3515. echo "$as_me: failed program was:" >&5
  3516. cat conftest.$ac_ext >&5
  3517. ac_header_compiler=no
  3518. fi
  3519. rm -f conftest.$ac_objext conftest.$ac_ext
  3520. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3521. echo "${ECHO_T}$ac_header_compiler" >&6
  3522. # Is the header present?
  3523. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3524. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3525. cat >conftest.$ac_ext <<_ACEOF
  3526. #line $LINENO "configure"
  3527. #include "confdefs.h"
  3528. #include <$ac_header>
  3529. _ACEOF
  3530. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3531. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3532. ac_status=$?
  3533. egrep -v '^ *\+' conftest.er1 >conftest.err
  3534. rm -f conftest.er1
  3535. cat conftest.err >&5
  3536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3537. (exit $ac_status); } >/dev/null; then
  3538. if test -s conftest.err; then
  3539. ac_cpp_err=$ac_c_preproc_warn_flag
  3540. else
  3541. ac_cpp_err=
  3542. fi
  3543. else
  3544. ac_cpp_err=yes
  3545. fi
  3546. if test -z "$ac_cpp_err"; then
  3547. ac_header_preproc=yes
  3548. else
  3549. echo "$as_me: failed program was:" >&5
  3550. cat conftest.$ac_ext >&5
  3551. ac_header_preproc=no
  3552. fi
  3553. rm -f conftest.err conftest.$ac_ext
  3554. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3555. echo "${ECHO_T}$ac_header_preproc" >&6
  3556. # So? What about this header?
  3557. case $ac_header_compiler:$ac_header_preproc in
  3558. yes:no )
  3559. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3560. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3561. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3562. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  3563. no:yes )
  3564. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3565. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3566. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3567. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3568. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3569. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  3570. esac
  3571. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3572. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3573. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3574. echo $ECHO_N "(cached) $ECHO_C" >&6
  3575. else
  3576. eval "$as_ac_Header=$ac_header_preproc"
  3577. fi
  3578. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3579. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3580. fi
  3581. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3582. cat >>confdefs.h <<_ACEOF
  3583. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3584. _ACEOF
  3585. fi
  3586. done
  3587. # Only perform the check for file, if the check method requires it
  3588. case $deplibs_check_method in
  3589. file_magic*)
  3590. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  3591. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  3592. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  3593. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  3594. echo $ECHO_N "(cached) $ECHO_C" >&6
  3595. else
  3596. case $MAGIC_CMD in
  3597. /*)
  3598. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3599. ;;
  3600. ?:/*)
  3601. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  3602. ;;
  3603. *)
  3604. ac_save_MAGIC_CMD="$MAGIC_CMD"
  3605. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3606. ac_dummy="/usr/bin:$PATH"
  3607. for ac_dir in $ac_dummy; do
  3608. test -z "$ac_dir" && ac_dir=.
  3609. if test -f $ac_dir/${ac_tool_prefix}file; then
  3610. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  3611. if test -n "$file_magic_test_file"; then
  3612. case $deplibs_check_method in
  3613. "file_magic "*)
  3614. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3615. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3616. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3617. egrep "$file_magic_regex" > /dev/null; then
  3618. :
  3619. else
  3620. cat <<EOF 1>&2
  3621. *** Warning: the command libtool uses to detect shared libraries,
  3622. *** $file_magic_cmd, produces output that libtool cannot recognize.
  3623. *** The result is that libtool may fail to recognize shared libraries
  3624. *** as such. This will affect the creation of libtool libraries that
  3625. *** depend on shared libraries, but programs linked with such libtool
  3626. *** libraries will work regardless of this problem. Nevertheless, you
  3627. *** may want to report the problem to your system manager and/or to
  3628. *** bug-libtool@gnu.org
  3629. EOF
  3630. fi ;;
  3631. esac
  3632. fi
  3633. break
  3634. fi
  3635. done
  3636. IFS="$ac_save_ifs"
  3637. MAGIC_CMD="$ac_save_MAGIC_CMD"
  3638. ;;
  3639. esac
  3640. fi
  3641. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3642. if test -n "$MAGIC_CMD"; then
  3643. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  3644. echo "${ECHO_T}$MAGIC_CMD" >&6
  3645. else
  3646. echo "$as_me:$LINENO: result: no" >&5
  3647. echo "${ECHO_T}no" >&6
  3648. fi
  3649. if test -z "$lt_cv_path_MAGIC_CMD"; then
  3650. if test -n "$ac_tool_prefix"; then
  3651. echo "$as_me:$LINENO: checking for file" >&5
  3652. echo $ECHO_N "checking for file... $ECHO_C" >&6
  3653. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  3654. echo $ECHO_N "(cached) $ECHO_C" >&6
  3655. else
  3656. case $MAGIC_CMD in
  3657. /*)
  3658. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3659. ;;
  3660. ?:/*)
  3661. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  3662. ;;
  3663. *)
  3664. ac_save_MAGIC_CMD="$MAGIC_CMD"
  3665. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3666. ac_dummy="/usr/bin:$PATH"
  3667. for ac_dir in $ac_dummy; do
  3668. test -z "$ac_dir" && ac_dir=.
  3669. if test -f $ac_dir/file; then
  3670. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  3671. if test -n "$file_magic_test_file"; then
  3672. case $deplibs_check_method in
  3673. "file_magic "*)
  3674. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3675. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3676. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3677. egrep "$file_magic_regex" > /dev/null; then
  3678. :
  3679. else
  3680. cat <<EOF 1>&2
  3681. *** Warning: the command libtool uses to detect shared libraries,
  3682. *** $file_magic_cmd, produces output that libtool cannot recognize.
  3683. *** The result is that libtool may fail to recognize shared libraries
  3684. *** as such. This will affect the creation of libtool libraries that
  3685. *** depend on shared libraries, but programs linked with such libtool
  3686. *** libraries will work regardless of this problem. Nevertheless, you
  3687. *** may want to report the problem to your system manager and/or to
  3688. *** bug-libtool@gnu.org
  3689. EOF
  3690. fi ;;
  3691. esac
  3692. fi
  3693. break
  3694. fi
  3695. done
  3696. IFS="$ac_save_ifs"
  3697. MAGIC_CMD="$ac_save_MAGIC_CMD"
  3698. ;;
  3699. esac
  3700. fi
  3701. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3702. if test -n "$MAGIC_CMD"; then
  3703. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  3704. echo "${ECHO_T}$MAGIC_CMD" >&6
  3705. else
  3706. echo "$as_me:$LINENO: result: no" >&5
  3707. echo "${ECHO_T}no" >&6
  3708. fi
  3709. else
  3710. MAGIC_CMD=:
  3711. fi
  3712. fi
  3713. fi
  3714. ;;
  3715. esac
  3716. if test -n "$ac_tool_prefix"; then
  3717. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3718. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3719. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3720. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3721. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3722. echo $ECHO_N "(cached) $ECHO_C" >&6
  3723. else
  3724. if test -n "$RANLIB"; then
  3725. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3726. else
  3727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3728. for as_dir in $PATH
  3729. do
  3730. IFS=$as_save_IFS
  3731. test -z "$as_dir" && as_dir=.
  3732. for ac_exec_ext in '' $ac_executable_extensions; do
  3733. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3734. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3735. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3736. break 2
  3737. fi
  3738. done
  3739. done
  3740. fi
  3741. fi
  3742. RANLIB=$ac_cv_prog_RANLIB
  3743. if test -n "$RANLIB"; then
  3744. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3745. echo "${ECHO_T}$RANLIB" >&6
  3746. else
  3747. echo "$as_me:$LINENO: result: no" >&5
  3748. echo "${ECHO_T}no" >&6
  3749. fi
  3750. fi
  3751. if test -z "$ac_cv_prog_RANLIB"; then
  3752. ac_ct_RANLIB=$RANLIB
  3753. # Extract the first word of "ranlib", so it can be a program name with args.
  3754. set dummy ranlib; ac_word=$2
  3755. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3756. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3757. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3758. echo $ECHO_N "(cached) $ECHO_C" >&6
  3759. else
  3760. if test -n "$ac_ct_RANLIB"; then
  3761. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3762. else
  3763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3764. for as_dir in $PATH
  3765. do
  3766. IFS=$as_save_IFS
  3767. test -z "$as_dir" && as_dir=.
  3768. for ac_exec_ext in '' $ac_executable_extensions; do
  3769. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3770. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3771. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3772. break 2
  3773. fi
  3774. done
  3775. done
  3776. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3777. fi
  3778. fi
  3779. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3780. if test -n "$ac_ct_RANLIB"; then
  3781. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3782. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3783. else
  3784. echo "$as_me:$LINENO: result: no" >&5
  3785. echo "${ECHO_T}no" >&6
  3786. fi
  3787. RANLIB=$ac_ct_RANLIB
  3788. else
  3789. RANLIB="$ac_cv_prog_RANLIB"
  3790. fi
  3791. if test -n "$ac_tool_prefix"; then
  3792. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3793. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3794. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3795. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3796. if test "${ac_cv_prog_STRIP+set}" = set; then
  3797. echo $ECHO_N "(cached) $ECHO_C" >&6
  3798. else
  3799. if test -n "$STRIP"; then
  3800. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3801. else
  3802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3803. for as_dir in $PATH
  3804. do
  3805. IFS=$as_save_IFS
  3806. test -z "$as_dir" && as_dir=.
  3807. for ac_exec_ext in '' $ac_executable_extensions; do
  3808. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3809. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3810. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3811. break 2
  3812. fi
  3813. done
  3814. done
  3815. fi
  3816. fi
  3817. STRIP=$ac_cv_prog_STRIP
  3818. if test -n "$STRIP"; then
  3819. echo "$as_me:$LINENO: result: $STRIP" >&5
  3820. echo "${ECHO_T}$STRIP" >&6
  3821. else
  3822. echo "$as_me:$LINENO: result: no" >&5
  3823. echo "${ECHO_T}no" >&6
  3824. fi
  3825. fi
  3826. if test -z "$ac_cv_prog_STRIP"; then
  3827. ac_ct_STRIP=$STRIP
  3828. # Extract the first word of "strip", so it can be a program name with args.
  3829. set dummy strip; ac_word=$2
  3830. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3831. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3832. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  3833. echo $ECHO_N "(cached) $ECHO_C" >&6
  3834. else
  3835. if test -n "$ac_ct_STRIP"; then
  3836. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3837. else
  3838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3839. for as_dir in $PATH
  3840. do
  3841. IFS=$as_save_IFS
  3842. test -z "$as_dir" && as_dir=.
  3843. for ac_exec_ext in '' $ac_executable_extensions; do
  3844. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3845. ac_cv_prog_ac_ct_STRIP="strip"
  3846. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3847. break 2
  3848. fi
  3849. done
  3850. done
  3851. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  3852. fi
  3853. fi
  3854. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3855. if test -n "$ac_ct_STRIP"; then
  3856. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  3857. echo "${ECHO_T}$ac_ct_STRIP" >&6
  3858. else
  3859. echo "$as_me:$LINENO: result: no" >&5
  3860. echo "${ECHO_T}no" >&6
  3861. fi
  3862. STRIP=$ac_ct_STRIP
  3863. else
  3864. STRIP="$ac_cv_prog_STRIP"
  3865. fi
  3866. enable_dlopen=no
  3867. enable_win32_dll=no
  3868. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3869. if test "${enable_libtool_lock+set}" = set; then
  3870. enableval="$enable_libtool_lock"
  3871. fi;
  3872. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3873. # Some flags need to be propagated to the compiler or linker for good
  3874. # libtool support.
  3875. case $host in
  3876. *-*-irix6*)
  3877. # Find out which ABI we are using.
  3878. echo '#line 4331 "configure"' > conftest.$ac_ext
  3879. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3880. (eval $ac_compile) 2>&5
  3881. ac_status=$?
  3882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3883. (exit $ac_status); }; then
  3884. case `/usr/bin/file conftest.$ac_objext` in
  3885. *32-bit*)
  3886. LD="${LD-ld} -32"
  3887. ;;
  3888. *N32*)
  3889. LD="${LD-ld} -n32"
  3890. ;;
  3891. *64-bit*)
  3892. LD="${LD-ld} -64"
  3893. ;;
  3894. esac
  3895. fi
  3896. rm -rf conftest*
  3897. ;;
  3898. *-*-sco3.2v5*)
  3899. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3900. SAVE_CFLAGS="$CFLAGS"
  3901. CFLAGS="$CFLAGS -belf"
  3902. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3903. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3904. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3905. echo $ECHO_N "(cached) $ECHO_C" >&6
  3906. else
  3907. ac_ext=c
  3908. ac_cpp='$CPP $CPPFLAGS'
  3909. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3910. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3911. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3912. cat >conftest.$ac_ext <<_ACEOF
  3913. #line $LINENO "configure"
  3914. #include "confdefs.h"
  3915. #ifdef F77_DUMMY_MAIN
  3916. # ifdef __cplusplus
  3917. extern "C"
  3918. # endif
  3919. int F77_DUMMY_MAIN() { return 1; }
  3920. #endif
  3921. int
  3922. main ()
  3923. {
  3924. ;
  3925. return 0;
  3926. }
  3927. _ACEOF
  3928. rm -f conftest.$ac_objext conftest$ac_exeext
  3929. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3930. (eval $ac_link) 2>&5
  3931. ac_status=$?
  3932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3933. (exit $ac_status); } &&
  3934. { ac_try='test -s conftest$ac_exeext'
  3935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3936. (eval $ac_try) 2>&5
  3937. ac_status=$?
  3938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3939. (exit $ac_status); }; }; then
  3940. lt_cv_cc_needs_belf=yes
  3941. else
  3942. echo "$as_me: failed program was:" >&5
  3943. cat conftest.$ac_ext >&5
  3944. lt_cv_cc_needs_belf=no
  3945. fi
  3946. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3947. ac_ext=c
  3948. ac_cpp='$CPP $CPPFLAGS'
  3949. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3950. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3951. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3952. fi
  3953. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  3954. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  3955. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3956. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3957. CFLAGS="$SAVE_CFLAGS"
  3958. fi
  3959. ;;
  3960. esac
  3961. # Sed substitution that helps us do robust quoting. It backslashifies
  3962. # metacharacters that are still active within double-quoted strings.
  3963. Xsed='sed -e s/^X//'
  3964. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  3965. # Same as above, but do not quote variable references.
  3966. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  3967. # Sed substitution to delay expansion of an escaped shell variable in a
  3968. # double_quote_subst'ed string.
  3969. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3970. # Constants:
  3971. rm="rm -f"
  3972. # Global variables:
  3973. default_ofile=libtool
  3974. can_build_shared=yes
  3975. # All known linkers require a `.a' archive for static linking (except M$VC,
  3976. # which needs '.lib').
  3977. libext=a
  3978. ltmain="$ac_aux_dir/ltmain.sh"
  3979. ofile="$default_ofile"
  3980. with_gnu_ld="$lt_cv_prog_gnu_ld"
  3981. need_locks="$enable_libtool_lock"
  3982. old_CC="$CC"
  3983. old_CFLAGS="$CFLAGS"
  3984. # Set sane defaults for various variables
  3985. test -z "$AR" && AR=ar
  3986. test -z "$AR_FLAGS" && AR_FLAGS=cru
  3987. test -z "$AS" && AS=as
  3988. test -z "$CC" && CC=cc
  3989. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3990. test -z "$LD" && LD=ld
  3991. test -z "$LN_S" && LN_S="ln -s"
  3992. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  3993. test -z "$NM" && NM=nm
  3994. test -z "$OBJDUMP" && OBJDUMP=objdump
  3995. test -z "$RANLIB" && RANLIB=:
  3996. test -z "$STRIP" && STRIP=:
  3997. test -z "$ac_objext" && ac_objext=o
  3998. if test x"$host" != x"$build"; then
  3999. ac_tool_prefix=${host_alias}-
  4000. else
  4001. ac_tool_prefix=
  4002. fi
  4003. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  4004. case $host_os in
  4005. linux-gnu*) ;;
  4006. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  4007. esac
  4008. case $host_os in
  4009. aix3*)
  4010. # AIX sometimes has problems with the GCC collect2 program. For some
  4011. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4012. # vanish in a puff of smoke.
  4013. if test "X${COLLECT_NAMES+set}" != Xset; then
  4014. COLLECT_NAMES=
  4015. export COLLECT_NAMES
  4016. fi
  4017. ;;
  4018. esac
  4019. # Determine commands to create old-style static archives.
  4020. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  4021. old_postinstall_cmds='chmod 644 $oldlib'
  4022. old_postuninstall_cmds=
  4023. if test -n "$RANLIB"; then
  4024. case $host_os in
  4025. openbsd*)
  4026. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  4027. ;;
  4028. *)
  4029. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  4030. ;;
  4031. esac
  4032. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4033. fi
  4034. # Allow CC to be a program name with arguments.
  4035. set dummy $CC
  4036. compiler="$2"
  4037. echo "$as_me:$LINENO: checking for objdir" >&5
  4038. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  4039. rm -f .libs 2>/dev/null
  4040. mkdir .libs 2>/dev/null
  4041. if test -d .libs; then
  4042. objdir=.libs
  4043. else
  4044. # MS-DOS does not allow filenames that begin with a dot.
  4045. objdir=_libs
  4046. fi
  4047. rmdir .libs 2>/dev/null
  4048. echo "$as_me:$LINENO: result: $objdir" >&5
  4049. echo "${ECHO_T}$objdir" >&6
  4050. # Check whether --with-pic or --without-pic was given.
  4051. if test "${with_pic+set}" = set; then
  4052. withval="$with_pic"
  4053. pic_mode="$withval"
  4054. else
  4055. pic_mode=default
  4056. fi;
  4057. test -z "$pic_mode" && pic_mode=default
  4058. # We assume here that the value for lt_cv_prog_cc_pic will not be cached
  4059. # in isolation, and that seeing it set (from the cache) indicates that
  4060. # the associated values are set (in the cache) correctly too.
  4061. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  4062. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  4063. if test "${lt_cv_prog_cc_pic+set}" = set; then
  4064. echo $ECHO_N "(cached) $ECHO_C" >&6
  4065. else
  4066. lt_cv_prog_cc_pic=
  4067. lt_cv_prog_cc_shlib=
  4068. lt_cv_prog_cc_wl=
  4069. lt_cv_prog_cc_static=
  4070. lt_cv_prog_cc_no_builtin=
  4071. lt_cv_prog_cc_can_build_shared=$can_build_shared
  4072. if test "$GCC" = yes; then
  4073. lt_cv_prog_cc_wl='-Wl,'
  4074. lt_cv_prog_cc_static='-static'
  4075. case $host_os in
  4076. aix*)
  4077. # Below there is a dirty hack to force normal static linking with -ldl
  4078. # The problem is because libdl dynamically linked with both libc and
  4079. # libC (AIX C++ library), which obviously doesn't included in libraries
  4080. # list by gcc. This cause undefined symbols with -static flags.
  4081. # This hack allows C programs to be linked with "-static -ldl", but
  4082. # not sure about C++ programs.
  4083. lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  4084. ;;
  4085. amigaos*)
  4086. # FIXME: we need at least 68020 code to build shared libraries, but
  4087. # adding the `-m68020' flag to GCC prevents building anything better,
  4088. # like `-m68040'.
  4089. lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  4090. ;;
  4091. beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
  4092. # PIC is the default for these OSes.
  4093. ;;
  4094. darwin* | rhapsody*)
  4095. # PIC is the default on this platform
  4096. # Common symbols not allowed in MH_DYLIB files
  4097. lt_cv_prog_cc_pic='-fno-common'
  4098. ;;
  4099. cygwin* | mingw* | pw32* | os2*)
  4100. # This hack is so that the source file can tell whether it is being
  4101. # built for inclusion in a dll (and should export symbols for example).
  4102. lt_cv_prog_cc_pic='-DDLL_EXPORT'
  4103. ;;
  4104. sysv4*MP*)
  4105. if test -d /usr/nec; then
  4106. lt_cv_prog_cc_pic=-Kconform_pic
  4107. fi
  4108. ;;
  4109. *)
  4110. lt_cv_prog_cc_pic='-fPIC'
  4111. ;;
  4112. esac
  4113. else
  4114. # PORTME Check for PIC flags for the system compiler.
  4115. case $host_os in
  4116. aix3* | aix4* | aix5*)
  4117. lt_cv_prog_cc_wl='-Wl,'
  4118. # All AIX code is PIC.
  4119. if test "$host_cpu" = ia64; then
  4120. # AIX 5 now supports IA64 processor
  4121. lt_cv_prog_cc_static='-Bstatic'
  4122. else
  4123. lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  4124. fi
  4125. ;;
  4126. hpux9* | hpux10* | hpux11*)
  4127. # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  4128. lt_cv_prog_cc_wl='-Wl,'
  4129. lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  4130. lt_cv_prog_cc_pic='+Z'
  4131. ;;
  4132. irix5* | irix6*)
  4133. lt_cv_prog_cc_wl='-Wl,'
  4134. lt_cv_prog_cc_static='-non_shared'
  4135. # PIC (with -KPIC) is the default.
  4136. ;;
  4137. cygwin* | mingw* | pw32* | os2*)
  4138. # This hack is so that the source file can tell whether it is being
  4139. # built for inclusion in a dll (and should export symbols for example).
  4140. lt_cv_prog_cc_pic='-DDLL_EXPORT'
  4141. ;;
  4142. newsos6)
  4143. lt_cv_prog_cc_pic='-KPIC'
  4144. lt_cv_prog_cc_static='-Bstatic'
  4145. ;;
  4146. osf3* | osf4* | osf5*)
  4147. # All OSF/1 code is PIC.
  4148. lt_cv_prog_cc_wl='-Wl,'
  4149. lt_cv_prog_cc_static='-non_shared'
  4150. ;;
  4151. sco3.2v5*)
  4152. lt_cv_prog_cc_pic='-Kpic'
  4153. lt_cv_prog_cc_static='-dn'
  4154. lt_cv_prog_cc_shlib='-belf'
  4155. ;;
  4156. solaris*)
  4157. lt_cv_prog_cc_pic='-KPIC'
  4158. lt_cv_prog_cc_static='-Bstatic'
  4159. lt_cv_prog_cc_wl='-Wl,'
  4160. ;;
  4161. sunos4*)
  4162. lt_cv_prog_cc_pic='-PIC'
  4163. lt_cv_prog_cc_static='-Bstatic'
  4164. lt_cv_prog_cc_wl='-Qoption ld '
  4165. ;;
  4166. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4167. lt_cv_prog_cc_pic='-KPIC'
  4168. lt_cv_prog_cc_static='-Bstatic'
  4169. if test "x$host_vendor" = xsni; then
  4170. lt_cv_prog_cc_wl='-LD'
  4171. else
  4172. lt_cv_prog_cc_wl='-Wl,'
  4173. fi
  4174. ;;
  4175. uts4*)
  4176. lt_cv_prog_cc_pic='-pic'
  4177. lt_cv_prog_cc_static='-Bstatic'
  4178. ;;
  4179. sysv4*MP*)
  4180. if test -d /usr/nec ;then
  4181. lt_cv_prog_cc_pic='-Kconform_pic'
  4182. lt_cv_prog_cc_static='-Bstatic'
  4183. fi
  4184. ;;
  4185. *)
  4186. lt_cv_prog_cc_can_build_shared=no
  4187. ;;
  4188. esac
  4189. fi
  4190. fi
  4191. if test -z "$lt_cv_prog_cc_pic"; then
  4192. echo "$as_me:$LINENO: result: none" >&5
  4193. echo "${ECHO_T}none" >&6
  4194. else
  4195. echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
  4196. echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
  4197. # Check to make sure the pic_flag actually works.
  4198. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  4199. echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  4200. if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  4201. echo $ECHO_N "(cached) $ECHO_C" >&6
  4202. else
  4203. save_CFLAGS="$CFLAGS"
  4204. CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  4205. cat >conftest.$ac_ext <<_ACEOF
  4206. #line $LINENO "configure"
  4207. #include "confdefs.h"
  4208. #ifdef F77_DUMMY_MAIN
  4209. # ifdef __cplusplus
  4210. extern "C"
  4211. # endif
  4212. int F77_DUMMY_MAIN() { return 1; }
  4213. #endif
  4214. int
  4215. main ()
  4216. {
  4217. ;
  4218. return 0;
  4219. }
  4220. _ACEOF
  4221. rm -f conftest.$ac_objext
  4222. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4223. (eval $ac_compile) 2>&5
  4224. ac_status=$?
  4225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4226. (exit $ac_status); } &&
  4227. { ac_try='test -s conftest.$ac_objext'
  4228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4229. (eval $ac_try) 2>&5
  4230. ac_status=$?
  4231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4232. (exit $ac_status); }; }; then
  4233. case $host_os in
  4234. hpux9* | hpux10* | hpux11*)
  4235. # On HP-UX, both CC and GCC only warn that PIC is supported... then
  4236. # they create non-PIC objects. So, if there were any warnings, we
  4237. # assume that PIC is not supported.
  4238. if test -s conftest.err; then
  4239. lt_cv_prog_cc_pic_works=no
  4240. else
  4241. lt_cv_prog_cc_pic_works=yes
  4242. fi
  4243. ;;
  4244. *)
  4245. lt_cv_prog_cc_pic_works=yes
  4246. ;;
  4247. esac
  4248. else
  4249. echo "$as_me: failed program was:" >&5
  4250. cat conftest.$ac_ext >&5
  4251. lt_cv_prog_cc_pic_works=no
  4252. fi
  4253. rm -f conftest.$ac_objext conftest.$ac_ext
  4254. CFLAGS="$save_CFLAGS"
  4255. fi
  4256. if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  4257. lt_cv_prog_cc_pic=
  4258. lt_cv_prog_cc_can_build_shared=no
  4259. else
  4260. lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  4261. fi
  4262. echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
  4263. echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
  4264. fi
  4265. # Check for any special shared library compilation flags.
  4266. if test -n "$lt_cv_prog_cc_shlib"; then
  4267. { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
  4268. echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  4269. if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  4270. else
  4271. { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  4272. echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  4273. lt_cv_prog_cc_can_build_shared=no
  4274. fi
  4275. fi
  4276. echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  4277. echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
  4278. if test "${lt_cv_prog_cc_static_works+set}" = set; then
  4279. echo $ECHO_N "(cached) $ECHO_C" >&6
  4280. else
  4281. lt_cv_prog_cc_static_works=no
  4282. save_LDFLAGS="$LDFLAGS"
  4283. LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  4284. cat >conftest.$ac_ext <<_ACEOF
  4285. #line $LINENO "configure"
  4286. #include "confdefs.h"
  4287. #ifdef F77_DUMMY_MAIN
  4288. # ifdef __cplusplus
  4289. extern "C"
  4290. # endif
  4291. int F77_DUMMY_MAIN() { return 1; }
  4292. #endif
  4293. int
  4294. main ()
  4295. {
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. rm -f conftest.$ac_objext conftest$ac_exeext
  4301. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4302. (eval $ac_link) 2>&5
  4303. ac_status=$?
  4304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4305. (exit $ac_status); } &&
  4306. { ac_try='test -s conftest$ac_exeext'
  4307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4308. (eval $ac_try) 2>&5
  4309. ac_status=$?
  4310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4311. (exit $ac_status); }; }; then
  4312. lt_cv_prog_cc_static_works=yes
  4313. else
  4314. echo "$as_me: failed program was:" >&5
  4315. cat conftest.$ac_ext >&5
  4316. fi
  4317. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4318. LDFLAGS="$save_LDFLAGS"
  4319. fi
  4320. # Belt *and* braces to stop my trousers falling down:
  4321. test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  4322. echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
  4323. echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
  4324. pic_flag="$lt_cv_prog_cc_pic"
  4325. special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  4326. wl="$lt_cv_prog_cc_wl"
  4327. link_static_flag="$lt_cv_prog_cc_static"
  4328. no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  4329. can_build_shared="$lt_cv_prog_cc_can_build_shared"
  4330. # Check to see if options -o and -c are simultaneously supported by compiler
  4331. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  4332. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  4333. if test "${lt_cv_compiler_c_o+set}" = set; then
  4334. echo $ECHO_N "(cached) $ECHO_C" >&6
  4335. else
  4336. $rm -r conftest 2>/dev/null
  4337. mkdir conftest
  4338. cd conftest
  4339. echo "int some_variable = 0;" > conftest.$ac_ext
  4340. mkdir out
  4341. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  4342. # that will create temporary files in the current directory regardless of
  4343. # the output directory. Thus, making CWD read-only will cause this test
  4344. # to fail, enabling locking or at least warning the user not to do parallel
  4345. # builds.
  4346. chmod -w .
  4347. save_CFLAGS="$CFLAGS"
  4348. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  4349. compiler_c_o=no
  4350. if { (eval echo configure:4867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  4351. # The compiler can only warn and ignore the option if not recognized
  4352. # So say no if there are warnings
  4353. if test -s out/conftest.err; then
  4354. lt_cv_compiler_c_o=no
  4355. else
  4356. lt_cv_compiler_c_o=yes
  4357. fi
  4358. else
  4359. # Append any errors to the config.log.
  4360. cat out/conftest.err 1>&5
  4361. lt_cv_compiler_c_o=no
  4362. fi
  4363. CFLAGS="$save_CFLAGS"
  4364. chmod u+w .
  4365. $rm conftest* out/*
  4366. rmdir out
  4367. cd ..
  4368. rmdir conftest
  4369. $rm -r conftest 2>/dev/null
  4370. fi
  4371. compiler_c_o=$lt_cv_compiler_c_o
  4372. echo "$as_me:$LINENO: result: $compiler_c_o" >&5
  4373. echo "${ECHO_T}$compiler_c_o" >&6
  4374. if test x"$compiler_c_o" = x"yes"; then
  4375. # Check to see if we can write to a .lo
  4376. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
  4377. echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  4378. if test "${lt_cv_compiler_o_lo+set}" = set; then
  4379. echo $ECHO_N "(cached) $ECHO_C" >&6
  4380. else
  4381. lt_cv_compiler_o_lo=no
  4382. save_CFLAGS="$CFLAGS"
  4383. CFLAGS="$CFLAGS -c -o conftest.lo"
  4384. save_objext="$ac_objext"
  4385. ac_objext=lo
  4386. cat >conftest.$ac_ext <<_ACEOF
  4387. #line $LINENO "configure"
  4388. #include "confdefs.h"
  4389. #ifdef F77_DUMMY_MAIN
  4390. # ifdef __cplusplus
  4391. extern "C"
  4392. # endif
  4393. int F77_DUMMY_MAIN() { return 1; }
  4394. #endif
  4395. int
  4396. main ()
  4397. {
  4398. int some_variable = 0;
  4399. ;
  4400. return 0;
  4401. }
  4402. _ACEOF
  4403. rm -f conftest.$ac_objext
  4404. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4405. (eval $ac_compile) 2>&5
  4406. ac_status=$?
  4407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4408. (exit $ac_status); } &&
  4409. { ac_try='test -s conftest.$ac_objext'
  4410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4411. (eval $ac_try) 2>&5
  4412. ac_status=$?
  4413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4414. (exit $ac_status); }; }; then
  4415. # The compiler can only warn and ignore the option if not recognized
  4416. # So say no if there are warnings
  4417. if test -s conftest.err; then
  4418. lt_cv_compiler_o_lo=no
  4419. else
  4420. lt_cv_compiler_o_lo=yes
  4421. fi
  4422. else
  4423. echo "$as_me: failed program was:" >&5
  4424. cat conftest.$ac_ext >&5
  4425. fi
  4426. rm -f conftest.$ac_objext conftest.$ac_ext
  4427. ac_objext="$save_objext"
  4428. CFLAGS="$save_CFLAGS"
  4429. fi
  4430. compiler_o_lo=$lt_cv_compiler_o_lo
  4431. echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
  4432. echo "${ECHO_T}$compiler_o_lo" >&6
  4433. else
  4434. compiler_o_lo=no
  4435. fi
  4436. # Check to see if we can do hard links to lock some files if needed
  4437. hard_links="nottested"
  4438. if test "$compiler_c_o" = no && test "$need_locks" != no; then
  4439. # do not overwrite the value of need_locks provided by the user
  4440. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  4441. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  4442. hard_links=yes
  4443. $rm conftest*
  4444. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4445. touch conftest.a
  4446. ln conftest.a conftest.b 2>&5 || hard_links=no
  4447. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4448. echo "$as_me:$LINENO: result: $hard_links" >&5
  4449. echo "${ECHO_T}$hard_links" >&6
  4450. if test "$hard_links" = no; then
  4451. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  4452. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  4453. need_locks=warn
  4454. fi
  4455. else
  4456. need_locks=no
  4457. fi
  4458. if test "$GCC" = yes; then
  4459. # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  4460. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  4461. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  4462. echo "int some_variable = 0;" > conftest.$ac_ext
  4463. save_CFLAGS="$CFLAGS"
  4464. CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  4465. compiler_rtti_exceptions=no
  4466. cat >conftest.$ac_ext <<_ACEOF
  4467. #line $LINENO "configure"
  4468. #include "confdefs.h"
  4469. #ifdef F77_DUMMY_MAIN
  4470. # ifdef __cplusplus
  4471. extern "C"
  4472. # endif
  4473. int F77_DUMMY_MAIN() { return 1; }
  4474. #endif
  4475. int
  4476. main ()
  4477. {
  4478. int some_variable = 0;
  4479. ;
  4480. return 0;
  4481. }
  4482. _ACEOF
  4483. rm -f conftest.$ac_objext
  4484. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4485. (eval $ac_compile) 2>&5
  4486. ac_status=$?
  4487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4488. (exit $ac_status); } &&
  4489. { ac_try='test -s conftest.$ac_objext'
  4490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4491. (eval $ac_try) 2>&5
  4492. ac_status=$?
  4493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4494. (exit $ac_status); }; }; then
  4495. # The compiler can only warn and ignore the option if not recognized
  4496. # So say no if there are warnings
  4497. if test -s conftest.err; then
  4498. compiler_rtti_exceptions=no
  4499. else
  4500. compiler_rtti_exceptions=yes
  4501. fi
  4502. else
  4503. echo "$as_me: failed program was:" >&5
  4504. cat conftest.$ac_ext >&5
  4505. fi
  4506. rm -f conftest.$ac_objext conftest.$ac_ext
  4507. CFLAGS="$save_CFLAGS"
  4508. echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  4509. echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  4510. if test "$compiler_rtti_exceptions" = "yes"; then
  4511. no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  4512. else
  4513. no_builtin_flag=' -fno-builtin'
  4514. fi
  4515. fi
  4516. # See if the linker supports building shared libraries.
  4517. echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
  4518. echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
  4519. allow_undefined_flag=
  4520. no_undefined_flag=
  4521. need_lib_prefix=unknown
  4522. need_version=unknown
  4523. # when you set need_version to no, make sure it does not cause -set_version
  4524. # flags to be left without arguments
  4525. archive_cmds=
  4526. archive_expsym_cmds=
  4527. old_archive_from_new_cmds=
  4528. old_archive_from_expsyms_cmds=
  4529. export_dynamic_flag_spec=
  4530. whole_archive_flag_spec=
  4531. thread_safe_flag_spec=
  4532. hardcode_into_libs=no
  4533. hardcode_libdir_flag_spec=
  4534. hardcode_libdir_separator=
  4535. hardcode_direct=no
  4536. hardcode_minus_L=no
  4537. hardcode_shlibpath_var=unsupported
  4538. runpath_var=
  4539. link_all_deplibs=unknown
  4540. always_export_symbols=no
  4541. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4542. # include_expsyms should be a list of space-separated symbols to be *always*
  4543. # included in the symbol list
  4544. include_expsyms=
  4545. # exclude_expsyms can be an egrep regular expression of symbols to exclude
  4546. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4547. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4548. # as well as any symbol that contains `d'.
  4549. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  4550. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4551. # platforms (ab)use it in PIC code, but their linkers get confused if
  4552. # the symbol is explicitly referenced. Since portable code cannot
  4553. # rely on this symbol name, it's probably fine to never include it in
  4554. # preloaded symbol tables.
  4555. extract_expsyms_cmds=
  4556. case $host_os in
  4557. cygwin* | mingw* | pw32*)
  4558. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4559. # When not using gcc, we currently assume that we are using
  4560. # Microsoft Visual C++.
  4561. if test "$GCC" != yes; then
  4562. with_gnu_ld=no
  4563. fi
  4564. ;;
  4565. openbsd*)
  4566. with_gnu_ld=no
  4567. ;;
  4568. esac
  4569. ld_shlibs=yes
  4570. if test "$with_gnu_ld" = yes; then
  4571. # If archive_cmds runs LD, not CC, wlarc should be empty
  4572. wlarc='${wl}'
  4573. # See if GNU ld supports shared libraries.
  4574. case $host_os in
  4575. aix3* | aix4* | aix5*)
  4576. # On AIX, the GNU linker is very broken
  4577. # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  4578. ld_shlibs=no
  4579. cat <<EOF 1>&2
  4580. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4581. *** to be unable to reliably create shared libraries on AIX.
  4582. *** Therefore, libtool is disabling shared libraries support. If you
  4583. *** really care for shared libraries, you may want to modify your PATH
  4584. *** so that a non-GNU linker is found, and then restart.
  4585. EOF
  4586. ;;
  4587. amigaos*)
  4588. 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)'
  4589. hardcode_libdir_flag_spec='-L$libdir'
  4590. hardcode_minus_L=yes
  4591. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  4592. # that the semantics of dynamic libraries on AmigaOS, at least up
  4593. # to version 4, is to share data among multiple programs linked
  4594. # with the same dynamic library. Since this doesn't match the
  4595. # behavior of shared libraries on other platforms, we can use
  4596. # them.
  4597. ld_shlibs=no
  4598. ;;
  4599. beos*)
  4600. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4601. allow_undefined_flag=unsupported
  4602. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4603. # support --undefined. This deserves some investigation. FIXME
  4604. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4605. else
  4606. ld_shlibs=no
  4607. fi
  4608. ;;
  4609. cygwin* | mingw* | pw32*)
  4610. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4611. # no search path for DLLs.
  4612. hardcode_libdir_flag_spec='-L$libdir'
  4613. allow_undefined_flag=unsupported
  4614. always_export_symbols=yes
  4615. extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  4616. sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  4617. test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  4618. if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  4619. else $CC -o impgen impgen.c ; fi)~
  4620. $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  4621. old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  4622. # cygwin and mingw dlls have different entry points and sets of symbols
  4623. # to exclude.
  4624. # FIXME: what about values for MSVC?
  4625. dll_entry=__cygwin_dll_entry@12
  4626. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  4627. case $host_os in
  4628. mingw*)
  4629. # mingw values
  4630. dll_entry=_DllMainCRTStartup@12
  4631. dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  4632. ;;
  4633. esac
  4634. # mingw and cygwin differ, and it's simplest to just exclude the union
  4635. # of the two symbol sets.
  4636. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  4637. # recent cygwin and mingw systems supply a stub DllMain which the user
  4638. # can override, but on older systems we have to supply one (in ltdll.c)
  4639. if test "x$lt_cv_need_dllmain" = "xyes"; then
  4640. ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  4641. 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~
  4642. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  4643. else
  4644. ltdll_obj=
  4645. ltdll_cmds=
  4646. fi
  4647. # Extract the symbol export list from an `--export-all' def file,
  4648. # then regenerate the def file from the symbol export list, so that
  4649. # the compiled dll only exports the symbol export list.
  4650. # Be careful not to strip the DATA tag left be newer dlltools.
  4651. export_symbols_cmds="$ltdll_cmds"'
  4652. $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  4653. sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  4654. # If the export-symbols file already is a .def file (1st line
  4655. # is EXPORTS), use it as is.
  4656. # If DATA tags from a recent dlltool are present, honour them!
  4657. archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  4658. cp $export_symbols $output_objdir/$soname-def;
  4659. else
  4660. echo EXPORTS > $output_objdir/$soname-def;
  4661. _lt_hint=1;
  4662. cat $export_symbols | while read symbol; do
  4663. set dummy \$symbol;
  4664. case \$# in
  4665. 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  4666. *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  4667. esac;
  4668. _lt_hint=`expr 1 + \$_lt_hint`;
  4669. done;
  4670. fi~
  4671. '"$ltdll_cmds"'
  4672. $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~
  4673. $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~
  4674. $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~
  4675. $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~
  4676. $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  4677. ;;
  4678. netbsd*)
  4679. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4680. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4681. wlarc=
  4682. else
  4683. archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4684. archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4685. fi
  4686. ;;
  4687. solaris* | sysv5*)
  4688. if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  4689. ld_shlibs=no
  4690. cat <<EOF 1>&2
  4691. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4692. *** create shared libraries on Solaris systems. Therefore, libtool
  4693. *** is disabling shared libraries support. We urge you to upgrade GNU
  4694. *** binutils to release 2.9.1 or newer. Another option is to modify
  4695. *** your PATH or compiler configuration so that the native linker is
  4696. *** used, and then restart.
  4697. EOF
  4698. elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4699. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4700. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4701. else
  4702. ld_shlibs=no
  4703. fi
  4704. ;;
  4705. sunos4*)
  4706. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4707. wlarc=
  4708. hardcode_direct=yes
  4709. hardcode_shlibpath_var=no
  4710. ;;
  4711. *)
  4712. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4713. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4714. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4715. else
  4716. ld_shlibs=no
  4717. fi
  4718. ;;
  4719. esac
  4720. if test "$ld_shlibs" = yes; then
  4721. runpath_var=LD_RUN_PATH
  4722. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  4723. export_dynamic_flag_spec='${wl}--export-dynamic'
  4724. case $host_os in
  4725. cygwin* | mingw* | pw32*)
  4726. # dlltool doesn't understand --whole-archive et. al.
  4727. whole_archive_flag_spec=
  4728. ;;
  4729. *)
  4730. # ancient GNU ld didn't support --whole-archive et. al.
  4731. if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  4732. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4733. else
  4734. whole_archive_flag_spec=
  4735. fi
  4736. ;;
  4737. esac
  4738. fi
  4739. else
  4740. # PORTME fill in a description of your system's linker (not GNU ld)
  4741. case $host_os in
  4742. aix3*)
  4743. allow_undefined_flag=unsupported
  4744. always_export_symbols=yes
  4745. 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'
  4746. # Note: this linker hardcodes the directories in LIBPATH if there
  4747. # are no directories specified by -L.
  4748. hardcode_minus_L=yes
  4749. if test "$GCC" = yes && test -z "$link_static_flag"; then
  4750. # Neither direct hardcoding nor static linking is supported with a
  4751. # broken collect2.
  4752. hardcode_direct=unsupported
  4753. fi
  4754. ;;
  4755. aix4* | aix5*)
  4756. if test "$host_cpu" = ia64; then
  4757. # On IA64, the linker does run time linking by default, so we don't
  4758. # have to do anything special.
  4759. aix_use_runtimelinking=no
  4760. exp_sym_flag='-Bexport'
  4761. no_entry_flag=""
  4762. else
  4763. aix_use_runtimelinking=no
  4764. # Test if we are trying to use run time linking or normal
  4765. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4766. # need to do runtime linking.
  4767. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  4768. for ld_flag in $LDFLAGS; do
  4769. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4770. aix_use_runtimelinking=yes
  4771. break
  4772. fi
  4773. done
  4774. esac
  4775. exp_sym_flag='-bexport'
  4776. no_entry_flag='-bnoentry'
  4777. fi
  4778. # When large executables or shared objects are built, AIX ld can
  4779. # have problems creating the table of contents. If linking a library
  4780. # or program results in "error TOC overflow" add -mminimal-toc to
  4781. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4782. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4783. hardcode_direct=yes
  4784. archive_cmds=''
  4785. hardcode_libdir_separator=':'
  4786. if test "$GCC" = yes; then
  4787. case $host_os in aix4.[012]|aix4.[012].*)
  4788. collect2name=`${CC} -print-prog-name=collect2`
  4789. if test -f "$collect2name" && \
  4790. strings "$collect2name" | grep resolve_lib_name >/dev/null
  4791. then
  4792. # We have reworked collect2
  4793. hardcode_direct=yes
  4794. else
  4795. # We have old collect2
  4796. hardcode_direct=unsupported
  4797. # It fails to find uninstalled libraries when the uninstalled
  4798. # path is not listed in the libpath. Setting hardcode_minus_L
  4799. # to unsupported forces relinking
  4800. hardcode_minus_L=yes
  4801. hardcode_libdir_flag_spec='-L$libdir'
  4802. hardcode_libdir_separator=
  4803. fi
  4804. esac
  4805. shared_flag='-shared'
  4806. else
  4807. # not using gcc
  4808. if test "$host_cpu" = ia64; then
  4809. shared_flag='${wl}-G'
  4810. else
  4811. if test "$aix_use_runtimelinking" = yes; then
  4812. shared_flag='${wl}-G'
  4813. else
  4814. shared_flag='${wl}-bM:SRE'
  4815. fi
  4816. fi
  4817. fi
  4818. # It seems that -bexpall can do strange things, so it is better to
  4819. # generate a list of symbols to export.
  4820. always_export_symbols=yes
  4821. if test "$aix_use_runtimelinking" = yes; then
  4822. # Warning - without using the other runtime loading flags (-brtl),
  4823. # -berok will link without error, but may produce a broken library.
  4824. allow_undefined_flag='-berok'
  4825. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  4826. 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"
  4827. else
  4828. if test "$host_cpu" = ia64; then
  4829. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  4830. allow_undefined_flag="-z nodefs"
  4831. 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"
  4832. else
  4833. hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  4834. # Warning - without using the other run time loading flags,
  4835. # -berok will link without error, but may produce a broken library.
  4836. allow_undefined_flag='${wl}-berok'
  4837. # This is a bit strange, but is similar to how AIX traditionally builds
  4838. # it's shared libraries.
  4839. 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'
  4840. fi
  4841. fi
  4842. ;;
  4843. amigaos*)
  4844. 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)'
  4845. hardcode_libdir_flag_spec='-L$libdir'
  4846. hardcode_minus_L=yes
  4847. # see comment about different semantics on the GNU ld section
  4848. ld_shlibs=no
  4849. ;;
  4850. cygwin* | mingw* | pw32*)
  4851. # When not using gcc, we currently assume that we are using
  4852. # Microsoft Visual C++.
  4853. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4854. # no search path for DLLs.
  4855. hardcode_libdir_flag_spec=' '
  4856. allow_undefined_flag=unsupported
  4857. # Tell ltmain to make .lib files, not .a files.
  4858. libext=lib
  4859. # FIXME: Setting linknames here is a bad hack.
  4860. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  4861. # The linker will automatically build a .lib file if we build a DLL.
  4862. old_archive_from_new_cmds='true'
  4863. # FIXME: Should let the user specify the lib program.
  4864. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  4865. fix_srcfile_path='`cygpath -w "$srcfile"`'
  4866. ;;
  4867. darwin* | rhapsody*)
  4868. case "$host_os" in
  4869. rhapsody* | darwin1.[012])
  4870. allow_undefined_flag='-undefined suppress'
  4871. ;;
  4872. *) # Darwin 1.3 on
  4873. allow_undefined_flag='-flat_namespace -undefined suppress'
  4874. ;;
  4875. esac
  4876. # FIXME: Relying on posixy $() will cause problems for
  4877. # cross-compilation, but unfortunately the echo tests do not
  4878. # yet detect zsh echo's removal of \ escapes.
  4879. archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
  4880. # We need to add '_' to the symbols in $export_symbols first
  4881. #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  4882. hardcode_direct=yes
  4883. hardcode_shlibpath_var=no
  4884. whole_archive_flag_spec='-all_load $convenience'
  4885. ;;
  4886. freebsd1*)
  4887. ld_shlibs=no
  4888. ;;
  4889. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4890. # support. Future versions do this automatically, but an explicit c++rt0.o
  4891. # does not break anything, and helps significantly (at the cost of a little
  4892. # extra space).
  4893. freebsd2.2*)
  4894. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4895. hardcode_libdir_flag_spec='-R$libdir'
  4896. hardcode_direct=yes
  4897. hardcode_shlibpath_var=no
  4898. ;;
  4899. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4900. freebsd2*)
  4901. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4902. hardcode_direct=yes
  4903. hardcode_minus_L=yes
  4904. hardcode_shlibpath_var=no
  4905. ;;
  4906. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4907. freebsd*)
  4908. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4909. hardcode_libdir_flag_spec='-R$libdir'
  4910. hardcode_direct=yes
  4911. hardcode_shlibpath_var=no
  4912. ;;
  4913. hpux9* | hpux10* | hpux11*)
  4914. case $host_os in
  4915. 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' ;;
  4916. *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  4917. esac
  4918. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  4919. hardcode_libdir_separator=:
  4920. hardcode_direct=yes
  4921. hardcode_minus_L=yes # Not in the search PATH, but as the default
  4922. # location of the library.
  4923. export_dynamic_flag_spec='${wl}-E'
  4924. ;;
  4925. irix5* | irix6*)
  4926. if test "$GCC" = yes; then
  4927. 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'
  4928. else
  4929. 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'
  4930. fi
  4931. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4932. hardcode_libdir_separator=:
  4933. link_all_deplibs=yes
  4934. ;;
  4935. netbsd*)
  4936. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4937. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4938. else
  4939. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4940. fi
  4941. hardcode_libdir_flag_spec='-R$libdir'
  4942. hardcode_direct=yes
  4943. hardcode_shlibpath_var=no
  4944. ;;
  4945. newsos6)
  4946. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4947. hardcode_direct=yes
  4948. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4949. hardcode_libdir_separator=:
  4950. hardcode_shlibpath_var=no
  4951. ;;
  4952. openbsd*)
  4953. hardcode_direct=yes
  4954. hardcode_shlibpath_var=no
  4955. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4956. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  4957. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  4958. export_dynamic_flag_spec='${wl}-E'
  4959. else
  4960. case "$host_os" in
  4961. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  4962. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4963. hardcode_libdir_flag_spec='-R$libdir'
  4964. ;;
  4965. *)
  4966. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  4967. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  4968. ;;
  4969. esac
  4970. fi
  4971. ;;
  4972. os2*)
  4973. hardcode_libdir_flag_spec='-L$libdir'
  4974. hardcode_minus_L=yes
  4975. allow_undefined_flag=unsupported
  4976. 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'
  4977. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4978. ;;
  4979. osf3*)
  4980. if test "$GCC" = yes; then
  4981. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4982. 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'
  4983. else
  4984. allow_undefined_flag=' -expect_unresolved \*'
  4985. 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'
  4986. fi
  4987. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4988. hardcode_libdir_separator=:
  4989. ;;
  4990. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4991. if test "$GCC" = yes; then
  4992. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4993. 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'
  4994. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4995. else
  4996. allow_undefined_flag=' -expect_unresolved \*'
  4997. 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'
  4998. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  4999. $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'
  5000. #Both c and cxx compiler support -rpath directly
  5001. hardcode_libdir_flag_spec='-rpath $libdir'
  5002. fi
  5003. hardcode_libdir_separator=:
  5004. ;;
  5005. sco3.2v5*)
  5006. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5007. hardcode_shlibpath_var=no
  5008. runpath_var=LD_RUN_PATH
  5009. hardcode_runpath_var=yes
  5010. export_dynamic_flag_spec='${wl}-Bexport'
  5011. ;;
  5012. solaris*)
  5013. # gcc --version < 3.0 without binutils cannot create self contained
  5014. # shared libraries reliably, requiring libgcc.a to resolve some of
  5015. # the object symbols generated in some cases. Libraries that use
  5016. # assert need libgcc.a to resolve __eprintf, for example. Linking
  5017. # a copy of libgcc.a into every shared library to guarantee resolving
  5018. # such symbols causes other problems: According to Tim Van Holder
  5019. # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  5020. # (to the application) exception stack for one thing.
  5021. no_undefined_flag=' -z defs'
  5022. if test "$GCC" = yes; then
  5023. case `$CC --version 2>/dev/null` in
  5024. [12].*)
  5025. cat <<EOF 1>&2
  5026. *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  5027. *** create self contained shared libraries on Solaris systems, without
  5028. *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  5029. *** -no-undefined support, which will at least allow you to build shared
  5030. *** libraries. However, you may find that when you link such libraries
  5031. *** into an application without using GCC, you have to manually add
  5032. *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  5033. *** upgrade to a newer version of GCC. Another option is to rebuild your
  5034. *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  5035. EOF
  5036. no_undefined_flag=
  5037. ;;
  5038. esac
  5039. fi
  5040. # $CC -shared without GNU ld will not create a library from C++
  5041. # object files and a static libstdc++, better avoid it by now
  5042. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5043. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5044. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  5045. hardcode_libdir_flag_spec='-R$libdir'
  5046. hardcode_shlibpath_var=no
  5047. case $host_os in
  5048. solaris2.[0-5] | solaris2.[0-5].*) ;;
  5049. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  5050. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  5051. esac
  5052. link_all_deplibs=yes
  5053. ;;
  5054. sunos4*)
  5055. if test "x$host_vendor" = xsequent; then
  5056. # Use $CC to link under sequent, because it throws in some extra .o
  5057. # files that make .init and .fini sections work.
  5058. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5059. else
  5060. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5061. fi
  5062. hardcode_libdir_flag_spec='-L$libdir'
  5063. hardcode_direct=yes
  5064. hardcode_minus_L=yes
  5065. hardcode_shlibpath_var=no
  5066. ;;
  5067. sysv4)
  5068. if test "x$host_vendor" = xsno; then
  5069. archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5070. hardcode_direct=yes # is this really true???
  5071. else
  5072. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5073. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  5074. fi
  5075. runpath_var='LD_RUN_PATH'
  5076. hardcode_shlibpath_var=no
  5077. ;;
  5078. sysv4.3*)
  5079. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5080. hardcode_shlibpath_var=no
  5081. export_dynamic_flag_spec='-Bexport'
  5082. ;;
  5083. sysv5*)
  5084. no_undefined_flag=' -z text'
  5085. # $CC -shared without GNU ld will not create a library from C++
  5086. # object files and a static libstdc++, better avoid it by now
  5087. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5088. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5089. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  5090. hardcode_libdir_flag_spec=
  5091. hardcode_shlibpath_var=no
  5092. runpath_var='LD_RUN_PATH'
  5093. ;;
  5094. uts4*)
  5095. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5096. hardcode_libdir_flag_spec='-L$libdir'
  5097. hardcode_shlibpath_var=no
  5098. ;;
  5099. dgux*)
  5100. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5101. hardcode_libdir_flag_spec='-L$libdir'
  5102. hardcode_shlibpath_var=no
  5103. ;;
  5104. sysv4*MP*)
  5105. if test -d /usr/nec; then
  5106. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5107. hardcode_shlibpath_var=no
  5108. runpath_var=LD_RUN_PATH
  5109. hardcode_runpath_var=yes
  5110. ld_shlibs=yes
  5111. fi
  5112. ;;
  5113. sysv4.2uw2*)
  5114. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5115. hardcode_direct=yes
  5116. hardcode_minus_L=no
  5117. hardcode_shlibpath_var=no
  5118. hardcode_runpath_var=yes
  5119. runpath_var=LD_RUN_PATH
  5120. ;;
  5121. sysv5uw7* | unixware7*)
  5122. no_undefined_flag='${wl}-z ${wl}text'
  5123. if test "$GCC" = yes; then
  5124. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5125. else
  5126. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5127. fi
  5128. runpath_var='LD_RUN_PATH'
  5129. hardcode_shlibpath_var=no
  5130. ;;
  5131. *)
  5132. ld_shlibs=no
  5133. ;;
  5134. esac
  5135. fi
  5136. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  5137. echo "${ECHO_T}$ld_shlibs" >&6
  5138. test "$ld_shlibs" = no && can_build_shared=no
  5139. # Check hardcoding attributes.
  5140. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  5141. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  5142. hardcode_action=
  5143. if test -n "$hardcode_libdir_flag_spec" || \
  5144. test -n "$runpath_var"; then
  5145. # We can hardcode non-existant directories.
  5146. if test "$hardcode_direct" != no &&
  5147. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  5148. # have to relink, otherwise we might link with an installed library
  5149. # when we should be linking with a yet-to-be-installed one
  5150. ## test "$hardcode_shlibpath_var" != no &&
  5151. test "$hardcode_minus_L" != no; then
  5152. # Linking always hardcodes the temporary library directory.
  5153. hardcode_action=relink
  5154. else
  5155. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  5156. hardcode_action=immediate
  5157. fi
  5158. else
  5159. # We cannot hardcode anything, or else we can only hardcode existing
  5160. # directories.
  5161. hardcode_action=unsupported
  5162. fi
  5163. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  5164. echo "${ECHO_T}$hardcode_action" >&6
  5165. striplib=
  5166. old_striplib=
  5167. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  5168. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  5169. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  5170. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  5171. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  5172. echo "$as_me:$LINENO: result: yes" >&5
  5173. echo "${ECHO_T}yes" >&6
  5174. else
  5175. echo "$as_me:$LINENO: result: no" >&5
  5176. echo "${ECHO_T}no" >&6
  5177. fi
  5178. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5179. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5180. # PORTME Fill in your ld.so characteristics
  5181. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  5182. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  5183. library_names_spec=
  5184. libname_spec='lib$name'
  5185. soname_spec=
  5186. postinstall_cmds=
  5187. postuninstall_cmds=
  5188. finish_cmds=
  5189. finish_eval=
  5190. shlibpath_var=
  5191. shlibpath_overrides_runpath=unknown
  5192. version_type=none
  5193. dynamic_linker="$host_os ld.so"
  5194. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  5195. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  5196. case $host_os in
  5197. aix3*)
  5198. version_type=linux
  5199. library_names_spec='${libname}${release}.so$versuffix $libname.a'
  5200. shlibpath_var=LIBPATH
  5201. # AIX has no versioning support, so we append a major version to the name.
  5202. soname_spec='${libname}${release}.so$major'
  5203. ;;
  5204. aix4* | aix5*)
  5205. version_type=linux
  5206. if test "$host_cpu" = ia64; then
  5207. # AIX 5 supports IA64
  5208. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  5209. shlibpath_var=LD_LIBRARY_PATH
  5210. else
  5211. # With GCC up to 2.95.x, collect2 would create an import file
  5212. # for dependence libraries. The import file would start with
  5213. # the line `#! .'. This would cause the generated library to
  5214. # depend on `.', always an invalid library. This was fixed in
  5215. # development snapshots of GCC prior to 3.0.
  5216. case $host_os in
  5217. aix4 | aix4.[01] | aix4.[01].*)
  5218. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  5219. echo ' yes '
  5220. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  5221. :
  5222. else
  5223. can_build_shared=no
  5224. fi
  5225. ;;
  5226. esac
  5227. # AIX (on Power*) has no versioning support, so currently we can
  5228. # not hardcode correct soname into executable. Probably we can
  5229. # add versioning support to collect2, so additional links can
  5230. # be useful in future.
  5231. if test "$aix_use_runtimelinking" = yes; then
  5232. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  5233. # instead of lib<name>.a to let people know that these are not
  5234. # typical AIX shared libraries.
  5235. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5236. else
  5237. # We preserve .a as extension for shared libraries through AIX4.2
  5238. # and later when we are not doing run time linking.
  5239. library_names_spec='${libname}${release}.a $libname.a'
  5240. soname_spec='${libname}${release}.so$major'
  5241. fi
  5242. shlibpath_var=LIBPATH
  5243. fi
  5244. ;;
  5245. amigaos*)
  5246. library_names_spec='$libname.ixlibrary $libname.a'
  5247. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  5248. 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'
  5249. ;;
  5250. beos*)
  5251. library_names_spec='${libname}.so'
  5252. dynamic_linker="$host_os ld.so"
  5253. shlibpath_var=LIBRARY_PATH
  5254. ;;
  5255. bsdi4*)
  5256. version_type=linux
  5257. need_version=no
  5258. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5259. soname_spec='${libname}${release}.so$major'
  5260. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  5261. shlibpath_var=LD_LIBRARY_PATH
  5262. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  5263. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  5264. export_dynamic_flag_spec=-rdynamic
  5265. # the default ld.so.conf also contains /usr/contrib/lib and
  5266. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  5267. # libtool to hard-code these into programs
  5268. ;;
  5269. cygwin* | mingw* | pw32*)
  5270. version_type=windows
  5271. need_version=no
  5272. need_lib_prefix=no
  5273. case $GCC,$host_os in
  5274. yes,cygwin*)
  5275. library_names_spec='$libname.dll.a'
  5276. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  5277. postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  5278. dldir=$destdir/`dirname \$dlpath`~
  5279. test -d \$dldir || mkdir -p \$dldir~
  5280. $install_prog .libs/$dlname \$dldir/$dlname'
  5281. postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  5282. dlpath=$dir/\$dldll~
  5283. $rm \$dlpath'
  5284. ;;
  5285. yes,mingw*)
  5286. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  5287. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
  5288. ;;
  5289. yes,pw32*)
  5290. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  5291. ;;
  5292. *)
  5293. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  5294. ;;
  5295. esac
  5296. dynamic_linker='Win32 ld.exe'
  5297. # FIXME: first we should search . and the directory the executable is in
  5298. shlibpath_var=PATH
  5299. ;;
  5300. darwin* | rhapsody*)
  5301. dynamic_linker="$host_os dyld"
  5302. version_type=darwin
  5303. need_lib_prefix=no
  5304. need_version=no
  5305. # FIXME: Relying on posixy $() will cause problems for
  5306. # cross-compilation, but unfortunately the echo tests do not
  5307. # yet detect zsh echo's removal of \ escapes.
  5308. 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)'
  5309. soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  5310. shlibpath_overrides_runpath=yes
  5311. shlibpath_var=DYLD_LIBRARY_PATH
  5312. ;;
  5313. freebsd1*)
  5314. dynamic_linker=no
  5315. ;;
  5316. freebsd*)
  5317. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  5318. version_type=freebsd-$objformat
  5319. case $version_type in
  5320. freebsd-elf*)
  5321. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  5322. need_version=no
  5323. need_lib_prefix=no
  5324. ;;
  5325. freebsd-*)
  5326. library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  5327. need_version=yes
  5328. ;;
  5329. esac
  5330. shlibpath_var=LD_LIBRARY_PATH
  5331. case $host_os in
  5332. freebsd2*)
  5333. shlibpath_overrides_runpath=yes
  5334. ;;
  5335. *)
  5336. shlibpath_overrides_runpath=no
  5337. hardcode_into_libs=yes
  5338. ;;
  5339. esac
  5340. ;;
  5341. gnu*)
  5342. version_type=linux
  5343. need_lib_prefix=no
  5344. need_version=no
  5345. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  5346. soname_spec='${libname}${release}.so$major'
  5347. shlibpath_var=LD_LIBRARY_PATH
  5348. hardcode_into_libs=yes
  5349. ;;
  5350. hpux9* | hpux10* | hpux11*)
  5351. # Give a soname corresponding to the major version so that dld.sl refuses to
  5352. # link against other versions.
  5353. dynamic_linker="$host_os dld.sl"
  5354. version_type=sunos
  5355. need_lib_prefix=no
  5356. need_version=no
  5357. shlibpath_var=SHLIB_PATH
  5358. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  5359. library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  5360. soname_spec='${libname}${release}.sl$major'
  5361. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  5362. postinstall_cmds='chmod 555 $lib'
  5363. ;;
  5364. irix5* | irix6*)
  5365. version_type=irix
  5366. need_lib_prefix=no
  5367. need_version=no
  5368. soname_spec='${libname}${release}.so$major'
  5369. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  5370. case $host_os in
  5371. irix5*)
  5372. libsuff= shlibsuff=
  5373. ;;
  5374. *)
  5375. case $LD in # libtool.m4 will add one of these switches to LD
  5376. *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  5377. *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  5378. *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  5379. *) libsuff= shlibsuff= libmagic=never-match;;
  5380. esac
  5381. ;;
  5382. esac
  5383. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  5384. shlibpath_overrides_runpath=no
  5385. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  5386. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  5387. ;;
  5388. # No shared lib support for Linux oldld, aout, or coff.
  5389. linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  5390. dynamic_linker=no
  5391. ;;
  5392. # This must be Linux ELF.
  5393. linux-gnu*)
  5394. version_type=linux
  5395. need_lib_prefix=no
  5396. need_version=no
  5397. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5398. soname_spec='${libname}${release}.so$major'
  5399. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  5400. shlibpath_var=LD_LIBRARY_PATH
  5401. shlibpath_overrides_runpath=no
  5402. # This implies no fast_install, which is unacceptable.
  5403. # Some rework will be needed to allow for fast_install
  5404. # before this can be enabled.
  5405. hardcode_into_libs=yes
  5406. # We used to test for /lib/ld.so.1 and disable shared libraries on
  5407. # powerpc, because MkLinux only supported shared libraries with the
  5408. # GNU dynamic linker. Since this was broken with cross compilers,
  5409. # most powerpc-linux boxes support dynamic linking these days and
  5410. # people can always --disable-shared, the test was removed, and we
  5411. # assume the GNU/Linux dynamic linker is in use.
  5412. dynamic_linker='GNU/Linux ld.so'
  5413. ;;
  5414. netbsd*)
  5415. version_type=sunos
  5416. need_lib_prefix=no
  5417. need_version=no
  5418. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5419. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5420. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5421. dynamic_linker='NetBSD (a.out) ld.so'
  5422. else
  5423. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  5424. soname_spec='${libname}${release}.so$major'
  5425. dynamic_linker='NetBSD ld.elf_so'
  5426. fi
  5427. shlibpath_var=LD_LIBRARY_PATH
  5428. shlibpath_overrides_runpath=yes
  5429. hardcode_into_libs=yes
  5430. ;;
  5431. newsos6)
  5432. version_type=linux
  5433. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5434. shlibpath_var=LD_LIBRARY_PATH
  5435. shlibpath_overrides_runpath=yes
  5436. ;;
  5437. openbsd*)
  5438. version_type=sunos
  5439. need_lib_prefix=no
  5440. need_version=no
  5441. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5442. case "$host_os" in
  5443. openbsd2.[89] | openbsd2.[89].*)
  5444. shlibpath_overrides_runpath=no
  5445. ;;
  5446. *)
  5447. shlibpath_overrides_runpath=yes
  5448. ;;
  5449. esac
  5450. else
  5451. shlibpath_overrides_runpath=yes
  5452. fi
  5453. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5454. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5455. shlibpath_var=LD_LIBRARY_PATH
  5456. ;;
  5457. os2*)
  5458. libname_spec='$name'
  5459. need_lib_prefix=no
  5460. library_names_spec='$libname.dll $libname.a'
  5461. dynamic_linker='OS/2 ld.exe'
  5462. shlibpath_var=LIBPATH
  5463. ;;
  5464. osf3* | osf4* | osf5*)
  5465. version_type=osf
  5466. need_version=no
  5467. soname_spec='${libname}${release}.so'
  5468. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  5469. shlibpath_var=LD_LIBRARY_PATH
  5470. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  5471. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  5472. ;;
  5473. sco3.2v5*)
  5474. version_type=osf
  5475. soname_spec='${libname}${release}.so$major'
  5476. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5477. shlibpath_var=LD_LIBRARY_PATH
  5478. ;;
  5479. solaris*)
  5480. version_type=linux
  5481. need_lib_prefix=no
  5482. need_version=no
  5483. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5484. soname_spec='${libname}${release}.so$major'
  5485. shlibpath_var=LD_LIBRARY_PATH
  5486. shlibpath_overrides_runpath=yes
  5487. hardcode_into_libs=yes
  5488. # ldd complains unless libraries are executable
  5489. postinstall_cmds='chmod +x $lib'
  5490. ;;
  5491. sunos4*)
  5492. version_type=sunos
  5493. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5494. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  5495. shlibpath_var=LD_LIBRARY_PATH
  5496. shlibpath_overrides_runpath=yes
  5497. if test "$with_gnu_ld" = yes; then
  5498. need_lib_prefix=no
  5499. fi
  5500. need_version=yes
  5501. ;;
  5502. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5503. version_type=linux
  5504. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5505. soname_spec='${libname}${release}.so$major'
  5506. shlibpath_var=LD_LIBRARY_PATH
  5507. case $host_vendor in
  5508. sni)
  5509. shlibpath_overrides_runpath=no
  5510. ;;
  5511. motorola)
  5512. need_lib_prefix=no
  5513. need_version=no
  5514. shlibpath_overrides_runpath=no
  5515. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  5516. ;;
  5517. esac
  5518. ;;
  5519. uts4*)
  5520. version_type=linux
  5521. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5522. soname_spec='${libname}${release}.so$major'
  5523. shlibpath_var=LD_LIBRARY_PATH
  5524. ;;
  5525. dgux*)
  5526. version_type=linux
  5527. need_lib_prefix=no
  5528. need_version=no
  5529. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5530. soname_spec='${libname}${release}.so$major'
  5531. shlibpath_var=LD_LIBRARY_PATH
  5532. ;;
  5533. sysv4*MP*)
  5534. if test -d /usr/nec ;then
  5535. version_type=linux
  5536. library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  5537. soname_spec='$libname.so.$major'
  5538. shlibpath_var=LD_LIBRARY_PATH
  5539. fi
  5540. ;;
  5541. *)
  5542. dynamic_linker=no
  5543. ;;
  5544. esac
  5545. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  5546. echo "${ECHO_T}$dynamic_linker" >&6
  5547. test "$dynamic_linker" = no && can_build_shared=no
  5548. # Report the final consequences.
  5549. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  5550. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  5551. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  5552. echo "${ECHO_T}$can_build_shared" >&6
  5553. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  5554. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  5555. test "$can_build_shared" = "no" && enable_shared=no
  5556. # On AIX, shared libraries and static libraries use the same namespace, and
  5557. # are all built from PIC.
  5558. case "$host_os" in
  5559. aix3*)
  5560. test "$enable_shared" = yes && enable_static=no
  5561. if test -n "$RANLIB"; then
  5562. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5563. postinstall_cmds='$RANLIB $lib'
  5564. fi
  5565. ;;
  5566. aix4*)
  5567. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5568. test "$enable_shared" = yes && enable_static=no
  5569. fi
  5570. ;;
  5571. esac
  5572. echo "$as_me:$LINENO: result: $enable_shared" >&5
  5573. echo "${ECHO_T}$enable_shared" >&6
  5574. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  5575. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  5576. # Make sure either enable_shared or enable_static is yes.
  5577. test "$enable_shared" = yes || enable_static=yes
  5578. echo "$as_me:$LINENO: result: $enable_static" >&5
  5579. echo "${ECHO_T}$enable_static" >&6
  5580. if test "$hardcode_action" = relink; then
  5581. # Fast installation is not supported
  5582. enable_fast_install=no
  5583. elif test "$shlibpath_overrides_runpath" = yes ||
  5584. test "$enable_shared" = no; then
  5585. # Fast installation is not necessary
  5586. enable_fast_install=needless
  5587. fi
  5588. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  5589. if test "$GCC" = yes; then
  5590. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  5591. fi
  5592. if test "x$enable_dlopen" != xyes; then
  5593. enable_dlopen=unknown
  5594. enable_dlopen_self=unknown
  5595. enable_dlopen_self_static=unknown
  5596. else
  5597. lt_cv_dlopen=no
  5598. lt_cv_dlopen_libs=
  5599. case $host_os in
  5600. beos*)
  5601. lt_cv_dlopen="load_add_on"
  5602. lt_cv_dlopen_libs=
  5603. lt_cv_dlopen_self=yes
  5604. ;;
  5605. cygwin* | mingw* | pw32*)
  5606. lt_cv_dlopen="LoadLibrary"
  5607. lt_cv_dlopen_libs=
  5608. ;;
  5609. *)
  5610. echo "$as_me:$LINENO: checking for shl_load" >&5
  5611. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  5612. if test "${ac_cv_func_shl_load+set}" = set; then
  5613. echo $ECHO_N "(cached) $ECHO_C" >&6
  5614. else
  5615. cat >conftest.$ac_ext <<_ACEOF
  5616. #line $LINENO "configure"
  5617. #include "confdefs.h"
  5618. /* System header to define __stub macros and hopefully few prototypes,
  5619. which can conflict with char shl_load (); below. */
  5620. #include <assert.h>
  5621. /* Override any gcc2 internal prototype to avoid an error. */
  5622. #ifdef __cplusplus
  5623. extern "C"
  5624. #endif
  5625. /* We use char because int might match the return type of a gcc2
  5626. builtin and then its argument prototype would still apply. */
  5627. char shl_load ();
  5628. char (*f) ();
  5629. #ifdef F77_DUMMY_MAIN
  5630. # ifdef __cplusplus
  5631. extern "C"
  5632. # endif
  5633. int F77_DUMMY_MAIN() { return 1; }
  5634. #endif
  5635. int
  5636. main ()
  5637. {
  5638. /* The GNU C library defines this for functions which it implements
  5639. to always fail with ENOSYS. Some functions are actually named
  5640. something starting with __ and the normal name is an alias. */
  5641. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  5642. choke me
  5643. #else
  5644. f = shl_load;
  5645. #endif
  5646. ;
  5647. return 0;
  5648. }
  5649. _ACEOF
  5650. rm -f conftest.$ac_objext conftest$ac_exeext
  5651. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5652. (eval $ac_link) 2>&5
  5653. ac_status=$?
  5654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5655. (exit $ac_status); } &&
  5656. { ac_try='test -s conftest$ac_exeext'
  5657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5658. (eval $ac_try) 2>&5
  5659. ac_status=$?
  5660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5661. (exit $ac_status); }; }; then
  5662. ac_cv_func_shl_load=yes
  5663. else
  5664. echo "$as_me: failed program was:" >&5
  5665. cat conftest.$ac_ext >&5
  5666. ac_cv_func_shl_load=no
  5667. fi
  5668. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5669. fi
  5670. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  5671. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  5672. if test $ac_cv_func_shl_load = yes; then
  5673. lt_cv_dlopen="shl_load"
  5674. else
  5675. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  5676. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  5677. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  5678. echo $ECHO_N "(cached) $ECHO_C" >&6
  5679. else
  5680. ac_check_lib_save_LIBS=$LIBS
  5681. LIBS="-ldld $LIBS"
  5682. cat >conftest.$ac_ext <<_ACEOF
  5683. #line $LINENO "configure"
  5684. #include "confdefs.h"
  5685. /* Override any gcc2 internal prototype to avoid an error. */
  5686. #ifdef __cplusplus
  5687. extern "C"
  5688. #endif
  5689. /* We use char because int might match the return type of a gcc2
  5690. builtin and then its argument prototype would still apply. */
  5691. char shl_load ();
  5692. #ifdef F77_DUMMY_MAIN
  5693. # ifdef __cplusplus
  5694. extern "C"
  5695. # endif
  5696. int F77_DUMMY_MAIN() { return 1; }
  5697. #endif
  5698. int
  5699. main ()
  5700. {
  5701. shl_load ();
  5702. ;
  5703. return 0;
  5704. }
  5705. _ACEOF
  5706. rm -f conftest.$ac_objext conftest$ac_exeext
  5707. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5708. (eval $ac_link) 2>&5
  5709. ac_status=$?
  5710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5711. (exit $ac_status); } &&
  5712. { ac_try='test -s conftest$ac_exeext'
  5713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5714. (eval $ac_try) 2>&5
  5715. ac_status=$?
  5716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5717. (exit $ac_status); }; }; then
  5718. ac_cv_lib_dld_shl_load=yes
  5719. else
  5720. echo "$as_me: failed program was:" >&5
  5721. cat conftest.$ac_ext >&5
  5722. ac_cv_lib_dld_shl_load=no
  5723. fi
  5724. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5725. LIBS=$ac_check_lib_save_LIBS
  5726. fi
  5727. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  5728. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  5729. if test $ac_cv_lib_dld_shl_load = yes; then
  5730. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  5731. else
  5732. echo "$as_me:$LINENO: checking for dlopen" >&5
  5733. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  5734. if test "${ac_cv_func_dlopen+set}" = set; then
  5735. echo $ECHO_N "(cached) $ECHO_C" >&6
  5736. else
  5737. cat >conftest.$ac_ext <<_ACEOF
  5738. #line $LINENO "configure"
  5739. #include "confdefs.h"
  5740. /* System header to define __stub macros and hopefully few prototypes,
  5741. which can conflict with char dlopen (); below. */
  5742. #include <assert.h>
  5743. /* Override any gcc2 internal prototype to avoid an error. */
  5744. #ifdef __cplusplus
  5745. extern "C"
  5746. #endif
  5747. /* We use char because int might match the return type of a gcc2
  5748. builtin and then its argument prototype would still apply. */
  5749. char dlopen ();
  5750. char (*f) ();
  5751. #ifdef F77_DUMMY_MAIN
  5752. # ifdef __cplusplus
  5753. extern "C"
  5754. # endif
  5755. int F77_DUMMY_MAIN() { return 1; }
  5756. #endif
  5757. int
  5758. main ()
  5759. {
  5760. /* The GNU C library defines this for functions which it implements
  5761. to always fail with ENOSYS. Some functions are actually named
  5762. something starting with __ and the normal name is an alias. */
  5763. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  5764. choke me
  5765. #else
  5766. f = dlopen;
  5767. #endif
  5768. ;
  5769. return 0;
  5770. }
  5771. _ACEOF
  5772. rm -f conftest.$ac_objext conftest$ac_exeext
  5773. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5774. (eval $ac_link) 2>&5
  5775. ac_status=$?
  5776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5777. (exit $ac_status); } &&
  5778. { ac_try='test -s conftest$ac_exeext'
  5779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5780. (eval $ac_try) 2>&5
  5781. ac_status=$?
  5782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5783. (exit $ac_status); }; }; then
  5784. ac_cv_func_dlopen=yes
  5785. else
  5786. echo "$as_me: failed program was:" >&5
  5787. cat conftest.$ac_ext >&5
  5788. ac_cv_func_dlopen=no
  5789. fi
  5790. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5791. fi
  5792. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  5793. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  5794. if test $ac_cv_func_dlopen = yes; then
  5795. lt_cv_dlopen="dlopen"
  5796. else
  5797. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  5798. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  5799. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  5800. echo $ECHO_N "(cached) $ECHO_C" >&6
  5801. else
  5802. ac_check_lib_save_LIBS=$LIBS
  5803. LIBS="-ldl $LIBS"
  5804. cat >conftest.$ac_ext <<_ACEOF
  5805. #line $LINENO "configure"
  5806. #include "confdefs.h"
  5807. /* Override any gcc2 internal prototype to avoid an error. */
  5808. #ifdef __cplusplus
  5809. extern "C"
  5810. #endif
  5811. /* We use char because int might match the return type of a gcc2
  5812. builtin and then its argument prototype would still apply. */
  5813. char dlopen ();
  5814. #ifdef F77_DUMMY_MAIN
  5815. # ifdef __cplusplus
  5816. extern "C"
  5817. # endif
  5818. int F77_DUMMY_MAIN() { return 1; }
  5819. #endif
  5820. int
  5821. main ()
  5822. {
  5823. dlopen ();
  5824. ;
  5825. return 0;
  5826. }
  5827. _ACEOF
  5828. rm -f conftest.$ac_objext conftest$ac_exeext
  5829. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5830. (eval $ac_link) 2>&5
  5831. ac_status=$?
  5832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5833. (exit $ac_status); } &&
  5834. { ac_try='test -s conftest$ac_exeext'
  5835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5836. (eval $ac_try) 2>&5
  5837. ac_status=$?
  5838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5839. (exit $ac_status); }; }; then
  5840. ac_cv_lib_dl_dlopen=yes
  5841. else
  5842. echo "$as_me: failed program was:" >&5
  5843. cat conftest.$ac_ext >&5
  5844. ac_cv_lib_dl_dlopen=no
  5845. fi
  5846. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5847. LIBS=$ac_check_lib_save_LIBS
  5848. fi
  5849. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  5850. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  5851. if test $ac_cv_lib_dl_dlopen = yes; then
  5852. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  5853. else
  5854. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  5855. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  5856. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  5857. echo $ECHO_N "(cached) $ECHO_C" >&6
  5858. else
  5859. ac_check_lib_save_LIBS=$LIBS
  5860. LIBS="-lsvld $LIBS"
  5861. cat >conftest.$ac_ext <<_ACEOF
  5862. #line $LINENO "configure"
  5863. #include "confdefs.h"
  5864. /* Override any gcc2 internal prototype to avoid an error. */
  5865. #ifdef __cplusplus
  5866. extern "C"
  5867. #endif
  5868. /* We use char because int might match the return type of a gcc2
  5869. builtin and then its argument prototype would still apply. */
  5870. char dlopen ();
  5871. #ifdef F77_DUMMY_MAIN
  5872. # ifdef __cplusplus
  5873. extern "C"
  5874. # endif
  5875. int F77_DUMMY_MAIN() { return 1; }
  5876. #endif
  5877. int
  5878. main ()
  5879. {
  5880. dlopen ();
  5881. ;
  5882. return 0;
  5883. }
  5884. _ACEOF
  5885. rm -f conftest.$ac_objext conftest$ac_exeext
  5886. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5887. (eval $ac_link) 2>&5
  5888. ac_status=$?
  5889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5890. (exit $ac_status); } &&
  5891. { ac_try='test -s conftest$ac_exeext'
  5892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5893. (eval $ac_try) 2>&5
  5894. ac_status=$?
  5895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5896. (exit $ac_status); }; }; then
  5897. ac_cv_lib_svld_dlopen=yes
  5898. else
  5899. echo "$as_me: failed program was:" >&5
  5900. cat conftest.$ac_ext >&5
  5901. ac_cv_lib_svld_dlopen=no
  5902. fi
  5903. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5904. LIBS=$ac_check_lib_save_LIBS
  5905. fi
  5906. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  5907. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  5908. if test $ac_cv_lib_svld_dlopen = yes; then
  5909. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  5910. else
  5911. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  5912. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  5913. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  5914. echo $ECHO_N "(cached) $ECHO_C" >&6
  5915. else
  5916. ac_check_lib_save_LIBS=$LIBS
  5917. LIBS="-ldld $LIBS"
  5918. cat >conftest.$ac_ext <<_ACEOF
  5919. #line $LINENO "configure"
  5920. #include "confdefs.h"
  5921. /* Override any gcc2 internal prototype to avoid an error. */
  5922. #ifdef __cplusplus
  5923. extern "C"
  5924. #endif
  5925. /* We use char because int might match the return type of a gcc2
  5926. builtin and then its argument prototype would still apply. */
  5927. char dld_link ();
  5928. #ifdef F77_DUMMY_MAIN
  5929. # ifdef __cplusplus
  5930. extern "C"
  5931. # endif
  5932. int F77_DUMMY_MAIN() { return 1; }
  5933. #endif
  5934. int
  5935. main ()
  5936. {
  5937. dld_link ();
  5938. ;
  5939. return 0;
  5940. }
  5941. _ACEOF
  5942. rm -f conftest.$ac_objext conftest$ac_exeext
  5943. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5944. (eval $ac_link) 2>&5
  5945. ac_status=$?
  5946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5947. (exit $ac_status); } &&
  5948. { ac_try='test -s conftest$ac_exeext'
  5949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5950. (eval $ac_try) 2>&5
  5951. ac_status=$?
  5952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5953. (exit $ac_status); }; }; then
  5954. ac_cv_lib_dld_dld_link=yes
  5955. else
  5956. echo "$as_me: failed program was:" >&5
  5957. cat conftest.$ac_ext >&5
  5958. ac_cv_lib_dld_dld_link=no
  5959. fi
  5960. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5961. LIBS=$ac_check_lib_save_LIBS
  5962. fi
  5963. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  5964. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  5965. if test $ac_cv_lib_dld_dld_link = yes; then
  5966. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  5967. fi
  5968. fi
  5969. fi
  5970. fi
  5971. fi
  5972. fi
  5973. ;;
  5974. esac
  5975. if test "x$lt_cv_dlopen" != xno; then
  5976. enable_dlopen=yes
  5977. else
  5978. enable_dlopen=no
  5979. fi
  5980. case $lt_cv_dlopen in
  5981. dlopen)
  5982. save_CPPFLAGS="$CPPFLAGS"
  5983. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  5984. save_LDFLAGS="$LDFLAGS"
  5985. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  5986. save_LIBS="$LIBS"
  5987. LIBS="$lt_cv_dlopen_libs $LIBS"
  5988. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  5989. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  5990. if test "${lt_cv_dlopen_self+set}" = set; then
  5991. echo $ECHO_N "(cached) $ECHO_C" >&6
  5992. else
  5993. if test "$cross_compiling" = yes; then :
  5994. lt_cv_dlopen_self=cross
  5995. else
  5996. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  5997. lt_status=$lt_dlunknown
  5998. cat > conftest.$ac_ext <<EOF
  5999. #line 6660 "configure"
  6000. #include "confdefs.h"
  6001. #if HAVE_DLFCN_H
  6002. #include <dlfcn.h>
  6003. #endif
  6004. #include <stdio.h>
  6005. #ifdef RTLD_GLOBAL
  6006. # define LT_DLGLOBAL RTLD_GLOBAL
  6007. #else
  6008. # ifdef DL_GLOBAL
  6009. # define LT_DLGLOBAL DL_GLOBAL
  6010. # else
  6011. # define LT_DLGLOBAL 0
  6012. # endif
  6013. #endif
  6014. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  6015. find out it does not work in some platform. */
  6016. #ifndef LT_DLLAZY_OR_NOW
  6017. # ifdef RTLD_LAZY
  6018. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  6019. # else
  6020. # ifdef DL_LAZY
  6021. # define LT_DLLAZY_OR_NOW DL_LAZY
  6022. # else
  6023. # ifdef RTLD_NOW
  6024. # define LT_DLLAZY_OR_NOW RTLD_NOW
  6025. # else
  6026. # ifdef DL_NOW
  6027. # define LT_DLLAZY_OR_NOW DL_NOW
  6028. # else
  6029. # define LT_DLLAZY_OR_NOW 0
  6030. # endif
  6031. # endif
  6032. # endif
  6033. # endif
  6034. #endif
  6035. #ifdef __cplusplus
  6036. extern "C" void exit (int);
  6037. #endif
  6038. void fnord() { int i=42;}
  6039. int main ()
  6040. {
  6041. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  6042. int status = $lt_dlunknown;
  6043. if (self)
  6044. {
  6045. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  6046. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  6047. /* dlclose (self); */
  6048. }
  6049. exit (status);
  6050. }
  6051. EOF
  6052. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6053. (eval $ac_link) 2>&5
  6054. ac_status=$?
  6055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6056. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  6057. (./conftest; exit; ) 2>/dev/null
  6058. lt_status=$?
  6059. case x$lt_status in
  6060. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  6061. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  6062. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  6063. esac
  6064. else :
  6065. # compilation failed
  6066. lt_cv_dlopen_self=no
  6067. fi
  6068. fi
  6069. rm -fr conftest*
  6070. fi
  6071. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  6072. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  6073. if test "x$lt_cv_dlopen_self" = xyes; then
  6074. LDFLAGS="$LDFLAGS $link_static_flag"
  6075. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  6076. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  6077. if test "${lt_cv_dlopen_self_static+set}" = set; then
  6078. echo $ECHO_N "(cached) $ECHO_C" >&6
  6079. else
  6080. if test "$cross_compiling" = yes; then :
  6081. lt_cv_dlopen_self_static=cross
  6082. else
  6083. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  6084. lt_status=$lt_dlunknown
  6085. cat > conftest.$ac_ext <<EOF
  6086. #line 6758 "configure"
  6087. #include "confdefs.h"
  6088. #if HAVE_DLFCN_H
  6089. #include <dlfcn.h>
  6090. #endif
  6091. #include <stdio.h>
  6092. #ifdef RTLD_GLOBAL
  6093. # define LT_DLGLOBAL RTLD_GLOBAL
  6094. #else
  6095. # ifdef DL_GLOBAL
  6096. # define LT_DLGLOBAL DL_GLOBAL
  6097. # else
  6098. # define LT_DLGLOBAL 0
  6099. # endif
  6100. #endif
  6101. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  6102. find out it does not work in some platform. */
  6103. #ifndef LT_DLLAZY_OR_NOW
  6104. # ifdef RTLD_LAZY
  6105. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  6106. # else
  6107. # ifdef DL_LAZY
  6108. # define LT_DLLAZY_OR_NOW DL_LAZY
  6109. # else
  6110. # ifdef RTLD_NOW
  6111. # define LT_DLLAZY_OR_NOW RTLD_NOW
  6112. # else
  6113. # ifdef DL_NOW
  6114. # define LT_DLLAZY_OR_NOW DL_NOW
  6115. # else
  6116. # define LT_DLLAZY_OR_NOW 0
  6117. # endif
  6118. # endif
  6119. # endif
  6120. # endif
  6121. #endif
  6122. #ifdef __cplusplus
  6123. extern "C" void exit (int);
  6124. #endif
  6125. void fnord() { int i=42;}
  6126. int main ()
  6127. {
  6128. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  6129. int status = $lt_dlunknown;
  6130. if (self)
  6131. {
  6132. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  6133. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  6134. /* dlclose (self); */
  6135. }
  6136. exit (status);
  6137. }
  6138. EOF
  6139. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6140. (eval $ac_link) 2>&5
  6141. ac_status=$?
  6142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6143. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  6144. (./conftest; exit; ) 2>/dev/null
  6145. lt_status=$?
  6146. case x$lt_status in
  6147. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  6148. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  6149. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  6150. esac
  6151. else :
  6152. # compilation failed
  6153. lt_cv_dlopen_self_static=no
  6154. fi
  6155. fi
  6156. rm -fr conftest*
  6157. fi
  6158. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  6159. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  6160. fi
  6161. CPPFLAGS="$save_CPPFLAGS"
  6162. LDFLAGS="$save_LDFLAGS"
  6163. LIBS="$save_LIBS"
  6164. ;;
  6165. esac
  6166. case $lt_cv_dlopen_self in
  6167. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  6168. *) enable_dlopen_self=unknown ;;
  6169. esac
  6170. case $lt_cv_dlopen_self_static in
  6171. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  6172. *) enable_dlopen_self_static=unknown ;;
  6173. esac
  6174. fi
  6175. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6176. case $archive_cmds in
  6177. *'~'*)
  6178. # FIXME: we may have to deal with multi-command sequences.
  6179. ;;
  6180. '$CC '*)
  6181. # Test whether the compiler implicitly links with -lc since on some
  6182. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6183. # to ld, don't add -lc before -lgcc.
  6184. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6185. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  6186. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  6187. echo $ECHO_N "(cached) $ECHO_C" >&6
  6188. else
  6189. $rm conftest*
  6190. echo 'static int dummy;' > conftest.$ac_ext
  6191. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6192. (eval $ac_compile) 2>&5
  6193. ac_status=$?
  6194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6195. (exit $ac_status); }; then
  6196. soname=conftest
  6197. lib=conftest
  6198. libobjs=conftest.$ac_objext
  6199. deplibs=
  6200. wl=$lt_cv_prog_cc_wl
  6201. compiler_flags=-v
  6202. linker_flags=-v
  6203. verstring=
  6204. output_objdir=.
  6205. libname=conftest
  6206. save_allow_undefined_flag=$allow_undefined_flag
  6207. allow_undefined_flag=
  6208. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6209. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6210. ac_status=$?
  6211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6212. (exit $ac_status); }
  6213. then
  6214. lt_cv_archive_cmds_need_lc=no
  6215. else
  6216. lt_cv_archive_cmds_need_lc=yes
  6217. fi
  6218. allow_undefined_flag=$save_allow_undefined_flag
  6219. else
  6220. cat conftest.err 1>&5
  6221. fi
  6222. fi
  6223. echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
  6224. echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
  6225. ;;
  6226. esac
  6227. fi
  6228. need_lc=${lt_cv_archive_cmds_need_lc-yes}
  6229. # The second clause should only fire when bootstrapping the
  6230. # libtool distribution, otherwise you forgot to ship ltmain.sh
  6231. # with your package, and you will get complaints that there are
  6232. # no rules to generate ltmain.sh.
  6233. if test -f "$ltmain"; then
  6234. :
  6235. else
  6236. # If there is no Makefile yet, we rely on a make rule to execute
  6237. # `config.status --recheck' to rerun these tests and create the
  6238. # libtool script then.
  6239. test -f Makefile && make "$ltmain"
  6240. fi
  6241. if test -f "$ltmain"; then
  6242. trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  6243. $rm -f "${ofile}T"
  6244. echo creating $ofile
  6245. # Now quote all the things that may contain metacharacters while being
  6246. # careful not to overquote the AC_SUBSTed values. We take copies of the
  6247. # variables and quote the copies for generation of the libtool script.
  6248. for var in echo old_CC old_CFLAGS \
  6249. AR AR_FLAGS CC LD LN_S NM SHELL \
  6250. reload_flag reload_cmds wl \
  6251. pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  6252. thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  6253. library_names_spec soname_spec \
  6254. RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  6255. old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  6256. postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  6257. old_striplib striplib file_magic_cmd export_symbols_cmds \
  6258. deplibs_check_method allow_undefined_flag no_undefined_flag \
  6259. finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  6260. global_symbol_to_c_name_address \
  6261. hardcode_libdir_flag_spec hardcode_libdir_separator \
  6262. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6263. compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  6264. case $var in
  6265. reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  6266. old_postinstall_cmds | old_postuninstall_cmds | \
  6267. export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  6268. extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  6269. postinstall_cmds | postuninstall_cmds | \
  6270. finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6271. # Double-quote double-evaled strings.
  6272. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  6273. ;;
  6274. *)
  6275. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  6276. ;;
  6277. esac
  6278. done
  6279. cat <<__EOF__ > "${ofile}T"
  6280. #! $SHELL
  6281. # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6282. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  6283. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  6284. #
  6285. # Copyright (C) 1996-2000 Free Software Foundation, Inc.
  6286. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  6287. #
  6288. # This program is free software; you can redistribute it and/or modify
  6289. # it under the terms of the GNU General Public License as published by
  6290. # the Free Software Foundation; either version 2 of the License, or
  6291. # (at your option) any later version.
  6292. #
  6293. # This program is distributed in the hope that it will be useful, but
  6294. # WITHOUT ANY WARRANTY; without even the implied warranty of
  6295. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  6296. # General Public License for more details.
  6297. #
  6298. # You should have received a copy of the GNU General Public License
  6299. # along with this program; if not, write to the Free Software
  6300. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  6301. #
  6302. # As a special exception to the GNU General Public License, if you
  6303. # distribute this file as part of a program that contains a
  6304. # configuration script generated by Autoconf, you may include it under
  6305. # the same distribution terms that you use for the rest of that program.
  6306. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  6307. Xsed="sed -e s/^X//"
  6308. # The HP-UX ksh and POSIX shell print the target directory to stdout
  6309. # if CDPATH is set.
  6310. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  6311. # ### BEGIN LIBTOOL CONFIG
  6312. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6313. # Shell to use when invoking shell scripts.
  6314. SHELL=$lt_SHELL
  6315. # Whether or not to build shared libraries.
  6316. build_libtool_libs=$enable_shared
  6317. # Whether or not to build static libraries.
  6318. build_old_libs=$enable_static
  6319. # Whether or not to add -lc for building shared libraries.
  6320. build_libtool_need_lc=$need_lc
  6321. # Whether or not to optimize for fast installation.
  6322. fast_install=$enable_fast_install
  6323. # The host system.
  6324. host_alias=$host_alias
  6325. host=$host
  6326. # An echo program that does not interpret backslashes.
  6327. echo=$lt_echo
  6328. # The archiver.
  6329. AR=$lt_AR
  6330. AR_FLAGS=$lt_AR_FLAGS
  6331. # The default C compiler.
  6332. CC=$lt_CC
  6333. # Is the compiler the GNU C compiler?
  6334. with_gcc=$GCC
  6335. # The linker used to build libraries.
  6336. LD=$lt_LD
  6337. # Whether we need hard or soft links.
  6338. LN_S=$lt_LN_S
  6339. # A BSD-compatible nm program.
  6340. NM=$lt_NM
  6341. # A symbol stripping program
  6342. STRIP=$STRIP
  6343. # Used to examine libraries when file_magic_cmd begins "file"
  6344. MAGIC_CMD=$MAGIC_CMD
  6345. # Used on cygwin: DLL creation program.
  6346. DLLTOOL="$DLLTOOL"
  6347. # Used on cygwin: object dumper.
  6348. OBJDUMP="$OBJDUMP"
  6349. # Used on cygwin: assembler.
  6350. AS="$AS"
  6351. # The name of the directory that contains temporary libtool files.
  6352. objdir=$objdir
  6353. # How to create reloadable object files.
  6354. reload_flag=$lt_reload_flag
  6355. reload_cmds=$lt_reload_cmds
  6356. # How to pass a linker flag through the compiler.
  6357. wl=$lt_wl
  6358. # Object file suffix (normally "o").
  6359. objext="$ac_objext"
  6360. # Old archive suffix (normally "a").
  6361. libext="$libext"
  6362. # Executable file suffix (normally "").
  6363. exeext="$exeext"
  6364. # Additional compiler flags for building library objects.
  6365. pic_flag=$lt_pic_flag
  6366. pic_mode=$pic_mode
  6367. # Does compiler simultaneously support -c and -o options?
  6368. compiler_c_o=$lt_compiler_c_o
  6369. # Can we write directly to a .lo ?
  6370. compiler_o_lo=$lt_compiler_o_lo
  6371. # Must we lock files when doing compilation ?
  6372. need_locks=$lt_need_locks
  6373. # Do we need the lib prefix for modules?
  6374. need_lib_prefix=$need_lib_prefix
  6375. # Do we need a version for libraries?
  6376. need_version=$need_version
  6377. # Whether dlopen is supported.
  6378. dlopen_support=$enable_dlopen
  6379. # Whether dlopen of programs is supported.
  6380. dlopen_self=$enable_dlopen_self
  6381. # Whether dlopen of statically linked programs is supported.
  6382. dlopen_self_static=$enable_dlopen_self_static
  6383. # Compiler flag to prevent dynamic linking.
  6384. link_static_flag=$lt_link_static_flag
  6385. # Compiler flag to turn off builtin functions.
  6386. no_builtin_flag=$lt_no_builtin_flag
  6387. # Compiler flag to allow reflexive dlopens.
  6388. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  6389. # Compiler flag to generate shared objects directly from archives.
  6390. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  6391. # Compiler flag to generate thread-safe objects.
  6392. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  6393. # Library versioning type.
  6394. version_type=$version_type
  6395. # Format of library name prefix.
  6396. libname_spec=$lt_libname_spec
  6397. # List of archive names. First name is the real one, the rest are links.
  6398. # The last name is the one that the linker finds with -lNAME.
  6399. library_names_spec=$lt_library_names_spec
  6400. # The coded name of the library, if different from the real name.
  6401. soname_spec=$lt_soname_spec
  6402. # Commands used to build and install an old-style archive.
  6403. RANLIB=$lt_RANLIB
  6404. old_archive_cmds=$lt_old_archive_cmds
  6405. old_postinstall_cmds=$lt_old_postinstall_cmds
  6406. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6407. # Create an old-style archive from a shared archive.
  6408. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  6409. # Create a temporary old-style archive to link instead of a shared archive.
  6410. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  6411. # Commands used to build and install a shared archive.
  6412. archive_cmds=$lt_archive_cmds
  6413. archive_expsym_cmds=$lt_archive_expsym_cmds
  6414. postinstall_cmds=$lt_postinstall_cmds
  6415. postuninstall_cmds=$lt_postuninstall_cmds
  6416. # Commands to strip libraries.
  6417. old_striplib=$lt_old_striplib
  6418. striplib=$lt_striplib
  6419. # Method to check whether dependent libraries are shared objects.
  6420. deplibs_check_method=$lt_deplibs_check_method
  6421. # Command to use when deplibs_check_method == file_magic.
  6422. file_magic_cmd=$lt_file_magic_cmd
  6423. # Flag that allows shared libraries with undefined symbols to be built.
  6424. allow_undefined_flag=$lt_allow_undefined_flag
  6425. # Flag that forces no undefined symbols.
  6426. no_undefined_flag=$lt_no_undefined_flag
  6427. # Commands used to finish a libtool library installation in a directory.
  6428. finish_cmds=$lt_finish_cmds
  6429. # Same as above, but a single script fragment to be evaled but not shown.
  6430. finish_eval=$lt_finish_eval
  6431. # Take the output of nm and produce a listing of raw symbols and C names.
  6432. global_symbol_pipe=$lt_global_symbol_pipe
  6433. # Transform the output of nm in a proper C declaration
  6434. global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  6435. # Transform the output of nm in a C name address pair
  6436. global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  6437. # This is the shared library runtime path variable.
  6438. runpath_var=$runpath_var
  6439. # This is the shared library path variable.
  6440. shlibpath_var=$shlibpath_var
  6441. # Is shlibpath searched before the hard-coded library search path?
  6442. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  6443. # How to hardcode a shared library path into an executable.
  6444. hardcode_action=$hardcode_action
  6445. # Whether we should hardcode library paths into libraries.
  6446. hardcode_into_libs=$hardcode_into_libs
  6447. # Flag to hardcode \$libdir into a binary during linking.
  6448. # This must work even if \$libdir does not exist.
  6449. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  6450. # Whether we need a single -rpath flag with a separated argument.
  6451. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  6452. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  6453. # resulting binary.
  6454. hardcode_direct=$hardcode_direct
  6455. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  6456. # resulting binary.
  6457. hardcode_minus_L=$hardcode_minus_L
  6458. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  6459. # the resulting binary.
  6460. hardcode_shlibpath_var=$hardcode_shlibpath_var
  6461. # Variables whose values should be saved in libtool wrapper scripts and
  6462. # restored at relink time.
  6463. variables_saved_for_relink="$variables_saved_for_relink"
  6464. # Whether libtool must link a program against all its dependency libraries.
  6465. link_all_deplibs=$link_all_deplibs
  6466. # Compile-time system search path for libraries
  6467. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  6468. # Run-time system search path for libraries
  6469. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  6470. # Fix the shell variable \$srcfile for the compiler.
  6471. fix_srcfile_path="$fix_srcfile_path"
  6472. # Set to yes if exported symbols are required.
  6473. always_export_symbols=$always_export_symbols
  6474. # The commands to list exported symbols.
  6475. export_symbols_cmds=$lt_export_symbols_cmds
  6476. # The commands to extract the exported symbol list from a shared archive.
  6477. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  6478. # Symbols that should not be listed in the preloaded symbols.
  6479. exclude_expsyms=$lt_exclude_expsyms
  6480. # Symbols that must always be exported.
  6481. include_expsyms=$lt_include_expsyms
  6482. # ### END LIBTOOL CONFIG
  6483. __EOF__
  6484. case $host_os in
  6485. aix3*)
  6486. cat <<\EOF >> "${ofile}T"
  6487. # AIX sometimes has problems with the GCC collect2 program. For some
  6488. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6489. # vanish in a puff of smoke.
  6490. if test "X${COLLECT_NAMES+set}" != Xset; then
  6491. COLLECT_NAMES=
  6492. export COLLECT_NAMES
  6493. fi
  6494. EOF
  6495. ;;
  6496. esac
  6497. case $host_os in
  6498. cygwin* | mingw* | pw32* | os2*)
  6499. cat <<'EOF' >> "${ofile}T"
  6500. # This is a source program that is used to create dlls on Windows
  6501. # Don't remove nor modify the starting and closing comments
  6502. # /* ltdll.c starts here */
  6503. # #define WIN32_LEAN_AND_MEAN
  6504. # #include <windows.h>
  6505. # #undef WIN32_LEAN_AND_MEAN
  6506. # #include <stdio.h>
  6507. #
  6508. # #ifndef __CYGWIN__
  6509. # # ifdef __CYGWIN32__
  6510. # # define __CYGWIN__ __CYGWIN32__
  6511. # # endif
  6512. # #endif
  6513. #
  6514. # #ifdef __cplusplus
  6515. # extern "C" {
  6516. # #endif
  6517. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  6518. # #ifdef __cplusplus
  6519. # }
  6520. # #endif
  6521. #
  6522. # #ifdef __CYGWIN__
  6523. # #include <cygwin/cygwin_dll.h>
  6524. # DECLARE_CYGWIN_DLL( DllMain );
  6525. # #endif
  6526. # HINSTANCE __hDllInstance_base;
  6527. #
  6528. # BOOL APIENTRY
  6529. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  6530. # {
  6531. # __hDllInstance_base = hInst;
  6532. # return TRUE;
  6533. # }
  6534. # /* ltdll.c ends here */
  6535. # This is a source program that is used to create import libraries
  6536. # on Windows for dlls which lack them. Don't remove nor modify the
  6537. # starting and closing comments
  6538. # /* impgen.c starts here */
  6539. # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  6540. #
  6541. # This file is part of GNU libtool.
  6542. #
  6543. # This program is free software; you can redistribute it and/or modify
  6544. # it under the terms of the GNU General Public License as published by
  6545. # the Free Software Foundation; either version 2 of the License, or
  6546. # (at your option) any later version.
  6547. #
  6548. # This program is distributed in the hope that it will be useful,
  6549. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  6550. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  6551. # GNU General Public License for more details.
  6552. #
  6553. # You should have received a copy of the GNU General Public License
  6554. # along with this program; if not, write to the Free Software
  6555. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  6556. # */
  6557. #
  6558. # #include <stdio.h> /* for printf() */
  6559. # #include <unistd.h> /* for open(), lseek(), read() */
  6560. # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  6561. # #include <string.h> /* for strdup() */
  6562. #
  6563. # /* O_BINARY isn't required (or even defined sometimes) under Unix */
  6564. # #ifndef O_BINARY
  6565. # #define O_BINARY 0
  6566. # #endif
  6567. #
  6568. # static unsigned int
  6569. # pe_get16 (fd, offset)
  6570. # int fd;
  6571. # int offset;
  6572. # {
  6573. # unsigned char b[2];
  6574. # lseek (fd, offset, SEEK_SET);
  6575. # read (fd, b, 2);
  6576. # return b[0] + (b[1]<<8);
  6577. # }
  6578. #
  6579. # static unsigned int
  6580. # pe_get32 (fd, offset)
  6581. # int fd;
  6582. # int offset;
  6583. # {
  6584. # unsigned char b[4];
  6585. # lseek (fd, offset, SEEK_SET);
  6586. # read (fd, b, 4);
  6587. # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  6588. # }
  6589. #
  6590. # static unsigned int
  6591. # pe_as32 (ptr)
  6592. # void *ptr;
  6593. # {
  6594. # unsigned char *b = ptr;
  6595. # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  6596. # }
  6597. #
  6598. # int
  6599. # main (argc, argv)
  6600. # int argc;
  6601. # char *argv[];
  6602. # {
  6603. # int dll;
  6604. # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  6605. # unsigned long export_rva, export_size, nsections, secptr, expptr;
  6606. # unsigned long name_rvas, nexp;
  6607. # unsigned char *expdata, *erva;
  6608. # char *filename, *dll_name;
  6609. #
  6610. # filename = argv[1];
  6611. #
  6612. # dll = open(filename, O_RDONLY|O_BINARY);
  6613. # if (dll < 1)
  6614. # return 1;
  6615. #
  6616. # dll_name = filename;
  6617. #
  6618. # for (i=0; filename[i]; i++)
  6619. # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  6620. # dll_name = filename + i +1;
  6621. #
  6622. # pe_header_offset = pe_get32 (dll, 0x3c);
  6623. # opthdr_ofs = pe_header_offset + 4 + 20;
  6624. # num_entries = pe_get32 (dll, opthdr_ofs + 92);
  6625. #
  6626. # if (num_entries < 1) /* no exports */
  6627. # return 1;
  6628. #
  6629. # export_rva = pe_get32 (dll, opthdr_ofs + 96);
  6630. # export_size = pe_get32 (dll, opthdr_ofs + 100);
  6631. # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  6632. # secptr = (pe_header_offset + 4 + 20 +
  6633. # pe_get16 (dll, pe_header_offset + 4 + 16));
  6634. #
  6635. # expptr = 0;
  6636. # for (i = 0; i < nsections; i++)
  6637. # {
  6638. # char sname[8];
  6639. # unsigned long secptr1 = secptr + 40 * i;
  6640. # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  6641. # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  6642. # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  6643. # lseek(dll, secptr1, SEEK_SET);
  6644. # read(dll, sname, 8);
  6645. # if (vaddr <= export_rva && vaddr+vsize > export_rva)
  6646. # {
  6647. # expptr = fptr + (export_rva - vaddr);
  6648. # if (export_rva + export_size > vaddr + vsize)
  6649. # export_size = vsize - (export_rva - vaddr);
  6650. # break;
  6651. # }
  6652. # }
  6653. #
  6654. # expdata = (unsigned char*)malloc(export_size);
  6655. # lseek (dll, expptr, SEEK_SET);
  6656. # read (dll, expdata, export_size);
  6657. # erva = expdata - export_rva;
  6658. #
  6659. # nexp = pe_as32 (expdata+24);
  6660. # name_rvas = pe_as32 (expdata+32);
  6661. #
  6662. # printf ("EXPORTS\n");
  6663. # for (i = 0; i<nexp; i++)
  6664. # {
  6665. # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  6666. # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  6667. # }
  6668. #
  6669. # return 0;
  6670. # }
  6671. # /* impgen.c ends here */
  6672. EOF
  6673. ;;
  6674. esac
  6675. # We use sed instead of cat because bash on DJGPP gets confused if
  6676. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  6677. # text mode, it properly converts lines to CR/LF. This bash problem
  6678. # is reportedly fixed, but why not run on old versions too?
  6679. sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  6680. mv -f "${ofile}T" "$ofile" || \
  6681. (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  6682. chmod +x "$ofile"
  6683. fi
  6684. # This can be used to rebuild libtool when needed
  6685. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  6686. # Always use our own libtool.
  6687. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6688. # Prevent multiple expansion
  6689. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6690. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  6691. if test "${ac_cv_header_stdc+set}" = set; then
  6692. echo $ECHO_N "(cached) $ECHO_C" >&6
  6693. else
  6694. cat >conftest.$ac_ext <<_ACEOF
  6695. #line $LINENO "configure"
  6696. #include "confdefs.h"
  6697. #include <stdlib.h>
  6698. #include <stdarg.h>
  6699. #include <string.h>
  6700. #include <float.h>
  6701. _ACEOF
  6702. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6703. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6704. ac_status=$?
  6705. egrep -v '^ *\+' conftest.er1 >conftest.err
  6706. rm -f conftest.er1
  6707. cat conftest.err >&5
  6708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6709. (exit $ac_status); } >/dev/null; then
  6710. if test -s conftest.err; then
  6711. ac_cpp_err=$ac_c_preproc_warn_flag
  6712. else
  6713. ac_cpp_err=
  6714. fi
  6715. else
  6716. ac_cpp_err=yes
  6717. fi
  6718. if test -z "$ac_cpp_err"; then
  6719. ac_cv_header_stdc=yes
  6720. else
  6721. echo "$as_me: failed program was:" >&5
  6722. cat conftest.$ac_ext >&5
  6723. ac_cv_header_stdc=no
  6724. fi
  6725. rm -f conftest.err conftest.$ac_ext
  6726. if test $ac_cv_header_stdc = yes; then
  6727. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6728. cat >conftest.$ac_ext <<_ACEOF
  6729. #line $LINENO "configure"
  6730. #include "confdefs.h"
  6731. #include <string.h>
  6732. _ACEOF
  6733. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6734. egrep "memchr" >/dev/null 2>&1; then
  6735. :
  6736. else
  6737. ac_cv_header_stdc=no
  6738. fi
  6739. rm -f conftest*
  6740. fi
  6741. if test $ac_cv_header_stdc = yes; then
  6742. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6743. cat >conftest.$ac_ext <<_ACEOF
  6744. #line $LINENO "configure"
  6745. #include "confdefs.h"
  6746. #include <stdlib.h>
  6747. _ACEOF
  6748. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6749. egrep "free" >/dev/null 2>&1; then
  6750. :
  6751. else
  6752. ac_cv_header_stdc=no
  6753. fi
  6754. rm -f conftest*
  6755. fi
  6756. if test $ac_cv_header_stdc = yes; then
  6757. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6758. if test "$cross_compiling" = yes; then
  6759. :
  6760. else
  6761. cat >conftest.$ac_ext <<_ACEOF
  6762. #line $LINENO "configure"
  6763. #include "confdefs.h"
  6764. #include <ctype.h>
  6765. #if ((' ' & 0x0FF) == 0x020)
  6766. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6767. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6768. #else
  6769. # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  6770. || ('j' <= (c) && (c) <= 'r') \
  6771. || ('s' <= (c) && (c) <= 'z'))
  6772. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6773. #endif
  6774. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6775. int
  6776. main ()
  6777. {
  6778. int i;
  6779. for (i = 0; i < 256; i++)
  6780. if (XOR (islower (i), ISLOWER (i))
  6781. || toupper (i) != TOUPPER (i))
  6782. exit(2);
  6783. exit (0);
  6784. }
  6785. _ACEOF
  6786. rm -f conftest$ac_exeext
  6787. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6788. (eval $ac_link) 2>&5
  6789. ac_status=$?
  6790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6791. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6793. (eval $ac_try) 2>&5
  6794. ac_status=$?
  6795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6796. (exit $ac_status); }; }; then
  6797. :
  6798. else
  6799. echo "$as_me: program exited with status $ac_status" >&5
  6800. echo "$as_me: failed program was:" >&5
  6801. cat conftest.$ac_ext >&5
  6802. ( exit $ac_status )
  6803. ac_cv_header_stdc=no
  6804. fi
  6805. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6806. fi
  6807. fi
  6808. fi
  6809. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6810. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  6811. if test $ac_cv_header_stdc = yes; then
  6812. cat >>confdefs.h <<\_ACEOF
  6813. #define STDC_HEADERS 1
  6814. _ACEOF
  6815. fi
  6816. echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  6817. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
  6818. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  6819. echo $ECHO_N "(cached) $ECHO_C" >&6
  6820. else
  6821. cat >conftest.$ac_ext <<_ACEOF
  6822. #line $LINENO "configure"
  6823. #include "confdefs.h"
  6824. #include <sys/types.h>
  6825. #ifdef F77_DUMMY_MAIN
  6826. # ifdef __cplusplus
  6827. extern "C"
  6828. # endif
  6829. int F77_DUMMY_MAIN() { return 1; }
  6830. #endif
  6831. int
  6832. main ()
  6833. {
  6834. return makedev(0, 0);
  6835. ;
  6836. return 0;
  6837. }
  6838. _ACEOF
  6839. rm -f conftest.$ac_objext conftest$ac_exeext
  6840. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6841. (eval $ac_link) 2>&5
  6842. ac_status=$?
  6843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6844. (exit $ac_status); } &&
  6845. { ac_try='test -s conftest$ac_exeext'
  6846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6847. (eval $ac_try) 2>&5
  6848. ac_status=$?
  6849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6850. (exit $ac_status); }; }; then
  6851. ac_cv_header_sys_types_h_makedev=yes
  6852. else
  6853. echo "$as_me: failed program was:" >&5
  6854. cat conftest.$ac_ext >&5
  6855. ac_cv_header_sys_types_h_makedev=no
  6856. fi
  6857. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6858. fi
  6859. echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  6860. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
  6861. if test $ac_cv_header_sys_types_h_makedev = no; then
  6862. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  6863. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  6864. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  6865. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  6866. echo $ECHO_N "(cached) $ECHO_C" >&6
  6867. fi
  6868. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  6869. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  6870. else
  6871. # Is the header compilable?
  6872. echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  6873. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
  6874. cat >conftest.$ac_ext <<_ACEOF
  6875. #line $LINENO "configure"
  6876. #include "confdefs.h"
  6877. $ac_includes_default
  6878. #include <sys/mkdev.h>
  6879. _ACEOF
  6880. rm -f conftest.$ac_objext
  6881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6882. (eval $ac_compile) 2>&5
  6883. ac_status=$?
  6884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6885. (exit $ac_status); } &&
  6886. { ac_try='test -s conftest.$ac_objext'
  6887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6888. (eval $ac_try) 2>&5
  6889. ac_status=$?
  6890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6891. (exit $ac_status); }; }; then
  6892. ac_header_compiler=yes
  6893. else
  6894. echo "$as_me: failed program was:" >&5
  6895. cat conftest.$ac_ext >&5
  6896. ac_header_compiler=no
  6897. fi
  6898. rm -f conftest.$ac_objext conftest.$ac_ext
  6899. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6900. echo "${ECHO_T}$ac_header_compiler" >&6
  6901. # Is the header present?
  6902. echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  6903. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
  6904. cat >conftest.$ac_ext <<_ACEOF
  6905. #line $LINENO "configure"
  6906. #include "confdefs.h"
  6907. #include <sys/mkdev.h>
  6908. _ACEOF
  6909. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6910. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6911. ac_status=$?
  6912. egrep -v '^ *\+' conftest.er1 >conftest.err
  6913. rm -f conftest.er1
  6914. cat conftest.err >&5
  6915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6916. (exit $ac_status); } >/dev/null; then
  6917. if test -s conftest.err; then
  6918. ac_cpp_err=$ac_c_preproc_warn_flag
  6919. else
  6920. ac_cpp_err=
  6921. fi
  6922. else
  6923. ac_cpp_err=yes
  6924. fi
  6925. if test -z "$ac_cpp_err"; then
  6926. ac_header_preproc=yes
  6927. else
  6928. echo "$as_me: failed program was:" >&5
  6929. cat conftest.$ac_ext >&5
  6930. ac_header_preproc=no
  6931. fi
  6932. rm -f conftest.err conftest.$ac_ext
  6933. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6934. echo "${ECHO_T}$ac_header_preproc" >&6
  6935. # So? What about this header?
  6936. case $ac_header_compiler:$ac_header_preproc in
  6937. yes:no )
  6938. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6939. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6940. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  6941. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
  6942. no:yes )
  6943. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  6944. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  6945. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  6946. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  6947. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  6948. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
  6949. esac
  6950. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  6951. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  6952. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  6953. echo $ECHO_N "(cached) $ECHO_C" >&6
  6954. else
  6955. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  6956. fi
  6957. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  6958. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  6959. fi
  6960. if test $ac_cv_header_sys_mkdev_h = yes; then
  6961. cat >>confdefs.h <<\_ACEOF
  6962. #define MAJOR_IN_MKDEV 1
  6963. _ACEOF
  6964. fi
  6965. if test $ac_cv_header_sys_mkdev_h = no; then
  6966. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  6967. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  6968. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  6969. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  6970. echo $ECHO_N "(cached) $ECHO_C" >&6
  6971. fi
  6972. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  6973. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  6974. else
  6975. # Is the header compilable?
  6976. echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  6977. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
  6978. cat >conftest.$ac_ext <<_ACEOF
  6979. #line $LINENO "configure"
  6980. #include "confdefs.h"
  6981. $ac_includes_default
  6982. #include <sys/sysmacros.h>
  6983. _ACEOF
  6984. rm -f conftest.$ac_objext
  6985. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6986. (eval $ac_compile) 2>&5
  6987. ac_status=$?
  6988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6989. (exit $ac_status); } &&
  6990. { ac_try='test -s conftest.$ac_objext'
  6991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6992. (eval $ac_try) 2>&5
  6993. ac_status=$?
  6994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6995. (exit $ac_status); }; }; then
  6996. ac_header_compiler=yes
  6997. else
  6998. echo "$as_me: failed program was:" >&5
  6999. cat conftest.$ac_ext >&5
  7000. ac_header_compiler=no
  7001. fi
  7002. rm -f conftest.$ac_objext conftest.$ac_ext
  7003. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7004. echo "${ECHO_T}$ac_header_compiler" >&6
  7005. # Is the header present?
  7006. echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  7007. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
  7008. cat >conftest.$ac_ext <<_ACEOF
  7009. #line $LINENO "configure"
  7010. #include "confdefs.h"
  7011. #include <sys/sysmacros.h>
  7012. _ACEOF
  7013. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7014. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7015. ac_status=$?
  7016. egrep -v '^ *\+' conftest.er1 >conftest.err
  7017. rm -f conftest.er1
  7018. cat conftest.err >&5
  7019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7020. (exit $ac_status); } >/dev/null; then
  7021. if test -s conftest.err; then
  7022. ac_cpp_err=$ac_c_preproc_warn_flag
  7023. else
  7024. ac_cpp_err=
  7025. fi
  7026. else
  7027. ac_cpp_err=yes
  7028. fi
  7029. if test -z "$ac_cpp_err"; then
  7030. ac_header_preproc=yes
  7031. else
  7032. echo "$as_me: failed program was:" >&5
  7033. cat conftest.$ac_ext >&5
  7034. ac_header_preproc=no
  7035. fi
  7036. rm -f conftest.err conftest.$ac_ext
  7037. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7038. echo "${ECHO_T}$ac_header_preproc" >&6
  7039. # So? What about this header?
  7040. case $ac_header_compiler:$ac_header_preproc in
  7041. yes:no )
  7042. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7043. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7044. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  7045. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
  7046. no:yes )
  7047. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  7048. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  7049. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  7050. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  7051. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  7052. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
  7053. esac
  7054. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  7055. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  7056. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  7057. echo $ECHO_N "(cached) $ECHO_C" >&6
  7058. else
  7059. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  7060. fi
  7061. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  7062. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  7063. fi
  7064. if test $ac_cv_header_sys_sysmacros_h = yes; then
  7065. cat >>confdefs.h <<\_ACEOF
  7066. #define MAJOR_IN_SYSMACROS 1
  7067. _ACEOF
  7068. fi
  7069. fi
  7070. fi
  7071. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  7072. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  7073. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  7074. echo $ECHO_N "(cached) $ECHO_C" >&6
  7075. else
  7076. cat >conftest.$ac_ext <<_ACEOF
  7077. #line $LINENO "configure"
  7078. #include "confdefs.h"
  7079. #include <sys/types.h>
  7080. #include <sys/wait.h>
  7081. #ifndef WEXITSTATUS
  7082. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  7083. #endif
  7084. #ifndef WIFEXITED
  7085. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  7086. #endif
  7087. #ifdef F77_DUMMY_MAIN
  7088. # ifdef __cplusplus
  7089. extern "C"
  7090. # endif
  7091. int F77_DUMMY_MAIN() { return 1; }
  7092. #endif
  7093. int
  7094. main ()
  7095. {
  7096. int s;
  7097. wait (&s);
  7098. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  7099. ;
  7100. return 0;
  7101. }
  7102. _ACEOF
  7103. rm -f conftest.$ac_objext
  7104. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7105. (eval $ac_compile) 2>&5
  7106. ac_status=$?
  7107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7108. (exit $ac_status); } &&
  7109. { ac_try='test -s conftest.$ac_objext'
  7110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7111. (eval $ac_try) 2>&5
  7112. ac_status=$?
  7113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7114. (exit $ac_status); }; }; then
  7115. ac_cv_header_sys_wait_h=yes
  7116. else
  7117. echo "$as_me: failed program was:" >&5
  7118. cat conftest.$ac_ext >&5
  7119. ac_cv_header_sys_wait_h=no
  7120. fi
  7121. rm -f conftest.$ac_objext conftest.$ac_ext
  7122. fi
  7123. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  7124. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  7125. if test $ac_cv_header_sys_wait_h = yes; then
  7126. cat >>confdefs.h <<\_ACEOF
  7127. #define HAVE_SYS_WAIT_H 1
  7128. _ACEOF
  7129. fi
  7130. for ac_header in stdint.h
  7131. do
  7132. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7133. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7134. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7135. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7136. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7137. echo $ECHO_N "(cached) $ECHO_C" >&6
  7138. fi
  7139. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7140. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7141. else
  7142. # Is the header compilable?
  7143. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7144. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7145. cat >conftest.$ac_ext <<_ACEOF
  7146. #line $LINENO "configure"
  7147. #include "confdefs.h"
  7148. $ac_includes_default
  7149. #include <$ac_header>
  7150. _ACEOF
  7151. rm -f conftest.$ac_objext
  7152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7153. (eval $ac_compile) 2>&5
  7154. ac_status=$?
  7155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7156. (exit $ac_status); } &&
  7157. { ac_try='test -s conftest.$ac_objext'
  7158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7159. (eval $ac_try) 2>&5
  7160. ac_status=$?
  7161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7162. (exit $ac_status); }; }; then
  7163. ac_header_compiler=yes
  7164. else
  7165. echo "$as_me: failed program was:" >&5
  7166. cat conftest.$ac_ext >&5
  7167. ac_header_compiler=no
  7168. fi
  7169. rm -f conftest.$ac_objext conftest.$ac_ext
  7170. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7171. echo "${ECHO_T}$ac_header_compiler" >&6
  7172. # Is the header present?
  7173. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7174. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7175. cat >conftest.$ac_ext <<_ACEOF
  7176. #line $LINENO "configure"
  7177. #include "confdefs.h"
  7178. #include <$ac_header>
  7179. _ACEOF
  7180. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7181. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7182. ac_status=$?
  7183. egrep -v '^ *\+' conftest.er1 >conftest.err
  7184. rm -f conftest.er1
  7185. cat conftest.err >&5
  7186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7187. (exit $ac_status); } >/dev/null; then
  7188. if test -s conftest.err; then
  7189. ac_cpp_err=$ac_c_preproc_warn_flag
  7190. else
  7191. ac_cpp_err=
  7192. fi
  7193. else
  7194. ac_cpp_err=yes
  7195. fi
  7196. if test -z "$ac_cpp_err"; then
  7197. ac_header_preproc=yes
  7198. else
  7199. echo "$as_me: failed program was:" >&5
  7200. cat conftest.$ac_ext >&5
  7201. ac_header_preproc=no
  7202. fi
  7203. rm -f conftest.err conftest.$ac_ext
  7204. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7205. echo "${ECHO_T}$ac_header_preproc" >&6
  7206. # So? What about this header?
  7207. case $ac_header_compiler:$ac_header_preproc in
  7208. yes:no )
  7209. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7210. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7211. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7212. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7213. no:yes )
  7214. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7215. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7216. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7217. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7218. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7219. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7220. esac
  7221. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7222. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7223. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7224. echo $ECHO_N "(cached) $ECHO_C" >&6
  7225. else
  7226. eval "$as_ac_Header=$ac_header_preproc"
  7227. fi
  7228. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7229. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7230. fi
  7231. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7232. cat >>confdefs.h <<_ACEOF
  7233. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7234. _ACEOF
  7235. fi
  7236. done
  7237. for ac_header in fcntl.h locale.h
  7238. do
  7239. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7240. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7241. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7242. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7243. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7244. echo $ECHO_N "(cached) $ECHO_C" >&6
  7245. fi
  7246. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7247. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7248. else
  7249. # Is the header compilable?
  7250. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7251. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7252. cat >conftest.$ac_ext <<_ACEOF
  7253. #line $LINENO "configure"
  7254. #include "confdefs.h"
  7255. $ac_includes_default
  7256. #include <$ac_header>
  7257. _ACEOF
  7258. rm -f conftest.$ac_objext
  7259. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7260. (eval $ac_compile) 2>&5
  7261. ac_status=$?
  7262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7263. (exit $ac_status); } &&
  7264. { ac_try='test -s conftest.$ac_objext'
  7265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7266. (eval $ac_try) 2>&5
  7267. ac_status=$?
  7268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7269. (exit $ac_status); }; }; then
  7270. ac_header_compiler=yes
  7271. else
  7272. echo "$as_me: failed program was:" >&5
  7273. cat conftest.$ac_ext >&5
  7274. ac_header_compiler=no
  7275. fi
  7276. rm -f conftest.$ac_objext conftest.$ac_ext
  7277. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7278. echo "${ECHO_T}$ac_header_compiler" >&6
  7279. # Is the header present?
  7280. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7281. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7282. cat >conftest.$ac_ext <<_ACEOF
  7283. #line $LINENO "configure"
  7284. #include "confdefs.h"
  7285. #include <$ac_header>
  7286. _ACEOF
  7287. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7288. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7289. ac_status=$?
  7290. egrep -v '^ *\+' conftest.er1 >conftest.err
  7291. rm -f conftest.er1
  7292. cat conftest.err >&5
  7293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7294. (exit $ac_status); } >/dev/null; then
  7295. if test -s conftest.err; then
  7296. ac_cpp_err=$ac_c_preproc_warn_flag
  7297. else
  7298. ac_cpp_err=
  7299. fi
  7300. else
  7301. ac_cpp_err=yes
  7302. fi
  7303. if test -z "$ac_cpp_err"; then
  7304. ac_header_preproc=yes
  7305. else
  7306. echo "$as_me: failed program was:" >&5
  7307. cat conftest.$ac_ext >&5
  7308. ac_header_preproc=no
  7309. fi
  7310. rm -f conftest.err conftest.$ac_ext
  7311. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7312. echo "${ECHO_T}$ac_header_preproc" >&6
  7313. # So? What about this header?
  7314. case $ac_header_compiler:$ac_header_preproc in
  7315. yes:no )
  7316. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7317. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7318. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7319. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7320. no:yes )
  7321. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7322. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7323. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7324. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7325. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7326. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7327. esac
  7328. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7329. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7330. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7331. echo $ECHO_N "(cached) $ECHO_C" >&6
  7332. else
  7333. eval "$as_ac_Header=$ac_header_preproc"
  7334. fi
  7335. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7336. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7337. fi
  7338. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7339. cat >>confdefs.h <<_ACEOF
  7340. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7341. _ACEOF
  7342. fi
  7343. done
  7344. for ac_header in sys/mman.h sys/stat.h sys/types.h
  7345. do
  7346. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7347. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7348. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7349. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7350. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7351. echo $ECHO_N "(cached) $ECHO_C" >&6
  7352. fi
  7353. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7354. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7355. else
  7356. # Is the header compilable?
  7357. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7358. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7359. cat >conftest.$ac_ext <<_ACEOF
  7360. #line $LINENO "configure"
  7361. #include "confdefs.h"
  7362. $ac_includes_default
  7363. #include <$ac_header>
  7364. _ACEOF
  7365. rm -f conftest.$ac_objext
  7366. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7367. (eval $ac_compile) 2>&5
  7368. ac_status=$?
  7369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7370. (exit $ac_status); } &&
  7371. { ac_try='test -s conftest.$ac_objext'
  7372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7373. (eval $ac_try) 2>&5
  7374. ac_status=$?
  7375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. (exit $ac_status); }; }; then
  7377. ac_header_compiler=yes
  7378. else
  7379. echo "$as_me: failed program was:" >&5
  7380. cat conftest.$ac_ext >&5
  7381. ac_header_compiler=no
  7382. fi
  7383. rm -f conftest.$ac_objext conftest.$ac_ext
  7384. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7385. echo "${ECHO_T}$ac_header_compiler" >&6
  7386. # Is the header present?
  7387. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7388. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7389. cat >conftest.$ac_ext <<_ACEOF
  7390. #line $LINENO "configure"
  7391. #include "confdefs.h"
  7392. #include <$ac_header>
  7393. _ACEOF
  7394. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7395. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7396. ac_status=$?
  7397. egrep -v '^ *\+' conftest.er1 >conftest.err
  7398. rm -f conftest.er1
  7399. cat conftest.err >&5
  7400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7401. (exit $ac_status); } >/dev/null; then
  7402. if test -s conftest.err; then
  7403. ac_cpp_err=$ac_c_preproc_warn_flag
  7404. else
  7405. ac_cpp_err=
  7406. fi
  7407. else
  7408. ac_cpp_err=yes
  7409. fi
  7410. if test -z "$ac_cpp_err"; then
  7411. ac_header_preproc=yes
  7412. else
  7413. echo "$as_me: failed program was:" >&5
  7414. cat conftest.$ac_ext >&5
  7415. ac_header_preproc=no
  7416. fi
  7417. rm -f conftest.err conftest.$ac_ext
  7418. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7419. echo "${ECHO_T}$ac_header_preproc" >&6
  7420. # So? What about this header?
  7421. case $ac_header_compiler:$ac_header_preproc in
  7422. yes:no )
  7423. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7424. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7425. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7426. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7427. no:yes )
  7428. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7429. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7430. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7431. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7432. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7433. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7434. esac
  7435. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7436. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7437. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7438. echo $ECHO_N "(cached) $ECHO_C" >&6
  7439. else
  7440. eval "$as_ac_Header=$ac_header_preproc"
  7441. fi
  7442. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7443. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7444. fi
  7445. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7446. cat >>confdefs.h <<_ACEOF
  7447. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7448. _ACEOF
  7449. fi
  7450. done
  7451. for ac_header in stdint.h inttypes.h
  7452. do
  7453. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7454. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7455. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7456. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7457. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7458. echo $ECHO_N "(cached) $ECHO_C" >&6
  7459. fi
  7460. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7461. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7462. else
  7463. # Is the header compilable?
  7464. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7465. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7466. cat >conftest.$ac_ext <<_ACEOF
  7467. #line $LINENO "configure"
  7468. #include "confdefs.h"
  7469. $ac_includes_default
  7470. #include <$ac_header>
  7471. _ACEOF
  7472. rm -f conftest.$ac_objext
  7473. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7474. (eval $ac_compile) 2>&5
  7475. ac_status=$?
  7476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7477. (exit $ac_status); } &&
  7478. { ac_try='test -s conftest.$ac_objext'
  7479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7480. (eval $ac_try) 2>&5
  7481. ac_status=$?
  7482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7483. (exit $ac_status); }; }; then
  7484. ac_header_compiler=yes
  7485. else
  7486. echo "$as_me: failed program was:" >&5
  7487. cat conftest.$ac_ext >&5
  7488. ac_header_compiler=no
  7489. fi
  7490. rm -f conftest.$ac_objext conftest.$ac_ext
  7491. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7492. echo "${ECHO_T}$ac_header_compiler" >&6
  7493. # Is the header present?
  7494. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7495. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7496. cat >conftest.$ac_ext <<_ACEOF
  7497. #line $LINENO "configure"
  7498. #include "confdefs.h"
  7499. #include <$ac_header>
  7500. _ACEOF
  7501. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7502. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7503. ac_status=$?
  7504. egrep -v '^ *\+' conftest.er1 >conftest.err
  7505. rm -f conftest.er1
  7506. cat conftest.err >&5
  7507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7508. (exit $ac_status); } >/dev/null; then
  7509. if test -s conftest.err; then
  7510. ac_cpp_err=$ac_c_preproc_warn_flag
  7511. else
  7512. ac_cpp_err=
  7513. fi
  7514. else
  7515. ac_cpp_err=yes
  7516. fi
  7517. if test -z "$ac_cpp_err"; then
  7518. ac_header_preproc=yes
  7519. else
  7520. echo "$as_me: failed program was:" >&5
  7521. cat conftest.$ac_ext >&5
  7522. ac_header_preproc=no
  7523. fi
  7524. rm -f conftest.err conftest.$ac_ext
  7525. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7526. echo "${ECHO_T}$ac_header_preproc" >&6
  7527. # So? What about this header?
  7528. case $ac_header_compiler:$ac_header_preproc in
  7529. yes:no )
  7530. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7531. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7532. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7533. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7534. no:yes )
  7535. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7536. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7537. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7538. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7539. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7540. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7541. esac
  7542. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7543. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7544. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7545. echo $ECHO_N "(cached) $ECHO_C" >&6
  7546. else
  7547. eval "$as_ac_Header=$ac_header_preproc"
  7548. fi
  7549. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7550. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7551. fi
  7552. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7553. cat >>confdefs.h <<_ACEOF
  7554. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7555. _ACEOF
  7556. fi
  7557. done
  7558. for ac_header in unistd.h
  7559. do
  7560. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7561. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7562. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7563. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7564. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7565. echo $ECHO_N "(cached) $ECHO_C" >&6
  7566. fi
  7567. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7568. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7569. else
  7570. # Is the header compilable?
  7571. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7572. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7573. cat >conftest.$ac_ext <<_ACEOF
  7574. #line $LINENO "configure"
  7575. #include "confdefs.h"
  7576. $ac_includes_default
  7577. #include <$ac_header>
  7578. _ACEOF
  7579. rm -f conftest.$ac_objext
  7580. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7581. (eval $ac_compile) 2>&5
  7582. ac_status=$?
  7583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7584. (exit $ac_status); } &&
  7585. { ac_try='test -s conftest.$ac_objext'
  7586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7587. (eval $ac_try) 2>&5
  7588. ac_status=$?
  7589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7590. (exit $ac_status); }; }; then
  7591. ac_header_compiler=yes
  7592. else
  7593. echo "$as_me: failed program was:" >&5
  7594. cat conftest.$ac_ext >&5
  7595. ac_header_compiler=no
  7596. fi
  7597. rm -f conftest.$ac_objext conftest.$ac_ext
  7598. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7599. echo "${ECHO_T}$ac_header_compiler" >&6
  7600. # Is the header present?
  7601. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7602. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7603. cat >conftest.$ac_ext <<_ACEOF
  7604. #line $LINENO "configure"
  7605. #include "confdefs.h"
  7606. #include <$ac_header>
  7607. _ACEOF
  7608. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7609. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7610. ac_status=$?
  7611. egrep -v '^ *\+' conftest.er1 >conftest.err
  7612. rm -f conftest.er1
  7613. cat conftest.err >&5
  7614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7615. (exit $ac_status); } >/dev/null; then
  7616. if test -s conftest.err; then
  7617. ac_cpp_err=$ac_c_preproc_warn_flag
  7618. else
  7619. ac_cpp_err=
  7620. fi
  7621. else
  7622. ac_cpp_err=yes
  7623. fi
  7624. if test -z "$ac_cpp_err"; then
  7625. ac_header_preproc=yes
  7626. else
  7627. echo "$as_me: failed program was:" >&5
  7628. cat conftest.$ac_ext >&5
  7629. ac_header_preproc=no
  7630. fi
  7631. rm -f conftest.err conftest.$ac_ext
  7632. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7633. echo "${ECHO_T}$ac_header_preproc" >&6
  7634. # So? What about this header?
  7635. case $ac_header_compiler:$ac_header_preproc in
  7636. yes:no )
  7637. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7638. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7639. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7640. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7641. no:yes )
  7642. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7643. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7644. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7645. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7646. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7647. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7648. esac
  7649. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7650. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7651. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7652. echo $ECHO_N "(cached) $ECHO_C" >&6
  7653. else
  7654. eval "$as_ac_Header=$ac_header_preproc"
  7655. fi
  7656. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7657. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7658. fi
  7659. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7660. cat >>confdefs.h <<_ACEOF
  7661. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7662. _ACEOF
  7663. fi
  7664. done
  7665. for ac_header in getopt.h
  7666. do
  7667. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7668. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7669. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7670. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7671. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7672. echo $ECHO_N "(cached) $ECHO_C" >&6
  7673. fi
  7674. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7675. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7676. else
  7677. # Is the header compilable?
  7678. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7679. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7680. cat >conftest.$ac_ext <<_ACEOF
  7681. #line $LINENO "configure"
  7682. #include "confdefs.h"
  7683. $ac_includes_default
  7684. #include <$ac_header>
  7685. _ACEOF
  7686. rm -f conftest.$ac_objext
  7687. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7688. (eval $ac_compile) 2>&5
  7689. ac_status=$?
  7690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7691. (exit $ac_status); } &&
  7692. { ac_try='test -s conftest.$ac_objext'
  7693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7694. (eval $ac_try) 2>&5
  7695. ac_status=$?
  7696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7697. (exit $ac_status); }; }; then
  7698. ac_header_compiler=yes
  7699. else
  7700. echo "$as_me: failed program was:" >&5
  7701. cat conftest.$ac_ext >&5
  7702. ac_header_compiler=no
  7703. fi
  7704. rm -f conftest.$ac_objext conftest.$ac_ext
  7705. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7706. echo "${ECHO_T}$ac_header_compiler" >&6
  7707. # Is the header present?
  7708. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7709. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7710. cat >conftest.$ac_ext <<_ACEOF
  7711. #line $LINENO "configure"
  7712. #include "confdefs.h"
  7713. #include <$ac_header>
  7714. _ACEOF
  7715. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7716. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7717. ac_status=$?
  7718. egrep -v '^ *\+' conftest.er1 >conftest.err
  7719. rm -f conftest.er1
  7720. cat conftest.err >&5
  7721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7722. (exit $ac_status); } >/dev/null; then
  7723. if test -s conftest.err; then
  7724. ac_cpp_err=$ac_c_preproc_warn_flag
  7725. else
  7726. ac_cpp_err=
  7727. fi
  7728. else
  7729. ac_cpp_err=yes
  7730. fi
  7731. if test -z "$ac_cpp_err"; then
  7732. ac_header_preproc=yes
  7733. else
  7734. echo "$as_me: failed program was:" >&5
  7735. cat conftest.$ac_ext >&5
  7736. ac_header_preproc=no
  7737. fi
  7738. rm -f conftest.err conftest.$ac_ext
  7739. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7740. echo "${ECHO_T}$ac_header_preproc" >&6
  7741. # So? What about this header?
  7742. case $ac_header_compiler:$ac_header_preproc in
  7743. yes:no )
  7744. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7745. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7746. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7747. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7748. no:yes )
  7749. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7750. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7751. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7752. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7753. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7754. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7755. esac
  7756. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7757. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7758. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7759. echo $ECHO_N "(cached) $ECHO_C" >&6
  7760. else
  7761. eval "$as_ac_Header=$ac_header_preproc"
  7762. fi
  7763. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7764. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7765. fi
  7766. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7767. cat >>confdefs.h <<_ACEOF
  7768. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7769. _ACEOF
  7770. fi
  7771. done
  7772. for ac_header in locale.h
  7773. do
  7774. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7775. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7776. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7777. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7778. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7779. echo $ECHO_N "(cached) $ECHO_C" >&6
  7780. fi
  7781. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7782. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7783. else
  7784. # Is the header compilable?
  7785. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7786. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7787. cat >conftest.$ac_ext <<_ACEOF
  7788. #line $LINENO "configure"
  7789. #include "confdefs.h"
  7790. $ac_includes_default
  7791. #include <$ac_header>
  7792. _ACEOF
  7793. rm -f conftest.$ac_objext
  7794. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7795. (eval $ac_compile) 2>&5
  7796. ac_status=$?
  7797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7798. (exit $ac_status); } &&
  7799. { ac_try='test -s conftest.$ac_objext'
  7800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7801. (eval $ac_try) 2>&5
  7802. ac_status=$?
  7803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7804. (exit $ac_status); }; }; then
  7805. ac_header_compiler=yes
  7806. else
  7807. echo "$as_me: failed program was:" >&5
  7808. cat conftest.$ac_ext >&5
  7809. ac_header_compiler=no
  7810. fi
  7811. rm -f conftest.$ac_objext conftest.$ac_ext
  7812. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7813. echo "${ECHO_T}$ac_header_compiler" >&6
  7814. # Is the header present?
  7815. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7816. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7817. cat >conftest.$ac_ext <<_ACEOF
  7818. #line $LINENO "configure"
  7819. #include "confdefs.h"
  7820. #include <$ac_header>
  7821. _ACEOF
  7822. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7823. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7824. ac_status=$?
  7825. egrep -v '^ *\+' conftest.er1 >conftest.err
  7826. rm -f conftest.er1
  7827. cat conftest.err >&5
  7828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7829. (exit $ac_status); } >/dev/null; then
  7830. if test -s conftest.err; then
  7831. ac_cpp_err=$ac_c_preproc_warn_flag
  7832. else
  7833. ac_cpp_err=
  7834. fi
  7835. else
  7836. ac_cpp_err=yes
  7837. fi
  7838. if test -z "$ac_cpp_err"; then
  7839. ac_header_preproc=yes
  7840. else
  7841. echo "$as_me: failed program was:" >&5
  7842. cat conftest.$ac_ext >&5
  7843. ac_header_preproc=no
  7844. fi
  7845. rm -f conftest.err conftest.$ac_ext
  7846. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7847. echo "${ECHO_T}$ac_header_preproc" >&6
  7848. # So? What about this header?
  7849. case $ac_header_compiler:$ac_header_preproc in
  7850. yes:no )
  7851. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7852. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7853. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7854. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7855. no:yes )
  7856. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7857. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7858. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7859. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7860. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7861. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7862. esac
  7863. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7864. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7865. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7866. echo $ECHO_N "(cached) $ECHO_C" >&6
  7867. else
  7868. eval "$as_ac_Header=$ac_header_preproc"
  7869. fi
  7870. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7871. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7872. fi
  7873. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7874. cat >>confdefs.h <<_ACEOF
  7875. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7876. _ACEOF
  7877. fi
  7878. done
  7879. for ac_header in utime.h
  7880. do
  7881. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7882. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7883. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7884. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7885. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7886. echo $ECHO_N "(cached) $ECHO_C" >&6
  7887. fi
  7888. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7889. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7890. else
  7891. # Is the header compilable?
  7892. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7893. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7894. cat >conftest.$ac_ext <<_ACEOF
  7895. #line $LINENO "configure"
  7896. #include "confdefs.h"
  7897. $ac_includes_default
  7898. #include <$ac_header>
  7899. _ACEOF
  7900. rm -f conftest.$ac_objext
  7901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7902. (eval $ac_compile) 2>&5
  7903. ac_status=$?
  7904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7905. (exit $ac_status); } &&
  7906. { ac_try='test -s conftest.$ac_objext'
  7907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7908. (eval $ac_try) 2>&5
  7909. ac_status=$?
  7910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7911. (exit $ac_status); }; }; then
  7912. ac_header_compiler=yes
  7913. else
  7914. echo "$as_me: failed program was:" >&5
  7915. cat conftest.$ac_ext >&5
  7916. ac_header_compiler=no
  7917. fi
  7918. rm -f conftest.$ac_objext conftest.$ac_ext
  7919. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7920. echo "${ECHO_T}$ac_header_compiler" >&6
  7921. # Is the header present?
  7922. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7923. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7924. cat >conftest.$ac_ext <<_ACEOF
  7925. #line $LINENO "configure"
  7926. #include "confdefs.h"
  7927. #include <$ac_header>
  7928. _ACEOF
  7929. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7930. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7931. ac_status=$?
  7932. egrep -v '^ *\+' conftest.er1 >conftest.err
  7933. rm -f conftest.er1
  7934. cat conftest.err >&5
  7935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7936. (exit $ac_status); } >/dev/null; then
  7937. if test -s conftest.err; then
  7938. ac_cpp_err=$ac_c_preproc_warn_flag
  7939. else
  7940. ac_cpp_err=
  7941. fi
  7942. else
  7943. ac_cpp_err=yes
  7944. fi
  7945. if test -z "$ac_cpp_err"; then
  7946. ac_header_preproc=yes
  7947. else
  7948. echo "$as_me: failed program was:" >&5
  7949. cat conftest.$ac_ext >&5
  7950. ac_header_preproc=no
  7951. fi
  7952. rm -f conftest.err conftest.$ac_ext
  7953. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7954. echo "${ECHO_T}$ac_header_preproc" >&6
  7955. # So? What about this header?
  7956. case $ac_header_compiler:$ac_header_preproc in
  7957. yes:no )
  7958. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7959. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7960. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7961. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7962. no:yes )
  7963. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7964. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7965. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7966. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7967. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7968. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7969. esac
  7970. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7971. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7972. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7973. echo $ECHO_N "(cached) $ECHO_C" >&6
  7974. else
  7975. eval "$as_ac_Header=$ac_header_preproc"
  7976. fi
  7977. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7978. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7979. fi
  7980. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7981. cat >>confdefs.h <<_ACEOF
  7982. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7983. _ACEOF
  7984. fi
  7985. done
  7986. for ac_header in sys/utime.h
  7987. do
  7988. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7989. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7990. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7991. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7992. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7993. echo $ECHO_N "(cached) $ECHO_C" >&6
  7994. fi
  7995. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7996. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7997. else
  7998. # Is the header compilable?
  7999. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8000. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8001. cat >conftest.$ac_ext <<_ACEOF
  8002. #line $LINENO "configure"
  8003. #include "confdefs.h"
  8004. $ac_includes_default
  8005. #include <$ac_header>
  8006. _ACEOF
  8007. rm -f conftest.$ac_objext
  8008. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8009. (eval $ac_compile) 2>&5
  8010. ac_status=$?
  8011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8012. (exit $ac_status); } &&
  8013. { ac_try='test -s conftest.$ac_objext'
  8014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8015. (eval $ac_try) 2>&5
  8016. ac_status=$?
  8017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8018. (exit $ac_status); }; }; then
  8019. ac_header_compiler=yes
  8020. else
  8021. echo "$as_me: failed program was:" >&5
  8022. cat conftest.$ac_ext >&5
  8023. ac_header_compiler=no
  8024. fi
  8025. rm -f conftest.$ac_objext conftest.$ac_ext
  8026. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8027. echo "${ECHO_T}$ac_header_compiler" >&6
  8028. # Is the header present?
  8029. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8030. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8031. cat >conftest.$ac_ext <<_ACEOF
  8032. #line $LINENO "configure"
  8033. #include "confdefs.h"
  8034. #include <$ac_header>
  8035. _ACEOF
  8036. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8037. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8038. ac_status=$?
  8039. egrep -v '^ *\+' conftest.er1 >conftest.err
  8040. rm -f conftest.er1
  8041. cat conftest.err >&5
  8042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8043. (exit $ac_status); } >/dev/null; then
  8044. if test -s conftest.err; then
  8045. ac_cpp_err=$ac_c_preproc_warn_flag
  8046. else
  8047. ac_cpp_err=
  8048. fi
  8049. else
  8050. ac_cpp_err=yes
  8051. fi
  8052. if test -z "$ac_cpp_err"; then
  8053. ac_header_preproc=yes
  8054. else
  8055. echo "$as_me: failed program was:" >&5
  8056. cat conftest.$ac_ext >&5
  8057. ac_header_preproc=no
  8058. fi
  8059. rm -f conftest.err conftest.$ac_ext
  8060. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8061. echo "${ECHO_T}$ac_header_preproc" >&6
  8062. # So? What about this header?
  8063. case $ac_header_compiler:$ac_header_preproc in
  8064. yes:no )
  8065. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8066. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8067. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8068. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  8069. no:yes )
  8070. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8071. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8072. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8073. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8074. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8075. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  8076. esac
  8077. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8078. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8079. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8080. echo $ECHO_N "(cached) $ECHO_C" >&6
  8081. else
  8082. eval "$as_ac_Header=$ac_header_preproc"
  8083. fi
  8084. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8085. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8086. fi
  8087. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8088. cat >>confdefs.h <<_ACEOF
  8089. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8090. _ACEOF
  8091. fi
  8092. done
  8093. for ac_header in wchar.h
  8094. do
  8095. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8096. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8097. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8098. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8099. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8100. echo $ECHO_N "(cached) $ECHO_C" >&6
  8101. fi
  8102. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8103. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8104. else
  8105. # Is the header compilable?
  8106. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8107. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8108. cat >conftest.$ac_ext <<_ACEOF
  8109. #line $LINENO "configure"
  8110. #include "confdefs.h"
  8111. $ac_includes_default
  8112. #include <$ac_header>
  8113. _ACEOF
  8114. rm -f conftest.$ac_objext
  8115. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8116. (eval $ac_compile) 2>&5
  8117. ac_status=$?
  8118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8119. (exit $ac_status); } &&
  8120. { ac_try='test -s conftest.$ac_objext'
  8121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8122. (eval $ac_try) 2>&5
  8123. ac_status=$?
  8124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8125. (exit $ac_status); }; }; then
  8126. ac_header_compiler=yes
  8127. else
  8128. echo "$as_me: failed program was:" >&5
  8129. cat conftest.$ac_ext >&5
  8130. ac_header_compiler=no
  8131. fi
  8132. rm -f conftest.$ac_objext conftest.$ac_ext
  8133. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8134. echo "${ECHO_T}$ac_header_compiler" >&6
  8135. # Is the header present?
  8136. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8137. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8138. cat >conftest.$ac_ext <<_ACEOF
  8139. #line $LINENO "configure"
  8140. #include "confdefs.h"
  8141. #include <$ac_header>
  8142. _ACEOF
  8143. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8144. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8145. ac_status=$?
  8146. egrep -v '^ *\+' conftest.er1 >conftest.err
  8147. rm -f conftest.er1
  8148. cat conftest.err >&5
  8149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8150. (exit $ac_status); } >/dev/null; then
  8151. if test -s conftest.err; then
  8152. ac_cpp_err=$ac_c_preproc_warn_flag
  8153. else
  8154. ac_cpp_err=
  8155. fi
  8156. else
  8157. ac_cpp_err=yes
  8158. fi
  8159. if test -z "$ac_cpp_err"; then
  8160. ac_header_preproc=yes
  8161. else
  8162. echo "$as_me: failed program was:" >&5
  8163. cat conftest.$ac_ext >&5
  8164. ac_header_preproc=no
  8165. fi
  8166. rm -f conftest.err conftest.$ac_ext
  8167. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8168. echo "${ECHO_T}$ac_header_preproc" >&6
  8169. # So? What about this header?
  8170. case $ac_header_compiler:$ac_header_preproc in
  8171. yes:no )
  8172. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8173. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8174. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8175. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  8176. no:yes )
  8177. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8178. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8179. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8180. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8181. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8182. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  8183. esac
  8184. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8185. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8186. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8187. echo $ECHO_N "(cached) $ECHO_C" >&6
  8188. else
  8189. eval "$as_ac_Header=$ac_header_preproc"
  8190. fi
  8191. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8192. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8193. fi
  8194. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8195. cat >>confdefs.h <<_ACEOF
  8196. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8197. _ACEOF
  8198. fi
  8199. done
  8200. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  8201. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  8202. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  8203. echo $ECHO_N "(cached) $ECHO_C" >&6
  8204. else
  8205. ac_cv_prog_cc_stdc=no
  8206. ac_save_CC=$CC
  8207. cat >conftest.$ac_ext <<_ACEOF
  8208. #line $LINENO "configure"
  8209. #include "confdefs.h"
  8210. #include <stdarg.h>
  8211. #include <stdio.h>
  8212. #include <sys/types.h>
  8213. #include <sys/stat.h>
  8214. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  8215. struct buf { int x; };
  8216. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  8217. static char *e (p, i)
  8218. char **p;
  8219. int i;
  8220. {
  8221. return p[i];
  8222. }
  8223. static char *f (char * (*g) (char **, int), char **p, ...)
  8224. {
  8225. char *s;
  8226. va_list v;
  8227. va_start (v,p);
  8228. s = g (p, va_arg (v,int));
  8229. va_end (v);
  8230. return s;
  8231. }
  8232. int test (int i, double x);
  8233. struct s1 {int (*f) (int a);};
  8234. struct s2 {int (*f) (double a);};
  8235. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  8236. int argc;
  8237. char **argv;
  8238. #ifdef F77_DUMMY_MAIN
  8239. # ifdef __cplusplus
  8240. extern "C"
  8241. # endif
  8242. int F77_DUMMY_MAIN() { return 1; }
  8243. #endif
  8244. int
  8245. main ()
  8246. {
  8247. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  8248. ;
  8249. return 0;
  8250. }
  8251. _ACEOF
  8252. # Don't try gcc -ansi; that turns off useful extensions and
  8253. # breaks some systems' header files.
  8254. # AIX -qlanglvl=ansi
  8255. # Ultrix and OSF/1 -std1
  8256. # HP-UX 10.20 and later -Ae
  8257. # HP-UX older versions -Aa -D_HPUX_SOURCE
  8258. # SVR4 -Xc -D__EXTENSIONS__
  8259. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  8260. do
  8261. CC="$ac_save_CC $ac_arg"
  8262. rm -f conftest.$ac_objext
  8263. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8264. (eval $ac_compile) 2>&5
  8265. ac_status=$?
  8266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8267. (exit $ac_status); } &&
  8268. { ac_try='test -s conftest.$ac_objext'
  8269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8270. (eval $ac_try) 2>&5
  8271. ac_status=$?
  8272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8273. (exit $ac_status); }; }; then
  8274. ac_cv_prog_cc_stdc=$ac_arg
  8275. break
  8276. else
  8277. echo "$as_me: failed program was:" >&5
  8278. cat conftest.$ac_ext >&5
  8279. fi
  8280. rm -f conftest.$ac_objext
  8281. done
  8282. rm -f conftest.$ac_ext conftest.$ac_objext
  8283. CC=$ac_save_CC
  8284. fi
  8285. case "x$ac_cv_prog_cc_stdc" in
  8286. x|xno)
  8287. echo "$as_me:$LINENO: result: none needed" >&5
  8288. echo "${ECHO_T}none needed" >&6 ;;
  8289. *)
  8290. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  8291. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  8292. CC="$CC $ac_cv_prog_cc_stdc" ;;
  8293. esac
  8294. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  8295. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  8296. if test "${ac_cv_c_const+set}" = set; then
  8297. echo $ECHO_N "(cached) $ECHO_C" >&6
  8298. else
  8299. cat >conftest.$ac_ext <<_ACEOF
  8300. #line $LINENO "configure"
  8301. #include "confdefs.h"
  8302. #ifdef F77_DUMMY_MAIN
  8303. # ifdef __cplusplus
  8304. extern "C"
  8305. # endif
  8306. int F77_DUMMY_MAIN() { return 1; }
  8307. #endif
  8308. int
  8309. main ()
  8310. {
  8311. /* FIXME: Include the comments suggested by Paul. */
  8312. #ifndef __cplusplus
  8313. /* Ultrix mips cc rejects this. */
  8314. typedef int charset[2];
  8315. const charset x;
  8316. /* SunOS 4.1.1 cc rejects this. */
  8317. char const *const *ccp;
  8318. char **p;
  8319. /* NEC SVR4.0.2 mips cc rejects this. */
  8320. struct point {int x, y;};
  8321. static struct point const zero = {0,0};
  8322. /* AIX XL C 1.02.0.0 rejects this.
  8323. It does not let you subtract one const X* pointer from another in
  8324. an arm of an if-expression whose if-part is not a constant
  8325. expression */
  8326. const char *g = "string";
  8327. ccp = &g + (g ? g-g : 0);
  8328. /* HPUX 7.0 cc rejects these. */
  8329. ++ccp;
  8330. p = (char**) ccp;
  8331. ccp = (char const *const *) p;
  8332. { /* SCO 3.2v4 cc rejects this. */
  8333. char *t;
  8334. char const *s = 0 ? (char *) 0 : (char const *) 0;
  8335. *t++ = 0;
  8336. }
  8337. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  8338. int x[] = {25, 17};
  8339. const int *foo = &x[0];
  8340. ++foo;
  8341. }
  8342. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  8343. typedef const int *iptr;
  8344. iptr p = 0;
  8345. ++p;
  8346. }
  8347. { /* AIX XL C 1.02.0.0 rejects this saying
  8348. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  8349. struct s { int j; const int *ap[3]; };
  8350. struct s *b; b->j = 5;
  8351. }
  8352. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8353. const int foo = 10;
  8354. }
  8355. #endif
  8356. ;
  8357. return 0;
  8358. }
  8359. _ACEOF
  8360. rm -f conftest.$ac_objext
  8361. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8362. (eval $ac_compile) 2>&5
  8363. ac_status=$?
  8364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8365. (exit $ac_status); } &&
  8366. { ac_try='test -s conftest.$ac_objext'
  8367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8368. (eval $ac_try) 2>&5
  8369. ac_status=$?
  8370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8371. (exit $ac_status); }; }; then
  8372. ac_cv_c_const=yes
  8373. else
  8374. echo "$as_me: failed program was:" >&5
  8375. cat conftest.$ac_ext >&5
  8376. ac_cv_c_const=no
  8377. fi
  8378. rm -f conftest.$ac_objext conftest.$ac_ext
  8379. fi
  8380. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  8381. echo "${ECHO_T}$ac_cv_c_const" >&6
  8382. if test $ac_cv_c_const = no; then
  8383. cat >>confdefs.h <<\_ACEOF
  8384. #define const
  8385. _ACEOF
  8386. fi
  8387. echo "$as_me:$LINENO: checking for off_t" >&5
  8388. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  8389. if test "${ac_cv_type_off_t+set}" = set; then
  8390. echo $ECHO_N "(cached) $ECHO_C" >&6
  8391. else
  8392. cat >conftest.$ac_ext <<_ACEOF
  8393. #line $LINENO "configure"
  8394. #include "confdefs.h"
  8395. $ac_includes_default
  8396. #ifdef F77_DUMMY_MAIN
  8397. # ifdef __cplusplus
  8398. extern "C"
  8399. # endif
  8400. int F77_DUMMY_MAIN() { return 1; }
  8401. #endif
  8402. int
  8403. main ()
  8404. {
  8405. if ((off_t *) 0)
  8406. return 0;
  8407. if (sizeof (off_t))
  8408. return 0;
  8409. ;
  8410. return 0;
  8411. }
  8412. _ACEOF
  8413. rm -f conftest.$ac_objext
  8414. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8415. (eval $ac_compile) 2>&5
  8416. ac_status=$?
  8417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8418. (exit $ac_status); } &&
  8419. { ac_try='test -s conftest.$ac_objext'
  8420. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8421. (eval $ac_try) 2>&5
  8422. ac_status=$?
  8423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8424. (exit $ac_status); }; }; then
  8425. ac_cv_type_off_t=yes
  8426. else
  8427. echo "$as_me: failed program was:" >&5
  8428. cat conftest.$ac_ext >&5
  8429. ac_cv_type_off_t=no
  8430. fi
  8431. rm -f conftest.$ac_objext conftest.$ac_ext
  8432. fi
  8433. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8434. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  8435. if test $ac_cv_type_off_t = yes; then
  8436. :
  8437. else
  8438. cat >>confdefs.h <<_ACEOF
  8439. #define off_t long
  8440. _ACEOF
  8441. fi
  8442. echo "$as_me:$LINENO: checking for size_t" >&5
  8443. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  8444. if test "${ac_cv_type_size_t+set}" = set; then
  8445. echo $ECHO_N "(cached) $ECHO_C" >&6
  8446. else
  8447. cat >conftest.$ac_ext <<_ACEOF
  8448. #line $LINENO "configure"
  8449. #include "confdefs.h"
  8450. $ac_includes_default
  8451. #ifdef F77_DUMMY_MAIN
  8452. # ifdef __cplusplus
  8453. extern "C"
  8454. # endif
  8455. int F77_DUMMY_MAIN() { return 1; }
  8456. #endif
  8457. int
  8458. main ()
  8459. {
  8460. if ((size_t *) 0)
  8461. return 0;
  8462. if (sizeof (size_t))
  8463. return 0;
  8464. ;
  8465. return 0;
  8466. }
  8467. _ACEOF
  8468. rm -f conftest.$ac_objext
  8469. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8470. (eval $ac_compile) 2>&5
  8471. ac_status=$?
  8472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8473. (exit $ac_status); } &&
  8474. { ac_try='test -s conftest.$ac_objext'
  8475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8476. (eval $ac_try) 2>&5
  8477. ac_status=$?
  8478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8479. (exit $ac_status); }; }; then
  8480. ac_cv_type_size_t=yes
  8481. else
  8482. echo "$as_me: failed program was:" >&5
  8483. cat conftest.$ac_ext >&5
  8484. ac_cv_type_size_t=no
  8485. fi
  8486. rm -f conftest.$ac_objext conftest.$ac_ext
  8487. fi
  8488. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8489. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  8490. if test $ac_cv_type_size_t = yes; then
  8491. :
  8492. else
  8493. cat >>confdefs.h <<_ACEOF
  8494. #define size_t unsigned
  8495. _ACEOF
  8496. fi
  8497. echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
  8498. echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
  8499. if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
  8500. echo $ECHO_N "(cached) $ECHO_C" >&6
  8501. else
  8502. cat >conftest.$ac_ext <<_ACEOF
  8503. #line $LINENO "configure"
  8504. #include "confdefs.h"
  8505. $ac_includes_default
  8506. #ifdef F77_DUMMY_MAIN
  8507. # ifdef __cplusplus
  8508. extern "C"
  8509. # endif
  8510. int F77_DUMMY_MAIN() { return 1; }
  8511. #endif
  8512. int
  8513. main ()
  8514. {
  8515. static struct stat ac_aggr;
  8516. if (ac_aggr.st_rdev)
  8517. return 0;
  8518. ;
  8519. return 0;
  8520. }
  8521. _ACEOF
  8522. rm -f conftest.$ac_objext
  8523. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8524. (eval $ac_compile) 2>&5
  8525. ac_status=$?
  8526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8527. (exit $ac_status); } &&
  8528. { ac_try='test -s conftest.$ac_objext'
  8529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8530. (eval $ac_try) 2>&5
  8531. ac_status=$?
  8532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8533. (exit $ac_status); }; }; then
  8534. ac_cv_member_struct_stat_st_rdev=yes
  8535. else
  8536. echo "$as_me: failed program was:" >&5
  8537. cat conftest.$ac_ext >&5
  8538. ac_cv_member_struct_stat_st_rdev=no
  8539. fi
  8540. rm -f conftest.$ac_objext conftest.$ac_ext
  8541. fi
  8542. echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
  8543. echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
  8544. if test $ac_cv_member_struct_stat_st_rdev = yes; then
  8545. cat >>confdefs.h <<_ACEOF
  8546. #define HAVE_STRUCT_STAT_ST_RDEV 1
  8547. _ACEOF
  8548. cat >>confdefs.h <<\_ACEOF
  8549. #define HAVE_ST_RDEV 1
  8550. _ACEOF
  8551. fi
  8552. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8553. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  8554. if test "${ac_cv_struct_tm+set}" = set; then
  8555. echo $ECHO_N "(cached) $ECHO_C" >&6
  8556. else
  8557. cat >conftest.$ac_ext <<_ACEOF
  8558. #line $LINENO "configure"
  8559. #include "confdefs.h"
  8560. #include <sys/types.h>
  8561. #include <time.h>
  8562. #ifdef F77_DUMMY_MAIN
  8563. # ifdef __cplusplus
  8564. extern "C"
  8565. # endif
  8566. int F77_DUMMY_MAIN() { return 1; }
  8567. #endif
  8568. int
  8569. main ()
  8570. {
  8571. struct tm *tp; tp->tm_sec;
  8572. ;
  8573. return 0;
  8574. }
  8575. _ACEOF
  8576. rm -f conftest.$ac_objext
  8577. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8578. (eval $ac_compile) 2>&5
  8579. ac_status=$?
  8580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8581. (exit $ac_status); } &&
  8582. { ac_try='test -s conftest.$ac_objext'
  8583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8584. (eval $ac_try) 2>&5
  8585. ac_status=$?
  8586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8587. (exit $ac_status); }; }; then
  8588. ac_cv_struct_tm=time.h
  8589. else
  8590. echo "$as_me: failed program was:" >&5
  8591. cat conftest.$ac_ext >&5
  8592. ac_cv_struct_tm=sys/time.h
  8593. fi
  8594. rm -f conftest.$ac_objext conftest.$ac_ext
  8595. fi
  8596. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8597. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8598. if test $ac_cv_struct_tm = sys/time.h; then
  8599. cat >>confdefs.h <<\_ACEOF
  8600. #define TM_IN_SYS_TIME 1
  8601. _ACEOF
  8602. fi
  8603. echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
  8604. echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
  8605. if test "${ac_cv_struct_tm_zone+set}" = set; then
  8606. echo $ECHO_N "(cached) $ECHO_C" >&6
  8607. else
  8608. cat >conftest.$ac_ext <<_ACEOF
  8609. #line $LINENO "configure"
  8610. #include "confdefs.h"
  8611. #include <sys/types.h>
  8612. #include <$ac_cv_struct_tm>
  8613. #ifdef F77_DUMMY_MAIN
  8614. # ifdef __cplusplus
  8615. extern "C"
  8616. # endif
  8617. int F77_DUMMY_MAIN() { return 1; }
  8618. #endif
  8619. int
  8620. main ()
  8621. {
  8622. struct tm tm; tm.tm_zone;
  8623. ;
  8624. return 0;
  8625. }
  8626. _ACEOF
  8627. rm -f conftest.$ac_objext
  8628. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8629. (eval $ac_compile) 2>&5
  8630. ac_status=$?
  8631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8632. (exit $ac_status); } &&
  8633. { ac_try='test -s conftest.$ac_objext'
  8634. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8635. (eval $ac_try) 2>&5
  8636. ac_status=$?
  8637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8638. (exit $ac_status); }; }; then
  8639. ac_cv_struct_tm_zone=yes
  8640. else
  8641. echo "$as_me: failed program was:" >&5
  8642. cat conftest.$ac_ext >&5
  8643. ac_cv_struct_tm_zone=no
  8644. fi
  8645. rm -f conftest.$ac_objext conftest.$ac_ext
  8646. fi
  8647. echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
  8648. echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6
  8649. if test "$ac_cv_struct_tm_zone" = yes; then
  8650. cat >>confdefs.h <<\_ACEOF
  8651. #define HAVE_TM_ZONE 1
  8652. _ACEOF
  8653. fi
  8654. echo "$as_me:$LINENO: checking for tzname" >&5
  8655. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  8656. if test "${ac_cv_var_tzname+set}" = set; then
  8657. echo $ECHO_N "(cached) $ECHO_C" >&6
  8658. else
  8659. cat >conftest.$ac_ext <<_ACEOF
  8660. #line $LINENO "configure"
  8661. #include "confdefs.h"
  8662. #include <time.h>
  8663. #ifndef tzname /* For SGI. */
  8664. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  8665. #endif
  8666. #ifdef F77_DUMMY_MAIN
  8667. # ifdef __cplusplus
  8668. extern "C"
  8669. # endif
  8670. int F77_DUMMY_MAIN() { return 1; }
  8671. #endif
  8672. int
  8673. main ()
  8674. {
  8675. atoi(*tzname);
  8676. ;
  8677. return 0;
  8678. }
  8679. _ACEOF
  8680. rm -f conftest.$ac_objext conftest$ac_exeext
  8681. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8682. (eval $ac_link) 2>&5
  8683. ac_status=$?
  8684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8685. (exit $ac_status); } &&
  8686. { ac_try='test -s conftest$ac_exeext'
  8687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8688. (eval $ac_try) 2>&5
  8689. ac_status=$?
  8690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8691. (exit $ac_status); }; }; then