configure 370 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME=
  647. PACKAGE_TARNAME=
  648. PACKAGE_VERSION=
  649. PACKAGE_STRING=
  650. PACKAGE_BUGREPORT=
  651. ac_unique_file="configure.ac"
  652. # Factoring default headers for most tests.
  653. ac_includes_default="\
  654. #include <stdio.h>
  655. #ifdef HAVE_SYS_TYPES_H
  656. # include <sys/types.h>
  657. #endif
  658. #ifdef HAVE_SYS_STAT_H
  659. # include <sys/stat.h>
  660. #endif
  661. #ifdef STDC_HEADERS
  662. # include <stdlib.h>
  663. # include <stddef.h>
  664. #else
  665. # ifdef HAVE_STDLIB_H
  666. # include <stdlib.h>
  667. # endif
  668. #endif
  669. #ifdef HAVE_STRING_H
  670. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  671. # include <memory.h>
  672. # endif
  673. # include <string.h>
  674. #endif
  675. #ifdef HAVE_STRINGS_H
  676. # include <strings.h>
  677. #endif
  678. #ifdef HAVE_INTTYPES_H
  679. # include <inttypes.h>
  680. #endif
  681. #ifdef HAVE_STDINT_H
  682. # include <stdint.h>
  683. #endif
  684. #ifdef HAVE_UNISTD_H
  685. # include <unistd.h>
  686. #endif"
  687. ac_subst_vars='LTLIBOBJS
  688. PLUGLIB
  689. HAVE_VISIBILITY
  690. CFLAG_VISIBILITY
  691. OTOOL64
  692. OTOOL
  693. LIPO
  694. NMEDIT
  695. DSYMUTIL
  696. lt_ECHO
  697. RANLIB
  698. STRIP
  699. AR
  700. NM
  701. ac_ct_DUMPBIN
  702. DUMPBIN
  703. LD
  704. FGREP
  705. SED
  706. LIBTOOL
  707. OBJDUMP
  708. DLLTOOL
  709. AS
  710. EGREP
  711. GREP
  712. LN_S
  713. LIBOBJS
  714. RELOCATABLE
  715. host_os
  716. host_vendor
  717. host_cpu
  718. host
  719. build_os
  720. build_vendor
  721. build_cpu
  722. build
  723. INSTALL_DATA
  724. INSTALL_SCRIPT
  725. INSTALL_PROGRAM
  726. CPP
  727. OBJEXT
  728. EXEEXT
  729. ac_ct_CC
  730. CPPFLAGS
  731. LDFLAGS
  732. CFLAGS
  733. CC
  734. VERSION
  735. PACKAGE
  736. SET_MAKE
  737. target_alias
  738. host_alias
  739. build_alias
  740. LIBS
  741. ECHO_T
  742. ECHO_N
  743. ECHO_C
  744. DEFS
  745. mandir
  746. localedir
  747. libdir
  748. psdir
  749. pdfdir
  750. dvidir
  751. htmldir
  752. infodir
  753. docdir
  754. oldincludedir
  755. includedir
  756. localstatedir
  757. sharedstatedir
  758. sysconfdir
  759. datadir
  760. datarootdir
  761. libexecdir
  762. sbindir
  763. bindir
  764. program_transform_name
  765. prefix
  766. exec_prefix
  767. PACKAGE_BUGREPORT
  768. PACKAGE_STRING
  769. PACKAGE_VERSION
  770. PACKAGE_TARNAME
  771. PACKAGE_NAME
  772. PATH_SEPARATOR
  773. SHELL'
  774. ac_subst_files=''
  775. ac_user_opts='
  776. enable_option_checking
  777. enable_relocatable
  778. enable_shared
  779. enable_static
  780. with_pic
  781. enable_fast_install
  782. with_gnu_ld
  783. enable_libtool_lock
  784. '
  785. ac_precious_vars='build_alias
  786. host_alias
  787. target_alias
  788. CC
  789. CFLAGS
  790. LDFLAGS
  791. LIBS
  792. CPPFLAGS
  793. CPP'
  794. # Initialize some variables set by options.
  795. ac_init_help=
  796. ac_init_version=false
  797. ac_unrecognized_opts=
  798. ac_unrecognized_sep=
  799. # The variables have the same names as the options, with
  800. # dashes changed to underlines.
  801. cache_file=/dev/null
  802. exec_prefix=NONE
  803. no_create=
  804. no_recursion=
  805. prefix=NONE
  806. program_prefix=NONE
  807. program_suffix=NONE
  808. program_transform_name=s,x,x,
  809. silent=
  810. site=
  811. srcdir=
  812. verbose=
  813. x_includes=NONE
  814. x_libraries=NONE
  815. # Installation directory options.
  816. # These are left unexpanded so users can "make install exec_prefix=/foo"
  817. # and all the variables that are supposed to be based on exec_prefix
  818. # by default will actually change.
  819. # Use braces instead of parens because sh, perl, etc. also accept them.
  820. # (The list follows the same order as the GNU Coding Standards.)
  821. bindir='${exec_prefix}/bin'
  822. sbindir='${exec_prefix}/sbin'
  823. libexecdir='${exec_prefix}/libexec'
  824. datarootdir='${prefix}/share'
  825. datadir='${datarootdir}'
  826. sysconfdir='${prefix}/etc'
  827. sharedstatedir='${prefix}/com'
  828. localstatedir='${prefix}/var'
  829. includedir='${prefix}/include'
  830. oldincludedir='/usr/include'
  831. docdir='${datarootdir}/doc/${PACKAGE}'
  832. infodir='${datarootdir}/info'
  833. htmldir='${docdir}'
  834. dvidir='${docdir}'
  835. pdfdir='${docdir}'
  836. psdir='${docdir}'
  837. libdir='${exec_prefix}/lib'
  838. localedir='${datarootdir}/locale'
  839. mandir='${datarootdir}/man'
  840. ac_prev=
  841. ac_dashdash=
  842. for ac_option
  843. do
  844. # If the previous option needs an argument, assign it.
  845. if test -n "$ac_prev"; then
  846. eval $ac_prev=\$ac_option
  847. ac_prev=
  848. continue
  849. fi
  850. case $ac_option in
  851. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  852. *) ac_optarg=yes ;;
  853. esac
  854. # Accept the important Cygnus configure options, so we can diagnose typos.
  855. case $ac_dashdash$ac_option in
  856. --)
  857. ac_dashdash=yes ;;
  858. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  859. ac_prev=bindir ;;
  860. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  861. bindir=$ac_optarg ;;
  862. -build | --build | --buil | --bui | --bu)
  863. ac_prev=build_alias ;;
  864. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  865. build_alias=$ac_optarg ;;
  866. -cache-file | --cache-file | --cache-fil | --cache-fi \
  867. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  868. ac_prev=cache_file ;;
  869. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  870. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  871. cache_file=$ac_optarg ;;
  872. --config-cache | -C)
  873. cache_file=config.cache ;;
  874. -datadir | --datadir | --datadi | --datad)
  875. ac_prev=datadir ;;
  876. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  877. datadir=$ac_optarg ;;
  878. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  879. | --dataroo | --dataro | --datar)
  880. ac_prev=datarootdir ;;
  881. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  882. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  883. datarootdir=$ac_optarg ;;
  884. -disable-* | --disable-*)
  885. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  886. # Reject names that are not valid shell variable names.
  887. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  888. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  889. { (exit 1); exit 1; }; }
  890. ac_useropt_orig=$ac_useropt
  891. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  892. case $ac_user_opts in
  893. *"
  894. "enable_$ac_useropt"
  895. "*) ;;
  896. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  897. ac_unrecognized_sep=', ';;
  898. esac
  899. eval enable_$ac_useropt=no ;;
  900. -docdir | --docdir | --docdi | --doc | --do)
  901. ac_prev=docdir ;;
  902. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  903. docdir=$ac_optarg ;;
  904. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  905. ac_prev=dvidir ;;
  906. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  907. dvidir=$ac_optarg ;;
  908. -enable-* | --enable-*)
  909. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  910. # Reject names that are not valid shell variable names.
  911. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  912. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  913. { (exit 1); exit 1; }; }
  914. ac_useropt_orig=$ac_useropt
  915. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  916. case $ac_user_opts in
  917. *"
  918. "enable_$ac_useropt"
  919. "*) ;;
  920. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  921. ac_unrecognized_sep=', ';;
  922. esac
  923. eval enable_$ac_useropt=\$ac_optarg ;;
  924. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  925. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  926. | --exec | --exe | --ex)
  927. ac_prev=exec_prefix ;;
  928. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  929. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  930. | --exec=* | --exe=* | --ex=*)
  931. exec_prefix=$ac_optarg ;;
  932. -gas | --gas | --ga | --g)
  933. # Obsolete; use --with-gas.
  934. with_gas=yes ;;
  935. -help | --help | --hel | --he | -h)
  936. ac_init_help=long ;;
  937. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  938. ac_init_help=recursive ;;
  939. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  940. ac_init_help=short ;;
  941. -host | --host | --hos | --ho)
  942. ac_prev=host_alias ;;
  943. -host=* | --host=* | --hos=* | --ho=*)
  944. host_alias=$ac_optarg ;;
  945. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  946. ac_prev=htmldir ;;
  947. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  948. | --ht=*)
  949. htmldir=$ac_optarg ;;
  950. -includedir | --includedir | --includedi | --included | --include \
  951. | --includ | --inclu | --incl | --inc)
  952. ac_prev=includedir ;;
  953. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  954. | --includ=* | --inclu=* | --incl=* | --inc=*)
  955. includedir=$ac_optarg ;;
  956. -infodir | --infodir | --infodi | --infod | --info | --inf)
  957. ac_prev=infodir ;;
  958. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  959. infodir=$ac_optarg ;;
  960. -libdir | --libdir | --libdi | --libd)
  961. ac_prev=libdir ;;
  962. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  963. libdir=$ac_optarg ;;
  964. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  965. | --libexe | --libex | --libe)
  966. ac_prev=libexecdir ;;
  967. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  968. | --libexe=* | --libex=* | --libe=*)
  969. libexecdir=$ac_optarg ;;
  970. -localedir | --localedir | --localedi | --localed | --locale)
  971. ac_prev=localedir ;;
  972. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  973. localedir=$ac_optarg ;;
  974. -localstatedir | --localstatedir | --localstatedi | --localstated \
  975. | --localstate | --localstat | --localsta | --localst | --locals)
  976. ac_prev=localstatedir ;;
  977. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  978. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  979. localstatedir=$ac_optarg ;;
  980. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  981. ac_prev=mandir ;;
  982. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  983. mandir=$ac_optarg ;;
  984. -nfp | --nfp | --nf)
  985. # Obsolete; use --without-fp.
  986. with_fp=no ;;
  987. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  988. | --no-cr | --no-c | -n)
  989. no_create=yes ;;
  990. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  991. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  992. no_recursion=yes ;;
  993. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  994. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  995. | --oldin | --oldi | --old | --ol | --o)
  996. ac_prev=oldincludedir ;;
  997. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  998. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  999. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1000. oldincludedir=$ac_optarg ;;
  1001. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1002. ac_prev=prefix ;;
  1003. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1004. prefix=$ac_optarg ;;
  1005. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1006. | --program-pre | --program-pr | --program-p)
  1007. ac_prev=program_prefix ;;
  1008. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1009. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1010. program_prefix=$ac_optarg ;;
  1011. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1012. | --program-suf | --program-su | --program-s)
  1013. ac_prev=program_suffix ;;
  1014. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1015. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1016. program_suffix=$ac_optarg ;;
  1017. -program-transform-name | --program-transform-name \
  1018. | --program-transform-nam | --program-transform-na \
  1019. | --program-transform-n | --program-transform- \
  1020. | --program-transform | --program-transfor \
  1021. | --program-transfo | --program-transf \
  1022. | --program-trans | --program-tran \
  1023. | --progr-tra | --program-tr | --program-t)
  1024. ac_prev=program_transform_name ;;
  1025. -program-transform-name=* | --program-transform-name=* \
  1026. | --program-transform-nam=* | --program-transform-na=* \
  1027. | --program-transform-n=* | --program-transform-=* \
  1028. | --program-transform=* | --program-transfor=* \
  1029. | --program-transfo=* | --program-transf=* \
  1030. | --program-trans=* | --program-tran=* \
  1031. | --progr-tra=* | --program-tr=* | --program-t=*)
  1032. program_transform_name=$ac_optarg ;;
  1033. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1034. ac_prev=pdfdir ;;
  1035. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1036. pdfdir=$ac_optarg ;;
  1037. -psdir | --psdir | --psdi | --psd | --ps)
  1038. ac_prev=psdir ;;
  1039. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1040. psdir=$ac_optarg ;;
  1041. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1042. | -silent | --silent | --silen | --sile | --sil)
  1043. silent=yes ;;
  1044. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1045. ac_prev=sbindir ;;
  1046. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1047. | --sbi=* | --sb=*)
  1048. sbindir=$ac_optarg ;;
  1049. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1050. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1051. | --sharedst | --shareds | --shared | --share | --shar \
  1052. | --sha | --sh)
  1053. ac_prev=sharedstatedir ;;
  1054. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1055. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1056. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1057. | --sha=* | --sh=*)
  1058. sharedstatedir=$ac_optarg ;;
  1059. -site | --site | --sit)
  1060. ac_prev=site ;;
  1061. -site=* | --site=* | --sit=*)
  1062. site=$ac_optarg ;;
  1063. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1064. ac_prev=srcdir ;;
  1065. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1066. srcdir=$ac_optarg ;;
  1067. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1068. | --syscon | --sysco | --sysc | --sys | --sy)
  1069. ac_prev=sysconfdir ;;
  1070. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1071. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1072. sysconfdir=$ac_optarg ;;
  1073. -target | --target | --targe | --targ | --tar | --ta | --t)
  1074. ac_prev=target_alias ;;
  1075. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1076. target_alias=$ac_optarg ;;
  1077. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1078. verbose=yes ;;
  1079. -version | --version | --versio | --versi | --vers | -V)
  1080. ac_init_version=: ;;
  1081. -with-* | --with-*)
  1082. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1083. # Reject names that are not valid shell variable names.
  1084. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1085. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1086. { (exit 1); exit 1; }; }
  1087. ac_useropt_orig=$ac_useropt
  1088. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1089. case $ac_user_opts in
  1090. *"
  1091. "with_$ac_useropt"
  1092. "*) ;;
  1093. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1094. ac_unrecognized_sep=', ';;
  1095. esac
  1096. eval with_$ac_useropt=\$ac_optarg ;;
  1097. -without-* | --without-*)
  1098. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1099. # Reject names that are not valid shell variable names.
  1100. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1101. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1102. { (exit 1); exit 1; }; }
  1103. ac_useropt_orig=$ac_useropt
  1104. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1105. case $ac_user_opts in
  1106. *"
  1107. "with_$ac_useropt"
  1108. "*) ;;
  1109. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1110. ac_unrecognized_sep=', ';;
  1111. esac
  1112. eval with_$ac_useropt=no ;;
  1113. --x)
  1114. # Obsolete; use --with-x.
  1115. with_x=yes ;;
  1116. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1117. | --x-incl | --x-inc | --x-in | --x-i)
  1118. ac_prev=x_includes ;;
  1119. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1120. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1121. x_includes=$ac_optarg ;;
  1122. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1123. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1124. ac_prev=x_libraries ;;
  1125. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1126. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1127. x_libraries=$ac_optarg ;;
  1128. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1129. Try \`$0 --help' for more information." >&2
  1130. { (exit 1); exit 1; }; }
  1131. ;;
  1132. *=*)
  1133. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1134. # Reject names that are not valid shell variable names.
  1135. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1136. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1137. { (exit 1); exit 1; }; }
  1138. eval $ac_envvar=\$ac_optarg
  1139. export $ac_envvar ;;
  1140. *)
  1141. # FIXME: should be removed in autoconf 3.0.
  1142. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1143. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1144. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1145. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1146. ;;
  1147. esac
  1148. done
  1149. if test -n "$ac_prev"; then
  1150. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1151. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1152. { (exit 1); exit 1; }; }
  1153. fi
  1154. if test -n "$ac_unrecognized_opts"; then
  1155. case $enable_option_checking in
  1156. no) ;;
  1157. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1158. { (exit 1); exit 1; }; } ;;
  1159. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1160. esac
  1161. fi
  1162. # Check all directory arguments for consistency.
  1163. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1164. datadir sysconfdir sharedstatedir localstatedir includedir \
  1165. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1166. libdir localedir mandir
  1167. do
  1168. eval ac_val=\$$ac_var
  1169. # Remove trailing slashes.
  1170. case $ac_val in
  1171. */ )
  1172. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1173. eval $ac_var=\$ac_val;;
  1174. esac
  1175. # Be sure to have absolute directory names.
  1176. case $ac_val in
  1177. [\\/$]* | ?:[\\/]* ) continue;;
  1178. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1179. esac
  1180. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1181. { (exit 1); exit 1; }; }
  1182. done
  1183. # There might be people who depend on the old broken behavior: `$host'
  1184. # used to hold the argument of --host etc.
  1185. # FIXME: To remove some day.
  1186. build=$build_alias
  1187. host=$host_alias
  1188. target=$target_alias
  1189. # FIXME: To remove some day.
  1190. if test "x$host_alias" != x; then
  1191. if test "x$build_alias" = x; then
  1192. cross_compiling=maybe
  1193. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1194. If a cross compiler is detected then cross compile mode will be used." >&2
  1195. elif test "x$build_alias" != "x$host_alias"; then
  1196. cross_compiling=yes
  1197. fi
  1198. fi
  1199. ac_tool_prefix=
  1200. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1201. test "$silent" = yes && exec 6>/dev/null
  1202. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1203. ac_ls_di=`ls -di .` &&
  1204. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1205. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1206. { (exit 1); exit 1; }; }
  1207. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1208. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1209. { (exit 1); exit 1; }; }
  1210. # Find the source files, if location was not specified.
  1211. if test -z "$srcdir"; then
  1212. ac_srcdir_defaulted=yes
  1213. # Try the directory containing this script, then the parent directory.
  1214. ac_confdir=`$as_dirname -- "$as_myself" ||
  1215. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1216. X"$as_myself" : 'X\(//\)[^/]' \| \
  1217. X"$as_myself" : 'X\(//\)$' \| \
  1218. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1219. $as_echo X"$as_myself" |
  1220. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1221. s//\1/
  1222. q
  1223. }
  1224. /^X\(\/\/\)[^/].*/{
  1225. s//\1/
  1226. q
  1227. }
  1228. /^X\(\/\/\)$/{
  1229. s//\1/
  1230. q
  1231. }
  1232. /^X\(\/\).*/{
  1233. s//\1/
  1234. q
  1235. }
  1236. s/.*/./; q'`
  1237. srcdir=$ac_confdir
  1238. if test ! -r "$srcdir/$ac_unique_file"; then
  1239. srcdir=..
  1240. fi
  1241. else
  1242. ac_srcdir_defaulted=no
  1243. fi
  1244. if test ! -r "$srcdir/$ac_unique_file"; then
  1245. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1246. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1247. { (exit 1); exit 1; }; }
  1248. fi
  1249. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1250. ac_abs_confdir=`(
  1251. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1252. { (exit 1); exit 1; }; }
  1253. pwd)`
  1254. # When building in place, set srcdir=.
  1255. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1256. srcdir=.
  1257. fi
  1258. # Remove unnecessary trailing slashes from srcdir.
  1259. # Double slashes in file names in object file debugging info
  1260. # mess up M-x gdb in Emacs.
  1261. case $srcdir in
  1262. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1263. esac
  1264. for ac_var in $ac_precious_vars; do
  1265. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1266. eval ac_env_${ac_var}_value=\$${ac_var}
  1267. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1268. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1269. done
  1270. #
  1271. # Report the --help message.
  1272. #
  1273. if test "$ac_init_help" = "long"; then
  1274. # Omit some internal or obsolete options to make the list less imposing.
  1275. # This message is too long to be a string in the A/UX 3.1 sh.
  1276. cat <<_ACEOF
  1277. \`configure' configures this package to adapt to many kinds of systems.
  1278. Usage: $0 [OPTION]... [VAR=VALUE]...
  1279. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1280. VAR=VALUE. See below for descriptions of some of the useful variables.
  1281. Defaults for the options are specified in brackets.
  1282. Configuration:
  1283. -h, --help display this help and exit
  1284. --help=short display options specific to this package
  1285. --help=recursive display the short help of all the included packages
  1286. -V, --version display version information and exit
  1287. -q, --quiet, --silent do not print \`checking...' messages
  1288. --cache-file=FILE cache test results in FILE [disabled]
  1289. -C, --config-cache alias for \`--cache-file=config.cache'
  1290. -n, --no-create do not create output files
  1291. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1292. Installation directories:
  1293. --prefix=PREFIX install architecture-independent files in PREFIX
  1294. [$ac_default_prefix]
  1295. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1296. [PREFIX]
  1297. By default, \`make install' will install all the files in
  1298. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1299. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1300. for instance \`--prefix=\$HOME'.
  1301. For better control, use the options below.
  1302. Fine tuning of the installation directories:
  1303. --bindir=DIR user executables [EPREFIX/bin]
  1304. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1305. --libexecdir=DIR program executables [EPREFIX/libexec]
  1306. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1307. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1308. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1309. --libdir=DIR object code libraries [EPREFIX/lib]
  1310. --includedir=DIR C header files [PREFIX/include]
  1311. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1312. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1313. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1314. --infodir=DIR info documentation [DATAROOTDIR/info]
  1315. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1316. --mandir=DIR man documentation [DATAROOTDIR/man]
  1317. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1318. --htmldir=DIR html documentation [DOCDIR]
  1319. --dvidir=DIR dvi documentation [DOCDIR]
  1320. --pdfdir=DIR pdf documentation [DOCDIR]
  1321. --psdir=DIR ps documentation [DOCDIR]
  1322. _ACEOF
  1323. cat <<\_ACEOF
  1324. System types:
  1325. --build=BUILD configure for building on BUILD [guessed]
  1326. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1327. _ACEOF
  1328. fi
  1329. if test -n "$ac_init_help"; then
  1330. cat <<\_ACEOF
  1331. Optional Features:
  1332. --disable-option-checking ignore unrecognized --enable/--with options
  1333. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1334. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1335. --enable-relocatable install a package that can be moved in the filesystem
  1336. --enable-shared[=PKGS] build shared libraries [default=yes]
  1337. --enable-static[=PKGS] build static libraries [default=yes]
  1338. --enable-fast-install[=PKGS]
  1339. optimize for fast installation [default=yes]
  1340. --disable-libtool-lock avoid locking (might break parallel builds)
  1341. Optional Packages:
  1342. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1343. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1344. --with-pic try to use only PIC/non-PIC objects [default=use
  1345. both]
  1346. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1347. Some influential environment variables:
  1348. CC C compiler command
  1349. CFLAGS C compiler flags
  1350. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1351. nonstandard directory <lib dir>
  1352. LIBS libraries to pass to the linker, e.g. -l<library>
  1353. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1354. you have headers in a nonstandard directory <include dir>
  1355. CPP C preprocessor
  1356. Use these variables to override the choices made by `configure' or to help
  1357. it to find libraries and programs with nonstandard names/locations.
  1358. _ACEOF
  1359. ac_status=$?
  1360. fi
  1361. if test "$ac_init_help" = "recursive"; then
  1362. # If there are subdirs, report their specific --help.
  1363. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1364. test -d "$ac_dir" ||
  1365. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1366. continue
  1367. ac_builddir=.
  1368. case "$ac_dir" in
  1369. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1370. *)
  1371. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1372. # A ".." for each directory in $ac_dir_suffix.
  1373. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1374. case $ac_top_builddir_sub in
  1375. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1376. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1377. esac ;;
  1378. esac
  1379. ac_abs_top_builddir=$ac_pwd
  1380. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1381. # for backward compatibility:
  1382. ac_top_builddir=$ac_top_build_prefix
  1383. case $srcdir in
  1384. .) # We are building in place.
  1385. ac_srcdir=.
  1386. ac_top_srcdir=$ac_top_builddir_sub
  1387. ac_abs_top_srcdir=$ac_pwd ;;
  1388. [\\/]* | ?:[\\/]* ) # Absolute name.
  1389. ac_srcdir=$srcdir$ac_dir_suffix;
  1390. ac_top_srcdir=$srcdir
  1391. ac_abs_top_srcdir=$srcdir ;;
  1392. *) # Relative name.
  1393. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1394. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1395. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1396. esac
  1397. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1398. cd "$ac_dir" || { ac_status=$?; continue; }
  1399. # Check for guested configure.
  1400. if test -f "$ac_srcdir/configure.gnu"; then
  1401. echo &&
  1402. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1403. elif test -f "$ac_srcdir/configure"; then
  1404. echo &&
  1405. $SHELL "$ac_srcdir/configure" --help=recursive
  1406. else
  1407. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1408. fi || ac_status=$?
  1409. cd "$ac_pwd" || { ac_status=$?; break; }
  1410. done
  1411. fi
  1412. test -n "$ac_init_help" && exit $ac_status
  1413. if $ac_init_version; then
  1414. cat <<\_ACEOF
  1415. configure
  1416. generated by GNU Autoconf 2.63
  1417. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1418. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1419. This configure script is free software; the Free Software Foundation
  1420. gives unlimited permission to copy, distribute and modify it.
  1421. _ACEOF
  1422. exit
  1423. fi
  1424. cat >config.log <<_ACEOF
  1425. This file contains any messages produced by compilers while
  1426. running configure, to aid debugging if configure makes a mistake.
  1427. It was created by $as_me, which was
  1428. generated by GNU Autoconf 2.63. Invocation command line was
  1429. $ $0 $@
  1430. _ACEOF
  1431. exec 5>>config.log
  1432. {
  1433. cat <<_ASUNAME
  1434. ## --------- ##
  1435. ## Platform. ##
  1436. ## --------- ##
  1437. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1438. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1439. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1440. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1441. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1442. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1443. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1444. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1445. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1446. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1447. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1448. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1449. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1450. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1451. _ASUNAME
  1452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1453. for as_dir in $PATH
  1454. do
  1455. IFS=$as_save_IFS
  1456. test -z "$as_dir" && as_dir=.
  1457. $as_echo "PATH: $as_dir"
  1458. done
  1459. IFS=$as_save_IFS
  1460. } >&5
  1461. cat >&5 <<_ACEOF
  1462. ## ----------- ##
  1463. ## Core tests. ##
  1464. ## ----------- ##
  1465. _ACEOF
  1466. # Keep a trace of the command line.
  1467. # Strip out --no-create and --no-recursion so they do not pile up.
  1468. # Strip out --silent because we don't want to record it for future runs.
  1469. # Also quote any args containing shell meta-characters.
  1470. # Make two passes to allow for proper duplicate-argument suppression.
  1471. ac_configure_args=
  1472. ac_configure_args0=
  1473. ac_configure_args1=
  1474. ac_must_keep_next=false
  1475. for ac_pass in 1 2
  1476. do
  1477. for ac_arg
  1478. do
  1479. case $ac_arg in
  1480. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1481. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1482. | -silent | --silent | --silen | --sile | --sil)
  1483. continue ;;
  1484. *\'*)
  1485. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1486. esac
  1487. case $ac_pass in
  1488. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1489. 2)
  1490. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1491. if test $ac_must_keep_next = true; then
  1492. ac_must_keep_next=false # Got value, back to normal.
  1493. else
  1494. case $ac_arg in
  1495. *=* | --config-cache | -C | -disable-* | --disable-* \
  1496. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1497. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1498. | -with-* | --with-* | -without-* | --without-* | --x)
  1499. case "$ac_configure_args0 " in
  1500. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1501. esac
  1502. ;;
  1503. -* ) ac_must_keep_next=true ;;
  1504. esac
  1505. fi
  1506. ac_configure_args="$ac_configure_args '$ac_arg'"
  1507. ;;
  1508. esac
  1509. done
  1510. done
  1511. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1512. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1513. # When interrupted or exit'd, cleanup temporary files, and complete
  1514. # config.log. We remove comments because anyway the quotes in there
  1515. # would cause problems or look ugly.
  1516. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1517. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1518. trap 'exit_status=$?
  1519. # Save into config.log some information that might help in debugging.
  1520. {
  1521. echo
  1522. cat <<\_ASBOX
  1523. ## ---------------- ##
  1524. ## Cache variables. ##
  1525. ## ---------------- ##
  1526. _ASBOX
  1527. echo
  1528. # The following way of writing the cache mishandles newlines in values,
  1529. (
  1530. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1531. eval ac_val=\$$ac_var
  1532. case $ac_val in #(
  1533. *${as_nl}*)
  1534. case $ac_var in #(
  1535. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1536. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1537. esac
  1538. case $ac_var in #(
  1539. _ | IFS | as_nl) ;; #(
  1540. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1541. *) $as_unset $ac_var ;;
  1542. esac ;;
  1543. esac
  1544. done
  1545. (set) 2>&1 |
  1546. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1547. *${as_nl}ac_space=\ *)
  1548. sed -n \
  1549. "s/'\''/'\''\\\\'\'''\''/g;
  1550. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1551. ;; #(
  1552. *)
  1553. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1554. ;;
  1555. esac |
  1556. sort
  1557. )
  1558. echo
  1559. cat <<\_ASBOX
  1560. ## ----------------- ##
  1561. ## Output variables. ##
  1562. ## ----------------- ##
  1563. _ASBOX
  1564. echo
  1565. for ac_var in $ac_subst_vars
  1566. do
  1567. eval ac_val=\$$ac_var
  1568. case $ac_val in
  1569. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1570. esac
  1571. $as_echo "$ac_var='\''$ac_val'\''"
  1572. done | sort
  1573. echo
  1574. if test -n "$ac_subst_files"; then
  1575. cat <<\_ASBOX
  1576. ## ------------------- ##
  1577. ## File substitutions. ##
  1578. ## ------------------- ##
  1579. _ASBOX
  1580. echo
  1581. for ac_var in $ac_subst_files
  1582. do
  1583. eval ac_val=\$$ac_var
  1584. case $ac_val in
  1585. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1586. esac
  1587. $as_echo "$ac_var='\''$ac_val'\''"
  1588. done | sort
  1589. echo
  1590. fi
  1591. if test -s confdefs.h; then
  1592. cat <<\_ASBOX
  1593. ## ----------- ##
  1594. ## confdefs.h. ##
  1595. ## ----------- ##
  1596. _ASBOX
  1597. echo
  1598. cat confdefs.h
  1599. echo
  1600. fi
  1601. test "$ac_signal" != 0 &&
  1602. $as_echo "$as_me: caught signal $ac_signal"
  1603. $as_echo "$as_me: exit $exit_status"
  1604. } >&5
  1605. rm -f core *.core core.conftest.* &&
  1606. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1607. exit $exit_status
  1608. ' 0
  1609. for ac_signal in 1 2 13 15; do
  1610. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1611. done
  1612. ac_signal=0
  1613. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1614. rm -f -r conftest* confdefs.h
  1615. # Predefined preprocessor variables.
  1616. cat >>confdefs.h <<_ACEOF
  1617. #define PACKAGE_NAME "$PACKAGE_NAME"
  1618. _ACEOF
  1619. cat >>confdefs.h <<_ACEOF
  1620. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1621. _ACEOF
  1622. cat >>confdefs.h <<_ACEOF
  1623. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1624. _ACEOF
  1625. cat >>confdefs.h <<_ACEOF
  1626. #define PACKAGE_STRING "$PACKAGE_STRING"
  1627. _ACEOF
  1628. cat >>confdefs.h <<_ACEOF
  1629. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1630. _ACEOF
  1631. # Let the site file select an alternate cache file if it wants to.
  1632. # Prefer an explicitly selected file to automatically selected ones.
  1633. ac_site_file1=NONE
  1634. ac_site_file2=NONE
  1635. if test -n "$CONFIG_SITE"; then
  1636. ac_site_file1=$CONFIG_SITE
  1637. elif test "x$prefix" != xNONE; then
  1638. ac_site_file1=$prefix/share/config.site
  1639. ac_site_file2=$prefix/etc/config.site
  1640. else
  1641. ac_site_file1=$ac_default_prefix/share/config.site
  1642. ac_site_file2=$ac_default_prefix/etc/config.site
  1643. fi
  1644. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1645. do
  1646. test "x$ac_site_file" = xNONE && continue
  1647. if test -r "$ac_site_file"; then
  1648. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1649. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1650. sed 's/^/| /' "$ac_site_file" >&5
  1651. . "$ac_site_file"
  1652. fi
  1653. done
  1654. if test -r "$cache_file"; then
  1655. # Some versions of bash will fail to source /dev/null (special
  1656. # files actually), so we avoid doing that.
  1657. if test -f "$cache_file"; then
  1658. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1659. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1660. case $cache_file in
  1661. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1662. *) . "./$cache_file";;
  1663. esac
  1664. fi
  1665. else
  1666. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1667. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1668. >$cache_file
  1669. fi
  1670. # Check that the precious variables saved in the cache have kept the same
  1671. # value.
  1672. ac_cache_corrupted=false
  1673. for ac_var in $ac_precious_vars; do
  1674. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1675. eval ac_new_set=\$ac_env_${ac_var}_set
  1676. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1677. eval ac_new_val=\$ac_env_${ac_var}_value
  1678. case $ac_old_set,$ac_new_set in
  1679. set,)
  1680. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1681. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1682. ac_cache_corrupted=: ;;
  1683. ,set)
  1684. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1685. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1686. ac_cache_corrupted=: ;;
  1687. ,);;
  1688. *)
  1689. if test "x$ac_old_val" != "x$ac_new_val"; then
  1690. # differences in whitespace do not lead to failure.
  1691. ac_old_val_w=`echo x $ac_old_val`
  1692. ac_new_val_w=`echo x $ac_new_val`
  1693. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1694. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1695. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1696. ac_cache_corrupted=:
  1697. else
  1698. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1699. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1700. eval $ac_var=\$ac_old_val
  1701. fi
  1702. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1703. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1704. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1705. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1706. fi;;
  1707. esac
  1708. # Pass precious variables to config.status.
  1709. if test "$ac_new_set" = set; then
  1710. case $ac_new_val in
  1711. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1712. *) ac_arg=$ac_var=$ac_new_val ;;
  1713. esac
  1714. case " $ac_configure_args " in
  1715. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1716. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1717. esac
  1718. fi
  1719. done
  1720. if $ac_cache_corrupted; then
  1721. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1722. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1723. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1724. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1725. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1726. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1727. { (exit 1); exit 1; }; }
  1728. fi
  1729. ac_ext=c
  1730. ac_cpp='$CPP $CPPFLAGS'
  1731. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1732. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1733. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1734. ac_aux_dir=
  1735. for ac_dir in ../build-aux "$srcdir"/../build-aux; do
  1736. if test -f "$ac_dir/install-sh"; then
  1737. ac_aux_dir=$ac_dir
  1738. ac_install_sh="$ac_aux_dir/install-sh -c"
  1739. break
  1740. elif test -f "$ac_dir/install.sh"; then
  1741. ac_aux_dir=$ac_dir
  1742. ac_install_sh="$ac_aux_dir/install.sh -c"
  1743. break
  1744. elif test -f "$ac_dir/shtool"; then
  1745. ac_aux_dir=$ac_dir
  1746. ac_install_sh="$ac_aux_dir/shtool install -c"
  1747. break
  1748. fi
  1749. done
  1750. if test -z "$ac_aux_dir"; then
  1751. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5
  1752. $as_echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;}
  1753. { (exit 1); exit 1; }; }
  1754. fi
  1755. # These three variables are undocumented and unsupported,
  1756. # and are intended to be withdrawn in a future Autoconf release.
  1757. # They can cause serious problems if a builder's source tree is in a directory
  1758. # whose full name contains unusual characters.
  1759. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1760. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1761. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1762. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1763. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  1764. set x ${MAKE-make}
  1765. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1766. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1767. $as_echo_n "(cached) " >&6
  1768. else
  1769. cat >conftest.make <<\_ACEOF
  1770. SHELL = /bin/sh
  1771. all:
  1772. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1773. _ACEOF
  1774. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1775. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1776. *@@@%%%=?*=@@@%%%*)
  1777. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1778. *)
  1779. eval ac_cv_prog_make_${ac_make}_set=no;;
  1780. esac
  1781. rm -f conftest.make
  1782. fi
  1783. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1784. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1785. $as_echo "yes" >&6; }
  1786. SET_MAKE=
  1787. else
  1788. { $as_echo "$as_me:$LINENO: result: no" >&5
  1789. $as_echo "no" >&6; }
  1790. SET_MAKE="MAKE=${MAKE-make}"
  1791. fi
  1792. ac_ext=c
  1793. ac_cpp='$CPP $CPPFLAGS'
  1794. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1795. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1797. if test -n "$ac_tool_prefix"; then
  1798. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1799. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1800. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1801. $as_echo_n "checking for $ac_word... " >&6; }
  1802. if test "${ac_cv_prog_CC+set}" = set; then
  1803. $as_echo_n "(cached) " >&6
  1804. else
  1805. if test -n "$CC"; then
  1806. ac_cv_prog_CC="$CC" # Let the user override the test.
  1807. else
  1808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1809. for as_dir in $PATH
  1810. do
  1811. IFS=$as_save_IFS
  1812. test -z "$as_dir" && as_dir=.
  1813. for ac_exec_ext in '' $ac_executable_extensions; do
  1814. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1815. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1816. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1817. break 2
  1818. fi
  1819. done
  1820. done
  1821. IFS=$as_save_IFS
  1822. fi
  1823. fi
  1824. CC=$ac_cv_prog_CC
  1825. if test -n "$CC"; then
  1826. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  1827. $as_echo "$CC" >&6; }
  1828. else
  1829. { $as_echo "$as_me:$LINENO: result: no" >&5
  1830. $as_echo "no" >&6; }
  1831. fi
  1832. fi
  1833. if test -z "$ac_cv_prog_CC"; then
  1834. ac_ct_CC=$CC
  1835. # Extract the first word of "gcc", so it can be a program name with args.
  1836. set dummy gcc; ac_word=$2
  1837. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1838. $as_echo_n "checking for $ac_word... " >&6; }
  1839. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1840. $as_echo_n "(cached) " >&6
  1841. else
  1842. if test -n "$ac_ct_CC"; then
  1843. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1844. else
  1845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1846. for as_dir in $PATH
  1847. do
  1848. IFS=$as_save_IFS
  1849. test -z "$as_dir" && as_dir=.
  1850. for ac_exec_ext in '' $ac_executable_extensions; do
  1851. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1852. ac_cv_prog_ac_ct_CC="gcc"
  1853. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1854. break 2
  1855. fi
  1856. done
  1857. done
  1858. IFS=$as_save_IFS
  1859. fi
  1860. fi
  1861. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1862. if test -n "$ac_ct_CC"; then
  1863. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1864. $as_echo "$ac_ct_CC" >&6; }
  1865. else
  1866. { $as_echo "$as_me:$LINENO: result: no" >&5
  1867. $as_echo "no" >&6; }
  1868. fi
  1869. if test "x$ac_ct_CC" = x; then
  1870. CC=""
  1871. else
  1872. case $cross_compiling:$ac_tool_warned in
  1873. yes:)
  1874. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1875. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1876. ac_tool_warned=yes ;;
  1877. esac
  1878. CC=$ac_ct_CC
  1879. fi
  1880. else
  1881. CC="$ac_cv_prog_CC"
  1882. fi
  1883. if test -z "$CC"; then
  1884. if test -n "$ac_tool_prefix"; then
  1885. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1886. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1887. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1888. $as_echo_n "checking for $ac_word... " >&6; }
  1889. if test "${ac_cv_prog_CC+set}" = set; then
  1890. $as_echo_n "(cached) " >&6
  1891. else
  1892. if test -n "$CC"; then
  1893. ac_cv_prog_CC="$CC" # Let the user override the test.
  1894. else
  1895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1896. for as_dir in $PATH
  1897. do
  1898. IFS=$as_save_IFS
  1899. test -z "$as_dir" && as_dir=.
  1900. for ac_exec_ext in '' $ac_executable_extensions; do
  1901. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1902. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1903. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1904. break 2
  1905. fi
  1906. done
  1907. done
  1908. IFS=$as_save_IFS
  1909. fi
  1910. fi
  1911. CC=$ac_cv_prog_CC
  1912. if test -n "$CC"; then
  1913. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  1914. $as_echo "$CC" >&6; }
  1915. else
  1916. { $as_echo "$as_me:$LINENO: result: no" >&5
  1917. $as_echo "no" >&6; }
  1918. fi
  1919. fi
  1920. fi
  1921. if test -z "$CC"; then
  1922. # Extract the first word of "cc", so it can be a program name with args.
  1923. set dummy cc; ac_word=$2
  1924. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1925. $as_echo_n "checking for $ac_word... " >&6; }
  1926. if test "${ac_cv_prog_CC+set}" = set; then
  1927. $as_echo_n "(cached) " >&6
  1928. else
  1929. if test -n "$CC"; then
  1930. ac_cv_prog_CC="$CC" # Let the user override the test.
  1931. else
  1932. ac_prog_rejected=no
  1933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1934. for as_dir in $PATH
  1935. do
  1936. IFS=$as_save_IFS
  1937. test -z "$as_dir" && as_dir=.
  1938. for ac_exec_ext in '' $ac_executable_extensions; do
  1939. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1940. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1941. ac_prog_rejected=yes
  1942. continue
  1943. fi
  1944. ac_cv_prog_CC="cc"
  1945. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1946. break 2
  1947. fi
  1948. done
  1949. done
  1950. IFS=$as_save_IFS
  1951. if test $ac_prog_rejected = yes; then
  1952. # We found a bogon in the path, so make sure we never use it.
  1953. set dummy $ac_cv_prog_CC
  1954. shift
  1955. if test $# != 0; then
  1956. # We chose a different compiler from the bogus one.
  1957. # However, it has the same basename, so the bogon will be chosen
  1958. # first if we set CC to just the basename; use the full file name.
  1959. shift
  1960. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1961. fi
  1962. fi
  1963. fi
  1964. fi
  1965. CC=$ac_cv_prog_CC
  1966. if test -n "$CC"; then
  1967. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  1968. $as_echo "$CC" >&6; }
  1969. else
  1970. { $as_echo "$as_me:$LINENO: result: no" >&5
  1971. $as_echo "no" >&6; }
  1972. fi
  1973. fi
  1974. if test -z "$CC"; then
  1975. if test -n "$ac_tool_prefix"; then
  1976. for ac_prog in cl.exe
  1977. do
  1978. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1979. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1980. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1981. $as_echo_n "checking for $ac_word... " >&6; }
  1982. if test "${ac_cv_prog_CC+set}" = set; then
  1983. $as_echo_n "(cached) " >&6
  1984. else
  1985. if test -n "$CC"; then
  1986. ac_cv_prog_CC="$CC" # Let the user override the test.
  1987. else
  1988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1989. for as_dir in $PATH
  1990. do
  1991. IFS=$as_save_IFS
  1992. test -z "$as_dir" && as_dir=.
  1993. for ac_exec_ext in '' $ac_executable_extensions; do
  1994. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1995. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1996. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1997. break 2
  1998. fi
  1999. done
  2000. done
  2001. IFS=$as_save_IFS
  2002. fi
  2003. fi
  2004. CC=$ac_cv_prog_CC
  2005. if test -n "$CC"; then
  2006. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2007. $as_echo "$CC" >&6; }
  2008. else
  2009. { $as_echo "$as_me:$LINENO: result: no" >&5
  2010. $as_echo "no" >&6; }
  2011. fi
  2012. test -n "$CC" && break
  2013. done
  2014. fi
  2015. if test -z "$CC"; then
  2016. ac_ct_CC=$CC
  2017. for ac_prog in cl.exe
  2018. do
  2019. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2020. set dummy $ac_prog; ac_word=$2
  2021. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2022. $as_echo_n "checking for $ac_word... " >&6; }
  2023. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2024. $as_echo_n "(cached) " >&6
  2025. else
  2026. if test -n "$ac_ct_CC"; then
  2027. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2028. else
  2029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2030. for as_dir in $PATH
  2031. do
  2032. IFS=$as_save_IFS
  2033. test -z "$as_dir" && as_dir=.
  2034. for ac_exec_ext in '' $ac_executable_extensions; do
  2035. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2036. ac_cv_prog_ac_ct_CC="$ac_prog"
  2037. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2038. break 2
  2039. fi
  2040. done
  2041. done
  2042. IFS=$as_save_IFS
  2043. fi
  2044. fi
  2045. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2046. if test -n "$ac_ct_CC"; then
  2047. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2048. $as_echo "$ac_ct_CC" >&6; }
  2049. else
  2050. { $as_echo "$as_me:$LINENO: result: no" >&5
  2051. $as_echo "no" >&6; }
  2052. fi
  2053. test -n "$ac_ct_CC" && break
  2054. done
  2055. if test "x$ac_ct_CC" = x; then
  2056. CC=""
  2057. else
  2058. case $cross_compiling:$ac_tool_warned in
  2059. yes:)
  2060. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2061. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2062. ac_tool_warned=yes ;;
  2063. esac
  2064. CC=$ac_ct_CC
  2065. fi
  2066. fi
  2067. fi
  2068. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2070. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2071. See \`config.log' for more details." >&5
  2072. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2073. See \`config.log' for more details." >&2;}
  2074. { (exit 1); exit 1; }; }; }
  2075. # Provide some information about the compiler.
  2076. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2077. set X $ac_compile
  2078. ac_compiler=$2
  2079. { (ac_try="$ac_compiler --version >&5"
  2080. case "(($ac_try" in
  2081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2082. *) ac_try_echo=$ac_try;;
  2083. esac
  2084. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2085. $as_echo "$ac_try_echo") >&5
  2086. (eval "$ac_compiler --version >&5") 2>&5
  2087. ac_status=$?
  2088. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2089. (exit $ac_status); }
  2090. { (ac_try="$ac_compiler -v >&5"
  2091. case "(($ac_try" in
  2092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2093. *) ac_try_echo=$ac_try;;
  2094. esac
  2095. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2096. $as_echo "$ac_try_echo") >&5
  2097. (eval "$ac_compiler -v >&5") 2>&5
  2098. ac_status=$?
  2099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2100. (exit $ac_status); }
  2101. { (ac_try="$ac_compiler -V >&5"
  2102. case "(($ac_try" in
  2103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2104. *) ac_try_echo=$ac_try;;
  2105. esac
  2106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2107. $as_echo "$ac_try_echo") >&5
  2108. (eval "$ac_compiler -V >&5") 2>&5
  2109. ac_status=$?
  2110. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2111. (exit $ac_status); }
  2112. cat >conftest.$ac_ext <<_ACEOF
  2113. /* confdefs.h. */
  2114. _ACEOF
  2115. cat confdefs.h >>conftest.$ac_ext
  2116. cat >>conftest.$ac_ext <<_ACEOF
  2117. /* end confdefs.h. */
  2118. int
  2119. main ()
  2120. {
  2121. ;
  2122. return 0;
  2123. }
  2124. _ACEOF
  2125. ac_clean_files_save=$ac_clean_files
  2126. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2127. # Try to create an executable without -o first, disregard a.out.
  2128. # It will help us diagnose broken compilers, and finding out an intuition
  2129. # of exeext.
  2130. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2131. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2132. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2133. # The possible output files:
  2134. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2135. ac_rmfiles=
  2136. for ac_file in $ac_files
  2137. do
  2138. case $ac_file in
  2139. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2140. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2141. esac
  2142. done
  2143. rm -f $ac_rmfiles
  2144. if { (ac_try="$ac_link_default"
  2145. case "(($ac_try" in
  2146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2147. *) ac_try_echo=$ac_try;;
  2148. esac
  2149. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2150. $as_echo "$ac_try_echo") >&5
  2151. (eval "$ac_link_default") 2>&5
  2152. ac_status=$?
  2153. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2154. (exit $ac_status); }; then
  2155. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2156. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2157. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2158. # so that the user can short-circuit this test for compilers unknown to
  2159. # Autoconf.
  2160. for ac_file in $ac_files ''
  2161. do
  2162. test -f "$ac_file" || continue
  2163. case $ac_file in
  2164. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2165. ;;
  2166. [ab].out )
  2167. # We found the default executable, but exeext='' is most
  2168. # certainly right.
  2169. break;;
  2170. *.* )
  2171. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2172. then :; else
  2173. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2174. fi
  2175. # We set ac_cv_exeext here because the later test for it is not
  2176. # safe: cross compilers may not add the suffix if given an `-o'
  2177. # argument, so we may need to know it at that point already.
  2178. # Even if this section looks crufty: it has the advantage of
  2179. # actually working.
  2180. break;;
  2181. * )
  2182. break;;
  2183. esac
  2184. done
  2185. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2186. else
  2187. ac_file=''
  2188. fi
  2189. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2190. $as_echo "$ac_file" >&6; }
  2191. if test -z "$ac_file"; then
  2192. $as_echo "$as_me: failed program was:" >&5
  2193. sed 's/^/| /' conftest.$ac_ext >&5
  2194. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2195. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2196. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2197. See \`config.log' for more details." >&5
  2198. $as_echo "$as_me: error: C compiler cannot create executables
  2199. See \`config.log' for more details." >&2;}
  2200. { (exit 77); exit 77; }; }; }
  2201. fi
  2202. ac_exeext=$ac_cv_exeext
  2203. # Check that the compiler produces executables we can run. If not, either
  2204. # the compiler is broken, or we cross compile.
  2205. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2206. $as_echo_n "checking whether the C compiler works... " >&6; }
  2207. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2208. # If not cross compiling, check that we can run a simple program.
  2209. if test "$cross_compiling" != yes; then
  2210. if { ac_try='./$ac_file'
  2211. { (case "(($ac_try" in
  2212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2213. *) ac_try_echo=$ac_try;;
  2214. esac
  2215. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2216. $as_echo "$ac_try_echo") >&5
  2217. (eval "$ac_try") 2>&5
  2218. ac_status=$?
  2219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); }; }; then
  2221. cross_compiling=no
  2222. else
  2223. if test "$cross_compiling" = maybe; then
  2224. cross_compiling=yes
  2225. else
  2226. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2227. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2228. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2229. If you meant to cross compile, use \`--host'.
  2230. See \`config.log' for more details." >&5
  2231. $as_echo "$as_me: error: cannot run C compiled programs.
  2232. If you meant to cross compile, use \`--host'.
  2233. See \`config.log' for more details." >&2;}
  2234. { (exit 1); exit 1; }; }; }
  2235. fi
  2236. fi
  2237. fi
  2238. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2239. $as_echo "yes" >&6; }
  2240. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2241. ac_clean_files=$ac_clean_files_save
  2242. # Check that the compiler produces executables we can run. If not, either
  2243. # the compiler is broken, or we cross compile.
  2244. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2245. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2246. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2247. $as_echo "$cross_compiling" >&6; }
  2248. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2249. $as_echo_n "checking for suffix of executables... " >&6; }
  2250. if { (ac_try="$ac_link"
  2251. case "(($ac_try" in
  2252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2253. *) ac_try_echo=$ac_try;;
  2254. esac
  2255. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2256. $as_echo "$ac_try_echo") >&5
  2257. (eval "$ac_link") 2>&5
  2258. ac_status=$?
  2259. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2260. (exit $ac_status); }; then
  2261. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2262. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2263. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2264. # `rm'.
  2265. for ac_file in conftest.exe conftest conftest.*; do
  2266. test -f "$ac_file" || continue
  2267. case $ac_file in
  2268. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2269. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2270. break;;
  2271. * ) break;;
  2272. esac
  2273. done
  2274. else
  2275. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2276. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2277. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2278. See \`config.log' for more details." >&5
  2279. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2280. See \`config.log' for more details." >&2;}
  2281. { (exit 1); exit 1; }; }; }
  2282. fi
  2283. rm -f conftest$ac_cv_exeext
  2284. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2285. $as_echo "$ac_cv_exeext" >&6; }
  2286. rm -f conftest.$ac_ext
  2287. EXEEXT=$ac_cv_exeext
  2288. ac_exeext=$EXEEXT
  2289. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2290. $as_echo_n "checking for suffix of object files... " >&6; }
  2291. if test "${ac_cv_objext+set}" = set; then
  2292. $as_echo_n "(cached) " >&6
  2293. else
  2294. cat >conftest.$ac_ext <<_ACEOF
  2295. /* confdefs.h. */
  2296. _ACEOF
  2297. cat confdefs.h >>conftest.$ac_ext
  2298. cat >>conftest.$ac_ext <<_ACEOF
  2299. /* end confdefs.h. */
  2300. int
  2301. main ()
  2302. {
  2303. ;
  2304. return 0;
  2305. }
  2306. _ACEOF
  2307. rm -f conftest.o conftest.obj
  2308. if { (ac_try="$ac_compile"
  2309. case "(($ac_try" in
  2310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2311. *) ac_try_echo=$ac_try;;
  2312. esac
  2313. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2314. $as_echo "$ac_try_echo") >&5
  2315. (eval "$ac_compile") 2>&5
  2316. ac_status=$?
  2317. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2318. (exit $ac_status); }; then
  2319. for ac_file in conftest.o conftest.obj conftest.*; do
  2320. test -f "$ac_file" || continue;
  2321. case $ac_file in
  2322. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2323. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2324. break;;
  2325. esac
  2326. done
  2327. else
  2328. $as_echo "$as_me: failed program was:" >&5
  2329. sed 's/^/| /' conftest.$ac_ext >&5
  2330. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2331. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2332. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2333. See \`config.log' for more details." >&5
  2334. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2335. See \`config.log' for more details." >&2;}
  2336. { (exit 1); exit 1; }; }; }
  2337. fi
  2338. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2339. fi
  2340. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2341. $as_echo "$ac_cv_objext" >&6; }
  2342. OBJEXT=$ac_cv_objext
  2343. ac_objext=$OBJEXT
  2344. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2345. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2346. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2347. $as_echo_n "(cached) " >&6
  2348. else
  2349. cat >conftest.$ac_ext <<_ACEOF
  2350. /* confdefs.h. */
  2351. _ACEOF
  2352. cat confdefs.h >>conftest.$ac_ext
  2353. cat >>conftest.$ac_ext <<_ACEOF
  2354. /* end confdefs.h. */
  2355. int
  2356. main ()
  2357. {
  2358. #ifndef __GNUC__
  2359. choke me
  2360. #endif
  2361. ;
  2362. return 0;
  2363. }
  2364. _ACEOF
  2365. rm -f conftest.$ac_objext
  2366. if { (ac_try="$ac_compile"
  2367. case "(($ac_try" in
  2368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2369. *) ac_try_echo=$ac_try;;
  2370. esac
  2371. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2372. $as_echo "$ac_try_echo") >&5
  2373. (eval "$ac_compile") 2>conftest.er1
  2374. ac_status=$?
  2375. grep -v '^ *+' conftest.er1 >conftest.err
  2376. rm -f conftest.er1
  2377. cat conftest.err >&5
  2378. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2379. (exit $ac_status); } && {
  2380. test -z "$ac_c_werror_flag" ||
  2381. test ! -s conftest.err
  2382. } && test -s conftest.$ac_objext; then
  2383. ac_compiler_gnu=yes
  2384. else
  2385. $as_echo "$as_me: failed program was:" >&5
  2386. sed 's/^/| /' conftest.$ac_ext >&5
  2387. ac_compiler_gnu=no
  2388. fi
  2389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2390. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2391. fi
  2392. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2393. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2394. if test $ac_compiler_gnu = yes; then
  2395. GCC=yes
  2396. else
  2397. GCC=
  2398. fi
  2399. ac_test_CFLAGS=${CFLAGS+set}
  2400. ac_save_CFLAGS=$CFLAGS
  2401. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2402. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2403. if test "${ac_cv_prog_cc_g+set}" = set; then
  2404. $as_echo_n "(cached) " >&6
  2405. else
  2406. ac_save_c_werror_flag=$ac_c_werror_flag
  2407. ac_c_werror_flag=yes
  2408. ac_cv_prog_cc_g=no
  2409. CFLAGS="-g"
  2410. cat >conftest.$ac_ext <<_ACEOF
  2411. /* confdefs.h. */
  2412. _ACEOF
  2413. cat confdefs.h >>conftest.$ac_ext
  2414. cat >>conftest.$ac_ext <<_ACEOF
  2415. /* end confdefs.h. */
  2416. int
  2417. main ()
  2418. {
  2419. ;
  2420. return 0;
  2421. }
  2422. _ACEOF
  2423. rm -f conftest.$ac_objext
  2424. if { (ac_try="$ac_compile"
  2425. case "(($ac_try" in
  2426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2427. *) ac_try_echo=$ac_try;;
  2428. esac
  2429. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2430. $as_echo "$ac_try_echo") >&5
  2431. (eval "$ac_compile") 2>conftest.er1
  2432. ac_status=$?
  2433. grep -v '^ *+' conftest.er1 >conftest.err
  2434. rm -f conftest.er1
  2435. cat conftest.err >&5
  2436. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2437. (exit $ac_status); } && {
  2438. test -z "$ac_c_werror_flag" ||
  2439. test ! -s conftest.err
  2440. } && test -s conftest.$ac_objext; then
  2441. ac_cv_prog_cc_g=yes
  2442. else
  2443. $as_echo "$as_me: failed program was:" >&5
  2444. sed 's/^/| /' conftest.$ac_ext >&5
  2445. CFLAGS=""
  2446. cat >conftest.$ac_ext <<_ACEOF
  2447. /* confdefs.h. */
  2448. _ACEOF
  2449. cat confdefs.h >>conftest.$ac_ext
  2450. cat >>conftest.$ac_ext <<_ACEOF
  2451. /* end confdefs.h. */
  2452. int
  2453. main ()
  2454. {
  2455. ;
  2456. return 0;
  2457. }
  2458. _ACEOF
  2459. rm -f conftest.$ac_objext
  2460. if { (ac_try="$ac_compile"
  2461. case "(($ac_try" in
  2462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2463. *) ac_try_echo=$ac_try;;
  2464. esac
  2465. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2466. $as_echo "$ac_try_echo") >&5
  2467. (eval "$ac_compile") 2>conftest.er1
  2468. ac_status=$?
  2469. grep -v '^ *+' conftest.er1 >conftest.err
  2470. rm -f conftest.er1
  2471. cat conftest.err >&5
  2472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2473. (exit $ac_status); } && {
  2474. test -z "$ac_c_werror_flag" ||
  2475. test ! -s conftest.err
  2476. } && test -s conftest.$ac_objext; then
  2477. :
  2478. else
  2479. $as_echo "$as_me: failed program was:" >&5
  2480. sed 's/^/| /' conftest.$ac_ext >&5
  2481. ac_c_werror_flag=$ac_save_c_werror_flag
  2482. CFLAGS="-g"
  2483. cat >conftest.$ac_ext <<_ACEOF
  2484. /* confdefs.h. */
  2485. _ACEOF
  2486. cat confdefs.h >>conftest.$ac_ext
  2487. cat >>conftest.$ac_ext <<_ACEOF
  2488. /* end confdefs.h. */
  2489. int
  2490. main ()
  2491. {
  2492. ;
  2493. return 0;
  2494. }
  2495. _ACEOF
  2496. rm -f conftest.$ac_objext
  2497. if { (ac_try="$ac_compile"
  2498. case "(($ac_try" in
  2499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2500. *) ac_try_echo=$ac_try;;
  2501. esac
  2502. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2503. $as_echo "$ac_try_echo") >&5
  2504. (eval "$ac_compile") 2>conftest.er1
  2505. ac_status=$?
  2506. grep -v '^ *+' conftest.er1 >conftest.err
  2507. rm -f conftest.er1
  2508. cat conftest.err >&5
  2509. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2510. (exit $ac_status); } && {
  2511. test -z "$ac_c_werror_flag" ||
  2512. test ! -s conftest.err
  2513. } && test -s conftest.$ac_objext; then
  2514. ac_cv_prog_cc_g=yes
  2515. else
  2516. $as_echo "$as_me: failed program was:" >&5
  2517. sed 's/^/| /' conftest.$ac_ext >&5
  2518. fi
  2519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2520. fi
  2521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2522. fi
  2523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2524. ac_c_werror_flag=$ac_save_c_werror_flag
  2525. fi
  2526. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2527. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2528. if test "$ac_test_CFLAGS" = set; then
  2529. CFLAGS=$ac_save_CFLAGS
  2530. elif test $ac_cv_prog_cc_g = yes; then
  2531. if test "$GCC" = yes; then
  2532. CFLAGS="-g -O2"
  2533. else
  2534. CFLAGS="-g"
  2535. fi
  2536. else
  2537. if test "$GCC" = yes; then
  2538. CFLAGS="-O2"
  2539. else
  2540. CFLAGS=
  2541. fi
  2542. fi
  2543. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2544. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2545. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2546. $as_echo_n "(cached) " >&6
  2547. else
  2548. ac_cv_prog_cc_c89=no
  2549. ac_save_CC=$CC
  2550. cat >conftest.$ac_ext <<_ACEOF
  2551. /* confdefs.h. */
  2552. _ACEOF
  2553. cat confdefs.h >>conftest.$ac_ext
  2554. cat >>conftest.$ac_ext <<_ACEOF
  2555. /* end confdefs.h. */
  2556. #include <stdarg.h>
  2557. #include <stdio.h>
  2558. #include <sys/types.h>
  2559. #include <sys/stat.h>
  2560. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2561. struct buf { int x; };
  2562. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2563. static char *e (p, i)
  2564. char **p;
  2565. int i;
  2566. {
  2567. return p[i];
  2568. }
  2569. static char *f (char * (*g) (char **, int), char **p, ...)
  2570. {
  2571. char *s;
  2572. va_list v;
  2573. va_start (v,p);
  2574. s = g (p, va_arg (v,int));
  2575. va_end (v);
  2576. return s;
  2577. }
  2578. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2579. function prototypes and stuff, but not '\xHH' hex character constants.
  2580. These don't provoke an error unfortunately, instead are silently treated
  2581. as 'x'. The following induces an error, until -std is added to get
  2582. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2583. array size at least. It's necessary to write '\x00'==0 to get something
  2584. that's true only with -std. */
  2585. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2586. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2587. inside strings and character constants. */
  2588. #define FOO(x) 'x'
  2589. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2590. int test (int i, double x);
  2591. struct s1 {int (*f) (int a);};
  2592. struct s2 {int (*f) (double a);};
  2593. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2594. int argc;
  2595. char **argv;
  2596. int
  2597. main ()
  2598. {
  2599. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2600. ;
  2601. return 0;
  2602. }
  2603. _ACEOF
  2604. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2605. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2606. do
  2607. CC="$ac_save_CC $ac_arg"
  2608. rm -f conftest.$ac_objext
  2609. if { (ac_try="$ac_compile"
  2610. case "(($ac_try" in
  2611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2612. *) ac_try_echo=$ac_try;;
  2613. esac
  2614. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2615. $as_echo "$ac_try_echo") >&5
  2616. (eval "$ac_compile") 2>conftest.er1
  2617. ac_status=$?
  2618. grep -v '^ *+' conftest.er1 >conftest.err
  2619. rm -f conftest.er1
  2620. cat conftest.err >&5
  2621. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2622. (exit $ac_status); } && {
  2623. test -z "$ac_c_werror_flag" ||
  2624. test ! -s conftest.err
  2625. } && test -s conftest.$ac_objext; then
  2626. ac_cv_prog_cc_c89=$ac_arg
  2627. else
  2628. $as_echo "$as_me: failed program was:" >&5
  2629. sed 's/^/| /' conftest.$ac_ext >&5
  2630. fi
  2631. rm -f core conftest.err conftest.$ac_objext
  2632. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2633. done
  2634. rm -f conftest.$ac_ext
  2635. CC=$ac_save_CC
  2636. fi
  2637. # AC_CACHE_VAL
  2638. case "x$ac_cv_prog_cc_c89" in
  2639. x)
  2640. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  2641. $as_echo "none needed" >&6; } ;;
  2642. xno)
  2643. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  2644. $as_echo "unsupported" >&6; } ;;
  2645. *)
  2646. CC="$CC $ac_cv_prog_cc_c89"
  2647. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2648. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2649. esac
  2650. ac_ext=c
  2651. ac_cpp='$CPP $CPPFLAGS'
  2652. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2653. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2654. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2655. ac_ext=c
  2656. ac_cpp='$CPP $CPPFLAGS'
  2657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2660. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2661. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2662. # On Suns, sometimes $CPP names a directory.
  2663. if test -n "$CPP" && test -d "$CPP"; then
  2664. CPP=
  2665. fi
  2666. if test -z "$CPP"; then
  2667. if test "${ac_cv_prog_CPP+set}" = set; then
  2668. $as_echo_n "(cached) " >&6
  2669. else
  2670. # Double quotes because CPP needs to be expanded
  2671. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2672. do
  2673. ac_preproc_ok=false
  2674. for ac_c_preproc_warn_flag in '' yes
  2675. do
  2676. # Use a header file that comes with gcc, so configuring glibc
  2677. # with a fresh cross-compiler works.
  2678. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2679. # <limits.h> exists even on freestanding compilers.
  2680. # On the NeXT, cc -E runs the code through the compiler's parser,
  2681. # not just through cpp. "Syntax error" is here to catch this case.
  2682. cat >conftest.$ac_ext <<_ACEOF
  2683. /* confdefs.h. */
  2684. _ACEOF
  2685. cat confdefs.h >>conftest.$ac_ext
  2686. cat >>conftest.$ac_ext <<_ACEOF
  2687. /* end confdefs.h. */
  2688. #ifdef __STDC__
  2689. # include <limits.h>
  2690. #else
  2691. # include <assert.h>
  2692. #endif
  2693. Syntax error
  2694. _ACEOF
  2695. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2696. case "(($ac_try" in
  2697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2698. *) ac_try_echo=$ac_try;;
  2699. esac
  2700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2701. $as_echo "$ac_try_echo") >&5
  2702. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2703. ac_status=$?
  2704. grep -v '^ *+' conftest.er1 >conftest.err
  2705. rm -f conftest.er1
  2706. cat conftest.err >&5
  2707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2708. (exit $ac_status); } >/dev/null && {
  2709. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2710. test ! -s conftest.err
  2711. }; then
  2712. :
  2713. else
  2714. $as_echo "$as_me: failed program was:" >&5
  2715. sed 's/^/| /' conftest.$ac_ext >&5
  2716. # Broken: fails on valid input.
  2717. continue
  2718. fi
  2719. rm -f conftest.err conftest.$ac_ext
  2720. # OK, works on sane cases. Now check whether nonexistent headers
  2721. # can be detected and how.
  2722. cat >conftest.$ac_ext <<_ACEOF
  2723. /* confdefs.h. */
  2724. _ACEOF
  2725. cat confdefs.h >>conftest.$ac_ext
  2726. cat >>conftest.$ac_ext <<_ACEOF
  2727. /* end confdefs.h. */
  2728. #include <ac_nonexistent.h>
  2729. _ACEOF
  2730. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2731. case "(($ac_try" in
  2732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2733. *) ac_try_echo=$ac_try;;
  2734. esac
  2735. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2736. $as_echo "$ac_try_echo") >&5
  2737. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2738. ac_status=$?
  2739. grep -v '^ *+' conftest.er1 >conftest.err
  2740. rm -f conftest.er1
  2741. cat conftest.err >&5
  2742. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2743. (exit $ac_status); } >/dev/null && {
  2744. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2745. test ! -s conftest.err
  2746. }; then
  2747. # Broken: success on invalid input.
  2748. continue
  2749. else
  2750. $as_echo "$as_me: failed program was:" >&5
  2751. sed 's/^/| /' conftest.$ac_ext >&5
  2752. # Passes both tests.
  2753. ac_preproc_ok=:
  2754. break
  2755. fi
  2756. rm -f conftest.err conftest.$ac_ext
  2757. done
  2758. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2759. rm -f conftest.err conftest.$ac_ext
  2760. if $ac_preproc_ok; then
  2761. break
  2762. fi
  2763. done
  2764. ac_cv_prog_CPP=$CPP
  2765. fi
  2766. CPP=$ac_cv_prog_CPP
  2767. else
  2768. ac_cv_prog_CPP=$CPP
  2769. fi
  2770. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  2771. $as_echo "$CPP" >&6; }
  2772. ac_preproc_ok=false
  2773. for ac_c_preproc_warn_flag in '' yes
  2774. do
  2775. # Use a header file that comes with gcc, so configuring glibc
  2776. # with a fresh cross-compiler works.
  2777. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2778. # <limits.h> exists even on freestanding compilers.
  2779. # On the NeXT, cc -E runs the code through the compiler's parser,
  2780. # not just through cpp. "Syntax error" is here to catch this case.
  2781. cat >conftest.$ac_ext <<_ACEOF
  2782. /* confdefs.h. */
  2783. _ACEOF
  2784. cat confdefs.h >>conftest.$ac_ext
  2785. cat >>conftest.$ac_ext <<_ACEOF
  2786. /* end confdefs.h. */
  2787. #ifdef __STDC__
  2788. # include <limits.h>
  2789. #else
  2790. # include <assert.h>
  2791. #endif
  2792. Syntax error
  2793. _ACEOF
  2794. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2795. case "(($ac_try" in
  2796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2797. *) ac_try_echo=$ac_try;;
  2798. esac
  2799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2800. $as_echo "$ac_try_echo") >&5
  2801. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2802. ac_status=$?
  2803. grep -v '^ *+' conftest.er1 >conftest.err
  2804. rm -f conftest.er1
  2805. cat conftest.err >&5
  2806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2807. (exit $ac_status); } >/dev/null && {
  2808. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2809. test ! -s conftest.err
  2810. }; then
  2811. :
  2812. else
  2813. $as_echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815. # Broken: fails on valid input.
  2816. continue
  2817. fi
  2818. rm -f conftest.err conftest.$ac_ext
  2819. # OK, works on sane cases. Now check whether nonexistent headers
  2820. # can be detected and how.
  2821. cat >conftest.$ac_ext <<_ACEOF
  2822. /* confdefs.h. */
  2823. _ACEOF
  2824. cat confdefs.h >>conftest.$ac_ext
  2825. cat >>conftest.$ac_ext <<_ACEOF
  2826. /* end confdefs.h. */
  2827. #include <ac_nonexistent.h>
  2828. _ACEOF
  2829. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2830. case "(($ac_try" in
  2831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2832. *) ac_try_echo=$ac_try;;
  2833. esac
  2834. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2835. $as_echo "$ac_try_echo") >&5
  2836. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2837. ac_status=$?
  2838. grep -v '^ *+' conftest.er1 >conftest.err
  2839. rm -f conftest.er1
  2840. cat conftest.err >&5
  2841. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2842. (exit $ac_status); } >/dev/null && {
  2843. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2844. test ! -s conftest.err
  2845. }; then
  2846. # Broken: success on invalid input.
  2847. continue
  2848. else
  2849. $as_echo "$as_me: failed program was:" >&5
  2850. sed 's/^/| /' conftest.$ac_ext >&5
  2851. # Passes both tests.
  2852. ac_preproc_ok=:
  2853. break
  2854. fi
  2855. rm -f conftest.err conftest.$ac_ext
  2856. done
  2857. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2858. rm -f conftest.err conftest.$ac_ext
  2859. if $ac_preproc_ok; then
  2860. :
  2861. else
  2862. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2863. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2864. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2865. See \`config.log' for more details." >&5
  2866. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2867. See \`config.log' for more details." >&2;}
  2868. { (exit 1); exit 1; }; }; }
  2869. fi
  2870. ac_ext=c
  2871. ac_cpp='$CPP $CPPFLAGS'
  2872. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2873. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2874. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2875. # Find a good install program. We prefer a C program (faster),
  2876. # so one script is as good as another. But avoid the broken or
  2877. # incompatible versions:
  2878. # SysV /etc/install, /usr/sbin/install
  2879. # SunOS /usr/etc/install
  2880. # IRIX /sbin/install
  2881. # AIX /bin/install
  2882. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2883. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2884. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2885. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2886. # OS/2's system install, which has a completely different semantic
  2887. # ./install, which can be erroneously created by make from ./install.sh.
  2888. # Reject install programs that cannot install multiple files.
  2889. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2890. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2891. if test -z "$INSTALL"; then
  2892. if test "${ac_cv_path_install+set}" = set; then
  2893. $as_echo_n "(cached) " >&6
  2894. else
  2895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2896. for as_dir in $PATH
  2897. do
  2898. IFS=$as_save_IFS
  2899. test -z "$as_dir" && as_dir=.
  2900. # Account for people who put trailing slashes in PATH elements.
  2901. case $as_dir/ in
  2902. ./ | .// | /cC/* | \
  2903. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2904. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2905. /usr/ucb/* ) ;;
  2906. *)
  2907. # OSF1 and SCO ODT 3.0 have their own names for install.
  2908. # Don't use installbsd from OSF since it installs stuff as root
  2909. # by default.
  2910. for ac_prog in ginstall scoinst install; do
  2911. for ac_exec_ext in '' $ac_executable_extensions; do
  2912. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2913. if test $ac_prog = install &&
  2914. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2915. # AIX install. It has an incompatible calling convention.
  2916. :
  2917. elif test $ac_prog = install &&
  2918. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2919. # program-specific install script used by HP pwplus--don't use.
  2920. :
  2921. else
  2922. rm -rf conftest.one conftest.two conftest.dir
  2923. echo one > conftest.one
  2924. echo two > conftest.two
  2925. mkdir conftest.dir
  2926. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2927. test -s conftest.one && test -s conftest.two &&
  2928. test -s conftest.dir/conftest.one &&
  2929. test -s conftest.dir/conftest.two
  2930. then
  2931. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2932. break 3
  2933. fi
  2934. fi
  2935. fi
  2936. done
  2937. done
  2938. ;;
  2939. esac
  2940. done
  2941. IFS=$as_save_IFS
  2942. rm -rf conftest.one conftest.two conftest.dir
  2943. fi
  2944. if test "${ac_cv_path_install+set}" = set; then
  2945. INSTALL=$ac_cv_path_install
  2946. else
  2947. # As a last resort, use the slow shell script. Don't cache a
  2948. # value for INSTALL within a source directory, because that will
  2949. # break other packages using the cache if that directory is
  2950. # removed, or if the value is a relative name.
  2951. INSTALL=$ac_install_sh
  2952. fi
  2953. fi
  2954. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2955. $as_echo "$INSTALL" >&6; }
  2956. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2957. # It thinks the first close brace ends the variable substitution.
  2958. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2959. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2960. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2961. # Make sure we can run config.sub.
  2962. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2963. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2964. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2965. { (exit 1); exit 1; }; }
  2966. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2967. $as_echo_n "checking build system type... " >&6; }
  2968. if test "${ac_cv_build+set}" = set; then
  2969. $as_echo_n "(cached) " >&6
  2970. else
  2971. ac_build_alias=$build_alias
  2972. test "x$ac_build_alias" = x &&
  2973. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2974. test "x$ac_build_alias" = x &&
  2975. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2976. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2977. { (exit 1); exit 1; }; }
  2978. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2979. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2980. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2981. { (exit 1); exit 1; }; }
  2982. fi
  2983. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2984. $as_echo "$ac_cv_build" >&6; }
  2985. case $ac_cv_build in
  2986. *-*-*) ;;
  2987. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2988. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2989. { (exit 1); exit 1; }; };;
  2990. esac
  2991. build=$ac_cv_build
  2992. ac_save_IFS=$IFS; IFS='-'
  2993. set x $ac_cv_build
  2994. shift
  2995. build_cpu=$1
  2996. build_vendor=$2
  2997. shift; shift
  2998. # Remember, the first character of IFS is used to create $*,
  2999. # except with old shells:
  3000. build_os=$*
  3001. IFS=$ac_save_IFS
  3002. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3003. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  3004. $as_echo_n "checking host system type... " >&6; }
  3005. if test "${ac_cv_host+set}" = set; then
  3006. $as_echo_n "(cached) " >&6
  3007. else
  3008. if test "x$host_alias" = x; then
  3009. ac_cv_host=$ac_cv_build
  3010. else
  3011. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3012. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3013. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3014. { (exit 1); exit 1; }; }
  3015. fi
  3016. fi
  3017. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3018. $as_echo "$ac_cv_host" >&6; }
  3019. case $ac_cv_host in
  3020. *-*-*) ;;
  3021. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3022. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  3023. { (exit 1); exit 1; }; };;
  3024. esac
  3025. host=$ac_cv_host
  3026. ac_save_IFS=$IFS; IFS='-'
  3027. set x $ac_cv_host
  3028. shift
  3029. host_cpu=$1
  3030. host_vendor=$2
  3031. shift; shift
  3032. # Remember, the first character of IFS is used to create $*,
  3033. # except with old shells:
  3034. host_os=$*
  3035. IFS=$ac_save_IFS
  3036. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3037. { $as_echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
  3038. $as_echo_n "checking whether to activate relocatable installation... " >&6; }
  3039. # Check whether --enable-relocatable was given.
  3040. if test "${enable_relocatable+set}" = set; then
  3041. enableval=$enable_relocatable; if test "$enableval" != no; then
  3042. RELOCATABLE=yes
  3043. else
  3044. RELOCATABLE=no
  3045. fi
  3046. else
  3047. RELOCATABLE=no
  3048. fi
  3049. { $as_echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
  3050. $as_echo "$RELOCATABLE" >&6; }
  3051. if test "X$prefix" = "XNONE"; then
  3052. reloc_final_prefix="$ac_default_prefix"
  3053. else
  3054. reloc_final_prefix="$prefix"
  3055. fi
  3056. cat >>confdefs.h <<_ACEOF
  3057. #define INSTALLPREFIX "${reloc_final_prefix}"
  3058. _ACEOF
  3059. if test $RELOCATABLE = yes; then
  3060. cat >>confdefs.h <<\_ACEOF
  3061. #define ENABLE_RELOCATABLE 1
  3062. _ACEOF
  3063. fi
  3064. if test $RELOCATABLE = yes; then
  3065. case " $LIBOBJS " in
  3066. *" relocatable.$ac_objext "* ) ;;
  3067. *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
  3068. ;;
  3069. esac
  3070. fi
  3071. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3072. $as_echo_n "checking whether ln -s works... " >&6; }
  3073. LN_S=$as_ln_s
  3074. if test "$LN_S" = "ln -s"; then
  3075. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3076. $as_echo "yes" >&6; }
  3077. else
  3078. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3079. $as_echo "no, using $LN_S" >&6; }
  3080. fi
  3081. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3082. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3083. if test "${ac_cv_path_GREP+set}" = set; then
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. if test -z "$GREP"; then
  3087. ac_path_GREP_found=false
  3088. # Loop through the user's path and test for each of PROGNAME-LIST
  3089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3090. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3091. do
  3092. IFS=$as_save_IFS
  3093. test -z "$as_dir" && as_dir=.
  3094. for ac_prog in grep ggrep; do
  3095. for ac_exec_ext in '' $ac_executable_extensions; do
  3096. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3097. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3098. # Check for GNU ac_path_GREP and select it if it is found.
  3099. # Check for GNU $ac_path_GREP
  3100. case `"$ac_path_GREP" --version 2>&1` in
  3101. *GNU*)
  3102. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3103. *)
  3104. ac_count=0
  3105. $as_echo_n 0123456789 >"conftest.in"
  3106. while :
  3107. do
  3108. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3109. mv "conftest.tmp" "conftest.in"
  3110. cp "conftest.in" "conftest.nl"
  3111. $as_echo 'GREP' >> "conftest.nl"
  3112. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3113. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3114. ac_count=`expr $ac_count + 1`
  3115. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3116. # Best one so far, save it but keep looking for a better one
  3117. ac_cv_path_GREP="$ac_path_GREP"
  3118. ac_path_GREP_max=$ac_count
  3119. fi
  3120. # 10*(2^10) chars as input seems more than enough
  3121. test $ac_count -gt 10 && break
  3122. done
  3123. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3124. esac
  3125. $ac_path_GREP_found && break 3
  3126. done
  3127. done
  3128. done
  3129. IFS=$as_save_IFS
  3130. if test -z "$ac_cv_path_GREP"; then
  3131. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3132. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3133. { (exit 1); exit 1; }; }
  3134. fi
  3135. else
  3136. ac_cv_path_GREP=$GREP
  3137. fi
  3138. fi
  3139. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3140. $as_echo "$ac_cv_path_GREP" >&6; }
  3141. GREP="$ac_cv_path_GREP"
  3142. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3143. $as_echo_n "checking for egrep... " >&6; }
  3144. if test "${ac_cv_path_EGREP+set}" = set; then
  3145. $as_echo_n "(cached) " >&6
  3146. else
  3147. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3148. then ac_cv_path_EGREP="$GREP -E"
  3149. else
  3150. if test -z "$EGREP"; then
  3151. ac_path_EGREP_found=false
  3152. # Loop through the user's path and test for each of PROGNAME-LIST
  3153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3154. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3155. do
  3156. IFS=$as_save_IFS
  3157. test -z "$as_dir" && as_dir=.
  3158. for ac_prog in egrep; do
  3159. for ac_exec_ext in '' $ac_executable_extensions; do
  3160. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3161. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3162. # Check for GNU ac_path_EGREP and select it if it is found.
  3163. # Check for GNU $ac_path_EGREP
  3164. case `"$ac_path_EGREP" --version 2>&1` in
  3165. *GNU*)
  3166. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3167. *)
  3168. ac_count=0
  3169. $as_echo_n 0123456789 >"conftest.in"
  3170. while :
  3171. do
  3172. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3173. mv "conftest.tmp" "conftest.in"
  3174. cp "conftest.in" "conftest.nl"
  3175. $as_echo 'EGREP' >> "conftest.nl"
  3176. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3177. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3178. ac_count=`expr $ac_count + 1`
  3179. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3180. # Best one so far, save it but keep looking for a better one
  3181. ac_cv_path_EGREP="$ac_path_EGREP"
  3182. ac_path_EGREP_max=$ac_count
  3183. fi
  3184. # 10*(2^10) chars as input seems more than enough
  3185. test $ac_count -gt 10 && break
  3186. done
  3187. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3188. esac
  3189. $ac_path_EGREP_found && break 3
  3190. done
  3191. done
  3192. done
  3193. IFS=$as_save_IFS
  3194. if test -z "$ac_cv_path_EGREP"; then
  3195. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3196. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3197. { (exit 1); exit 1; }; }
  3198. fi
  3199. else
  3200. ac_cv_path_EGREP=$EGREP
  3201. fi
  3202. fi
  3203. fi
  3204. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3205. $as_echo "$ac_cv_path_EGREP" >&6; }
  3206. EGREP="$ac_cv_path_EGREP"
  3207. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3208. $as_echo_n "checking for ANSI C header files... " >&6; }
  3209. if test "${ac_cv_header_stdc+set}" = set; then
  3210. $as_echo_n "(cached) " >&6
  3211. else
  3212. cat >conftest.$ac_ext <<_ACEOF
  3213. /* confdefs.h. */
  3214. _ACEOF
  3215. cat confdefs.h >>conftest.$ac_ext
  3216. cat >>conftest.$ac_ext <<_ACEOF
  3217. /* end confdefs.h. */
  3218. #include <stdlib.h>
  3219. #include <stdarg.h>
  3220. #include <string.h>
  3221. #include <float.h>
  3222. int
  3223. main ()
  3224. {
  3225. ;
  3226. return 0;
  3227. }
  3228. _ACEOF
  3229. rm -f conftest.$ac_objext
  3230. if { (ac_try="$ac_compile"
  3231. case "(($ac_try" in
  3232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3233. *) ac_try_echo=$ac_try;;
  3234. esac
  3235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3236. $as_echo "$ac_try_echo") >&5
  3237. (eval "$ac_compile") 2>conftest.er1
  3238. ac_status=$?
  3239. grep -v '^ *+' conftest.er1 >conftest.err
  3240. rm -f conftest.er1
  3241. cat conftest.err >&5
  3242. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3243. (exit $ac_status); } && {
  3244. test -z "$ac_c_werror_flag" ||
  3245. test ! -s conftest.err
  3246. } && test -s conftest.$ac_objext; then
  3247. ac_cv_header_stdc=yes
  3248. else
  3249. $as_echo "$as_me: failed program was:" >&5
  3250. sed 's/^/| /' conftest.$ac_ext >&5
  3251. ac_cv_header_stdc=no
  3252. fi
  3253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3254. if test $ac_cv_header_stdc = yes; then
  3255. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3256. cat >conftest.$ac_ext <<_ACEOF
  3257. /* confdefs.h. */
  3258. _ACEOF
  3259. cat confdefs.h >>conftest.$ac_ext
  3260. cat >>conftest.$ac_ext <<_ACEOF
  3261. /* end confdefs.h. */
  3262. #include <string.h>
  3263. _ACEOF
  3264. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3265. $EGREP "memchr" >/dev/null 2>&1; then
  3266. :
  3267. else
  3268. ac_cv_header_stdc=no
  3269. fi
  3270. rm -f conftest*
  3271. fi
  3272. if test $ac_cv_header_stdc = yes; then
  3273. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3274. cat >conftest.$ac_ext <<_ACEOF
  3275. /* confdefs.h. */
  3276. _ACEOF
  3277. cat confdefs.h >>conftest.$ac_ext
  3278. cat >>conftest.$ac_ext <<_ACEOF
  3279. /* end confdefs.h. */
  3280. #include <stdlib.h>
  3281. _ACEOF
  3282. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3283. $EGREP "free" >/dev/null 2>&1; then
  3284. :
  3285. else
  3286. ac_cv_header_stdc=no
  3287. fi
  3288. rm -f conftest*
  3289. fi
  3290. if test $ac_cv_header_stdc = yes; then
  3291. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3292. if test "$cross_compiling" = yes; then
  3293. :
  3294. else
  3295. cat >conftest.$ac_ext <<_ACEOF
  3296. /* confdefs.h. */
  3297. _ACEOF
  3298. cat confdefs.h >>conftest.$ac_ext
  3299. cat >>conftest.$ac_ext <<_ACEOF
  3300. /* end confdefs.h. */
  3301. #include <ctype.h>
  3302. #include <stdlib.h>
  3303. #if ((' ' & 0x0FF) == 0x020)
  3304. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3305. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3306. #else
  3307. # define ISLOWER(c) \
  3308. (('a' <= (c) && (c) <= 'i') \
  3309. || ('j' <= (c) && (c) <= 'r') \
  3310. || ('s' <= (c) && (c) <= 'z'))
  3311. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3312. #endif
  3313. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3314. int
  3315. main ()
  3316. {
  3317. int i;
  3318. for (i = 0; i < 256; i++)
  3319. if (XOR (islower (i), ISLOWER (i))
  3320. || toupper (i) != TOUPPER (i))
  3321. return 2;
  3322. return 0;
  3323. }
  3324. _ACEOF
  3325. rm -f conftest$ac_exeext
  3326. if { (ac_try="$ac_link"
  3327. case "(($ac_try" in
  3328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3329. *) ac_try_echo=$ac_try;;
  3330. esac
  3331. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3332. $as_echo "$ac_try_echo") >&5
  3333. (eval "$ac_link") 2>&5
  3334. ac_status=$?
  3335. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3336. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3337. { (case "(($ac_try" in
  3338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3339. *) ac_try_echo=$ac_try;;
  3340. esac
  3341. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3342. $as_echo "$ac_try_echo") >&5
  3343. (eval "$ac_try") 2>&5
  3344. ac_status=$?
  3345. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3346. (exit $ac_status); }; }; then
  3347. :
  3348. else
  3349. $as_echo "$as_me: program exited with status $ac_status" >&5
  3350. $as_echo "$as_me: failed program was:" >&5
  3351. sed 's/^/| /' conftest.$ac_ext >&5
  3352. ( exit $ac_status )
  3353. ac_cv_header_stdc=no
  3354. fi
  3355. rm -rf conftest.dSYM
  3356. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3357. fi
  3358. fi
  3359. fi
  3360. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3361. $as_echo "$ac_cv_header_stdc" >&6; }
  3362. if test $ac_cv_header_stdc = yes; then
  3363. cat >>confdefs.h <<\_ACEOF
  3364. #define STDC_HEADERS 1
  3365. _ACEOF
  3366. fi
  3367. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3368. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3369. inttypes.h stdint.h unistd.h
  3370. do
  3371. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3372. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  3373. $as_echo_n "checking for $ac_header... " >&6; }
  3374. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3375. $as_echo_n "(cached) " >&6
  3376. else
  3377. cat >conftest.$ac_ext <<_ACEOF
  3378. /* confdefs.h. */
  3379. _ACEOF
  3380. cat confdefs.h >>conftest.$ac_ext
  3381. cat >>conftest.$ac_ext <<_ACEOF
  3382. /* end confdefs.h. */
  3383. $ac_includes_default
  3384. #include <$ac_header>
  3385. _ACEOF
  3386. rm -f conftest.$ac_objext
  3387. if { (ac_try="$ac_compile"
  3388. case "(($ac_try" in
  3389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3390. *) ac_try_echo=$ac_try;;
  3391. esac
  3392. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3393. $as_echo "$ac_try_echo") >&5
  3394. (eval "$ac_compile") 2>conftest.er1
  3395. ac_status=$?
  3396. grep -v '^ *+' conftest.er1 >conftest.err
  3397. rm -f conftest.er1
  3398. cat conftest.err >&5
  3399. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3400. (exit $ac_status); } && {
  3401. test -z "$ac_c_werror_flag" ||
  3402. test ! -s conftest.err
  3403. } && test -s conftest.$ac_objext; then
  3404. eval "$as_ac_Header=yes"
  3405. else
  3406. $as_echo "$as_me: failed program was:" >&5
  3407. sed 's/^/| /' conftest.$ac_ext >&5
  3408. eval "$as_ac_Header=no"
  3409. fi
  3410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3411. fi
  3412. ac_res=`eval 'as_val=${'$as_ac_Header'}
  3413. $as_echo "$as_val"'`
  3414. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  3415. $as_echo "$ac_res" >&6; }
  3416. as_val=`eval 'as_val=${'$as_ac_Header'}
  3417. $as_echo "$as_val"'`
  3418. if test "x$as_val" = x""yes; then
  3419. cat >>confdefs.h <<_ACEOF
  3420. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3421. _ACEOF
  3422. fi
  3423. done
  3424. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3425. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3426. $as_echo_n "checking for minix/config.h... " >&6; }
  3427. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3428. $as_echo_n "(cached) " >&6
  3429. fi
  3430. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3431. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3432. else
  3433. # Is the header compilable?
  3434. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  3435. $as_echo_n "checking minix/config.h usability... " >&6; }
  3436. cat >conftest.$ac_ext <<_ACEOF
  3437. /* confdefs.h. */
  3438. _ACEOF
  3439. cat confdefs.h >>conftest.$ac_ext
  3440. cat >>conftest.$ac_ext <<_ACEOF
  3441. /* end confdefs.h. */
  3442. $ac_includes_default
  3443. #include <minix/config.h>
  3444. _ACEOF
  3445. rm -f conftest.$ac_objext
  3446. if { (ac_try="$ac_compile"
  3447. case "(($ac_try" in
  3448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3449. *) ac_try_echo=$ac_try;;
  3450. esac
  3451. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3452. $as_echo "$ac_try_echo") >&5
  3453. (eval "$ac_compile") 2>conftest.er1
  3454. ac_status=$?
  3455. grep -v '^ *+' conftest.er1 >conftest.err
  3456. rm -f conftest.er1
  3457. cat conftest.err >&5
  3458. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3459. (exit $ac_status); } && {
  3460. test -z "$ac_c_werror_flag" ||
  3461. test ! -s conftest.err
  3462. } && test -s conftest.$ac_objext; then
  3463. ac_header_compiler=yes
  3464. else
  3465. $as_echo "$as_me: failed program was:" >&5
  3466. sed 's/^/| /' conftest.$ac_ext >&5
  3467. ac_header_compiler=no
  3468. fi
  3469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3470. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3471. $as_echo "$ac_header_compiler" >&6; }
  3472. # Is the header present?
  3473. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  3474. $as_echo_n "checking minix/config.h presence... " >&6; }
  3475. cat >conftest.$ac_ext <<_ACEOF
  3476. /* confdefs.h. */
  3477. _ACEOF
  3478. cat confdefs.h >>conftest.$ac_ext
  3479. cat >>conftest.$ac_ext <<_ACEOF
  3480. /* end confdefs.h. */
  3481. #include <minix/config.h>
  3482. _ACEOF
  3483. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3484. case "(($ac_try" in
  3485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3486. *) ac_try_echo=$ac_try;;
  3487. esac
  3488. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3489. $as_echo "$ac_try_echo") >&5
  3490. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3491. ac_status=$?
  3492. grep -v '^ *+' conftest.er1 >conftest.err
  3493. rm -f conftest.er1
  3494. cat conftest.err >&5
  3495. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3496. (exit $ac_status); } >/dev/null && {
  3497. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3498. test ! -s conftest.err
  3499. }; then
  3500. ac_header_preproc=yes
  3501. else
  3502. $as_echo "$as_me: failed program was:" >&5
  3503. sed 's/^/| /' conftest.$ac_ext >&5
  3504. ac_header_preproc=no
  3505. fi
  3506. rm -f conftest.err conftest.$ac_ext
  3507. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3508. $as_echo "$ac_header_preproc" >&6; }
  3509. # So? What about this header?
  3510. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3511. yes:no: )
  3512. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3513. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3514. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  3515. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  3516. ac_header_preproc=yes
  3517. ;;
  3518. no:yes:* )
  3519. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  3520. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3521. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3522. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3523. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3524. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3525. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3526. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3527. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3528. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3529. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3530. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3531. ;;
  3532. esac
  3533. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3534. $as_echo_n "checking for minix/config.h... " >&6; }
  3535. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3536. $as_echo_n "(cached) " >&6
  3537. else
  3538. ac_cv_header_minix_config_h=$ac_header_preproc
  3539. fi
  3540. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3541. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3542. fi
  3543. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  3544. MINIX=yes
  3545. else
  3546. MINIX=
  3547. fi
  3548. if test "$MINIX" = yes; then
  3549. cat >>confdefs.h <<\_ACEOF
  3550. #define _POSIX_SOURCE 1
  3551. _ACEOF
  3552. cat >>confdefs.h <<\_ACEOF
  3553. #define _POSIX_1_SOURCE 2
  3554. _ACEOF
  3555. cat >>confdefs.h <<\_ACEOF
  3556. #define _MINIX 1
  3557. _ACEOF
  3558. fi
  3559. case "$host_os" in
  3560. hpux*)
  3561. cat >>confdefs.h <<\_ACEOF
  3562. #define _XOPEN_SOURCE 500
  3563. _ACEOF
  3564. ;;
  3565. esac
  3566. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  3567. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3568. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  3569. $as_echo_n "(cached) " >&6
  3570. else
  3571. cat >conftest.$ac_ext <<_ACEOF
  3572. /* confdefs.h. */
  3573. _ACEOF
  3574. cat confdefs.h >>conftest.$ac_ext
  3575. cat >>conftest.$ac_ext <<_ACEOF
  3576. /* end confdefs.h. */
  3577. # define __EXTENSIONS__ 1
  3578. $ac_includes_default
  3579. int
  3580. main ()
  3581. {
  3582. ;
  3583. return 0;
  3584. }
  3585. _ACEOF
  3586. rm -f conftest.$ac_objext
  3587. if { (ac_try="$ac_compile"
  3588. case "(($ac_try" in
  3589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3590. *) ac_try_echo=$ac_try;;
  3591. esac
  3592. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3593. $as_echo "$ac_try_echo") >&5
  3594. (eval "$ac_compile") 2>conftest.er1
  3595. ac_status=$?
  3596. grep -v '^ *+' conftest.er1 >conftest.err
  3597. rm -f conftest.er1
  3598. cat conftest.err >&5
  3599. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3600. (exit $ac_status); } && {
  3601. test -z "$ac_c_werror_flag" ||
  3602. test ! -s conftest.err
  3603. } && test -s conftest.$ac_objext; then
  3604. ac_cv_safe_to_define___extensions__=yes
  3605. else
  3606. $as_echo "$as_me: failed program was:" >&5
  3607. sed 's/^/| /' conftest.$ac_ext >&5
  3608. ac_cv_safe_to_define___extensions__=no
  3609. fi
  3610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3611. fi
  3612. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  3613. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3614. test $ac_cv_safe_to_define___extensions__ = yes &&
  3615. cat >>confdefs.h <<\_ACEOF
  3616. #define __EXTENSIONS__ 1
  3617. _ACEOF
  3618. cat >>confdefs.h <<\_ACEOF
  3619. #define _ALL_SOURCE 1
  3620. _ACEOF
  3621. cat >>confdefs.h <<\_ACEOF
  3622. #define _GNU_SOURCE 1
  3623. _ACEOF
  3624. cat >>confdefs.h <<\_ACEOF
  3625. #define _POSIX_PTHREAD_SEMANTICS 1
  3626. _ACEOF
  3627. cat >>confdefs.h <<\_ACEOF
  3628. #define _TANDEM_SOURCE 1
  3629. _ACEOF
  3630. enable_shared=yes
  3631. enable_static=no
  3632. case `pwd` in
  3633. *\ * | *\ *)
  3634. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3635. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3636. esac
  3637. macro_version='2.2.6'
  3638. macro_revision='1.3012'
  3639. ltmain="$ac_aux_dir/ltmain.sh"
  3640. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3641. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3642. if test "${ac_cv_path_SED+set}" = set; then
  3643. $as_echo_n "(cached) " >&6
  3644. else
  3645. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3646. for ac_i in 1 2 3 4 5 6 7; do
  3647. ac_script="$ac_script$as_nl$ac_script"
  3648. done
  3649. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3650. $as_unset ac_script || ac_script=
  3651. if test -z "$SED"; then
  3652. ac_path_SED_found=false
  3653. # Loop through the user's path and test for each of PROGNAME-LIST
  3654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3655. for as_dir in $PATH
  3656. do
  3657. IFS=$as_save_IFS
  3658. test -z "$as_dir" && as_dir=.
  3659. for ac_prog in sed gsed; do
  3660. for ac_exec_ext in '' $ac_executable_extensions; do
  3661. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3662. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3663. # Check for GNU ac_path_SED and select it if it is found.
  3664. # Check for GNU $ac_path_SED
  3665. case `"$ac_path_SED" --version 2>&1` in
  3666. *GNU*)
  3667. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3668. *)
  3669. ac_count=0
  3670. $as_echo_n 0123456789 >"conftest.in"
  3671. while :
  3672. do
  3673. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3674. mv "conftest.tmp" "conftest.in"
  3675. cp "conftest.in" "conftest.nl"
  3676. $as_echo '' >> "conftest.nl"
  3677. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3678. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3679. ac_count=`expr $ac_count + 1`
  3680. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3681. # Best one so far, save it but keep looking for a better one
  3682. ac_cv_path_SED="$ac_path_SED"
  3683. ac_path_SED_max=$ac_count
  3684. fi
  3685. # 10*(2^10) chars as input seems more than enough
  3686. test $ac_count -gt 10 && break
  3687. done
  3688. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3689. esac
  3690. $ac_path_SED_found && break 3
  3691. done
  3692. done
  3693. done
  3694. IFS=$as_save_IFS
  3695. if test -z "$ac_cv_path_SED"; then
  3696. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3697. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3698. { (exit 1); exit 1; }; }
  3699. fi
  3700. else
  3701. ac_cv_path_SED=$SED
  3702. fi
  3703. fi
  3704. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3705. $as_echo "$ac_cv_path_SED" >&6; }
  3706. SED="$ac_cv_path_SED"
  3707. rm -f conftest.sed
  3708. test -z "$SED" && SED=sed
  3709. Xsed="$SED -e 1s/^X//"
  3710. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  3711. $as_echo_n "checking for fgrep... " >&6; }
  3712. if test "${ac_cv_path_FGREP+set}" = set; then
  3713. $as_echo_n "(cached) " >&6
  3714. else
  3715. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3716. then ac_cv_path_FGREP="$GREP -F"
  3717. else
  3718. if test -z "$FGREP"; then
  3719. ac_path_FGREP_found=false
  3720. # Loop through the user's path and test for each of PROGNAME-LIST
  3721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3722. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3723. do
  3724. IFS=$as_save_IFS
  3725. test -z "$as_dir" && as_dir=.
  3726. for ac_prog in fgrep; do
  3727. for ac_exec_ext in '' $ac_executable_extensions; do
  3728. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3729. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3730. # Check for GNU ac_path_FGREP and select it if it is found.
  3731. # Check for GNU $ac_path_FGREP
  3732. case `"$ac_path_FGREP" --version 2>&1` in
  3733. *GNU*)
  3734. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3735. *)
  3736. ac_count=0
  3737. $as_echo_n 0123456789 >"conftest.in"
  3738. while :
  3739. do
  3740. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3741. mv "conftest.tmp" "conftest.in"
  3742. cp "conftest.in" "conftest.nl"
  3743. $as_echo 'FGREP' >> "conftest.nl"
  3744. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3745. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3746. ac_count=`expr $ac_count + 1`
  3747. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3748. # Best one so far, save it but keep looking for a better one
  3749. ac_cv_path_FGREP="$ac_path_FGREP"
  3750. ac_path_FGREP_max=$ac_count
  3751. fi
  3752. # 10*(2^10) chars as input seems more than enough
  3753. test $ac_count -gt 10 && break
  3754. done
  3755. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3756. esac
  3757. $ac_path_FGREP_found && break 3
  3758. done
  3759. done
  3760. done
  3761. IFS=$as_save_IFS
  3762. if test -z "$ac_cv_path_FGREP"; then
  3763. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3764. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3765. { (exit 1); exit 1; }; }
  3766. fi
  3767. else
  3768. ac_cv_path_FGREP=$FGREP
  3769. fi
  3770. fi
  3771. fi
  3772. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  3773. $as_echo "$ac_cv_path_FGREP" >&6; }
  3774. FGREP="$ac_cv_path_FGREP"
  3775. test -z "$GREP" && GREP=grep
  3776. # Check whether --with-gnu-ld was given.
  3777. if test "${with_gnu_ld+set}" = set; then
  3778. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3779. else
  3780. with_gnu_ld=no
  3781. fi
  3782. ac_prog=ld
  3783. if test "$GCC" = yes; then
  3784. # Check if gcc -print-prog-name=ld gives a path.
  3785. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3786. $as_echo_n "checking for ld used by $CC... " >&6; }
  3787. case $host in
  3788. *-*-mingw*)
  3789. # gcc leaves a trailing carriage return which upsets mingw
  3790. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3791. *)
  3792. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3793. esac
  3794. case $ac_prog in
  3795. # Accept absolute paths.
  3796. [\\/]* | ?:[\\/]*)
  3797. re_direlt='/[^/][^/]*/\.\./'
  3798. # Canonicalize the pathname of ld
  3799. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3800. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3801. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3802. done
  3803. test -z "$LD" && LD="$ac_prog"
  3804. ;;
  3805. "")
  3806. # If it fails, then pretend we aren't using GCC.
  3807. ac_prog=ld
  3808. ;;
  3809. *)
  3810. # If it is relative, then search for the first ld in PATH.
  3811. with_gnu_ld=unknown
  3812. ;;
  3813. esac
  3814. elif test "$with_gnu_ld" = yes; then
  3815. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  3816. $as_echo_n "checking for GNU ld... " >&6; }
  3817. else
  3818. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3819. $as_echo_n "checking for non-GNU ld... " >&6; }
  3820. fi
  3821. if test "${lt_cv_path_LD+set}" = set; then
  3822. $as_echo_n "(cached) " >&6
  3823. else
  3824. if test -z "$LD"; then
  3825. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3826. for ac_dir in $PATH; do
  3827. IFS="$lt_save_ifs"
  3828. test -z "$ac_dir" && ac_dir=.
  3829. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3830. lt_cv_path_LD="$ac_dir/$ac_prog"
  3831. # Check to see if the program is GNU ld. I'd rather use --version,
  3832. # but apparently some variants of GNU ld only accept -v.
  3833. # Break only if it was the GNU/non-GNU ld that we prefer.
  3834. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3835. *GNU* | *'with BFD'*)
  3836. test "$with_gnu_ld" != no && break
  3837. ;;
  3838. *)
  3839. test "$with_gnu_ld" != yes && break
  3840. ;;
  3841. esac
  3842. fi
  3843. done
  3844. IFS="$lt_save_ifs"
  3845. else
  3846. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3847. fi
  3848. fi
  3849. LD="$lt_cv_path_LD"
  3850. if test -n "$LD"; then
  3851. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  3852. $as_echo "$LD" >&6; }
  3853. else
  3854. { $as_echo "$as_me:$LINENO: result: no" >&5
  3855. $as_echo "no" >&6; }
  3856. fi
  3857. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3858. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3859. { (exit 1); exit 1; }; }
  3860. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3861. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3862. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3863. $as_echo_n "(cached) " >&6
  3864. else
  3865. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3866. case `$LD -v 2>&1 </dev/null` in
  3867. *GNU* | *'with BFD'*)
  3868. lt_cv_prog_gnu_ld=yes
  3869. ;;
  3870. *)
  3871. lt_cv_prog_gnu_ld=no
  3872. ;;
  3873. esac
  3874. fi
  3875. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3876. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3877. with_gnu_ld=$lt_cv_prog_gnu_ld
  3878. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  3879. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3880. if test "${lt_cv_path_NM+set}" = set; then
  3881. $as_echo_n "(cached) " >&6
  3882. else
  3883. if test -n "$NM"; then
  3884. # Let the user override the test.
  3885. lt_cv_path_NM="$NM"
  3886. else
  3887. lt_nm_to_check="${ac_tool_prefix}nm"
  3888. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3889. lt_nm_to_check="$lt_nm_to_check nm"
  3890. fi
  3891. for lt_tmp_nm in $lt_nm_to_check; do
  3892. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3893. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3894. IFS="$lt_save_ifs"
  3895. test -z "$ac_dir" && ac_dir=.
  3896. tmp_nm="$ac_dir/$lt_tmp_nm"
  3897. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3898. # Check to see if the nm accepts a BSD-compat flag.
  3899. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3900. # nm: unknown option "B" ignored
  3901. # Tru64's nm complains that /dev/null is an invalid object file
  3902. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3903. */dev/null* | *'Invalid file or object type'*)
  3904. lt_cv_path_NM="$tmp_nm -B"
  3905. break
  3906. ;;
  3907. *)
  3908. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3909. */dev/null*)
  3910. lt_cv_path_NM="$tmp_nm -p"
  3911. break
  3912. ;;
  3913. *)
  3914. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3915. continue # so that we can try to find one that supports BSD flags
  3916. ;;
  3917. esac
  3918. ;;
  3919. esac
  3920. fi
  3921. done
  3922. IFS="$lt_save_ifs"
  3923. done
  3924. : ${lt_cv_path_NM=no}
  3925. fi
  3926. fi
  3927. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3928. $as_echo "$lt_cv_path_NM" >&6; }
  3929. if test "$lt_cv_path_NM" != "no"; then
  3930. NM="$lt_cv_path_NM"
  3931. else
  3932. # Didn't find any BSD compatible name lister, look for dumpbin.
  3933. if test -n "$ac_tool_prefix"; then
  3934. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3935. do
  3936. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3937. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3938. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3939. $as_echo_n "checking for $ac_word... " >&6; }
  3940. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  3941. $as_echo_n "(cached) " >&6
  3942. else
  3943. if test -n "$DUMPBIN"; then
  3944. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3945. else
  3946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3947. for as_dir in $PATH
  3948. do
  3949. IFS=$as_save_IFS
  3950. test -z "$as_dir" && as_dir=.
  3951. for ac_exec_ext in '' $ac_executable_extensions; do
  3952. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3953. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3954. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3955. break 2
  3956. fi
  3957. done
  3958. done
  3959. IFS=$as_save_IFS
  3960. fi
  3961. fi
  3962. DUMPBIN=$ac_cv_prog_DUMPBIN
  3963. if test -n "$DUMPBIN"; then
  3964. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  3965. $as_echo "$DUMPBIN" >&6; }
  3966. else
  3967. { $as_echo "$as_me:$LINENO: result: no" >&5
  3968. $as_echo "no" >&6; }
  3969. fi
  3970. test -n "$DUMPBIN" && break
  3971. done
  3972. fi
  3973. if test -z "$DUMPBIN"; then
  3974. ac_ct_DUMPBIN=$DUMPBIN
  3975. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3976. do
  3977. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3978. set dummy $ac_prog; ac_word=$2
  3979. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3980. $as_echo_n "checking for $ac_word... " >&6; }
  3981. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  3982. $as_echo_n "(cached) " >&6
  3983. else
  3984. if test -n "$ac_ct_DUMPBIN"; then
  3985. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3986. else
  3987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3988. for as_dir in $PATH
  3989. do
  3990. IFS=$as_save_IFS
  3991. test -z "$as_dir" && as_dir=.
  3992. for ac_exec_ext in '' $ac_executable_extensions; do
  3993. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3994. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3995. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3996. break 2
  3997. fi
  3998. done
  3999. done
  4000. IFS=$as_save_IFS
  4001. fi
  4002. fi
  4003. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4004. if test -n "$ac_ct_DUMPBIN"; then
  4005. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4006. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4007. else
  4008. { $as_echo "$as_me:$LINENO: result: no" >&5
  4009. $as_echo "no" >&6; }
  4010. fi
  4011. test -n "$ac_ct_DUMPBIN" && break
  4012. done
  4013. if test "x$ac_ct_DUMPBIN" = x; then
  4014. DUMPBIN=":"
  4015. else
  4016. case $cross_compiling:$ac_tool_warned in
  4017. yes:)
  4018. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4019. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4020. ac_tool_warned=yes ;;
  4021. esac
  4022. DUMPBIN=$ac_ct_DUMPBIN
  4023. fi
  4024. fi
  4025. if test "$DUMPBIN" != ":"; then
  4026. NM="$DUMPBIN"
  4027. fi
  4028. fi
  4029. test -z "$NM" && NM=nm
  4030. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4031. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4032. if test "${lt_cv_nm_interface+set}" = set; then
  4033. $as_echo_n "(cached) " >&6
  4034. else
  4035. lt_cv_nm_interface="BSD nm"
  4036. echo "int some_variable = 0;" > conftest.$ac_ext
  4037. (eval echo "\"\$as_me:4581: $ac_compile\"" >&5)
  4038. (eval "$ac_compile" 2>conftest.err)
  4039. cat conftest.err >&5
  4040. (eval echo "\"\$as_me:4584: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4041. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4042. cat conftest.err >&5
  4043. (eval echo "\"\$as_me:4587: output\"" >&5)
  4044. cat conftest.out >&5
  4045. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4046. lt_cv_nm_interface="MS dumpbin"
  4047. fi
  4048. rm -f conftest*
  4049. fi
  4050. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4051. $as_echo "$lt_cv_nm_interface" >&6; }
  4052. # find the maximum length of command line arguments
  4053. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4054. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4055. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4056. $as_echo_n "(cached) " >&6
  4057. else
  4058. i=0
  4059. teststring="ABCD"
  4060. case $build_os in
  4061. msdosdjgpp*)
  4062. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4063. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4064. # during glob expansion). Even if it were fixed, the result of this
  4065. # check would be larger than it should be.
  4066. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4067. ;;
  4068. gnu*)
  4069. # Under GNU Hurd, this test is not required because there is
  4070. # no limit to the length of command line arguments.
  4071. # Libtool will interpret -1 as no limit whatsoever
  4072. lt_cv_sys_max_cmd_len=-1;
  4073. ;;
  4074. cygwin* | mingw* | cegcc*)
  4075. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4076. # about 5 minutes as the teststring grows exponentially.
  4077. # Worse, since 9x/ME are not pre-emptively multitasking,
  4078. # you end up with a "frozen" computer, even though with patience
  4079. # the test eventually succeeds (with a max line length of 256k).
  4080. # Instead, let's just punt: use the minimum linelength reported by
  4081. # all of the supported platforms: 8192 (on NT/2K/XP).
  4082. lt_cv_sys_max_cmd_len=8192;
  4083. ;;
  4084. amigaos*)
  4085. # On AmigaOS with pdksh, this test takes hours, literally.
  4086. # So we just punt and use a minimum line length of 8192.
  4087. lt_cv_sys_max_cmd_len=8192;
  4088. ;;
  4089. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4090. # This has been around since 386BSD, at least. Likely further.
  4091. if test -x /sbin/sysctl; then
  4092. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4093. elif test -x /usr/sbin/sysctl; then
  4094. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4095. else
  4096. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4097. fi
  4098. # And add a safety zone
  4099. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4100. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4101. ;;
  4102. interix*)
  4103. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4104. lt_cv_sys_max_cmd_len=196608
  4105. ;;
  4106. osf*)
  4107. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4108. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4109. # nice to cause kernel panics so lets avoid the loop below.
  4110. # First set a reasonable default.
  4111. lt_cv_sys_max_cmd_len=16384
  4112. #
  4113. if test -x /sbin/sysconfig; then
  4114. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4115. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4116. esac
  4117. fi
  4118. ;;
  4119. sco3.2v5*)
  4120. lt_cv_sys_max_cmd_len=102400
  4121. ;;
  4122. sysv5* | sco5v6* | sysv4.2uw2*)
  4123. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4124. if test -n "$kargmax"; then
  4125. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4126. else
  4127. lt_cv_sys_max_cmd_len=32768
  4128. fi
  4129. ;;
  4130. *)
  4131. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4132. if test -n "$lt_cv_sys_max_cmd_len"; then
  4133. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4134. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4135. else
  4136. # Make teststring a little bigger before we do anything with it.
  4137. # a 1K string should be a reasonable start.
  4138. for i in 1 2 3 4 5 6 7 8 ; do
  4139. teststring=$teststring$teststring
  4140. done
  4141. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4142. # If test is not a shell built-in, we'll probably end up computing a
  4143. # maximum length that is only half of the actual maximum length, but
  4144. # we can't tell.
  4145. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4146. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4147. test $i != 17 # 1/2 MB should be enough
  4148. do
  4149. i=`expr $i + 1`
  4150. teststring=$teststring$teststring
  4151. done
  4152. # Only check the string length outside the loop.
  4153. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4154. teststring=
  4155. # Add a significant safety factor because C++ compilers can tack on
  4156. # massive amounts of additional arguments before passing them to the
  4157. # linker. It appears as though 1/2 is a usable value.
  4158. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4159. fi
  4160. ;;
  4161. esac
  4162. fi
  4163. if test -n $lt_cv_sys_max_cmd_len ; then
  4164. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4165. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4166. else
  4167. { $as_echo "$as_me:$LINENO: result: none" >&5
  4168. $as_echo "none" >&6; }
  4169. fi
  4170. max_cmd_len=$lt_cv_sys_max_cmd_len
  4171. : ${CP="cp -f"}
  4172. : ${MV="mv -f"}
  4173. : ${RM="rm -f"}
  4174. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4175. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4176. # Try some XSI features
  4177. xsi_shell=no
  4178. ( _lt_dummy="a/b/c"
  4179. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4180. = c,a/b,, \
  4181. && eval 'test $(( 1 + 1 )) -eq 2 \
  4182. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4183. && xsi_shell=yes
  4184. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4185. $as_echo "$xsi_shell" >&6; }
  4186. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4187. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4188. lt_shell_append=no
  4189. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4190. >/dev/null 2>&1 \
  4191. && lt_shell_append=yes
  4192. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4193. $as_echo "$lt_shell_append" >&6; }
  4194. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4195. lt_unset=unset
  4196. else
  4197. lt_unset=false
  4198. fi
  4199. # test EBCDIC or ASCII
  4200. case `echo X|tr X '\101'` in
  4201. A) # ASCII based system
  4202. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4203. lt_SP2NL='tr \040 \012'
  4204. lt_NL2SP='tr \015\012 \040\040'
  4205. ;;
  4206. *) # EBCDIC based system
  4207. lt_SP2NL='tr \100 \n'
  4208. lt_NL2SP='tr \r\n \100\100'
  4209. ;;
  4210. esac
  4211. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4212. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4213. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4214. $as_echo_n "(cached) " >&6
  4215. else
  4216. lt_cv_ld_reload_flag='-r'
  4217. fi
  4218. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4219. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4220. reload_flag=$lt_cv_ld_reload_flag
  4221. case $reload_flag in
  4222. "" | " "*) ;;
  4223. *) reload_flag=" $reload_flag" ;;
  4224. esac
  4225. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4226. case $host_os in
  4227. darwin*)
  4228. if test "$GCC" = yes; then
  4229. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4230. else
  4231. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4232. fi
  4233. ;;
  4234. esac
  4235. if test -n "$ac_tool_prefix"; then
  4236. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4237. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4238. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4239. $as_echo_n "checking for $ac_word... " >&6; }
  4240. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. if test -n "$OBJDUMP"; then
  4244. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4245. else
  4246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4247. for as_dir in $PATH
  4248. do
  4249. IFS=$as_save_IFS
  4250. test -z "$as_dir" && as_dir=.
  4251. for ac_exec_ext in '' $ac_executable_extensions; do
  4252. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4253. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4254. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4255. break 2
  4256. fi
  4257. done
  4258. done
  4259. IFS=$as_save_IFS
  4260. fi
  4261. fi
  4262. OBJDUMP=$ac_cv_prog_OBJDUMP
  4263. if test -n "$OBJDUMP"; then
  4264. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4265. $as_echo "$OBJDUMP" >&6; }
  4266. else
  4267. { $as_echo "$as_me:$LINENO: result: no" >&5
  4268. $as_echo "no" >&6; }
  4269. fi
  4270. fi
  4271. if test -z "$ac_cv_prog_OBJDUMP"; then
  4272. ac_ct_OBJDUMP=$OBJDUMP
  4273. # Extract the first word of "objdump", so it can be a program name with args.
  4274. set dummy objdump; ac_word=$2
  4275. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4276. $as_echo_n "checking for $ac_word... " >&6; }
  4277. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4278. $as_echo_n "(cached) " >&6
  4279. else
  4280. if test -n "$ac_ct_OBJDUMP"; then
  4281. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4282. else
  4283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4284. for as_dir in $PATH
  4285. do
  4286. IFS=$as_save_IFS
  4287. test -z "$as_dir" && as_dir=.
  4288. for ac_exec_ext in '' $ac_executable_extensions; do
  4289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4290. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4291. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4292. break 2
  4293. fi
  4294. done
  4295. done
  4296. IFS=$as_save_IFS
  4297. fi
  4298. fi
  4299. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4300. if test -n "$ac_ct_OBJDUMP"; then
  4301. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4302. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4303. else
  4304. { $as_echo "$as_me:$LINENO: result: no" >&5
  4305. $as_echo "no" >&6; }
  4306. fi
  4307. if test "x$ac_ct_OBJDUMP" = x; then
  4308. OBJDUMP="false"
  4309. else
  4310. case $cross_compiling:$ac_tool_warned in
  4311. yes:)
  4312. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4313. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4314. ac_tool_warned=yes ;;
  4315. esac
  4316. OBJDUMP=$ac_ct_OBJDUMP
  4317. fi
  4318. else
  4319. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4320. fi
  4321. test -z "$OBJDUMP" && OBJDUMP=objdump
  4322. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4323. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4324. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4325. $as_echo_n "(cached) " >&6
  4326. else
  4327. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4328. lt_cv_file_magic_test_file=
  4329. lt_cv_deplibs_check_method='unknown'
  4330. # Need to set the preceding variable on all platforms that support
  4331. # interlibrary dependencies.
  4332. # 'none' -- dependencies not supported.
  4333. # `unknown' -- same as none, but documents that we really don't know.
  4334. # 'pass_all' -- all dependencies passed with no checks.
  4335. # 'test_compile' -- check by making test program.
  4336. # 'file_magic [[regex]]' -- check by looking for files in library path
  4337. # which responds to the $file_magic_cmd with a given extended regex.
  4338. # If you have `file' or equivalent on your system and you're not sure
  4339. # whether `pass_all' will *always* work, you probably want this one.
  4340. case $host_os in
  4341. aix[4-9]*)
  4342. lt_cv_deplibs_check_method=pass_all
  4343. ;;
  4344. beos*)
  4345. lt_cv_deplibs_check_method=pass_all
  4346. ;;
  4347. bsdi[45]*)
  4348. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4349. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4350. lt_cv_file_magic_test_file=/shlib/libc.so
  4351. ;;
  4352. cygwin*)
  4353. # func_win32_libid is a shell function defined in ltmain.sh
  4354. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4355. lt_cv_file_magic_cmd='func_win32_libid'
  4356. ;;
  4357. mingw* | pw32*)
  4358. # Base MSYS/MinGW do not provide the 'file' command needed by
  4359. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4360. # unless we find 'file', for example because we are cross-compiling.
  4361. if ( file / ) >/dev/null 2>&1; then
  4362. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4363. lt_cv_file_magic_cmd='func_win32_libid'
  4364. else
  4365. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4366. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4367. fi
  4368. ;;
  4369. cegcc)
  4370. # use the weaker test based on 'objdump'. See mingw*.
  4371. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4372. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4373. ;;
  4374. darwin* | rhapsody*)
  4375. lt_cv_deplibs_check_method=pass_all
  4376. ;;
  4377. freebsd* | dragonfly*)
  4378. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4379. case $host_cpu in
  4380. i*86 )
  4381. # Not sure whether the presence of OpenBSD here was a mistake.
  4382. # Let's accept both of them until this is cleared up.
  4383. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4384. lt_cv_file_magic_cmd=/usr/bin/file
  4385. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4386. ;;
  4387. esac
  4388. else
  4389. lt_cv_deplibs_check_method=pass_all
  4390. fi
  4391. ;;
  4392. gnu*)
  4393. lt_cv_deplibs_check_method=pass_all
  4394. ;;
  4395. hpux10.20* | hpux11*)
  4396. lt_cv_file_magic_cmd=/usr/bin/file
  4397. case $host_cpu in
  4398. ia64*)
  4399. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4400. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4401. ;;
  4402. hppa*64*)
  4403. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4404. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4405. ;;
  4406. *)
  4407. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4408. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4409. ;;
  4410. esac
  4411. ;;
  4412. interix[3-9]*)
  4413. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4414. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4415. ;;
  4416. irix5* | irix6* | nonstopux*)
  4417. case $LD in
  4418. *-32|*"-32 ") libmagic=32-bit;;
  4419. *-n32|*"-n32 ") libmagic=N32;;
  4420. *-64|*"-64 ") libmagic=64-bit;;
  4421. *) libmagic=never-match;;
  4422. esac
  4423. lt_cv_deplibs_check_method=pass_all
  4424. ;;
  4425. # This must be Linux ELF.
  4426. linux* | k*bsd*-gnu)
  4427. lt_cv_deplibs_check_method=pass_all
  4428. ;;
  4429. netbsd*)
  4430. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4431. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4432. else
  4433. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4434. fi
  4435. ;;
  4436. newos6*)
  4437. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4438. lt_cv_file_magic_cmd=/usr/bin/file
  4439. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4440. ;;
  4441. *nto* | *qnx*)
  4442. lt_cv_deplibs_check_method=pass_all
  4443. ;;
  4444. openbsd*)
  4445. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4446. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4447. else
  4448. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4449. fi
  4450. ;;
  4451. osf3* | osf4* | osf5*)
  4452. lt_cv_deplibs_check_method=pass_all
  4453. ;;
  4454. rdos*)
  4455. lt_cv_deplibs_check_method=pass_all
  4456. ;;
  4457. solaris*)
  4458. lt_cv_deplibs_check_method=pass_all
  4459. ;;
  4460. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4461. lt_cv_deplibs_check_method=pass_all
  4462. ;;
  4463. sysv4 | sysv4.3*)
  4464. case $host_vendor in
  4465. motorola)
  4466. 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]'
  4467. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4468. ;;
  4469. ncr)
  4470. lt_cv_deplibs_check_method=pass_all
  4471. ;;
  4472. sequent)
  4473. lt_cv_file_magic_cmd='/bin/file'
  4474. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4475. ;;
  4476. sni)
  4477. lt_cv_file_magic_cmd='/bin/file'
  4478. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4479. lt_cv_file_magic_test_file=/lib/libc.so
  4480. ;;
  4481. siemens)
  4482. lt_cv_deplibs_check_method=pass_all
  4483. ;;
  4484. pc)
  4485. lt_cv_deplibs_check_method=pass_all
  4486. ;;
  4487. esac
  4488. ;;
  4489. tpf*)
  4490. lt_cv_deplibs_check_method=pass_all
  4491. ;;
  4492. esac
  4493. fi
  4494. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4495. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4496. file_magic_cmd=$lt_cv_file_magic_cmd
  4497. deplibs_check_method=$lt_cv_deplibs_check_method
  4498. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4499. if test -n "$ac_tool_prefix"; then
  4500. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4501. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4502. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4503. $as_echo_n "checking for $ac_word... " >&6; }
  4504. if test "${ac_cv_prog_AR+set}" = set; then
  4505. $as_echo_n "(cached) " >&6
  4506. else
  4507. if test -n "$AR"; then
  4508. ac_cv_prog_AR="$AR" # Let the user override the test.
  4509. else
  4510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4511. for as_dir in $PATH
  4512. do
  4513. IFS=$as_save_IFS
  4514. test -z "$as_dir" && as_dir=.
  4515. for ac_exec_ext in '' $ac_executable_extensions; do
  4516. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4517. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4518. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4519. break 2
  4520. fi
  4521. done
  4522. done
  4523. IFS=$as_save_IFS
  4524. fi
  4525. fi
  4526. AR=$ac_cv_prog_AR
  4527. if test -n "$AR"; then
  4528. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4529. $as_echo "$AR" >&6; }
  4530. else
  4531. { $as_echo "$as_me:$LINENO: result: no" >&5
  4532. $as_echo "no" >&6; }
  4533. fi
  4534. fi
  4535. if test -z "$ac_cv_prog_AR"; then
  4536. ac_ct_AR=$AR
  4537. # Extract the first word of "ar", so it can be a program name with args.
  4538. set dummy ar; ac_word=$2
  4539. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4540. $as_echo_n "checking for $ac_word... " >&6; }
  4541. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4542. $as_echo_n "(cached) " >&6
  4543. else
  4544. if test -n "$ac_ct_AR"; then
  4545. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4546. else
  4547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4548. for as_dir in $PATH
  4549. do
  4550. IFS=$as_save_IFS
  4551. test -z "$as_dir" && as_dir=.
  4552. for ac_exec_ext in '' $ac_executable_extensions; do
  4553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4554. ac_cv_prog_ac_ct_AR="ar"
  4555. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4556. break 2
  4557. fi
  4558. done
  4559. done
  4560. IFS=$as_save_IFS
  4561. fi
  4562. fi
  4563. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4564. if test -n "$ac_ct_AR"; then
  4565. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4566. $as_echo "$ac_ct_AR" >&6; }
  4567. else
  4568. { $as_echo "$as_me:$LINENO: result: no" >&5
  4569. $as_echo "no" >&6; }
  4570. fi
  4571. if test "x$ac_ct_AR" = x; then
  4572. AR="false"
  4573. else
  4574. case $cross_compiling:$ac_tool_warned in
  4575. yes:)
  4576. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4577. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4578. ac_tool_warned=yes ;;
  4579. esac
  4580. AR=$ac_ct_AR
  4581. fi
  4582. else
  4583. AR="$ac_cv_prog_AR"
  4584. fi
  4585. test -z "$AR" && AR=ar
  4586. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4587. if test -n "$ac_tool_prefix"; then
  4588. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4589. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4590. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4591. $as_echo_n "checking for $ac_word... " >&6; }
  4592. if test "${ac_cv_prog_STRIP+set}" = set; then
  4593. $as_echo_n "(cached) " >&6
  4594. else
  4595. if test -n "$STRIP"; then
  4596. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4597. else
  4598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4599. for as_dir in $PATH
  4600. do
  4601. IFS=$as_save_IFS
  4602. test -z "$as_dir" && as_dir=.
  4603. for ac_exec_ext in '' $ac_executable_extensions; do
  4604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4605. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4606. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4607. break 2
  4608. fi
  4609. done
  4610. done
  4611. IFS=$as_save_IFS
  4612. fi
  4613. fi
  4614. STRIP=$ac_cv_prog_STRIP
  4615. if test -n "$STRIP"; then
  4616. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4617. $as_echo "$STRIP" >&6; }
  4618. else
  4619. { $as_echo "$as_me:$LINENO: result: no" >&5
  4620. $as_echo "no" >&6; }
  4621. fi
  4622. fi
  4623. if test -z "$ac_cv_prog_STRIP"; then
  4624. ac_ct_STRIP=$STRIP
  4625. # Extract the first word of "strip", so it can be a program name with args.
  4626. set dummy strip; ac_word=$2
  4627. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4628. $as_echo_n "checking for $ac_word... " >&6; }
  4629. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4630. $as_echo_n "(cached) " >&6
  4631. else
  4632. if test -n "$ac_ct_STRIP"; then
  4633. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4634. else
  4635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4636. for as_dir in $PATH
  4637. do
  4638. IFS=$as_save_IFS
  4639. test -z "$as_dir" && as_dir=.
  4640. for ac_exec_ext in '' $ac_executable_extensions; do
  4641. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4642. ac_cv_prog_ac_ct_STRIP="strip"
  4643. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4644. break 2
  4645. fi
  4646. done
  4647. done
  4648. IFS=$as_save_IFS
  4649. fi
  4650. fi
  4651. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4652. if test -n "$ac_ct_STRIP"; then
  4653. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4654. $as_echo "$ac_ct_STRIP" >&6; }
  4655. else
  4656. { $as_echo "$as_me:$LINENO: result: no" >&5
  4657. $as_echo "no" >&6; }
  4658. fi
  4659. if test "x$ac_ct_STRIP" = x; then
  4660. STRIP=":"
  4661. else
  4662. case $cross_compiling:$ac_tool_warned in
  4663. yes:)
  4664. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4665. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4666. ac_tool_warned=yes ;;
  4667. esac
  4668. STRIP=$ac_ct_STRIP
  4669. fi
  4670. else
  4671. STRIP="$ac_cv_prog_STRIP"
  4672. fi
  4673. test -z "$STRIP" && STRIP=:
  4674. if test -n "$ac_tool_prefix"; then
  4675. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4676. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4677. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4678. $as_echo_n "checking for $ac_word... " >&6; }
  4679. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4680. $as_echo_n "(cached) " >&6
  4681. else
  4682. if test -n "$RANLIB"; then
  4683. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4684. else
  4685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4686. for as_dir in $PATH
  4687. do
  4688. IFS=$as_save_IFS
  4689. test -z "$as_dir" && as_dir=.
  4690. for ac_exec_ext in '' $ac_executable_extensions; do
  4691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4692. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4693. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4694. break 2
  4695. fi
  4696. done
  4697. done
  4698. IFS=$as_save_IFS
  4699. fi
  4700. fi
  4701. RANLIB=$ac_cv_prog_RANLIB
  4702. if test -n "$RANLIB"; then
  4703. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4704. $as_echo "$RANLIB" >&6; }
  4705. else
  4706. { $as_echo "$as_me:$LINENO: result: no" >&5
  4707. $as_echo "no" >&6; }
  4708. fi
  4709. fi
  4710. if test -z "$ac_cv_prog_RANLIB"; then
  4711. ac_ct_RANLIB=$RANLIB
  4712. # Extract the first word of "ranlib", so it can be a program name with args.
  4713. set dummy ranlib; ac_word=$2
  4714. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4715. $as_echo_n "checking for $ac_word... " >&6; }
  4716. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4717. $as_echo_n "(cached) " >&6
  4718. else
  4719. if test -n "$ac_ct_RANLIB"; then
  4720. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4721. else
  4722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4723. for as_dir in $PATH
  4724. do
  4725. IFS=$as_save_IFS
  4726. test -z "$as_dir" && as_dir=.
  4727. for ac_exec_ext in '' $ac_executable_extensions; do
  4728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4729. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4730. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4731. break 2
  4732. fi
  4733. done
  4734. done
  4735. IFS=$as_save_IFS
  4736. fi
  4737. fi
  4738. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4739. if test -n "$ac_ct_RANLIB"; then
  4740. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4741. $as_echo "$ac_ct_RANLIB" >&6; }
  4742. else
  4743. { $as_echo "$as_me:$LINENO: result: no" >&5
  4744. $as_echo "no" >&6; }
  4745. fi
  4746. if test "x$ac_ct_RANLIB" = x; then
  4747. RANLIB=":"
  4748. else
  4749. case $cross_compiling:$ac_tool_warned in
  4750. yes:)
  4751. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4752. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4753. ac_tool_warned=yes ;;
  4754. esac
  4755. RANLIB=$ac_ct_RANLIB
  4756. fi
  4757. else
  4758. RANLIB="$ac_cv_prog_RANLIB"
  4759. fi
  4760. test -z "$RANLIB" && RANLIB=:
  4761. # Determine commands to create old-style static archives.
  4762. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4763. old_postinstall_cmds='chmod 644 $oldlib'
  4764. old_postuninstall_cmds=
  4765. if test -n "$RANLIB"; then
  4766. case $host_os in
  4767. openbsd*)
  4768. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4769. ;;
  4770. *)
  4771. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4772. ;;
  4773. esac
  4774. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4775. fi
  4776. # If no C compiler was specified, use CC.
  4777. LTCC=${LTCC-"$CC"}
  4778. # If no C compiler flags were specified, use CFLAGS.
  4779. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4780. # Allow CC to be a program name with arguments.
  4781. compiler=$CC
  4782. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4783. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4784. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4785. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4786. $as_echo_n "(cached) " >&6
  4787. else
  4788. # These are sane defaults that work on at least a few old systems.
  4789. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4790. # Character class describing NM global symbol codes.
  4791. symcode='[BCDEGRST]'
  4792. # Regexp to match symbols that can be accessed directly from C.
  4793. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4794. # Define system-specific variables.
  4795. case $host_os in
  4796. aix*)
  4797. symcode='[BCDT]'
  4798. ;;
  4799. cygwin* | mingw* | pw32* | cegcc*)
  4800. symcode='[ABCDGISTW]'
  4801. ;;
  4802. hpux*)
  4803. if test "$host_cpu" = ia64; then
  4804. symcode='[ABCDEGRST]'
  4805. fi
  4806. ;;
  4807. irix* | nonstopux*)
  4808. symcode='[BCDEGRST]'
  4809. ;;
  4810. osf*)
  4811. symcode='[BCDEGQRST]'
  4812. ;;
  4813. solaris*)
  4814. symcode='[BDRT]'
  4815. ;;
  4816. sco3.2v5*)
  4817. symcode='[DT]'
  4818. ;;
  4819. sysv4.2uw2*)
  4820. symcode='[DT]'
  4821. ;;
  4822. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4823. symcode='[ABDT]'
  4824. ;;
  4825. sysv4)
  4826. symcode='[DFNSTU]'
  4827. ;;
  4828. esac
  4829. # If we're using GNU nm, then use its standard symbol codes.
  4830. case `$NM -V 2>&1` in
  4831. *GNU* | *'with BFD'*)
  4832. symcode='[ABCDGIRSTW]' ;;
  4833. esac
  4834. # Transform an extracted symbol line into a proper C declaration.
  4835. # Some systems (esp. on ia64) link data and code symbols differently,
  4836. # so use this general approach.
  4837. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4838. # Transform an extracted symbol line into symbol name and symbol address
  4839. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4840. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4841. # Handle CRLF in mingw tool chain
  4842. opt_cr=
  4843. case $build_os in
  4844. mingw*)
  4845. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4846. ;;
  4847. esac
  4848. # Try without a prefix underscore, then with it.
  4849. for ac_symprfx in "" "_"; do
  4850. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4851. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4852. # Write the raw and C identifiers.
  4853. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4854. # Fake it for dumpbin and say T for any non-static function
  4855. # and D for any global variable.
  4856. # Also find C++ and __fastcall symbols from MSVC++,
  4857. # which start with @ or ?.
  4858. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4859. " {last_section=section; section=\$ 3};"\
  4860. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4861. " \$ 0!~/External *\|/{next};"\
  4862. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4863. " {if(hide[section]) next};"\
  4864. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4865. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4866. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4867. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4868. " ' prfx=^$ac_symprfx"
  4869. else
  4870. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4871. fi
  4872. # Check to see that the pipe works correctly.
  4873. pipe_works=no
  4874. rm -f conftest*
  4875. cat > conftest.$ac_ext <<_LT_EOF
  4876. #ifdef __cplusplus
  4877. extern "C" {
  4878. #endif
  4879. char nm_test_var;
  4880. void nm_test_func(void);
  4881. void nm_test_func(void){}
  4882. #ifdef __cplusplus
  4883. }
  4884. #endif
  4885. int main(){nm_test_var='a';nm_test_func();return(0);}
  4886. _LT_EOF
  4887. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4888. (eval $ac_compile) 2>&5
  4889. ac_status=$?
  4890. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4891. (exit $ac_status); }; then
  4892. # Now try to grab the symbols.
  4893. nlist=conftest.nm
  4894. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4895. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4896. ac_status=$?
  4897. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4898. (exit $ac_status); } && test -s "$nlist"; then
  4899. # Try sorting and uniquifying the output.
  4900. if sort "$nlist" | uniq > "$nlist"T; then
  4901. mv -f "$nlist"T "$nlist"
  4902. else
  4903. rm -f "$nlist"T
  4904. fi
  4905. # Make sure that we snagged all the symbols we need.
  4906. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4907. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4908. cat <<_LT_EOF > conftest.$ac_ext
  4909. #ifdef __cplusplus
  4910. extern "C" {
  4911. #endif
  4912. _LT_EOF
  4913. # Now generate the symbol file.
  4914. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4915. cat <<_LT_EOF >> conftest.$ac_ext
  4916. /* The mapping between symbol names and symbols. */
  4917. const struct {
  4918. const char *name;
  4919. void *address;
  4920. }
  4921. lt__PROGRAM__LTX_preloaded_symbols[] =
  4922. {
  4923. { "@PROGRAM@", (void *) 0 },
  4924. _LT_EOF
  4925. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4926. cat <<\_LT_EOF >> conftest.$ac_ext
  4927. {0, (void *) 0}
  4928. };
  4929. /* This works around a problem in FreeBSD linker */
  4930. #ifdef FREEBSD_WORKAROUND
  4931. static const void *lt_preloaded_setup() {
  4932. return lt__PROGRAM__LTX_preloaded_symbols;
  4933. }
  4934. #endif
  4935. #ifdef __cplusplus
  4936. }
  4937. #endif
  4938. _LT_EOF
  4939. # Now try linking the two files.
  4940. mv conftest.$ac_objext conftstm.$ac_objext
  4941. lt_save_LIBS="$LIBS"
  4942. lt_save_CFLAGS="$CFLAGS"
  4943. LIBS="conftstm.$ac_objext"
  4944. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4945. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4946. (eval $ac_link) 2>&5
  4947. ac_status=$?
  4948. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4949. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4950. pipe_works=yes
  4951. fi
  4952. LIBS="$lt_save_LIBS"
  4953. CFLAGS="$lt_save_CFLAGS"
  4954. else
  4955. echo "cannot find nm_test_func in $nlist" >&5
  4956. fi
  4957. else
  4958. echo "cannot find nm_test_var in $nlist" >&5
  4959. fi
  4960. else
  4961. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4962. fi
  4963. else
  4964. echo "$progname: failed program was:" >&5
  4965. cat conftest.$ac_ext >&5
  4966. fi
  4967. rm -rf conftest* conftst*
  4968. # Do not use the global_symbol_pipe unless it works.
  4969. if test "$pipe_works" = yes; then
  4970. break
  4971. else
  4972. lt_cv_sys_global_symbol_pipe=
  4973. fi
  4974. done
  4975. fi
  4976. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4977. lt_cv_sys_global_symbol_to_cdecl=
  4978. fi
  4979. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4980. { $as_echo "$as_me:$LINENO: result: failed" >&5
  4981. $as_echo "failed" >&6; }
  4982. else
  4983. { $as_echo "$as_me:$LINENO: result: ok" >&5
  4984. $as_echo "ok" >&6; }
  4985. fi
  4986. # Check whether --enable-libtool-lock was given.
  4987. if test "${enable_libtool_lock+set}" = set; then
  4988. enableval=$enable_libtool_lock;
  4989. fi
  4990. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4991. # Some flags need to be propagated to the compiler or linker for good
  4992. # libtool support.
  4993. case $host in
  4994. ia64-*-hpux*)
  4995. # Find out which ABI we are using.
  4996. echo 'int i;' > conftest.$ac_ext
  4997. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4998. (eval $ac_compile) 2>&5
  4999. ac_status=$?
  5000. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5001. (exit $ac_status); }; then
  5002. case `/usr/bin/file conftest.$ac_objext` in
  5003. *ELF-32*)
  5004. HPUX_IA64_MODE="32"
  5005. ;;
  5006. *ELF-64*)
  5007. HPUX_IA64_MODE="64"
  5008. ;;
  5009. esac
  5010. fi
  5011. rm -rf conftest*
  5012. ;;
  5013. *-*-irix6*)
  5014. # Find out which ABI we are using.
  5015. echo '#line 5778 "configure"' > conftest.$ac_ext
  5016. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5017. (eval $ac_compile) 2>&5
  5018. ac_status=$?
  5019. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5020. (exit $ac_status); }; then
  5021. if test "$lt_cv_prog_gnu_ld" = yes; then
  5022. case `/usr/bin/file conftest.$ac_objext` in
  5023. *32-bit*)
  5024. LD="${LD-ld} -melf32bsmip"
  5025. ;;
  5026. *N32*)
  5027. LD="${LD-ld} -melf32bmipn32"
  5028. ;;
  5029. *64-bit*)
  5030. LD="${LD-ld} -melf64bmip"
  5031. ;;
  5032. esac
  5033. else
  5034. case `/usr/bin/file conftest.$ac_objext` in
  5035. *32-bit*)
  5036. LD="${LD-ld} -32"
  5037. ;;
  5038. *N32*)
  5039. LD="${LD-ld} -n32"
  5040. ;;
  5041. *64-bit*)
  5042. LD="${LD-ld} -64"
  5043. ;;
  5044. esac
  5045. fi
  5046. fi
  5047. rm -rf conftest*
  5048. ;;
  5049. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5050. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5051. # Find out which ABI we are using.
  5052. echo 'int i;' > conftest.$ac_ext
  5053. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5054. (eval $ac_compile) 2>&5
  5055. ac_status=$?
  5056. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5057. (exit $ac_status); }; then
  5058. case `/usr/bin/file conftest.o` in
  5059. *32-bit*)
  5060. case $host in
  5061. x86_64-*kfreebsd*-gnu)
  5062. LD="${LD-ld} -m elf_i386_fbsd"
  5063. ;;
  5064. x86_64-*linux*)
  5065. LD="${LD-ld} -m elf_i386"
  5066. ;;
  5067. ppc64-*linux*|powerpc64-*linux*)
  5068. LD="${LD-ld} -m elf32ppclinux"
  5069. ;;
  5070. s390x-*linux*)
  5071. LD="${LD-ld} -m elf_s390"
  5072. ;;
  5073. sparc64-*linux*)
  5074. LD="${LD-ld} -m elf32_sparc"
  5075. ;;
  5076. esac
  5077. ;;
  5078. *64-bit*)
  5079. case $host in
  5080. x86_64-*kfreebsd*-gnu)
  5081. LD="${LD-ld} -m elf_x86_64_fbsd"
  5082. ;;
  5083. x86_64-*linux*)
  5084. LD="${LD-ld} -m elf_x86_64"
  5085. ;;
  5086. ppc*-*linux*|powerpc*-*linux*)
  5087. LD="${LD-ld} -m elf64ppc"
  5088. ;;
  5089. s390*-*linux*|s390*-*tpf*)
  5090. LD="${LD-ld} -m elf64_s390"
  5091. ;;
  5092. sparc*-*linux*)
  5093. LD="${LD-ld} -m elf64_sparc"
  5094. ;;
  5095. esac
  5096. ;;
  5097. esac
  5098. fi
  5099. rm -rf conftest*
  5100. ;;
  5101. *-*-sco3.2v5*)
  5102. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5103. SAVE_CFLAGS="$CFLAGS"
  5104. CFLAGS="$CFLAGS -belf"
  5105. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5106. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5107. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5108. $as_echo_n "(cached) " >&6
  5109. else
  5110. ac_ext=c
  5111. ac_cpp='$CPP $CPPFLAGS'
  5112. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5113. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5115. cat >conftest.$ac_ext <<_ACEOF
  5116. /* confdefs.h. */
  5117. _ACEOF
  5118. cat confdefs.h >>conftest.$ac_ext
  5119. cat >>conftest.$ac_ext <<_ACEOF
  5120. /* end confdefs.h. */
  5121. int
  5122. main ()
  5123. {
  5124. ;
  5125. return 0;
  5126. }
  5127. _ACEOF
  5128. rm -f conftest.$ac_objext conftest$ac_exeext
  5129. if { (ac_try="$ac_link"
  5130. case "(($ac_try" in
  5131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5132. *) ac_try_echo=$ac_try;;
  5133. esac
  5134. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5135. $as_echo "$ac_try_echo") >&5
  5136. (eval "$ac_link") 2>conftest.er1
  5137. ac_status=$?
  5138. grep -v '^ *+' conftest.er1 >conftest.err
  5139. rm -f conftest.er1
  5140. cat conftest.err >&5
  5141. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5142. (exit $ac_status); } && {
  5143. test -z "$ac_c_werror_flag" ||
  5144. test ! -s conftest.err
  5145. } && test -s conftest$ac_exeext && {
  5146. test "$cross_compiling" = yes ||
  5147. $as_test_x conftest$ac_exeext
  5148. }; then
  5149. lt_cv_cc_needs_belf=yes
  5150. else
  5151. $as_echo "$as_me: failed program was:" >&5
  5152. sed 's/^/| /' conftest.$ac_ext >&5
  5153. lt_cv_cc_needs_belf=no
  5154. fi
  5155. rm -rf conftest.dSYM
  5156. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5157. conftest$ac_exeext conftest.$ac_ext
  5158. ac_ext=c
  5159. ac_cpp='$CPP $CPPFLAGS'
  5160. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5161. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5162. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5163. fi
  5164. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5165. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5166. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5167. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5168. CFLAGS="$SAVE_CFLAGS"
  5169. fi
  5170. ;;
  5171. sparc*-*solaris*)
  5172. # Find out which ABI we are using.
  5173. echo 'int i;' > conftest.$ac_ext
  5174. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5175. (eval $ac_compile) 2>&5
  5176. ac_status=$?
  5177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5178. (exit $ac_status); }; then
  5179. case `/usr/bin/file conftest.o` in
  5180. *64-bit*)
  5181. case $lt_cv_prog_gnu_ld in
  5182. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5183. *)
  5184. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5185. LD="${LD-ld} -64"
  5186. fi
  5187. ;;
  5188. esac
  5189. ;;
  5190. esac
  5191. fi
  5192. rm -rf conftest*
  5193. ;;
  5194. esac
  5195. need_locks="$enable_libtool_lock"
  5196. case $host_os in
  5197. rhapsody* | darwin*)
  5198. if test -n "$ac_tool_prefix"; then
  5199. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5200. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5201. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5202. $as_echo_n "checking for $ac_word... " >&6; }
  5203. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5204. $as_echo_n "(cached) " >&6
  5205. else
  5206. if test -n "$DSYMUTIL"; then
  5207. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5208. else
  5209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5210. for as_dir in $PATH
  5211. do
  5212. IFS=$as_save_IFS
  5213. test -z "$as_dir" && as_dir=.
  5214. for ac_exec_ext in '' $ac_executable_extensions; do
  5215. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5216. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5217. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5218. break 2
  5219. fi
  5220. done
  5221. done
  5222. IFS=$as_save_IFS
  5223. fi
  5224. fi
  5225. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5226. if test -n "$DSYMUTIL"; then
  5227. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5228. $as_echo "$DSYMUTIL" >&6; }
  5229. else
  5230. { $as_echo "$as_me:$LINENO: result: no" >&5
  5231. $as_echo "no" >&6; }
  5232. fi
  5233. fi
  5234. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5235. ac_ct_DSYMUTIL=$DSYMUTIL
  5236. # Extract the first word of "dsymutil", so it can be a program name with args.
  5237. set dummy dsymutil; ac_word=$2
  5238. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5239. $as_echo_n "checking for $ac_word... " >&6; }
  5240. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5241. $as_echo_n "(cached) " >&6
  5242. else
  5243. if test -n "$ac_ct_DSYMUTIL"; then
  5244. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5245. else
  5246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5247. for as_dir in $PATH
  5248. do
  5249. IFS=$as_save_IFS
  5250. test -z "$as_dir" && as_dir=.
  5251. for ac_exec_ext in '' $ac_executable_extensions; do
  5252. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5253. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5254. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5255. break 2
  5256. fi
  5257. done
  5258. done
  5259. IFS=$as_save_IFS
  5260. fi
  5261. fi
  5262. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5263. if test -n "$ac_ct_DSYMUTIL"; then
  5264. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5265. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5266. else
  5267. { $as_echo "$as_me:$LINENO: result: no" >&5
  5268. $as_echo "no" >&6; }
  5269. fi
  5270. if test "x$ac_ct_DSYMUTIL" = x; then
  5271. DSYMUTIL=":"
  5272. else
  5273. case $cross_compiling:$ac_tool_warned in
  5274. yes:)
  5275. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5276. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5277. ac_tool_warned=yes ;;
  5278. esac
  5279. DSYMUTIL=$ac_ct_DSYMUTIL
  5280. fi
  5281. else
  5282. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5283. fi
  5284. if test -n "$ac_tool_prefix"; then
  5285. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5286. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5287. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5288. $as_echo_n "checking for $ac_word... " >&6; }
  5289. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5290. $as_echo_n "(cached) " >&6
  5291. else
  5292. if test -n "$NMEDIT"; then
  5293. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5294. else
  5295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5296. for as_dir in $PATH
  5297. do
  5298. IFS=$as_save_IFS
  5299. test -z "$as_dir" && as_dir=.
  5300. for ac_exec_ext in '' $ac_executable_extensions; do
  5301. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5302. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5303. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5304. break 2
  5305. fi
  5306. done
  5307. done
  5308. IFS=$as_save_IFS
  5309. fi
  5310. fi
  5311. NMEDIT=$ac_cv_prog_NMEDIT
  5312. if test -n "$NMEDIT"; then
  5313. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5314. $as_echo "$NMEDIT" >&6; }
  5315. else
  5316. { $as_echo "$as_me:$LINENO: result: no" >&5
  5317. $as_echo "no" >&6; }
  5318. fi
  5319. fi
  5320. if test -z "$ac_cv_prog_NMEDIT"; then
  5321. ac_ct_NMEDIT=$NMEDIT
  5322. # Extract the first word of "nmedit", so it can be a program name with args.
  5323. set dummy nmedit; ac_word=$2
  5324. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5325. $as_echo_n "checking for $ac_word... " >&6; }
  5326. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5327. $as_echo_n "(cached) " >&6
  5328. else
  5329. if test -n "$ac_ct_NMEDIT"; then
  5330. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5331. else
  5332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5333. for as_dir in $PATH
  5334. do
  5335. IFS=$as_save_IFS
  5336. test -z "$as_dir" && as_dir=.
  5337. for ac_exec_ext in '' $ac_executable_extensions; do
  5338. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5339. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5340. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5341. break 2
  5342. fi
  5343. done
  5344. done
  5345. IFS=$as_save_IFS
  5346. fi
  5347. fi
  5348. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5349. if test -n "$ac_ct_NMEDIT"; then
  5350. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5351. $as_echo "$ac_ct_NMEDIT" >&6; }
  5352. else
  5353. { $as_echo "$as_me:$LINENO: result: no" >&5
  5354. $as_echo "no" >&6; }
  5355. fi
  5356. if test "x$ac_ct_NMEDIT" = x; then
  5357. NMEDIT=":"
  5358. else
  5359. case $cross_compiling:$ac_tool_warned in
  5360. yes:)
  5361. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5362. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5363. ac_tool_warned=yes ;;
  5364. esac
  5365. NMEDIT=$ac_ct_NMEDIT
  5366. fi
  5367. else
  5368. NMEDIT="$ac_cv_prog_NMEDIT"
  5369. fi
  5370. if test -n "$ac_tool_prefix"; then
  5371. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5372. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5373. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5374. $as_echo_n "checking for $ac_word... " >&6; }
  5375. if test "${ac_cv_prog_LIPO+set}" = set; then
  5376. $as_echo_n "(cached) " >&6
  5377. else
  5378. if test -n "$LIPO"; then
  5379. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5380. else
  5381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5382. for as_dir in $PATH
  5383. do
  5384. IFS=$as_save_IFS
  5385. test -z "$as_dir" && as_dir=.
  5386. for ac_exec_ext in '' $ac_executable_extensions; do
  5387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5388. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5389. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5390. break 2
  5391. fi
  5392. done
  5393. done
  5394. IFS=$as_save_IFS
  5395. fi
  5396. fi
  5397. LIPO=$ac_cv_prog_LIPO
  5398. if test -n "$LIPO"; then
  5399. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5400. $as_echo "$LIPO" >&6; }
  5401. else
  5402. { $as_echo "$as_me:$LINENO: result: no" >&5
  5403. $as_echo "no" >&6; }
  5404. fi
  5405. fi
  5406. if test -z "$ac_cv_prog_LIPO"; then
  5407. ac_ct_LIPO=$LIPO
  5408. # Extract the first word of "lipo", so it can be a program name with args.
  5409. set dummy lipo; ac_word=$2
  5410. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5411. $as_echo_n "checking for $ac_word... " >&6; }
  5412. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5413. $as_echo_n "(cached) " >&6
  5414. else
  5415. if test -n "$ac_ct_LIPO"; then
  5416. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5417. else
  5418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5419. for as_dir in $PATH
  5420. do
  5421. IFS=$as_save_IFS
  5422. test -z "$as_dir" && as_dir=.
  5423. for ac_exec_ext in '' $ac_executable_extensions; do
  5424. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5425. ac_cv_prog_ac_ct_LIPO="lipo"
  5426. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5427. break 2
  5428. fi
  5429. done
  5430. done
  5431. IFS=$as_save_IFS
  5432. fi
  5433. fi
  5434. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5435. if test -n "$ac_ct_LIPO"; then
  5436. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5437. $as_echo "$ac_ct_LIPO" >&6; }
  5438. else
  5439. { $as_echo "$as_me:$LINENO: result: no" >&5
  5440. $as_echo "no" >&6; }
  5441. fi
  5442. if test "x$ac_ct_LIPO" = x; then
  5443. LIPO=":"
  5444. else
  5445. case $cross_compiling:$ac_tool_warned in
  5446. yes:)
  5447. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5448. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5449. ac_tool_warned=yes ;;
  5450. esac
  5451. LIPO=$ac_ct_LIPO
  5452. fi
  5453. else
  5454. LIPO="$ac_cv_prog_LIPO"
  5455. fi
  5456. if test -n "$ac_tool_prefix"; then
  5457. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5458. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5459. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5460. $as_echo_n "checking for $ac_word... " >&6; }
  5461. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5462. $as_echo_n "(cached) " >&6
  5463. else
  5464. if test -n "$OTOOL"; then
  5465. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5466. else
  5467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5468. for as_dir in $PATH
  5469. do
  5470. IFS=$as_save_IFS
  5471. test -z "$as_dir" && as_dir=.
  5472. for ac_exec_ext in '' $ac_executable_extensions; do
  5473. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5474. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5475. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5476. break 2
  5477. fi
  5478. done
  5479. done
  5480. IFS=$as_save_IFS
  5481. fi
  5482. fi
  5483. OTOOL=$ac_cv_prog_OTOOL
  5484. if test -n "$OTOOL"; then
  5485. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5486. $as_echo "$OTOOL" >&6; }
  5487. else
  5488. { $as_echo "$as_me:$LINENO: result: no" >&5
  5489. $as_echo "no" >&6; }
  5490. fi
  5491. fi
  5492. if test -z "$ac_cv_prog_OTOOL"; then
  5493. ac_ct_OTOOL=$OTOOL
  5494. # Extract the first word of "otool", so it can be a program name with args.
  5495. set dummy otool; ac_word=$2
  5496. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5497. $as_echo_n "checking for $ac_word... " >&6; }
  5498. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. if test -n "$ac_ct_OTOOL"; then
  5502. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5503. else
  5504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5505. for as_dir in $PATH
  5506. do
  5507. IFS=$as_save_IFS
  5508. test -z "$as_dir" && as_dir=.
  5509. for ac_exec_ext in '' $ac_executable_extensions; do
  5510. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5511. ac_cv_prog_ac_ct_OTOOL="otool"
  5512. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5513. break 2
  5514. fi
  5515. done
  5516. done
  5517. IFS=$as_save_IFS
  5518. fi
  5519. fi
  5520. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5521. if test -n "$ac_ct_OTOOL"; then
  5522. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5523. $as_echo "$ac_ct_OTOOL" >&6; }
  5524. else
  5525. { $as_echo "$as_me:$LINENO: result: no" >&5
  5526. $as_echo "no" >&6; }
  5527. fi
  5528. if test "x$ac_ct_OTOOL" = x; then
  5529. OTOOL=":"
  5530. else
  5531. case $cross_compiling:$ac_tool_warned in
  5532. yes:)
  5533. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5534. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5535. ac_tool_warned=yes ;;
  5536. esac
  5537. OTOOL=$ac_ct_OTOOL
  5538. fi
  5539. else
  5540. OTOOL="$ac_cv_prog_OTOOL"
  5541. fi
  5542. if test -n "$ac_tool_prefix"; then
  5543. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5544. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5545. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5546. $as_echo_n "checking for $ac_word... " >&6; }
  5547. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5548. $as_echo_n "(cached) " >&6
  5549. else
  5550. if test -n "$OTOOL64"; then
  5551. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5552. else
  5553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5554. for as_dir in $PATH
  5555. do
  5556. IFS=$as_save_IFS
  5557. test -z "$as_dir" && as_dir=.
  5558. for ac_exec_ext in '' $ac_executable_extensions; do
  5559. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5560. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5561. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5562. break 2
  5563. fi
  5564. done
  5565. done
  5566. IFS=$as_save_IFS
  5567. fi
  5568. fi
  5569. OTOOL64=$ac_cv_prog_OTOOL64
  5570. if test -n "$OTOOL64"; then
  5571. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5572. $as_echo "$OTOOL64" >&6; }
  5573. else
  5574. { $as_echo "$as_me:$LINENO: result: no" >&5
  5575. $as_echo "no" >&6; }
  5576. fi
  5577. fi
  5578. if test -z "$ac_cv_prog_OTOOL64"; then
  5579. ac_ct_OTOOL64=$OTOOL64
  5580. # Extract the first word of "otool64", so it can be a program name with args.
  5581. set dummy otool64; ac_word=$2
  5582. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5583. $as_echo_n "checking for $ac_word... " >&6; }
  5584. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5585. $as_echo_n "(cached) " >&6
  5586. else
  5587. if test -n "$ac_ct_OTOOL64"; then
  5588. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5589. else
  5590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5591. for as_dir in $PATH
  5592. do
  5593. IFS=$as_save_IFS
  5594. test -z "$as_dir" && as_dir=.
  5595. for ac_exec_ext in '' $ac_executable_extensions; do
  5596. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5597. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5598. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5599. break 2
  5600. fi
  5601. done
  5602. done
  5603. IFS=$as_save_IFS
  5604. fi
  5605. fi
  5606. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5607. if test -n "$ac_ct_OTOOL64"; then
  5608. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5609. $as_echo "$ac_ct_OTOOL64" >&6; }
  5610. else
  5611. { $as_echo "$as_me:$LINENO: result: no" >&5
  5612. $as_echo "no" >&6; }
  5613. fi
  5614. if test "x$ac_ct_OTOOL64" = x; then
  5615. OTOOL64=":"
  5616. else
  5617. case $cross_compiling:$ac_tool_warned in
  5618. yes:)
  5619. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5620. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5621. ac_tool_warned=yes ;;
  5622. esac
  5623. OTOOL64=$ac_ct_OTOOL64
  5624. fi
  5625. else
  5626. OTOOL64="$ac_cv_prog_OTOOL64"
  5627. fi
  5628. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5629. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5630. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5631. $as_echo_n "(cached) " >&6
  5632. else
  5633. lt_cv_apple_cc_single_mod=no
  5634. if test -z "${LT_MULTI_MODULE}"; then
  5635. # By default we will add the -single_module flag. You can override
  5636. # by either setting the environment variable LT_MULTI_MODULE
  5637. # non-empty at configure time, or by adding -multi_module to the
  5638. # link flags.
  5639. rm -rf libconftest.dylib*
  5640. echo "int foo(void){return 1;}" > conftest.c
  5641. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5642. -dynamiclib -Wl,-single_module conftest.c" >&5
  5643. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5644. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5645. _lt_result=$?
  5646. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5647. lt_cv_apple_cc_single_mod=yes
  5648. else
  5649. cat conftest.err >&5
  5650. fi
  5651. rm -rf libconftest.dylib*
  5652. rm -f conftest.*
  5653. fi
  5654. fi
  5655. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5656. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5657. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5658. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5659. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5660. $as_echo_n "(cached) " >&6
  5661. else
  5662. lt_cv_ld_exported_symbols_list=no
  5663. save_LDFLAGS=$LDFLAGS
  5664. echo "_main" > conftest.sym
  5665. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5666. cat >conftest.$ac_ext <<_ACEOF
  5667. /* confdefs.h. */
  5668. _ACEOF
  5669. cat confdefs.h >>conftest.$ac_ext
  5670. cat >>conftest.$ac_ext <<_ACEOF
  5671. /* end confdefs.h. */
  5672. int
  5673. main ()
  5674. {
  5675. ;
  5676. return 0;
  5677. }
  5678. _ACEOF
  5679. rm -f conftest.$ac_objext conftest$ac_exeext
  5680. if { (ac_try="$ac_link"
  5681. case "(($ac_try" in
  5682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5683. *) ac_try_echo=$ac_try;;
  5684. esac
  5685. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5686. $as_echo "$ac_try_echo") >&5
  5687. (eval "$ac_link") 2>conftest.er1
  5688. ac_status=$?
  5689. grep -v '^ *+' conftest.er1 >conftest.err
  5690. rm -f conftest.er1
  5691. cat conftest.err >&5
  5692. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5693. (exit $ac_status); } && {
  5694. test -z "$ac_c_werror_flag" ||
  5695. test ! -s conftest.err
  5696. } && test -s conftest$ac_exeext && {
  5697. test "$cross_compiling" = yes ||
  5698. $as_test_x conftest$ac_exeext
  5699. }; then
  5700. lt_cv_ld_exported_symbols_list=yes
  5701. else
  5702. $as_echo "$as_me: failed program was:" >&5
  5703. sed 's/^/| /' conftest.$ac_ext >&5
  5704. lt_cv_ld_exported_symbols_list=no
  5705. fi
  5706. rm -rf conftest.dSYM
  5707. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5708. conftest$ac_exeext conftest.$ac_ext
  5709. LDFLAGS="$save_LDFLAGS"
  5710. fi
  5711. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  5712. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5713. case $host_os in
  5714. rhapsody* | darwin1.[012])
  5715. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5716. darwin1.*)
  5717. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5718. darwin*) # darwin 5.x on
  5719. # if running on 10.5 or later, the deployment target defaults
  5720. # to the OS version, if on x86, and 10.4, the deployment
  5721. # target defaults to 10.4. Don't you love it?
  5722. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5723. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5724. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5725. 10.[012]*)
  5726. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5727. 10.*)
  5728. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5729. esac
  5730. ;;
  5731. esac
  5732. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5733. _lt_dar_single_mod='$single_module'
  5734. fi
  5735. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5736. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5737. else
  5738. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5739. fi
  5740. if test "$DSYMUTIL" != ":"; then
  5741. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5742. else
  5743. _lt_dsymutil=
  5744. fi
  5745. ;;
  5746. esac
  5747. for ac_header in dlfcn.h
  5748. do
  5749. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5750. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5751. $as_echo_n "checking for $ac_header... " >&6; }
  5752. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5753. $as_echo_n "(cached) " >&6
  5754. else
  5755. cat >conftest.$ac_ext <<_ACEOF
  5756. /* confdefs.h. */
  5757. _ACEOF
  5758. cat confdefs.h >>conftest.$ac_ext
  5759. cat >>conftest.$ac_ext <<_ACEOF
  5760. /* end confdefs.h. */
  5761. $ac_includes_default
  5762. #include <$ac_header>
  5763. _ACEOF
  5764. rm -f conftest.$ac_objext
  5765. if { (ac_try="$ac_compile"
  5766. case "(($ac_try" in
  5767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5768. *) ac_try_echo=$ac_try;;
  5769. esac
  5770. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5771. $as_echo "$ac_try_echo") >&5
  5772. (eval "$ac_compile") 2>conftest.er1
  5773. ac_status=$?
  5774. grep -v '^ *+' conftest.er1 >conftest.err
  5775. rm -f conftest.er1
  5776. cat conftest.err >&5
  5777. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5778. (exit $ac_status); } && {
  5779. test -z "$ac_c_werror_flag" ||
  5780. test ! -s conftest.err
  5781. } && test -s conftest.$ac_objext; then
  5782. eval "$as_ac_Header=yes"
  5783. else
  5784. $as_echo "$as_me: failed program was:" >&5
  5785. sed 's/^/| /' conftest.$ac_ext >&5
  5786. eval "$as_ac_Header=no"
  5787. fi
  5788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5789. fi
  5790. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5791. $as_echo "$as_val"'`
  5792. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5793. $as_echo "$ac_res" >&6; }
  5794. as_val=`eval 'as_val=${'$as_ac_Header'}
  5795. $as_echo "$as_val"'`
  5796. if test "x$as_val" = x""yes; then
  5797. cat >>confdefs.h <<_ACEOF
  5798. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5799. _ACEOF
  5800. fi
  5801. done
  5802. # Set options
  5803. enable_win32_dll=yes
  5804. case $host in
  5805. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  5806. if test -n "$ac_tool_prefix"; then
  5807. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5808. set dummy ${ac_tool_prefix}as; ac_word=$2
  5809. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5810. $as_echo_n "checking for $ac_word... " >&6; }
  5811. if test "${ac_cv_prog_AS+set}" = set; then
  5812. $as_echo_n "(cached) " >&6
  5813. else
  5814. if test -n "$AS"; then
  5815. ac_cv_prog_AS="$AS" # Let the user override the test.
  5816. else
  5817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5818. for as_dir in $PATH
  5819. do
  5820. IFS=$as_save_IFS
  5821. test -z "$as_dir" && as_dir=.
  5822. for ac_exec_ext in '' $ac_executable_extensions; do
  5823. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5824. ac_cv_prog_AS="${ac_tool_prefix}as"
  5825. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5826. break 2
  5827. fi
  5828. done
  5829. done
  5830. IFS=$as_save_IFS
  5831. fi
  5832. fi
  5833. AS=$ac_cv_prog_AS
  5834. if test -n "$AS"; then
  5835. { $as_echo "$as_me:$LINENO: result: $AS" >&5
  5836. $as_echo "$AS" >&6; }
  5837. else
  5838. { $as_echo "$as_me:$LINENO: result: no" >&5
  5839. $as_echo "no" >&6; }
  5840. fi
  5841. fi
  5842. if test -z "$ac_cv_prog_AS"; then
  5843. ac_ct_AS=$AS
  5844. # Extract the first word of "as", so it can be a program name with args.
  5845. set dummy as; ac_word=$2
  5846. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5847. $as_echo_n "checking for $ac_word... " >&6; }
  5848. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  5849. $as_echo_n "(cached) " >&6
  5850. else
  5851. if test -n "$ac_ct_AS"; then
  5852. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5853. else
  5854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5855. for as_dir in $PATH
  5856. do
  5857. IFS=$as_save_IFS
  5858. test -z "$as_dir" && as_dir=.
  5859. for ac_exec_ext in '' $ac_executable_extensions; do
  5860. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5861. ac_cv_prog_ac_ct_AS="as"
  5862. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5863. break 2
  5864. fi
  5865. done
  5866. done
  5867. IFS=$as_save_IFS
  5868. fi
  5869. fi
  5870. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5871. if test -n "$ac_ct_AS"; then
  5872. { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  5873. $as_echo "$ac_ct_AS" >&6; }
  5874. else
  5875. { $as_echo "$as_me:$LINENO: result: no" >&5
  5876. $as_echo "no" >&6; }
  5877. fi
  5878. if test "x$ac_ct_AS" = x; then
  5879. AS="false"
  5880. else
  5881. case $cross_compiling:$ac_tool_warned in
  5882. yes:)
  5883. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5884. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5885. ac_tool_warned=yes ;;
  5886. esac
  5887. AS=$ac_ct_AS
  5888. fi
  5889. else
  5890. AS="$ac_cv_prog_AS"
  5891. fi
  5892. if test -n "$ac_tool_prefix"; then
  5893. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5894. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5895. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5896. $as_echo_n "checking for $ac_word... " >&6; }
  5897. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  5898. $as_echo_n "(cached) " >&6
  5899. else
  5900. if test -n "$DLLTOOL"; then
  5901. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5902. else
  5903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5904. for as_dir in $PATH
  5905. do
  5906. IFS=$as_save_IFS
  5907. test -z "$as_dir" && as_dir=.
  5908. for ac_exec_ext in '' $ac_executable_extensions; do
  5909. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5910. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5911. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5912. break 2
  5913. fi
  5914. done
  5915. done
  5916. IFS=$as_save_IFS
  5917. fi
  5918. fi
  5919. DLLTOOL=$ac_cv_prog_DLLTOOL
  5920. if test -n "$DLLTOOL"; then
  5921. { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  5922. $as_echo "$DLLTOOL" >&6; }
  5923. else
  5924. { $as_echo "$as_me:$LINENO: result: no" >&5
  5925. $as_echo "no" >&6; }
  5926. fi
  5927. fi
  5928. if test -z "$ac_cv_prog_DLLTOOL"; then
  5929. ac_ct_DLLTOOL=$DLLTOOL
  5930. # Extract the first word of "dlltool", so it can be a program name with args.
  5931. set dummy dlltool; ac_word=$2
  5932. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5933. $as_echo_n "checking for $ac_word... " >&6; }
  5934. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  5935. $as_echo_n "(cached) " >&6
  5936. else
  5937. if test -n "$ac_ct_DLLTOOL"; then
  5938. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5939. else
  5940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5941. for as_dir in $PATH
  5942. do
  5943. IFS=$as_save_IFS
  5944. test -z "$as_dir" && as_dir=.
  5945. for ac_exec_ext in '' $ac_executable_extensions; do
  5946. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5947. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5948. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5949. break 2
  5950. fi
  5951. done
  5952. done
  5953. IFS=$as_save_IFS
  5954. fi
  5955. fi
  5956. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5957. if test -n "$ac_ct_DLLTOOL"; then
  5958. { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  5959. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5960. else
  5961. { $as_echo "$as_me:$LINENO: result: no" >&5
  5962. $as_echo "no" >&6; }
  5963. fi
  5964. if test "x$ac_ct_DLLTOOL" = x; then
  5965. DLLTOOL="false"
  5966. else
  5967. case $cross_compiling:$ac_tool_warned in
  5968. yes:)
  5969. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5970. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5971. ac_tool_warned=yes ;;
  5972. esac
  5973. DLLTOOL=$ac_ct_DLLTOOL
  5974. fi
  5975. else
  5976. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5977. fi
  5978. if test -n "$ac_tool_prefix"; then
  5979. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5980. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5981. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5982. $as_echo_n "checking for $ac_word... " >&6; }
  5983. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5984. $as_echo_n "(cached) " >&6
  5985. else
  5986. if test -n "$OBJDUMP"; then
  5987. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5988. else
  5989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5990. for as_dir in $PATH
  5991. do
  5992. IFS=$as_save_IFS
  5993. test -z "$as_dir" && as_dir=.
  5994. for ac_exec_ext in '' $ac_executable_extensions; do
  5995. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5996. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5997. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5998. break 2
  5999. fi
  6000. done
  6001. done
  6002. IFS=$as_save_IFS
  6003. fi
  6004. fi
  6005. OBJDUMP=$ac_cv_prog_OBJDUMP
  6006. if test -n "$OBJDUMP"; then
  6007. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  6008. $as_echo "$OBJDUMP" >&6; }
  6009. else
  6010. { $as_echo "$as_me:$LINENO: result: no" >&5
  6011. $as_echo "no" >&6; }
  6012. fi
  6013. fi
  6014. if test -z "$ac_cv_prog_OBJDUMP"; then
  6015. ac_ct_OBJDUMP=$OBJDUMP
  6016. # Extract the first word of "objdump", so it can be a program name with args.
  6017. set dummy objdump; ac_word=$2
  6018. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6019. $as_echo_n "checking for $ac_word... " >&6; }
  6020. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  6021. $as_echo_n "(cached) " >&6
  6022. else
  6023. if test -n "$ac_ct_OBJDUMP"; then
  6024. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6025. else
  6026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6027. for as_dir in $PATH
  6028. do
  6029. IFS=$as_save_IFS
  6030. test -z "$as_dir" && as_dir=.
  6031. for ac_exec_ext in '' $ac_executable_extensions; do
  6032. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6033. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6034. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6035. break 2
  6036. fi
  6037. done
  6038. done
  6039. IFS=$as_save_IFS
  6040. fi
  6041. fi
  6042. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6043. if test -n "$ac_ct_OBJDUMP"; then
  6044. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  6045. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6046. else
  6047. { $as_echo "$as_me:$LINENO: result: no" >&5
  6048. $as_echo "no" >&6; }
  6049. fi
  6050. if test "x$ac_ct_OBJDUMP" = x; then
  6051. OBJDUMP="false"
  6052. else
  6053. case $cross_compiling:$ac_tool_warned in
  6054. yes:)
  6055. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6056. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6057. ac_tool_warned=yes ;;
  6058. esac
  6059. OBJDUMP=$ac_ct_OBJDUMP
  6060. fi
  6061. else
  6062. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6063. fi
  6064. ;;
  6065. esac
  6066. test -z "$AS" && AS=as
  6067. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6068. test -z "$OBJDUMP" && OBJDUMP=objdump
  6069. enable_dlopen=no
  6070. # Check whether --enable-shared was given.
  6071. if test "${enable_shared+set}" = set; then
  6072. enableval=$enable_shared; p=${PACKAGE-default}
  6073. case $enableval in
  6074. yes) enable_shared=yes ;;
  6075. no) enable_shared=no ;;
  6076. *)
  6077. enable_shared=no
  6078. # Look at the argument we got. We use all the common list separators.
  6079. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6080. for pkg in $enableval; do
  6081. IFS="$lt_save_ifs"
  6082. if test "X$pkg" = "X$p"; then
  6083. enable_shared=yes
  6084. fi
  6085. done
  6086. IFS="$lt_save_ifs"
  6087. ;;
  6088. esac
  6089. else
  6090. enable_shared=yes
  6091. fi
  6092. # Check whether --enable-static was given.
  6093. if test "${enable_static+set}" = set; then
  6094. enableval=$enable_static; p=${PACKAGE-default}
  6095. case $enableval in
  6096. yes) enable_static=yes ;;
  6097. no) enable_static=no ;;
  6098. *)
  6099. enable_static=no
  6100. # Look at the argument we got. We use all the common list separators.
  6101. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6102. for pkg in $enableval; do
  6103. IFS="$lt_save_ifs"
  6104. if test "X$pkg" = "X$p"; then
  6105. enable_static=yes
  6106. fi
  6107. done
  6108. IFS="$lt_save_ifs"
  6109. ;;
  6110. esac
  6111. else
  6112. enable_static=yes
  6113. fi
  6114. # Check whether --with-pic was given.
  6115. if test "${with_pic+set}" = set; then
  6116. withval=$with_pic; pic_mode="$withval"
  6117. else
  6118. pic_mode=default
  6119. fi
  6120. test -z "$pic_mode" && pic_mode=default
  6121. # Check whether --enable-fast-install was given.
  6122. if test "${enable_fast_install+set}" = set; then
  6123. enableval=$enable_fast_install; p=${PACKAGE-default}
  6124. case $enableval in
  6125. yes) enable_fast_install=yes ;;
  6126. no) enable_fast_install=no ;;
  6127. *)
  6128. enable_fast_install=no
  6129. # Look at the argument we got. We use all the common list separators.
  6130. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6131. for pkg in $enableval; do
  6132. IFS="$lt_save_ifs"
  6133. if test "X$pkg" = "X$p"; then
  6134. enable_fast_install=yes
  6135. fi
  6136. done
  6137. IFS="$lt_save_ifs"
  6138. ;;
  6139. esac
  6140. else
  6141. enable_fast_install=yes
  6142. fi
  6143. # This can be used to rebuild libtool when needed
  6144. LIBTOOL_DEPS="$ltmain"
  6145. # Always use our own libtool.
  6146. LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
  6147. test -z "$LN_S" && LN_S="ln -s"
  6148. if test -n "${ZSH_VERSION+set}" ; then
  6149. setopt NO_GLOB_SUBST
  6150. fi
  6151. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  6152. $as_echo_n "checking for objdir... " >&6; }
  6153. if test "${lt_cv_objdir+set}" = set; then
  6154. $as_echo_n "(cached) " >&6
  6155. else
  6156. rm -f .libs 2>/dev/null
  6157. mkdir .libs 2>/dev/null
  6158. if test -d .libs; then
  6159. lt_cv_objdir=.libs
  6160. else
  6161. # MS-DOS does not allow filenames that begin with a dot.
  6162. lt_cv_objdir=_libs
  6163. fi
  6164. rmdir .libs 2>/dev/null
  6165. fi
  6166. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6167. $as_echo "$lt_cv_objdir" >&6; }
  6168. objdir=$lt_cv_objdir
  6169. cat >>confdefs.h <<_ACEOF
  6170. #define LT_OBJDIR "$lt_cv_objdir/"
  6171. _ACEOF
  6172. case $host_os in
  6173. aix3*)
  6174. # AIX sometimes has problems with the GCC collect2 program. For some
  6175. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6176. # vanish in a puff of smoke.
  6177. if test "X${COLLECT_NAMES+set}" != Xset; then
  6178. COLLECT_NAMES=
  6179. export COLLECT_NAMES
  6180. fi
  6181. ;;
  6182. esac
  6183. # Sed substitution that helps us do robust quoting. It backslashifies
  6184. # metacharacters that are still active within double-quoted strings.
  6185. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6186. # Same as above, but do not quote variable references.
  6187. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6188. # Sed substitution to delay expansion of an escaped shell variable in a
  6189. # double_quote_subst'ed string.
  6190. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6191. # Sed substitution to delay expansion of an escaped single quote.
  6192. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6193. # Sed substitution to avoid accidental globbing in evaled expressions
  6194. no_glob_subst='s/\*/\\\*/g'
  6195. # Global variables:
  6196. ofile=libtool
  6197. can_build_shared=yes
  6198. # All known linkers require a `.a' archive for static linking (except MSVC,
  6199. # which needs '.lib').
  6200. libext=a
  6201. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6202. old_CC="$CC"
  6203. old_CFLAGS="$CFLAGS"
  6204. # Set sane defaults for various variables
  6205. test -z "$CC" && CC=cc
  6206. test -z "$LTCC" && LTCC=$CC
  6207. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6208. test -z "$LD" && LD=ld
  6209. test -z "$ac_objext" && ac_objext=o
  6210. for cc_temp in $compiler""; do
  6211. case $cc_temp in
  6212. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6213. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6214. \-*) ;;
  6215. *) break;;
  6216. esac
  6217. done
  6218. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6219. # Only perform the check for file, if the check method requires it
  6220. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6221. case $deplibs_check_method in
  6222. file_magic*)
  6223. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6224. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6225. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6226. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6227. $as_echo_n "(cached) " >&6
  6228. else
  6229. case $MAGIC_CMD in
  6230. [\\/*] | ?:[\\/]*)
  6231. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6232. ;;
  6233. *)
  6234. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6235. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6236. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6237. for ac_dir in $ac_dummy; do
  6238. IFS="$lt_save_ifs"
  6239. test -z "$ac_dir" && ac_dir=.
  6240. if test -f $ac_dir/${ac_tool_prefix}file; then
  6241. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6242. if test -n "$file_magic_test_file"; then
  6243. case $deplibs_check_method in
  6244. "file_magic "*)
  6245. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6246. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6247. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6248. $EGREP "$file_magic_regex" > /dev/null; then
  6249. :
  6250. else
  6251. cat <<_LT_EOF 1>&2
  6252. *** Warning: the command libtool uses to detect shared libraries,
  6253. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6254. *** The result is that libtool may fail to recognize shared libraries
  6255. *** as such. This will affect the creation of libtool libraries that
  6256. *** depend on shared libraries, but programs linked with such libtool
  6257. *** libraries will work regardless of this problem. Nevertheless, you
  6258. *** may want to report the problem to your system manager and/or to
  6259. *** bug-libtool@gnu.org
  6260. _LT_EOF
  6261. fi ;;
  6262. esac
  6263. fi
  6264. break
  6265. fi
  6266. done
  6267. IFS="$lt_save_ifs"
  6268. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6269. ;;
  6270. esac
  6271. fi
  6272. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6273. if test -n "$MAGIC_CMD"; then
  6274. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6275. $as_echo "$MAGIC_CMD" >&6; }
  6276. else
  6277. { $as_echo "$as_me:$LINENO: result: no" >&5
  6278. $as_echo "no" >&6; }
  6279. fi
  6280. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6281. if test -n "$ac_tool_prefix"; then
  6282. { $as_echo "$as_me:$LINENO: checking for file" >&5
  6283. $as_echo_n "checking for file... " >&6; }
  6284. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6285. $as_echo_n "(cached) " >&6
  6286. else
  6287. case $MAGIC_CMD in
  6288. [\\/*] | ?:[\\/]*)
  6289. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6290. ;;
  6291. *)
  6292. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6293. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6294. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6295. for ac_dir in $ac_dummy; do
  6296. IFS="$lt_save_ifs"
  6297. test -z "$ac_dir" && ac_dir=.
  6298. if test -f $ac_dir/file; then
  6299. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6300. if test -n "$file_magic_test_file"; then
  6301. case $deplibs_check_method in
  6302. "file_magic "*)
  6303. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6304. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6305. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6306. $EGREP "$file_magic_regex" > /dev/null; then
  6307. :
  6308. else
  6309. cat <<_LT_EOF 1>&2
  6310. *** Warning: the command libtool uses to detect shared libraries,
  6311. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6312. *** The result is that libtool may fail to recognize shared libraries
  6313. *** as such. This will affect the creation of libtool libraries that
  6314. *** depend on shared libraries, but programs linked with such libtool
  6315. *** libraries will work regardless of this problem. Nevertheless, you
  6316. *** may want to report the problem to your system manager and/or to
  6317. *** bug-libtool@gnu.org
  6318. _LT_EOF
  6319. fi ;;
  6320. esac
  6321. fi
  6322. break
  6323. fi
  6324. done
  6325. IFS="$lt_save_ifs"
  6326. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6327. ;;
  6328. esac
  6329. fi
  6330. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6331. if test -n "$MAGIC_CMD"; then
  6332. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6333. $as_echo "$MAGIC_CMD" >&6; }
  6334. else
  6335. { $as_echo "$as_me:$LINENO: result: no" >&5
  6336. $as_echo "no" >&6; }
  6337. fi
  6338. else
  6339. MAGIC_CMD=:
  6340. fi
  6341. fi
  6342. fi
  6343. ;;
  6344. esac
  6345. # Use C for the default configuration in the libtool script
  6346. lt_save_CC="$CC"
  6347. ac_ext=c
  6348. ac_cpp='$CPP $CPPFLAGS'
  6349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6352. # Source file extension for C test sources.
  6353. ac_ext=c
  6354. # Object file extension for compiled C test sources.
  6355. objext=o
  6356. objext=$objext
  6357. # Code to be used in simple compile tests
  6358. lt_simple_compile_test_code="int some_variable = 0;"
  6359. # Code to be used in simple link tests
  6360. lt_simple_link_test_code='int main(){return(0);}'
  6361. # If no C compiler was specified, use CC.
  6362. LTCC=${LTCC-"$CC"}
  6363. # If no C compiler flags were specified, use CFLAGS.
  6364. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6365. # Allow CC to be a program name with arguments.
  6366. compiler=$CC
  6367. # Save the default compiler, since it gets overwritten when the other
  6368. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6369. compiler_DEFAULT=$CC
  6370. # save warnings/boilerplate of simple test code
  6371. ac_outfile=conftest.$ac_objext
  6372. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6373. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6374. _lt_compiler_boilerplate=`cat conftest.err`
  6375. $RM conftest*
  6376. ac_outfile=conftest.$ac_objext
  6377. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6378. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6379. _lt_linker_boilerplate=`cat conftest.err`
  6380. $RM -r conftest*
  6381. ## CAVEAT EMPTOR:
  6382. ## There is no encapsulation within the following macros, do not change
  6383. ## the running order or otherwise move them around unless you know exactly
  6384. ## what you are doing...
  6385. if test -n "$compiler"; then
  6386. lt_prog_compiler_no_builtin_flag=
  6387. if test "$GCC" = yes; then
  6388. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6389. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6390. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6391. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6392. $as_echo_n "(cached) " >&6
  6393. else
  6394. lt_cv_prog_compiler_rtti_exceptions=no
  6395. ac_outfile=conftest.$ac_objext
  6396. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6397. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6398. # Insert the option either (1) after the last *FLAGS variable, or
  6399. # (2) before a word containing "conftest.", or (3) at the end.
  6400. # Note that $ac_compile itself does not contain backslashes and begins
  6401. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6402. # The option is referenced via a variable to avoid confusing sed.
  6403. lt_compile=`echo "$ac_compile" | $SED \
  6404. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6405. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6406. -e 's:$: $lt_compiler_flag:'`
  6407. (eval echo "\"\$as_me:7445: $lt_compile\"" >&5)
  6408. (eval "$lt_compile" 2>conftest.err)
  6409. ac_status=$?
  6410. cat conftest.err >&5
  6411. echo "$as_me:7449: \$? = $ac_status" >&5
  6412. if (exit $ac_status) && test -s "$ac_outfile"; then
  6413. # The compiler can only warn and ignore the option if not recognized
  6414. # So say no if there are warnings other than the usual output.
  6415. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6416. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6417. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6418. lt_cv_prog_compiler_rtti_exceptions=yes
  6419. fi
  6420. fi
  6421. $RM conftest*
  6422. fi
  6423. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6424. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6425. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6426. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6427. else
  6428. :
  6429. fi
  6430. fi
  6431. lt_prog_compiler_wl=
  6432. lt_prog_compiler_pic=
  6433. lt_prog_compiler_static=
  6434. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6435. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6436. if test "$GCC" = yes; then
  6437. lt_prog_compiler_wl='-Wl,'
  6438. lt_prog_compiler_static='-static'
  6439. case $host_os in
  6440. aix*)
  6441. # All AIX code is PIC.
  6442. if test "$host_cpu" = ia64; then
  6443. # AIX 5 now supports IA64 processor
  6444. lt_prog_compiler_static='-Bstatic'
  6445. fi
  6446. ;;
  6447. amigaos*)
  6448. case $host_cpu in
  6449. powerpc)
  6450. # see comment about AmigaOS4 .so support
  6451. lt_prog_compiler_pic='-fPIC'
  6452. ;;
  6453. m68k)
  6454. # FIXME: we need at least 68020 code to build shared libraries, but
  6455. # adding the `-m68020' flag to GCC prevents building anything better,
  6456. # like `-m68040'.
  6457. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6458. ;;
  6459. esac
  6460. ;;
  6461. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6462. # PIC is the default for these OSes.
  6463. ;;
  6464. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6465. # This hack is so that the source file can tell whether it is being
  6466. # built for inclusion in a dll (and should export symbols for example).
  6467. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6468. # (--disable-auto-import) libraries
  6469. lt_prog_compiler_pic='-DDLL_EXPORT'
  6470. ;;
  6471. darwin* | rhapsody*)
  6472. # PIC is the default on this platform
  6473. # Common symbols not allowed in MH_DYLIB files
  6474. lt_prog_compiler_pic='-fno-common'
  6475. ;;
  6476. hpux*)
  6477. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6478. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6479. # sets the default TLS model and affects inlining.
  6480. case $host_cpu in
  6481. hppa*64*)
  6482. # +Z the default
  6483. ;;
  6484. *)
  6485. lt_prog_compiler_pic='-fPIC'
  6486. ;;
  6487. esac
  6488. ;;
  6489. interix[3-9]*)
  6490. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6491. # Instead, we relocate shared libraries at runtime.
  6492. ;;
  6493. msdosdjgpp*)
  6494. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6495. # on systems that don't support them.
  6496. lt_prog_compiler_can_build_shared=no
  6497. enable_shared=no
  6498. ;;
  6499. *nto* | *qnx*)
  6500. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6501. # it will coredump.
  6502. lt_prog_compiler_pic='-fPIC -shared'
  6503. ;;
  6504. sysv4*MP*)
  6505. if test -d /usr/nec; then
  6506. lt_prog_compiler_pic=-Kconform_pic
  6507. fi
  6508. ;;
  6509. *)
  6510. lt_prog_compiler_pic='-fPIC'
  6511. ;;
  6512. esac
  6513. else
  6514. # PORTME Check for flag to pass linker flags through the system compiler.
  6515. case $host_os in
  6516. aix*)
  6517. lt_prog_compiler_wl='-Wl,'
  6518. if test "$host_cpu" = ia64; then
  6519. # AIX 5 now supports IA64 processor
  6520. lt_prog_compiler_static='-Bstatic'
  6521. else
  6522. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6523. fi
  6524. ;;
  6525. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6526. # This hack is so that the source file can tell whether it is being
  6527. # built for inclusion in a dll (and should export symbols for example).
  6528. lt_prog_compiler_pic='-DDLL_EXPORT'
  6529. ;;
  6530. hpux9* | hpux10* | hpux11*)
  6531. lt_prog_compiler_wl='-Wl,'
  6532. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6533. # not for PA HP-UX.
  6534. case $host_cpu in
  6535. hppa*64*|ia64*)
  6536. # +Z the default
  6537. ;;
  6538. *)
  6539. lt_prog_compiler_pic='+Z'
  6540. ;;
  6541. esac
  6542. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6543. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6544. ;;
  6545. irix5* | irix6* | nonstopux*)
  6546. lt_prog_compiler_wl='-Wl,'
  6547. # PIC (with -KPIC) is the default.
  6548. lt_prog_compiler_static='-non_shared'
  6549. ;;
  6550. linux* | k*bsd*-gnu)
  6551. case $cc_basename in
  6552. # old Intel for x86_64 which still supported -KPIC.
  6553. ecc*)
  6554. lt_prog_compiler_wl='-Wl,'
  6555. lt_prog_compiler_pic='-KPIC'
  6556. lt_prog_compiler_static='-static'
  6557. ;;
  6558. # icc used to be incompatible with GCC.
  6559. # ICC 10 doesn't accept -KPIC any more.
  6560. icc* | ifort*)
  6561. lt_prog_compiler_wl='-Wl,'
  6562. lt_prog_compiler_pic='-fPIC'
  6563. lt_prog_compiler_static='-static'
  6564. ;;
  6565. # Lahey Fortran 8.1.
  6566. lf95*)
  6567. lt_prog_compiler_wl='-Wl,'
  6568. lt_prog_compiler_pic='--shared'
  6569. lt_prog_compiler_static='--static'
  6570. ;;
  6571. pgcc* | pgf77* | pgf90* | pgf95*)
  6572. # Portland Group compilers (*not* the Pentium gcc compiler,
  6573. # which looks to be a dead project)
  6574. lt_prog_compiler_wl='-Wl,'
  6575. lt_prog_compiler_pic='-fpic'
  6576. lt_prog_compiler_static='-Bstatic'
  6577. ;;
  6578. ccc*)
  6579. lt_prog_compiler_wl='-Wl,'
  6580. # All Alpha code is PIC.
  6581. lt_prog_compiler_static='-non_shared'
  6582. ;;
  6583. xl*)
  6584. # IBM XL C 8.0/Fortran 10.1 on PPC
  6585. lt_prog_compiler_wl='-Wl,'
  6586. lt_prog_compiler_pic='-qpic'
  6587. lt_prog_compiler_static='-qstaticlink'
  6588. ;;
  6589. *)
  6590. case `$CC -V 2>&1 | sed 5q` in
  6591. *Sun\ C*)
  6592. # Sun C 5.9
  6593. lt_prog_compiler_pic='-KPIC'
  6594. lt_prog_compiler_static='-Bstatic'
  6595. lt_prog_compiler_wl='-Wl,'
  6596. ;;
  6597. *Sun\ F*)
  6598. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6599. lt_prog_compiler_pic='-KPIC'
  6600. lt_prog_compiler_static='-Bstatic'
  6601. lt_prog_compiler_wl=''
  6602. ;;
  6603. esac
  6604. ;;
  6605. esac
  6606. ;;
  6607. newsos6)
  6608. lt_prog_compiler_pic='-KPIC'
  6609. lt_prog_compiler_static='-Bstatic'
  6610. ;;
  6611. *nto* | *qnx*)
  6612. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6613. # it will coredump.
  6614. lt_prog_compiler_pic='-fPIC -shared'
  6615. ;;
  6616. osf3* | osf4* | osf5*)
  6617. lt_prog_compiler_wl='-Wl,'
  6618. # All OSF/1 code is PIC.
  6619. lt_prog_compiler_static='-non_shared'
  6620. ;;
  6621. rdos*)
  6622. lt_prog_compiler_static='-non_shared'
  6623. ;;
  6624. solaris*)
  6625. lt_prog_compiler_pic='-KPIC'
  6626. lt_prog_compiler_static='-Bstatic'
  6627. case $cc_basename in
  6628. f77* | f90* | f95*)
  6629. lt_prog_compiler_wl='-Qoption ld ';;
  6630. *)
  6631. lt_prog_compiler_wl='-Wl,';;
  6632. esac
  6633. ;;
  6634. sunos4*)
  6635. lt_prog_compiler_wl='-Qoption ld '
  6636. lt_prog_compiler_pic='-PIC'
  6637. lt_prog_compiler_static='-Bstatic'
  6638. ;;
  6639. sysv4 | sysv4.2uw2* | sysv4.3*)
  6640. lt_prog_compiler_wl='-Wl,'
  6641. lt_prog_compiler_pic='-KPIC'
  6642. lt_prog_compiler_static='-Bstatic'
  6643. ;;
  6644. sysv4*MP*)
  6645. if test -d /usr/nec ;then
  6646. lt_prog_compiler_pic='-Kconform_pic'
  6647. lt_prog_compiler_static='-Bstatic'
  6648. fi
  6649. ;;
  6650. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6651. lt_prog_compiler_wl='-Wl,'
  6652. lt_prog_compiler_pic='-KPIC'
  6653. lt_prog_compiler_static='-Bstatic'
  6654. ;;
  6655. unicos*)
  6656. lt_prog_compiler_wl='-Wl,'
  6657. lt_prog_compiler_can_build_shared=no
  6658. ;;
  6659. uts4*)
  6660. lt_prog_compiler_pic='-pic'
  6661. lt_prog_compiler_static='-Bstatic'
  6662. ;;
  6663. *)
  6664. lt_prog_compiler_can_build_shared=no
  6665. ;;
  6666. esac
  6667. fi
  6668. case $host_os in
  6669. # For platforms which do not support PIC, -DPIC is meaningless:
  6670. *djgpp*)
  6671. lt_prog_compiler_pic=
  6672. ;;
  6673. *)
  6674. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6675. ;;
  6676. esac
  6677. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6678. $as_echo "$lt_prog_compiler_pic" >&6; }
  6679. #
  6680. # Check to make sure the PIC flag actually works.
  6681. #
  6682. if test -n "$lt_prog_compiler_pic"; then
  6683. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6684. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6685. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  6686. $as_echo_n "(cached) " >&6
  6687. else
  6688. lt_cv_prog_compiler_pic_works=no
  6689. ac_outfile=conftest.$ac_objext
  6690. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6691. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6692. # Insert the option either (1) after the last *FLAGS variable, or
  6693. # (2) before a word containing "conftest.", or (3) at the end.
  6694. # Note that $ac_compile itself does not contain backslashes and begins
  6695. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6696. # The option is referenced via a variable to avoid confusing sed.
  6697. lt_compile=`echo "$ac_compile" | $SED \
  6698. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6699. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6700. -e 's:$: $lt_compiler_flag:'`
  6701. (eval echo "\"\$as_me:7784: $lt_compile\"" >&5)
  6702. (eval "$lt_compile" 2>conftest.err)
  6703. ac_status=$?
  6704. cat conftest.err >&5
  6705. echo "$as_me:7788: \$? = $ac_status" >&5
  6706. if (exit $ac_status) && test -s "$ac_outfile"; then
  6707. # The compiler can only warn and ignore the option if not recognized
  6708. # So say no if there are warnings other than the usual output.
  6709. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6710. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6711. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6712. lt_cv_prog_compiler_pic_works=yes
  6713. fi
  6714. fi
  6715. $RM conftest*
  6716. fi
  6717. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  6718. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6719. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6720. case $lt_prog_compiler_pic in
  6721. "" | " "*) ;;
  6722. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6723. esac
  6724. else
  6725. lt_prog_compiler_pic=
  6726. lt_prog_compiler_can_build_shared=no
  6727. fi
  6728. fi
  6729. #
  6730. # Check to make sure the static flag actually works.
  6731. #
  6732. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6733. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6734. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6735. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  6736. $as_echo_n "(cached) " >&6
  6737. else
  6738. lt_cv_prog_compiler_static_works=no
  6739. save_LDFLAGS="$LDFLAGS"
  6740. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6741. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6742. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6743. # The linker can only warn and ignore the option if not recognized
  6744. # So say no if there are warnings
  6745. if test -s conftest.err; then
  6746. # Append any errors to the config.log.
  6747. cat conftest.err 1>&5
  6748. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6749. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6750. if diff conftest.exp conftest.er2 >/dev/null; then
  6751. lt_cv_prog_compiler_static_works=yes
  6752. fi
  6753. else
  6754. lt_cv_prog_compiler_static_works=yes
  6755. fi
  6756. fi
  6757. $RM -r conftest*
  6758. LDFLAGS="$save_LDFLAGS"
  6759. fi
  6760. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  6761. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6762. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6763. :
  6764. else
  6765. lt_prog_compiler_static=
  6766. fi
  6767. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6768. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6769. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6770. $as_echo_n "(cached) " >&6
  6771. else
  6772. lt_cv_prog_compiler_c_o=no
  6773. $RM -r conftest 2>/dev/null
  6774. mkdir conftest
  6775. cd conftest
  6776. mkdir out
  6777. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6778. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6779. # Insert the option either (1) after the last *FLAGS variable, or
  6780. # (2) before a word containing "conftest.", or (3) at the end.
  6781. # Note that $ac_compile itself does not contain backslashes and begins
  6782. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6783. lt_compile=`echo "$ac_compile" | $SED \
  6784. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6785. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6786. -e 's:$: $lt_compiler_flag:'`
  6787. (eval echo "\"\$as_me:7889: $lt_compile\"" >&5)
  6788. (eval "$lt_compile" 2>out/conftest.err)
  6789. ac_status=$?
  6790. cat out/conftest.err >&5
  6791. echo "$as_me:7893: \$? = $ac_status" >&5
  6792. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6793. then
  6794. # The compiler can only warn and ignore the option if not recognized
  6795. # So say no if there are warnings
  6796. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6797. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6798. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6799. lt_cv_prog_compiler_c_o=yes
  6800. fi
  6801. fi
  6802. chmod u+w . 2>&5
  6803. $RM conftest*
  6804. # SGI C++ compiler will create directory out/ii_files/ for
  6805. # template instantiation
  6806. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6807. $RM out/* && rmdir out
  6808. cd ..
  6809. $RM -r conftest
  6810. $RM conftest*
  6811. fi
  6812. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6813. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6814. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6815. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6816. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6817. $as_echo_n "(cached) " >&6
  6818. else
  6819. lt_cv_prog_compiler_c_o=no
  6820. $RM -r conftest 2>/dev/null
  6821. mkdir conftest
  6822. cd conftest
  6823. mkdir out
  6824. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6825. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6826. # Insert the option either (1) after the last *FLAGS variable, or
  6827. # (2) before a word containing "conftest.", or (3) at the end.
  6828. # Note that $ac_compile itself does not contain backslashes and begins
  6829. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6830. lt_compile=`echo "$ac_compile" | $SED \
  6831. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6832. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6833. -e 's:$: $lt_compiler_flag:'`
  6834. (eval echo "\"\$as_me:7944: $lt_compile\"" >&5)
  6835. (eval "$lt_compile" 2>out/conftest.err)
  6836. ac_status=$?
  6837. cat out/conftest.err >&5
  6838. echo "$as_me:7948: \$? = $ac_status" >&5
  6839. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6840. then
  6841. # The compiler can only warn and ignore the option if not recognized
  6842. # So say no if there are warnings
  6843. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6844. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6845. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6846. lt_cv_prog_compiler_c_o=yes
  6847. fi
  6848. fi
  6849. chmod u+w . 2>&5
  6850. $RM conftest*
  6851. # SGI C++ compiler will create directory out/ii_files/ for
  6852. # template instantiation
  6853. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6854. $RM out/* && rmdir out
  6855. cd ..
  6856. $RM -r conftest
  6857. $RM conftest*
  6858. fi
  6859. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6860. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6861. hard_links="nottested"
  6862. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6863. # do not overwrite the value of need_locks provided by the user
  6864. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6865. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6866. hard_links=yes
  6867. $RM conftest*
  6868. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6869. touch conftest.a
  6870. ln conftest.a conftest.b 2>&5 || hard_links=no
  6871. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6872. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  6873. $as_echo "$hard_links" >&6; }
  6874. if test "$hard_links" = no; then
  6875. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6876. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6877. need_locks=warn
  6878. fi
  6879. else
  6880. need_locks=no
  6881. fi
  6882. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6883. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6884. runpath_var=
  6885. allow_undefined_flag=
  6886. always_export_symbols=no
  6887. archive_cmds=
  6888. archive_expsym_cmds=
  6889. compiler_needs_object=no
  6890. enable_shared_with_static_runtimes=no
  6891. export_dynamic_flag_spec=
  6892. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6893. hardcode_automatic=no
  6894. hardcode_direct=no
  6895. hardcode_direct_absolute=no
  6896. hardcode_libdir_flag_spec=
  6897. hardcode_libdir_flag_spec_ld=
  6898. hardcode_libdir_separator=
  6899. hardcode_minus_L=no
  6900. hardcode_shlibpath_var=unsupported
  6901. inherit_rpath=no
  6902. link_all_deplibs=unknown
  6903. module_cmds=
  6904. module_expsym_cmds=
  6905. old_archive_from_new_cmds=
  6906. old_archive_from_expsyms_cmds=
  6907. thread_safe_flag_spec=
  6908. whole_archive_flag_spec=
  6909. # include_expsyms should be a list of space-separated symbols to be *always*
  6910. # included in the symbol list
  6911. include_expsyms=
  6912. # exclude_expsyms can be an extended regexp of symbols to exclude
  6913. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6914. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6915. # as well as any symbol that contains `d'.
  6916. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6917. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6918. # platforms (ab)use it in PIC code, but their linkers get confused if
  6919. # the symbol is explicitly referenced. Since portable code cannot
  6920. # rely on this symbol name, it's probably fine to never include it in
  6921. # preloaded symbol tables.
  6922. # Exclude shared library initialization/finalization symbols.
  6923. extract_expsyms_cmds=
  6924. case $host_os in
  6925. cygwin* | mingw* | pw32* | cegcc*)
  6926. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6927. # When not using gcc, we currently assume that we are using
  6928. # Microsoft Visual C++.
  6929. if test "$GCC" != yes; then
  6930. with_gnu_ld=no
  6931. fi
  6932. ;;
  6933. interix*)
  6934. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6935. with_gnu_ld=yes
  6936. ;;
  6937. openbsd*)
  6938. with_gnu_ld=no
  6939. ;;
  6940. esac
  6941. ld_shlibs=yes
  6942. if test "$with_gnu_ld" = yes; then
  6943. # If archive_cmds runs LD, not CC, wlarc should be empty
  6944. wlarc='${wl}'
  6945. # Set some defaults for GNU ld with shared library support. These
  6946. # are reset later if shared libraries are not supported. Putting them
  6947. # here allows them to be overridden if necessary.
  6948. runpath_var=LD_RUN_PATH
  6949. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6950. export_dynamic_flag_spec='${wl}--export-dynamic'
  6951. # ancient GNU ld didn't support --whole-archive et. al.
  6952. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6953. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6954. else
  6955. whole_archive_flag_spec=
  6956. fi
  6957. supports_anon_versioning=no
  6958. case `$LD -v 2>&1` in
  6959. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6960. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6961. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6962. *\ 2.11.*) ;; # other 2.11 versions
  6963. *) supports_anon_versioning=yes ;;
  6964. esac
  6965. # See if GNU ld supports shared libraries.
  6966. case $host_os in
  6967. aix[3-9]*)
  6968. # On AIX/PPC, the GNU linker is very broken
  6969. if test "$host_cpu" != ia64; then
  6970. ld_shlibs=no
  6971. cat <<_LT_EOF 1>&2
  6972. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6973. *** to be unable to reliably create shared libraries on AIX.
  6974. *** Therefore, libtool is disabling shared libraries support. If you
  6975. *** really care for shared libraries, you may want to modify your PATH
  6976. *** so that a non-GNU linker is found, and then restart.
  6977. _LT_EOF
  6978. fi
  6979. ;;
  6980. amigaos*)
  6981. case $host_cpu in
  6982. powerpc)
  6983. # see comment about AmigaOS4 .so support
  6984. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6985. archive_expsym_cmds=''
  6986. ;;
  6987. m68k)
  6988. 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)'
  6989. hardcode_libdir_flag_spec='-L$libdir'
  6990. hardcode_minus_L=yes
  6991. ;;
  6992. esac
  6993. ;;
  6994. beos*)
  6995. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6996. allow_undefined_flag=unsupported
  6997. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6998. # support --undefined. This deserves some investigation. FIXME
  6999. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7000. else
  7001. ld_shlibs=no
  7002. fi
  7003. ;;
  7004. cygwin* | mingw* | pw32* | cegcc*)
  7005. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7006. # as there is no search path for DLLs.
  7007. hardcode_libdir_flag_spec='-L$libdir'
  7008. allow_undefined_flag=unsupported
  7009. always_export_symbols=no
  7010. enable_shared_with_static_runtimes=yes
  7011. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7012. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7013. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7014. # If the export-symbols file already is a .def file (1st line
  7015. # is EXPORTS), use it as is; otherwise, prepend...
  7016. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7017. cp $export_symbols $output_objdir/$soname.def;
  7018. else
  7019. echo EXPORTS > $output_objdir/$soname.def;
  7020. cat $export_symbols >> $output_objdir/$soname.def;
  7021. fi~
  7022. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7023. else
  7024. ld_shlibs=no
  7025. fi
  7026. ;;
  7027. interix[3-9]*)
  7028. hardcode_direct=no
  7029. hardcode_shlibpath_var=no
  7030. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7031. export_dynamic_flag_spec='${wl}-E'
  7032. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7033. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7034. # default) and relocated if they conflict, which is a slow very memory
  7035. # consuming and fragmenting process. To avoid this, we pick a random,
  7036. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7037. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7038. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7039. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7040. ;;
  7041. gnu* | linux* | tpf* | k*bsd*-gnu)
  7042. tmp_diet=no
  7043. if test "$host_os" = linux-dietlibc; then
  7044. case $cc_basename in
  7045. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7046. esac
  7047. fi
  7048. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7049. && test "$tmp_diet" = no
  7050. then
  7051. tmp_addflag=
  7052. tmp_sharedflag='-shared'
  7053. case $cc_basename,$host_cpu in
  7054. pgcc*) # Portland Group C compiler
  7055. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7056. tmp_addflag=' $pic_flag'
  7057. ;;
  7058. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7059. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7060. tmp_addflag=' $pic_flag -Mnomain' ;;
  7061. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7062. tmp_addflag=' -i_dynamic' ;;
  7063. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7064. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7065. ifc* | ifort*) # Intel Fortran compiler
  7066. tmp_addflag=' -nofor_main' ;;
  7067. lf95*) # Lahey Fortran 8.1
  7068. whole_archive_flag_spec=
  7069. tmp_sharedflag='--shared' ;;
  7070. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7071. tmp_sharedflag='-qmkshrobj'
  7072. tmp_addflag= ;;
  7073. esac
  7074. case `$CC -V 2>&1 | sed 5q` in
  7075. *Sun\ C*) # Sun C 5.9
  7076. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7077. compiler_needs_object=yes
  7078. tmp_sharedflag='-G' ;;
  7079. *Sun\ F*) # Sun Fortran 8.3
  7080. tmp_sharedflag='-G' ;;
  7081. esac
  7082. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7083. if test "x$supports_anon_versioning" = xyes; then
  7084. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7085. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7086. echo "local: *; };" >> $output_objdir/$libname.ver~
  7087. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7088. fi
  7089. case $cc_basename in
  7090. xlf*)
  7091. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7092. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7093. hardcode_libdir_flag_spec=
  7094. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7095. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7096. if test "x$supports_anon_versioning" = xyes; then
  7097. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7098. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7099. echo "local: *; };" >> $output_objdir/$libname.ver~
  7100. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7101. fi
  7102. ;;
  7103. esac
  7104. else
  7105. ld_shlibs=no
  7106. fi
  7107. ;;
  7108. netbsd*)
  7109. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7110. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7111. wlarc=
  7112. else
  7113. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7114. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7115. fi
  7116. ;;
  7117. solaris*)
  7118. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7119. ld_shlibs=no
  7120. cat <<_LT_EOF 1>&2
  7121. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7122. *** create shared libraries on Solaris systems. Therefore, libtool
  7123. *** is disabling shared libraries support. We urge you to upgrade GNU
  7124. *** binutils to release 2.9.1 or newer. Another option is to modify
  7125. *** your PATH or compiler configuration so that the native linker is
  7126. *** used, and then restart.
  7127. _LT_EOF
  7128. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7129. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7130. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7131. else
  7132. ld_shlibs=no
  7133. fi
  7134. ;;
  7135. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7136. case `$LD -v 2>&1` in
  7137. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7138. ld_shlibs=no
  7139. cat <<_LT_EOF 1>&2
  7140. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7141. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7142. *** is disabling shared libraries support. We urge you to upgrade GNU
  7143. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7144. *** your PATH or compiler configuration so that the native linker is
  7145. *** used, and then restart.
  7146. _LT_EOF
  7147. ;;
  7148. *)
  7149. # For security reasons, it is highly recommended that you always
  7150. # use absolute paths for naming shared libraries, and exclude the
  7151. # DT_RUNPATH tag from executables and libraries. But doing so
  7152. # requires that you compile everything twice, which is a pain.
  7153. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7154. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7155. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7156. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7157. else
  7158. ld_shlibs=no
  7159. fi
  7160. ;;
  7161. esac
  7162. ;;
  7163. sunos4*)
  7164. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7165. wlarc=
  7166. hardcode_direct=yes
  7167. hardcode_shlibpath_var=no
  7168. ;;
  7169. *)
  7170. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7171. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7172. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7173. else
  7174. ld_shlibs=no
  7175. fi
  7176. ;;
  7177. esac
  7178. if test "$ld_shlibs" = no; then
  7179. runpath_var=
  7180. hardcode_libdir_flag_spec=
  7181. export_dynamic_flag_spec=
  7182. whole_archive_flag_spec=
  7183. fi
  7184. else
  7185. # PORTME fill in a description of your system's linker (not GNU ld)
  7186. case $host_os in
  7187. aix3*)
  7188. allow_undefined_flag=unsupported
  7189. always_export_symbols=yes
  7190. 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'
  7191. # Note: this linker hardcodes the directories in LIBPATH if there
  7192. # are no directories specified by -L.
  7193. hardcode_minus_L=yes
  7194. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7195. # Neither direct hardcoding nor static linking is supported with a
  7196. # broken collect2.
  7197. hardcode_direct=unsupported
  7198. fi
  7199. ;;
  7200. aix[4-9]*)
  7201. if test "$host_cpu" = ia64; then
  7202. # On IA64, the linker does run time linking by default, so we don't
  7203. # have to do anything special.
  7204. aix_use_runtimelinking=no
  7205. exp_sym_flag='-Bexport'
  7206. no_entry_flag=""
  7207. else
  7208. # If we're using GNU nm, then we don't want the "-C" option.
  7209. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7210. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7211. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7212. else
  7213. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7214. fi
  7215. aix_use_runtimelinking=no
  7216. # Test if we are trying to use run time linking or normal
  7217. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7218. # need to do runtime linking.
  7219. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7220. for ld_flag in $LDFLAGS; do
  7221. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7222. aix_use_runtimelinking=yes
  7223. break
  7224. fi
  7225. done
  7226. ;;
  7227. esac
  7228. exp_sym_flag='-bexport'
  7229. no_entry_flag='-bnoentry'
  7230. fi
  7231. # When large executables or shared objects are built, AIX ld can
  7232. # have problems creating the table of contents. If linking a library
  7233. # or program results in "error TOC overflow" add -mminimal-toc to
  7234. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7235. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7236. archive_cmds=''
  7237. hardcode_direct=yes
  7238. hardcode_direct_absolute=yes
  7239. hardcode_libdir_separator=':'
  7240. link_all_deplibs=yes
  7241. file_list_spec='${wl}-f,'
  7242. if test "$GCC" = yes; then
  7243. case $host_os in aix4.[012]|aix4.[012].*)
  7244. # We only want to do this on AIX 4.2 and lower, the check
  7245. # below for broken collect2 doesn't work under 4.3+
  7246. collect2name=`${CC} -print-prog-name=collect2`
  7247. if test -f "$collect2name" &&
  7248. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7249. then
  7250. # We have reworked collect2
  7251. :
  7252. else
  7253. # We have old collect2
  7254. hardcode_direct=unsupported
  7255. # It fails to find uninstalled libraries when the uninstalled
  7256. # path is not listed in the libpath. Setting hardcode_minus_L
  7257. # to unsupported forces relinking
  7258. hardcode_minus_L=yes
  7259. hardcode_libdir_flag_spec='-L$libdir'
  7260. hardcode_libdir_separator=
  7261. fi
  7262. ;;
  7263. esac
  7264. shared_flag='-shared'
  7265. if test "$aix_use_runtimelinking" = yes; then
  7266. shared_flag="$shared_flag "'${wl}-G'
  7267. fi
  7268. else
  7269. # not using gcc
  7270. if test "$host_cpu" = ia64; then
  7271. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7272. # chokes on -Wl,-G. The following line is correct:
  7273. shared_flag='-G'
  7274. else
  7275. if test "$aix_use_runtimelinking" = yes; then
  7276. shared_flag='${wl}-G'
  7277. else
  7278. shared_flag='${wl}-bM:SRE'
  7279. fi
  7280. fi
  7281. fi
  7282. export_dynamic_flag_spec='${wl}-bexpall'
  7283. # It seems that -bexpall does not export symbols beginning with
  7284. # underscore (_), so it is better to generate a list of symbols to export.
  7285. always_export_symbols=yes
  7286. if test "$aix_use_runtimelinking" = yes; then
  7287. # Warning - without using the other runtime loading flags (-brtl),
  7288. # -berok will link without error, but may produce a broken library.
  7289. allow_undefined_flag='-berok'
  7290. # Determine the default libpath from the value encoded in an
  7291. # empty executable.
  7292. cat >conftest.$ac_ext <<_ACEOF
  7293. /* confdefs.h. */
  7294. _ACEOF
  7295. cat confdefs.h >>conftest.$ac_ext
  7296. cat >>conftest.$ac_ext <<_ACEOF
  7297. /* end confdefs.h. */
  7298. int
  7299. main ()
  7300. {
  7301. ;
  7302. return 0;
  7303. }
  7304. _ACEOF
  7305. rm -f conftest.$ac_objext conftest$ac_exeext
  7306. if { (ac_try="$ac_link"
  7307. case "(($ac_try" in
  7308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7309. *) ac_try_echo=$ac_try;;
  7310. esac
  7311. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7312. $as_echo "$ac_try_echo") >&5
  7313. (eval "$ac_link") 2>conftest.er1
  7314. ac_status=$?
  7315. grep -v '^ *+' conftest.er1 >conftest.err
  7316. rm -f conftest.er1
  7317. cat conftest.err >&5
  7318. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7319. (exit $ac_status); } && {
  7320. test -z "$ac_c_werror_flag" ||
  7321. test ! -s conftest.err
  7322. } && test -s conftest$ac_exeext && {
  7323. test "$cross_compiling" = yes ||
  7324. $as_test_x conftest$ac_exeext
  7325. }; then
  7326. lt_aix_libpath_sed='
  7327. /Import File Strings/,/^$/ {
  7328. /^0/ {
  7329. s/^0 *\(.*\)$/\1/
  7330. p
  7331. }
  7332. }'
  7333. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7334. # Check for a 64-bit object if we didn't find anything.
  7335. if test -z "$aix_libpath"; then
  7336. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7337. fi
  7338. else
  7339. $as_echo "$as_me: failed program was:" >&5
  7340. sed 's/^/| /' conftest.$ac_ext >&5
  7341. fi
  7342. rm -rf conftest.dSYM
  7343. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7344. conftest$ac_exeext conftest.$ac_ext
  7345. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7346. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7347. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7348. else
  7349. if test "$host_cpu" = ia64; then
  7350. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7351. allow_undefined_flag="-z nodefs"
  7352. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7353. else
  7354. # Determine the default libpath from the value encoded in an
  7355. # empty executable.
  7356. cat >conftest.$ac_ext <<_ACEOF
  7357. /* confdefs.h. */
  7358. _ACEOF
  7359. cat confdefs.h >>conftest.$ac_ext
  7360. cat >>conftest.$ac_ext <<_ACEOF
  7361. /* end confdefs.h. */
  7362. int
  7363. main ()
  7364. {
  7365. ;
  7366. return 0;
  7367. }
  7368. _ACEOF
  7369. rm -f conftest.$ac_objext conftest$ac_exeext
  7370. if { (ac_try="$ac_link"
  7371. case "(($ac_try" in
  7372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7373. *) ac_try_echo=$ac_try;;
  7374. esac
  7375. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7376. $as_echo "$ac_try_echo") >&5
  7377. (eval "$ac_link") 2>conftest.er1
  7378. ac_status=$?
  7379. grep -v '^ *+' conftest.er1 >conftest.err
  7380. rm -f conftest.er1
  7381. cat conftest.err >&5
  7382. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7383. (exit $ac_status); } && {
  7384. test -z "$ac_c_werror_flag" ||
  7385. test ! -s conftest.err
  7386. } && test -s conftest$ac_exeext && {
  7387. test "$cross_compiling" = yes ||
  7388. $as_test_x conftest$ac_exeext
  7389. }; then
  7390. lt_aix_libpath_sed='
  7391. /Import File Strings/,/^$/ {
  7392. /^0/ {
  7393. s/^0 *\(.*\)$/\1/
  7394. p
  7395. }
  7396. }'
  7397. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7398. # Check for a 64-bit object if we didn't find anything.
  7399. if test -z "$aix_libpath"; then
  7400. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7401. fi
  7402. else
  7403. $as_echo "$as_me: failed program was:" >&5
  7404. sed 's/^/| /' conftest.$ac_ext >&5
  7405. fi
  7406. rm -rf conftest.dSYM
  7407. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7408. conftest$ac_exeext conftest.$ac_ext
  7409. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7410. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7411. # Warning - without using the other run time loading flags,
  7412. # -berok will link without error, but may produce a broken library.
  7413. no_undefined_flag=' ${wl}-bernotok'
  7414. allow_undefined_flag=' ${wl}-berok'
  7415. # Exported symbols can be pulled into shared objects from archives
  7416. whole_archive_flag_spec='$convenience'
  7417. archive_cmds_need_lc=yes
  7418. # This is similar to how AIX traditionally builds its shared libraries.
  7419. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7420. fi
  7421. fi
  7422. ;;
  7423. amigaos*)
  7424. case $host_cpu in
  7425. powerpc)
  7426. # see comment about AmigaOS4 .so support
  7427. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7428. archive_expsym_cmds=''
  7429. ;;
  7430. m68k)
  7431. 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)'
  7432. hardcode_libdir_flag_spec='-L$libdir'
  7433. hardcode_minus_L=yes
  7434. ;;
  7435. esac
  7436. ;;
  7437. bsdi[45]*)
  7438. export_dynamic_flag_spec=-rdynamic
  7439. ;;
  7440. cygwin* | mingw* | pw32* | cegcc*)
  7441. # When not using gcc, we currently assume that we are using
  7442. # Microsoft Visual C++.
  7443. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7444. # no search path for DLLs.
  7445. hardcode_libdir_flag_spec=' '
  7446. allow_undefined_flag=unsupported
  7447. # Tell ltmain to make .lib files, not .a files.
  7448. libext=lib
  7449. # Tell ltmain to make .dll files, not .so files.
  7450. shrext_cmds=".dll"
  7451. # FIXME: Setting linknames here is a bad hack.
  7452. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7453. # The linker will automatically build a .lib file if we build a DLL.
  7454. old_archive_from_new_cmds='true'
  7455. # FIXME: Should let the user specify the lib program.
  7456. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7457. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7458. enable_shared_with_static_runtimes=yes
  7459. ;;
  7460. darwin* | rhapsody*)
  7461. archive_cmds_need_lc=no
  7462. hardcode_direct=no
  7463. hardcode_automatic=yes
  7464. hardcode_shlibpath_var=unsupported
  7465. whole_archive_flag_spec=''
  7466. link_all_deplibs=yes
  7467. allow_undefined_flag="$_lt_dar_allow_undefined"
  7468. case $cc_basename in
  7469. ifort*) _lt_dar_can_shared=yes ;;
  7470. *) _lt_dar_can_shared=$GCC ;;
  7471. esac
  7472. if test "$_lt_dar_can_shared" = "yes"; then
  7473. output_verbose_link_cmd=echo
  7474. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7475. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7476. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7477. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7478. else
  7479. ld_shlibs=no
  7480. fi
  7481. ;;
  7482. dgux*)
  7483. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7484. hardcode_libdir_flag_spec='-L$libdir'
  7485. hardcode_shlibpath_var=no
  7486. ;;
  7487. freebsd1*)
  7488. ld_shlibs=no
  7489. ;;
  7490. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7491. # support. Future versions do this automatically, but an explicit c++rt0.o
  7492. # does not break anything, and helps significantly (at the cost of a little
  7493. # extra space).
  7494. freebsd2.2*)
  7495. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7496. hardcode_libdir_flag_spec='-R$libdir'
  7497. hardcode_direct=yes
  7498. hardcode_shlibpath_var=no
  7499. ;;
  7500. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7501. freebsd2*)
  7502. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7503. hardcode_direct=yes
  7504. hardcode_minus_L=yes
  7505. hardcode_shlibpath_var=no
  7506. ;;
  7507. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7508. freebsd* | dragonfly*)
  7509. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7510. hardcode_libdir_flag_spec='-R$libdir'
  7511. hardcode_direct=yes
  7512. hardcode_shlibpath_var=no
  7513. ;;
  7514. hpux9*)
  7515. if test "$GCC" = yes; then
  7516. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7517. else
  7518. 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'
  7519. fi
  7520. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7521. hardcode_libdir_separator=:
  7522. hardcode_direct=yes
  7523. # hardcode_minus_L: Not really in the search PATH,
  7524. # but as the default location of the library.
  7525. hardcode_minus_L=yes
  7526. export_dynamic_flag_spec='${wl}-E'
  7527. ;;
  7528. hpux10*)
  7529. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7530. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7531. else
  7532. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7533. fi
  7534. if test "$with_gnu_ld" = no; then
  7535. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7536. hardcode_libdir_flag_spec_ld='+b $libdir'
  7537. hardcode_libdir_separator=:
  7538. hardcode_direct=yes
  7539. hardcode_direct_absolute=yes
  7540. export_dynamic_flag_spec='${wl}-E'
  7541. # hardcode_minus_L: Not really in the search PATH,
  7542. # but as the default location of the library.
  7543. hardcode_minus_L=yes
  7544. fi
  7545. ;;
  7546. hpux11*)
  7547. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7548. case $host_cpu in
  7549. hppa*64*)
  7550. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7551. ;;
  7552. ia64*)
  7553. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7554. ;;
  7555. *)
  7556. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7557. ;;
  7558. esac
  7559. else
  7560. case $host_cpu in
  7561. hppa*64*)
  7562. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7563. ;;
  7564. ia64*)
  7565. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7566. ;;
  7567. *)
  7568. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7569. ;;
  7570. esac
  7571. fi
  7572. if test "$with_gnu_ld" = no; then
  7573. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7574. hardcode_libdir_separator=:
  7575. case $host_cpu in
  7576. hppa*64*|ia64*)
  7577. hardcode_direct=no
  7578. hardcode_shlibpath_var=no
  7579. ;;
  7580. *)
  7581. hardcode_direct=yes
  7582. hardcode_direct_absolute=yes
  7583. export_dynamic_flag_spec='${wl}-E'
  7584. # hardcode_minus_L: Not really in the search PATH,
  7585. # but as the default location of the library.
  7586. hardcode_minus_L=yes
  7587. ;;
  7588. esac
  7589. fi
  7590. ;;
  7591. irix5* | irix6* | nonstopux*)
  7592. if test "$GCC" = yes; then
  7593. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7594. # Try to use the -exported_symbol ld option, if it does not
  7595. # work, assume that -exports_file does not work either and
  7596. # implicitly export all symbols.
  7597. save_LDFLAGS="$LDFLAGS"
  7598. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7599. cat >conftest.$ac_ext <<_ACEOF
  7600. int foo(void) {}
  7601. _ACEOF
  7602. rm -f conftest.$ac_objext conftest$ac_exeext
  7603. if { (ac_try="$ac_link"
  7604. case "(($ac_try" in
  7605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7606. *) ac_try_echo=$ac_try;;
  7607. esac
  7608. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7609. $as_echo "$ac_try_echo") >&5
  7610. (eval "$ac_link") 2>conftest.er1
  7611. ac_status=$?
  7612. grep -v '^ *+' conftest.er1 >conftest.err
  7613. rm -f conftest.er1
  7614. cat conftest.err >&5
  7615. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7616. (exit $ac_status); } && {
  7617. test -z "$ac_c_werror_flag" ||
  7618. test ! -s conftest.err
  7619. } && test -s conftest$ac_exeext && {
  7620. test "$cross_compiling" = yes ||
  7621. $as_test_x conftest$ac_exeext
  7622. }; then
  7623. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7624. else
  7625. $as_echo "$as_me: failed program was:" >&5
  7626. sed 's/^/| /' conftest.$ac_ext >&5
  7627. fi
  7628. rm -rf conftest.dSYM
  7629. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7630. conftest$ac_exeext conftest.$ac_ext
  7631. LDFLAGS="$save_LDFLAGS"
  7632. else
  7633. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7634. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7635. fi
  7636. archive_cmds_need_lc='no'
  7637. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7638. hardcode_libdir_separator=:
  7639. inherit_rpath=yes
  7640. link_all_deplibs=yes
  7641. ;;
  7642. netbsd*)
  7643. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7644. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7645. else
  7646. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7647. fi
  7648. hardcode_libdir_flag_spec='-R$libdir'
  7649. hardcode_direct=yes
  7650. hardcode_shlibpath_var=no
  7651. ;;
  7652. newsos6)
  7653. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7654. hardcode_direct=yes
  7655. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7656. hardcode_libdir_separator=:
  7657. hardcode_shlibpath_var=no
  7658. ;;
  7659. *nto* | *qnx*)
  7660. ;;
  7661. openbsd*)
  7662. if test -f /usr/libexec/ld.so; then
  7663. hardcode_direct=yes
  7664. hardcode_shlibpath_var=no
  7665. hardcode_direct_absolute=yes
  7666. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7667. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7668. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7669. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7670. export_dynamic_flag_spec='${wl}-E'
  7671. else
  7672. case $host_os in
  7673. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7674. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7675. hardcode_libdir_flag_spec='-R$libdir'
  7676. ;;
  7677. *)
  7678. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7679. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7680. ;;
  7681. esac
  7682. fi
  7683. else
  7684. ld_shlibs=no
  7685. fi
  7686. ;;
  7687. os2*)
  7688. hardcode_libdir_flag_spec='-L$libdir'
  7689. hardcode_minus_L=yes
  7690. allow_undefined_flag=unsupported
  7691. 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'
  7692. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7693. ;;
  7694. osf3*)
  7695. if test "$GCC" = yes; then
  7696. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7697. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7698. else
  7699. allow_undefined_flag=' -expect_unresolved \*'
  7700. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7701. fi
  7702. archive_cmds_need_lc='no'
  7703. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7704. hardcode_libdir_separator=:
  7705. ;;
  7706. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7707. if test "$GCC" = yes; then
  7708. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7709. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7710. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7711. else
  7712. allow_undefined_flag=' -expect_unresolved \*'
  7713. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7714. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  7715. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7716. # Both c and cxx compiler support -rpath directly
  7717. hardcode_libdir_flag_spec='-rpath $libdir'
  7718. fi
  7719. archive_cmds_need_lc='no'
  7720. hardcode_libdir_separator=:
  7721. ;;
  7722. solaris*)
  7723. no_undefined_flag=' -z defs'
  7724. if test "$GCC" = yes; then
  7725. wlarc='${wl}'
  7726. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7727. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7728. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7729. else
  7730. case `$CC -V 2>&1` in
  7731. *"Compilers 5.0"*)
  7732. wlarc=''
  7733. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7734. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7735. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7736. ;;
  7737. *)
  7738. wlarc='${wl}'
  7739. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7740. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7741. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7742. ;;
  7743. esac
  7744. fi
  7745. hardcode_libdir_flag_spec='-R$libdir'
  7746. hardcode_shlibpath_var=no
  7747. case $host_os in
  7748. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7749. *)
  7750. # The compiler driver will combine and reorder linker options,
  7751. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7752. # but is careful enough not to reorder.
  7753. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7754. if test "$GCC" = yes; then
  7755. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7756. else
  7757. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7758. fi
  7759. ;;
  7760. esac
  7761. link_all_deplibs=yes
  7762. ;;
  7763. sunos4*)
  7764. if test "x$host_vendor" = xsequent; then
  7765. # Use $CC to link under sequent, because it throws in some extra .o
  7766. # files that make .init and .fini sections work.
  7767. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7768. else
  7769. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7770. fi
  7771. hardcode_libdir_flag_spec='-L$libdir'
  7772. hardcode_direct=yes
  7773. hardcode_minus_L=yes
  7774. hardcode_shlibpath_var=no
  7775. ;;
  7776. sysv4)
  7777. case $host_vendor in
  7778. sni)
  7779. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7780. hardcode_direct=yes # is this really true???
  7781. ;;
  7782. siemens)
  7783. ## LD is ld it makes a PLAMLIB
  7784. ## CC just makes a GrossModule.
  7785. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7786. reload_cmds='$CC -r -o $output$reload_objs'
  7787. hardcode_direct=no
  7788. ;;
  7789. motorola)
  7790. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7791. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7792. ;;
  7793. esac
  7794. runpath_var='LD_RUN_PATH'
  7795. hardcode_shlibpath_var=no
  7796. ;;
  7797. sysv4.3*)
  7798. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7799. hardcode_shlibpath_var=no
  7800. export_dynamic_flag_spec='-Bexport'
  7801. ;;
  7802. sysv4*MP*)
  7803. if test -d /usr/nec; then
  7804. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7805. hardcode_shlibpath_var=no
  7806. runpath_var=LD_RUN_PATH
  7807. hardcode_runpath_var=yes
  7808. ld_shlibs=yes
  7809. fi
  7810. ;;
  7811. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7812. no_undefined_flag='${wl}-z,text'
  7813. archive_cmds_need_lc=no
  7814. hardcode_shlibpath_var=no
  7815. runpath_var='LD_RUN_PATH'
  7816. if test "$GCC" = yes; then
  7817. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7818. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7819. else
  7820. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7821. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7822. fi
  7823. ;;
  7824. sysv5* | sco3.2v5* | sco5v6*)
  7825. # Note: We can NOT use -z defs as we might desire, because we do not
  7826. # link with -lc, and that would cause any symbols used from libc to
  7827. # always be unresolved, which means just about no library would
  7828. # ever link correctly. If we're not using GNU ld we use -z text
  7829. # though, which does catch some bad symbols but isn't as heavy-handed
  7830. # as -z defs.
  7831. no_undefined_flag='${wl}-z,text'
  7832. allow_undefined_flag='${wl}-z,nodefs'
  7833. archive_cmds_need_lc=no
  7834. hardcode_shlibpath_var=no
  7835. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7836. hardcode_libdir_separator=':'
  7837. link_all_deplibs=yes
  7838. export_dynamic_flag_spec='${wl}-Bexport'
  7839. runpath_var='LD_RUN_PATH'
  7840. if test "$GCC" = yes; then
  7841. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7842. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7843. else
  7844. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7845. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7846. fi
  7847. ;;
  7848. uts4*)
  7849. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7850. hardcode_libdir_flag_spec='-L$libdir'
  7851. hardcode_shlibpath_var=no
  7852. ;;
  7853. *)
  7854. ld_shlibs=no
  7855. ;;
  7856. esac
  7857. if test x$host_vendor = xsni; then
  7858. case $host in
  7859. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7860. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7861. ;;
  7862. esac
  7863. fi
  7864. fi
  7865. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7866. $as_echo "$ld_shlibs" >&6; }
  7867. test "$ld_shlibs" = no && can_build_shared=no
  7868. with_gnu_ld=$with_gnu_ld
  7869. #
  7870. # Do we need to explicitly link libc?
  7871. #
  7872. case "x$archive_cmds_need_lc" in
  7873. x|xyes)
  7874. # Assume -lc should be added
  7875. archive_cmds_need_lc=yes
  7876. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7877. case $archive_cmds in
  7878. *'~'*)
  7879. # FIXME: we may have to deal with multi-command sequences.
  7880. ;;
  7881. '$CC '*)
  7882. # Test whether the compiler implicitly links with -lc since on some
  7883. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7884. # to ld, don't add -lc before -lgcc.
  7885. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7886. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7887. $RM conftest*
  7888. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7889. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7890. (eval $ac_compile) 2>&5
  7891. ac_status=$?
  7892. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7893. (exit $ac_status); } 2>conftest.err; then
  7894. soname=conftest
  7895. lib=conftest
  7896. libobjs=conftest.$ac_objext
  7897. deplibs=
  7898. wl=$lt_prog_compiler_wl
  7899. pic_flag=$lt_prog_compiler_pic
  7900. compiler_flags=-v
  7901. linker_flags=-v
  7902. verstring=
  7903. output_objdir=.
  7904. libname=conftest
  7905. lt_save_allow_undefined_flag=$allow_undefined_flag
  7906. allow_undefined_flag=
  7907. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7908. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7909. ac_status=$?
  7910. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7911. (exit $ac_status); }
  7912. then
  7913. archive_cmds_need_lc=no
  7914. else
  7915. archive_cmds_need_lc=yes
  7916. fi
  7917. allow_undefined_flag=$lt_save_allow_undefined_flag
  7918. else
  7919. cat conftest.err 1>&5
  7920. fi
  7921. $RM conftest*
  7922. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7923. $as_echo "$archive_cmds_need_lc" >&6; }
  7924. ;;
  7925. esac
  7926. fi
  7927. ;;
  7928. esac
  7929. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7930. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7931. if test "$GCC" = yes; then
  7932. case $host_os in
  7933. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7934. *) lt_awk_arg="/^libraries:/" ;;
  7935. esac
  7936. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7937. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7938. # if the path contains ";" then we assume it to be the separator
  7939. # otherwise default to the standard path separator (i.e. ":") - it is
  7940. # assumed that no part of a normal pathname contains ";" but that should
  7941. # okay in the real world where ";" in dirpaths is itself problematic.
  7942. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7943. else
  7944. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7945. fi
  7946. # Ok, now we have the path, separated by spaces, we can step through it
  7947. # and add multilib dir if necessary.
  7948. lt_tmp_lt_search_path_spec=
  7949. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7950. for lt_sys_path in $lt_search_path_spec; do
  7951. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7952. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7953. else
  7954. test -d "$lt_sys_path" && \
  7955. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7956. fi
  7957. done
  7958. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7959. BEGIN {RS=" "; FS="/|\n";} {
  7960. lt_foo="";
  7961. lt_count=0;
  7962. for (lt_i = NF; lt_i > 0; lt_i--) {
  7963. if ($lt_i != "" && $lt_i != ".") {
  7964. if ($lt_i == "..") {
  7965. lt_count++;
  7966. } else {
  7967. if (lt_count == 0) {
  7968. lt_foo="/" $lt_i lt_foo;
  7969. } else {
  7970. lt_count--;
  7971. }
  7972. }
  7973. }
  7974. }
  7975. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7976. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7977. }'`
  7978. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  7979. else
  7980. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7981. fi
  7982. library_names_spec=
  7983. libname_spec='lib$name'
  7984. soname_spec=
  7985. shrext_cmds=".so"
  7986. postinstall_cmds=
  7987. postuninstall_cmds=
  7988. finish_cmds=
  7989. finish_eval=
  7990. shlibpath_var=
  7991. shlibpath_overrides_runpath=unknown
  7992. version_type=none
  7993. dynamic_linker="$host_os ld.so"
  7994. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7995. need_lib_prefix=unknown
  7996. hardcode_into_libs=no
  7997. # when you set need_version to no, make sure it does not cause -set_version
  7998. # flags to be left without arguments
  7999. need_version=unknown
  8000. case $host_os in
  8001. aix3*)
  8002. version_type=linux
  8003. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8004. shlibpath_var=LIBPATH
  8005. # AIX 3 has no versioning support, so we append a major version to the name.
  8006. soname_spec='${libname}${release}${shared_ext}$major'
  8007. ;;
  8008. aix[4-9]*)
  8009. version_type=linux
  8010. need_lib_prefix=no
  8011. need_version=no
  8012. hardcode_into_libs=yes
  8013. if test "$host_cpu" = ia64; then
  8014. # AIX 5 supports IA64
  8015. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8016. shlibpath_var=LD_LIBRARY_PATH
  8017. else
  8018. # With GCC up to 2.95.x, collect2 would create an import file
  8019. # for dependence libraries. The import file would start with
  8020. # the line `#! .'. This would cause the generated library to
  8021. # depend on `.', always an invalid library. This was fixed in
  8022. # development snapshots of GCC prior to 3.0.
  8023. case $host_os in
  8024. aix4 | aix4.[01] | aix4.[01].*)
  8025. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8026. echo ' yes '
  8027. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8028. :
  8029. else
  8030. can_build_shared=no
  8031. fi
  8032. ;;
  8033. esac
  8034. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8035. # soname into executable. Probably we can add versioning support to
  8036. # collect2, so additional links can be useful in future.
  8037. if test "$aix_use_runtimelinking" = yes; then
  8038. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8039. # instead of lib<name>.a to let people know that these are not
  8040. # typical AIX shared libraries.
  8041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8042. else
  8043. # We preserve .a as extension for shared libraries through AIX4.2
  8044. # and later when we are not doing run time linking.
  8045. library_names_spec='${libname}${release}.a $libname.a'
  8046. soname_spec='${libname}${release}${shared_ext}$major'
  8047. fi
  8048. shlibpath_var=LIBPATH
  8049. fi
  8050. ;;
  8051. amigaos*)
  8052. case $host_cpu in
  8053. powerpc)
  8054. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8055. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8057. ;;
  8058. m68k)
  8059. library_names_spec='$libname.ixlibrary $libname.a'
  8060. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8061. 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'
  8062. ;;
  8063. esac
  8064. ;;
  8065. beos*)
  8066. library_names_spec='${libname}${shared_ext}'
  8067. dynamic_linker="$host_os ld.so"
  8068. shlibpath_var=LIBRARY_PATH
  8069. ;;
  8070. bsdi[45]*)
  8071. version_type=linux
  8072. need_version=no
  8073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8074. soname_spec='${libname}${release}${shared_ext}$major'
  8075. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8076. shlibpath_var=LD_LIBRARY_PATH
  8077. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8078. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8079. # the default ld.so.conf also contains /usr/contrib/lib and
  8080. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8081. # libtool to hard-code these into programs
  8082. ;;
  8083. cygwin* | mingw* | pw32* | cegcc*)
  8084. version_type=windows
  8085. shrext_cmds=".dll"
  8086. need_version=no
  8087. need_lib_prefix=no
  8088. case $GCC,$host_os in
  8089. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8090. library_names_spec='$libname.dll.a'
  8091. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8092. postinstall_cmds='base_file=`basename \${file}`~
  8093. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8094. dldir=$destdir/`dirname \$dlpath`~
  8095. test -d \$dldir || mkdir -p \$dldir~
  8096. $install_prog $dir/$dlname \$dldir/$dlname~
  8097. chmod a+x \$dldir/$dlname~
  8098. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8099. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8100. fi'
  8101. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8102. dlpath=$dir/\$dldll~
  8103. $RM \$dlpath'
  8104. shlibpath_overrides_runpath=yes
  8105. case $host_os in
  8106. cygwin*)
  8107. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8108. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8109. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8110. ;;
  8111. mingw* | cegcc*)
  8112. # MinGW DLLs use traditional 'lib' prefix
  8113. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8114. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8115. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8116. # It is most probably a Windows format PATH printed by
  8117. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8118. # path with ; separators, and with drive letters. We can handle the
  8119. # drive letters (cygwin fileutils understands them), so leave them,
  8120. # especially as we might pass files found there to a mingw objdump,
  8121. # which wouldn't understand a cygwinified path. Ahh.
  8122. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8123. else
  8124. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8125. fi
  8126. ;;
  8127. pw32*)
  8128. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8129. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8130. ;;
  8131. esac
  8132. ;;
  8133. *)
  8134. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8135. ;;
  8136. esac
  8137. dynamic_linker='Win32 ld.exe'
  8138. # FIXME: first we should search . and the directory the executable is in
  8139. shlibpath_var=PATH
  8140. ;;
  8141. darwin* | rhapsody*)
  8142. dynamic_linker="$host_os dyld"
  8143. version_type=darwin
  8144. need_lib_prefix=no
  8145. need_version=no
  8146. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8147. soname_spec='${libname}${release}${major}$shared_ext'
  8148. shlibpath_overrides_runpath=yes
  8149. shlibpath_var=DYLD_LIBRARY_PATH
  8150. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8151. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8152. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8153. ;;
  8154. dgux*)
  8155. version_type=linux
  8156. need_lib_prefix=no
  8157. need_version=no
  8158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8159. soname_spec='${libname}${release}${shared_ext}$major'
  8160. shlibpath_var=LD_LIBRARY_PATH
  8161. ;;
  8162. freebsd1*)
  8163. dynamic_linker=no
  8164. ;;
  8165. freebsd* | dragonfly*)
  8166. # DragonFly does not have aout. When/if they implement a new
  8167. # versioning mechanism, adjust this.
  8168. if test -x /usr/bin/objformat; then
  8169. objformat=`/usr/bin/objformat`
  8170. else
  8171. case $host_os in
  8172. freebsd[123]*) objformat=aout ;;
  8173. *) objformat=elf ;;
  8174. esac
  8175. fi
  8176. version_type=freebsd-$objformat
  8177. case $version_type in
  8178. freebsd-elf*)
  8179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8180. need_version=no
  8181. need_lib_prefix=no
  8182. ;;
  8183. freebsd-*)
  8184. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8185. need_version=yes
  8186. ;;
  8187. esac
  8188. shlibpath_var=LD_LIBRARY_PATH
  8189. case $host_os in
  8190. freebsd2*)
  8191. shlibpath_overrides_runpath=yes
  8192. ;;
  8193. freebsd3.[01]* | freebsdelf3.[01]*)
  8194. shlibpath_overrides_runpath=yes
  8195. hardcode_into_libs=yes
  8196. ;;
  8197. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8198. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8199. shlibpath_overrides_runpath=no
  8200. hardcode_into_libs=yes
  8201. ;;
  8202. *) # from 4.6 on, and DragonFly
  8203. shlibpath_overrides_runpath=yes
  8204. hardcode_into_libs=yes
  8205. ;;
  8206. esac
  8207. ;;
  8208. gnu*)
  8209. version_type=linux
  8210. need_lib_prefix=no
  8211. need_version=no
  8212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8213. soname_spec='${libname}${release}${shared_ext}$major'
  8214. shlibpath_var=LD_LIBRARY_PATH
  8215. hardcode_into_libs=yes
  8216. ;;
  8217. hpux9* | hpux10* | hpux11*)
  8218. # Give a soname corresponding to the major version so that dld.sl refuses to
  8219. # link against other versions.
  8220. version_type=sunos
  8221. need_lib_prefix=no
  8222. need_version=no
  8223. case $host_cpu in
  8224. ia64*)
  8225. shrext_cmds='.so'
  8226. hardcode_into_libs=yes
  8227. dynamic_linker="$host_os dld.so"
  8228. shlibpath_var=LD_LIBRARY_PATH
  8229. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8231. soname_spec='${libname}${release}${shared_ext}$major'
  8232. if test "X$HPUX_IA64_MODE" = X32; then
  8233. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8234. else
  8235. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8236. fi
  8237. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8238. ;;
  8239. hppa*64*)
  8240. shrext_cmds='.sl'
  8241. hardcode_into_libs=yes
  8242. dynamic_linker="$host_os dld.sl"
  8243. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8244. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8246. soname_spec='${libname}${release}${shared_ext}$major'
  8247. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8248. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8249. ;;
  8250. *)
  8251. shrext_cmds='.sl'
  8252. dynamic_linker="$host_os dld.sl"
  8253. shlibpath_var=SHLIB_PATH
  8254. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8256. soname_spec='${libname}${release}${shared_ext}$major'
  8257. ;;
  8258. esac
  8259. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8260. postinstall_cmds='chmod 555 $lib'
  8261. ;;
  8262. interix[3-9]*)
  8263. version_type=linux
  8264. need_lib_prefix=no
  8265. need_version=no
  8266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8267. soname_spec='${libname}${release}${shared_ext}$major'
  8268. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8269. shlibpath_var=LD_LIBRARY_PATH
  8270. shlibpath_overrides_runpath=no
  8271. hardcode_into_libs=yes
  8272. ;;
  8273. irix5* | irix6* | nonstopux*)
  8274. case $host_os in
  8275. nonstopux*) version_type=nonstopux ;;
  8276. *)
  8277. if test "$lt_cv_prog_gnu_ld" = yes; then
  8278. version_type=linux
  8279. else
  8280. version_type=irix
  8281. fi ;;
  8282. esac
  8283. need_lib_prefix=no
  8284. need_version=no
  8285. soname_spec='${libname}${release}${shared_ext}$major'
  8286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8287. case $host_os in
  8288. irix5* | nonstopux*)
  8289. libsuff= shlibsuff=
  8290. ;;
  8291. *)
  8292. case $LD in # libtool.m4 will add one of these switches to LD
  8293. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8294. libsuff= shlibsuff= libmagic=32-bit;;
  8295. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8296. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8297. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8298. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8299. *) libsuff= shlibsuff= libmagic=never-match;;
  8300. esac
  8301. ;;
  8302. esac
  8303. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8304. shlibpath_overrides_runpath=no
  8305. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8306. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8307. hardcode_into_libs=yes
  8308. ;;
  8309. # No shared lib support for Linux oldld, aout, or coff.
  8310. linux*oldld* | linux*aout* | linux*coff*)
  8311. dynamic_linker=no
  8312. ;;
  8313. # This must be Linux ELF.
  8314. linux* | k*bsd*-gnu)
  8315. version_type=linux
  8316. need_lib_prefix=no
  8317. need_version=no
  8318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8319. soname_spec='${libname}${release}${shared_ext}$major'
  8320. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8321. shlibpath_var=LD_LIBRARY_PATH
  8322. shlibpath_overrides_runpath=no
  8323. # Some binutils ld are patched to set DT_RUNPATH
  8324. save_LDFLAGS=$LDFLAGS
  8325. save_libdir=$libdir
  8326. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8327. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8328. cat >conftest.$ac_ext <<_ACEOF
  8329. /* confdefs.h. */
  8330. _ACEOF
  8331. cat confdefs.h >>conftest.$ac_ext
  8332. cat >>conftest.$ac_ext <<_ACEOF
  8333. /* end confdefs.h. */
  8334. int
  8335. main ()
  8336. {
  8337. ;
  8338. return 0;
  8339. }
  8340. _ACEOF
  8341. rm -f conftest.$ac_objext conftest$ac_exeext
  8342. if { (ac_try="$ac_link"
  8343. case "(($ac_try" in
  8344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8345. *) ac_try_echo=$ac_try;;
  8346. esac
  8347. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8348. $as_echo "$ac_try_echo") >&5
  8349. (eval "$ac_link") 2>conftest.er1
  8350. ac_status=$?
  8351. grep -v '^ *+' conftest.er1 >conftest.err
  8352. rm -f conftest.er1
  8353. cat conftest.err >&5
  8354. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8355. (exit $ac_status); } && {
  8356. test -z "$ac_c_werror_flag" ||
  8357. test ! -s conftest.err
  8358. } && test -s conftest$ac_exeext && {
  8359. test "$cross_compiling" = yes ||
  8360. $as_test_x conftest$ac_exeext
  8361. }; then
  8362. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  8363. shlibpath_overrides_runpath=yes
  8364. fi
  8365. else
  8366. $as_echo "$as_me: failed program was:" >&5
  8367. sed 's/^/| /' conftest.$ac_ext >&5
  8368. fi
  8369. rm -rf conftest.dSYM
  8370. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8371. conftest$ac_exeext conftest.$ac_ext
  8372. LDFLAGS=$save_LDFLAGS
  8373. libdir=$save_libdir
  8374. # This implies no fast_install, which is unacceptable.
  8375. # Some rework will be needed to allow for fast_install
  8376. # before this can be enabled.
  8377. hardcode_into_libs=yes
  8378. # Append ld.so.conf contents to the search path
  8379. if test -f /etc/ld.so.conf; then
  8380. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8381. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8382. fi
  8383. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8384. # powerpc, because MkLinux only supported shared libraries with the
  8385. # GNU dynamic linker. Since this was broken with cross compilers,
  8386. # most powerpc-linux boxes support dynamic linking these days and
  8387. # people can always --disable-shared, the test was removed, and we
  8388. # assume the GNU/Linux dynamic linker is in use.
  8389. dynamic_linker='GNU/Linux ld.so'
  8390. ;;
  8391. netbsd*)
  8392. version_type=sunos
  8393. need_lib_prefix=no
  8394. need_version=no
  8395. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8397. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8398. dynamic_linker='NetBSD (a.out) ld.so'
  8399. else
  8400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8401. soname_spec='${libname}${release}${shared_ext}$major'
  8402. dynamic_linker='NetBSD ld.elf_so'
  8403. fi
  8404. shlibpath_var=LD_LIBRARY_PATH
  8405. shlibpath_overrides_runpath=yes
  8406. hardcode_into_libs=yes
  8407. ;;
  8408. newsos6)
  8409. version_type=linux
  8410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8411. shlibpath_var=LD_LIBRARY_PATH
  8412. shlibpath_overrides_runpath=yes
  8413. ;;
  8414. *nto* | *qnx*)
  8415. version_type=qnx
  8416. need_lib_prefix=no
  8417. need_version=no
  8418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8419. soname_spec='${libname}${release}${shared_ext}$major'
  8420. shlibpath_var=LD_LIBRARY_PATH
  8421. shlibpath_overrides_runpath=no
  8422. hardcode_into_libs=yes
  8423. dynamic_linker='ldqnx.so'
  8424. ;;
  8425. openbsd*)
  8426. version_type=sunos
  8427. sys_lib_dlsearch_path_spec="/usr/lib"
  8428. need_lib_prefix=no
  8429. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8430. case $host_os in
  8431. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8432. *) need_version=no ;;
  8433. esac
  8434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8435. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8436. shlibpath_var=LD_LIBRARY_PATH
  8437. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8438. case $host_os in
  8439. openbsd2.[89] | openbsd2.[89].*)
  8440. shlibpath_overrides_runpath=no
  8441. ;;
  8442. *)
  8443. shlibpath_overrides_runpath=yes
  8444. ;;
  8445. esac
  8446. else
  8447. shlibpath_overrides_runpath=yes
  8448. fi
  8449. ;;
  8450. os2*)
  8451. libname_spec='$name'
  8452. shrext_cmds=".dll"
  8453. need_lib_prefix=no
  8454. library_names_spec='$libname${shared_ext} $libname.a'
  8455. dynamic_linker='OS/2 ld.exe'
  8456. shlibpath_var=LIBPATH
  8457. ;;
  8458. osf3* | osf4* | osf5*)
  8459. version_type=osf
  8460. need_lib_prefix=no
  8461. need_version=no
  8462. soname_spec='${libname}${release}${shared_ext}$major'
  8463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8464. shlibpath_var=LD_LIBRARY_PATH
  8465. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8466. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8467. ;;
  8468. rdos*)
  8469. dynamic_linker=no
  8470. ;;
  8471. solaris*)
  8472. version_type=linux
  8473. need_lib_prefix=no
  8474. need_version=no
  8475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8476. soname_spec='${libname}${release}${shared_ext}$major'
  8477. shlibpath_var=LD_LIBRARY_PATH
  8478. shlibpath_overrides_runpath=yes
  8479. hardcode_into_libs=yes
  8480. # ldd complains unless libraries are executable
  8481. postinstall_cmds='chmod +x $lib'
  8482. ;;
  8483. sunos4*)
  8484. version_type=sunos
  8485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8486. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8487. shlibpath_var=LD_LIBRARY_PATH
  8488. shlibpath_overrides_runpath=yes
  8489. if test "$with_gnu_ld" = yes; then
  8490. need_lib_prefix=no
  8491. fi
  8492. need_version=yes
  8493. ;;
  8494. sysv4 | sysv4.3*)
  8495. version_type=linux
  8496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8497. soname_spec='${libname}${release}${shared_ext}$major'
  8498. shlibpath_var=LD_LIBRARY_PATH
  8499. case $host_vendor in
  8500. sni)
  8501. shlibpath_overrides_runpath=no
  8502. need_lib_prefix=no
  8503. runpath_var=LD_RUN_PATH
  8504. ;;
  8505. siemens)
  8506. need_lib_prefix=no
  8507. ;;
  8508. motorola)
  8509. need_lib_prefix=no
  8510. need_version=no
  8511. shlibpath_overrides_runpath=no
  8512. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8513. ;;
  8514. esac
  8515. ;;
  8516. sysv4*MP*)
  8517. if test -d /usr/nec ;then
  8518. version_type=linux
  8519. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8520. soname_spec='$libname${shared_ext}.$major'
  8521. shlibpath_var=LD_LIBRARY_PATH
  8522. fi
  8523. ;;
  8524. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8525. version_type=freebsd-elf
  8526. need_lib_prefix=no
  8527. need_version=no
  8528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8529. soname_spec='${libname}${release}${shared_ext}$major'
  8530. shlibpath_var=LD_LIBRARY_PATH
  8531. shlibpath_overrides_runpath=yes
  8532. hardcode_into_libs=yes
  8533. if test "$with_gnu_ld" = yes; then
  8534. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8535. else
  8536. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8537. case $host_os in
  8538. sco3.2v5*)
  8539. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8540. ;;
  8541. esac
  8542. fi
  8543. sys_lib_dlsearch_path_spec='/usr/lib'
  8544. ;;
  8545. tpf*)
  8546. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8547. version_type=linux
  8548. need_lib_prefix=no
  8549. need_version=no
  8550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8551. shlibpath_var=LD_LIBRARY_PATH
  8552. shlibpath_overrides_runpath=no
  8553. hardcode_into_libs=yes
  8554. ;;
  8555. uts4*)
  8556. version_type=linux
  8557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8558. soname_spec='${libname}${release}${shared_ext}$major'
  8559. shlibpath_var=LD_LIBRARY_PATH
  8560. ;;
  8561. *)
  8562. dynamic_linker=no
  8563. ;;
  8564. esac
  8565. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8566. $as_echo "$dynamic_linker" >&6; }
  8567. test "$dynamic_linker" = no && can_build_shared=no
  8568. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8569. if test "$GCC" = yes; then
  8570. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8571. fi
  8572. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8573. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8574. fi
  8575. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8576. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8577. fi
  8578. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8579. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8580. hardcode_action=
  8581. if test -n "$hardcode_libdir_flag_spec" ||
  8582. test -n "$runpath_var" ||
  8583. test "X$hardcode_automatic" = "Xyes" ; then
  8584. # We can hardcode non-existent directories.
  8585. if test "$hardcode_direct" != no &&
  8586. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8587. # have to relink, otherwise we might link with an installed library
  8588. # when we should be linking with a yet-to-be-installed one
  8589. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8590. test "$hardcode_minus_L" != no; then
  8591. # Linking always hardcodes the temporary library directory.
  8592. hardcode_action=relink
  8593. else
  8594. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8595. hardcode_action=immediate
  8596. fi
  8597. else
  8598. # We cannot hardcode anything, or else we can only hardcode existing
  8599. # directories.
  8600. hardcode_action=unsupported
  8601. fi
  8602. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8603. $as_echo "$hardcode_action" >&6; }
  8604. if test "$hardcode_action" = relink ||
  8605. test "$inherit_rpath" = yes; then
  8606. # Fast installation is not supported
  8607. enable_fast_install=no
  8608. elif test "$shlibpath_overrides_runpath" = yes ||
  8609. test "$enable_shared" = no; then
  8610. # Fast installation is not necessary
  8611. enable_fast_install=needless
  8612. fi
  8613. if test "x$enable_dlopen" != xyes; then
  8614. enable_dlopen=unknown
  8615. enable_dlopen_self=unknown
  8616. enable_dlopen_self_static=unknown
  8617. else
  8618. lt_cv_dlopen=no
  8619. lt_cv_dlopen_libs=
  8620. case $host_os in
  8621. beos*)
  8622. lt_cv_dlopen="load_add_on"
  8623. lt_cv_dlopen_libs=
  8624. lt_cv_dlopen_self=yes
  8625. ;;
  8626. mingw* | pw32* | cegcc*)
  8627. lt_cv_dlopen="LoadLibrary"
  8628. lt_cv_dlopen_libs=
  8629. ;;
  8630. cygwin*)
  8631. lt_cv_dlopen="dlopen"
  8632. lt_cv_dlopen_libs=
  8633. ;;
  8634. darwin*)
  8635. # if libdl is installed we need to link against it
  8636. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8637. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8638. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8639. $as_echo_n "(cached) " >&6
  8640. else
  8641. ac_check_lib_save_LIBS=$LIBS
  8642. LIBS="-ldl $LIBS"
  8643. cat >conftest.$ac_ext <<_ACEOF
  8644. /* confdefs.h. */
  8645. _ACEOF
  8646. cat confdefs.h >>conftest.$ac_ext
  8647. cat >>conftest.$ac_ext <<_ACEOF
  8648. /* end confdefs.h. */
  8649. /* Override any GCC internal prototype to avoid an error.
  8650. Use char because int might match the return type of a GCC
  8651. builtin and then its argument prototype would still apply. */
  8652. #ifdef __cplusplus
  8653. extern "C"
  8654. #endif
  8655. char dlopen ();
  8656. int
  8657. main ()
  8658. {
  8659. return dlopen ();
  8660. ;
  8661. return 0;
  8662. }
  8663. _ACEOF
  8664. rm -f conftest.$ac_objext conftest$ac_exeext
  8665. if { (ac_try="$ac_link"
  8666. case "(($ac_try" in
  8667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8668. *) ac_try_echo=$ac_try;;
  8669. esac
  8670. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8671. $as_echo "$ac_try_echo") >&5
  8672. (eval "$ac_link") 2>conftest.er1
  8673. ac_status=$?
  8674. grep -v '^ *+' conftest.er1 >conftest.err
  8675. rm -f conftest.er1
  8676. cat conftest.err >&5
  8677. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8678. (exit $ac_status); } && {
  8679. test -z "$ac_c_werror_flag" ||
  8680. test ! -s conftest.err
  8681. } && test -s conftest$ac_exeext && {
  8682. test "$cross_compiling" = yes ||
  8683. $as_test_x conftest$ac_exeext
  8684. }; then
  8685. ac_cv_lib_dl_dlopen=yes
  8686. else
  8687. $as_echo "$as_me: failed program was:" >&5
  8688. sed 's/^/| /' conftest.$ac_ext >&5
  8689. ac_cv_lib_dl_dlopen=no
  8690. fi
  8691. rm -rf conftest.dSYM
  8692. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8693. conftest$ac_exeext conftest.$ac_ext
  8694. LIBS=$ac_check_lib_save_LIBS
  8695. fi
  8696. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8697. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8698. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8699. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8700. else
  8701. lt_cv_dlopen="dyld"
  8702. lt_cv_dlopen_libs=
  8703. lt_cv_dlopen_self=yes
  8704. fi
  8705. ;;
  8706. *)
  8707. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  8708. $as_echo_n "checking for shl_load... " >&6; }
  8709. if test "${ac_cv_func_shl_load+set}" = set; then
  8710. $as_echo_n "(cached) " >&6
  8711. else
  8712. cat >conftest.$ac_ext <<_ACEOF
  8713. /* confdefs.h. */
  8714. _ACEOF
  8715. cat confdefs.h >>conftest.$ac_ext
  8716. cat >>conftest.$ac_ext <<_ACEOF
  8717. /* end confdefs.h. */
  8718. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8719. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8720. #define shl_load innocuous_shl_load
  8721. /* System header to define __stub macros and hopefully few prototypes,
  8722. which can conflict with char shl_load (); below.
  8723. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8724. <limits.h> exists even on freestanding compilers. */
  8725. #ifdef __STDC__
  8726. # include <limits.h>
  8727. #else
  8728. # include <assert.h>
  8729. #endif
  8730. #undef shl_load
  8731. /* Override any GCC internal prototype to avoid an error.
  8732. Use char because int might match the return type of a GCC
  8733. builtin and then its argument prototype would still apply. */
  8734. #ifdef __cplusplus
  8735. extern "C"
  8736. #endif
  8737. char shl_load ();
  8738. /* The GNU C library defines this for functions which it implements
  8739. to always fail with ENOSYS. Some functions are actually named
  8740. something starting with __ and the normal name is an alias. */
  8741. #if defined __stub_shl_load || defined __stub___shl_load
  8742. choke me
  8743. #endif
  8744. int
  8745. main ()
  8746. {
  8747. return shl_load ();
  8748. ;
  8749. return 0;
  8750. }
  8751. _ACEOF
  8752. rm -f conftest.$ac_objext conftest$ac_exeext
  8753. if { (ac_try="$ac_link"
  8754. case "(($ac_try" in
  8755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8756. *) ac_try_echo=$ac_try;;
  8757. esac
  8758. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8759. $as_echo "$ac_try_echo") >&5
  8760. (eval "$ac_link") 2>conftest.er1
  8761. ac_status=$?
  8762. grep -v '^ *+' conftest.er1 >conftest.err
  8763. rm -f conftest.er1
  8764. cat conftest.err >&5
  8765. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8766. (exit $ac_status); } && {
  8767. test -z "$ac_c_werror_flag" ||
  8768. test ! -s conftest.err
  8769. } && test -s conftest$ac_exeext && {
  8770. test "$cross_compiling" = yes ||
  8771. $as_test_x conftest$ac_exeext
  8772. }; then
  8773. ac_cv_func_shl_load=yes
  8774. else
  8775. $as_echo "$as_me: failed program was:" >&5
  8776. sed 's/^/| /' conftest.$ac_ext >&5
  8777. ac_cv_func_shl_load=no
  8778. fi
  8779. rm -rf conftest.dSYM
  8780. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8781. conftest$ac_exeext conftest.$ac_ext
  8782. fi
  8783. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8784. $as_echo "$ac_cv_func_shl_load" >&6; }
  8785. if test "x$ac_cv_func_shl_load" = x""yes; then
  8786. lt_cv_dlopen="shl_load"
  8787. else
  8788. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8789. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8790. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8791. $as_echo_n "(cached) " >&6
  8792. else
  8793. ac_check_lib_save_LIBS=$LIBS
  8794. LIBS="-ldld $LIBS"
  8795. cat >conftest.$ac_ext <<_ACEOF
  8796. /* confdefs.h. */
  8797. _ACEOF
  8798. cat confdefs.h >>conftest.$ac_ext
  8799. cat >>conftest.$ac_ext <<_ACEOF
  8800. /* end confdefs.h. */
  8801. /* Override any GCC internal prototype to avoid an error.
  8802. Use char because int might match the return type of a GCC
  8803. builtin and then its argument prototype would still apply. */
  8804. #ifdef __cplusplus
  8805. extern "C"
  8806. #endif
  8807. char shl_load ();
  8808. int
  8809. main ()
  8810. {
  8811. return shl_load ();
  8812. ;
  8813. return 0;
  8814. }
  8815. _ACEOF
  8816. rm -f conftest.$ac_objext conftest$ac_exeext
  8817. if { (ac_try="$ac_link"
  8818. case "(($ac_try" in
  8819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8820. *) ac_try_echo=$ac_try;;
  8821. esac
  8822. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8823. $as_echo "$ac_try_echo") >&5
  8824. (eval "$ac_link") 2>conftest.er1
  8825. ac_status=$?
  8826. grep -v '^ *+' conftest.er1 >conftest.err
  8827. rm -f conftest.er1
  8828. cat conftest.err >&5
  8829. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8830. (exit $ac_status); } && {
  8831. test -z "$ac_c_werror_flag" ||
  8832. test ! -s conftest.err
  8833. } && test -s conftest$ac_exeext && {
  8834. test "$cross_compiling" = yes ||
  8835. $as_test_x conftest$ac_exeext
  8836. }; then
  8837. ac_cv_lib_dld_shl_load=yes
  8838. else
  8839. $as_echo "$as_me: failed program was:" >&5
  8840. sed 's/^/| /' conftest.$ac_ext >&5
  8841. ac_cv_lib_dld_shl_load=no
  8842. fi
  8843. rm -rf conftest.dSYM
  8844. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8845. conftest$ac_exeext conftest.$ac_ext
  8846. LIBS=$ac_check_lib_save_LIBS
  8847. fi
  8848. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8849. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8850. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  8851. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8852. else
  8853. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  8854. $as_echo_n "checking for dlopen... " >&6; }
  8855. if test "${ac_cv_func_dlopen+set}" = set; then
  8856. $as_echo_n "(cached) " >&6
  8857. else
  8858. cat >conftest.$ac_ext <<_ACEOF
  8859. /* confdefs.h. */
  8860. _ACEOF
  8861. cat confdefs.h >>conftest.$ac_ext
  8862. cat >>conftest.$ac_ext <<_ACEOF
  8863. /* end confdefs.h. */
  8864. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8865. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8866. #define dlopen innocuous_dlopen
  8867. /* System header to define __stub macros and hopefully few prototypes,
  8868. which can conflict with char dlopen (); below.
  8869. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8870. <limits.h> exists even on freestanding compilers. */
  8871. #ifdef __STDC__
  8872. # include <limits.h>
  8873. #else
  8874. # include <assert.h>
  8875. #endif
  8876. #undef dlopen
  8877. /* Override any GCC internal prototype to avoid an error.
  8878. Use char because int might match the return type of a GCC
  8879. builtin and then its argument prototype would still apply. */
  8880. #ifdef __cplusplus
  8881. extern "C"
  8882. #endif
  8883. char dlopen ();
  8884. /* The GNU C library defines this for functions which it implements
  8885. to always fail with ENOSYS. Some functions are actually named
  8886. something starting with __ and the normal name is an alias. */
  8887. #if defined __stub_dlopen || defined __stub___dlopen
  8888. choke me
  8889. #endif
  8890. int
  8891. main ()
  8892. {
  8893. return dlopen ();
  8894. ;
  8895. return 0;
  8896. }
  8897. _ACEOF
  8898. rm -f conftest.$ac_objext conftest$ac_exeext
  8899. if { (ac_try="$ac_link"
  8900. case "(($ac_try" in
  8901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8902. *) ac_try_echo=$ac_try;;
  8903. esac
  8904. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8905. $as_echo "$ac_try_echo") >&5
  8906. (eval "$ac_link") 2>conftest.er1
  8907. ac_status=$?
  8908. grep -v '^ *+' conftest.er1 >conftest.err
  8909. rm -f conftest.er1
  8910. cat conftest.err >&5
  8911. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8912. (exit $ac_status); } && {
  8913. test -z "$ac_c_werror_flag" ||
  8914. test ! -s conftest.err
  8915. } && test -s conftest$ac_exeext && {
  8916. test "$cross_compiling" = yes ||
  8917. $as_test_x conftest$ac_exeext
  8918. }; then
  8919. ac_cv_func_dlopen=yes
  8920. else
  8921. $as_echo "$as_me: failed program was:" >&5
  8922. sed 's/^/| /' conftest.$ac_ext >&5
  8923. ac_cv_func_dlopen=no
  8924. fi
  8925. rm -rf conftest.dSYM
  8926. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8927. conftest$ac_exeext conftest.$ac_ext
  8928. fi
  8929. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8930. $as_echo "$ac_cv_func_dlopen" >&6; }
  8931. if test "x$ac_cv_func_dlopen" = x""yes; then
  8932. lt_cv_dlopen="dlopen"
  8933. else
  8934. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8935. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8936. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8937. $as_echo_n "(cached) " >&6
  8938. else
  8939. ac_check_lib_save_LIBS=$LIBS
  8940. LIBS="-ldl $LIBS"
  8941. cat >conftest.$ac_ext <<_ACEOF
  8942. /* confdefs.h. */
  8943. _ACEOF
  8944. cat confdefs.h >>conftest.$ac_ext
  8945. cat >>conftest.$ac_ext <<_ACEOF
  8946. /* end confdefs.h. */
  8947. /* Override any GCC internal prototype to avoid an error.
  8948. Use char because int might match the return type of a GCC
  8949. builtin and then its argument prototype would still apply. */
  8950. #ifdef __cplusplus
  8951. extern "C"
  8952. #endif
  8953. char dlopen ();
  8954. int
  8955. main ()
  8956. {
  8957. return dlopen ();
  8958. ;
  8959. return 0;
  8960. }
  8961. _ACEOF
  8962. rm -f conftest.$ac_objext conftest$ac_exeext
  8963. if { (ac_try="$ac_link"
  8964. case "(($ac_try" in
  8965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8966. *) ac_try_echo=$ac_try;;
  8967. esac
  8968. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8969. $as_echo "$ac_try_echo") >&5
  8970. (eval "$ac_link") 2>conftest.er1
  8971. ac_status=$?
  8972. grep -v '^ *+' conftest.er1 >conftest.err
  8973. rm -f conftest.er1
  8974. cat conftest.err >&5
  8975. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8976. (exit $ac_status); } && {
  8977. test -z "$ac_c_werror_flag" ||
  8978. test ! -s conftest.err
  8979. } && test -s conftest$ac_exeext && {
  8980. test "$cross_compiling" = yes ||
  8981. $as_test_x conftest$ac_exeext
  8982. }; then
  8983. ac_cv_lib_dl_dlopen=yes
  8984. else
  8985. $as_echo "$as_me: failed program was:" >&5
  8986. sed 's/^/| /' conftest.$ac_ext >&5
  8987. ac_cv_lib_dl_dlopen=no
  8988. fi
  8989. rm -rf conftest.dSYM
  8990. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8991. conftest$ac_exeext conftest.$ac_ext
  8992. LIBS=$ac_check_lib_save_LIBS
  8993. fi
  8994. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8995. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8996. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8997. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8998. else
  8999. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9000. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9001. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9002. $as_echo_n "(cached) " >&6
  9003. else
  9004. ac_check_lib_save_LIBS=$LIBS
  9005. LIBS="-lsvld $LIBS"
  9006. cat >conftest.$ac_ext <<_ACEOF
  9007. /* confdefs.h. */
  9008. _ACEOF
  9009. cat confdefs.h >>conftest.$ac_ext
  9010. cat >>conftest.$ac_ext <<_ACEOF
  9011. /* end confdefs.h. */
  9012. /* Override any GCC internal prototype to avoid an error.
  9013. Use char because int might match the return type of a GCC
  9014. builtin and then its argument prototype would still apply. */
  9015. #ifdef __cplusplus
  9016. extern "C"
  9017. #endif
  9018. char dlopen ();
  9019. int
  9020. main ()
  9021. {
  9022. return dlopen ();
  9023. ;
  9024. return 0;
  9025. }
  9026. _ACEOF
  9027. rm -f conftest.$ac_objext conftest$ac_exeext
  9028. if { (ac_try="$ac_link"
  9029. case "(($ac_try" in
  9030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9031. *) ac_try_echo=$ac_try;;
  9032. esac
  9033. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9034. $as_echo "$ac_try_echo") >&5
  9035. (eval "$ac_link") 2>conftest.er1
  9036. ac_status=$?
  9037. grep -v '^ *+' conftest.er1 >conftest.err
  9038. rm -f conftest.er1
  9039. cat conftest.err >&5
  9040. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9041. (exit $ac_status); } && {
  9042. test -z "$ac_c_werror_flag" ||
  9043. test ! -s conftest.err
  9044. } && test -s conftest$ac_exeext && {
  9045. test "$cross_compiling" = yes ||
  9046. $as_test_x conftest$ac_exeext
  9047. }; then
  9048. ac_cv_lib_svld_dlopen=yes
  9049. else
  9050. $as_echo "$as_me: failed program was:" >&5
  9051. sed 's/^/| /' conftest.$ac_ext >&5
  9052. ac_cv_lib_svld_dlopen=no
  9053. fi
  9054. rm -rf conftest.dSYM
  9055. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9056. conftest$ac_exeext conftest.$ac_ext
  9057. LIBS=$ac_check_lib_save_LIBS
  9058. fi
  9059. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9060. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9061. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  9062. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9063. else
  9064. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9065. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9066. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9067. $as_echo_n "(cached) " >&6
  9068. else
  9069. ac_check_lib_save_LIBS=$LIBS
  9070. LIBS="-ldld $LIBS"
  9071. cat >conftest.$ac_ext <<_ACEOF
  9072. /* confdefs.h. */
  9073. _ACEOF
  9074. cat confdefs.h >>conftest.$ac_ext
  9075. cat >>conftest.$ac_ext <<_ACEOF
  9076. /* end confdefs.h. */
  9077. /* Override any GCC internal prototype to avoid an error.
  9078. Use char because int might match the return type of a GCC
  9079. builtin and then its argument prototype would still apply. */
  9080. #ifdef __cplusplus
  9081. extern "C"
  9082. #endif
  9083. char dld_link ();
  9084. int
  9085. main ()
  9086. {
  9087. return dld_link ();
  9088. ;
  9089. return 0;
  9090. }
  9091. _ACEOF
  9092. rm -f conftest.$ac_objext conftest$ac_exeext
  9093. if { (ac_try="$ac_link"
  9094. case "(($ac_try" in
  9095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9096. *) ac_try_echo=$ac_try;;
  9097. esac
  9098. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9099. $as_echo "$ac_try_echo") >&5
  9100. (eval "$ac_link") 2>conftest.er1
  9101. ac_status=$?
  9102. grep -v '^ *+' conftest.er1 >conftest.err
  9103. rm -f conftest.er1
  9104. cat conftest.err >&5
  9105. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9106. (exit $ac_status); } && {
  9107. test -z "$ac_c_werror_flag" ||
  9108. test ! -s conftest.err
  9109. } && test -s conftest$ac_exeext && {
  9110. test "$cross_compiling" = yes ||
  9111. $as_test_x conftest$ac_exeext
  9112. }; then
  9113. ac_cv_lib_dld_dld_link=yes
  9114. else
  9115. $as_echo "$as_me: failed program was:" >&5
  9116. sed 's/^/| /' conftest.$ac_ext >&5
  9117. ac_cv_lib_dld_dld_link=no
  9118. fi
  9119. rm -rf conftest.dSYM
  9120. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9121. conftest$ac_exeext conftest.$ac_ext
  9122. LIBS=$ac_check_lib_save_LIBS
  9123. fi
  9124. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9125. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9126. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  9127. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9128. fi
  9129. fi
  9130. fi
  9131. fi
  9132. fi
  9133. fi
  9134. ;;
  9135. esac
  9136. if test "x$lt_cv_dlopen" != xno; then
  9137. enable_dlopen=yes
  9138. else
  9139. enable_dlopen=no
  9140. fi
  9141. case $lt_cv_dlopen in
  9142. dlopen)
  9143. save_CPPFLAGS="$CPPFLAGS"
  9144. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9145. save_LDFLAGS="$LDFLAGS"
  9146. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9147. save_LIBS="$LIBS"
  9148. LIBS="$lt_cv_dlopen_libs $LIBS"
  9149. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9150. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9151. if test "${lt_cv_dlopen_self+set}" = set; then
  9152. $as_echo_n "(cached) " >&6
  9153. else
  9154. if test "$cross_compiling" = yes; then :
  9155. lt_cv_dlopen_self=cross
  9156. else
  9157. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9158. lt_status=$lt_dlunknown
  9159. cat > conftest.$ac_ext <<_LT_EOF
  9160. #line 10744 "configure"
  9161. #include "confdefs.h"
  9162. #if HAVE_DLFCN_H
  9163. #include <dlfcn.h>
  9164. #endif
  9165. #include <stdio.h>
  9166. #ifdef RTLD_GLOBAL
  9167. # define LT_DLGLOBAL RTLD_GLOBAL
  9168. #else
  9169. # ifdef DL_GLOBAL
  9170. # define LT_DLGLOBAL DL_GLOBAL
  9171. # else
  9172. # define LT_DLGLOBAL 0
  9173. # endif
  9174. #endif
  9175. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9176. find out it does not work in some platform. */
  9177. #ifndef LT_DLLAZY_OR_NOW
  9178. # ifdef RTLD_LAZY
  9179. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9180. # else
  9181. # ifdef DL_LAZY
  9182. # define LT_DLLAZY_OR_NOW DL_LAZY
  9183. # else
  9184. # ifdef RTLD_NOW
  9185. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9186. # else
  9187. # ifdef DL_NOW
  9188. # define LT_DLLAZY_OR_NOW DL_NOW
  9189. # else
  9190. # define LT_DLLAZY_OR_NOW 0
  9191. # endif
  9192. # endif
  9193. # endif
  9194. # endif
  9195. #endif
  9196. void fnord() { int i=42;}
  9197. int main ()
  9198. {
  9199. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9200. int status = $lt_dlunknown;
  9201. if (self)
  9202. {
  9203. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9204. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9205. /* dlclose (self); */
  9206. }
  9207. else
  9208. puts (dlerror ());
  9209. return status;
  9210. }
  9211. _LT_EOF
  9212. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9213. (eval $ac_link) 2>&5
  9214. ac_status=$?
  9215. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9216. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9217. (./conftest; exit; ) >&5 2>/dev/null
  9218. lt_status=$?
  9219. case x$lt_status in
  9220. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9221. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9222. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9223. esac
  9224. else :
  9225. # compilation failed
  9226. lt_cv_dlopen_self=no
  9227. fi
  9228. fi
  9229. rm -fr conftest*
  9230. fi
  9231. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9232. $as_echo "$lt_cv_dlopen_self" >&6; }
  9233. if test "x$lt_cv_dlopen_self" = xyes; then
  9234. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9235. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9236. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9237. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9238. $as_echo_n "(cached) " >&6
  9239. else
  9240. if test "$cross_compiling" = yes; then :
  9241. lt_cv_dlopen_self_static=cross
  9242. else
  9243. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9244. lt_status=$lt_dlunknown
  9245. cat > conftest.$ac_ext <<_LT_EOF
  9246. #line 10840 "configure"
  9247. #include "confdefs.h"
  9248. #if HAVE_DLFCN_H
  9249. #include <dlfcn.h>
  9250. #endif
  9251. #include <stdio.h>
  9252. #ifdef RTLD_GLOBAL
  9253. # define LT_DLGLOBAL RTLD_GLOBAL
  9254. #else
  9255. # ifdef DL_GLOBAL
  9256. # define LT_DLGLOBAL DL_GLOBAL
  9257. # else
  9258. # define LT_DLGLOBAL 0
  9259. # endif
  9260. #endif
  9261. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9262. find out it does not work in some platform. */
  9263. #ifndef LT_DLLAZY_OR_NOW
  9264. # ifdef RTLD_LAZY
  9265. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9266. # else
  9267. # ifdef DL_LAZY
  9268. # define LT_DLLAZY_OR_NOW DL_LAZY
  9269. # else
  9270. # ifdef RTLD_NOW
  9271. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9272. # else
  9273. # ifdef DL_NOW
  9274. # define LT_DLLAZY_OR_NOW DL_NOW
  9275. # else
  9276. # define LT_DLLAZY_OR_NOW 0
  9277. # endif
  9278. # endif
  9279. # endif
  9280. # endif
  9281. #endif
  9282. void fnord() { int i=42;}
  9283. int main ()
  9284. {
  9285. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9286. int status = $lt_dlunknown;
  9287. if (self)
  9288. {
  9289. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9290. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9291. /* dlclose (self); */
  9292. }
  9293. else
  9294. puts (dlerror ());
  9295. return status;
  9296. }
  9297. _LT_EOF
  9298. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9299. (eval $ac_link) 2>&5
  9300. ac_status=$?
  9301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9302. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9303. (./conftest; exit; ) >&5 2>/dev/null
  9304. lt_status=$?
  9305. case x$lt_status in
  9306. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9307. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9308. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9309. esac
  9310. else :
  9311. # compilation failed
  9312. lt_cv_dlopen_self_static=no
  9313. fi
  9314. fi
  9315. rm -fr conftest*
  9316. fi
  9317. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9318. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9319. fi
  9320. CPPFLAGS="$save_CPPFLAGS"
  9321. LDFLAGS="$save_LDFLAGS"
  9322. LIBS="$save_LIBS"
  9323. ;;
  9324. esac
  9325. case $lt_cv_dlopen_self in
  9326. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9327. *) enable_dlopen_self=unknown ;;
  9328. esac
  9329. case $lt_cv_dlopen_self_static in
  9330. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9331. *) enable_dlopen_self_static=unknown ;;
  9332. esac
  9333. fi
  9334. striplib=
  9335. old_striplib=
  9336. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9337. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9338. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9339. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9340. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9341. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9342. $as_echo "yes" >&6; }
  9343. else
  9344. # FIXME - insert some real tests, host_os isn't really good enough
  9345. case $host_os in
  9346. darwin*)
  9347. if test -n "$STRIP" ; then
  9348. striplib="$STRIP -x"
  9349. old_striplib="$STRIP -S"
  9350. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9351. $as_echo "yes" >&6; }
  9352. else
  9353. { $as_echo "$as_me:$LINENO: result: no" >&5
  9354. $as_echo "no" >&6; }
  9355. fi
  9356. ;;
  9357. *)
  9358. { $as_echo "$as_me:$LINENO: result: no" >&5
  9359. $as_echo "no" >&6; }
  9360. ;;
  9361. esac
  9362. fi
  9363. # Report which library types will actually be built
  9364. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9365. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9366. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9367. $as_echo "$can_build_shared" >&6; }
  9368. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9369. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9370. test "$can_build_shared" = "no" && enable_shared=no
  9371. # On AIX, shared libraries and static libraries use the same namespace, and
  9372. # are all built from PIC.
  9373. case $host_os in
  9374. aix3*)
  9375. test "$enable_shared" = yes && enable_static=no
  9376. if test -n "$RANLIB"; then
  9377. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9378. postinstall_cmds='$RANLIB $lib'
  9379. fi
  9380. ;;
  9381. aix[4-9]*)
  9382. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9383. test "$enable_shared" = yes && enable_static=no
  9384. fi
  9385. ;;
  9386. esac
  9387. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  9388. $as_echo "$enable_shared" >&6; }
  9389. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9390. $as_echo_n "checking whether to build static libraries... " >&6; }
  9391. # Make sure either enable_shared or enable_static is yes.
  9392. test "$enable_shared" = yes || enable_static=yes
  9393. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  9394. $as_echo "$enable_static" >&6; }
  9395. fi
  9396. ac_ext=c
  9397. ac_cpp='$CPP $CPPFLAGS'
  9398. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9399. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9400. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9401. CC="$lt_save_CC"
  9402. ac_config_commands="$ac_config_commands libtool"
  9403. # Only expand once:
  9404. CFLAG_VISIBILITY=
  9405. HAVE_VISIBILITY=0
  9406. if test -n "$GCC"; then
  9407. { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9408. $as_echo_n "checking for simple visibility declarations... " >&6; }
  9409. if test "${gl_cv_cc_visibility+set}" = set; then
  9410. $as_echo_n "(cached) " >&6
  9411. else
  9412. gl_save_CFLAGS="$CFLAGS"
  9413. CFLAGS="$CFLAGS -fvisibility=hidden"
  9414. cat >conftest.$ac_ext <<_ACEOF
  9415. /* confdefs.h. */
  9416. _ACEOF
  9417. cat confdefs.h >>conftest.$ac_ext
  9418. cat >>conftest.$ac_ext <<_ACEOF
  9419. /* end confdefs.h. */
  9420. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9421. extern __attribute__((__visibility__("default"))) int exportedvar;
  9422. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9423. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9424. int
  9425. main ()
  9426. {
  9427. ;
  9428. return 0;
  9429. }
  9430. _ACEOF
  9431. rm -f conftest.$ac_objext
  9432. if { (ac_try="$ac_compile"
  9433. case "(($ac_try" in
  9434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9435. *) ac_try_echo=$ac_try;;
  9436. esac
  9437. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9438. $as_echo "$ac_try_echo") >&5
  9439. (eval "$ac_compile") 2>conftest.er1
  9440. ac_status=$?
  9441. grep -v '^ *+' conftest.er1 >conftest.err
  9442. rm -f conftest.er1
  9443. cat conftest.err >&5
  9444. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9445. (exit $ac_status); } && {
  9446. test -z "$ac_c_werror_flag" ||
  9447. test ! -s conftest.err
  9448. } && test -s conftest.$ac_objext; then
  9449. gl_cv_cc_visibility=yes
  9450. else
  9451. $as_echo "$as_me: failed program was:" >&5
  9452. sed 's/^/| /' conftest.$ac_ext >&5
  9453. gl_cv_cc_visibility=no
  9454. fi
  9455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9456. CFLAGS="$gl_save_CFLAGS"
  9457. fi
  9458. { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9459. $as_echo "$gl_cv_cc_visibility" >&6; }
  9460. if test $gl_cv_cc_visibility = yes; then
  9461. CFLAG_VISIBILITY="-fvisibility=hidden"
  9462. HAVE_VISIBILITY=1
  9463. fi
  9464. fi
  9465. cat >>confdefs.h <<_ACEOF
  9466. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9467. _ACEOF
  9468. case "$host_os" in
  9469. linux* | solaris* | osf*)
  9470. PLUGLIB="preloadable_libiconv.so" ;;
  9471. *)
  9472. PLUGLIB=""
  9473. esac
  9474. ac_config_files="$ac_config_files Makefile"
  9475. cat >confcache <<\_ACEOF
  9476. # This file is a shell script that caches the results of configure
  9477. # tests run on this system so they can be shared between configure
  9478. # scripts and configure runs, see configure's option --config-cache.
  9479. # It is not useful on other systems. If it contains results you don't
  9480. # want to keep, you may remove or edit it.
  9481. #
  9482. # config.status only pays attention to the cache file if you give it
  9483. # the --recheck option to rerun configure.
  9484. #
  9485. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9486. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9487. # following values.
  9488. _ACEOF
  9489. # The following way of writing the cache mishandles newlines in values,
  9490. # but we know of no workaround that is simple, portable, and efficient.
  9491. # So, we kill variables containing newlines.
  9492. # Ultrix sh set writes to stderr and can't be redirected directly,
  9493. # and sets the high bit in the cache file unless we assign to the vars.
  9494. (
  9495. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9496. eval ac_val=\$$ac_var
  9497. case $ac_val in #(
  9498. *${as_nl}*)
  9499. case $ac_var in #(
  9500. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  9501. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9502. esac
  9503. case $ac_var in #(
  9504. _ | IFS | as_nl) ;; #(
  9505. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9506. *) $as_unset $ac_var ;;
  9507. esac ;;
  9508. esac
  9509. done
  9510. (set) 2>&1 |
  9511. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9512. *${as_nl}ac_space=\ *)
  9513. # `set' does not quote correctly, so add quotes (double-quote
  9514. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9515. sed -n \
  9516. "s/'/'\\\\''/g;
  9517. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9518. ;; #(
  9519. *)
  9520. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9521. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9522. ;;
  9523. esac |
  9524. sort
  9525. ) |
  9526. sed '
  9527. /^ac_cv_env_/b end
  9528. t clear
  9529. :clear
  9530. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9531. t end
  9532. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9533. :end' >>confcache
  9534. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9535. if test -w "$cache_file"; then
  9536. test "x$cache_file" != "x/dev/null" &&
  9537. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  9538. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9539. cat confcache >$cache_file
  9540. else
  9541. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  9542. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9543. fi
  9544. fi
  9545. rm -f confcache
  9546. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9547. # Let make expand exec_prefix.
  9548. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9549. # Transform confdefs.h into DEFS.
  9550. # Protect against shell expansion while executing Makefile rules.
  9551. # Protect against Makefile macro expansion.
  9552. #
  9553. # If the first sed substitution is executed (which looks for macros that
  9554. # take arguments), then branch to the quote section. Otherwise,
  9555. # look for a macro that doesn't take arguments.
  9556. ac_script='
  9557. :mline
  9558. /\\$/{
  9559. N
  9560. s,\\\n,,
  9561. b mline
  9562. }
  9563. t clear
  9564. :clear
  9565. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  9566. t quote
  9567. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  9568. t quote
  9569. b any
  9570. :quote
  9571. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  9572. s/\[/\\&/g
  9573. s/\]/\\&/g
  9574. s/\$/$$/g
  9575. H
  9576. :any
  9577. ${
  9578. g
  9579. s/^\n//
  9580. s/\n/ /g
  9581. p
  9582. }
  9583. '
  9584. DEFS=`sed -n "$ac_script" confdefs.h`
  9585. ac_libobjs=
  9586. ac_ltlibobjs=
  9587. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9588. # 1. Remove the extension, and $U if already installed.
  9589. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9590. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9591. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9592. # will be set to the directory where LIBOBJS objects are built.
  9593. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9594. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  9595. done
  9596. LIBOBJS=$ac_libobjs
  9597. LTLIBOBJS=$ac_ltlibobjs
  9598. : ${CONFIG_STATUS=./config.status}
  9599. ac_write_fail=0
  9600. ac_clean_files_save=$ac_clean_files
  9601. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9602. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9603. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9604. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9605. #! $SHELL
  9606. # Generated by $as_me.
  9607. # Run this file to recreate the current configuration.
  9608. # Compiler output produced by configure, useful for debugging
  9609. # configure, is in config.log if it exists.
  9610. debug=false
  9611. ac_cs_recheck=false
  9612. ac_cs_silent=false
  9613. SHELL=\${CONFIG_SHELL-$SHELL}
  9614. _ACEOF
  9615. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9616. ## --------------------- ##
  9617. ## M4sh Initialization. ##
  9618. ## --------------------- ##
  9619. # Be more Bourne compatible
  9620. DUALCASE=1; export DUALCASE # for MKS sh
  9621. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9622. emulate sh
  9623. NULLCMD=:
  9624. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9625. # is contrary to our usage. Disable this feature.
  9626. alias -g '${1+"$@"}'='"$@"'
  9627. setopt NO_GLOB_SUBST
  9628. else
  9629. case `(set -o) 2>/dev/null` in
  9630. *posix*) set -o posix ;;
  9631. esac
  9632. fi
  9633. # PATH needs CR
  9634. # Avoid depending upon Character Ranges.
  9635. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9636. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9637. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9638. as_cr_digits='0123456789'
  9639. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9640. as_nl='
  9641. '
  9642. export as_nl
  9643. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9644. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9645. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9646. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9647. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9648. as_echo='printf %s\n'
  9649. as_echo_n='printf %s'
  9650. else
  9651. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9652. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9653. as_echo_n='/usr/ucb/echo -n'
  9654. else
  9655. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9656. as_echo_n_body='eval
  9657. arg=$1;
  9658. case $arg in
  9659. *"$as_nl"*)
  9660. expr "X$arg" : "X\\(.*\\)$as_nl";
  9661. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9662. esac;
  9663. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9664. '
  9665. export as_echo_n_body
  9666. as_echo_n='sh -c $as_echo_n_body as_echo'
  9667. fi
  9668. export as_echo_body
  9669. as_echo='sh -c $as_echo_body as_echo'
  9670. fi
  9671. # The user is always right.
  9672. if test "${PATH_SEPARATOR+set}" != set; then
  9673. PATH_SEPARATOR=:
  9674. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9675. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9676. PATH_SEPARATOR=';'
  9677. }
  9678. fi
  9679. # Support unset when possible.
  9680. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9681. as_unset=unset
  9682. else
  9683. as_unset=false
  9684. fi
  9685. # IFS
  9686. # We need space, tab and new line, in precisely that order. Quoting is
  9687. # there to prevent editors from complaining about space-tab.
  9688. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9689. # splitting by setting IFS to empty value.)
  9690. IFS=" "" $as_nl"
  9691. # Find who we are. Look in the path if we contain no directory separator.
  9692. case $0 in
  9693. *[\\/]* ) as_myself=$0 ;;
  9694. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9695. for as_dir in $PATH
  9696. do
  9697. IFS=$as_save_IFS
  9698. test -z "$as_dir" && as_dir=.
  9699. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9700. done
  9701. IFS=$as_save_IFS
  9702. ;;
  9703. esac
  9704. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9705. # in which case we are not to be found in the path.
  9706. if test "x$as_myself" = x; then
  9707. as_myself=$0
  9708. fi
  9709. if test ! -f "$as_myself"; then
  9710. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9711. { (exit 1); exit 1; }
  9712. fi
  9713. # Work around bugs in pre-3.0 UWIN ksh.
  9714. for as_var in ENV MAIL MAILPATH
  9715. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  9716. done
  9717. PS1='$ '
  9718. PS2='> '
  9719. PS4='+ '
  9720. # NLS nuisances.
  9721. LC_ALL=C
  9722. export LC_ALL
  9723. LANGUAGE=C
  9724. export LANGUAGE
  9725. # Required to use basename.
  9726. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9727. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9728. as_expr=expr
  9729. else
  9730. as_expr=false
  9731. fi
  9732. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9733. as_basename=basename
  9734. else
  9735. as_basename=false
  9736. fi
  9737. # Name of the executable.
  9738. as_me=`$as_basename -- "$0" ||
  9739. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9740. X"$0" : 'X\(//\)$' \| \
  9741. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9742. $as_echo X/"$0" |
  9743. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9744. s//\1/
  9745. q
  9746. }
  9747. /^X\/\(\/\/\)$/{
  9748. s//\1/
  9749. q
  9750. }
  9751. /^X\/\(\/\).*/{
  9752. s//\1/
  9753. q
  9754. }
  9755. s/.*/./; q'`
  9756. # CDPATH.
  9757. $as_unset CDPATH
  9758. as_lineno_1=$LINENO
  9759. as_lineno_2=$LINENO
  9760. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9761. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  9762. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9763. # uniformly replaced by the line number. The first 'sed' inserts a
  9764. # line-number line after each line using $LINENO; the second 'sed'
  9765. # does the real work. The second script uses 'N' to pair each
  9766. # line-number line with the line containing $LINENO, and appends
  9767. # trailing '-' during substitution so that $LINENO is not a special
  9768. # case at line end.
  9769. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9770. # scripts with optimization help from Paolo Bonzini. Blame Lee
  9771. # E. McMahon (1931-1989) for sed's syntax. :-)
  9772. sed -n '
  9773. p
  9774. /[$]LINENO/=
  9775. ' <$as_myself |
  9776. sed '
  9777. s/[$]LINENO.*/&-/
  9778. t lineno
  9779. b
  9780. :lineno
  9781. N
  9782. :loop
  9783. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  9784. t loop
  9785. s/-\n.*//
  9786. ' >$as_me.lineno &&
  9787. chmod +x "$as_me.lineno" ||
  9788. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  9789. { (exit 1); exit 1; }; }
  9790. # Don't try to exec as it changes $[0], causing all sort of problems
  9791. # (the dirname of $[0] is not the place where we might find the
  9792. # original and so on. Autoconf is especially sensitive to this).
  9793. . "./$as_me.lineno"
  9794. # Exit status is that of the last command.
  9795. exit
  9796. }
  9797. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9798. as_dirname=dirname
  9799. else
  9800. as_dirname=false
  9801. fi
  9802. ECHO_C= ECHO_N= ECHO_T=
  9803. case `echo -n x` in
  9804. -n*)
  9805. case `echo 'x\c'` in
  9806. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9807. *) ECHO_C='\c';;
  9808. esac;;
  9809. *)
  9810. ECHO_N='-n';;
  9811. esac
  9812. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9813. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9814. as_expr=expr
  9815. else
  9816. as_expr=false
  9817. fi
  9818. rm -f conf$$ conf$$.exe conf$$.file
  9819. if test -d conf$$.dir; then
  9820. rm -f conf$$.dir/conf$$.file
  9821. else
  9822. rm -f conf$$.dir
  9823. mkdir conf$$.dir 2>/dev/null
  9824. fi
  9825. if (echo >conf$$.file) 2>/dev/null; then
  9826. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9827. as_ln_s='ln -s'
  9828. # ... but there are two gotchas:
  9829. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9830. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9831. # In both cases, we have to default to `cp -p'.
  9832. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9833. as_ln_s='cp -p'
  9834. elif ln conf$$.file conf$$ 2>/dev/null; then
  9835. as_ln_s=ln
  9836. else
  9837. as_ln_s='cp -p'
  9838. fi
  9839. else
  9840. as_ln_s='cp -p'
  9841. fi
  9842. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9843. rmdir conf$$.dir 2>/dev/null
  9844. if mkdir -p . 2>/dev/null; then
  9845. as_mkdir_p=:
  9846. else
  9847. test -d ./-p && rmdir ./-p
  9848. as_mkdir_p=false
  9849. fi
  9850. if test -x / >/dev/null 2>&1; then
  9851. as_test_x='test -x'
  9852. else
  9853. if ls -dL / >/dev/null 2>&1; then
  9854. as_ls_L_option=L
  9855. else
  9856. as_ls_L_option=
  9857. fi
  9858. as_test_x='
  9859. eval sh -c '\''
  9860. if test -d "$1"; then
  9861. test -d "$1/.";
  9862. else
  9863. case $1 in
  9864. -*)set "./$1";;
  9865. esac;
  9866. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  9867. ???[sx]*):;;*)false;;esac;fi
  9868. '\'' sh
  9869. '
  9870. fi
  9871. as_executable_p=$as_test_x
  9872. # Sed expression to map a string onto a valid CPP name.
  9873. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9874. # Sed expression to map a string onto a valid variable name.
  9875. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9876. exec 6>&1
  9877. # Save the log message, to keep $[0] and so on meaningful, and to
  9878. # report actual input values of CONFIG_FILES etc. instead of their
  9879. # values after options handling.
  9880. ac_log="
  9881. This file was extended by $as_me, which was
  9882. generated by GNU Autoconf 2.63. Invocation command line was
  9883. CONFIG_FILES = $CONFIG_FILES
  9884. CONFIG_HEADERS = $CONFIG_HEADERS
  9885. CONFIG_LINKS = $CONFIG_LINKS
  9886. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9887. $ $0 $@
  9888. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9889. "
  9890. _ACEOF
  9891. case $ac_config_files in *"
  9892. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9893. esac
  9894. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9895. # Files that config.status was made for.
  9896. config_files="$ac_config_files"
  9897. config_commands="$ac_config_commands"
  9898. _ACEOF
  9899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9900. ac_cs_usage="\
  9901. \`$as_me' instantiates files from templates according to the
  9902. current configuration.
  9903. Usage: $0 [OPTION]... [FILE]...
  9904. -h, --help print this help, then exit
  9905. -V, --version print version number and configuration settings, then exit
  9906. -q, --quiet, --silent
  9907. do not print progress messages
  9908. -d, --debug don't remove temporary files
  9909. --recheck update $as_me by reconfiguring in the same conditions
  9910. --file=FILE[:TEMPLATE]
  9911. instantiate the configuration file FILE
  9912. Configuration files:
  9913. $config_files
  9914. Configuration commands:
  9915. $config_commands
  9916. Report bugs to <bug-autoconf@gnu.org>."
  9917. _ACEOF
  9918. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9919. ac_cs_version="\\
  9920. config.status
  9921. configured by $0, generated by GNU Autoconf 2.63,
  9922. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  9923. Copyright (C) 2008 Free Software Foundation, Inc.
  9924. This config.status script is free software; the Free Software Foundation
  9925. gives unlimited permission to copy, distribute and modify it."
  9926. ac_pwd='$ac_pwd'
  9927. srcdir='$srcdir'
  9928. INSTALL='$INSTALL'
  9929. test -n "\$AWK" || AWK=awk
  9930. _ACEOF
  9931. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9932. # The default lists apply if the user does not specify any file.
  9933. ac_need_defaults=:
  9934. while test $# != 0
  9935. do
  9936. case $1 in
  9937. --*=*)
  9938. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9939. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9940. ac_shift=:
  9941. ;;
  9942. *)
  9943. ac_option=$1
  9944. ac_optarg=$2
  9945. ac_shift=shift
  9946. ;;
  9947. esac
  9948. case $ac_option in
  9949. # Handling of the options.
  9950. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9951. ac_cs_recheck=: ;;
  9952. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9953. $as_echo "$ac_cs_version"; exit ;;
  9954. --debug | --debu | --deb | --de | --d | -d )
  9955. debug=: ;;
  9956. --file | --fil | --fi | --f )
  9957. $ac_shift
  9958. case $ac_optarg in
  9959. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9960. esac
  9961. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  9962. ac_need_defaults=false;;
  9963. --he | --h | --help | --hel | -h )
  9964. $as_echo "$ac_cs_usage"; exit ;;
  9965. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9966. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9967. ac_cs_silent=: ;;
  9968. # This is an error.
  9969. -*) { $as_echo "$as_me: error: unrecognized option: $1
  9970. Try \`$0 --help' for more information." >&2
  9971. { (exit 1); exit 1; }; } ;;
  9972. *) ac_config_targets="$ac_config_targets $1"
  9973. ac_need_defaults=false ;;
  9974. esac
  9975. shift
  9976. done
  9977. ac_configure_extra_args=
  9978. if $ac_cs_silent; then
  9979. exec 6>/dev/null
  9980. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9981. fi
  9982. _ACEOF
  9983. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9984. if \$ac_cs_recheck; then
  9985. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9986. shift
  9987. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9988. CONFIG_SHELL='$SHELL'
  9989. export CONFIG_SHELL
  9990. exec "\$@"
  9991. fi
  9992. _ACEOF
  9993. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9994. exec 5>>config.log
  9995. {
  9996. echo
  9997. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9998. ## Running $as_me. ##
  9999. _ASBOX
  10000. $as_echo "$ac_log"
  10001. } >&5
  10002. _ACEOF
  10003. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10004. #
  10005. # INIT-COMMANDS
  10006. #
  10007. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10008. # if CDPATH is set.
  10009. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10010. sed_quote_subst='$sed_quote_subst'
  10011. double_quote_subst='$double_quote_subst'
  10012. delay_variable_subst='$delay_variable_subst'
  10013. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  10014. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  10015. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  10016. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  10017. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  10018. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  10019. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  10020. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  10021. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  10022. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  10023. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  10024. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  10025. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  10026. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  10027. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  10028. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  10029. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  10030. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  10031. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  10032. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  10033. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  10034. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  10035. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  10036. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  10037. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  10038. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  10039. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  10040. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  10041. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  10042. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10043. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10044. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  10045. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  10046. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  10047. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  10048. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  10049. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  10050. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10051. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10052. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10053. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  10054. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  10055. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  10056. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  10057. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  10058. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  10059. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  10060. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  10061. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  10062. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  10063. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  10064. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  10065. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10066. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  10067. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  10068. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  10069. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  10070. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  10071. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  10072. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  10073. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  10074. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  10075. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  10076. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  10077. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10078. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10079. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  10080. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  10081. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10082. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10083. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  10084. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10085. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10086. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10087. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10088. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10089. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10090. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10091. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10092. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10093. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10094. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10095. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  10096. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  10097. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  10098. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  10099. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10100. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  10101. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  10102. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  10103. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  10104. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  10105. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10106. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10107. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10108. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10109. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10110. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  10111. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  10112. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  10113. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  10114. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10115. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10116. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  10117. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10118. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10119. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10120. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10121. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10122. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10123. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  10124. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  10125. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10126. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10127. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  10128. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  10129. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  10130. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  10131. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10132. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10133. LTCC='$LTCC'
  10134. LTCFLAGS='$LTCFLAGS'
  10135. compiler='$compiler_DEFAULT'
  10136. # Quote evaled strings.
  10137. for var in SED \
  10138. GREP \
  10139. EGREP \
  10140. FGREP \
  10141. LD \
  10142. NM \
  10143. LN_S \
  10144. lt_SP2NL \
  10145. lt_NL2SP \
  10146. reload_flag \
  10147. deplibs_check_method \
  10148. file_magic_cmd \
  10149. AR \
  10150. AR_FLAGS \
  10151. STRIP \
  10152. RANLIB \
  10153. CC \
  10154. CFLAGS \
  10155. compiler \
  10156. lt_cv_sys_global_symbol_pipe \
  10157. lt_cv_sys_global_symbol_to_cdecl \
  10158. lt_cv_sys_global_symbol_to_c_name_address \
  10159. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10160. SHELL \
  10161. ECHO \
  10162. lt_prog_compiler_no_builtin_flag \
  10163. lt_prog_compiler_wl \
  10164. lt_prog_compiler_pic \
  10165. lt_prog_compiler_static \
  10166. lt_cv_prog_compiler_c_o \
  10167. need_locks \
  10168. DSYMUTIL \
  10169. NMEDIT \
  10170. LIPO \
  10171. OTOOL \
  10172. OTOOL64 \
  10173. shrext_cmds \
  10174. export_dynamic_flag_spec \
  10175. whole_archive_flag_spec \
  10176. compiler_needs_object \
  10177. with_gnu_ld \
  10178. allow_undefined_flag \
  10179. no_undefined_flag \
  10180. hardcode_libdir_flag_spec \
  10181. hardcode_libdir_flag_spec_ld \
  10182. hardcode_libdir_separator \
  10183. fix_srcfile_path \
  10184. exclude_expsyms \
  10185. include_expsyms \
  10186. file_list_spec \
  10187. variables_saved_for_relink \
  10188. libname_spec \
  10189. library_names_spec \
  10190. soname_spec \
  10191. finish_eval \
  10192. old_striplib \
  10193. striplib; do
  10194. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10195. *[\\\\\\\`\\"\\\$]*)
  10196. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10197. ;;
  10198. *)
  10199. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10200. ;;
  10201. esac
  10202. done
  10203. # Double-quote double-evaled strings.
  10204. for var in reload_cmds \
  10205. old_postinstall_cmds \
  10206. old_postuninstall_cmds \
  10207. old_archive_cmds \
  10208. extract_expsyms_cmds \
  10209. old_archive_from_new_cmds \
  10210. old_archive_from_expsyms_cmds \
  10211. archive_cmds \
  10212. archive_expsym_cmds \
  10213. module_cmds \
  10214. module_expsym_cmds \
  10215. export_symbols_cmds \
  10216. prelink_cmds \
  10217. postinstall_cmds \
  10218. postuninstall_cmds \
  10219. finish_cmds \
  10220. sys_lib_search_path_spec \
  10221. sys_lib_dlsearch_path_spec; do
  10222. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10223. *[\\\\\\\`\\"\\\$]*)
  10224. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10225. ;;
  10226. *)
  10227. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10228. ;;
  10229. esac
  10230. done
  10231. # Fix-up fallback echo if it was mangled by the above quoting rules.
  10232. case \$lt_ECHO in
  10233. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  10234. ;;
  10235. esac
  10236. ac_aux_dir='$ac_aux_dir'
  10237. xsi_shell='$xsi_shell'
  10238. lt_shell_append='$lt_shell_append'
  10239. # See if we are running on zsh, and set the options which allow our
  10240. # commands through without removal of \ escapes INIT.
  10241. if test -n "\${ZSH_VERSION+set}" ; then
  10242. setopt NO_GLOB_SUBST
  10243. fi
  10244. PACKAGE='$PACKAGE'
  10245. VERSION='$VERSION'
  10246. TIMESTAMP='$TIMESTAMP'
  10247. RM='$RM'
  10248. ofile='$ofile'
  10249. _ACEOF
  10250. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10251. # Handling of arguments.
  10252. for ac_config_target in $ac_config_targets
  10253. do
  10254. case $ac_config_target in
  10255. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10256. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10257. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10258. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10259. { (exit 1); exit 1; }; };;
  10260. esac
  10261. done
  10262. # If the user did not use the arguments to specify the items to instantiate,
  10263. # then the envvar interface is used. Set only those that are not.
  10264. # We use the long form for the default assignment because of an extremely
  10265. # bizarre bug on SunOS 4.1.3.
  10266. if $ac_need_defaults; then
  10267. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10268. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10269. fi
  10270. # Have a temporary directory for convenience. Make it in the build tree
  10271. # simply because there is no reason against having it here, and in addition,
  10272. # creating and moving files from /tmp can sometimes cause problems.
  10273. # Hook for its removal unless debugging.
  10274. # Note that there is a small window in which the directory will not be cleaned:
  10275. # after its creation but before its name has been assigned to `$tmp'.
  10276. $debug ||
  10277. {
  10278. tmp=
  10279. trap 'exit_status=$?
  10280. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10281. ' 0
  10282. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10283. }
  10284. # Create a (secure) tmp directory for tmp files.
  10285. {
  10286. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10287. test -n "$tmp" && test -d "$tmp"
  10288. } ||
  10289. {
  10290. tmp=./conf$$-$RANDOM
  10291. (umask 077 && mkdir "$tmp")
  10292. } ||
  10293. {
  10294. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  10295. { (exit 1); exit 1; }
  10296. }
  10297. # Set up the scripts for CONFIG_FILES section.
  10298. # No need to generate them if there are no CONFIG_FILES.
  10299. # This happens for instance with `./config.status config.h'.
  10300. if test -n "$CONFIG_FILES"; then
  10301. ac_cr=' '
  10302. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10303. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10304. ac_cs_awk_cr='\\r'
  10305. else
  10306. ac_cs_awk_cr=$ac_cr
  10307. fi
  10308. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  10309. _ACEOF
  10310. {
  10311. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10312. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10313. echo "_ACEOF"
  10314. } >conf$$subs.sh ||
  10315. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10316. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10317. { (exit 1); exit 1; }; }
  10318. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  10319. ac_delim='%!_!# '
  10320. for ac_last_try in false false false false false :; do
  10321. . ./conf$$subs.sh ||
  10322. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10323. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10324. { (exit 1); exit 1; }; }
  10325. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10326. if test $ac_delim_n = $ac_delim_num; then
  10327. break
  10328. elif $ac_last_try; then
  10329. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  10330. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  10331. { (exit 1); exit 1; }; }
  10332. else
  10333. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10334. fi
  10335. done
  10336. rm -f conf$$subs.sh
  10337. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10338. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  10339. _ACEOF
  10340. sed -n '
  10341. h
  10342. s/^/S["/; s/!.*/"]=/
  10343. p
  10344. g
  10345. s/^[^!]*!//
  10346. :repl
  10347. t repl
  10348. s/'"$ac_delim"'$//
  10349. t delim
  10350. :nl
  10351. h
  10352. s/\(.\{148\}\).*/\1/
  10353. t more1
  10354. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10355. p
  10356. n
  10357. b repl
  10358. :more1
  10359. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10360. p
  10361. g
  10362. s/.\{148\}//
  10363. t nl
  10364. :delim
  10365. h
  10366. s/\(.\{148\}\).*/\1/
  10367. t more2
  10368. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10369. p
  10370. b
  10371. :more2
  10372. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10373. p
  10374. g
  10375. s/.\{148\}//
  10376. t delim
  10377. ' <conf$$subs.awk | sed '
  10378. /^[^""]/{
  10379. N
  10380. s/\n//
  10381. }
  10382. ' >>$CONFIG_STATUS || ac_write_fail=1
  10383. rm -f conf$$subs.awk
  10384. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10385. _ACAWK
  10386. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  10387. for (key in S) S_is_set[key] = 1
  10388. FS = ""
  10389. }
  10390. {
  10391. line = $ 0
  10392. nfields = split(line, field, "@")
  10393. substed = 0
  10394. len = length(field[1])
  10395. for (i = 2; i < nfields; i++) {
  10396. key = field[i]
  10397. keylen = length(key)
  10398. if (S_is_set[key]) {
  10399. value = S[key]
  10400. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10401. len += length(value) + length(field[++i])
  10402. substed = 1
  10403. } else
  10404. len += 1 + keylen
  10405. }
  10406. print line
  10407. }
  10408. _ACAWK
  10409. _ACEOF
  10410. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10411. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10412. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10413. else
  10414. cat
  10415. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  10416. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  10417. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  10418. { (exit 1); exit 1; }; }
  10419. _ACEOF
  10420. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10421. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10422. # trailing colons and then remove the whole line if VPATH becomes empty
  10423. # (actually we leave an empty line to preserve line numbers).
  10424. if test "x$srcdir" = x.; then
  10425. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10426. s/:*\$(srcdir):*/:/
  10427. s/:*\${srcdir}:*/:/
  10428. s/:*@srcdir@:*/:/
  10429. s/^\([^=]*=[ ]*\):*/\1/
  10430. s/:*$//
  10431. s/^[^=]*=[ ]*$//
  10432. }'
  10433. fi
  10434. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10435. fi # test -n "$CONFIG_FILES"
  10436. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  10437. shift
  10438. for ac_tag
  10439. do
  10440. case $ac_tag in
  10441. :[FHLC]) ac_mode=$ac_tag; continue;;
  10442. esac
  10443. case $ac_mode$ac_tag in
  10444. :[FHL]*:*);;
  10445. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  10446. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  10447. { (exit 1); exit 1; }; };;
  10448. :[FH]-) ac_tag=-:-;;
  10449. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10450. esac
  10451. ac_save_IFS=$IFS
  10452. IFS=:
  10453. set x $ac_tag
  10454. IFS=$ac_save_IFS
  10455. shift
  10456. ac_file=$1
  10457. shift
  10458. case $ac_mode in
  10459. :L) ac_source=$1;;
  10460. :[FH])
  10461. ac_file_inputs=
  10462. for ac_f
  10463. do
  10464. case $ac_f in
  10465. -) ac_f="$tmp/stdin";;
  10466. *) # Look for the file first in the build tree, then in the source tree
  10467. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10468. # because $ac_f cannot contain `:'.
  10469. test -f "$ac_f" ||
  10470. case $ac_f in
  10471. [\\/$]*) false;;
  10472. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10473. esac ||
  10474. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  10475. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  10476. { (exit 1); exit 1; }; };;
  10477. esac
  10478. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10479. ac_file_inputs="$ac_file_inputs '$ac_f'"
  10480. done
  10481. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10482. # use $as_me), people would be surprised to read:
  10483. # /* config.h. Generated by config.status. */
  10484. configure_input='Generated from '`
  10485. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10486. `' by configure.'
  10487. if test x"$ac_file" != x-; then
  10488. configure_input="$ac_file. $configure_input"
  10489. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  10490. $as_echo "$as_me: creating $ac_file" >&6;}
  10491. fi
  10492. # Neutralize special characters interpreted by sed in replacement strings.
  10493. case $configure_input in #(
  10494. *\&* | *\|* | *\\* )
  10495. ac_sed_conf_input=`$as_echo "$configure_input" |
  10496. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10497. *) ac_sed_conf_input=$configure_input;;
  10498. esac
  10499. case $ac_tag in
  10500. *:-:* | *:-) cat >"$tmp/stdin" \
  10501. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  10502. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  10503. { (exit 1); exit 1; }; } ;;
  10504. esac
  10505. ;;
  10506. esac
  10507. ac_dir=`$as_dirname -- "$ac_file" ||
  10508. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10509. X"$ac_file" : 'X\(//\)[^/]' \| \
  10510. X"$ac_file" : 'X\(//\)$' \| \
  10511. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10512. $as_echo X"$ac_file" |
  10513. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10514. s//\1/
  10515. q
  10516. }
  10517. /^X\(\/\/\)[^/].*/{
  10518. s//\1/
  10519. q
  10520. }
  10521. /^X\(\/\/\)$/{
  10522. s//\1/
  10523. q
  10524. }
  10525. /^X\(\/\).*/{
  10526. s//\1/
  10527. q
  10528. }
  10529. s/.*/./; q'`
  10530. { as_dir="$ac_dir"
  10531. case $as_dir in #(
  10532. -*) as_dir=./$as_dir;;
  10533. esac
  10534. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  10535. as_dirs=
  10536. while :; do
  10537. case $as_dir in #(
  10538. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10539. *) as_qdir=$as_dir;;
  10540. esac
  10541. as_dirs="'$as_qdir' $as_dirs"
  10542. as_dir=`$as_dirname -- "$as_dir" ||
  10543. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10544. X"$as_dir" : 'X\(//\)[^/]' \| \
  10545. X"$as_dir" : 'X\(//\)$' \| \
  10546. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10547. $as_echo X"$as_dir" |
  10548. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10549. s//\1/
  10550. q
  10551. }
  10552. /^X\(\/\/\)[^/].*/{
  10553. s//\1/
  10554. q
  10555. }
  10556. /^X\(\/\/\)$/{
  10557. s//\1/
  10558. q
  10559. }
  10560. /^X\(\/\).*/{
  10561. s//\1/
  10562. q
  10563. }
  10564. s/.*/./; q'`
  10565. test -d "$as_dir" && break
  10566. done
  10567. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10568. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  10569. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  10570. { (exit 1); exit 1; }; }; }
  10571. ac_builddir=.
  10572. case "$ac_dir" in
  10573. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10574. *)
  10575. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10576. # A ".." for each directory in $ac_dir_suffix.
  10577. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10578. case $ac_top_builddir_sub in
  10579. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10580. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10581. esac ;;
  10582. esac
  10583. ac_abs_top_builddir=$ac_pwd
  10584. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10585. # for backward compatibility:
  10586. ac_top_builddir=$ac_top_build_prefix
  10587. case $srcdir in
  10588. .) # We are building in place.
  10589. ac_srcdir=.
  10590. ac_top_srcdir=$ac_top_builddir_sub
  10591. ac_abs_top_srcdir=$ac_pwd ;;
  10592. [\\/]* | ?:[\\/]* ) # Absolute name.
  10593. ac_srcdir=$srcdir$ac_dir_suffix;
  10594. ac_top_srcdir=$srcdir
  10595. ac_abs_top_srcdir=$srcdir ;;
  10596. *) # Relative name.
  10597. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10598. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10599. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10600. esac
  10601. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10602. case $ac_mode in
  10603. :F)
  10604. #
  10605. # CONFIG_FILE
  10606. #
  10607. case $INSTALL in
  10608. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10609. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10610. esac
  10611. _ACEOF
  10612. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10613. # If the template does not know about datarootdir, expand it.
  10614. # FIXME: This hack should be removed a few years after 2.60.
  10615. ac_datarootdir_hack=; ac_datarootdir_seen=
  10616. ac_sed_dataroot='
  10617. /datarootdir/ {
  10618. p
  10619. q
  10620. }
  10621. /@datadir@/p
  10622. /@docdir@/p
  10623. /@infodir@/p
  10624. /@localedir@/p
  10625. /@mandir@/p
  10626. '
  10627. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10628. *datarootdir*) ac_datarootdir_seen=yes;;
  10629. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10630. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10631. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10632. _ACEOF
  10633. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10634. ac_datarootdir_hack='
  10635. s&@datadir@&$datadir&g
  10636. s&@docdir@&$docdir&g
  10637. s&@infodir@&$infodir&g
  10638. s&@localedir@&$localedir&g
  10639. s&@mandir@&$mandir&g
  10640. s&\\\${datarootdir}&$datarootdir&g' ;;
  10641. esac
  10642. _ACEOF
  10643. # Neutralize VPATH when `$srcdir' = `.'.
  10644. # Shell code in configure.ac might set extrasub.
  10645. # FIXME: do we really want to maintain this feature?
  10646. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10647. ac_sed_extra="$ac_vpsub
  10648. $extrasub
  10649. _ACEOF
  10650. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10651. :t
  10652. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10653. s|@configure_input@|$ac_sed_conf_input|;t t
  10654. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10655. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10656. s&@srcdir@&$ac_srcdir&;t t
  10657. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10658. s&@top_srcdir@&$ac_top_srcdir&;t t
  10659. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10660. s&@builddir@&$ac_builddir&;t t
  10661. s&@abs_builddir@&$ac_abs_builddir&;t t
  10662. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10663. s&@INSTALL@&$ac_INSTALL&;t t
  10664. $ac_datarootdir_hack
  10665. "
  10666. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  10667. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  10668. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  10669. { (exit 1); exit 1; }; }
  10670. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10671. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  10672. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  10673. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10674. which seems to be undefined. Please make sure it is defined." >&5
  10675. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10676. which seems to be undefined. Please make sure it is defined." >&2;}
  10677. rm -f "$tmp/stdin"
  10678. case $ac_file in
  10679. -) cat "$tmp/out" && rm -f "$tmp/out";;
  10680. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  10681. esac \
  10682. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  10683. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  10684. { (exit 1); exit 1; }; }
  10685. ;;
  10686. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  10687. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10688. ;;
  10689. esac
  10690. case $ac_file$ac_mode in
  10691. "libtool":C)
  10692. # See if we are running on zsh, and set the options which allow our
  10693. # commands through without removal of \ escapes.
  10694. if test -n "${ZSH_VERSION+set}" ; then
  10695. setopt NO_GLOB_SUBST
  10696. fi
  10697. cfgfile="${ofile}T"
  10698. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  10699. $RM "$cfgfile"
  10700. cat <<_LT_EOF >> "$cfgfile"
  10701. #! $SHELL
  10702. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10703. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  10704. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10705. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10706. #
  10707. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  10708. # 2006, 2007, 2008 Free Software Foundation, Inc.
  10709. # Written by Gordon Matzigkeit, 1996
  10710. #
  10711. # This file is part of GNU Libtool.
  10712. #
  10713. # GNU Libtool is free software; you can redistribute it and/or
  10714. # modify it under the terms of the GNU General Public License as
  10715. # published by the Free Software Foundation; either version 2 of
  10716. # the License, or (at your option) any later version.
  10717. #
  10718. # As a special exception to the GNU General Public License,
  10719. # if you distribute this file as part of a program or library that
  10720. # is built using GNU Libtool, you may include this file under the
  10721. # same distribution terms that you use for the rest of that program.
  10722. #
  10723. # GNU Libtool is distributed in the hope that it will be useful,
  10724. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10725. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10726. # GNU General Public License for more details.
  10727. #
  10728. # You should have received a copy of the GNU General Public License
  10729. # along with GNU Libtool; see the file COPYING. If not, a copy
  10730. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  10731. # obtained by writing to the Free Software Foundation, Inc.,
  10732. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  10733. # The names of the tagged configurations supported by this script.
  10734. available_tags=""
  10735. # ### BEGIN LIBTOOL CONFIG
  10736. # Which release of libtool.m4 was used?
  10737. macro_version=$macro_version
  10738. macro_revision=$macro_revision
  10739. # Assembler program.
  10740. AS=$AS
  10741. # DLL creation program.
  10742. DLLTOOL=$DLLTOOL
  10743. # Object dumper program.
  10744. OBJDUMP=$OBJDUMP
  10745. # Whether or not to build shared libraries.
  10746. build_libtool_libs=$enable_shared
  10747. # Whether or not to build static libraries.
  10748. build_old_libs=$enable_static
  10749. # What type of objects to build.
  10750. pic_mode=$pic_mode
  10751. # Whether or not to optimize for fast installation.
  10752. fast_install=$enable_fast_install
  10753. # The host system.
  10754. host_alias=$host_alias
  10755. host=$host
  10756. host_os=$host_os
  10757. # The build system.
  10758. build_alias=$build_alias
  10759. build=$build
  10760. build_os=$build_os
  10761. # A sed program that does not truncate output.
  10762. SED=$lt_SED
  10763. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  10764. Xsed="\$SED -e 1s/^X//"
  10765. # A grep program that handles long lines.
  10766. GREP=$lt_GREP
  10767. # An ERE matcher.
  10768. EGREP=$lt_EGREP
  10769. # A literal string matcher.
  10770. FGREP=$lt_FGREP
  10771. # A BSD- or MS-compatible name lister.
  10772. NM=$lt_NM
  10773. # Whether we need soft or hard links.
  10774. LN_S=$lt_LN_S
  10775. # What is the maximum length of a command?
  10776. max_cmd_len=$max_cmd_len
  10777. # Object file suffix (normally "o").
  10778. objext=$ac_objext
  10779. # Executable file suffix (normally "").
  10780. exeext=$exeext
  10781. # whether the shell understands "unset".
  10782. lt_unset=$lt_unset
  10783. # turn spaces into newlines.
  10784. SP2NL=$lt_lt_SP2NL
  10785. # turn newlines into spaces.
  10786. NL2SP=$lt_lt_NL2SP
  10787. # How to create reloadable object files.
  10788. reload_flag=$lt_reload_flag
  10789. reload_cmds=$lt_reload_cmds
  10790. # Method to check whether dependent libraries are shared objects.
  10791. deplibs_check_method=$lt_deplibs_check_method
  10792. # Command to use when deplibs_check_method == "file_magic".
  10793. file_magic_cmd=$lt_file_magic_cmd
  10794. # The archiver.
  10795. AR=$lt_AR
  10796. AR_FLAGS=$lt_AR_FLAGS
  10797. # A symbol stripping program.
  10798. STRIP=$lt_STRIP
  10799. # Commands used to install an old-style archive.
  10800. RANLIB=$lt_RANLIB
  10801. old_postinstall_cmds=$lt_old_postinstall_cmds
  10802. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10803. # A C compiler.
  10804. LTCC=$lt_CC
  10805. # LTCC compiler flags.
  10806. LTCFLAGS=$lt_CFLAGS
  10807. # Take the output of nm and produce a listing of raw symbols and C names.
  10808. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  10809. # Transform the output of nm in a proper C declaration.
  10810. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  10811. # Transform the output of nm in a C name address pair.
  10812. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  10813. # Transform the output of nm in a C name address pair when lib prefix is needed.
  10814. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  10815. # The name of the directory that contains temporary libtool files.
  10816. objdir=$objdir
  10817. # Shell to use when invoking shell scripts.
  10818. SHELL=$lt_SHELL
  10819. # An echo program that does not interpret backslashes.
  10820. ECHO=$lt_ECHO
  10821. # Used to examine libraries when file_magic_cmd begins with "file".
  10822. MAGIC_CMD=$MAGIC_CMD
  10823. # Must we lock files when doing compilation?
  10824. need_locks=$lt_need_locks
  10825. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  10826. DSYMUTIL=$lt_DSYMUTIL
  10827. # Tool to change global to local symbols on Mac OS X.
  10828. NMEDIT=$lt_NMEDIT
  10829. # Tool to manipulate fat objects and archives on Mac OS X.
  10830. LIPO=$lt_LIPO
  10831. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  10832. OTOOL=$lt_OTOOL
  10833. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  10834. OTOOL64=$lt_OTOOL64
  10835. # Old archive suffix (normally "a").
  10836. libext=$libext
  10837. # Shared library suffix (normally ".so").
  10838. shrext_cmds=$lt_shrext_cmds
  10839. # The commands to extract the exported symbol list from a shared archive.
  10840. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10841. # Variables whose values should be saved in libtool wrapper scripts and
  10842. # restored at link time.
  10843. variables_saved_for_relink=$lt_variables_saved_for_relink
  10844. # Do we need the "lib" prefix for modules?
  10845. need_lib_prefix=$need_lib_prefix
  10846. # Do we need a version for libraries?
  10847. need_version=$need_version
  10848. # Library versioning type.
  10849. version_type=$version_type
  10850. # Shared library runtime path variable.
  10851. runpath_var=$runpath_var
  10852. # Shared library path variable.
  10853. shlibpath_var=$shlibpath_var
  10854. # Is shlibpath searched before the hard-coded library search path?
  10855. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  10856. # Format of library name prefix.
  10857. libname_spec=$lt_libname_spec
  10858. # List of archive names. First name is the real one, the rest are links.
  10859. # The last name is the one that the linker finds with -lNAME
  10860. library_names_spec=$lt_library_names_spec
  10861. # The coded name of the library, if different from the real name.
  10862. soname_spec=$lt_soname_spec
  10863. # Command to use after installation of a shared archive.
  10864. postinstall_cmds=$lt_postinstall_cmds
  10865. # Command to use after uninstallation of a shared archive.
  10866. postuninstall_cmds=$lt_postuninstall_cmds
  10867. # Commands used to finish a libtool library installation in a directory.
  10868. finish_cmds=$lt_finish_cmds
  10869. # As "finish_cmds", except a single script fragment to be evaled but
  10870. # not shown.
  10871. finish_eval=$lt_finish_eval
  10872. # Whether we should hardcode library paths into libraries.
  10873. hardcode_into_libs=$hardcode_into_libs
  10874. # Compile-time system search path for libraries.
  10875. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10876. # Run-time system search path for libraries.
  10877. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10878. # Whether dlopen is supported.
  10879. dlopen_support=$enable_dlopen
  10880. # Whether dlopen of programs is supported.
  10881. dlopen_self=$enable_dlopen_self
  10882. # Whether dlopen of statically linked programs is supported.
  10883. dlopen_self_static=$enable_dlopen_self_static
  10884. # Commands to strip libraries.
  10885. old_striplib=$lt_old_striplib
  10886. striplib=$lt_striplib
  10887. # The linker used to build libraries.
  10888. LD=$lt_LD
  10889. # Commands used to build an old-style archive.
  10890. old_archive_cmds=$lt_old_archive_cmds
  10891. # A language specific compiler.
  10892. CC=$lt_compiler
  10893. # Is the compiler the GNU compiler?
  10894. with_gcc=$GCC
  10895. # Compiler flag to turn off builtin functions.
  10896. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  10897. # How to pass a linker flag through the compiler.
  10898. wl=$lt_lt_prog_compiler_wl
  10899. # Additional compiler flags for building library objects.
  10900. pic_flag=$lt_lt_prog_compiler_pic
  10901. # Compiler flag to prevent dynamic linking.
  10902. link_static_flag=$lt_lt_prog_compiler_static
  10903. # Does compiler simultaneously support -c and -o options?
  10904. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  10905. # Whether or not to add -lc for building shared libraries.
  10906. build_libtool_need_lc=$archive_cmds_need_lc
  10907. # Whether or not to disallow shared libs when runtime libs are static.
  10908. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  10909. # Compiler flag to allow reflexive dlopens.
  10910. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  10911. # Compiler flag to generate shared objects directly from archives.
  10912. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  10913. # Whether the compiler copes with passing no objects directly.
  10914. compiler_needs_object=$lt_compiler_needs_object
  10915. # Create an old-style archive from a shared archive.
  10916. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  10917. # Create a temporary old-style archive to link instead of a shared archive.
  10918. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  10919. # Commands used to build a shared archive.
  10920. archive_cmds=$lt_archive_cmds
  10921. archive_expsym_cmds=$lt_archive_expsym_cmds
  10922. # Commands used to build a loadable module if different from building
  10923. # a shared archive.
  10924. module_cmds=$lt_module_cmds
  10925. module_expsym_cmds=$lt_module_expsym_cmds
  10926. # Whether we are building with GNU ld or not.
  10927. with_gnu_ld=$lt_with_gnu_ld
  10928. # Flag that allows shared libraries with undefined symbols to be built.
  10929. allow_undefined_flag=$lt_allow_undefined_flag
  10930. # Flag that enforces no undefined symbols.
  10931. no_undefined_flag=$lt_no_undefined_flag
  10932. # Flag to hardcode \$libdir into a binary during linking.
  10933. # This must work even if \$libdir does not exist
  10934. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  10935. # If ld is used when linking, flag to hardcode \$libdir into a binary
  10936. # during linking. This must work even if \$libdir does not exist.
  10937. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  10938. # Whether we need a single "-rpath" flag with a separated argument.
  10939. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  10940. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  10941. # DIR into the resulting binary.
  10942. hardcode_direct=$hardcode_direct
  10943. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  10944. # DIR into the resulting binary and the resulting library dependency is
  10945. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  10946. # library is relocated.
  10947. hardcode_direct_absolute=$hardcode_direct_absolute
  10948. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  10949. # into the resulting binary.
  10950. hardcode_minus_L=$hardcode_minus_L
  10951. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  10952. # into the resulting binary.
  10953. hardcode_shlibpath_var=$hardcode_shlibpath_var
  10954. # Set to "yes" if building a shared library automatically hardcodes DIR
  10955. # into the library and all subsequent libraries and executables linked
  10956. # against it.
  10957. hardcode_automatic=$hardcode_automatic
  10958. # Set to yes if linker adds runtime paths of dependent libraries
  10959. # to runtime path list.
  10960. inherit_rpath=$inherit_rpath
  10961. # Whether libtool must link a program against all its dependency libraries.
  10962. link_all_deplibs=$link_all_deplibs
  10963. # Fix the shell variable \$srcfile for the compiler.
  10964. fix_srcfile_path=$lt_fix_srcfile_path
  10965. # Set to "yes" if exported symbols are required.
  10966. always_export_symbols=$always_export_symbols
  10967. # The commands to list exported symbols.
  10968. export_symbols_cmds=$lt_export_symbols_cmds
  10969. # Symbols that should not be listed in the preloaded symbols.
  10970. exclude_expsyms=$lt_exclude_expsyms
  10971. # Symbols that must always be exported.
  10972. include_expsyms=$lt_include_expsyms
  10973. # Commands necessary for linking programs (against libraries) with templates.
  10974. prelink_cmds=$lt_prelink_cmds
  10975. # Specify filename containing input files.
  10976. file_list_spec=$lt_file_list_spec
  10977. # How to hardcode a shared library path into an executable.
  10978. hardcode_action=$hardcode_action
  10979. # ### END LIBTOOL CONFIG
  10980. _LT_EOF
  10981. case $host_os in
  10982. aix3*)
  10983. cat <<\_LT_EOF >> "$cfgfile"
  10984. # AIX sometimes has problems with the GCC collect2 program. For some
  10985. # reason, if we set the COLLECT_NAMES environment variable, the problems
  10986. # vanish in a puff of smoke.
  10987. if test "X${COLLECT_NAMES+set}" != Xset; then
  10988. COLLECT_NAMES=
  10989. export COLLECT_NAMES
  10990. fi
  10991. _LT_EOF
  10992. ;;
  10993. esac
  10994. ltmain="$ac_aux_dir/ltmain.sh"
  10995. # We use sed instead of cat because bash on DJGPP gets confused if
  10996. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  10997. # text mode, it properly converts lines to CR/LF. This bash problem
  10998. # is reportedly fixed, but why not run on old versions too?
  10999. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11000. || (rm -f "$cfgfile"; exit 1)
  11001. case $xsi_shell in
  11002. yes)
  11003. cat << \_LT_EOF >> "$cfgfile"
  11004. # func_dirname file append nondir_replacement
  11005. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11006. # otherwise set result to NONDIR_REPLACEMENT.
  11007. func_dirname ()
  11008. {
  11009. case ${1} in
  11010. */*) func_dirname_result="${1%/*}${2}" ;;
  11011. * ) func_dirname_result="${3}" ;;
  11012. esac
  11013. }
  11014. # func_basename file
  11015. func_basename ()
  11016. {
  11017. func_basename_result="${1##*/}"
  11018. }
  11019. # func_dirname_and_basename file append nondir_replacement
  11020. # perform func_basename and func_dirname in a single function
  11021. # call:
  11022. # dirname: Compute the dirname of FILE. If nonempty,
  11023. # add APPEND to the result, otherwise set result
  11024. # to NONDIR_REPLACEMENT.
  11025. # value returned in "$func_dirname_result"
  11026. # basename: Compute filename of FILE.
  11027. # value retuned in "$func_basename_result"
  11028. # Implementation must be kept synchronized with func_dirname
  11029. # and func_basename. For efficiency, we do not delegate to
  11030. # those functions but instead duplicate the functionality here.
  11031. func_dirname_and_basename ()
  11032. {
  11033. case ${1} in
  11034. */*) func_dirname_result="${1%/*}${2}" ;;
  11035. * ) func_dirname_result="${3}" ;;
  11036. esac
  11037. func_basename_result="${1##*/}"
  11038. }
  11039. # func_stripname prefix suffix name
  11040. # strip PREFIX and SUFFIX off of NAME.
  11041. # PREFIX and SUFFIX must not contain globbing or regex special
  11042. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11043. # dot (in which case that matches only a dot).
  11044. func_stripname ()
  11045. {
  11046. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11047. # positional parameters, so assign one to ordinary parameter first.
  11048. func_stripname_result=${3}
  11049. func_stripname_result=${func_stripname_result#"${1}"}
  11050. func_stripname_result=${func_stripname_result%"${2}"}
  11051. }
  11052. # func_opt_split
  11053. func_opt_split ()
  11054. {
  11055. func_opt_split_opt=${1%%=*}
  11056. func_opt_split_arg=${1#*=}
  11057. }
  11058. # func_lo2o object
  11059. func_lo2o ()
  11060. {
  11061. case ${1} in
  11062. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11063. *) func_lo2o_result=${1} ;;
  11064. esac
  11065. }
  11066. # func_xform libobj-or-source
  11067. func_xform ()
  11068. {
  11069. func_xform_result=${1%.*}.lo
  11070. }
  11071. # func_arith arithmetic-term...
  11072. func_arith ()
  11073. {
  11074. func_arith_result=$(( $* ))
  11075. }
  11076. # func_len string
  11077. # STRING may not start with a hyphen.
  11078. func_len ()
  11079. {
  11080. func_len_result=${#1}
  11081. }
  11082. _LT_EOF
  11083. ;;
  11084. *) # Bourne compatible functions.
  11085. cat << \_LT_EOF >> "$cfgfile"
  11086. # func_dirname file append nondir_replacement
  11087. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11088. # otherwise set result to NONDIR_REPLACEMENT.
  11089. func_dirname ()
  11090. {
  11091. # Extract subdirectory from the argument.
  11092. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11093. if test "X$func_dirname_result" = "X${1}"; then
  11094. func_dirname_result="${3}"
  11095. else
  11096. func_dirname_result="$func_dirname_result${2}"
  11097. fi
  11098. }
  11099. # func_basename file
  11100. func_basename ()
  11101. {
  11102. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11103. }
  11104. # func_stripname prefix suffix name
  11105. # strip PREFIX and SUFFIX off of NAME.
  11106. # PREFIX and SUFFIX must not contain globbing or regex special
  11107. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11108. # dot (in which case that matches only a dot).
  11109. # func_strip_suffix prefix name
  11110. func_stripname ()
  11111. {
  11112. case ${2} in
  11113. .*) func_stripname_result=`$ECHO "X${3}" \
  11114. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11115. *) func_stripname_result=`$ECHO "X${3}" \
  11116. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11117. esac
  11118. }
  11119. # sed scripts:
  11120. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11121. my_sed_long_arg='1s/^-[^=]*=//'
  11122. # func_opt_split
  11123. func_opt_split ()
  11124. {
  11125. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11126. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11127. }
  11128. # func_lo2o object
  11129. func_lo2o ()
  11130. {
  11131. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11132. }
  11133. # func_xform libobj-or-source
  11134. func_xform ()
  11135. {
  11136. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  11137. }
  11138. # func_arith arithmetic-term...
  11139. func_arith ()
  11140. {
  11141. func_arith_result=`expr "$@"`
  11142. }
  11143. # func_len string
  11144. # STRING may not start with a hyphen.
  11145. func_len ()
  11146. {
  11147. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11148. }
  11149. _LT_EOF
  11150. esac
  11151. case $lt_shell_append in
  11152. yes)
  11153. cat << \_LT_EOF >> "$cfgfile"
  11154. # func_append var value
  11155. # Append VALUE to the end of shell variable VAR.
  11156. func_append ()
  11157. {
  11158. eval "$1+=\$2"
  11159. }
  11160. _LT_EOF
  11161. ;;
  11162. *)
  11163. cat << \_LT_EOF >> "$cfgfile"
  11164. # func_append var value
  11165. # Append VALUE to the end of shell variable VAR.
  11166. func_append ()
  11167. {
  11168. eval "$1=\$$1\$2"
  11169. }
  11170. _LT_EOF
  11171. ;;
  11172. esac
  11173. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11174. || (rm -f "$cfgfile"; exit 1)
  11175. mv -f "$cfgfile" "$ofile" ||
  11176. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11177. chmod +x "$ofile"
  11178. ;;
  11179. esac
  11180. done # for ac_tag
  11181. { (exit 0); exit 0; }
  11182. _ACEOF
  11183. chmod +x $CONFIG_STATUS
  11184. ac_clean_files=$ac_clean_files_save
  11185. test $ac_write_fail = 0 ||
  11186. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  11187. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  11188. { (exit 1); exit 1; }; }
  11189. # configure is writing to config.log, and then calls config.status.
  11190. # config.status does its own redirection, appending to config.log.
  11191. # Unfortunately, on DOS this fails, as config.log is still kept open
  11192. # by configure, so config.status won't be able to write to it; its
  11193. # output is simply discarded. So we exec the FD to /dev/null,
  11194. # effectively closing config.log, so it can be properly (re)opened and
  11195. # appended to by config.status. When coming back to configure, we
  11196. # need to make the FD available again.
  11197. if test "$no_create" != yes; then
  11198. ac_cs_success=:
  11199. ac_config_status_args=
  11200. test "$silent" = yes &&
  11201. ac_config_status_args="$ac_config_status_args --quiet"
  11202. exec 5>/dev/null
  11203. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11204. exec 5>>config.log
  11205. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11206. # would make configure fail if this is the last instruction.
  11207. $ac_cs_success || { (exit 1); exit 1; }
  11208. fi
  11209. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11210. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11211. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11212. fi