configure 405 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for OPCUAServer 1.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='OPCUAServer'
  539. PACKAGE_TARNAME='opcuaserver'
  540. PACKAGE_VERSION='1.0'
  541. PACKAGE_STRING='OPCUAServer 1.0'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_subst_vars='am__EXEEXT_FALSE
  580. am__EXEEXT_TRUE
  581. LTLIBOBJS
  582. LIBOBJS
  583. CPP
  584. OTOOL64
  585. OTOOL
  586. LIPO
  587. NMEDIT
  588. DSYMUTIL
  589. MANIFEST_TOOL
  590. RANLIB
  591. ac_ct_AR
  592. AR
  593. DLLTOOL
  594. OBJDUMP
  595. LN_S
  596. NM
  597. ac_ct_DUMPBIN
  598. DUMPBIN
  599. LD
  600. FGREP
  601. EGREP
  602. GREP
  603. SED
  604. LIBTOOL
  605. HAVE_CHECK_FALSE
  606. HAVE_CHECK_TRUE
  607. CHECK_LIBS
  608. CHECK_CFLAGS
  609. PKG_CONFIG_LIBDIR
  610. PKG_CONFIG_PATH
  611. PKG_CONFIG
  612. am__fastdepCC_FALSE
  613. am__fastdepCC_TRUE
  614. CCDEPMODE
  615. am__nodep
  616. AMDEPBACKSLASH
  617. AMDEP_FALSE
  618. AMDEP_TRUE
  619. am__quote
  620. am__include
  621. DEPDIR
  622. OBJEXT
  623. EXEEXT
  624. ac_ct_CC
  625. CPPFLAGS
  626. LDFLAGS
  627. CFLAGS
  628. CC
  629. AM_BACKSLASH
  630. AM_DEFAULT_VERBOSITY
  631. AM_DEFAULT_V
  632. AM_V
  633. am__untar
  634. am__tar
  635. AMTAR
  636. am__leading_dot
  637. SET_MAKE
  638. AWK
  639. mkdir_p
  640. MKDIR_P
  641. INSTALL_STRIP_PROGRAM
  642. STRIP
  643. install_sh
  644. MAKEINFO
  645. AUTOHEADER
  646. AUTOMAKE
  647. AUTOCONF
  648. ACLOCAL
  649. VERSION
  650. PACKAGE
  651. CYGPATH_W
  652. am__isrc
  653. INSTALL_DATA
  654. INSTALL_SCRIPT
  655. INSTALL_PROGRAM
  656. target_os
  657. target_vendor
  658. target_cpu
  659. target
  660. host_os
  661. host_vendor
  662. host_cpu
  663. host
  664. build_os
  665. build_vendor
  666. build_cpu
  667. build
  668. target_alias
  669. host_alias
  670. build_alias
  671. LIBS
  672. ECHO_T
  673. ECHO_N
  674. ECHO_C
  675. DEFS
  676. mandir
  677. localedir
  678. libdir
  679. psdir
  680. pdfdir
  681. dvidir
  682. htmldir
  683. infodir
  684. docdir
  685. oldincludedir
  686. includedir
  687. localstatedir
  688. sharedstatedir
  689. sysconfdir
  690. datadir
  691. datarootdir
  692. libexecdir
  693. sbindir
  694. bindir
  695. program_transform_name
  696. prefix
  697. exec_prefix
  698. PACKAGE_URL
  699. PACKAGE_BUGREPORT
  700. PACKAGE_STRING
  701. PACKAGE_VERSION
  702. PACKAGE_TARNAME
  703. PACKAGE_NAME
  704. PATH_SEPARATOR
  705. SHELL'
  706. ac_subst_files=''
  707. ac_user_opts='
  708. enable_option_checking
  709. enable_silent_rules
  710. enable_dependency_tracking
  711. enable_shared
  712. enable_static
  713. with_pic
  714. enable_fast_install
  715. with_gnu_ld
  716. with_sysroot
  717. enable_libtool_lock
  718. '
  719. ac_precious_vars='build_alias
  720. host_alias
  721. target_alias
  722. CC
  723. CFLAGS
  724. LDFLAGS
  725. LIBS
  726. CPPFLAGS
  727. PKG_CONFIG
  728. PKG_CONFIG_PATH
  729. PKG_CONFIG_LIBDIR
  730. CHECK_CFLAGS
  731. CHECK_LIBS
  732. CPP'
  733. # Initialize some variables set by options.
  734. ac_init_help=
  735. ac_init_version=false
  736. ac_unrecognized_opts=
  737. ac_unrecognized_sep=
  738. # The variables have the same names as the options, with
  739. # dashes changed to underlines.
  740. cache_file=/dev/null
  741. exec_prefix=NONE
  742. no_create=
  743. no_recursion=
  744. prefix=NONE
  745. program_prefix=NONE
  746. program_suffix=NONE
  747. program_transform_name=s,x,x,
  748. silent=
  749. site=
  750. srcdir=
  751. verbose=
  752. x_includes=NONE
  753. x_libraries=NONE
  754. # Installation directory options.
  755. # These are left unexpanded so users can "make install exec_prefix=/foo"
  756. # and all the variables that are supposed to be based on exec_prefix
  757. # by default will actually change.
  758. # Use braces instead of parens because sh, perl, etc. also accept them.
  759. # (The list follows the same order as the GNU Coding Standards.)
  760. bindir='${exec_prefix}/bin'
  761. sbindir='${exec_prefix}/sbin'
  762. libexecdir='${exec_prefix}/libexec'
  763. datarootdir='${prefix}/share'
  764. datadir='${datarootdir}'
  765. sysconfdir='${prefix}/etc'
  766. sharedstatedir='${prefix}/com'
  767. localstatedir='${prefix}/var'
  768. includedir='${prefix}/include'
  769. oldincludedir='/usr/include'
  770. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  771. infodir='${datarootdir}/info'
  772. htmldir='${docdir}'
  773. dvidir='${docdir}'
  774. pdfdir='${docdir}'
  775. psdir='${docdir}'
  776. libdir='${exec_prefix}/lib'
  777. localedir='${datarootdir}/locale'
  778. mandir='${datarootdir}/man'
  779. ac_prev=
  780. ac_dashdash=
  781. for ac_option
  782. do
  783. # If the previous option needs an argument, assign it.
  784. if test -n "$ac_prev"; then
  785. eval $ac_prev=\$ac_option
  786. ac_prev=
  787. continue
  788. fi
  789. case $ac_option in
  790. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  791. *=) ac_optarg= ;;
  792. *) ac_optarg=yes ;;
  793. esac
  794. # Accept the important Cygnus configure options, so we can diagnose typos.
  795. case $ac_dashdash$ac_option in
  796. --)
  797. ac_dashdash=yes ;;
  798. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  799. ac_prev=bindir ;;
  800. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  801. bindir=$ac_optarg ;;
  802. -build | --build | --buil | --bui | --bu)
  803. ac_prev=build_alias ;;
  804. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  805. build_alias=$ac_optarg ;;
  806. -cache-file | --cache-file | --cache-fil | --cache-fi \
  807. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  808. ac_prev=cache_file ;;
  809. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  810. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  811. cache_file=$ac_optarg ;;
  812. --config-cache | -C)
  813. cache_file=config.cache ;;
  814. -datadir | --datadir | --datadi | --datad)
  815. ac_prev=datadir ;;
  816. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  817. datadir=$ac_optarg ;;
  818. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  819. | --dataroo | --dataro | --datar)
  820. ac_prev=datarootdir ;;
  821. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  822. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  823. datarootdir=$ac_optarg ;;
  824. -disable-* | --disable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error $? "invalid feature name: $ac_useropt"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=no ;;
  839. -docdir | --docdir | --docdi | --doc | --do)
  840. ac_prev=docdir ;;
  841. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  842. docdir=$ac_optarg ;;
  843. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  844. ac_prev=dvidir ;;
  845. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  846. dvidir=$ac_optarg ;;
  847. -enable-* | --enable-*)
  848. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  851. as_fn_error $? "invalid feature name: $ac_useropt"
  852. ac_useropt_orig=$ac_useropt
  853. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  854. case $ac_user_opts in
  855. *"
  856. "enable_$ac_useropt"
  857. "*) ;;
  858. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  859. ac_unrecognized_sep=', ';;
  860. esac
  861. eval enable_$ac_useropt=\$ac_optarg ;;
  862. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  863. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  864. | --exec | --exe | --ex)
  865. ac_prev=exec_prefix ;;
  866. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  867. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  868. | --exec=* | --exe=* | --ex=*)
  869. exec_prefix=$ac_optarg ;;
  870. -gas | --gas | --ga | --g)
  871. # Obsolete; use --with-gas.
  872. with_gas=yes ;;
  873. -help | --help | --hel | --he | -h)
  874. ac_init_help=long ;;
  875. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  876. ac_init_help=recursive ;;
  877. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  878. ac_init_help=short ;;
  879. -host | --host | --hos | --ho)
  880. ac_prev=host_alias ;;
  881. -host=* | --host=* | --hos=* | --ho=*)
  882. host_alias=$ac_optarg ;;
  883. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  884. ac_prev=htmldir ;;
  885. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  886. | --ht=*)
  887. htmldir=$ac_optarg ;;
  888. -includedir | --includedir | --includedi | --included | --include \
  889. | --includ | --inclu | --incl | --inc)
  890. ac_prev=includedir ;;
  891. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  892. | --includ=* | --inclu=* | --incl=* | --inc=*)
  893. includedir=$ac_optarg ;;
  894. -infodir | --infodir | --infodi | --infod | --info | --inf)
  895. ac_prev=infodir ;;
  896. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  897. infodir=$ac_optarg ;;
  898. -libdir | --libdir | --libdi | --libd)
  899. ac_prev=libdir ;;
  900. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  901. libdir=$ac_optarg ;;
  902. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  903. | --libexe | --libex | --libe)
  904. ac_prev=libexecdir ;;
  905. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  906. | --libexe=* | --libex=* | --libe=*)
  907. libexecdir=$ac_optarg ;;
  908. -localedir | --localedir | --localedi | --localed | --locale)
  909. ac_prev=localedir ;;
  910. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  911. localedir=$ac_optarg ;;
  912. -localstatedir | --localstatedir | --localstatedi | --localstated \
  913. | --localstate | --localstat | --localsta | --localst | --locals)
  914. ac_prev=localstatedir ;;
  915. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  916. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  917. localstatedir=$ac_optarg ;;
  918. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  919. ac_prev=mandir ;;
  920. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  921. mandir=$ac_optarg ;;
  922. -nfp | --nfp | --nf)
  923. # Obsolete; use --without-fp.
  924. with_fp=no ;;
  925. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  926. | --no-cr | --no-c | -n)
  927. no_create=yes ;;
  928. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  929. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  930. no_recursion=yes ;;
  931. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  932. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  933. | --oldin | --oldi | --old | --ol | --o)
  934. ac_prev=oldincludedir ;;
  935. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  936. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  937. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  938. oldincludedir=$ac_optarg ;;
  939. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  940. ac_prev=prefix ;;
  941. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  942. prefix=$ac_optarg ;;
  943. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  944. | --program-pre | --program-pr | --program-p)
  945. ac_prev=program_prefix ;;
  946. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  947. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  948. program_prefix=$ac_optarg ;;
  949. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  950. | --program-suf | --program-su | --program-s)
  951. ac_prev=program_suffix ;;
  952. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  953. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  954. program_suffix=$ac_optarg ;;
  955. -program-transform-name | --program-transform-name \
  956. | --program-transform-nam | --program-transform-na \
  957. | --program-transform-n | --program-transform- \
  958. | --program-transform | --program-transfor \
  959. | --program-transfo | --program-transf \
  960. | --program-trans | --program-tran \
  961. | --progr-tra | --program-tr | --program-t)
  962. ac_prev=program_transform_name ;;
  963. -program-transform-name=* | --program-transform-name=* \
  964. | --program-transform-nam=* | --program-transform-na=* \
  965. | --program-transform-n=* | --program-transform-=* \
  966. | --program-transform=* | --program-transfor=* \
  967. | --program-transfo=* | --program-transf=* \
  968. | --program-trans=* | --program-tran=* \
  969. | --progr-tra=* | --program-tr=* | --program-t=*)
  970. program_transform_name=$ac_optarg ;;
  971. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  972. ac_prev=pdfdir ;;
  973. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  974. pdfdir=$ac_optarg ;;
  975. -psdir | --psdir | --psdi | --psd | --ps)
  976. ac_prev=psdir ;;
  977. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  978. psdir=$ac_optarg ;;
  979. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  980. | -silent | --silent | --silen | --sile | --sil)
  981. silent=yes ;;
  982. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  983. ac_prev=sbindir ;;
  984. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  985. | --sbi=* | --sb=*)
  986. sbindir=$ac_optarg ;;
  987. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  988. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  989. | --sharedst | --shareds | --shared | --share | --shar \
  990. | --sha | --sh)
  991. ac_prev=sharedstatedir ;;
  992. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  993. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  994. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  995. | --sha=* | --sh=*)
  996. sharedstatedir=$ac_optarg ;;
  997. -site | --site | --sit)
  998. ac_prev=site ;;
  999. -site=* | --site=* | --sit=*)
  1000. site=$ac_optarg ;;
  1001. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1002. ac_prev=srcdir ;;
  1003. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1004. srcdir=$ac_optarg ;;
  1005. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1006. | --syscon | --sysco | --sysc | --sys | --sy)
  1007. ac_prev=sysconfdir ;;
  1008. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1009. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1010. sysconfdir=$ac_optarg ;;
  1011. -target | --target | --targe | --targ | --tar | --ta | --t)
  1012. ac_prev=target_alias ;;
  1013. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1014. target_alias=$ac_optarg ;;
  1015. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1016. verbose=yes ;;
  1017. -version | --version | --versio | --versi | --vers | -V)
  1018. ac_init_version=: ;;
  1019. -with-* | --with-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error $? "invalid package name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "with_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval with_$ac_useropt=\$ac_optarg ;;
  1034. -without-* | --without-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error $? "invalid package name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval with_$ac_useropt=no ;;
  1049. --x)
  1050. # Obsolete; use --with-x.
  1051. with_x=yes ;;
  1052. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1053. | --x-incl | --x-inc | --x-in | --x-i)
  1054. ac_prev=x_includes ;;
  1055. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1056. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1057. x_includes=$ac_optarg ;;
  1058. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1059. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1060. ac_prev=x_libraries ;;
  1061. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1062. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1063. x_libraries=$ac_optarg ;;
  1064. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1065. Try \`$0 --help' for more information"
  1066. ;;
  1067. *=*)
  1068. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1069. # Reject names that are not valid shell variable names.
  1070. case $ac_envvar in #(
  1071. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1072. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1073. esac
  1074. eval $ac_envvar=\$ac_optarg
  1075. export $ac_envvar ;;
  1076. *)
  1077. # FIXME: should be removed in autoconf 3.0.
  1078. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1079. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1080. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1081. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1082. ;;
  1083. esac
  1084. done
  1085. if test -n "$ac_prev"; then
  1086. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1087. as_fn_error $? "missing argument to $ac_option"
  1088. fi
  1089. if test -n "$ac_unrecognized_opts"; then
  1090. case $enable_option_checking in
  1091. no) ;;
  1092. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1093. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1094. esac
  1095. fi
  1096. # Check all directory arguments for consistency.
  1097. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1098. datadir sysconfdir sharedstatedir localstatedir includedir \
  1099. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1100. libdir localedir mandir
  1101. do
  1102. eval ac_val=\$$ac_var
  1103. # Remove trailing slashes.
  1104. case $ac_val in
  1105. */ )
  1106. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1107. eval $ac_var=\$ac_val;;
  1108. esac
  1109. # Be sure to have absolute directory names.
  1110. case $ac_val in
  1111. [\\/$]* | ?:[\\/]* ) continue;;
  1112. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1113. esac
  1114. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1115. done
  1116. # There might be people who depend on the old broken behavior: `$host'
  1117. # used to hold the argument of --host etc.
  1118. # FIXME: To remove some day.
  1119. build=$build_alias
  1120. host=$host_alias
  1121. target=$target_alias
  1122. # FIXME: To remove some day.
  1123. if test "x$host_alias" != x; then
  1124. if test "x$build_alias" = x; then
  1125. cross_compiling=maybe
  1126. elif test "x$build_alias" != "x$host_alias"; then
  1127. cross_compiling=yes
  1128. fi
  1129. fi
  1130. ac_tool_prefix=
  1131. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1132. test "$silent" = yes && exec 6>/dev/null
  1133. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1134. ac_ls_di=`ls -di .` &&
  1135. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1136. as_fn_error $? "working directory cannot be determined"
  1137. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1138. as_fn_error $? "pwd does not report name of working directory"
  1139. # Find the source files, if location was not specified.
  1140. if test -z "$srcdir"; then
  1141. ac_srcdir_defaulted=yes
  1142. # Try the directory containing this script, then the parent directory.
  1143. ac_confdir=`$as_dirname -- "$as_myself" ||
  1144. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1145. X"$as_myself" : 'X\(//\)[^/]' \| \
  1146. X"$as_myself" : 'X\(//\)$' \| \
  1147. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1148. $as_echo X"$as_myself" |
  1149. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\/\)[^/].*/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\/\)$/{
  1158. s//\1/
  1159. q
  1160. }
  1161. /^X\(\/\).*/{
  1162. s//\1/
  1163. q
  1164. }
  1165. s/.*/./; q'`
  1166. srcdir=$ac_confdir
  1167. if test ! -r "$srcdir/$ac_unique_file"; then
  1168. srcdir=..
  1169. fi
  1170. else
  1171. ac_srcdir_defaulted=no
  1172. fi
  1173. if test ! -r "$srcdir/$ac_unique_file"; then
  1174. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1175. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1176. fi
  1177. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1178. ac_abs_confdir=`(
  1179. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1180. pwd)`
  1181. # When building in place, set srcdir=.
  1182. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1183. srcdir=.
  1184. fi
  1185. # Remove unnecessary trailing slashes from srcdir.
  1186. # Double slashes in file names in object file debugging info
  1187. # mess up M-x gdb in Emacs.
  1188. case $srcdir in
  1189. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1190. esac
  1191. for ac_var in $ac_precious_vars; do
  1192. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1193. eval ac_env_${ac_var}_value=\$${ac_var}
  1194. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1196. done
  1197. #
  1198. # Report the --help message.
  1199. #
  1200. if test "$ac_init_help" = "long"; then
  1201. # Omit some internal or obsolete options to make the list less imposing.
  1202. # This message is too long to be a string in the A/UX 3.1 sh.
  1203. cat <<_ACEOF
  1204. \`configure' configures OPCUAServer 1.0 to adapt to many kinds of systems.
  1205. Usage: $0 [OPTION]... [VAR=VALUE]...
  1206. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1207. VAR=VALUE. See below for descriptions of some of the useful variables.
  1208. Defaults for the options are specified in brackets.
  1209. Configuration:
  1210. -h, --help display this help and exit
  1211. --help=short display options specific to this package
  1212. --help=recursive display the short help of all the included packages
  1213. -V, --version display version information and exit
  1214. -q, --quiet, --silent do not print \`checking ...' messages
  1215. --cache-file=FILE cache test results in FILE [disabled]
  1216. -C, --config-cache alias for \`--cache-file=config.cache'
  1217. -n, --no-create do not create output files
  1218. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1219. Installation directories:
  1220. --prefix=PREFIX install architecture-independent files in PREFIX
  1221. [$ac_default_prefix]
  1222. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1223. [PREFIX]
  1224. By default, \`make install' will install all the files in
  1225. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1226. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1227. for instance \`--prefix=\$HOME'.
  1228. For better control, use the options below.
  1229. Fine tuning of the installation directories:
  1230. --bindir=DIR user executables [EPREFIX/bin]
  1231. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1232. --libexecdir=DIR program executables [EPREFIX/libexec]
  1233. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1234. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1235. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1236. --libdir=DIR object code libraries [EPREFIX/lib]
  1237. --includedir=DIR C header files [PREFIX/include]
  1238. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1239. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1240. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1241. --infodir=DIR info documentation [DATAROOTDIR/info]
  1242. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1243. --mandir=DIR man documentation [DATAROOTDIR/man]
  1244. --docdir=DIR documentation root [DATAROOTDIR/doc/opcuaserver]
  1245. --htmldir=DIR html documentation [DOCDIR]
  1246. --dvidir=DIR dvi documentation [DOCDIR]
  1247. --pdfdir=DIR pdf documentation [DOCDIR]
  1248. --psdir=DIR ps documentation [DOCDIR]
  1249. _ACEOF
  1250. cat <<\_ACEOF
  1251. Program names:
  1252. --program-prefix=PREFIX prepend PREFIX to installed program names
  1253. --program-suffix=SUFFIX append SUFFIX to installed program names
  1254. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1255. System types:
  1256. --build=BUILD configure for building on BUILD [guessed]
  1257. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1258. --target=TARGET configure for building compilers for TARGET [HOST]
  1259. _ACEOF
  1260. fi
  1261. if test -n "$ac_init_help"; then
  1262. case $ac_init_help in
  1263. short | recursive ) echo "Configuration of OPCUAServer 1.0:";;
  1264. esac
  1265. cat <<\_ACEOF
  1266. Optional Features:
  1267. --disable-option-checking ignore unrecognized --enable/--with options
  1268. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1269. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1270. --enable-silent-rules less verbose build output (undo: "make V=1")
  1271. --disable-silent-rules verbose build output (undo: "make V=0")
  1272. --enable-dependency-tracking
  1273. do not reject slow dependency extractors
  1274. --disable-dependency-tracking
  1275. speeds up one-time build
  1276. --enable-shared[=PKGS] build shared libraries [default=yes]
  1277. --enable-static[=PKGS] build static libraries [default=yes]
  1278. --enable-fast-install[=PKGS]
  1279. optimize for fast installation [default=yes]
  1280. --disable-libtool-lock avoid locking (might break parallel builds)
  1281. Optional Packages:
  1282. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1283. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1284. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1285. both]
  1286. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1287. --with-sysroot=DIR Search for dependent libraries within DIR
  1288. (or the compiler's sysroot if not specified).
  1289. Some influential environment variables:
  1290. CC C compiler command
  1291. CFLAGS C compiler flags
  1292. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1293. nonstandard directory <lib dir>
  1294. LIBS libraries to pass to the linker, e.g. -l<library>
  1295. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1296. you have headers in a nonstandard directory <include dir>
  1297. PKG_CONFIG path to pkg-config utility
  1298. PKG_CONFIG_PATH
  1299. directories to add to pkg-config's search path
  1300. PKG_CONFIG_LIBDIR
  1301. path overriding pkg-config's built-in search path
  1302. CHECK_CFLAGS
  1303. C compiler flags for CHECK, overriding pkg-config
  1304. CHECK_LIBS linker flags for CHECK, overriding pkg-config
  1305. CPP C preprocessor
  1306. Use these variables to override the choices made by `configure' or to help
  1307. it to find libraries and programs with nonstandard names/locations.
  1308. Report bugs to the package provider.
  1309. _ACEOF
  1310. ac_status=$?
  1311. fi
  1312. if test "$ac_init_help" = "recursive"; then
  1313. # If there are subdirs, report their specific --help.
  1314. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1315. test -d "$ac_dir" ||
  1316. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1317. continue
  1318. ac_builddir=.
  1319. case "$ac_dir" in
  1320. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1321. *)
  1322. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1323. # A ".." for each directory in $ac_dir_suffix.
  1324. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1325. case $ac_top_builddir_sub in
  1326. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1327. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1328. esac ;;
  1329. esac
  1330. ac_abs_top_builddir=$ac_pwd
  1331. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1332. # for backward compatibility:
  1333. ac_top_builddir=$ac_top_build_prefix
  1334. case $srcdir in
  1335. .) # We are building in place.
  1336. ac_srcdir=.
  1337. ac_top_srcdir=$ac_top_builddir_sub
  1338. ac_abs_top_srcdir=$ac_pwd ;;
  1339. [\\/]* | ?:[\\/]* ) # Absolute name.
  1340. ac_srcdir=$srcdir$ac_dir_suffix;
  1341. ac_top_srcdir=$srcdir
  1342. ac_abs_top_srcdir=$srcdir ;;
  1343. *) # Relative name.
  1344. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1345. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1346. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1347. esac
  1348. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1349. cd "$ac_dir" || { ac_status=$?; continue; }
  1350. # Check for guested configure.
  1351. if test -f "$ac_srcdir/configure.gnu"; then
  1352. echo &&
  1353. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1354. elif test -f "$ac_srcdir/configure"; then
  1355. echo &&
  1356. $SHELL "$ac_srcdir/configure" --help=recursive
  1357. else
  1358. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1359. fi || ac_status=$?
  1360. cd "$ac_pwd" || { ac_status=$?; break; }
  1361. done
  1362. fi
  1363. test -n "$ac_init_help" && exit $ac_status
  1364. if $ac_init_version; then
  1365. cat <<\_ACEOF
  1366. OPCUAServer configure 1.0
  1367. generated by GNU Autoconf 2.69
  1368. Copyright (C) 2012 Free Software Foundation, Inc.
  1369. This configure script is free software; the Free Software Foundation
  1370. gives unlimited permission to copy, distribute and modify it.
  1371. _ACEOF
  1372. exit
  1373. fi
  1374. ## ------------------------ ##
  1375. ## Autoconf initialization. ##
  1376. ## ------------------------ ##
  1377. # ac_fn_c_try_compile LINENO
  1378. # --------------------------
  1379. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1380. ac_fn_c_try_compile ()
  1381. {
  1382. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1383. rm -f conftest.$ac_objext
  1384. if { { ac_try="$ac_compile"
  1385. case "(($ac_try" in
  1386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1387. *) ac_try_echo=$ac_try;;
  1388. esac
  1389. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1390. $as_echo "$ac_try_echo"; } >&5
  1391. (eval "$ac_compile") 2>conftest.err
  1392. ac_status=$?
  1393. if test -s conftest.err; then
  1394. grep -v '^ *+' conftest.err >conftest.er1
  1395. cat conftest.er1 >&5
  1396. mv -f conftest.er1 conftest.err
  1397. fi
  1398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1399. test $ac_status = 0; } && {
  1400. test -z "$ac_c_werror_flag" ||
  1401. test ! -s conftest.err
  1402. } && test -s conftest.$ac_objext; then :
  1403. ac_retval=0
  1404. else
  1405. $as_echo "$as_me: failed program was:" >&5
  1406. sed 's/^/| /' conftest.$ac_ext >&5
  1407. ac_retval=1
  1408. fi
  1409. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1410. as_fn_set_status $ac_retval
  1411. } # ac_fn_c_try_compile
  1412. # ac_fn_c_try_link LINENO
  1413. # -----------------------
  1414. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1415. ac_fn_c_try_link ()
  1416. {
  1417. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1418. rm -f conftest.$ac_objext conftest$ac_exeext
  1419. if { { ac_try="$ac_link"
  1420. case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_link") 2>conftest.err
  1427. ac_status=$?
  1428. if test -s conftest.err; then
  1429. grep -v '^ *+' conftest.err >conftest.er1
  1430. cat conftest.er1 >&5
  1431. mv -f conftest.er1 conftest.err
  1432. fi
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; } && {
  1435. test -z "$ac_c_werror_flag" ||
  1436. test ! -s conftest.err
  1437. } && test -s conftest$ac_exeext && {
  1438. test "$cross_compiling" = yes ||
  1439. test -x conftest$ac_exeext
  1440. }; then :
  1441. ac_retval=0
  1442. else
  1443. $as_echo "$as_me: failed program was:" >&5
  1444. sed 's/^/| /' conftest.$ac_ext >&5
  1445. ac_retval=1
  1446. fi
  1447. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1448. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1449. # interfere with the next link command; also delete a directory that is
  1450. # left behind by Apple's compiler. We do this before executing the actions.
  1451. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1452. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1453. as_fn_set_status $ac_retval
  1454. } # ac_fn_c_try_link
  1455. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1456. # -------------------------------------------------------
  1457. # Tests whether HEADER exists and can be compiled using the include files in
  1458. # INCLUDES, setting the cache variable VAR accordingly.
  1459. ac_fn_c_check_header_compile ()
  1460. {
  1461. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1463. $as_echo_n "checking for $2... " >&6; }
  1464. if eval \${$3+:} false; then :
  1465. $as_echo_n "(cached) " >&6
  1466. else
  1467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1468. /* end confdefs.h. */
  1469. $4
  1470. #include <$2>
  1471. _ACEOF
  1472. if ac_fn_c_try_compile "$LINENO"; then :
  1473. eval "$3=yes"
  1474. else
  1475. eval "$3=no"
  1476. fi
  1477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1478. fi
  1479. eval ac_res=\$$3
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1481. $as_echo "$ac_res" >&6; }
  1482. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1483. } # ac_fn_c_check_header_compile
  1484. # ac_fn_c_try_cpp LINENO
  1485. # ----------------------
  1486. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1487. ac_fn_c_try_cpp ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1491. case "(($ac_try" in
  1492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1493. *) ac_try_echo=$ac_try;;
  1494. esac
  1495. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1496. $as_echo "$ac_try_echo"; } >&5
  1497. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1498. ac_status=$?
  1499. if test -s conftest.err; then
  1500. grep -v '^ *+' conftest.err >conftest.er1
  1501. cat conftest.er1 >&5
  1502. mv -f conftest.er1 conftest.err
  1503. fi
  1504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1505. test $ac_status = 0; } > conftest.i && {
  1506. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1507. test ! -s conftest.err
  1508. }; then :
  1509. ac_retval=0
  1510. else
  1511. $as_echo "$as_me: failed program was:" >&5
  1512. sed 's/^/| /' conftest.$ac_ext >&5
  1513. ac_retval=1
  1514. fi
  1515. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1516. as_fn_set_status $ac_retval
  1517. } # ac_fn_c_try_cpp
  1518. # ac_fn_c_try_run LINENO
  1519. # ----------------------
  1520. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1521. # that executables *can* be run.
  1522. ac_fn_c_try_run ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. if { { ac_try="$ac_link"
  1526. case "(($ac_try" in
  1527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1528. *) ac_try_echo=$ac_try;;
  1529. esac
  1530. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1531. $as_echo "$ac_try_echo"; } >&5
  1532. (eval "$ac_link") 2>&5
  1533. ac_status=$?
  1534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1535. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1536. { { case "(($ac_try" in
  1537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1538. *) ac_try_echo=$ac_try;;
  1539. esac
  1540. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1541. $as_echo "$ac_try_echo"; } >&5
  1542. (eval "$ac_try") 2>&5
  1543. ac_status=$?
  1544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1545. test $ac_status = 0; }; }; then :
  1546. ac_retval=0
  1547. else
  1548. $as_echo "$as_me: program exited with status $ac_status" >&5
  1549. $as_echo "$as_me: failed program was:" >&5
  1550. sed 's/^/| /' conftest.$ac_ext >&5
  1551. ac_retval=$ac_status
  1552. fi
  1553. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1554. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1555. as_fn_set_status $ac_retval
  1556. } # ac_fn_c_try_run
  1557. # ac_fn_c_check_func LINENO FUNC VAR
  1558. # ----------------------------------
  1559. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1560. ac_fn_c_check_func ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1564. $as_echo_n "checking for $2... " >&6; }
  1565. if eval \${$3+:} false; then :
  1566. $as_echo_n "(cached) " >&6
  1567. else
  1568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1569. /* end confdefs.h. */
  1570. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1571. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1572. #define $2 innocuous_$2
  1573. /* System header to define __stub macros and hopefully few prototypes,
  1574. which can conflict with char $2 (); below.
  1575. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1576. <limits.h> exists even on freestanding compilers. */
  1577. #ifdef __STDC__
  1578. # include <limits.h>
  1579. #else
  1580. # include <assert.h>
  1581. #endif
  1582. #undef $2
  1583. /* Override any GCC internal prototype to avoid an error.
  1584. Use char because int might match the return type of a GCC
  1585. builtin and then its argument prototype would still apply. */
  1586. #ifdef __cplusplus
  1587. extern "C"
  1588. #endif
  1589. char $2 ();
  1590. /* The GNU C library defines this for functions which it implements
  1591. to always fail with ENOSYS. Some functions are actually named
  1592. something starting with __ and the normal name is an alias. */
  1593. #if defined __stub_$2 || defined __stub___$2
  1594. choke me
  1595. #endif
  1596. int
  1597. main ()
  1598. {
  1599. return $2 ();
  1600. ;
  1601. return 0;
  1602. }
  1603. _ACEOF
  1604. if ac_fn_c_try_link "$LINENO"; then :
  1605. eval "$3=yes"
  1606. else
  1607. eval "$3=no"
  1608. fi
  1609. rm -f core conftest.err conftest.$ac_objext \
  1610. conftest$ac_exeext conftest.$ac_ext
  1611. fi
  1612. eval ac_res=\$$3
  1613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1614. $as_echo "$ac_res" >&6; }
  1615. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1616. } # ac_fn_c_check_func
  1617. cat >config.log <<_ACEOF
  1618. This file contains any messages produced by compilers while
  1619. running configure, to aid debugging if configure makes a mistake.
  1620. It was created by OPCUAServer $as_me 1.0, which was
  1621. generated by GNU Autoconf 2.69. Invocation command line was
  1622. $ $0 $@
  1623. _ACEOF
  1624. exec 5>>config.log
  1625. {
  1626. cat <<_ASUNAME
  1627. ## --------- ##
  1628. ## Platform. ##
  1629. ## --------- ##
  1630. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1631. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1632. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1633. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1634. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1635. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1636. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1637. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1638. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1639. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1640. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1641. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1642. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1643. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1644. _ASUNAME
  1645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1646. for as_dir in $PATH
  1647. do
  1648. IFS=$as_save_IFS
  1649. test -z "$as_dir" && as_dir=.
  1650. $as_echo "PATH: $as_dir"
  1651. done
  1652. IFS=$as_save_IFS
  1653. } >&5
  1654. cat >&5 <<_ACEOF
  1655. ## ----------- ##
  1656. ## Core tests. ##
  1657. ## ----------- ##
  1658. _ACEOF
  1659. # Keep a trace of the command line.
  1660. # Strip out --no-create and --no-recursion so they do not pile up.
  1661. # Strip out --silent because we don't want to record it for future runs.
  1662. # Also quote any args containing shell meta-characters.
  1663. # Make two passes to allow for proper duplicate-argument suppression.
  1664. ac_configure_args=
  1665. ac_configure_args0=
  1666. ac_configure_args1=
  1667. ac_must_keep_next=false
  1668. for ac_pass in 1 2
  1669. do
  1670. for ac_arg
  1671. do
  1672. case $ac_arg in
  1673. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1674. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1675. | -silent | --silent | --silen | --sile | --sil)
  1676. continue ;;
  1677. *\'*)
  1678. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1679. esac
  1680. case $ac_pass in
  1681. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1682. 2)
  1683. as_fn_append ac_configure_args1 " '$ac_arg'"
  1684. if test $ac_must_keep_next = true; then
  1685. ac_must_keep_next=false # Got value, back to normal.
  1686. else
  1687. case $ac_arg in
  1688. *=* | --config-cache | -C | -disable-* | --disable-* \
  1689. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1690. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1691. | -with-* | --with-* | -without-* | --without-* | --x)
  1692. case "$ac_configure_args0 " in
  1693. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1694. esac
  1695. ;;
  1696. -* ) ac_must_keep_next=true ;;
  1697. esac
  1698. fi
  1699. as_fn_append ac_configure_args " '$ac_arg'"
  1700. ;;
  1701. esac
  1702. done
  1703. done
  1704. { ac_configure_args0=; unset ac_configure_args0;}
  1705. { ac_configure_args1=; unset ac_configure_args1;}
  1706. # When interrupted or exit'd, cleanup temporary files, and complete
  1707. # config.log. We remove comments because anyway the quotes in there
  1708. # would cause problems or look ugly.
  1709. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1710. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1711. trap 'exit_status=$?
  1712. # Save into config.log some information that might help in debugging.
  1713. {
  1714. echo
  1715. $as_echo "## ---------------- ##
  1716. ## Cache variables. ##
  1717. ## ---------------- ##"
  1718. echo
  1719. # The following way of writing the cache mishandles newlines in values,
  1720. (
  1721. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1722. eval ac_val=\$$ac_var
  1723. case $ac_val in #(
  1724. *${as_nl}*)
  1725. case $ac_var in #(
  1726. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1727. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1728. esac
  1729. case $ac_var in #(
  1730. _ | IFS | as_nl) ;; #(
  1731. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1732. *) { eval $ac_var=; unset $ac_var;} ;;
  1733. esac ;;
  1734. esac
  1735. done
  1736. (set) 2>&1 |
  1737. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1738. *${as_nl}ac_space=\ *)
  1739. sed -n \
  1740. "s/'\''/'\''\\\\'\'''\''/g;
  1741. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1742. ;; #(
  1743. *)
  1744. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1745. ;;
  1746. esac |
  1747. sort
  1748. )
  1749. echo
  1750. $as_echo "## ----------------- ##
  1751. ## Output variables. ##
  1752. ## ----------------- ##"
  1753. echo
  1754. for ac_var in $ac_subst_vars
  1755. do
  1756. eval ac_val=\$$ac_var
  1757. case $ac_val in
  1758. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1759. esac
  1760. $as_echo "$ac_var='\''$ac_val'\''"
  1761. done | sort
  1762. echo
  1763. if test -n "$ac_subst_files"; then
  1764. $as_echo "## ------------------- ##
  1765. ## File substitutions. ##
  1766. ## ------------------- ##"
  1767. echo
  1768. for ac_var in $ac_subst_files
  1769. do
  1770. eval ac_val=\$$ac_var
  1771. case $ac_val in
  1772. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1773. esac
  1774. $as_echo "$ac_var='\''$ac_val'\''"
  1775. done | sort
  1776. echo
  1777. fi
  1778. if test -s confdefs.h; then
  1779. $as_echo "## ----------- ##
  1780. ## confdefs.h. ##
  1781. ## ----------- ##"
  1782. echo
  1783. cat confdefs.h
  1784. echo
  1785. fi
  1786. test "$ac_signal" != 0 &&
  1787. $as_echo "$as_me: caught signal $ac_signal"
  1788. $as_echo "$as_me: exit $exit_status"
  1789. } >&5
  1790. rm -f core *.core core.conftest.* &&
  1791. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1792. exit $exit_status
  1793. ' 0
  1794. for ac_signal in 1 2 13 15; do
  1795. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1796. done
  1797. ac_signal=0
  1798. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1799. rm -f -r conftest* confdefs.h
  1800. $as_echo "/* confdefs.h */" > confdefs.h
  1801. # Predefined preprocessor variables.
  1802. cat >>confdefs.h <<_ACEOF
  1803. #define PACKAGE_NAME "$PACKAGE_NAME"
  1804. _ACEOF
  1805. cat >>confdefs.h <<_ACEOF
  1806. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1807. _ACEOF
  1808. cat >>confdefs.h <<_ACEOF
  1809. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1810. _ACEOF
  1811. cat >>confdefs.h <<_ACEOF
  1812. #define PACKAGE_STRING "$PACKAGE_STRING"
  1813. _ACEOF
  1814. cat >>confdefs.h <<_ACEOF
  1815. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1816. _ACEOF
  1817. cat >>confdefs.h <<_ACEOF
  1818. #define PACKAGE_URL "$PACKAGE_URL"
  1819. _ACEOF
  1820. # Let the site file select an alternate cache file if it wants to.
  1821. # Prefer an explicitly selected file to automatically selected ones.
  1822. ac_site_file1=NONE
  1823. ac_site_file2=NONE
  1824. if test -n "$CONFIG_SITE"; then
  1825. # We do not want a PATH search for config.site.
  1826. case $CONFIG_SITE in #((
  1827. -*) ac_site_file1=./$CONFIG_SITE;;
  1828. */*) ac_site_file1=$CONFIG_SITE;;
  1829. *) ac_site_file1=./$CONFIG_SITE;;
  1830. esac
  1831. elif test "x$prefix" != xNONE; then
  1832. ac_site_file1=$prefix/share/config.site
  1833. ac_site_file2=$prefix/etc/config.site
  1834. else
  1835. ac_site_file1=$ac_default_prefix/share/config.site
  1836. ac_site_file2=$ac_default_prefix/etc/config.site
  1837. fi
  1838. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1839. do
  1840. test "x$ac_site_file" = xNONE && continue
  1841. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1843. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1844. sed 's/^/| /' "$ac_site_file" >&5
  1845. . "$ac_site_file" \
  1846. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1847. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1848. as_fn_error $? "failed to load site script $ac_site_file
  1849. See \`config.log' for more details" "$LINENO" 5; }
  1850. fi
  1851. done
  1852. if test -r "$cache_file"; then
  1853. # Some versions of bash will fail to source /dev/null (special files
  1854. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1855. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1857. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1858. case $cache_file in
  1859. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1860. *) . "./$cache_file";;
  1861. esac
  1862. fi
  1863. else
  1864. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1865. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1866. >$cache_file
  1867. fi
  1868. # Check that the precious variables saved in the cache have kept the same
  1869. # value.
  1870. ac_cache_corrupted=false
  1871. for ac_var in $ac_precious_vars; do
  1872. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1873. eval ac_new_set=\$ac_env_${ac_var}_set
  1874. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1875. eval ac_new_val=\$ac_env_${ac_var}_value
  1876. case $ac_old_set,$ac_new_set in
  1877. set,)
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1879. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1880. ac_cache_corrupted=: ;;
  1881. ,set)
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1883. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1884. ac_cache_corrupted=: ;;
  1885. ,);;
  1886. *)
  1887. if test "x$ac_old_val" != "x$ac_new_val"; then
  1888. # differences in whitespace do not lead to failure.
  1889. ac_old_val_w=`echo x $ac_old_val`
  1890. ac_new_val_w=`echo x $ac_new_val`
  1891. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1893. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1894. ac_cache_corrupted=:
  1895. else
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1897. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1898. eval $ac_var=\$ac_old_val
  1899. fi
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1901. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1903. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1904. fi;;
  1905. esac
  1906. # Pass precious variables to config.status.
  1907. if test "$ac_new_set" = set; then
  1908. case $ac_new_val in
  1909. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1910. *) ac_arg=$ac_var=$ac_new_val ;;
  1911. esac
  1912. case " $ac_configure_args " in
  1913. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1914. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1915. esac
  1916. fi
  1917. done
  1918. if $ac_cache_corrupted; then
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1920. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1921. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1922. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1923. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1924. fi
  1925. ## -------------------- ##
  1926. ## Main body of script. ##
  1927. ## -------------------- ##
  1928. ac_ext=c
  1929. ac_cpp='$CPP $CPPFLAGS'
  1930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1933. ac_aux_dir=
  1934. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1935. if test -f "$ac_dir/install-sh"; then
  1936. ac_aux_dir=$ac_dir
  1937. ac_install_sh="$ac_aux_dir/install-sh -c"
  1938. break
  1939. elif test -f "$ac_dir/install.sh"; then
  1940. ac_aux_dir=$ac_dir
  1941. ac_install_sh="$ac_aux_dir/install.sh -c"
  1942. break
  1943. elif test -f "$ac_dir/shtool"; then
  1944. ac_aux_dir=$ac_dir
  1945. ac_install_sh="$ac_aux_dir/shtool install -c"
  1946. break
  1947. fi
  1948. done
  1949. if test -z "$ac_aux_dir"; then
  1950. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1951. fi
  1952. # These three variables are undocumented and unsupported,
  1953. # and are intended to be withdrawn in a future Autoconf release.
  1954. # They can cause serious problems if a builder's source tree is in a directory
  1955. # whose full name contains unusual characters.
  1956. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1957. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1958. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1959. # Make sure we can run config.sub.
  1960. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1961. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1963. $as_echo_n "checking build system type... " >&6; }
  1964. if ${ac_cv_build+:} false; then :
  1965. $as_echo_n "(cached) " >&6
  1966. else
  1967. ac_build_alias=$build_alias
  1968. test "x$ac_build_alias" = x &&
  1969. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1970. test "x$ac_build_alias" = x &&
  1971. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1972. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1973. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1974. fi
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1976. $as_echo "$ac_cv_build" >&6; }
  1977. case $ac_cv_build in
  1978. *-*-*) ;;
  1979. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1980. esac
  1981. build=$ac_cv_build
  1982. ac_save_IFS=$IFS; IFS='-'
  1983. set x $ac_cv_build
  1984. shift
  1985. build_cpu=$1
  1986. build_vendor=$2
  1987. shift; shift
  1988. # Remember, the first character of IFS is used to create $*,
  1989. # except with old shells:
  1990. build_os=$*
  1991. IFS=$ac_save_IFS
  1992. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1994. $as_echo_n "checking host system type... " >&6; }
  1995. if ${ac_cv_host+:} false; then :
  1996. $as_echo_n "(cached) " >&6
  1997. else
  1998. if test "x$host_alias" = x; then
  1999. ac_cv_host=$ac_cv_build
  2000. else
  2001. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2002. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2003. fi
  2004. fi
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2006. $as_echo "$ac_cv_host" >&6; }
  2007. case $ac_cv_host in
  2008. *-*-*) ;;
  2009. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2010. esac
  2011. host=$ac_cv_host
  2012. ac_save_IFS=$IFS; IFS='-'
  2013. set x $ac_cv_host
  2014. shift
  2015. host_cpu=$1
  2016. host_vendor=$2
  2017. shift; shift
  2018. # Remember, the first character of IFS is used to create $*,
  2019. # except with old shells:
  2020. host_os=$*
  2021. IFS=$ac_save_IFS
  2022. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2024. $as_echo_n "checking target system type... " >&6; }
  2025. if ${ac_cv_target+:} false; then :
  2026. $as_echo_n "(cached) " >&6
  2027. else
  2028. if test "x$target_alias" = x; then
  2029. ac_cv_target=$ac_cv_host
  2030. else
  2031. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2032. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2033. fi
  2034. fi
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2036. $as_echo "$ac_cv_target" >&6; }
  2037. case $ac_cv_target in
  2038. *-*-*) ;;
  2039. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2040. esac
  2041. target=$ac_cv_target
  2042. ac_save_IFS=$IFS; IFS='-'
  2043. set x $ac_cv_target
  2044. shift
  2045. target_cpu=$1
  2046. target_vendor=$2
  2047. shift; shift
  2048. # Remember, the first character of IFS is used to create $*,
  2049. # except with old shells:
  2050. target_os=$*
  2051. IFS=$ac_save_IFS
  2052. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2053. # The aliases save the names the user supplied, while $host etc.
  2054. # will get canonicalized.
  2055. test -n "$target_alias" &&
  2056. test "$program_prefix$program_suffix$program_transform_name" = \
  2057. NONENONEs,x,x, &&
  2058. program_prefix=${target_alias}-
  2059. am__api_version='1.13'
  2060. # Find a good install program. We prefer a C program (faster),
  2061. # so one script is as good as another. But avoid the broken or
  2062. # incompatible versions:
  2063. # SysV /etc/install, /usr/sbin/install
  2064. # SunOS /usr/etc/install
  2065. # IRIX /sbin/install
  2066. # AIX /bin/install
  2067. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2068. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2069. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2070. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2071. # OS/2's system install, which has a completely different semantic
  2072. # ./install, which can be erroneously created by make from ./install.sh.
  2073. # Reject install programs that cannot install multiple files.
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2075. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2076. if test -z "$INSTALL"; then
  2077. if ${ac_cv_path_install+:} false; then :
  2078. $as_echo_n "(cached) " >&6
  2079. else
  2080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2081. for as_dir in $PATH
  2082. do
  2083. IFS=$as_save_IFS
  2084. test -z "$as_dir" && as_dir=.
  2085. # Account for people who put trailing slashes in PATH elements.
  2086. case $as_dir/ in #((
  2087. ./ | .// | /[cC]/* | \
  2088. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2089. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2090. /usr/ucb/* ) ;;
  2091. *)
  2092. # OSF1 and SCO ODT 3.0 have their own names for install.
  2093. # Don't use installbsd from OSF since it installs stuff as root
  2094. # by default.
  2095. for ac_prog in ginstall scoinst install; do
  2096. for ac_exec_ext in '' $ac_executable_extensions; do
  2097. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2098. if test $ac_prog = install &&
  2099. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2100. # AIX install. It has an incompatible calling convention.
  2101. :
  2102. elif test $ac_prog = install &&
  2103. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2104. # program-specific install script used by HP pwplus--don't use.
  2105. :
  2106. else
  2107. rm -rf conftest.one conftest.two conftest.dir
  2108. echo one > conftest.one
  2109. echo two > conftest.two
  2110. mkdir conftest.dir
  2111. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2112. test -s conftest.one && test -s conftest.two &&
  2113. test -s conftest.dir/conftest.one &&
  2114. test -s conftest.dir/conftest.two
  2115. then
  2116. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2117. break 3
  2118. fi
  2119. fi
  2120. fi
  2121. done
  2122. done
  2123. ;;
  2124. esac
  2125. done
  2126. IFS=$as_save_IFS
  2127. rm -rf conftest.one conftest.two conftest.dir
  2128. fi
  2129. if test "${ac_cv_path_install+set}" = set; then
  2130. INSTALL=$ac_cv_path_install
  2131. else
  2132. # As a last resort, use the slow shell script. Don't cache a
  2133. # value for INSTALL within a source directory, because that will
  2134. # break other packages using the cache if that directory is
  2135. # removed, or if the value is a relative name.
  2136. INSTALL=$ac_install_sh
  2137. fi
  2138. fi
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2140. $as_echo "$INSTALL" >&6; }
  2141. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2142. # It thinks the first close brace ends the variable substitution.
  2143. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2144. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2145. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2147. $as_echo_n "checking whether build environment is sane... " >&6; }
  2148. # Reject unsafe characters in $srcdir or the absolute working directory
  2149. # name. Accept space and tab only in the latter.
  2150. am_lf='
  2151. '
  2152. case `pwd` in
  2153. *[\\\"\#\$\&\'\`$am_lf]*)
  2154. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2155. esac
  2156. case $srcdir in
  2157. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2158. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2159. esac
  2160. # Do 'set' in a subshell so we don't clobber the current shell's
  2161. # arguments. Must try -L first in case configure is actually a
  2162. # symlink; some systems play weird games with the mod time of symlinks
  2163. # (eg FreeBSD returns the mod time of the symlink's containing
  2164. # directory).
  2165. if (
  2166. am_has_slept=no
  2167. for am_try in 1 2; do
  2168. echo "timestamp, slept: $am_has_slept" > conftest.file
  2169. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2170. if test "$*" = "X"; then
  2171. # -L didn't work.
  2172. set X `ls -t "$srcdir/configure" conftest.file`
  2173. fi
  2174. if test "$*" != "X $srcdir/configure conftest.file" \
  2175. && test "$*" != "X conftest.file $srcdir/configure"; then
  2176. # If neither matched, then we have a broken ls. This can happen
  2177. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2178. # broken ls alias from the environment. This has actually
  2179. # happened. Such a system could not be considered "sane".
  2180. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2181. alias in your environment" "$LINENO" 5
  2182. fi
  2183. if test "$2" = conftest.file || test $am_try -eq 2; then
  2184. break
  2185. fi
  2186. # Just in case.
  2187. sleep 1
  2188. am_has_slept=yes
  2189. done
  2190. test "$2" = conftest.file
  2191. )
  2192. then
  2193. # Ok.
  2194. :
  2195. else
  2196. as_fn_error $? "newly created file is older than distributed files!
  2197. Check your system clock" "$LINENO" 5
  2198. fi
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2200. $as_echo "yes" >&6; }
  2201. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2202. # generated files are strictly newer.
  2203. am_sleep_pid=
  2204. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2205. ( sleep 1 ) &
  2206. am_sleep_pid=$!
  2207. fi
  2208. rm -f conftest.file
  2209. test "$program_prefix" != NONE &&
  2210. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2211. # Use a double $ so make ignores it.
  2212. test "$program_suffix" != NONE &&
  2213. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2214. # Double any \ or $.
  2215. # By default was `s,x,x', remove it if useless.
  2216. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2217. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2218. # expand $ac_aux_dir to an absolute path
  2219. am_aux_dir=`cd $ac_aux_dir && pwd`
  2220. if test x"${MISSING+set}" != xset; then
  2221. case $am_aux_dir in
  2222. *\ * | *\ *)
  2223. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2224. *)
  2225. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2226. esac
  2227. fi
  2228. # Use eval to expand $SHELL
  2229. if eval "$MISSING --is-lightweight"; then
  2230. am_missing_run="$MISSING "
  2231. else
  2232. am_missing_run=
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2234. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2235. fi
  2236. if test x"${install_sh}" != xset; then
  2237. case $am_aux_dir in
  2238. *\ * | *\ *)
  2239. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2240. *)
  2241. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2242. esac
  2243. fi
  2244. # Installed binaries are usually stripped using 'strip' when the user
  2245. # run "make install-strip". However 'strip' might not be the right
  2246. # tool to use in cross-compilation environments, therefore Automake
  2247. # will honor the 'STRIP' environment variable to overrule this program.
  2248. if test "$cross_compiling" != no; then
  2249. if test -n "$ac_tool_prefix"; then
  2250. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2251. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2253. $as_echo_n "checking for $ac_word... " >&6; }
  2254. if ${ac_cv_prog_STRIP+:} false; then :
  2255. $as_echo_n "(cached) " >&6
  2256. else
  2257. if test -n "$STRIP"; then
  2258. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2259. else
  2260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2261. for as_dir in $PATH
  2262. do
  2263. IFS=$as_save_IFS
  2264. test -z "$as_dir" && as_dir=.
  2265. for ac_exec_ext in '' $ac_executable_extensions; do
  2266. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2267. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2269. break 2
  2270. fi
  2271. done
  2272. done
  2273. IFS=$as_save_IFS
  2274. fi
  2275. fi
  2276. STRIP=$ac_cv_prog_STRIP
  2277. if test -n "$STRIP"; then
  2278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2279. $as_echo "$STRIP" >&6; }
  2280. else
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2282. $as_echo "no" >&6; }
  2283. fi
  2284. fi
  2285. if test -z "$ac_cv_prog_STRIP"; then
  2286. ac_ct_STRIP=$STRIP
  2287. # Extract the first word of "strip", so it can be a program name with args.
  2288. set dummy strip; ac_word=$2
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2290. $as_echo_n "checking for $ac_word... " >&6; }
  2291. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2292. $as_echo_n "(cached) " >&6
  2293. else
  2294. if test -n "$ac_ct_STRIP"; then
  2295. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2296. else
  2297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2298. for as_dir in $PATH
  2299. do
  2300. IFS=$as_save_IFS
  2301. test -z "$as_dir" && as_dir=.
  2302. for ac_exec_ext in '' $ac_executable_extensions; do
  2303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2304. ac_cv_prog_ac_ct_STRIP="strip"
  2305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2306. break 2
  2307. fi
  2308. done
  2309. done
  2310. IFS=$as_save_IFS
  2311. fi
  2312. fi
  2313. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2314. if test -n "$ac_ct_STRIP"; then
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2316. $as_echo "$ac_ct_STRIP" >&6; }
  2317. else
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2319. $as_echo "no" >&6; }
  2320. fi
  2321. if test "x$ac_ct_STRIP" = x; then
  2322. STRIP=":"
  2323. else
  2324. case $cross_compiling:$ac_tool_warned in
  2325. yes:)
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2327. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2328. ac_tool_warned=yes ;;
  2329. esac
  2330. STRIP=$ac_ct_STRIP
  2331. fi
  2332. else
  2333. STRIP="$ac_cv_prog_STRIP"
  2334. fi
  2335. fi
  2336. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2338. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2339. if test -z "$MKDIR_P"; then
  2340. if ${ac_cv_path_mkdir+:} false; then :
  2341. $as_echo_n "(cached) " >&6
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_prog in mkdir gmkdir; do
  2349. for ac_exec_ext in '' $ac_executable_extensions; do
  2350. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2351. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2352. 'mkdir (GNU coreutils) '* | \
  2353. 'mkdir (coreutils) '* | \
  2354. 'mkdir (fileutils) '4.1*)
  2355. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2356. break 3;;
  2357. esac
  2358. done
  2359. done
  2360. done
  2361. IFS=$as_save_IFS
  2362. fi
  2363. test -d ./--version && rmdir ./--version
  2364. if test "${ac_cv_path_mkdir+set}" = set; then
  2365. MKDIR_P="$ac_cv_path_mkdir -p"
  2366. else
  2367. # As a last resort, use the slow shell script. Don't cache a
  2368. # value for MKDIR_P within a source directory, because that will
  2369. # break other packages using the cache if that directory is
  2370. # removed, or if the value is a relative name.
  2371. MKDIR_P="$ac_install_sh -d"
  2372. fi
  2373. fi
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2375. $as_echo "$MKDIR_P" >&6; }
  2376. for ac_prog in gawk mawk nawk awk
  2377. do
  2378. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2379. set dummy $ac_prog; ac_word=$2
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2381. $as_echo_n "checking for $ac_word... " >&6; }
  2382. if ${ac_cv_prog_AWK+:} false; then :
  2383. $as_echo_n "(cached) " >&6
  2384. else
  2385. if test -n "$AWK"; then
  2386. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2387. else
  2388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2389. for as_dir in $PATH
  2390. do
  2391. IFS=$as_save_IFS
  2392. test -z "$as_dir" && as_dir=.
  2393. for ac_exec_ext in '' $ac_executable_extensions; do
  2394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2395. ac_cv_prog_AWK="$ac_prog"
  2396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2397. break 2
  2398. fi
  2399. done
  2400. done
  2401. IFS=$as_save_IFS
  2402. fi
  2403. fi
  2404. AWK=$ac_cv_prog_AWK
  2405. if test -n "$AWK"; then
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2407. $as_echo "$AWK" >&6; }
  2408. else
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2410. $as_echo "no" >&6; }
  2411. fi
  2412. test -n "$AWK" && break
  2413. done
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2415. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2416. set x ${MAKE-make}
  2417. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2418. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2419. $as_echo_n "(cached) " >&6
  2420. else
  2421. cat >conftest.make <<\_ACEOF
  2422. SHELL = /bin/sh
  2423. all:
  2424. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2425. _ACEOF
  2426. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2427. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2428. *@@@%%%=?*=@@@%%%*)
  2429. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2430. *)
  2431. eval ac_cv_prog_make_${ac_make}_set=no;;
  2432. esac
  2433. rm -f conftest.make
  2434. fi
  2435. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2437. $as_echo "yes" >&6; }
  2438. SET_MAKE=
  2439. else
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2441. $as_echo "no" >&6; }
  2442. SET_MAKE="MAKE=${MAKE-make}"
  2443. fi
  2444. rm -rf .tst 2>/dev/null
  2445. mkdir .tst 2>/dev/null
  2446. if test -d .tst; then
  2447. am__leading_dot=.
  2448. else
  2449. am__leading_dot=_
  2450. fi
  2451. rmdir .tst 2>/dev/null
  2452. # Check whether --enable-silent-rules was given.
  2453. if test "${enable_silent_rules+set}" = set; then :
  2454. enableval=$enable_silent_rules;
  2455. fi
  2456. case $enable_silent_rules in # (((
  2457. yes) AM_DEFAULT_VERBOSITY=0;;
  2458. no) AM_DEFAULT_VERBOSITY=1;;
  2459. *) AM_DEFAULT_VERBOSITY=1;;
  2460. esac
  2461. am_make=${MAKE-make}
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2463. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2464. if ${am_cv_make_support_nested_variables+:} false; then :
  2465. $as_echo_n "(cached) " >&6
  2466. else
  2467. if $as_echo 'TRUE=$(BAR$(V))
  2468. BAR0=false
  2469. BAR1=true
  2470. V=1
  2471. am__doit:
  2472. @$(TRUE)
  2473. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2474. am_cv_make_support_nested_variables=yes
  2475. else
  2476. am_cv_make_support_nested_variables=no
  2477. fi
  2478. fi
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2480. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2481. if test $am_cv_make_support_nested_variables = yes; then
  2482. AM_V='$(V)'
  2483. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2484. else
  2485. AM_V=$AM_DEFAULT_VERBOSITY
  2486. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2487. fi
  2488. AM_BACKSLASH='\'
  2489. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2490. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2491. # is not polluted with repeated "-I."
  2492. am__isrc=' -I$(srcdir)'
  2493. # test to see if srcdir already configured
  2494. if test -f $srcdir/config.status; then
  2495. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2496. fi
  2497. fi
  2498. # test whether we have cygpath
  2499. if test -z "$CYGPATH_W"; then
  2500. if (cygpath --version) >/dev/null 2>/dev/null; then
  2501. CYGPATH_W='cygpath -w'
  2502. else
  2503. CYGPATH_W=echo
  2504. fi
  2505. fi
  2506. # Define the identity of the package.
  2507. PACKAGE='opcuaserver'
  2508. VERSION='1.0'
  2509. cat >>confdefs.h <<_ACEOF
  2510. #define PACKAGE "$PACKAGE"
  2511. _ACEOF
  2512. cat >>confdefs.h <<_ACEOF
  2513. #define VERSION "$VERSION"
  2514. _ACEOF
  2515. # Some tools Automake needs.
  2516. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2517. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2518. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2519. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2520. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2521. # For better backward compatibility. To be removed once Automake 1.9.x
  2522. # dies out for good. For more background, see:
  2523. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2524. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2525. mkdir_p='$(MKDIR_P)'
  2526. # We need awk for the "check" target. The system "awk" is bad on
  2527. # some platforms.
  2528. # Always define AMTAR for backward compatibility. Yes, it's still used
  2529. # in the wild :-( We should find a proper way to deprecate it ...
  2530. AMTAR='$${TAR-tar}'
  2531. # We'll loop over all known methods to create a tar archive until one works.
  2532. _am_tools='gnutar pax cpio none'
  2533. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2534. ac_ext=c
  2535. ac_cpp='$CPP $CPPFLAGS'
  2536. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2537. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2538. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2539. if test -n "$ac_tool_prefix"; then
  2540. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2541. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2543. $as_echo_n "checking for $ac_word... " >&6; }
  2544. if ${ac_cv_prog_CC+:} false; then :
  2545. $as_echo_n "(cached) " >&6
  2546. else
  2547. if test -n "$CC"; then
  2548. ac_cv_prog_CC="$CC" # Let the user override the test.
  2549. else
  2550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2551. for as_dir in $PATH
  2552. do
  2553. IFS=$as_save_IFS
  2554. test -z "$as_dir" && as_dir=.
  2555. for ac_exec_ext in '' $ac_executable_extensions; do
  2556. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2557. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2559. break 2
  2560. fi
  2561. done
  2562. done
  2563. IFS=$as_save_IFS
  2564. fi
  2565. fi
  2566. CC=$ac_cv_prog_CC
  2567. if test -n "$CC"; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2569. $as_echo "$CC" >&6; }
  2570. else
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2572. $as_echo "no" >&6; }
  2573. fi
  2574. fi
  2575. if test -z "$ac_cv_prog_CC"; then
  2576. ac_ct_CC=$CC
  2577. # Extract the first word of "gcc", so it can be a program name with args.
  2578. set dummy gcc; ac_word=$2
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2580. $as_echo_n "checking for $ac_word... " >&6; }
  2581. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2582. $as_echo_n "(cached) " >&6
  2583. else
  2584. if test -n "$ac_ct_CC"; then
  2585. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2586. else
  2587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2588. for as_dir in $PATH
  2589. do
  2590. IFS=$as_save_IFS
  2591. test -z "$as_dir" && as_dir=.
  2592. for ac_exec_ext in '' $ac_executable_extensions; do
  2593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2594. ac_cv_prog_ac_ct_CC="gcc"
  2595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2596. break 2
  2597. fi
  2598. done
  2599. done
  2600. IFS=$as_save_IFS
  2601. fi
  2602. fi
  2603. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2604. if test -n "$ac_ct_CC"; then
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2606. $as_echo "$ac_ct_CC" >&6; }
  2607. else
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2609. $as_echo "no" >&6; }
  2610. fi
  2611. if test "x$ac_ct_CC" = x; then
  2612. CC=""
  2613. else
  2614. case $cross_compiling:$ac_tool_warned in
  2615. yes:)
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2617. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2618. ac_tool_warned=yes ;;
  2619. esac
  2620. CC=$ac_ct_CC
  2621. fi
  2622. else
  2623. CC="$ac_cv_prog_CC"
  2624. fi
  2625. if test -z "$CC"; then
  2626. if test -n "$ac_tool_prefix"; then
  2627. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2628. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2630. $as_echo_n "checking for $ac_word... " >&6; }
  2631. if ${ac_cv_prog_CC+:} false; then :
  2632. $as_echo_n "(cached) " >&6
  2633. else
  2634. if test -n "$CC"; then
  2635. ac_cv_prog_CC="$CC" # Let the user override the test.
  2636. else
  2637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2638. for as_dir in $PATH
  2639. do
  2640. IFS=$as_save_IFS
  2641. test -z "$as_dir" && as_dir=.
  2642. for ac_exec_ext in '' $ac_executable_extensions; do
  2643. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2644. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2646. break 2
  2647. fi
  2648. done
  2649. done
  2650. IFS=$as_save_IFS
  2651. fi
  2652. fi
  2653. CC=$ac_cv_prog_CC
  2654. if test -n "$CC"; then
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2656. $as_echo "$CC" >&6; }
  2657. else
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2659. $as_echo "no" >&6; }
  2660. fi
  2661. fi
  2662. fi
  2663. if test -z "$CC"; then
  2664. # Extract the first word of "cc", so it can be a program name with args.
  2665. set dummy cc; ac_word=$2
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2667. $as_echo_n "checking for $ac_word... " >&6; }
  2668. if ${ac_cv_prog_CC+:} false; then :
  2669. $as_echo_n "(cached) " >&6
  2670. else
  2671. if test -n "$CC"; then
  2672. ac_cv_prog_CC="$CC" # Let the user override the test.
  2673. else
  2674. ac_prog_rejected=no
  2675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2676. for as_dir in $PATH
  2677. do
  2678. IFS=$as_save_IFS
  2679. test -z "$as_dir" && as_dir=.
  2680. for ac_exec_ext in '' $ac_executable_extensions; do
  2681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2682. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2683. ac_prog_rejected=yes
  2684. continue
  2685. fi
  2686. ac_cv_prog_CC="cc"
  2687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2688. break 2
  2689. fi
  2690. done
  2691. done
  2692. IFS=$as_save_IFS
  2693. if test $ac_prog_rejected = yes; then
  2694. # We found a bogon in the path, so make sure we never use it.
  2695. set dummy $ac_cv_prog_CC
  2696. shift
  2697. if test $# != 0; then
  2698. # We chose a different compiler from the bogus one.
  2699. # However, it has the same basename, so the bogon will be chosen
  2700. # first if we set CC to just the basename; use the full file name.
  2701. shift
  2702. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2703. fi
  2704. fi
  2705. fi
  2706. fi
  2707. CC=$ac_cv_prog_CC
  2708. if test -n "$CC"; then
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2710. $as_echo "$CC" >&6; }
  2711. else
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2713. $as_echo "no" >&6; }
  2714. fi
  2715. fi
  2716. if test -z "$CC"; then
  2717. if test -n "$ac_tool_prefix"; then
  2718. for ac_prog in cl.exe
  2719. do
  2720. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2721. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2723. $as_echo_n "checking for $ac_word... " >&6; }
  2724. if ${ac_cv_prog_CC+:} false; then :
  2725. $as_echo_n "(cached) " >&6
  2726. else
  2727. if test -n "$CC"; then
  2728. ac_cv_prog_CC="$CC" # Let the user override the test.
  2729. else
  2730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2731. for as_dir in $PATH
  2732. do
  2733. IFS=$as_save_IFS
  2734. test -z "$as_dir" && as_dir=.
  2735. for ac_exec_ext in '' $ac_executable_extensions; do
  2736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2737. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2739. break 2
  2740. fi
  2741. done
  2742. done
  2743. IFS=$as_save_IFS
  2744. fi
  2745. fi
  2746. CC=$ac_cv_prog_CC
  2747. if test -n "$CC"; then
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2749. $as_echo "$CC" >&6; }
  2750. else
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2752. $as_echo "no" >&6; }
  2753. fi
  2754. test -n "$CC" && break
  2755. done
  2756. fi
  2757. if test -z "$CC"; then
  2758. ac_ct_CC=$CC
  2759. for ac_prog in cl.exe
  2760. do
  2761. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2762. set dummy $ac_prog; ac_word=$2
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2764. $as_echo_n "checking for $ac_word... " >&6; }
  2765. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2766. $as_echo_n "(cached) " >&6
  2767. else
  2768. if test -n "$ac_ct_CC"; then
  2769. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2770. else
  2771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2772. for as_dir in $PATH
  2773. do
  2774. IFS=$as_save_IFS
  2775. test -z "$as_dir" && as_dir=.
  2776. for ac_exec_ext in '' $ac_executable_extensions; do
  2777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2778. ac_cv_prog_ac_ct_CC="$ac_prog"
  2779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2780. break 2
  2781. fi
  2782. done
  2783. done
  2784. IFS=$as_save_IFS
  2785. fi
  2786. fi
  2787. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2788. if test -n "$ac_ct_CC"; then
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2790. $as_echo "$ac_ct_CC" >&6; }
  2791. else
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2793. $as_echo "no" >&6; }
  2794. fi
  2795. test -n "$ac_ct_CC" && break
  2796. done
  2797. if test "x$ac_ct_CC" = x; then
  2798. CC=""
  2799. else
  2800. case $cross_compiling:$ac_tool_warned in
  2801. yes:)
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2803. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2804. ac_tool_warned=yes ;;
  2805. esac
  2806. CC=$ac_ct_CC
  2807. fi
  2808. fi
  2809. fi
  2810. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2811. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2812. as_fn_error $? "no acceptable C compiler found in \$PATH
  2813. See \`config.log' for more details" "$LINENO" 5; }
  2814. # Provide some information about the compiler.
  2815. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2816. set X $ac_compile
  2817. ac_compiler=$2
  2818. for ac_option in --version -v -V -qversion; do
  2819. { { ac_try="$ac_compiler $ac_option >&5"
  2820. case "(($ac_try" in
  2821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2822. *) ac_try_echo=$ac_try;;
  2823. esac
  2824. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2825. $as_echo "$ac_try_echo"; } >&5
  2826. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2827. ac_status=$?
  2828. if test -s conftest.err; then
  2829. sed '10a\
  2830. ... rest of stderr output deleted ...
  2831. 10q' conftest.err >conftest.er1
  2832. cat conftest.er1 >&5
  2833. fi
  2834. rm -f conftest.er1 conftest.err
  2835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2836. test $ac_status = 0; }
  2837. done
  2838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2839. /* end confdefs.h. */
  2840. int
  2841. main ()
  2842. {
  2843. ;
  2844. return 0;
  2845. }
  2846. _ACEOF
  2847. ac_clean_files_save=$ac_clean_files
  2848. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2849. # Try to create an executable without -o first, disregard a.out.
  2850. # It will help us diagnose broken compilers, and finding out an intuition
  2851. # of exeext.
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2853. $as_echo_n "checking whether the C compiler works... " >&6; }
  2854. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2855. # The possible output files:
  2856. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2857. ac_rmfiles=
  2858. for ac_file in $ac_files
  2859. do
  2860. case $ac_file in
  2861. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2862. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2863. esac
  2864. done
  2865. rm -f $ac_rmfiles
  2866. if { { ac_try="$ac_link_default"
  2867. case "(($ac_try" in
  2868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2869. *) ac_try_echo=$ac_try;;
  2870. esac
  2871. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2872. $as_echo "$ac_try_echo"; } >&5
  2873. (eval "$ac_link_default") 2>&5
  2874. ac_status=$?
  2875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2876. test $ac_status = 0; }; then :
  2877. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2878. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2879. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2880. # so that the user can short-circuit this test for compilers unknown to
  2881. # Autoconf.
  2882. for ac_file in $ac_files ''
  2883. do
  2884. test -f "$ac_file" || continue
  2885. case $ac_file in
  2886. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2887. ;;
  2888. [ab].out )
  2889. # We found the default executable, but exeext='' is most
  2890. # certainly right.
  2891. break;;
  2892. *.* )
  2893. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2894. then :; else
  2895. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2896. fi
  2897. # We set ac_cv_exeext here because the later test for it is not
  2898. # safe: cross compilers may not add the suffix if given an `-o'
  2899. # argument, so we may need to know it at that point already.
  2900. # Even if this section looks crufty: it has the advantage of
  2901. # actually working.
  2902. break;;
  2903. * )
  2904. break;;
  2905. esac
  2906. done
  2907. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2908. else
  2909. ac_file=''
  2910. fi
  2911. if test -z "$ac_file"; then :
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2913. $as_echo "no" >&6; }
  2914. $as_echo "$as_me: failed program was:" >&5
  2915. sed 's/^/| /' conftest.$ac_ext >&5
  2916. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2917. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2918. as_fn_error 77 "C compiler cannot create executables
  2919. See \`config.log' for more details" "$LINENO" 5; }
  2920. else
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2922. $as_echo "yes" >&6; }
  2923. fi
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2925. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2927. $as_echo "$ac_file" >&6; }
  2928. ac_exeext=$ac_cv_exeext
  2929. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2930. ac_clean_files=$ac_clean_files_save
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2932. $as_echo_n "checking for suffix of executables... " >&6; }
  2933. if { { ac_try="$ac_link"
  2934. case "(($ac_try" in
  2935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2936. *) ac_try_echo=$ac_try;;
  2937. esac
  2938. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2939. $as_echo "$ac_try_echo"; } >&5
  2940. (eval "$ac_link") 2>&5
  2941. ac_status=$?
  2942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2943. test $ac_status = 0; }; then :
  2944. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2945. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2946. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2947. # `rm'.
  2948. for ac_file in conftest.exe conftest conftest.*; do
  2949. test -f "$ac_file" || continue
  2950. case $ac_file in
  2951. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2952. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2953. break;;
  2954. * ) break;;
  2955. esac
  2956. done
  2957. else
  2958. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2959. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2960. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2961. See \`config.log' for more details" "$LINENO" 5; }
  2962. fi
  2963. rm -f conftest conftest$ac_cv_exeext
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2965. $as_echo "$ac_cv_exeext" >&6; }
  2966. rm -f conftest.$ac_ext
  2967. EXEEXT=$ac_cv_exeext
  2968. ac_exeext=$EXEEXT
  2969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2970. /* end confdefs.h. */
  2971. #include <stdio.h>
  2972. int
  2973. main ()
  2974. {
  2975. FILE *f = fopen ("conftest.out", "w");
  2976. return ferror (f) || fclose (f) != 0;
  2977. ;
  2978. return 0;
  2979. }
  2980. _ACEOF
  2981. ac_clean_files="$ac_clean_files conftest.out"
  2982. # Check that the compiler produces executables we can run. If not, either
  2983. # the compiler is broken, or we cross compile.
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2985. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2986. if test "$cross_compiling" != yes; then
  2987. { { ac_try="$ac_link"
  2988. case "(($ac_try" in
  2989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2990. *) ac_try_echo=$ac_try;;
  2991. esac
  2992. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2993. $as_echo "$ac_try_echo"; } >&5
  2994. (eval "$ac_link") 2>&5
  2995. ac_status=$?
  2996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2997. test $ac_status = 0; }
  2998. if { ac_try='./conftest$ac_cv_exeext'
  2999. { { case "(($ac_try" in
  3000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3001. *) ac_try_echo=$ac_try;;
  3002. esac
  3003. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3004. $as_echo "$ac_try_echo"; } >&5
  3005. (eval "$ac_try") 2>&5
  3006. ac_status=$?
  3007. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3008. test $ac_status = 0; }; }; then
  3009. cross_compiling=no
  3010. else
  3011. if test "$cross_compiling" = maybe; then
  3012. cross_compiling=yes
  3013. else
  3014. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3015. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3016. as_fn_error $? "cannot run C compiled programs.
  3017. If you meant to cross compile, use \`--host'.
  3018. See \`config.log' for more details" "$LINENO" 5; }
  3019. fi
  3020. fi
  3021. fi
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3023. $as_echo "$cross_compiling" >&6; }
  3024. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3025. ac_clean_files=$ac_clean_files_save
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3027. $as_echo_n "checking for suffix of object files... " >&6; }
  3028. if ${ac_cv_objext+:} false; then :
  3029. $as_echo_n "(cached) " >&6
  3030. else
  3031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3032. /* end confdefs.h. */
  3033. int
  3034. main ()
  3035. {
  3036. ;
  3037. return 0;
  3038. }
  3039. _ACEOF
  3040. rm -f conftest.o conftest.obj
  3041. if { { ac_try="$ac_compile"
  3042. case "(($ac_try" in
  3043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3044. *) ac_try_echo=$ac_try;;
  3045. esac
  3046. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3047. $as_echo "$ac_try_echo"; } >&5
  3048. (eval "$ac_compile") 2>&5
  3049. ac_status=$?
  3050. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3051. test $ac_status = 0; }; then :
  3052. for ac_file in conftest.o conftest.obj conftest.*; do
  3053. test -f "$ac_file" || continue;
  3054. case $ac_file in
  3055. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3056. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3057. break;;
  3058. esac
  3059. done
  3060. else
  3061. $as_echo "$as_me: failed program was:" >&5
  3062. sed 's/^/| /' conftest.$ac_ext >&5
  3063. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3064. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3065. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3066. See \`config.log' for more details" "$LINENO" 5; }
  3067. fi
  3068. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3069. fi
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3071. $as_echo "$ac_cv_objext" >&6; }
  3072. OBJEXT=$ac_cv_objext
  3073. ac_objext=$OBJEXT
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3075. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3076. if ${ac_cv_c_compiler_gnu+:} false; then :
  3077. $as_echo_n "(cached) " >&6
  3078. else
  3079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3080. /* end confdefs.h. */
  3081. int
  3082. main ()
  3083. {
  3084. #ifndef __GNUC__
  3085. choke me
  3086. #endif
  3087. ;
  3088. return 0;
  3089. }
  3090. _ACEOF
  3091. if ac_fn_c_try_compile "$LINENO"; then :
  3092. ac_compiler_gnu=yes
  3093. else
  3094. ac_compiler_gnu=no
  3095. fi
  3096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3097. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3098. fi
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3100. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3101. if test $ac_compiler_gnu = yes; then
  3102. GCC=yes
  3103. else
  3104. GCC=
  3105. fi
  3106. ac_test_CFLAGS=${CFLAGS+set}
  3107. ac_save_CFLAGS=$CFLAGS
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3109. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3110. if ${ac_cv_prog_cc_g+:} false; then :
  3111. $as_echo_n "(cached) " >&6
  3112. else
  3113. ac_save_c_werror_flag=$ac_c_werror_flag
  3114. ac_c_werror_flag=yes
  3115. ac_cv_prog_cc_g=no
  3116. CFLAGS="-g"
  3117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3118. /* end confdefs.h. */
  3119. int
  3120. main ()
  3121. {
  3122. ;
  3123. return 0;
  3124. }
  3125. _ACEOF
  3126. if ac_fn_c_try_compile "$LINENO"; then :
  3127. ac_cv_prog_cc_g=yes
  3128. else
  3129. CFLAGS=""
  3130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3131. /* end confdefs.h. */
  3132. int
  3133. main ()
  3134. {
  3135. ;
  3136. return 0;
  3137. }
  3138. _ACEOF
  3139. if ac_fn_c_try_compile "$LINENO"; then :
  3140. else
  3141. ac_c_werror_flag=$ac_save_c_werror_flag
  3142. CFLAGS="-g"
  3143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3144. /* end confdefs.h. */
  3145. int
  3146. main ()
  3147. {
  3148. ;
  3149. return 0;
  3150. }
  3151. _ACEOF
  3152. if ac_fn_c_try_compile "$LINENO"; then :
  3153. ac_cv_prog_cc_g=yes
  3154. fi
  3155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3156. fi
  3157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3158. fi
  3159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3160. ac_c_werror_flag=$ac_save_c_werror_flag
  3161. fi
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3163. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3164. if test "$ac_test_CFLAGS" = set; then
  3165. CFLAGS=$ac_save_CFLAGS
  3166. elif test $ac_cv_prog_cc_g = yes; then
  3167. if test "$GCC" = yes; then
  3168. CFLAGS="-g -O2"
  3169. else
  3170. CFLAGS="-g"
  3171. fi
  3172. else
  3173. if test "$GCC" = yes; then
  3174. CFLAGS="-O2"
  3175. else
  3176. CFLAGS=
  3177. fi
  3178. fi
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3180. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3181. if ${ac_cv_prog_cc_c89+:} false; then :
  3182. $as_echo_n "(cached) " >&6
  3183. else
  3184. ac_cv_prog_cc_c89=no
  3185. ac_save_CC=$CC
  3186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3187. /* end confdefs.h. */
  3188. #include <stdarg.h>
  3189. #include <stdio.h>
  3190. struct stat;
  3191. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3192. struct buf { int x; };
  3193. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3194. static char *e (p, i)
  3195. char **p;
  3196. int i;
  3197. {
  3198. return p[i];
  3199. }
  3200. static char *f (char * (*g) (char **, int), char **p, ...)
  3201. {
  3202. char *s;
  3203. va_list v;
  3204. va_start (v,p);
  3205. s = g (p, va_arg (v,int));
  3206. va_end (v);
  3207. return s;
  3208. }
  3209. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3210. function prototypes and stuff, but not '\xHH' hex character constants.
  3211. These don't provoke an error unfortunately, instead are silently treated
  3212. as 'x'. The following induces an error, until -std is added to get
  3213. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3214. array size at least. It's necessary to write '\x00'==0 to get something
  3215. that's true only with -std. */
  3216. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3217. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3218. inside strings and character constants. */
  3219. #define FOO(x) 'x'
  3220. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3221. int test (int i, double x);
  3222. struct s1 {int (*f) (int a);};
  3223. struct s2 {int (*f) (double a);};
  3224. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3225. int argc;
  3226. char **argv;
  3227. int
  3228. main ()
  3229. {
  3230. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3231. ;
  3232. return 0;
  3233. }
  3234. _ACEOF
  3235. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3236. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3237. do
  3238. CC="$ac_save_CC $ac_arg"
  3239. if ac_fn_c_try_compile "$LINENO"; then :
  3240. ac_cv_prog_cc_c89=$ac_arg
  3241. fi
  3242. rm -f core conftest.err conftest.$ac_objext
  3243. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3244. done
  3245. rm -f conftest.$ac_ext
  3246. CC=$ac_save_CC
  3247. fi
  3248. # AC_CACHE_VAL
  3249. case "x$ac_cv_prog_cc_c89" in
  3250. x)
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3252. $as_echo "none needed" >&6; } ;;
  3253. xno)
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3255. $as_echo "unsupported" >&6; } ;;
  3256. *)
  3257. CC="$CC $ac_cv_prog_cc_c89"
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3259. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3260. esac
  3261. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3262. fi
  3263. ac_ext=c
  3264. ac_cpp='$CPP $CPPFLAGS'
  3265. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3266. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3267. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3268. DEPDIR="${am__leading_dot}deps"
  3269. ac_config_commands="$ac_config_commands depfiles"
  3270. am_make=${MAKE-make}
  3271. cat > confinc << 'END'
  3272. am__doit:
  3273. @echo this is the am__doit target
  3274. .PHONY: am__doit
  3275. END
  3276. # If we don't find an include directive, just comment out the code.
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3278. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3279. am__include="#"
  3280. am__quote=
  3281. _am_result=none
  3282. # First try GNU make style include.
  3283. echo "include confinc" > confmf
  3284. # Ignore all kinds of additional output from 'make'.
  3285. case `$am_make -s -f confmf 2> /dev/null` in #(
  3286. *the\ am__doit\ target*)
  3287. am__include=include
  3288. am__quote=
  3289. _am_result=GNU
  3290. ;;
  3291. esac
  3292. # Now try BSD make style include.
  3293. if test "$am__include" = "#"; then
  3294. echo '.include "confinc"' > confmf
  3295. case `$am_make -s -f confmf 2> /dev/null` in #(
  3296. *the\ am__doit\ target*)
  3297. am__include=.include
  3298. am__quote="\""
  3299. _am_result=BSD
  3300. ;;
  3301. esac
  3302. fi
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3304. $as_echo "$_am_result" >&6; }
  3305. rm -f confinc confmf
  3306. # Check whether --enable-dependency-tracking was given.
  3307. if test "${enable_dependency_tracking+set}" = set; then :
  3308. enableval=$enable_dependency_tracking;
  3309. fi
  3310. if test "x$enable_dependency_tracking" != xno; then
  3311. am_depcomp="$ac_aux_dir/depcomp"
  3312. AMDEPBACKSLASH='\'
  3313. am__nodep='_no'
  3314. fi
  3315. if test "x$enable_dependency_tracking" != xno; then
  3316. AMDEP_TRUE=
  3317. AMDEP_FALSE='#'
  3318. else
  3319. AMDEP_TRUE='#'
  3320. AMDEP_FALSE=
  3321. fi
  3322. depcc="$CC" am_compiler_list=
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3324. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3325. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3326. $as_echo_n "(cached) " >&6
  3327. else
  3328. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3329. # We make a subdir and do the tests there. Otherwise we can end up
  3330. # making bogus files that we don't know about and never remove. For
  3331. # instance it was reported that on HP-UX the gcc test will end up
  3332. # making a dummy file named 'D' -- because '-MD' means "put the output
  3333. # in D".
  3334. rm -rf conftest.dir
  3335. mkdir conftest.dir
  3336. # Copy depcomp to subdir because otherwise we won't find it if we're
  3337. # using a relative directory.
  3338. cp "$am_depcomp" conftest.dir
  3339. cd conftest.dir
  3340. # We will build objects and dependencies in a subdirectory because
  3341. # it helps to detect inapplicable dependency modes. For instance
  3342. # both Tru64's cc and ICC support -MD to output dependencies as a
  3343. # side effect of compilation, but ICC will put the dependencies in
  3344. # the current directory while Tru64 will put them in the object
  3345. # directory.
  3346. mkdir sub
  3347. am_cv_CC_dependencies_compiler_type=none
  3348. if test "$am_compiler_list" = ""; then
  3349. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3350. fi
  3351. am__universal=false
  3352. case " $depcc " in #(
  3353. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3354. esac
  3355. for depmode in $am_compiler_list; do
  3356. # Setup a source with many dependencies, because some compilers
  3357. # like to wrap large dependency lists on column 80 (with \), and
  3358. # we should not choose a depcomp mode which is confused by this.
  3359. #
  3360. # We need to recreate these files for each test, as the compiler may
  3361. # overwrite some of them when testing with obscure command lines.
  3362. # This happens at least with the AIX C compiler.
  3363. : > sub/conftest.c
  3364. for i in 1 2 3 4 5 6; do
  3365. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3366. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3367. # Solaris 10 /bin/sh.
  3368. echo '/* dummy */' > sub/conftst$i.h
  3369. done
  3370. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3371. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3372. # mode. It turns out that the SunPro C++ compiler does not properly
  3373. # handle '-M -o', and we need to detect this. Also, some Intel
  3374. # versions had trouble with output in subdirs.
  3375. am__obj=sub/conftest.${OBJEXT-o}
  3376. am__minus_obj="-o $am__obj"
  3377. case $depmode in
  3378. gcc)
  3379. # This depmode causes a compiler race in universal mode.
  3380. test "$am__universal" = false || continue
  3381. ;;
  3382. nosideeffect)
  3383. # After this tag, mechanisms are not by side-effect, so they'll
  3384. # only be used when explicitly requested.
  3385. if test "x$enable_dependency_tracking" = xyes; then
  3386. continue
  3387. else
  3388. break
  3389. fi
  3390. ;;
  3391. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3392. # This compiler won't grok '-c -o', but also, the minuso test has
  3393. # not run yet. These depmodes are late enough in the game, and
  3394. # so weak that their functioning should not be impacted.
  3395. am__obj=conftest.${OBJEXT-o}
  3396. am__minus_obj=
  3397. ;;
  3398. none) break ;;
  3399. esac
  3400. if depmode=$depmode \
  3401. source=sub/conftest.c object=$am__obj \
  3402. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3403. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3404. >/dev/null 2>conftest.err &&
  3405. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3406. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3407. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3408. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3409. # icc doesn't choke on unknown options, it will just issue warnings
  3410. # or remarks (even with -Werror). So we grep stderr for any message
  3411. # that says an option was ignored or not supported.
  3412. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3413. # icc: Command line warning: ignoring option '-M'; no argument required
  3414. # The diagnosis changed in icc 8.0:
  3415. # icc: Command line remark: option '-MP' not supported
  3416. if (grep 'ignoring option' conftest.err ||
  3417. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3418. am_cv_CC_dependencies_compiler_type=$depmode
  3419. break
  3420. fi
  3421. fi
  3422. done
  3423. cd ..
  3424. rm -rf conftest.dir
  3425. else
  3426. am_cv_CC_dependencies_compiler_type=none
  3427. fi
  3428. fi
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3430. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3431. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3432. if
  3433. test "x$enable_dependency_tracking" != xno \
  3434. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3435. am__fastdepCC_TRUE=
  3436. am__fastdepCC_FALSE='#'
  3437. else
  3438. am__fastdepCC_TRUE='#'
  3439. am__fastdepCC_FALSE=
  3440. fi
  3441. if test "x$CC" != xcc; then
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3443. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3444. else
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3446. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3447. fi
  3448. set dummy $CC; ac_cc=`$as_echo "$2" |
  3449. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3450. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  3451. $as_echo_n "(cached) " >&6
  3452. else
  3453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3454. /* end confdefs.h. */
  3455. int
  3456. main ()
  3457. {
  3458. ;
  3459. return 0;
  3460. }
  3461. _ACEOF
  3462. # Make sure it works both with $CC and with simple cc.
  3463. # We do the test twice because some compilers refuse to overwrite an
  3464. # existing .o file with -o, though they will create one.
  3465. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3466. rm -f conftest2.*
  3467. if { { case "(($ac_try" in
  3468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3469. *) ac_try_echo=$ac_try;;
  3470. esac
  3471. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3472. $as_echo "$ac_try_echo"; } >&5
  3473. (eval "$ac_try") 2>&5
  3474. ac_status=$?
  3475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3476. test $ac_status = 0; } &&
  3477. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3479. *) ac_try_echo=$ac_try;;
  3480. esac
  3481. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3482. $as_echo "$ac_try_echo"; } >&5
  3483. (eval "$ac_try") 2>&5
  3484. ac_status=$?
  3485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3486. test $ac_status = 0; };
  3487. then
  3488. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3489. if test "x$CC" != xcc; then
  3490. # Test first that cc exists at all.
  3491. if { ac_try='cc -c conftest.$ac_ext >&5'
  3492. { { case "(($ac_try" in
  3493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3494. *) ac_try_echo=$ac_try;;
  3495. esac
  3496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3497. $as_echo "$ac_try_echo"; } >&5
  3498. (eval "$ac_try") 2>&5
  3499. ac_status=$?
  3500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3501. test $ac_status = 0; }; }; then
  3502. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3503. rm -f conftest2.*
  3504. if { { case "(($ac_try" in
  3505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3506. *) ac_try_echo=$ac_try;;
  3507. esac
  3508. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3509. $as_echo "$ac_try_echo"; } >&5
  3510. (eval "$ac_try") 2>&5
  3511. ac_status=$?
  3512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3513. test $ac_status = 0; } &&
  3514. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3516. *) ac_try_echo=$ac_try;;
  3517. esac
  3518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3519. $as_echo "$ac_try_echo"; } >&5
  3520. (eval "$ac_try") 2>&5
  3521. ac_status=$?
  3522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3523. test $ac_status = 0; };
  3524. then
  3525. # cc works too.
  3526. :
  3527. else
  3528. # cc exists but doesn't like -o.
  3529. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3530. fi
  3531. fi
  3532. fi
  3533. else
  3534. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3535. fi
  3536. rm -f core conftest*
  3537. fi
  3538. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3540. $as_echo "yes" >&6; }
  3541. else
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3543. $as_echo "no" >&6; }
  3544. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  3545. fi
  3546. # FIXME: we rely on the cache variable name because
  3547. # there is no other way.
  3548. set dummy $CC
  3549. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3550. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  3551. if test "$am_t" != yes; then
  3552. # Losing compiler, so override with the script.
  3553. # FIXME: It is wrong to rewrite CC.
  3554. # But if we don't then we get into trouble of one sort or another.
  3555. # A longer-term fix would be to have automake use am__CC in this case,
  3556. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3557. CC="$am_aux_dir/compile $CC"
  3558. fi
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
  3560. $as_echo_n "checking for exp in -lm... " >&6; }
  3561. if ${ac_cv_lib_m_exp+:} false; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. ac_check_lib_save_LIBS=$LIBS
  3565. LIBS="-lm $LIBS"
  3566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3567. /* end confdefs.h. */
  3568. /* Override any GCC internal prototype to avoid an error.
  3569. Use char because int might match the return type of a GCC
  3570. builtin and then its argument prototype would still apply. */
  3571. #ifdef __cplusplus
  3572. extern "C"
  3573. #endif
  3574. char exp ();
  3575. int
  3576. main ()
  3577. {
  3578. return exp ();
  3579. ;
  3580. return 0;
  3581. }
  3582. _ACEOF
  3583. if ac_fn_c_try_link "$LINENO"; then :
  3584. ac_cv_lib_m_exp=yes
  3585. else
  3586. ac_cv_lib_m_exp=no
  3587. fi
  3588. rm -f core conftest.err conftest.$ac_objext \
  3589. conftest$ac_exeext conftest.$ac_ext
  3590. LIBS=$ac_check_lib_save_LIBS
  3591. fi
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
  3593. $as_echo "$ac_cv_lib_m_exp" >&6; }
  3594. if test "x$ac_cv_lib_m_exp" = xyes; then :
  3595. cat >>confdefs.h <<_ACEOF
  3596. #define HAVE_LIBM 1
  3597. _ACEOF
  3598. LIBS="-lm $LIBS"
  3599. else
  3600. as_fn_error $? "Libm missing" "$LINENO" 5
  3601. fi
  3602. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3603. if test -n "$ac_tool_prefix"; then
  3604. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3605. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3607. $as_echo_n "checking for $ac_word... " >&6; }
  3608. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3609. $as_echo_n "(cached) " >&6
  3610. else
  3611. case $PKG_CONFIG in
  3612. [\\/]* | ?:[\\/]*)
  3613. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3614. ;;
  3615. *)
  3616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3617. for as_dir in $PATH
  3618. do
  3619. IFS=$as_save_IFS
  3620. test -z "$as_dir" && as_dir=.
  3621. for ac_exec_ext in '' $ac_executable_extensions; do
  3622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3623. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3625. break 2
  3626. fi
  3627. done
  3628. done
  3629. IFS=$as_save_IFS
  3630. ;;
  3631. esac
  3632. fi
  3633. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3634. if test -n "$PKG_CONFIG"; then
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3636. $as_echo "$PKG_CONFIG" >&6; }
  3637. else
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3639. $as_echo "no" >&6; }
  3640. fi
  3641. fi
  3642. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3643. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3644. # Extract the first word of "pkg-config", so it can be a program name with args.
  3645. set dummy pkg-config; ac_word=$2
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3647. $as_echo_n "checking for $ac_word... " >&6; }
  3648. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3649. $as_echo_n "(cached) " >&6
  3650. else
  3651. case $ac_pt_PKG_CONFIG in
  3652. [\\/]* | ?:[\\/]*)
  3653. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3654. ;;
  3655. *)
  3656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3657. for as_dir in $PATH
  3658. do
  3659. IFS=$as_save_IFS
  3660. test -z "$as_dir" && as_dir=.
  3661. for ac_exec_ext in '' $ac_executable_extensions; do
  3662. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3663. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3665. break 2
  3666. fi
  3667. done
  3668. done
  3669. IFS=$as_save_IFS
  3670. ;;
  3671. esac
  3672. fi
  3673. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3674. if test -n "$ac_pt_PKG_CONFIG"; then
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3676. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3677. else
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3679. $as_echo "no" >&6; }
  3680. fi
  3681. if test "x$ac_pt_PKG_CONFIG" = x; then
  3682. PKG_CONFIG=""
  3683. else
  3684. case $cross_compiling:$ac_tool_warned in
  3685. yes:)
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3687. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3688. ac_tool_warned=yes ;;
  3689. esac
  3690. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3691. fi
  3692. else
  3693. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3694. fi
  3695. fi
  3696. if test -n "$PKG_CONFIG"; then
  3697. _pkg_min_version=0.9.0
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3699. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3700. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3702. $as_echo "yes" >&6; }
  3703. else
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3705. $as_echo "no" >&6; }
  3706. PKG_CONFIG=""
  3707. fi
  3708. fi
  3709. pkg_failed=no
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
  3711. $as_echo_n "checking for CHECK... " >&6; }
  3712. if test -n "$CHECK_CFLAGS"; then
  3713. pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
  3714. elif test -n "$PKG_CONFIG"; then
  3715. if test -n "$PKG_CONFIG" && \
  3716. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
  3717. ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
  3718. ac_status=$?
  3719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3720. test $ac_status = 0; }; then
  3721. pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
  3722. test "x$?" != "x0" && pkg_failed=yes
  3723. else
  3724. pkg_failed=yes
  3725. fi
  3726. else
  3727. pkg_failed=untried
  3728. fi
  3729. if test -n "$CHECK_LIBS"; then
  3730. pkg_cv_CHECK_LIBS="$CHECK_LIBS"
  3731. elif test -n "$PKG_CONFIG"; then
  3732. if test -n "$PKG_CONFIG" && \
  3733. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
  3734. ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
  3735. ac_status=$?
  3736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3737. test $ac_status = 0; }; then
  3738. pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
  3739. test "x$?" != "x0" && pkg_failed=yes
  3740. else
  3741. pkg_failed=yes
  3742. fi
  3743. else
  3744. pkg_failed=untried
  3745. fi
  3746. if test $pkg_failed = yes; then
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3748. $as_echo "no" >&6; }
  3749. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  3750. _pkg_short_errors_supported=yes
  3751. else
  3752. _pkg_short_errors_supported=no
  3753. fi
  3754. if test $_pkg_short_errors_supported = yes; then
  3755. CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
  3756. else
  3757. CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
  3758. fi
  3759. # Put the nasty error message in config.log where it belongs
  3760. echo "$CHECK_PKG_ERRORS" >&5
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
  3762. $as_echo "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;}
  3763. have_check="no"
  3764. elif test $pkg_failed = untried; then
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3766. $as_echo "no" >&6; }
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
  3768. $as_echo "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;}
  3769. have_check="no"
  3770. else
  3771. CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
  3772. CHECK_LIBS=$pkg_cv_CHECK_LIBS
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3774. $as_echo "yes" >&6; }
  3775. have_check="yes"
  3776. fi
  3777. if test x"$have_check" = "xyes"; then
  3778. HAVE_CHECK_TRUE=
  3779. HAVE_CHECK_FALSE='#'
  3780. else
  3781. HAVE_CHECK_TRUE='#'
  3782. HAVE_CHECK_FALSE=
  3783. fi
  3784. case `pwd` in
  3785. *\ * | *\ *)
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3787. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3788. esac
  3789. macro_version='2.4.2'
  3790. macro_revision='1.3337'
  3791. ltmain="$ac_aux_dir/ltmain.sh"
  3792. # Backslashify metacharacters that are still active within
  3793. # double-quoted strings.
  3794. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3795. # Same as above, but do not quote variable references.
  3796. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3797. # Sed substitution to delay expansion of an escaped shell variable in a
  3798. # double_quote_subst'ed string.
  3799. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3800. # Sed substitution to delay expansion of an escaped single quote.
  3801. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3802. # Sed substitution to avoid accidental globbing in evaled expressions
  3803. no_glob_subst='s/\*/\\\*/g'
  3804. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3805. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3806. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3808. $as_echo_n "checking how to print strings... " >&6; }
  3809. # Test print first, because it will be a builtin if present.
  3810. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3811. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3812. ECHO='print -r --'
  3813. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3814. ECHO='printf %s\n'
  3815. else
  3816. # Use this function as a fallback that always works.
  3817. func_fallback_echo ()
  3818. {
  3819. eval 'cat <<_LTECHO_EOF
  3820. $1
  3821. _LTECHO_EOF'
  3822. }
  3823. ECHO='func_fallback_echo'
  3824. fi
  3825. # func_echo_all arg...
  3826. # Invoke $ECHO with all args, space-separated.
  3827. func_echo_all ()
  3828. {
  3829. $ECHO ""
  3830. }
  3831. case "$ECHO" in
  3832. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3833. $as_echo "printf" >&6; } ;;
  3834. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3835. $as_echo "print -r" >&6; } ;;
  3836. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3837. $as_echo "cat" >&6; } ;;
  3838. esac
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3840. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3841. if ${ac_cv_path_SED+:} false; then :
  3842. $as_echo_n "(cached) " >&6
  3843. else
  3844. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3845. for ac_i in 1 2 3 4 5 6 7; do
  3846. ac_script="$ac_script$as_nl$ac_script"
  3847. done
  3848. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3849. { ac_script=; unset ac_script;}
  3850. if test -z "$SED"; then
  3851. ac_path_SED_found=false
  3852. # Loop through the user's path and test for each of PROGNAME-LIST
  3853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3854. for as_dir in $PATH
  3855. do
  3856. IFS=$as_save_IFS
  3857. test -z "$as_dir" && as_dir=.
  3858. for ac_prog in sed gsed; do
  3859. for ac_exec_ext in '' $ac_executable_extensions; do
  3860. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3861. as_fn_executable_p "$ac_path_SED" || continue
  3862. # Check for GNU ac_path_SED and select it if it is found.
  3863. # Check for GNU $ac_path_SED
  3864. case `"$ac_path_SED" --version 2>&1` in
  3865. *GNU*)
  3866. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3867. *)
  3868. ac_count=0
  3869. $as_echo_n 0123456789 >"conftest.in"
  3870. while :
  3871. do
  3872. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3873. mv "conftest.tmp" "conftest.in"
  3874. cp "conftest.in" "conftest.nl"
  3875. $as_echo '' >> "conftest.nl"
  3876. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3877. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3878. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3879. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3880. # Best one so far, save it but keep looking for a better one
  3881. ac_cv_path_SED="$ac_path_SED"
  3882. ac_path_SED_max=$ac_count
  3883. fi
  3884. # 10*(2^10) chars as input seems more than enough
  3885. test $ac_count -gt 10 && break
  3886. done
  3887. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3888. esac
  3889. $ac_path_SED_found && break 3
  3890. done
  3891. done
  3892. done
  3893. IFS=$as_save_IFS
  3894. if test -z "$ac_cv_path_SED"; then
  3895. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3896. fi
  3897. else
  3898. ac_cv_path_SED=$SED
  3899. fi
  3900. fi
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3902. $as_echo "$ac_cv_path_SED" >&6; }
  3903. SED="$ac_cv_path_SED"
  3904. rm -f conftest.sed
  3905. test -z "$SED" && SED=sed
  3906. Xsed="$SED -e 1s/^X//"
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3908. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3909. if ${ac_cv_path_GREP+:} false; then :
  3910. $as_echo_n "(cached) " >&6
  3911. else
  3912. if test -z "$GREP"; then
  3913. ac_path_GREP_found=false
  3914. # Loop through the user's path and test for each of PROGNAME-LIST
  3915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3916. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3917. do
  3918. IFS=$as_save_IFS
  3919. test -z "$as_dir" && as_dir=.
  3920. for ac_prog in grep ggrep; do
  3921. for ac_exec_ext in '' $ac_executable_extensions; do
  3922. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3923. as_fn_executable_p "$ac_path_GREP" || continue
  3924. # Check for GNU ac_path_GREP and select it if it is found.
  3925. # Check for GNU $ac_path_GREP
  3926. case `"$ac_path_GREP" --version 2>&1` in
  3927. *GNU*)
  3928. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3929. *)
  3930. ac_count=0
  3931. $as_echo_n 0123456789 >"conftest.in"
  3932. while :
  3933. do
  3934. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3935. mv "conftest.tmp" "conftest.in"
  3936. cp "conftest.in" "conftest.nl"
  3937. $as_echo 'GREP' >> "conftest.nl"
  3938. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3939. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3940. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3941. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3942. # Best one so far, save it but keep looking for a better one
  3943. ac_cv_path_GREP="$ac_path_GREP"
  3944. ac_path_GREP_max=$ac_count
  3945. fi
  3946. # 10*(2^10) chars as input seems more than enough
  3947. test $ac_count -gt 10 && break
  3948. done
  3949. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3950. esac
  3951. $ac_path_GREP_found && break 3
  3952. done
  3953. done
  3954. done
  3955. IFS=$as_save_IFS
  3956. if test -z "$ac_cv_path_GREP"; then
  3957. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3958. fi
  3959. else
  3960. ac_cv_path_GREP=$GREP
  3961. fi
  3962. fi
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3964. $as_echo "$ac_cv_path_GREP" >&6; }
  3965. GREP="$ac_cv_path_GREP"
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3967. $as_echo_n "checking for egrep... " >&6; }
  3968. if ${ac_cv_path_EGREP+:} false; then :
  3969. $as_echo_n "(cached) " >&6
  3970. else
  3971. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3972. then ac_cv_path_EGREP="$GREP -E"
  3973. else
  3974. if test -z "$EGREP"; then
  3975. ac_path_EGREP_found=false
  3976. # Loop through the user's path and test for each of PROGNAME-LIST
  3977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3978. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3979. do
  3980. IFS=$as_save_IFS
  3981. test -z "$as_dir" && as_dir=.
  3982. for ac_prog in egrep; do
  3983. for ac_exec_ext in '' $ac_executable_extensions; do
  3984. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3985. as_fn_executable_p "$ac_path_EGREP" || continue
  3986. # Check for GNU ac_path_EGREP and select it if it is found.
  3987. # Check for GNU $ac_path_EGREP
  3988. case `"$ac_path_EGREP" --version 2>&1` in
  3989. *GNU*)
  3990. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3991. *)
  3992. ac_count=0
  3993. $as_echo_n 0123456789 >"conftest.in"
  3994. while :
  3995. do
  3996. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3997. mv "conftest.tmp" "conftest.in"
  3998. cp "conftest.in" "conftest.nl"
  3999. $as_echo 'EGREP' >> "conftest.nl"
  4000. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4001. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4002. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4003. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4004. # Best one so far, save it but keep looking for a better one
  4005. ac_cv_path_EGREP="$ac_path_EGREP"
  4006. ac_path_EGREP_max=$ac_count
  4007. fi
  4008. # 10*(2^10) chars as input seems more than enough
  4009. test $ac_count -gt 10 && break
  4010. done
  4011. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4012. esac
  4013. $ac_path_EGREP_found && break 3
  4014. done
  4015. done
  4016. done
  4017. IFS=$as_save_IFS
  4018. if test -z "$ac_cv_path_EGREP"; then
  4019. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4020. fi
  4021. else
  4022. ac_cv_path_EGREP=$EGREP
  4023. fi
  4024. fi
  4025. fi
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4027. $as_echo "$ac_cv_path_EGREP" >&6; }
  4028. EGREP="$ac_cv_path_EGREP"
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4030. $as_echo_n "checking for fgrep... " >&6; }
  4031. if ${ac_cv_path_FGREP+:} false; then :
  4032. $as_echo_n "(cached) " >&6
  4033. else
  4034. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4035. then ac_cv_path_FGREP="$GREP -F"
  4036. else
  4037. if test -z "$FGREP"; then
  4038. ac_path_FGREP_found=false
  4039. # Loop through the user's path and test for each of PROGNAME-LIST
  4040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4041. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4042. do
  4043. IFS=$as_save_IFS
  4044. test -z "$as_dir" && as_dir=.
  4045. for ac_prog in fgrep; do
  4046. for ac_exec_ext in '' $ac_executable_extensions; do
  4047. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4048. as_fn_executable_p "$ac_path_FGREP" || continue
  4049. # Check for GNU ac_path_FGREP and select it if it is found.
  4050. # Check for GNU $ac_path_FGREP
  4051. case `"$ac_path_FGREP" --version 2>&1` in
  4052. *GNU*)
  4053. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4054. *)
  4055. ac_count=0
  4056. $as_echo_n 0123456789 >"conftest.in"
  4057. while :
  4058. do
  4059. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4060. mv "conftest.tmp" "conftest.in"
  4061. cp "conftest.in" "conftest.nl"
  4062. $as_echo 'FGREP' >> "conftest.nl"
  4063. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4064. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4065. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4066. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4067. # Best one so far, save it but keep looking for a better one
  4068. ac_cv_path_FGREP="$ac_path_FGREP"
  4069. ac_path_FGREP_max=$ac_count
  4070. fi
  4071. # 10*(2^10) chars as input seems more than enough
  4072. test $ac_count -gt 10 && break
  4073. done
  4074. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4075. esac
  4076. $ac_path_FGREP_found && break 3
  4077. done
  4078. done
  4079. done
  4080. IFS=$as_save_IFS
  4081. if test -z "$ac_cv_path_FGREP"; then
  4082. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4083. fi
  4084. else
  4085. ac_cv_path_FGREP=$FGREP
  4086. fi
  4087. fi
  4088. fi
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4090. $as_echo "$ac_cv_path_FGREP" >&6; }
  4091. FGREP="$ac_cv_path_FGREP"
  4092. test -z "$GREP" && GREP=grep
  4093. # Check whether --with-gnu-ld was given.
  4094. if test "${with_gnu_ld+set}" = set; then :
  4095. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4096. else
  4097. with_gnu_ld=no
  4098. fi
  4099. ac_prog=ld
  4100. if test "$GCC" = yes; then
  4101. # Check if gcc -print-prog-name=ld gives a path.
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4103. $as_echo_n "checking for ld used by $CC... " >&6; }
  4104. case $host in
  4105. *-*-mingw*)
  4106. # gcc leaves a trailing carriage return which upsets mingw
  4107. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4108. *)
  4109. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4110. esac
  4111. case $ac_prog in
  4112. # Accept absolute paths.
  4113. [\\/]* | ?:[\\/]*)
  4114. re_direlt='/[^/][^/]*/\.\./'
  4115. # Canonicalize the pathname of ld
  4116. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4117. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4118. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4119. done
  4120. test -z "$LD" && LD="$ac_prog"
  4121. ;;
  4122. "")
  4123. # If it fails, then pretend we aren't using GCC.
  4124. ac_prog=ld
  4125. ;;
  4126. *)
  4127. # If it is relative, then search for the first ld in PATH.
  4128. with_gnu_ld=unknown
  4129. ;;
  4130. esac
  4131. elif test "$with_gnu_ld" = yes; then
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4133. $as_echo_n "checking for GNU ld... " >&6; }
  4134. else
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4136. $as_echo_n "checking for non-GNU ld... " >&6; }
  4137. fi
  4138. if ${lt_cv_path_LD+:} false; then :
  4139. $as_echo_n "(cached) " >&6
  4140. else
  4141. if test -z "$LD"; then
  4142. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4143. for ac_dir in $PATH; do
  4144. IFS="$lt_save_ifs"
  4145. test -z "$ac_dir" && ac_dir=.
  4146. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4147. lt_cv_path_LD="$ac_dir/$ac_prog"
  4148. # Check to see if the program is GNU ld. I'd rather use --version,
  4149. # but apparently some variants of GNU ld only accept -v.
  4150. # Break only if it was the GNU/non-GNU ld that we prefer.
  4151. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4152. *GNU* | *'with BFD'*)
  4153. test "$with_gnu_ld" != no && break
  4154. ;;
  4155. *)
  4156. test "$with_gnu_ld" != yes && break
  4157. ;;
  4158. esac
  4159. fi
  4160. done
  4161. IFS="$lt_save_ifs"
  4162. else
  4163. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4164. fi
  4165. fi
  4166. LD="$lt_cv_path_LD"
  4167. if test -n "$LD"; then
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4169. $as_echo "$LD" >&6; }
  4170. else
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4172. $as_echo "no" >&6; }
  4173. fi
  4174. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4176. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4177. if ${lt_cv_prog_gnu_ld+:} false; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4181. case `$LD -v 2>&1 </dev/null` in
  4182. *GNU* | *'with BFD'*)
  4183. lt_cv_prog_gnu_ld=yes
  4184. ;;
  4185. *)
  4186. lt_cv_prog_gnu_ld=no
  4187. ;;
  4188. esac
  4189. fi
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4191. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4192. with_gnu_ld=$lt_cv_prog_gnu_ld
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4194. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4195. if ${lt_cv_path_NM+:} false; then :
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. if test -n "$NM"; then
  4199. # Let the user override the test.
  4200. lt_cv_path_NM="$NM"
  4201. else
  4202. lt_nm_to_check="${ac_tool_prefix}nm"
  4203. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4204. lt_nm_to_check="$lt_nm_to_check nm"
  4205. fi
  4206. for lt_tmp_nm in $lt_nm_to_check; do
  4207. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4208. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4209. IFS="$lt_save_ifs"
  4210. test -z "$ac_dir" && ac_dir=.
  4211. tmp_nm="$ac_dir/$lt_tmp_nm"
  4212. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4213. # Check to see if the nm accepts a BSD-compat flag.
  4214. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4215. # nm: unknown option "B" ignored
  4216. # Tru64's nm complains that /dev/null is an invalid object file
  4217. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4218. */dev/null* | *'Invalid file or object type'*)
  4219. lt_cv_path_NM="$tmp_nm -B"
  4220. break
  4221. ;;
  4222. *)
  4223. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4224. */dev/null*)
  4225. lt_cv_path_NM="$tmp_nm -p"
  4226. break
  4227. ;;
  4228. *)
  4229. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4230. continue # so that we can try to find one that supports BSD flags
  4231. ;;
  4232. esac
  4233. ;;
  4234. esac
  4235. fi
  4236. done
  4237. IFS="$lt_save_ifs"
  4238. done
  4239. : ${lt_cv_path_NM=no}
  4240. fi
  4241. fi
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4243. $as_echo "$lt_cv_path_NM" >&6; }
  4244. if test "$lt_cv_path_NM" != "no"; then
  4245. NM="$lt_cv_path_NM"
  4246. else
  4247. # Didn't find any BSD compatible name lister, look for dumpbin.
  4248. if test -n "$DUMPBIN"; then :
  4249. # Let the user override the test.
  4250. else
  4251. if test -n "$ac_tool_prefix"; then
  4252. for ac_prog in dumpbin "link -dump"
  4253. do
  4254. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4255. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4257. $as_echo_n "checking for $ac_word... " >&6; }
  4258. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. if test -n "$DUMPBIN"; then
  4262. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4263. else
  4264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4265. for as_dir in $PATH
  4266. do
  4267. IFS=$as_save_IFS
  4268. test -z "$as_dir" && as_dir=.
  4269. for ac_exec_ext in '' $ac_executable_extensions; do
  4270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4271. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4273. break 2
  4274. fi
  4275. done
  4276. done
  4277. IFS=$as_save_IFS
  4278. fi
  4279. fi
  4280. DUMPBIN=$ac_cv_prog_DUMPBIN
  4281. if test -n "$DUMPBIN"; then
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4283. $as_echo "$DUMPBIN" >&6; }
  4284. else
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4286. $as_echo "no" >&6; }
  4287. fi
  4288. test -n "$DUMPBIN" && break
  4289. done
  4290. fi
  4291. if test -z "$DUMPBIN"; then
  4292. ac_ct_DUMPBIN=$DUMPBIN
  4293. for ac_prog in dumpbin "link -dump"
  4294. do
  4295. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4296. set dummy $ac_prog; ac_word=$2
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4298. $as_echo_n "checking for $ac_word... " >&6; }
  4299. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4300. $as_echo_n "(cached) " >&6
  4301. else
  4302. if test -n "$ac_ct_DUMPBIN"; then
  4303. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4304. else
  4305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4306. for as_dir in $PATH
  4307. do
  4308. IFS=$as_save_IFS
  4309. test -z "$as_dir" && as_dir=.
  4310. for ac_exec_ext in '' $ac_executable_extensions; do
  4311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4312. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4314. break 2
  4315. fi
  4316. done
  4317. done
  4318. IFS=$as_save_IFS
  4319. fi
  4320. fi
  4321. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4322. if test -n "$ac_ct_DUMPBIN"; then
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4324. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4325. else
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4327. $as_echo "no" >&6; }
  4328. fi
  4329. test -n "$ac_ct_DUMPBIN" && break
  4330. done
  4331. if test "x$ac_ct_DUMPBIN" = x; then
  4332. DUMPBIN=":"
  4333. else
  4334. case $cross_compiling:$ac_tool_warned in
  4335. yes:)
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4337. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4338. ac_tool_warned=yes ;;
  4339. esac
  4340. DUMPBIN=$ac_ct_DUMPBIN
  4341. fi
  4342. fi
  4343. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4344. *COFF*)
  4345. DUMPBIN="$DUMPBIN -symbols"
  4346. ;;
  4347. *)
  4348. DUMPBIN=:
  4349. ;;
  4350. esac
  4351. fi
  4352. if test "$DUMPBIN" != ":"; then
  4353. NM="$DUMPBIN"
  4354. fi
  4355. fi
  4356. test -z "$NM" && NM=nm
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4358. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4359. if ${lt_cv_nm_interface+:} false; then :
  4360. $as_echo_n "(cached) " >&6
  4361. else
  4362. lt_cv_nm_interface="BSD nm"
  4363. echo "int some_variable = 0;" > conftest.$ac_ext
  4364. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4365. (eval "$ac_compile" 2>conftest.err)
  4366. cat conftest.err >&5
  4367. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4368. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4369. cat conftest.err >&5
  4370. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4371. cat conftest.out >&5
  4372. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4373. lt_cv_nm_interface="MS dumpbin"
  4374. fi
  4375. rm -f conftest*
  4376. fi
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4378. $as_echo "$lt_cv_nm_interface" >&6; }
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4380. $as_echo_n "checking whether ln -s works... " >&6; }
  4381. LN_S=$as_ln_s
  4382. if test "$LN_S" = "ln -s"; then
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4384. $as_echo "yes" >&6; }
  4385. else
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4387. $as_echo "no, using $LN_S" >&6; }
  4388. fi
  4389. # find the maximum length of command line arguments
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4391. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4392. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. i=0
  4396. teststring="ABCD"
  4397. case $build_os in
  4398. msdosdjgpp*)
  4399. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4400. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4401. # during glob expansion). Even if it were fixed, the result of this
  4402. # check would be larger than it should be.
  4403. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4404. ;;
  4405. gnu*)
  4406. # Under GNU Hurd, this test is not required because there is
  4407. # no limit to the length of command line arguments.
  4408. # Libtool will interpret -1 as no limit whatsoever
  4409. lt_cv_sys_max_cmd_len=-1;
  4410. ;;
  4411. cygwin* | mingw* | cegcc*)
  4412. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4413. # about 5 minutes as the teststring grows exponentially.
  4414. # Worse, since 9x/ME are not pre-emptively multitasking,
  4415. # you end up with a "frozen" computer, even though with patience
  4416. # the test eventually succeeds (with a max line length of 256k).
  4417. # Instead, let's just punt: use the minimum linelength reported by
  4418. # all of the supported platforms: 8192 (on NT/2K/XP).
  4419. lt_cv_sys_max_cmd_len=8192;
  4420. ;;
  4421. mint*)
  4422. # On MiNT this can take a long time and run out of memory.
  4423. lt_cv_sys_max_cmd_len=8192;
  4424. ;;
  4425. amigaos*)
  4426. # On AmigaOS with pdksh, this test takes hours, literally.
  4427. # So we just punt and use a minimum line length of 8192.
  4428. lt_cv_sys_max_cmd_len=8192;
  4429. ;;
  4430. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4431. # This has been around since 386BSD, at least. Likely further.
  4432. if test -x /sbin/sysctl; then
  4433. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4434. elif test -x /usr/sbin/sysctl; then
  4435. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4436. else
  4437. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4438. fi
  4439. # And add a safety zone
  4440. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4441. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4442. ;;
  4443. interix*)
  4444. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4445. lt_cv_sys_max_cmd_len=196608
  4446. ;;
  4447. os2*)
  4448. # The test takes a long time on OS/2.
  4449. lt_cv_sys_max_cmd_len=8192
  4450. ;;
  4451. osf*)
  4452. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4453. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4454. # nice to cause kernel panics so lets avoid the loop below.
  4455. # First set a reasonable default.
  4456. lt_cv_sys_max_cmd_len=16384
  4457. #
  4458. if test -x /sbin/sysconfig; then
  4459. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4460. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4461. esac
  4462. fi
  4463. ;;
  4464. sco3.2v5*)
  4465. lt_cv_sys_max_cmd_len=102400
  4466. ;;
  4467. sysv5* | sco5v6* | sysv4.2uw2*)
  4468. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4469. if test -n "$kargmax"; then
  4470. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4471. else
  4472. lt_cv_sys_max_cmd_len=32768
  4473. fi
  4474. ;;
  4475. *)
  4476. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4477. if test -n "$lt_cv_sys_max_cmd_len" && \
  4478. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4479. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4480. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4481. else
  4482. # Make teststring a little bigger before we do anything with it.
  4483. # a 1K string should be a reasonable start.
  4484. for i in 1 2 3 4 5 6 7 8 ; do
  4485. teststring=$teststring$teststring
  4486. done
  4487. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4488. # If test is not a shell built-in, we'll probably end up computing a
  4489. # maximum length that is only half of the actual maximum length, but
  4490. # we can't tell.
  4491. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4492. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4493. test $i != 17 # 1/2 MB should be enough
  4494. do
  4495. i=`expr $i + 1`
  4496. teststring=$teststring$teststring
  4497. done
  4498. # Only check the string length outside the loop.
  4499. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4500. teststring=
  4501. # Add a significant safety factor because C++ compilers can tack on
  4502. # massive amounts of additional arguments before passing them to the
  4503. # linker. It appears as though 1/2 is a usable value.
  4504. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4505. fi
  4506. ;;
  4507. esac
  4508. fi
  4509. if test -n $lt_cv_sys_max_cmd_len ; then
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4511. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4512. else
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4514. $as_echo "none" >&6; }
  4515. fi
  4516. max_cmd_len=$lt_cv_sys_max_cmd_len
  4517. : ${CP="cp -f"}
  4518. : ${MV="mv -f"}
  4519. : ${RM="rm -f"}
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4521. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4522. # Try some XSI features
  4523. xsi_shell=no
  4524. ( _lt_dummy="a/b/c"
  4525. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4526. = c,a/b,b/c, \
  4527. && eval 'test $(( 1 + 1 )) -eq 2 \
  4528. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4529. && xsi_shell=yes
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4531. $as_echo "$xsi_shell" >&6; }
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4533. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4534. lt_shell_append=no
  4535. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4536. >/dev/null 2>&1 \
  4537. && lt_shell_append=yes
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4539. $as_echo "$lt_shell_append" >&6; }
  4540. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4541. lt_unset=unset
  4542. else
  4543. lt_unset=false
  4544. fi
  4545. # test EBCDIC or ASCII
  4546. case `echo X|tr X '\101'` in
  4547. A) # ASCII based system
  4548. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4549. lt_SP2NL='tr \040 \012'
  4550. lt_NL2SP='tr \015\012 \040\040'
  4551. ;;
  4552. *) # EBCDIC based system
  4553. lt_SP2NL='tr \100 \n'
  4554. lt_NL2SP='tr \r\n \100\100'
  4555. ;;
  4556. esac
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4558. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4559. if ${lt_cv_to_host_file_cmd+:} false; then :
  4560. $as_echo_n "(cached) " >&6
  4561. else
  4562. case $host in
  4563. *-*-mingw* )
  4564. case $build in
  4565. *-*-mingw* ) # actually msys
  4566. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4567. ;;
  4568. *-*-cygwin* )
  4569. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4570. ;;
  4571. * ) # otherwise, assume *nix
  4572. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4573. ;;
  4574. esac
  4575. ;;
  4576. *-*-cygwin* )
  4577. case $build in
  4578. *-*-mingw* ) # actually msys
  4579. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4580. ;;
  4581. *-*-cygwin* )
  4582. lt_cv_to_host_file_cmd=func_convert_file_noop
  4583. ;;
  4584. * ) # otherwise, assume *nix
  4585. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4586. ;;
  4587. esac
  4588. ;;
  4589. * ) # unhandled hosts (and "normal" native builds)
  4590. lt_cv_to_host_file_cmd=func_convert_file_noop
  4591. ;;
  4592. esac
  4593. fi
  4594. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4596. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4598. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4599. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. #assume ordinary cross tools, or native build.
  4603. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4604. case $host in
  4605. *-*-mingw* )
  4606. case $build in
  4607. *-*-mingw* ) # actually msys
  4608. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4609. ;;
  4610. esac
  4611. ;;
  4612. esac
  4613. fi
  4614. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4616. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4618. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4619. if ${lt_cv_ld_reload_flag+:} false; then :
  4620. $as_echo_n "(cached) " >&6
  4621. else
  4622. lt_cv_ld_reload_flag='-r'
  4623. fi
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4625. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4626. reload_flag=$lt_cv_ld_reload_flag
  4627. case $reload_flag in
  4628. "" | " "*) ;;
  4629. *) reload_flag=" $reload_flag" ;;
  4630. esac
  4631. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4632. case $host_os in
  4633. cygwin* | mingw* | pw32* | cegcc*)
  4634. if test "$GCC" != yes; then
  4635. reload_cmds=false
  4636. fi
  4637. ;;
  4638. darwin*)
  4639. if test "$GCC" = yes; then
  4640. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4641. else
  4642. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4643. fi
  4644. ;;
  4645. esac
  4646. if test -n "$ac_tool_prefix"; then
  4647. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4648. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4650. $as_echo_n "checking for $ac_word... " >&6; }
  4651. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4652. $as_echo_n "(cached) " >&6
  4653. else
  4654. if test -n "$OBJDUMP"; then
  4655. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4656. else
  4657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4658. for as_dir in $PATH
  4659. do
  4660. IFS=$as_save_IFS
  4661. test -z "$as_dir" && as_dir=.
  4662. for ac_exec_ext in '' $ac_executable_extensions; do
  4663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4664. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4666. break 2
  4667. fi
  4668. done
  4669. done
  4670. IFS=$as_save_IFS
  4671. fi
  4672. fi
  4673. OBJDUMP=$ac_cv_prog_OBJDUMP
  4674. if test -n "$OBJDUMP"; then
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4676. $as_echo "$OBJDUMP" >&6; }
  4677. else
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4679. $as_echo "no" >&6; }
  4680. fi
  4681. fi
  4682. if test -z "$ac_cv_prog_OBJDUMP"; then
  4683. ac_ct_OBJDUMP=$OBJDUMP
  4684. # Extract the first word of "objdump", so it can be a program name with args.
  4685. set dummy objdump; ac_word=$2
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4687. $as_echo_n "checking for $ac_word... " >&6; }
  4688. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. if test -n "$ac_ct_OBJDUMP"; then
  4692. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4693. else
  4694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695. for as_dir in $PATH
  4696. do
  4697. IFS=$as_save_IFS
  4698. test -z "$as_dir" && as_dir=.
  4699. for ac_exec_ext in '' $ac_executable_extensions; do
  4700. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4701. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4703. break 2
  4704. fi
  4705. done
  4706. done
  4707. IFS=$as_save_IFS
  4708. fi
  4709. fi
  4710. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4711. if test -n "$ac_ct_OBJDUMP"; then
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4713. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4714. else
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4716. $as_echo "no" >&6; }
  4717. fi
  4718. if test "x$ac_ct_OBJDUMP" = x; then
  4719. OBJDUMP="false"
  4720. else
  4721. case $cross_compiling:$ac_tool_warned in
  4722. yes:)
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4724. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4725. ac_tool_warned=yes ;;
  4726. esac
  4727. OBJDUMP=$ac_ct_OBJDUMP
  4728. fi
  4729. else
  4730. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4731. fi
  4732. test -z "$OBJDUMP" && OBJDUMP=objdump
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4734. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4735. if ${lt_cv_deplibs_check_method+:} false; then :
  4736. $as_echo_n "(cached) " >&6
  4737. else
  4738. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4739. lt_cv_file_magic_test_file=
  4740. lt_cv_deplibs_check_method='unknown'
  4741. # Need to set the preceding variable on all platforms that support
  4742. # interlibrary dependencies.
  4743. # 'none' -- dependencies not supported.
  4744. # `unknown' -- same as none, but documents that we really don't know.
  4745. # 'pass_all' -- all dependencies passed with no checks.
  4746. # 'test_compile' -- check by making test program.
  4747. # 'file_magic [[regex]]' -- check by looking for files in library path
  4748. # which responds to the $file_magic_cmd with a given extended regex.
  4749. # If you have `file' or equivalent on your system and you're not sure
  4750. # whether `pass_all' will *always* work, you probably want this one.
  4751. case $host_os in
  4752. aix[4-9]*)
  4753. lt_cv_deplibs_check_method=pass_all
  4754. ;;
  4755. beos*)
  4756. lt_cv_deplibs_check_method=pass_all
  4757. ;;
  4758. bsdi[45]*)
  4759. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4760. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4761. lt_cv_file_magic_test_file=/shlib/libc.so
  4762. ;;
  4763. cygwin*)
  4764. # func_win32_libid is a shell function defined in ltmain.sh
  4765. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4766. lt_cv_file_magic_cmd='func_win32_libid'
  4767. ;;
  4768. mingw* | pw32*)
  4769. # Base MSYS/MinGW do not provide the 'file' command needed by
  4770. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4771. # unless we find 'file', for example because we are cross-compiling.
  4772. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4773. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4774. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4775. lt_cv_file_magic_cmd='func_win32_libid'
  4776. else
  4777. # Keep this pattern in sync with the one in func_win32_libid.
  4778. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4779. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4780. fi
  4781. ;;
  4782. cegcc*)
  4783. # use the weaker test based on 'objdump'. See mingw*.
  4784. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4785. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4786. ;;
  4787. darwin* | rhapsody*)
  4788. lt_cv_deplibs_check_method=pass_all
  4789. ;;
  4790. freebsd* | dragonfly*)
  4791. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4792. case $host_cpu in
  4793. i*86 )
  4794. # Not sure whether the presence of OpenBSD here was a mistake.
  4795. # Let's accept both of them until this is cleared up.
  4796. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4797. lt_cv_file_magic_cmd=/usr/bin/file
  4798. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4799. ;;
  4800. esac
  4801. else
  4802. lt_cv_deplibs_check_method=pass_all
  4803. fi
  4804. ;;
  4805. haiku*)
  4806. lt_cv_deplibs_check_method=pass_all
  4807. ;;
  4808. hpux10.20* | hpux11*)
  4809. lt_cv_file_magic_cmd=/usr/bin/file
  4810. case $host_cpu in
  4811. ia64*)
  4812. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4813. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4814. ;;
  4815. hppa*64*)
  4816. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4817. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4818. ;;
  4819. *)
  4820. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4821. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4822. ;;
  4823. esac
  4824. ;;
  4825. interix[3-9]*)
  4826. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4827. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4828. ;;
  4829. irix5* | irix6* | nonstopux*)
  4830. case $LD in
  4831. *-32|*"-32 ") libmagic=32-bit;;
  4832. *-n32|*"-n32 ") libmagic=N32;;
  4833. *-64|*"-64 ") libmagic=64-bit;;
  4834. *) libmagic=never-match;;
  4835. esac
  4836. lt_cv_deplibs_check_method=pass_all
  4837. ;;
  4838. # This must be glibc/ELF.
  4839. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4840. lt_cv_deplibs_check_method=pass_all
  4841. ;;
  4842. netbsd* | netbsdelf*-gnu)
  4843. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4844. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4845. else
  4846. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4847. fi
  4848. ;;
  4849. newos6*)
  4850. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4851. lt_cv_file_magic_cmd=/usr/bin/file
  4852. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4853. ;;
  4854. *nto* | *qnx*)
  4855. lt_cv_deplibs_check_method=pass_all
  4856. ;;
  4857. openbsd*)
  4858. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4859. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4860. else
  4861. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4862. fi
  4863. ;;
  4864. osf3* | osf4* | osf5*)
  4865. lt_cv_deplibs_check_method=pass_all
  4866. ;;
  4867. rdos*)
  4868. lt_cv_deplibs_check_method=pass_all
  4869. ;;
  4870. solaris*)
  4871. lt_cv_deplibs_check_method=pass_all
  4872. ;;
  4873. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4874. lt_cv_deplibs_check_method=pass_all
  4875. ;;
  4876. sysv4 | sysv4.3*)
  4877. case $host_vendor in
  4878. motorola)
  4879. 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]'
  4880. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4881. ;;
  4882. ncr)
  4883. lt_cv_deplibs_check_method=pass_all
  4884. ;;
  4885. sequent)
  4886. lt_cv_file_magic_cmd='/bin/file'
  4887. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4888. ;;
  4889. sni)
  4890. lt_cv_file_magic_cmd='/bin/file'
  4891. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4892. lt_cv_file_magic_test_file=/lib/libc.so
  4893. ;;
  4894. siemens)
  4895. lt_cv_deplibs_check_method=pass_all
  4896. ;;
  4897. pc)
  4898. lt_cv_deplibs_check_method=pass_all
  4899. ;;
  4900. esac
  4901. ;;
  4902. tpf*)
  4903. lt_cv_deplibs_check_method=pass_all
  4904. ;;
  4905. esac
  4906. fi
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4908. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4909. file_magic_glob=
  4910. want_nocaseglob=no
  4911. if test "$build" = "$host"; then
  4912. case $host_os in
  4913. mingw* | pw32*)
  4914. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4915. want_nocaseglob=yes
  4916. else
  4917. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4918. fi
  4919. ;;
  4920. esac
  4921. fi
  4922. file_magic_cmd=$lt_cv_file_magic_cmd
  4923. deplibs_check_method=$lt_cv_deplibs_check_method
  4924. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4925. if test -n "$ac_tool_prefix"; then
  4926. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4927. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4929. $as_echo_n "checking for $ac_word... " >&6; }
  4930. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4931. $as_echo_n "(cached) " >&6
  4932. else
  4933. if test -n "$DLLTOOL"; then
  4934. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4935. else
  4936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4937. for as_dir in $PATH
  4938. do
  4939. IFS=$as_save_IFS
  4940. test -z "$as_dir" && as_dir=.
  4941. for ac_exec_ext in '' $ac_executable_extensions; do
  4942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4943. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4945. break 2
  4946. fi
  4947. done
  4948. done
  4949. IFS=$as_save_IFS
  4950. fi
  4951. fi
  4952. DLLTOOL=$ac_cv_prog_DLLTOOL
  4953. if test -n "$DLLTOOL"; then
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4955. $as_echo "$DLLTOOL" >&6; }
  4956. else
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4958. $as_echo "no" >&6; }
  4959. fi
  4960. fi
  4961. if test -z "$ac_cv_prog_DLLTOOL"; then
  4962. ac_ct_DLLTOOL=$DLLTOOL
  4963. # Extract the first word of "dlltool", so it can be a program name with args.
  4964. set dummy dlltool; ac_word=$2
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4966. $as_echo_n "checking for $ac_word... " >&6; }
  4967. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4968. $as_echo_n "(cached) " >&6
  4969. else
  4970. if test -n "$ac_ct_DLLTOOL"; then
  4971. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4972. else
  4973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4974. for as_dir in $PATH
  4975. do
  4976. IFS=$as_save_IFS
  4977. test -z "$as_dir" && as_dir=.
  4978. for ac_exec_ext in '' $ac_executable_extensions; do
  4979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4980. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4982. break 2
  4983. fi
  4984. done
  4985. done
  4986. IFS=$as_save_IFS
  4987. fi
  4988. fi
  4989. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4990. if test -n "$ac_ct_DLLTOOL"; then
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4992. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4993. else
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4995. $as_echo "no" >&6; }
  4996. fi
  4997. if test "x$ac_ct_DLLTOOL" = x; then
  4998. DLLTOOL="false"
  4999. else
  5000. case $cross_compiling:$ac_tool_warned in
  5001. yes:)
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5003. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5004. ac_tool_warned=yes ;;
  5005. esac
  5006. DLLTOOL=$ac_ct_DLLTOOL
  5007. fi
  5008. else
  5009. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5010. fi
  5011. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5013. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5014. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5015. $as_echo_n "(cached) " >&6
  5016. else
  5017. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5018. case $host_os in
  5019. cygwin* | mingw* | pw32* | cegcc*)
  5020. # two different shell functions defined in ltmain.sh
  5021. # decide which to use based on capabilities of $DLLTOOL
  5022. case `$DLLTOOL --help 2>&1` in
  5023. *--identify-strict*)
  5024. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5025. ;;
  5026. *)
  5027. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5028. ;;
  5029. esac
  5030. ;;
  5031. *)
  5032. # fallback: assume linklib IS sharedlib
  5033. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5034. ;;
  5035. esac
  5036. fi
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5038. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5039. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5040. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5041. if test -n "$ac_tool_prefix"; then
  5042. for ac_prog in ar
  5043. do
  5044. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5045. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5047. $as_echo_n "checking for $ac_word... " >&6; }
  5048. if ${ac_cv_prog_AR+:} false; then :
  5049. $as_echo_n "(cached) " >&6
  5050. else
  5051. if test -n "$AR"; then
  5052. ac_cv_prog_AR="$AR" # Let the user override the test.
  5053. else
  5054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5055. for as_dir in $PATH
  5056. do
  5057. IFS=$as_save_IFS
  5058. test -z "$as_dir" && as_dir=.
  5059. for ac_exec_ext in '' $ac_executable_extensions; do
  5060. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5061. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5062. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5063. break 2
  5064. fi
  5065. done
  5066. done
  5067. IFS=$as_save_IFS
  5068. fi
  5069. fi
  5070. AR=$ac_cv_prog_AR
  5071. if test -n "$AR"; then
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5073. $as_echo "$AR" >&6; }
  5074. else
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5076. $as_echo "no" >&6; }
  5077. fi
  5078. test -n "$AR" && break
  5079. done
  5080. fi
  5081. if test -z "$AR"; then
  5082. ac_ct_AR=$AR
  5083. for ac_prog in ar
  5084. do
  5085. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5086. set dummy $ac_prog; ac_word=$2
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5088. $as_echo_n "checking for $ac_word... " >&6; }
  5089. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5090. $as_echo_n "(cached) " >&6
  5091. else
  5092. if test -n "$ac_ct_AR"; then
  5093. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5094. else
  5095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5096. for as_dir in $PATH
  5097. do
  5098. IFS=$as_save_IFS
  5099. test -z "$as_dir" && as_dir=.
  5100. for ac_exec_ext in '' $ac_executable_extensions; do
  5101. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5102. ac_cv_prog_ac_ct_AR="$ac_prog"
  5103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5104. break 2
  5105. fi
  5106. done
  5107. done
  5108. IFS=$as_save_IFS
  5109. fi
  5110. fi
  5111. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5112. if test -n "$ac_ct_AR"; then
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5114. $as_echo "$ac_ct_AR" >&6; }
  5115. else
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5117. $as_echo "no" >&6; }
  5118. fi
  5119. test -n "$ac_ct_AR" && break
  5120. done
  5121. if test "x$ac_ct_AR" = x; then
  5122. AR="false"
  5123. else
  5124. case $cross_compiling:$ac_tool_warned in
  5125. yes:)
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5127. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5128. ac_tool_warned=yes ;;
  5129. esac
  5130. AR=$ac_ct_AR
  5131. fi
  5132. fi
  5133. : ${AR=ar}
  5134. : ${AR_FLAGS=cru}
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5136. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5137. if ${lt_cv_ar_at_file+:} false; then :
  5138. $as_echo_n "(cached) " >&6
  5139. else
  5140. lt_cv_ar_at_file=no
  5141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5142. /* end confdefs.h. */
  5143. int
  5144. main ()
  5145. {
  5146. ;
  5147. return 0;
  5148. }
  5149. _ACEOF
  5150. if ac_fn_c_try_compile "$LINENO"; then :
  5151. echo conftest.$ac_objext > conftest.lst
  5152. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5153. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5154. (eval $lt_ar_try) 2>&5
  5155. ac_status=$?
  5156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5157. test $ac_status = 0; }
  5158. if test "$ac_status" -eq 0; then
  5159. # Ensure the archiver fails upon bogus file names.
  5160. rm -f conftest.$ac_objext libconftest.a
  5161. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5162. (eval $lt_ar_try) 2>&5
  5163. ac_status=$?
  5164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5165. test $ac_status = 0; }
  5166. if test "$ac_status" -ne 0; then
  5167. lt_cv_ar_at_file=@
  5168. fi
  5169. fi
  5170. rm -f conftest.* libconftest.a
  5171. fi
  5172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5173. fi
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5175. $as_echo "$lt_cv_ar_at_file" >&6; }
  5176. if test "x$lt_cv_ar_at_file" = xno; then
  5177. archiver_list_spec=
  5178. else
  5179. archiver_list_spec=$lt_cv_ar_at_file
  5180. fi
  5181. if test -n "$ac_tool_prefix"; then
  5182. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5183. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5185. $as_echo_n "checking for $ac_word... " >&6; }
  5186. if ${ac_cv_prog_STRIP+:} false; then :
  5187. $as_echo_n "(cached) " >&6
  5188. else
  5189. if test -n "$STRIP"; then
  5190. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5191. else
  5192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5193. for as_dir in $PATH
  5194. do
  5195. IFS=$as_save_IFS
  5196. test -z "$as_dir" && as_dir=.
  5197. for ac_exec_ext in '' $ac_executable_extensions; do
  5198. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5199. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5201. break 2
  5202. fi
  5203. done
  5204. done
  5205. IFS=$as_save_IFS
  5206. fi
  5207. fi
  5208. STRIP=$ac_cv_prog_STRIP
  5209. if test -n "$STRIP"; then
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5211. $as_echo "$STRIP" >&6; }
  5212. else
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5214. $as_echo "no" >&6; }
  5215. fi
  5216. fi
  5217. if test -z "$ac_cv_prog_STRIP"; then
  5218. ac_ct_STRIP=$STRIP
  5219. # Extract the first word of "strip", so it can be a program name with args.
  5220. set dummy strip; ac_word=$2
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5222. $as_echo_n "checking for $ac_word... " >&6; }
  5223. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5224. $as_echo_n "(cached) " >&6
  5225. else
  5226. if test -n "$ac_ct_STRIP"; then
  5227. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5228. else
  5229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5230. for as_dir in $PATH
  5231. do
  5232. IFS=$as_save_IFS
  5233. test -z "$as_dir" && as_dir=.
  5234. for ac_exec_ext in '' $ac_executable_extensions; do
  5235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5236. ac_cv_prog_ac_ct_STRIP="strip"
  5237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5238. break 2
  5239. fi
  5240. done
  5241. done
  5242. IFS=$as_save_IFS
  5243. fi
  5244. fi
  5245. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5246. if test -n "$ac_ct_STRIP"; then
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5248. $as_echo "$ac_ct_STRIP" >&6; }
  5249. else
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5251. $as_echo "no" >&6; }
  5252. fi
  5253. if test "x$ac_ct_STRIP" = x; then
  5254. STRIP=":"
  5255. else
  5256. case $cross_compiling:$ac_tool_warned in
  5257. yes:)
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5259. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5260. ac_tool_warned=yes ;;
  5261. esac
  5262. STRIP=$ac_ct_STRIP
  5263. fi
  5264. else
  5265. STRIP="$ac_cv_prog_STRIP"
  5266. fi
  5267. test -z "$STRIP" && STRIP=:
  5268. if test -n "$ac_tool_prefix"; then
  5269. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5270. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5272. $as_echo_n "checking for $ac_word... " >&6; }
  5273. if ${ac_cv_prog_RANLIB+:} false; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. if test -n "$RANLIB"; then
  5277. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5278. else
  5279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5280. for as_dir in $PATH
  5281. do
  5282. IFS=$as_save_IFS
  5283. test -z "$as_dir" && as_dir=.
  5284. for ac_exec_ext in '' $ac_executable_extensions; do
  5285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5286. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5288. break 2
  5289. fi
  5290. done
  5291. done
  5292. IFS=$as_save_IFS
  5293. fi
  5294. fi
  5295. RANLIB=$ac_cv_prog_RANLIB
  5296. if test -n "$RANLIB"; then
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5298. $as_echo "$RANLIB" >&6; }
  5299. else
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5301. $as_echo "no" >&6; }
  5302. fi
  5303. fi
  5304. if test -z "$ac_cv_prog_RANLIB"; then
  5305. ac_ct_RANLIB=$RANLIB
  5306. # Extract the first word of "ranlib", so it can be a program name with args.
  5307. set dummy ranlib; ac_word=$2
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5309. $as_echo_n "checking for $ac_word... " >&6; }
  5310. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5311. $as_echo_n "(cached) " >&6
  5312. else
  5313. if test -n "$ac_ct_RANLIB"; then
  5314. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5315. else
  5316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5317. for as_dir in $PATH
  5318. do
  5319. IFS=$as_save_IFS
  5320. test -z "$as_dir" && as_dir=.
  5321. for ac_exec_ext in '' $ac_executable_extensions; do
  5322. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5323. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5325. break 2
  5326. fi
  5327. done
  5328. done
  5329. IFS=$as_save_IFS
  5330. fi
  5331. fi
  5332. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5333. if test -n "$ac_ct_RANLIB"; then
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5335. $as_echo "$ac_ct_RANLIB" >&6; }
  5336. else
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5338. $as_echo "no" >&6; }
  5339. fi
  5340. if test "x$ac_ct_RANLIB" = x; then
  5341. RANLIB=":"
  5342. else
  5343. case $cross_compiling:$ac_tool_warned in
  5344. yes:)
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5347. ac_tool_warned=yes ;;
  5348. esac
  5349. RANLIB=$ac_ct_RANLIB
  5350. fi
  5351. else
  5352. RANLIB="$ac_cv_prog_RANLIB"
  5353. fi
  5354. test -z "$RANLIB" && RANLIB=:
  5355. # Determine commands to create old-style static archives.
  5356. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5357. old_postinstall_cmds='chmod 644 $oldlib'
  5358. old_postuninstall_cmds=
  5359. if test -n "$RANLIB"; then
  5360. case $host_os in
  5361. openbsd*)
  5362. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5363. ;;
  5364. *)
  5365. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5366. ;;
  5367. esac
  5368. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5369. fi
  5370. case $host_os in
  5371. darwin*)
  5372. lock_old_archive_extraction=yes ;;
  5373. *)
  5374. lock_old_archive_extraction=no ;;
  5375. esac
  5376. # If no C compiler was specified, use CC.
  5377. LTCC=${LTCC-"$CC"}
  5378. # If no C compiler flags were specified, use CFLAGS.
  5379. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5380. # Allow CC to be a program name with arguments.
  5381. compiler=$CC
  5382. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5384. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5385. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5386. $as_echo_n "(cached) " >&6
  5387. else
  5388. # These are sane defaults that work on at least a few old systems.
  5389. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5390. # Character class describing NM global symbol codes.
  5391. symcode='[BCDEGRST]'
  5392. # Regexp to match symbols that can be accessed directly from C.
  5393. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5394. # Define system-specific variables.
  5395. case $host_os in
  5396. aix*)
  5397. symcode='[BCDT]'
  5398. ;;
  5399. cygwin* | mingw* | pw32* | cegcc*)
  5400. symcode='[ABCDGISTW]'
  5401. ;;
  5402. hpux*)
  5403. if test "$host_cpu" = ia64; then
  5404. symcode='[ABCDEGRST]'
  5405. fi
  5406. ;;
  5407. irix* | nonstopux*)
  5408. symcode='[BCDEGRST]'
  5409. ;;
  5410. osf*)
  5411. symcode='[BCDEGQRST]'
  5412. ;;
  5413. solaris*)
  5414. symcode='[BDRT]'
  5415. ;;
  5416. sco3.2v5*)
  5417. symcode='[DT]'
  5418. ;;
  5419. sysv4.2uw2*)
  5420. symcode='[DT]'
  5421. ;;
  5422. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5423. symcode='[ABDT]'
  5424. ;;
  5425. sysv4)
  5426. symcode='[DFNSTU]'
  5427. ;;
  5428. esac
  5429. # If we're using GNU nm, then use its standard symbol codes.
  5430. case `$NM -V 2>&1` in
  5431. *GNU* | *'with BFD'*)
  5432. symcode='[ABCDGIRSTW]' ;;
  5433. esac
  5434. # Transform an extracted symbol line into a proper C declaration.
  5435. # Some systems (esp. on ia64) link data and code symbols differently,
  5436. # so use this general approach.
  5437. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5438. # Transform an extracted symbol line into symbol name and symbol address
  5439. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5440. 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'"
  5441. # Handle CRLF in mingw tool chain
  5442. opt_cr=
  5443. case $build_os in
  5444. mingw*)
  5445. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5446. ;;
  5447. esac
  5448. # Try without a prefix underscore, then with it.
  5449. for ac_symprfx in "" "_"; do
  5450. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5451. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5452. # Write the raw and C identifiers.
  5453. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5454. # Fake it for dumpbin and say T for any non-static function
  5455. # and D for any global variable.
  5456. # Also find C++ and __fastcall symbols from MSVC++,
  5457. # which start with @ or ?.
  5458. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5459. " {last_section=section; section=\$ 3};"\
  5460. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5461. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5462. " \$ 0!~/External *\|/{next};"\
  5463. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5464. " {if(hide[section]) next};"\
  5465. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5466. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5467. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5468. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5469. " ' prfx=^$ac_symprfx"
  5470. else
  5471. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5472. fi
  5473. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5474. # Check to see that the pipe works correctly.
  5475. pipe_works=no
  5476. rm -f conftest*
  5477. cat > conftest.$ac_ext <<_LT_EOF
  5478. #ifdef __cplusplus
  5479. extern "C" {
  5480. #endif
  5481. char nm_test_var;
  5482. void nm_test_func(void);
  5483. void nm_test_func(void){}
  5484. #ifdef __cplusplus
  5485. }
  5486. #endif
  5487. int main(){nm_test_var='a';nm_test_func();return(0);}
  5488. _LT_EOF
  5489. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5490. (eval $ac_compile) 2>&5
  5491. ac_status=$?
  5492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5493. test $ac_status = 0; }; then
  5494. # Now try to grab the symbols.
  5495. nlist=conftest.nm
  5496. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5497. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5498. ac_status=$?
  5499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5500. test $ac_status = 0; } && test -s "$nlist"; then
  5501. # Try sorting and uniquifying the output.
  5502. if sort "$nlist" | uniq > "$nlist"T; then
  5503. mv -f "$nlist"T "$nlist"
  5504. else
  5505. rm -f "$nlist"T
  5506. fi
  5507. # Make sure that we snagged all the symbols we need.
  5508. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5509. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5510. cat <<_LT_EOF > conftest.$ac_ext
  5511. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5512. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5513. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5514. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5515. # define LT_DLSYM_CONST
  5516. #elif defined(__osf__)
  5517. /* This system does not cope well with relocations in const data. */
  5518. # define LT_DLSYM_CONST
  5519. #else
  5520. # define LT_DLSYM_CONST const
  5521. #endif
  5522. #ifdef __cplusplus
  5523. extern "C" {
  5524. #endif
  5525. _LT_EOF
  5526. # Now generate the symbol file.
  5527. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5528. cat <<_LT_EOF >> conftest.$ac_ext
  5529. /* The mapping between symbol names and symbols. */
  5530. LT_DLSYM_CONST struct {
  5531. const char *name;
  5532. void *address;
  5533. }
  5534. lt__PROGRAM__LTX_preloaded_symbols[] =
  5535. {
  5536. { "@PROGRAM@", (void *) 0 },
  5537. _LT_EOF
  5538. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5539. cat <<\_LT_EOF >> conftest.$ac_ext
  5540. {0, (void *) 0}
  5541. };
  5542. /* This works around a problem in FreeBSD linker */
  5543. #ifdef FREEBSD_WORKAROUND
  5544. static const void *lt_preloaded_setup() {
  5545. return lt__PROGRAM__LTX_preloaded_symbols;
  5546. }
  5547. #endif
  5548. #ifdef __cplusplus
  5549. }
  5550. #endif
  5551. _LT_EOF
  5552. # Now try linking the two files.
  5553. mv conftest.$ac_objext conftstm.$ac_objext
  5554. lt_globsym_save_LIBS=$LIBS
  5555. lt_globsym_save_CFLAGS=$CFLAGS
  5556. LIBS="conftstm.$ac_objext"
  5557. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5558. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5559. (eval $ac_link) 2>&5
  5560. ac_status=$?
  5561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5562. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5563. pipe_works=yes
  5564. fi
  5565. LIBS=$lt_globsym_save_LIBS
  5566. CFLAGS=$lt_globsym_save_CFLAGS
  5567. else
  5568. echo "cannot find nm_test_func in $nlist" >&5
  5569. fi
  5570. else
  5571. echo "cannot find nm_test_var in $nlist" >&5
  5572. fi
  5573. else
  5574. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5575. fi
  5576. else
  5577. echo "$progname: failed program was:" >&5
  5578. cat conftest.$ac_ext >&5
  5579. fi
  5580. rm -rf conftest* conftst*
  5581. # Do not use the global_symbol_pipe unless it works.
  5582. if test "$pipe_works" = yes; then
  5583. break
  5584. else
  5585. lt_cv_sys_global_symbol_pipe=
  5586. fi
  5587. done
  5588. fi
  5589. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5590. lt_cv_sys_global_symbol_to_cdecl=
  5591. fi
  5592. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5594. $as_echo "failed" >&6; }
  5595. else
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5597. $as_echo "ok" >&6; }
  5598. fi
  5599. # Response file support.
  5600. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5601. nm_file_list_spec='@'
  5602. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5603. nm_file_list_spec='@'
  5604. fi
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5606. $as_echo_n "checking for sysroot... " >&6; }
  5607. # Check whether --with-sysroot was given.
  5608. if test "${with_sysroot+set}" = set; then :
  5609. withval=$with_sysroot;
  5610. else
  5611. with_sysroot=no
  5612. fi
  5613. lt_sysroot=
  5614. case ${with_sysroot} in #(
  5615. yes)
  5616. if test "$GCC" = yes; then
  5617. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5618. fi
  5619. ;; #(
  5620. /*)
  5621. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5622. ;; #(
  5623. no|'')
  5624. ;; #(
  5625. *)
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5627. $as_echo "${with_sysroot}" >&6; }
  5628. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5629. ;;
  5630. esac
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5632. $as_echo "${lt_sysroot:-no}" >&6; }
  5633. # Check whether --enable-libtool-lock was given.
  5634. if test "${enable_libtool_lock+set}" = set; then :
  5635. enableval=$enable_libtool_lock;
  5636. fi
  5637. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5638. # Some flags need to be propagated to the compiler or linker for good
  5639. # libtool support.
  5640. case $host in
  5641. ia64-*-hpux*)
  5642. # Find out which ABI we are using.
  5643. echo 'int i;' > conftest.$ac_ext
  5644. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5645. (eval $ac_compile) 2>&5
  5646. ac_status=$?
  5647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5648. test $ac_status = 0; }; then
  5649. case `/usr/bin/file conftest.$ac_objext` in
  5650. *ELF-32*)
  5651. HPUX_IA64_MODE="32"
  5652. ;;
  5653. *ELF-64*)
  5654. HPUX_IA64_MODE="64"
  5655. ;;
  5656. esac
  5657. fi
  5658. rm -rf conftest*
  5659. ;;
  5660. *-*-irix6*)
  5661. # Find out which ABI we are using.
  5662. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5663. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5664. (eval $ac_compile) 2>&5
  5665. ac_status=$?
  5666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5667. test $ac_status = 0; }; then
  5668. if test "$lt_cv_prog_gnu_ld" = yes; then
  5669. case `/usr/bin/file conftest.$ac_objext` in
  5670. *32-bit*)
  5671. LD="${LD-ld} -melf32bsmip"
  5672. ;;
  5673. *N32*)
  5674. LD="${LD-ld} -melf32bmipn32"
  5675. ;;
  5676. *64-bit*)
  5677. LD="${LD-ld} -melf64bmip"
  5678. ;;
  5679. esac
  5680. else
  5681. case `/usr/bin/file conftest.$ac_objext` in
  5682. *32-bit*)
  5683. LD="${LD-ld} -32"
  5684. ;;
  5685. *N32*)
  5686. LD="${LD-ld} -n32"
  5687. ;;
  5688. *64-bit*)
  5689. LD="${LD-ld} -64"
  5690. ;;
  5691. esac
  5692. fi
  5693. fi
  5694. rm -rf conftest*
  5695. ;;
  5696. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5697. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5698. # Find out which ABI we are using.
  5699. echo 'int i;' > conftest.$ac_ext
  5700. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5701. (eval $ac_compile) 2>&5
  5702. ac_status=$?
  5703. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5704. test $ac_status = 0; }; then
  5705. case `/usr/bin/file conftest.o` in
  5706. *32-bit*)
  5707. case $host in
  5708. x86_64-*kfreebsd*-gnu)
  5709. LD="${LD-ld} -m elf_i386_fbsd"
  5710. ;;
  5711. x86_64-*linux*)
  5712. case `/usr/bin/file conftest.o` in
  5713. *x86-64*)
  5714. LD="${LD-ld} -m elf32_x86_64"
  5715. ;;
  5716. *)
  5717. LD="${LD-ld} -m elf_i386"
  5718. ;;
  5719. esac
  5720. ;;
  5721. ppc64-*linux*|powerpc64-*linux*)
  5722. LD="${LD-ld} -m elf32ppclinux"
  5723. ;;
  5724. s390x-*linux*)
  5725. LD="${LD-ld} -m elf_s390"
  5726. ;;
  5727. sparc64-*linux*)
  5728. LD="${LD-ld} -m elf32_sparc"
  5729. ;;
  5730. esac
  5731. ;;
  5732. *64-bit*)
  5733. case $host in
  5734. x86_64-*kfreebsd*-gnu)
  5735. LD="${LD-ld} -m elf_x86_64_fbsd"
  5736. ;;
  5737. x86_64-*linux*)
  5738. LD="${LD-ld} -m elf_x86_64"
  5739. ;;
  5740. ppc*-*linux*|powerpc*-*linux*)
  5741. LD="${LD-ld} -m elf64ppc"
  5742. ;;
  5743. s390*-*linux*|s390*-*tpf*)
  5744. LD="${LD-ld} -m elf64_s390"
  5745. ;;
  5746. sparc*-*linux*)
  5747. LD="${LD-ld} -m elf64_sparc"
  5748. ;;
  5749. esac
  5750. ;;
  5751. esac
  5752. fi
  5753. rm -rf conftest*
  5754. ;;
  5755. *-*-sco3.2v5*)
  5756. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5757. SAVE_CFLAGS="$CFLAGS"
  5758. CFLAGS="$CFLAGS -belf"
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5760. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5761. if ${lt_cv_cc_needs_belf+:} false; then :
  5762. $as_echo_n "(cached) " >&6
  5763. else
  5764. ac_ext=c
  5765. ac_cpp='$CPP $CPPFLAGS'
  5766. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5767. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5768. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5770. /* end confdefs.h. */
  5771. int
  5772. main ()
  5773. {
  5774. ;
  5775. return 0;
  5776. }
  5777. _ACEOF
  5778. if ac_fn_c_try_link "$LINENO"; then :
  5779. lt_cv_cc_needs_belf=yes
  5780. else
  5781. lt_cv_cc_needs_belf=no
  5782. fi
  5783. rm -f core conftest.err conftest.$ac_objext \
  5784. conftest$ac_exeext conftest.$ac_ext
  5785. ac_ext=c
  5786. ac_cpp='$CPP $CPPFLAGS'
  5787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5790. fi
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5792. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5793. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5794. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5795. CFLAGS="$SAVE_CFLAGS"
  5796. fi
  5797. ;;
  5798. *-*solaris*)
  5799. # Find out which ABI we are using.
  5800. echo 'int i;' > conftest.$ac_ext
  5801. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5802. (eval $ac_compile) 2>&5
  5803. ac_status=$?
  5804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5805. test $ac_status = 0; }; then
  5806. case `/usr/bin/file conftest.o` in
  5807. *64-bit*)
  5808. case $lt_cv_prog_gnu_ld in
  5809. yes*)
  5810. case $host in
  5811. i?86-*-solaris*)
  5812. LD="${LD-ld} -m elf_x86_64"
  5813. ;;
  5814. sparc*-*-solaris*)
  5815. LD="${LD-ld} -m elf64_sparc"
  5816. ;;
  5817. esac
  5818. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5819. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5820. LD="${LD-ld}_sol2"
  5821. fi
  5822. ;;
  5823. *)
  5824. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5825. LD="${LD-ld} -64"
  5826. fi
  5827. ;;
  5828. esac
  5829. ;;
  5830. esac
  5831. fi
  5832. rm -rf conftest*
  5833. ;;
  5834. esac
  5835. need_locks="$enable_libtool_lock"
  5836. if test -n "$ac_tool_prefix"; then
  5837. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5838. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5840. $as_echo_n "checking for $ac_word... " >&6; }
  5841. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5842. $as_echo_n "(cached) " >&6
  5843. else
  5844. if test -n "$MANIFEST_TOOL"; then
  5845. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5846. else
  5847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5848. for as_dir in $PATH
  5849. do
  5850. IFS=$as_save_IFS
  5851. test -z "$as_dir" && as_dir=.
  5852. for ac_exec_ext in '' $ac_executable_extensions; do
  5853. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5854. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5856. break 2
  5857. fi
  5858. done
  5859. done
  5860. IFS=$as_save_IFS
  5861. fi
  5862. fi
  5863. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5864. if test -n "$MANIFEST_TOOL"; then
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5866. $as_echo "$MANIFEST_TOOL" >&6; }
  5867. else
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5869. $as_echo "no" >&6; }
  5870. fi
  5871. fi
  5872. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5873. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5874. # Extract the first word of "mt", so it can be a program name with args.
  5875. set dummy mt; ac_word=$2
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5877. $as_echo_n "checking for $ac_word... " >&6; }
  5878. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5879. $as_echo_n "(cached) " >&6
  5880. else
  5881. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5882. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5883. else
  5884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5885. for as_dir in $PATH
  5886. do
  5887. IFS=$as_save_IFS
  5888. test -z "$as_dir" && as_dir=.
  5889. for ac_exec_ext in '' $ac_executable_extensions; do
  5890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5891. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5893. break 2
  5894. fi
  5895. done
  5896. done
  5897. IFS=$as_save_IFS
  5898. fi
  5899. fi
  5900. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5901. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5903. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5904. else
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5906. $as_echo "no" >&6; }
  5907. fi
  5908. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5909. MANIFEST_TOOL=":"
  5910. else
  5911. case $cross_compiling:$ac_tool_warned in
  5912. yes:)
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5914. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5915. ac_tool_warned=yes ;;
  5916. esac
  5917. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5918. fi
  5919. else
  5920. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5921. fi
  5922. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5924. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5925. if ${lt_cv_path_mainfest_tool+:} false; then :
  5926. $as_echo_n "(cached) " >&6
  5927. else
  5928. lt_cv_path_mainfest_tool=no
  5929. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5930. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5931. cat conftest.err >&5
  5932. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5933. lt_cv_path_mainfest_tool=yes
  5934. fi
  5935. rm -f conftest*
  5936. fi
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5938. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5939. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5940. MANIFEST_TOOL=:
  5941. fi
  5942. case $host_os in
  5943. rhapsody* | darwin*)
  5944. if test -n "$ac_tool_prefix"; then
  5945. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5946. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5948. $as_echo_n "checking for $ac_word... " >&6; }
  5949. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5950. $as_echo_n "(cached) " >&6
  5951. else
  5952. if test -n "$DSYMUTIL"; then
  5953. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5954. else
  5955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5956. for as_dir in $PATH
  5957. do
  5958. IFS=$as_save_IFS
  5959. test -z "$as_dir" && as_dir=.
  5960. for ac_exec_ext in '' $ac_executable_extensions; do
  5961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5962. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5964. break 2
  5965. fi
  5966. done
  5967. done
  5968. IFS=$as_save_IFS
  5969. fi
  5970. fi
  5971. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5972. if test -n "$DSYMUTIL"; then
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5974. $as_echo "$DSYMUTIL" >&6; }
  5975. else
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5977. $as_echo "no" >&6; }
  5978. fi
  5979. fi
  5980. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5981. ac_ct_DSYMUTIL=$DSYMUTIL
  5982. # Extract the first word of "dsymutil", so it can be a program name with args.
  5983. set dummy dsymutil; ac_word=$2
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5985. $as_echo_n "checking for $ac_word... " >&6; }
  5986. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5987. $as_echo_n "(cached) " >&6
  5988. else
  5989. if test -n "$ac_ct_DSYMUTIL"; then
  5990. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5991. else
  5992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5993. for as_dir in $PATH
  5994. do
  5995. IFS=$as_save_IFS
  5996. test -z "$as_dir" && as_dir=.
  5997. for ac_exec_ext in '' $ac_executable_extensions; do
  5998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5999. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6001. break 2
  6002. fi
  6003. done
  6004. done
  6005. IFS=$as_save_IFS
  6006. fi
  6007. fi
  6008. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6009. if test -n "$ac_ct_DSYMUTIL"; then
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6011. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6012. else
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6014. $as_echo "no" >&6; }
  6015. fi
  6016. if test "x$ac_ct_DSYMUTIL" = x; then
  6017. DSYMUTIL=":"
  6018. else
  6019. case $cross_compiling:$ac_tool_warned in
  6020. yes:)
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6023. ac_tool_warned=yes ;;
  6024. esac
  6025. DSYMUTIL=$ac_ct_DSYMUTIL
  6026. fi
  6027. else
  6028. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6029. fi
  6030. if test -n "$ac_tool_prefix"; then
  6031. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6032. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6034. $as_echo_n "checking for $ac_word... " >&6; }
  6035. if ${ac_cv_prog_NMEDIT+:} false; then :
  6036. $as_echo_n "(cached) " >&6
  6037. else
  6038. if test -n "$NMEDIT"; then
  6039. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6040. else
  6041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6042. for as_dir in $PATH
  6043. do
  6044. IFS=$as_save_IFS
  6045. test -z "$as_dir" && as_dir=.
  6046. for ac_exec_ext in '' $ac_executable_extensions; do
  6047. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6048. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6050. break 2
  6051. fi
  6052. done
  6053. done
  6054. IFS=$as_save_IFS
  6055. fi
  6056. fi
  6057. NMEDIT=$ac_cv_prog_NMEDIT
  6058. if test -n "$NMEDIT"; then
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6060. $as_echo "$NMEDIT" >&6; }
  6061. else
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6063. $as_echo "no" >&6; }
  6064. fi
  6065. fi
  6066. if test -z "$ac_cv_prog_NMEDIT"; then
  6067. ac_ct_NMEDIT=$NMEDIT
  6068. # Extract the first word of "nmedit", so it can be a program name with args.
  6069. set dummy nmedit; ac_word=$2
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6071. $as_echo_n "checking for $ac_word... " >&6; }
  6072. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6073. $as_echo_n "(cached) " >&6
  6074. else
  6075. if test -n "$ac_ct_NMEDIT"; then
  6076. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6077. else
  6078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6079. for as_dir in $PATH
  6080. do
  6081. IFS=$as_save_IFS
  6082. test -z "$as_dir" && as_dir=.
  6083. for ac_exec_ext in '' $ac_executable_extensions; do
  6084. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6085. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6087. break 2
  6088. fi
  6089. done
  6090. done
  6091. IFS=$as_save_IFS
  6092. fi
  6093. fi
  6094. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6095. if test -n "$ac_ct_NMEDIT"; then
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6097. $as_echo "$ac_ct_NMEDIT" >&6; }
  6098. else
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6100. $as_echo "no" >&6; }
  6101. fi
  6102. if test "x$ac_ct_NMEDIT" = x; then
  6103. NMEDIT=":"
  6104. else
  6105. case $cross_compiling:$ac_tool_warned in
  6106. yes:)
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6109. ac_tool_warned=yes ;;
  6110. esac
  6111. NMEDIT=$ac_ct_NMEDIT
  6112. fi
  6113. else
  6114. NMEDIT="$ac_cv_prog_NMEDIT"
  6115. fi
  6116. if test -n "$ac_tool_prefix"; then
  6117. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6118. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6120. $as_echo_n "checking for $ac_word... " >&6; }
  6121. if ${ac_cv_prog_LIPO+:} false; then :
  6122. $as_echo_n "(cached) " >&6
  6123. else
  6124. if test -n "$LIPO"; then
  6125. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6126. else
  6127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6128. for as_dir in $PATH
  6129. do
  6130. IFS=$as_save_IFS
  6131. test -z "$as_dir" && as_dir=.
  6132. for ac_exec_ext in '' $ac_executable_extensions; do
  6133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6134. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6136. break 2
  6137. fi
  6138. done
  6139. done
  6140. IFS=$as_save_IFS
  6141. fi
  6142. fi
  6143. LIPO=$ac_cv_prog_LIPO
  6144. if test -n "$LIPO"; then
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6146. $as_echo "$LIPO" >&6; }
  6147. else
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6149. $as_echo "no" >&6; }
  6150. fi
  6151. fi
  6152. if test -z "$ac_cv_prog_LIPO"; then
  6153. ac_ct_LIPO=$LIPO
  6154. # Extract the first word of "lipo", so it can be a program name with args.
  6155. set dummy lipo; ac_word=$2
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6157. $as_echo_n "checking for $ac_word... " >&6; }
  6158. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6159. $as_echo_n "(cached) " >&6
  6160. else
  6161. if test -n "$ac_ct_LIPO"; then
  6162. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6163. else
  6164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6165. for as_dir in $PATH
  6166. do
  6167. IFS=$as_save_IFS
  6168. test -z "$as_dir" && as_dir=.
  6169. for ac_exec_ext in '' $ac_executable_extensions; do
  6170. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6171. ac_cv_prog_ac_ct_LIPO="lipo"
  6172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6173. break 2
  6174. fi
  6175. done
  6176. done
  6177. IFS=$as_save_IFS
  6178. fi
  6179. fi
  6180. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6181. if test -n "$ac_ct_LIPO"; then
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6183. $as_echo "$ac_ct_LIPO" >&6; }
  6184. else
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6186. $as_echo "no" >&6; }
  6187. fi
  6188. if test "x$ac_ct_LIPO" = x; then
  6189. LIPO=":"
  6190. else
  6191. case $cross_compiling:$ac_tool_warned in
  6192. yes:)
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6195. ac_tool_warned=yes ;;
  6196. esac
  6197. LIPO=$ac_ct_LIPO
  6198. fi
  6199. else
  6200. LIPO="$ac_cv_prog_LIPO"
  6201. fi
  6202. if test -n "$ac_tool_prefix"; then
  6203. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6204. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6206. $as_echo_n "checking for $ac_word... " >&6; }
  6207. if ${ac_cv_prog_OTOOL+:} false; then :
  6208. $as_echo_n "(cached) " >&6
  6209. else
  6210. if test -n "$OTOOL"; then
  6211. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6212. else
  6213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6214. for as_dir in $PATH
  6215. do
  6216. IFS=$as_save_IFS
  6217. test -z "$as_dir" && as_dir=.
  6218. for ac_exec_ext in '' $ac_executable_extensions; do
  6219. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6220. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6222. break 2
  6223. fi
  6224. done
  6225. done
  6226. IFS=$as_save_IFS
  6227. fi
  6228. fi
  6229. OTOOL=$ac_cv_prog_OTOOL
  6230. if test -n "$OTOOL"; then
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6232. $as_echo "$OTOOL" >&6; }
  6233. else
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6235. $as_echo "no" >&6; }
  6236. fi
  6237. fi
  6238. if test -z "$ac_cv_prog_OTOOL"; then
  6239. ac_ct_OTOOL=$OTOOL
  6240. # Extract the first word of "otool", so it can be a program name with args.
  6241. set dummy otool; ac_word=$2
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6243. $as_echo_n "checking for $ac_word... " >&6; }
  6244. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6245. $as_echo_n "(cached) " >&6
  6246. else
  6247. if test -n "$ac_ct_OTOOL"; then
  6248. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6249. else
  6250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6251. for as_dir in $PATH
  6252. do
  6253. IFS=$as_save_IFS
  6254. test -z "$as_dir" && as_dir=.
  6255. for ac_exec_ext in '' $ac_executable_extensions; do
  6256. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6257. ac_cv_prog_ac_ct_OTOOL="otool"
  6258. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6259. break 2
  6260. fi
  6261. done
  6262. done
  6263. IFS=$as_save_IFS
  6264. fi
  6265. fi
  6266. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6267. if test -n "$ac_ct_OTOOL"; then
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6269. $as_echo "$ac_ct_OTOOL" >&6; }
  6270. else
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6272. $as_echo "no" >&6; }
  6273. fi
  6274. if test "x$ac_ct_OTOOL" = x; then
  6275. OTOOL=":"
  6276. else
  6277. case $cross_compiling:$ac_tool_warned in
  6278. yes:)
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6280. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6281. ac_tool_warned=yes ;;
  6282. esac
  6283. OTOOL=$ac_ct_OTOOL
  6284. fi
  6285. else
  6286. OTOOL="$ac_cv_prog_OTOOL"
  6287. fi
  6288. if test -n "$ac_tool_prefix"; then
  6289. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6290. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6292. $as_echo_n "checking for $ac_word... " >&6; }
  6293. if ${ac_cv_prog_OTOOL64+:} false; then :
  6294. $as_echo_n "(cached) " >&6
  6295. else
  6296. if test -n "$OTOOL64"; then
  6297. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6298. else
  6299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6300. for as_dir in $PATH
  6301. do
  6302. IFS=$as_save_IFS
  6303. test -z "$as_dir" && as_dir=.
  6304. for ac_exec_ext in '' $ac_executable_extensions; do
  6305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6306. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6308. break 2
  6309. fi
  6310. done
  6311. done
  6312. IFS=$as_save_IFS
  6313. fi
  6314. fi
  6315. OTOOL64=$ac_cv_prog_OTOOL64
  6316. if test -n "$OTOOL64"; then
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6318. $as_echo "$OTOOL64" >&6; }
  6319. else
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6321. $as_echo "no" >&6; }
  6322. fi
  6323. fi
  6324. if test -z "$ac_cv_prog_OTOOL64"; then
  6325. ac_ct_OTOOL64=$OTOOL64
  6326. # Extract the first word of "otool64", so it can be a program name with args.
  6327. set dummy otool64; ac_word=$2
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6329. $as_echo_n "checking for $ac_word... " >&6; }
  6330. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6331. $as_echo_n "(cached) " >&6
  6332. else
  6333. if test -n "$ac_ct_OTOOL64"; then
  6334. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6335. else
  6336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6337. for as_dir in $PATH
  6338. do
  6339. IFS=$as_save_IFS
  6340. test -z "$as_dir" && as_dir=.
  6341. for ac_exec_ext in '' $ac_executable_extensions; do
  6342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6343. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6345. break 2
  6346. fi
  6347. done
  6348. done
  6349. IFS=$as_save_IFS
  6350. fi
  6351. fi
  6352. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6353. if test -n "$ac_ct_OTOOL64"; then
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6355. $as_echo "$ac_ct_OTOOL64" >&6; }
  6356. else
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6358. $as_echo "no" >&6; }
  6359. fi
  6360. if test "x$ac_ct_OTOOL64" = x; then
  6361. OTOOL64=":"
  6362. else
  6363. case $cross_compiling:$ac_tool_warned in
  6364. yes:)
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6367. ac_tool_warned=yes ;;
  6368. esac
  6369. OTOOL64=$ac_ct_OTOOL64
  6370. fi
  6371. else
  6372. OTOOL64="$ac_cv_prog_OTOOL64"
  6373. fi
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6375. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6376. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6377. $as_echo_n "(cached) " >&6
  6378. else
  6379. lt_cv_apple_cc_single_mod=no
  6380. if test -z "${LT_MULTI_MODULE}"; then
  6381. # By default we will add the -single_module flag. You can override
  6382. # by either setting the environment variable LT_MULTI_MODULE
  6383. # non-empty at configure time, or by adding -multi_module to the
  6384. # link flags.
  6385. rm -rf libconftest.dylib*
  6386. echo "int foo(void){return 1;}" > conftest.c
  6387. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6388. -dynamiclib -Wl,-single_module conftest.c" >&5
  6389. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6390. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6391. _lt_result=$?
  6392. # If there is a non-empty error log, and "single_module"
  6393. # appears in it, assume the flag caused a linker warning
  6394. if test -s conftest.err && $GREP single_module conftest.err; then
  6395. cat conftest.err >&5
  6396. # Otherwise, if the output was created with a 0 exit code from
  6397. # the compiler, it worked.
  6398. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6399. lt_cv_apple_cc_single_mod=yes
  6400. else
  6401. cat conftest.err >&5
  6402. fi
  6403. rm -rf libconftest.dylib*
  6404. rm -f conftest.*
  6405. fi
  6406. fi
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6408. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6410. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6411. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6412. $as_echo_n "(cached) " >&6
  6413. else
  6414. lt_cv_ld_exported_symbols_list=no
  6415. save_LDFLAGS=$LDFLAGS
  6416. echo "_main" > conftest.sym
  6417. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6419. /* end confdefs.h. */
  6420. int
  6421. main ()
  6422. {
  6423. ;
  6424. return 0;
  6425. }
  6426. _ACEOF
  6427. if ac_fn_c_try_link "$LINENO"; then :
  6428. lt_cv_ld_exported_symbols_list=yes
  6429. else
  6430. lt_cv_ld_exported_symbols_list=no
  6431. fi
  6432. rm -f core conftest.err conftest.$ac_objext \
  6433. conftest$ac_exeext conftest.$ac_ext
  6434. LDFLAGS="$save_LDFLAGS"
  6435. fi
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6437. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6439. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6440. if ${lt_cv_ld_force_load+:} false; then :
  6441. $as_echo_n "(cached) " >&6
  6442. else
  6443. lt_cv_ld_force_load=no
  6444. cat > conftest.c << _LT_EOF
  6445. int forced_loaded() { return 2;}
  6446. _LT_EOF
  6447. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6448. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6449. echo "$AR cru libconftest.a conftest.o" >&5
  6450. $AR cru libconftest.a conftest.o 2>&5
  6451. echo "$RANLIB libconftest.a" >&5
  6452. $RANLIB libconftest.a 2>&5
  6453. cat > conftest.c << _LT_EOF
  6454. int main() { return 0;}
  6455. _LT_EOF
  6456. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6457. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6458. _lt_result=$?
  6459. if test -s conftest.err && $GREP force_load conftest.err; then
  6460. cat conftest.err >&5
  6461. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6462. lt_cv_ld_force_load=yes
  6463. else
  6464. cat conftest.err >&5
  6465. fi
  6466. rm -f conftest.err libconftest.a conftest conftest.c
  6467. rm -rf conftest.dSYM
  6468. fi
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6470. $as_echo "$lt_cv_ld_force_load" >&6; }
  6471. case $host_os in
  6472. rhapsody* | darwin1.[012])
  6473. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6474. darwin1.*)
  6475. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6476. darwin*) # darwin 5.x on
  6477. # if running on 10.5 or later, the deployment target defaults
  6478. # to the OS version, if on x86, and 10.4, the deployment
  6479. # target defaults to 10.4. Don't you love it?
  6480. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6481. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6482. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6483. 10.[012]*)
  6484. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6485. 10.*)
  6486. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6487. esac
  6488. ;;
  6489. esac
  6490. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6491. _lt_dar_single_mod='$single_module'
  6492. fi
  6493. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6494. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6495. else
  6496. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6497. fi
  6498. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6499. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6500. else
  6501. _lt_dsymutil=
  6502. fi
  6503. ;;
  6504. esac
  6505. ac_ext=c
  6506. ac_cpp='$CPP $CPPFLAGS'
  6507. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6508. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6509. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6511. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6512. # On Suns, sometimes $CPP names a directory.
  6513. if test -n "$CPP" && test -d "$CPP"; then
  6514. CPP=
  6515. fi
  6516. if test -z "$CPP"; then
  6517. if ${ac_cv_prog_CPP+:} false; then :
  6518. $as_echo_n "(cached) " >&6
  6519. else
  6520. # Double quotes because CPP needs to be expanded
  6521. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6522. do
  6523. ac_preproc_ok=false
  6524. for ac_c_preproc_warn_flag in '' yes
  6525. do
  6526. # Use a header file that comes with gcc, so configuring glibc
  6527. # with a fresh cross-compiler works.
  6528. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6529. # <limits.h> exists even on freestanding compilers.
  6530. # On the NeXT, cc -E runs the code through the compiler's parser,
  6531. # not just through cpp. "Syntax error" is here to catch this case.
  6532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6533. /* end confdefs.h. */
  6534. #ifdef __STDC__
  6535. # include <limits.h>
  6536. #else
  6537. # include <assert.h>
  6538. #endif
  6539. Syntax error
  6540. _ACEOF
  6541. if ac_fn_c_try_cpp "$LINENO"; then :
  6542. else
  6543. # Broken: fails on valid input.
  6544. continue
  6545. fi
  6546. rm -f conftest.err conftest.i conftest.$ac_ext
  6547. # OK, works on sane cases. Now check whether nonexistent headers
  6548. # can be detected and how.
  6549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6550. /* end confdefs.h. */
  6551. #include <ac_nonexistent.h>
  6552. _ACEOF
  6553. if ac_fn_c_try_cpp "$LINENO"; then :
  6554. # Broken: success on invalid input.
  6555. continue
  6556. else
  6557. # Passes both tests.
  6558. ac_preproc_ok=:
  6559. break
  6560. fi
  6561. rm -f conftest.err conftest.i conftest.$ac_ext
  6562. done
  6563. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6564. rm -f conftest.i conftest.err conftest.$ac_ext
  6565. if $ac_preproc_ok; then :
  6566. break
  6567. fi
  6568. done
  6569. ac_cv_prog_CPP=$CPP
  6570. fi
  6571. CPP=$ac_cv_prog_CPP
  6572. else
  6573. ac_cv_prog_CPP=$CPP
  6574. fi
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6576. $as_echo "$CPP" >&6; }
  6577. ac_preproc_ok=false
  6578. for ac_c_preproc_warn_flag in '' yes
  6579. do
  6580. # Use a header file that comes with gcc, so configuring glibc
  6581. # with a fresh cross-compiler works.
  6582. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6583. # <limits.h> exists even on freestanding compilers.
  6584. # On the NeXT, cc -E runs the code through the compiler's parser,
  6585. # not just through cpp. "Syntax error" is here to catch this case.
  6586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6587. /* end confdefs.h. */
  6588. #ifdef __STDC__
  6589. # include <limits.h>
  6590. #else
  6591. # include <assert.h>
  6592. #endif
  6593. Syntax error
  6594. _ACEOF
  6595. if ac_fn_c_try_cpp "$LINENO"; then :
  6596. else
  6597. # Broken: fails on valid input.
  6598. continue
  6599. fi
  6600. rm -f conftest.err conftest.i conftest.$ac_ext
  6601. # OK, works on sane cases. Now check whether nonexistent headers
  6602. # can be detected and how.
  6603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6604. /* end confdefs.h. */
  6605. #include <ac_nonexistent.h>
  6606. _ACEOF
  6607. if ac_fn_c_try_cpp "$LINENO"; then :
  6608. # Broken: success on invalid input.
  6609. continue
  6610. else
  6611. # Passes both tests.
  6612. ac_preproc_ok=:
  6613. break
  6614. fi
  6615. rm -f conftest.err conftest.i conftest.$ac_ext
  6616. done
  6617. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6618. rm -f conftest.i conftest.err conftest.$ac_ext
  6619. if $ac_preproc_ok; then :
  6620. else
  6621. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6622. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6623. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6624. See \`config.log' for more details" "$LINENO" 5; }
  6625. fi
  6626. ac_ext=c
  6627. ac_cpp='$CPP $CPPFLAGS'
  6628. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6629. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6630. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6632. $as_echo_n "checking for ANSI C header files... " >&6; }
  6633. if ${ac_cv_header_stdc+:} false; then :
  6634. $as_echo_n "(cached) " >&6
  6635. else
  6636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6637. /* end confdefs.h. */
  6638. #include <stdlib.h>
  6639. #include <stdarg.h>
  6640. #include <string.h>
  6641. #include <float.h>
  6642. int
  6643. main ()
  6644. {
  6645. ;
  6646. return 0;
  6647. }
  6648. _ACEOF
  6649. if ac_fn_c_try_compile "$LINENO"; then :
  6650. ac_cv_header_stdc=yes
  6651. else
  6652. ac_cv_header_stdc=no
  6653. fi
  6654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6655. if test $ac_cv_header_stdc = yes; then
  6656. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6658. /* end confdefs.h. */
  6659. #include <string.h>
  6660. _ACEOF
  6661. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6662. $EGREP "memchr" >/dev/null 2>&1; then :
  6663. else
  6664. ac_cv_header_stdc=no
  6665. fi
  6666. rm -f conftest*
  6667. fi
  6668. if test $ac_cv_header_stdc = yes; then
  6669. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6671. /* end confdefs.h. */
  6672. #include <stdlib.h>
  6673. _ACEOF
  6674. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6675. $EGREP "free" >/dev/null 2>&1; then :
  6676. else
  6677. ac_cv_header_stdc=no
  6678. fi
  6679. rm -f conftest*
  6680. fi
  6681. if test $ac_cv_header_stdc = yes; then
  6682. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6683. if test "$cross_compiling" = yes; then :
  6684. :
  6685. else
  6686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6687. /* end confdefs.h. */
  6688. #include <ctype.h>
  6689. #include <stdlib.h>
  6690. #if ((' ' & 0x0FF) == 0x020)
  6691. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6692. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6693. #else
  6694. # define ISLOWER(c) \
  6695. (('a' <= (c) && (c) <= 'i') \
  6696. || ('j' <= (c) && (c) <= 'r') \
  6697. || ('s' <= (c) && (c) <= 'z'))
  6698. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6699. #endif
  6700. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6701. int
  6702. main ()
  6703. {
  6704. int i;
  6705. for (i = 0; i < 256; i++)
  6706. if (XOR (islower (i), ISLOWER (i))
  6707. || toupper (i) != TOUPPER (i))
  6708. return 2;
  6709. return 0;
  6710. }
  6711. _ACEOF
  6712. if ac_fn_c_try_run "$LINENO"; then :
  6713. else
  6714. ac_cv_header_stdc=no
  6715. fi
  6716. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6717. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6718. fi
  6719. fi
  6720. fi
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6722. $as_echo "$ac_cv_header_stdc" >&6; }
  6723. if test $ac_cv_header_stdc = yes; then
  6724. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6725. fi
  6726. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6727. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6728. inttypes.h stdint.h unistd.h
  6729. do :
  6730. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6731. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6732. "
  6733. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6734. cat >>confdefs.h <<_ACEOF
  6735. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6736. _ACEOF
  6737. fi
  6738. done
  6739. for ac_header in dlfcn.h
  6740. do :
  6741. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6742. "
  6743. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6744. cat >>confdefs.h <<_ACEOF
  6745. #define HAVE_DLFCN_H 1
  6746. _ACEOF
  6747. fi
  6748. done
  6749. # Set options
  6750. enable_dlopen=no
  6751. enable_win32_dll=no
  6752. # Check whether --enable-shared was given.
  6753. if test "${enable_shared+set}" = set; then :
  6754. enableval=$enable_shared; p=${PACKAGE-default}
  6755. case $enableval in
  6756. yes) enable_shared=yes ;;
  6757. no) enable_shared=no ;;
  6758. *)
  6759. enable_shared=no
  6760. # Look at the argument we got. We use all the common list separators.
  6761. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6762. for pkg in $enableval; do
  6763. IFS="$lt_save_ifs"
  6764. if test "X$pkg" = "X$p"; then
  6765. enable_shared=yes
  6766. fi
  6767. done
  6768. IFS="$lt_save_ifs"
  6769. ;;
  6770. esac
  6771. else
  6772. enable_shared=yes
  6773. fi
  6774. # Check whether --enable-static was given.
  6775. if test "${enable_static+set}" = set; then :
  6776. enableval=$enable_static; p=${PACKAGE-default}
  6777. case $enableval in
  6778. yes) enable_static=yes ;;
  6779. no) enable_static=no ;;
  6780. *)
  6781. enable_static=no
  6782. # Look at the argument we got. We use all the common list separators.
  6783. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6784. for pkg in $enableval; do
  6785. IFS="$lt_save_ifs"
  6786. if test "X$pkg" = "X$p"; then
  6787. enable_static=yes
  6788. fi
  6789. done
  6790. IFS="$lt_save_ifs"
  6791. ;;
  6792. esac
  6793. else
  6794. enable_static=yes
  6795. fi
  6796. # Check whether --with-pic was given.
  6797. if test "${with_pic+set}" = set; then :
  6798. withval=$with_pic; lt_p=${PACKAGE-default}
  6799. case $withval in
  6800. yes|no) pic_mode=$withval ;;
  6801. *)
  6802. pic_mode=default
  6803. # Look at the argument we got. We use all the common list separators.
  6804. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6805. for lt_pkg in $withval; do
  6806. IFS="$lt_save_ifs"
  6807. if test "X$lt_pkg" = "X$lt_p"; then
  6808. pic_mode=yes
  6809. fi
  6810. done
  6811. IFS="$lt_save_ifs"
  6812. ;;
  6813. esac
  6814. else
  6815. pic_mode=default
  6816. fi
  6817. test -z "$pic_mode" && pic_mode=default
  6818. # Check whether --enable-fast-install was given.
  6819. if test "${enable_fast_install+set}" = set; then :
  6820. enableval=$enable_fast_install; p=${PACKAGE-default}
  6821. case $enableval in
  6822. yes) enable_fast_install=yes ;;
  6823. no) enable_fast_install=no ;;
  6824. *)
  6825. enable_fast_install=no
  6826. # Look at the argument we got. We use all the common list separators.
  6827. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6828. for pkg in $enableval; do
  6829. IFS="$lt_save_ifs"
  6830. if test "X$pkg" = "X$p"; then
  6831. enable_fast_install=yes
  6832. fi
  6833. done
  6834. IFS="$lt_save_ifs"
  6835. ;;
  6836. esac
  6837. else
  6838. enable_fast_install=yes
  6839. fi
  6840. # This can be used to rebuild libtool when needed
  6841. LIBTOOL_DEPS="$ltmain"
  6842. # Always use our own libtool.
  6843. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6844. test -z "$LN_S" && LN_S="ln -s"
  6845. if test -n "${ZSH_VERSION+set}" ; then
  6846. setopt NO_GLOB_SUBST
  6847. fi
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6849. $as_echo_n "checking for objdir... " >&6; }
  6850. if ${lt_cv_objdir+:} false; then :
  6851. $as_echo_n "(cached) " >&6
  6852. else
  6853. rm -f .libs 2>/dev/null
  6854. mkdir .libs 2>/dev/null
  6855. if test -d .libs; then
  6856. lt_cv_objdir=.libs
  6857. else
  6858. # MS-DOS does not allow filenames that begin with a dot.
  6859. lt_cv_objdir=_libs
  6860. fi
  6861. rmdir .libs 2>/dev/null
  6862. fi
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6864. $as_echo "$lt_cv_objdir" >&6; }
  6865. objdir=$lt_cv_objdir
  6866. cat >>confdefs.h <<_ACEOF
  6867. #define LT_OBJDIR "$lt_cv_objdir/"
  6868. _ACEOF
  6869. case $host_os in
  6870. aix3*)
  6871. # AIX sometimes has problems with the GCC collect2 program. For some
  6872. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6873. # vanish in a puff of smoke.
  6874. if test "X${COLLECT_NAMES+set}" != Xset; then
  6875. COLLECT_NAMES=
  6876. export COLLECT_NAMES
  6877. fi
  6878. ;;
  6879. esac
  6880. # Global variables:
  6881. ofile=libtool
  6882. can_build_shared=yes
  6883. # All known linkers require a `.a' archive for static linking (except MSVC,
  6884. # which needs '.lib').
  6885. libext=a
  6886. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6887. old_CC="$CC"
  6888. old_CFLAGS="$CFLAGS"
  6889. # Set sane defaults for various variables
  6890. test -z "$CC" && CC=cc
  6891. test -z "$LTCC" && LTCC=$CC
  6892. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6893. test -z "$LD" && LD=ld
  6894. test -z "$ac_objext" && ac_objext=o
  6895. for cc_temp in $compiler""; do
  6896. case $cc_temp in
  6897. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6898. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6899. \-*) ;;
  6900. *) break;;
  6901. esac
  6902. done
  6903. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6904. # Only perform the check for file, if the check method requires it
  6905. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6906. case $deplibs_check_method in
  6907. file_magic*)
  6908. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6910. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6911. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6912. $as_echo_n "(cached) " >&6
  6913. else
  6914. case $MAGIC_CMD in
  6915. [\\/*] | ?:[\\/]*)
  6916. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6917. ;;
  6918. *)
  6919. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6920. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6921. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6922. for ac_dir in $ac_dummy; do
  6923. IFS="$lt_save_ifs"
  6924. test -z "$ac_dir" && ac_dir=.
  6925. if test -f $ac_dir/${ac_tool_prefix}file; then
  6926. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6927. if test -n "$file_magic_test_file"; then
  6928. case $deplibs_check_method in
  6929. "file_magic "*)
  6930. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6931. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6932. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6933. $EGREP "$file_magic_regex" > /dev/null; then
  6934. :
  6935. else
  6936. cat <<_LT_EOF 1>&2
  6937. *** Warning: the command libtool uses to detect shared libraries,
  6938. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6939. *** The result is that libtool may fail to recognize shared libraries
  6940. *** as such. This will affect the creation of libtool libraries that
  6941. *** depend on shared libraries, but programs linked with such libtool
  6942. *** libraries will work regardless of this problem. Nevertheless, you
  6943. *** may want to report the problem to your system manager and/or to
  6944. *** bug-libtool@gnu.org
  6945. _LT_EOF
  6946. fi ;;
  6947. esac
  6948. fi
  6949. break
  6950. fi
  6951. done
  6952. IFS="$lt_save_ifs"
  6953. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6954. ;;
  6955. esac
  6956. fi
  6957. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6958. if test -n "$MAGIC_CMD"; then
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6960. $as_echo "$MAGIC_CMD" >&6; }
  6961. else
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6963. $as_echo "no" >&6; }
  6964. fi
  6965. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6966. if test -n "$ac_tool_prefix"; then
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6968. $as_echo_n "checking for file... " >&6; }
  6969. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6970. $as_echo_n "(cached) " >&6
  6971. else
  6972. case $MAGIC_CMD in
  6973. [\\/*] | ?:[\\/]*)
  6974. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6975. ;;
  6976. *)
  6977. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6978. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6979. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6980. for ac_dir in $ac_dummy; do
  6981. IFS="$lt_save_ifs"
  6982. test -z "$ac_dir" && ac_dir=.
  6983. if test -f $ac_dir/file; then
  6984. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6985. if test -n "$file_magic_test_file"; then
  6986. case $deplibs_check_method in
  6987. "file_magic "*)
  6988. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6989. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6990. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6991. $EGREP "$file_magic_regex" > /dev/null; then
  6992. :
  6993. else
  6994. cat <<_LT_EOF 1>&2
  6995. *** Warning: the command libtool uses to detect shared libraries,
  6996. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6997. *** The result is that libtool may fail to recognize shared libraries
  6998. *** as such. This will affect the creation of libtool libraries that
  6999. *** depend on shared libraries, but programs linked with such libtool
  7000. *** libraries will work regardless of this problem. Nevertheless, you
  7001. *** may want to report the problem to your system manager and/or to
  7002. *** bug-libtool@gnu.org
  7003. _LT_EOF
  7004. fi ;;
  7005. esac
  7006. fi
  7007. break
  7008. fi
  7009. done
  7010. IFS="$lt_save_ifs"
  7011. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7012. ;;
  7013. esac
  7014. fi
  7015. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7016. if test -n "$MAGIC_CMD"; then
  7017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7018. $as_echo "$MAGIC_CMD" >&6; }
  7019. else
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7021. $as_echo "no" >&6; }
  7022. fi
  7023. else
  7024. MAGIC_CMD=:
  7025. fi
  7026. fi
  7027. fi
  7028. ;;
  7029. esac
  7030. # Use C for the default configuration in the libtool script
  7031. lt_save_CC="$CC"
  7032. ac_ext=c
  7033. ac_cpp='$CPP $CPPFLAGS'
  7034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7037. # Source file extension for C test sources.
  7038. ac_ext=c
  7039. # Object file extension for compiled C test sources.
  7040. objext=o
  7041. objext=$objext
  7042. # Code to be used in simple compile tests
  7043. lt_simple_compile_test_code="int some_variable = 0;"
  7044. # Code to be used in simple link tests
  7045. lt_simple_link_test_code='int main(){return(0);}'
  7046. # If no C compiler was specified, use CC.
  7047. LTCC=${LTCC-"$CC"}
  7048. # If no C compiler flags were specified, use CFLAGS.
  7049. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7050. # Allow CC to be a program name with arguments.
  7051. compiler=$CC
  7052. # Save the default compiler, since it gets overwritten when the other
  7053. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7054. compiler_DEFAULT=$CC
  7055. # save warnings/boilerplate of simple test code
  7056. ac_outfile=conftest.$ac_objext
  7057. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7058. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7059. _lt_compiler_boilerplate=`cat conftest.err`
  7060. $RM conftest*
  7061. ac_outfile=conftest.$ac_objext
  7062. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7063. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7064. _lt_linker_boilerplate=`cat conftest.err`
  7065. $RM -r conftest*
  7066. ## CAVEAT EMPTOR:
  7067. ## There is no encapsulation within the following macros, do not change
  7068. ## the running order or otherwise move them around unless you know exactly
  7069. ## what you are doing...
  7070. if test -n "$compiler"; then
  7071. lt_prog_compiler_no_builtin_flag=
  7072. if test "$GCC" = yes; then
  7073. case $cc_basename in
  7074. nvcc*)
  7075. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7076. *)
  7077. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7078. esac
  7079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7080. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7081. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7082. $as_echo_n "(cached) " >&6
  7083. else
  7084. lt_cv_prog_compiler_rtti_exceptions=no
  7085. ac_outfile=conftest.$ac_objext
  7086. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7087. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7088. # Insert the option either (1) after the last *FLAGS variable, or
  7089. # (2) before a word containing "conftest.", or (3) at the end.
  7090. # Note that $ac_compile itself does not contain backslashes and begins
  7091. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7092. # The option is referenced via a variable to avoid confusing sed.
  7093. lt_compile=`echo "$ac_compile" | $SED \
  7094. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7095. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7096. -e 's:$: $lt_compiler_flag:'`
  7097. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7098. (eval "$lt_compile" 2>conftest.err)
  7099. ac_status=$?
  7100. cat conftest.err >&5
  7101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7102. if (exit $ac_status) && test -s "$ac_outfile"; then
  7103. # The compiler can only warn and ignore the option if not recognized
  7104. # So say no if there are warnings other than the usual output.
  7105. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7106. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7107. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7108. lt_cv_prog_compiler_rtti_exceptions=yes
  7109. fi
  7110. fi
  7111. $RM conftest*
  7112. fi
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7114. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7115. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7116. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7117. else
  7118. :
  7119. fi
  7120. fi
  7121. lt_prog_compiler_wl=
  7122. lt_prog_compiler_pic=
  7123. lt_prog_compiler_static=
  7124. if test "$GCC" = yes; then
  7125. lt_prog_compiler_wl='-Wl,'
  7126. lt_prog_compiler_static='-static'
  7127. case $host_os in
  7128. aix*)
  7129. # All AIX code is PIC.
  7130. if test "$host_cpu" = ia64; then
  7131. # AIX 5 now supports IA64 processor
  7132. lt_prog_compiler_static='-Bstatic'
  7133. fi
  7134. ;;
  7135. amigaos*)
  7136. case $host_cpu in
  7137. powerpc)
  7138. # see comment about AmigaOS4 .so support
  7139. lt_prog_compiler_pic='-fPIC'
  7140. ;;
  7141. m68k)
  7142. # FIXME: we need at least 68020 code to build shared libraries, but
  7143. # adding the `-m68020' flag to GCC prevents building anything better,
  7144. # like `-m68040'.
  7145. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7146. ;;
  7147. esac
  7148. ;;
  7149. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7150. # PIC is the default for these OSes.
  7151. ;;
  7152. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7153. # This hack is so that the source file can tell whether it is being
  7154. # built for inclusion in a dll (and should export symbols for example).
  7155. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7156. # (--disable-auto-import) libraries
  7157. lt_prog_compiler_pic='-DDLL_EXPORT'
  7158. ;;
  7159. darwin* | rhapsody*)
  7160. # PIC is the default on this platform
  7161. # Common symbols not allowed in MH_DYLIB files
  7162. lt_prog_compiler_pic='-fno-common'
  7163. ;;
  7164. haiku*)
  7165. # PIC is the default for Haiku.
  7166. # The "-static" flag exists, but is broken.
  7167. lt_prog_compiler_static=
  7168. ;;
  7169. hpux*)
  7170. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7171. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7172. # sets the default TLS model and affects inlining.
  7173. case $host_cpu in
  7174. hppa*64*)
  7175. # +Z the default
  7176. ;;
  7177. *)
  7178. lt_prog_compiler_pic='-fPIC'
  7179. ;;
  7180. esac
  7181. ;;
  7182. interix[3-9]*)
  7183. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7184. # Instead, we relocate shared libraries at runtime.
  7185. ;;
  7186. msdosdjgpp*)
  7187. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7188. # on systems that don't support them.
  7189. lt_prog_compiler_can_build_shared=no
  7190. enable_shared=no
  7191. ;;
  7192. *nto* | *qnx*)
  7193. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7194. # it will coredump.
  7195. lt_prog_compiler_pic='-fPIC -shared'
  7196. ;;
  7197. sysv4*MP*)
  7198. if test -d /usr/nec; then
  7199. lt_prog_compiler_pic=-Kconform_pic
  7200. fi
  7201. ;;
  7202. *)
  7203. lt_prog_compiler_pic='-fPIC'
  7204. ;;
  7205. esac
  7206. case $cc_basename in
  7207. nvcc*) # Cuda Compiler Driver 2.2
  7208. lt_prog_compiler_wl='-Xlinker '
  7209. if test -n "$lt_prog_compiler_pic"; then
  7210. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7211. fi
  7212. ;;
  7213. esac
  7214. else
  7215. # PORTME Check for flag to pass linker flags through the system compiler.
  7216. case $host_os in
  7217. aix*)
  7218. lt_prog_compiler_wl='-Wl,'
  7219. if test "$host_cpu" = ia64; then
  7220. # AIX 5 now supports IA64 processor
  7221. lt_prog_compiler_static='-Bstatic'
  7222. else
  7223. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7224. fi
  7225. ;;
  7226. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7227. # This hack is so that the source file can tell whether it is being
  7228. # built for inclusion in a dll (and should export symbols for example).
  7229. lt_prog_compiler_pic='-DDLL_EXPORT'
  7230. ;;
  7231. hpux9* | hpux10* | hpux11*)
  7232. lt_prog_compiler_wl='-Wl,'
  7233. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7234. # not for PA HP-UX.
  7235. case $host_cpu in
  7236. hppa*64*|ia64*)
  7237. # +Z the default
  7238. ;;
  7239. *)
  7240. lt_prog_compiler_pic='+Z'
  7241. ;;
  7242. esac
  7243. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7244. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7245. ;;
  7246. irix5* | irix6* | nonstopux*)
  7247. lt_prog_compiler_wl='-Wl,'
  7248. # PIC (with -KPIC) is the default.
  7249. lt_prog_compiler_static='-non_shared'
  7250. ;;
  7251. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7252. case $cc_basename in
  7253. # old Intel for x86_64 which still supported -KPIC.
  7254. ecc*)
  7255. lt_prog_compiler_wl='-Wl,'
  7256. lt_prog_compiler_pic='-KPIC'
  7257. lt_prog_compiler_static='-static'
  7258. ;;
  7259. # icc used to be incompatible with GCC.
  7260. # ICC 10 doesn't accept -KPIC any more.
  7261. icc* | ifort*)
  7262. lt_prog_compiler_wl='-Wl,'
  7263. lt_prog_compiler_pic='-fPIC'
  7264. lt_prog_compiler_static='-static'
  7265. ;;
  7266. # Lahey Fortran 8.1.
  7267. lf95*)
  7268. lt_prog_compiler_wl='-Wl,'
  7269. lt_prog_compiler_pic='--shared'
  7270. lt_prog_compiler_static='--static'
  7271. ;;
  7272. nagfor*)
  7273. # NAG Fortran compiler
  7274. lt_prog_compiler_wl='-Wl,-Wl,,'
  7275. lt_prog_compiler_pic='-PIC'
  7276. lt_prog_compiler_static='-Bstatic'
  7277. ;;
  7278. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7279. # Portland Group compilers (*not* the Pentium gcc compiler,
  7280. # which looks to be a dead project)
  7281. lt_prog_compiler_wl='-Wl,'
  7282. lt_prog_compiler_pic='-fpic'
  7283. lt_prog_compiler_static='-Bstatic'
  7284. ;;
  7285. ccc*)
  7286. lt_prog_compiler_wl='-Wl,'
  7287. # All Alpha code is PIC.
  7288. lt_prog_compiler_static='-non_shared'
  7289. ;;
  7290. xl* | bgxl* | bgf* | mpixl*)
  7291. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7292. lt_prog_compiler_wl='-Wl,'
  7293. lt_prog_compiler_pic='-qpic'
  7294. lt_prog_compiler_static='-qstaticlink'
  7295. ;;
  7296. *)
  7297. case `$CC -V 2>&1 | sed 5q` in
  7298. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7299. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7300. lt_prog_compiler_pic='-KPIC'
  7301. lt_prog_compiler_static='-Bstatic'
  7302. lt_prog_compiler_wl=''
  7303. ;;
  7304. *Sun\ F* | *Sun*Fortran*)
  7305. lt_prog_compiler_pic='-KPIC'
  7306. lt_prog_compiler_static='-Bstatic'
  7307. lt_prog_compiler_wl='-Qoption ld '
  7308. ;;
  7309. *Sun\ C*)
  7310. # Sun C 5.9
  7311. lt_prog_compiler_pic='-KPIC'
  7312. lt_prog_compiler_static='-Bstatic'
  7313. lt_prog_compiler_wl='-Wl,'
  7314. ;;
  7315. *Intel*\ [CF]*Compiler*)
  7316. lt_prog_compiler_wl='-Wl,'
  7317. lt_prog_compiler_pic='-fPIC'
  7318. lt_prog_compiler_static='-static'
  7319. ;;
  7320. *Portland\ Group*)
  7321. lt_prog_compiler_wl='-Wl,'
  7322. lt_prog_compiler_pic='-fpic'
  7323. lt_prog_compiler_static='-Bstatic'
  7324. ;;
  7325. esac
  7326. ;;
  7327. esac
  7328. ;;
  7329. newsos6)
  7330. lt_prog_compiler_pic='-KPIC'
  7331. lt_prog_compiler_static='-Bstatic'
  7332. ;;
  7333. *nto* | *qnx*)
  7334. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7335. # it will coredump.
  7336. lt_prog_compiler_pic='-fPIC -shared'
  7337. ;;
  7338. osf3* | osf4* | osf5*)
  7339. lt_prog_compiler_wl='-Wl,'
  7340. # All OSF/1 code is PIC.
  7341. lt_prog_compiler_static='-non_shared'
  7342. ;;
  7343. rdos*)
  7344. lt_prog_compiler_static='-non_shared'
  7345. ;;
  7346. solaris*)
  7347. lt_prog_compiler_pic='-KPIC'
  7348. lt_prog_compiler_static='-Bstatic'
  7349. case $cc_basename in
  7350. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7351. lt_prog_compiler_wl='-Qoption ld ';;
  7352. *)
  7353. lt_prog_compiler_wl='-Wl,';;
  7354. esac
  7355. ;;
  7356. sunos4*)
  7357. lt_prog_compiler_wl='-Qoption ld '
  7358. lt_prog_compiler_pic='-PIC'
  7359. lt_prog_compiler_static='-Bstatic'
  7360. ;;
  7361. sysv4 | sysv4.2uw2* | sysv4.3*)
  7362. lt_prog_compiler_wl='-Wl,'
  7363. lt_prog_compiler_pic='-KPIC'
  7364. lt_prog_compiler_static='-Bstatic'
  7365. ;;
  7366. sysv4*MP*)
  7367. if test -d /usr/nec ;then
  7368. lt_prog_compiler_pic='-Kconform_pic'
  7369. lt_prog_compiler_static='-Bstatic'
  7370. fi
  7371. ;;
  7372. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7373. lt_prog_compiler_wl='-Wl,'
  7374. lt_prog_compiler_pic='-KPIC'
  7375. lt_prog_compiler_static='-Bstatic'
  7376. ;;
  7377. unicos*)
  7378. lt_prog_compiler_wl='-Wl,'
  7379. lt_prog_compiler_can_build_shared=no
  7380. ;;
  7381. uts4*)
  7382. lt_prog_compiler_pic='-pic'
  7383. lt_prog_compiler_static='-Bstatic'
  7384. ;;
  7385. *)
  7386. lt_prog_compiler_can_build_shared=no
  7387. ;;
  7388. esac
  7389. fi
  7390. case $host_os in
  7391. # For platforms which do not support PIC, -DPIC is meaningless:
  7392. *djgpp*)
  7393. lt_prog_compiler_pic=
  7394. ;;
  7395. *)
  7396. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7397. ;;
  7398. esac
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7400. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7401. if ${lt_cv_prog_compiler_pic+:} false; then :
  7402. $as_echo_n "(cached) " >&6
  7403. else
  7404. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7405. fi
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7407. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7408. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7409. #
  7410. # Check to make sure the PIC flag actually works.
  7411. #
  7412. if test -n "$lt_prog_compiler_pic"; then
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7414. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7415. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7416. $as_echo_n "(cached) " >&6
  7417. else
  7418. lt_cv_prog_compiler_pic_works=no
  7419. ac_outfile=conftest.$ac_objext
  7420. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7421. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7422. # Insert the option either (1) after the last *FLAGS variable, or
  7423. # (2) before a word containing "conftest.", or (3) at the end.
  7424. # Note that $ac_compile itself does not contain backslashes and begins
  7425. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7426. # The option is referenced via a variable to avoid confusing sed.
  7427. lt_compile=`echo "$ac_compile" | $SED \
  7428. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7429. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7430. -e 's:$: $lt_compiler_flag:'`
  7431. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7432. (eval "$lt_compile" 2>conftest.err)
  7433. ac_status=$?
  7434. cat conftest.err >&5
  7435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7436. if (exit $ac_status) && test -s "$ac_outfile"; then
  7437. # The compiler can only warn and ignore the option if not recognized
  7438. # So say no if there are warnings other than the usual output.
  7439. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7440. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7441. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7442. lt_cv_prog_compiler_pic_works=yes
  7443. fi
  7444. fi
  7445. $RM conftest*
  7446. fi
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7448. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7449. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7450. case $lt_prog_compiler_pic in
  7451. "" | " "*) ;;
  7452. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7453. esac
  7454. else
  7455. lt_prog_compiler_pic=
  7456. lt_prog_compiler_can_build_shared=no
  7457. fi
  7458. fi
  7459. #
  7460. # Check to make sure the static flag actually works.
  7461. #
  7462. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7464. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7465. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7466. $as_echo_n "(cached) " >&6
  7467. else
  7468. lt_cv_prog_compiler_static_works=no
  7469. save_LDFLAGS="$LDFLAGS"
  7470. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7471. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7472. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7473. # The linker can only warn and ignore the option if not recognized
  7474. # So say no if there are warnings
  7475. if test -s conftest.err; then
  7476. # Append any errors to the config.log.
  7477. cat conftest.err 1>&5
  7478. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7479. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7480. if diff conftest.exp conftest.er2 >/dev/null; then
  7481. lt_cv_prog_compiler_static_works=yes
  7482. fi
  7483. else
  7484. lt_cv_prog_compiler_static_works=yes
  7485. fi
  7486. fi
  7487. $RM -r conftest*
  7488. LDFLAGS="$save_LDFLAGS"
  7489. fi
  7490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7491. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7492. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7493. :
  7494. else
  7495. lt_prog_compiler_static=
  7496. fi
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7498. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7499. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7500. $as_echo_n "(cached) " >&6
  7501. else
  7502. lt_cv_prog_compiler_c_o=no
  7503. $RM -r conftest 2>/dev/null
  7504. mkdir conftest
  7505. cd conftest
  7506. mkdir out
  7507. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7508. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7509. # Insert the option either (1) after the last *FLAGS variable, or
  7510. # (2) before a word containing "conftest.", or (3) at the end.
  7511. # Note that $ac_compile itself does not contain backslashes and begins
  7512. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7513. lt_compile=`echo "$ac_compile" | $SED \
  7514. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7515. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7516. -e 's:$: $lt_compiler_flag:'`
  7517. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7518. (eval "$lt_compile" 2>out/conftest.err)
  7519. ac_status=$?
  7520. cat out/conftest.err >&5
  7521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7522. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7523. then
  7524. # The compiler can only warn and ignore the option if not recognized
  7525. # So say no if there are warnings
  7526. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7527. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7528. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7529. lt_cv_prog_compiler_c_o=yes
  7530. fi
  7531. fi
  7532. chmod u+w . 2>&5
  7533. $RM conftest*
  7534. # SGI C++ compiler will create directory out/ii_files/ for
  7535. # template instantiation
  7536. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7537. $RM out/* && rmdir out
  7538. cd ..
  7539. $RM -r conftest
  7540. $RM conftest*
  7541. fi
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7543. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7545. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7546. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7547. $as_echo_n "(cached) " >&6
  7548. else
  7549. lt_cv_prog_compiler_c_o=no
  7550. $RM -r conftest 2>/dev/null
  7551. mkdir conftest
  7552. cd conftest
  7553. mkdir out
  7554. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7555. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7556. # Insert the option either (1) after the last *FLAGS variable, or
  7557. # (2) before a word containing "conftest.", or (3) at the end.
  7558. # Note that $ac_compile itself does not contain backslashes and begins
  7559. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7560. lt_compile=`echo "$ac_compile" | $SED \
  7561. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7562. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7563. -e 's:$: $lt_compiler_flag:'`
  7564. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7565. (eval "$lt_compile" 2>out/conftest.err)
  7566. ac_status=$?
  7567. cat out/conftest.err >&5
  7568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7569. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7570. then
  7571. # The compiler can only warn and ignore the option if not recognized
  7572. # So say no if there are warnings
  7573. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7574. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7575. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7576. lt_cv_prog_compiler_c_o=yes
  7577. fi
  7578. fi
  7579. chmod u+w . 2>&5
  7580. $RM conftest*
  7581. # SGI C++ compiler will create directory out/ii_files/ for
  7582. # template instantiation
  7583. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7584. $RM out/* && rmdir out
  7585. cd ..
  7586. $RM -r conftest
  7587. $RM conftest*
  7588. fi
  7589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7590. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7591. hard_links="nottested"
  7592. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7593. # do not overwrite the value of need_locks provided by the user
  7594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7595. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7596. hard_links=yes
  7597. $RM conftest*
  7598. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7599. touch conftest.a
  7600. ln conftest.a conftest.b 2>&5 || hard_links=no
  7601. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7603. $as_echo "$hard_links" >&6; }
  7604. if test "$hard_links" = no; then
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7606. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7607. need_locks=warn
  7608. fi
  7609. else
  7610. need_locks=no
  7611. fi
  7612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7613. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7614. runpath_var=
  7615. allow_undefined_flag=
  7616. always_export_symbols=no
  7617. archive_cmds=
  7618. archive_expsym_cmds=
  7619. compiler_needs_object=no
  7620. enable_shared_with_static_runtimes=no
  7621. export_dynamic_flag_spec=
  7622. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7623. hardcode_automatic=no
  7624. hardcode_direct=no
  7625. hardcode_direct_absolute=no
  7626. hardcode_libdir_flag_spec=
  7627. hardcode_libdir_separator=
  7628. hardcode_minus_L=no
  7629. hardcode_shlibpath_var=unsupported
  7630. inherit_rpath=no
  7631. link_all_deplibs=unknown
  7632. module_cmds=
  7633. module_expsym_cmds=
  7634. old_archive_from_new_cmds=
  7635. old_archive_from_expsyms_cmds=
  7636. thread_safe_flag_spec=
  7637. whole_archive_flag_spec=
  7638. # include_expsyms should be a list of space-separated symbols to be *always*
  7639. # included in the symbol list
  7640. include_expsyms=
  7641. # exclude_expsyms can be an extended regexp of symbols to exclude
  7642. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7643. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7644. # as well as any symbol that contains `d'.
  7645. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7646. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7647. # platforms (ab)use it in PIC code, but their linkers get confused if
  7648. # the symbol is explicitly referenced. Since portable code cannot
  7649. # rely on this symbol name, it's probably fine to never include it in
  7650. # preloaded symbol tables.
  7651. # Exclude shared library initialization/finalization symbols.
  7652. extract_expsyms_cmds=
  7653. case $host_os in
  7654. cygwin* | mingw* | pw32* | cegcc*)
  7655. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7656. # When not using gcc, we currently assume that we are using
  7657. # Microsoft Visual C++.
  7658. if test "$GCC" != yes; then
  7659. with_gnu_ld=no
  7660. fi
  7661. ;;
  7662. interix*)
  7663. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7664. with_gnu_ld=yes
  7665. ;;
  7666. openbsd*)
  7667. with_gnu_ld=no
  7668. ;;
  7669. linux* | k*bsd*-gnu | gnu*)
  7670. link_all_deplibs=no
  7671. ;;
  7672. esac
  7673. ld_shlibs=yes
  7674. # On some targets, GNU ld is compatible enough with the native linker
  7675. # that we're better off using the native interface for both.
  7676. lt_use_gnu_ld_interface=no
  7677. if test "$with_gnu_ld" = yes; then
  7678. case $host_os in
  7679. aix*)
  7680. # The AIX port of GNU ld has always aspired to compatibility
  7681. # with the native linker. However, as the warning in the GNU ld
  7682. # block says, versions before 2.19.5* couldn't really create working
  7683. # shared libraries, regardless of the interface used.
  7684. case `$LD -v 2>&1` in
  7685. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7686. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7687. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7688. *)
  7689. lt_use_gnu_ld_interface=yes
  7690. ;;
  7691. esac
  7692. ;;
  7693. *)
  7694. lt_use_gnu_ld_interface=yes
  7695. ;;
  7696. esac
  7697. fi
  7698. if test "$lt_use_gnu_ld_interface" = yes; then
  7699. # If archive_cmds runs LD, not CC, wlarc should be empty
  7700. wlarc='${wl}'
  7701. # Set some defaults for GNU ld with shared library support. These
  7702. # are reset later if shared libraries are not supported. Putting them
  7703. # here allows them to be overridden if necessary.
  7704. runpath_var=LD_RUN_PATH
  7705. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7706. export_dynamic_flag_spec='${wl}--export-dynamic'
  7707. # ancient GNU ld didn't support --whole-archive et. al.
  7708. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7709. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7710. else
  7711. whole_archive_flag_spec=
  7712. fi
  7713. supports_anon_versioning=no
  7714. case `$LD -v 2>&1` in
  7715. *GNU\ gold*) supports_anon_versioning=yes ;;
  7716. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7717. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7718. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7719. *\ 2.11.*) ;; # other 2.11 versions
  7720. *) supports_anon_versioning=yes ;;
  7721. esac
  7722. # See if GNU ld supports shared libraries.
  7723. case $host_os in
  7724. aix[3-9]*)
  7725. # On AIX/PPC, the GNU linker is very broken
  7726. if test "$host_cpu" != ia64; then
  7727. ld_shlibs=no
  7728. cat <<_LT_EOF 1>&2
  7729. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7730. *** to be unable to reliably create shared libraries on AIX.
  7731. *** Therefore, libtool is disabling shared libraries support. If you
  7732. *** really care for shared libraries, you may want to install binutils
  7733. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7734. *** You will then need to restart the configuration process.
  7735. _LT_EOF
  7736. fi
  7737. ;;
  7738. amigaos*)
  7739. case $host_cpu in
  7740. powerpc)
  7741. # see comment about AmigaOS4 .so support
  7742. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7743. archive_expsym_cmds=''
  7744. ;;
  7745. m68k)
  7746. 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)'
  7747. hardcode_libdir_flag_spec='-L$libdir'
  7748. hardcode_minus_L=yes
  7749. ;;
  7750. esac
  7751. ;;
  7752. beos*)
  7753. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7754. allow_undefined_flag=unsupported
  7755. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7756. # support --undefined. This deserves some investigation. FIXME
  7757. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7758. else
  7759. ld_shlibs=no
  7760. fi
  7761. ;;
  7762. cygwin* | mingw* | pw32* | cegcc*)
  7763. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7764. # as there is no search path for DLLs.
  7765. hardcode_libdir_flag_spec='-L$libdir'
  7766. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7767. allow_undefined_flag=unsupported
  7768. always_export_symbols=no
  7769. enable_shared_with_static_runtimes=yes
  7770. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7771. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7772. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7773. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7774. # If the export-symbols file already is a .def file (1st line
  7775. # is EXPORTS), use it as is; otherwise, prepend...
  7776. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7777. cp $export_symbols $output_objdir/$soname.def;
  7778. else
  7779. echo EXPORTS > $output_objdir/$soname.def;
  7780. cat $export_symbols >> $output_objdir/$soname.def;
  7781. fi~
  7782. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7783. else
  7784. ld_shlibs=no
  7785. fi
  7786. ;;
  7787. haiku*)
  7788. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7789. link_all_deplibs=yes
  7790. ;;
  7791. interix[3-9]*)
  7792. hardcode_direct=no
  7793. hardcode_shlibpath_var=no
  7794. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7795. export_dynamic_flag_spec='${wl}-E'
  7796. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7797. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7798. # default) and relocated if they conflict, which is a slow very memory
  7799. # consuming and fragmenting process. To avoid this, we pick a random,
  7800. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7801. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7802. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7803. 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'
  7804. ;;
  7805. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7806. tmp_diet=no
  7807. if test "$host_os" = linux-dietlibc; then
  7808. case $cc_basename in
  7809. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7810. esac
  7811. fi
  7812. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7813. && test "$tmp_diet" = no
  7814. then
  7815. tmp_addflag=' $pic_flag'
  7816. tmp_sharedflag='-shared'
  7817. case $cc_basename,$host_cpu in
  7818. pgcc*) # Portland Group C compiler
  7819. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7820. tmp_addflag=' $pic_flag'
  7821. ;;
  7822. pgf77* | pgf90* | pgf95* | pgfortran*)
  7823. # Portland Group f77 and f90 compilers
  7824. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7825. tmp_addflag=' $pic_flag -Mnomain' ;;
  7826. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7827. tmp_addflag=' -i_dynamic' ;;
  7828. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7829. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7830. ifc* | ifort*) # Intel Fortran compiler
  7831. tmp_addflag=' -nofor_main' ;;
  7832. lf95*) # Lahey Fortran 8.1
  7833. whole_archive_flag_spec=
  7834. tmp_sharedflag='--shared' ;;
  7835. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7836. tmp_sharedflag='-qmkshrobj'
  7837. tmp_addflag= ;;
  7838. nvcc*) # Cuda Compiler Driver 2.2
  7839. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7840. compiler_needs_object=yes
  7841. ;;
  7842. esac
  7843. case `$CC -V 2>&1 | sed 5q` in
  7844. *Sun\ C*) # Sun C 5.9
  7845. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7846. compiler_needs_object=yes
  7847. tmp_sharedflag='-G' ;;
  7848. *Sun\ F*) # Sun Fortran 8.3
  7849. tmp_sharedflag='-G' ;;
  7850. esac
  7851. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7852. if test "x$supports_anon_versioning" = xyes; then
  7853. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7854. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7855. echo "local: *; };" >> $output_objdir/$libname.ver~
  7856. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7857. fi
  7858. case $cc_basename in
  7859. xlf* | bgf* | bgxlf* | mpixlf*)
  7860. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7861. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7862. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7863. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7864. if test "x$supports_anon_versioning" = xyes; then
  7865. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7866. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7867. echo "local: *; };" >> $output_objdir/$libname.ver~
  7868. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7869. fi
  7870. ;;
  7871. esac
  7872. else
  7873. ld_shlibs=no
  7874. fi
  7875. ;;
  7876. netbsd* | netbsdelf*-gnu)
  7877. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7878. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7879. wlarc=
  7880. else
  7881. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7882. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7883. fi
  7884. ;;
  7885. solaris*)
  7886. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7887. ld_shlibs=no
  7888. cat <<_LT_EOF 1>&2
  7889. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7890. *** create shared libraries on Solaris systems. Therefore, libtool
  7891. *** is disabling shared libraries support. We urge you to upgrade GNU
  7892. *** binutils to release 2.9.1 or newer. Another option is to modify
  7893. *** your PATH or compiler configuration so that the native linker is
  7894. *** used, and then restart.
  7895. _LT_EOF
  7896. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7897. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7898. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7899. else
  7900. ld_shlibs=no
  7901. fi
  7902. ;;
  7903. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7904. case `$LD -v 2>&1` in
  7905. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7906. ld_shlibs=no
  7907. cat <<_LT_EOF 1>&2
  7908. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7909. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7910. *** is disabling shared libraries support. We urge you to upgrade GNU
  7911. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7912. *** your PATH or compiler configuration so that the native linker is
  7913. *** used, and then restart.
  7914. _LT_EOF
  7915. ;;
  7916. *)
  7917. # For security reasons, it is highly recommended that you always
  7918. # use absolute paths for naming shared libraries, and exclude the
  7919. # DT_RUNPATH tag from executables and libraries. But doing so
  7920. # requires that you compile everything twice, which is a pain.
  7921. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7922. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7923. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7924. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7925. else
  7926. ld_shlibs=no
  7927. fi
  7928. ;;
  7929. esac
  7930. ;;
  7931. sunos4*)
  7932. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7933. wlarc=
  7934. hardcode_direct=yes
  7935. hardcode_shlibpath_var=no
  7936. ;;
  7937. *)
  7938. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7939. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7940. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7941. else
  7942. ld_shlibs=no
  7943. fi
  7944. ;;
  7945. esac
  7946. if test "$ld_shlibs" = no; then
  7947. runpath_var=
  7948. hardcode_libdir_flag_spec=
  7949. export_dynamic_flag_spec=
  7950. whole_archive_flag_spec=
  7951. fi
  7952. else
  7953. # PORTME fill in a description of your system's linker (not GNU ld)
  7954. case $host_os in
  7955. aix3*)
  7956. allow_undefined_flag=unsupported
  7957. always_export_symbols=yes
  7958. 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'
  7959. # Note: this linker hardcodes the directories in LIBPATH if there
  7960. # are no directories specified by -L.
  7961. hardcode_minus_L=yes
  7962. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7963. # Neither direct hardcoding nor static linking is supported with a
  7964. # broken collect2.
  7965. hardcode_direct=unsupported
  7966. fi
  7967. ;;
  7968. aix[4-9]*)
  7969. if test "$host_cpu" = ia64; then
  7970. # On IA64, the linker does run time linking by default, so we don't
  7971. # have to do anything special.
  7972. aix_use_runtimelinking=no
  7973. exp_sym_flag='-Bexport'
  7974. no_entry_flag=""
  7975. else
  7976. # If we're using GNU nm, then we don't want the "-C" option.
  7977. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7978. # Also, AIX nm treats weak defined symbols like other global
  7979. # defined symbols, whereas GNU nm marks them as "W".
  7980. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7981. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7982. else
  7983. 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'
  7984. fi
  7985. aix_use_runtimelinking=no
  7986. # Test if we are trying to use run time linking or normal
  7987. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7988. # need to do runtime linking.
  7989. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7990. for ld_flag in $LDFLAGS; do
  7991. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7992. aix_use_runtimelinking=yes
  7993. break
  7994. fi
  7995. done
  7996. ;;
  7997. esac
  7998. exp_sym_flag='-bexport'
  7999. no_entry_flag='-bnoentry'
  8000. fi
  8001. # When large executables or shared objects are built, AIX ld can
  8002. # have problems creating the table of contents. If linking a library
  8003. # or program results in "error TOC overflow" add -mminimal-toc to
  8004. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8005. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8006. archive_cmds=''
  8007. hardcode_direct=yes
  8008. hardcode_direct_absolute=yes
  8009. hardcode_libdir_separator=':'
  8010. link_all_deplibs=yes
  8011. file_list_spec='${wl}-f,'
  8012. if test "$GCC" = yes; then
  8013. case $host_os in aix4.[012]|aix4.[012].*)
  8014. # We only want to do this on AIX 4.2 and lower, the check
  8015. # below for broken collect2 doesn't work under 4.3+
  8016. collect2name=`${CC} -print-prog-name=collect2`
  8017. if test -f "$collect2name" &&
  8018. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8019. then
  8020. # We have reworked collect2
  8021. :
  8022. else
  8023. # We have old collect2
  8024. hardcode_direct=unsupported
  8025. # It fails to find uninstalled libraries when the uninstalled
  8026. # path is not listed in the libpath. Setting hardcode_minus_L
  8027. # to unsupported forces relinking
  8028. hardcode_minus_L=yes
  8029. hardcode_libdir_flag_spec='-L$libdir'
  8030. hardcode_libdir_separator=
  8031. fi
  8032. ;;
  8033. esac
  8034. shared_flag='-shared'
  8035. if test "$aix_use_runtimelinking" = yes; then
  8036. shared_flag="$shared_flag "'${wl}-G'
  8037. fi
  8038. link_all_deplibs=no
  8039. else
  8040. # not using gcc
  8041. if test "$host_cpu" = ia64; then
  8042. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8043. # chokes on -Wl,-G. The following line is correct:
  8044. shared_flag='-G'
  8045. else
  8046. if test "$aix_use_runtimelinking" = yes; then
  8047. shared_flag='${wl}-G'
  8048. else
  8049. shared_flag='${wl}-bM:SRE'
  8050. fi
  8051. fi
  8052. fi
  8053. export_dynamic_flag_spec='${wl}-bexpall'
  8054. # It seems that -bexpall does not export symbols beginning with
  8055. # underscore (_), so it is better to generate a list of symbols to export.
  8056. always_export_symbols=yes
  8057. if test "$aix_use_runtimelinking" = yes; then
  8058. # Warning - without using the other runtime loading flags (-brtl),
  8059. # -berok will link without error, but may produce a broken library.
  8060. allow_undefined_flag='-berok'
  8061. # Determine the default libpath from the value encoded in an
  8062. # empty executable.
  8063. if test "${lt_cv_aix_libpath+set}" = set; then
  8064. aix_libpath=$lt_cv_aix_libpath
  8065. else
  8066. if ${lt_cv_aix_libpath_+:} false; then :
  8067. $as_echo_n "(cached) " >&6
  8068. else
  8069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8070. /* end confdefs.h. */
  8071. int
  8072. main ()
  8073. {
  8074. ;
  8075. return 0;
  8076. }
  8077. _ACEOF
  8078. if ac_fn_c_try_link "$LINENO"; then :
  8079. lt_aix_libpath_sed='
  8080. /Import File Strings/,/^$/ {
  8081. /^0/ {
  8082. s/^0 *\([^ ]*\) *$/\1/
  8083. p
  8084. }
  8085. }'
  8086. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8087. # Check for a 64-bit object if we didn't find anything.
  8088. if test -z "$lt_cv_aix_libpath_"; then
  8089. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8090. fi
  8091. fi
  8092. rm -f core conftest.err conftest.$ac_objext \
  8093. conftest$ac_exeext conftest.$ac_ext
  8094. if test -z "$lt_cv_aix_libpath_"; then
  8095. lt_cv_aix_libpath_="/usr/lib:/lib"
  8096. fi
  8097. fi
  8098. aix_libpath=$lt_cv_aix_libpath_
  8099. fi
  8100. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8101. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8102. else
  8103. if test "$host_cpu" = ia64; then
  8104. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8105. allow_undefined_flag="-z nodefs"
  8106. 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"
  8107. else
  8108. # Determine the default libpath from the value encoded in an
  8109. # empty executable.
  8110. if test "${lt_cv_aix_libpath+set}" = set; then
  8111. aix_libpath=$lt_cv_aix_libpath
  8112. else
  8113. if ${lt_cv_aix_libpath_+:} false; then :
  8114. $as_echo_n "(cached) " >&6
  8115. else
  8116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8117. /* end confdefs.h. */
  8118. int
  8119. main ()
  8120. {
  8121. ;
  8122. return 0;
  8123. }
  8124. _ACEOF
  8125. if ac_fn_c_try_link "$LINENO"; then :
  8126. lt_aix_libpath_sed='
  8127. /Import File Strings/,/^$/ {
  8128. /^0/ {
  8129. s/^0 *\([^ ]*\) *$/\1/
  8130. p
  8131. }
  8132. }'
  8133. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8134. # Check for a 64-bit object if we didn't find anything.
  8135. if test -z "$lt_cv_aix_libpath_"; then
  8136. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8137. fi
  8138. fi
  8139. rm -f core conftest.err conftest.$ac_objext \
  8140. conftest$ac_exeext conftest.$ac_ext
  8141. if test -z "$lt_cv_aix_libpath_"; then
  8142. lt_cv_aix_libpath_="/usr/lib:/lib"
  8143. fi
  8144. fi
  8145. aix_libpath=$lt_cv_aix_libpath_
  8146. fi
  8147. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8148. # Warning - without using the other run time loading flags,
  8149. # -berok will link without error, but may produce a broken library.
  8150. no_undefined_flag=' ${wl}-bernotok'
  8151. allow_undefined_flag=' ${wl}-berok'
  8152. if test "$with_gnu_ld" = yes; then
  8153. # We only use this code for GNU lds that support --whole-archive.
  8154. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8155. else
  8156. # Exported symbols can be pulled into shared objects from archives
  8157. whole_archive_flag_spec='$convenience'
  8158. fi
  8159. archive_cmds_need_lc=yes
  8160. # This is similar to how AIX traditionally builds its shared libraries.
  8161. 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'
  8162. fi
  8163. fi
  8164. ;;
  8165. amigaos*)
  8166. case $host_cpu in
  8167. powerpc)
  8168. # see comment about AmigaOS4 .so support
  8169. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8170. archive_expsym_cmds=''
  8171. ;;
  8172. m68k)
  8173. 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)'
  8174. hardcode_libdir_flag_spec='-L$libdir'
  8175. hardcode_minus_L=yes
  8176. ;;
  8177. esac
  8178. ;;
  8179. bsdi[45]*)
  8180. export_dynamic_flag_spec=-rdynamic
  8181. ;;
  8182. cygwin* | mingw* | pw32* | cegcc*)
  8183. # When not using gcc, we currently assume that we are using
  8184. # Microsoft Visual C++.
  8185. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8186. # no search path for DLLs.
  8187. case $cc_basename in
  8188. cl*)
  8189. # Native MSVC
  8190. hardcode_libdir_flag_spec=' '
  8191. allow_undefined_flag=unsupported
  8192. always_export_symbols=yes
  8193. file_list_spec='@'
  8194. # Tell ltmain to make .lib files, not .a files.
  8195. libext=lib
  8196. # Tell ltmain to make .dll files, not .so files.
  8197. shrext_cmds=".dll"
  8198. # FIXME: Setting linknames here is a bad hack.
  8199. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8200. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8201. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8202. else
  8203. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8204. fi~
  8205. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8206. linknames='
  8207. # The linker will not automatically build a static lib if we build a DLL.
  8208. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8209. enable_shared_with_static_runtimes=yes
  8210. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8211. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8212. # Don't use ranlib
  8213. old_postinstall_cmds='chmod 644 $oldlib'
  8214. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8215. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8216. case $lt_outputfile in
  8217. *.exe|*.EXE) ;;
  8218. *)
  8219. lt_outputfile="$lt_outputfile.exe"
  8220. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8221. ;;
  8222. esac~
  8223. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8224. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8225. $RM "$lt_outputfile.manifest";
  8226. fi'
  8227. ;;
  8228. *)
  8229. # Assume MSVC wrapper
  8230. hardcode_libdir_flag_spec=' '
  8231. allow_undefined_flag=unsupported
  8232. # Tell ltmain to make .lib files, not .a files.
  8233. libext=lib
  8234. # Tell ltmain to make .dll files, not .so files.
  8235. shrext_cmds=".dll"
  8236. # FIXME: Setting linknames here is a bad hack.
  8237. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8238. # The linker will automatically build a .lib file if we build a DLL.
  8239. old_archive_from_new_cmds='true'
  8240. # FIXME: Should let the user specify the lib program.
  8241. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8242. enable_shared_with_static_runtimes=yes
  8243. ;;
  8244. esac
  8245. ;;
  8246. darwin* | rhapsody*)
  8247. archive_cmds_need_lc=no
  8248. hardcode_direct=no
  8249. hardcode_automatic=yes
  8250. hardcode_shlibpath_var=unsupported
  8251. if test "$lt_cv_ld_force_load" = "yes"; then
  8252. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8253. else
  8254. whole_archive_flag_spec=''
  8255. fi
  8256. link_all_deplibs=yes
  8257. allow_undefined_flag="$_lt_dar_allow_undefined"
  8258. case $cc_basename in
  8259. ifort*) _lt_dar_can_shared=yes ;;
  8260. *) _lt_dar_can_shared=$GCC ;;
  8261. esac
  8262. if test "$_lt_dar_can_shared" = "yes"; then
  8263. output_verbose_link_cmd=func_echo_all
  8264. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8265. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8266. 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}"
  8267. 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}"
  8268. else
  8269. ld_shlibs=no
  8270. fi
  8271. ;;
  8272. dgux*)
  8273. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8274. hardcode_libdir_flag_spec='-L$libdir'
  8275. hardcode_shlibpath_var=no
  8276. ;;
  8277. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8278. # support. Future versions do this automatically, but an explicit c++rt0.o
  8279. # does not break anything, and helps significantly (at the cost of a little
  8280. # extra space).
  8281. freebsd2.2*)
  8282. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8283. hardcode_libdir_flag_spec='-R$libdir'
  8284. hardcode_direct=yes
  8285. hardcode_shlibpath_var=no
  8286. ;;
  8287. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8288. freebsd2.*)
  8289. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8290. hardcode_direct=yes
  8291. hardcode_minus_L=yes
  8292. hardcode_shlibpath_var=no
  8293. ;;
  8294. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8295. freebsd* | dragonfly*)
  8296. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8297. hardcode_libdir_flag_spec='-R$libdir'
  8298. hardcode_direct=yes
  8299. hardcode_shlibpath_var=no
  8300. ;;
  8301. hpux9*)
  8302. if test "$GCC" = yes; then
  8303. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8304. else
  8305. 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'
  8306. fi
  8307. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8308. hardcode_libdir_separator=:
  8309. hardcode_direct=yes
  8310. # hardcode_minus_L: Not really in the search PATH,
  8311. # but as the default location of the library.
  8312. hardcode_minus_L=yes
  8313. export_dynamic_flag_spec='${wl}-E'
  8314. ;;
  8315. hpux10*)
  8316. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8317. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8318. else
  8319. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8320. fi
  8321. if test "$with_gnu_ld" = no; then
  8322. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8323. hardcode_libdir_separator=:
  8324. hardcode_direct=yes
  8325. hardcode_direct_absolute=yes
  8326. export_dynamic_flag_spec='${wl}-E'
  8327. # hardcode_minus_L: Not really in the search PATH,
  8328. # but as the default location of the library.
  8329. hardcode_minus_L=yes
  8330. fi
  8331. ;;
  8332. hpux11*)
  8333. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8334. case $host_cpu in
  8335. hppa*64*)
  8336. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8337. ;;
  8338. ia64*)
  8339. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8340. ;;
  8341. *)
  8342. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8343. ;;
  8344. esac
  8345. else
  8346. case $host_cpu in
  8347. hppa*64*)
  8348. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8349. ;;
  8350. ia64*)
  8351. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8352. ;;
  8353. *)
  8354. # Older versions of the 11.00 compiler do not understand -b yet
  8355. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8357. $as_echo_n "checking if $CC understands -b... " >&6; }
  8358. if ${lt_cv_prog_compiler__b+:} false; then :
  8359. $as_echo_n "(cached) " >&6
  8360. else
  8361. lt_cv_prog_compiler__b=no
  8362. save_LDFLAGS="$LDFLAGS"
  8363. LDFLAGS="$LDFLAGS -b"
  8364. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8365. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8366. # The linker can only warn and ignore the option if not recognized
  8367. # So say no if there are warnings
  8368. if test -s conftest.err; then
  8369. # Append any errors to the config.log.
  8370. cat conftest.err 1>&5
  8371. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8372. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8373. if diff conftest.exp conftest.er2 >/dev/null; then
  8374. lt_cv_prog_compiler__b=yes
  8375. fi
  8376. else
  8377. lt_cv_prog_compiler__b=yes
  8378. fi
  8379. fi
  8380. $RM -r conftest*
  8381. LDFLAGS="$save_LDFLAGS"
  8382. fi
  8383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8384. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8385. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8386. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8387. else
  8388. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8389. fi
  8390. ;;
  8391. esac
  8392. fi
  8393. if test "$with_gnu_ld" = no; then
  8394. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8395. hardcode_libdir_separator=:
  8396. case $host_cpu in
  8397. hppa*64*|ia64*)
  8398. hardcode_direct=no
  8399. hardcode_shlibpath_var=no
  8400. ;;
  8401. *)
  8402. hardcode_direct=yes
  8403. hardcode_direct_absolute=yes
  8404. export_dynamic_flag_spec='${wl}-E'
  8405. # hardcode_minus_L: Not really in the search PATH,
  8406. # but as the default location of the library.
  8407. hardcode_minus_L=yes
  8408. ;;
  8409. esac
  8410. fi
  8411. ;;
  8412. irix5* | irix6* | nonstopux*)
  8413. if test "$GCC" = yes; then
  8414. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8415. # Try to use the -exported_symbol ld option, if it does not
  8416. # work, assume that -exports_file does not work either and
  8417. # implicitly export all symbols.
  8418. # This should be the same for all languages, so no per-tag cache variable.
  8419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8420. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8421. if ${lt_cv_irix_exported_symbol+:} false; then :
  8422. $as_echo_n "(cached) " >&6
  8423. else
  8424. save_LDFLAGS="$LDFLAGS"
  8425. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8427. /* end confdefs.h. */
  8428. int foo (void) { return 0; }
  8429. _ACEOF
  8430. if ac_fn_c_try_link "$LINENO"; then :
  8431. lt_cv_irix_exported_symbol=yes
  8432. else
  8433. lt_cv_irix_exported_symbol=no
  8434. fi
  8435. rm -f core conftest.err conftest.$ac_objext \
  8436. conftest$ac_exeext conftest.$ac_ext
  8437. LDFLAGS="$save_LDFLAGS"
  8438. fi
  8439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8440. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8441. if test "$lt_cv_irix_exported_symbol" = yes; then
  8442. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8443. fi
  8444. else
  8445. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8446. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8447. fi
  8448. archive_cmds_need_lc='no'
  8449. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8450. hardcode_libdir_separator=:
  8451. inherit_rpath=yes
  8452. link_all_deplibs=yes
  8453. ;;
  8454. netbsd* | netbsdelf*-gnu)
  8455. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8456. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8457. else
  8458. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8459. fi
  8460. hardcode_libdir_flag_spec='-R$libdir'
  8461. hardcode_direct=yes
  8462. hardcode_shlibpath_var=no
  8463. ;;
  8464. newsos6)
  8465. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8466. hardcode_direct=yes
  8467. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8468. hardcode_libdir_separator=:
  8469. hardcode_shlibpath_var=no
  8470. ;;
  8471. *nto* | *qnx*)
  8472. ;;
  8473. openbsd*)
  8474. if test -f /usr/libexec/ld.so; then
  8475. hardcode_direct=yes
  8476. hardcode_shlibpath_var=no
  8477. hardcode_direct_absolute=yes
  8478. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8479. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8480. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8481. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8482. export_dynamic_flag_spec='${wl}-E'
  8483. else
  8484. case $host_os in
  8485. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8486. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8487. hardcode_libdir_flag_spec='-R$libdir'
  8488. ;;
  8489. *)
  8490. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8491. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8492. ;;
  8493. esac
  8494. fi
  8495. else
  8496. ld_shlibs=no
  8497. fi
  8498. ;;
  8499. os2*)
  8500. hardcode_libdir_flag_spec='-L$libdir'
  8501. hardcode_minus_L=yes
  8502. allow_undefined_flag=unsupported
  8503. 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'
  8504. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8505. ;;
  8506. osf3*)
  8507. if test "$GCC" = yes; then
  8508. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8509. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8510. else
  8511. allow_undefined_flag=' -expect_unresolved \*'
  8512. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8513. fi
  8514. archive_cmds_need_lc='no'
  8515. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8516. hardcode_libdir_separator=:
  8517. ;;
  8518. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8519. if test "$GCC" = yes; then
  8520. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8521. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8522. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8523. else
  8524. allow_undefined_flag=' -expect_unresolved \*'
  8525. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8526. 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~
  8527. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8528. # Both c and cxx compiler support -rpath directly
  8529. hardcode_libdir_flag_spec='-rpath $libdir'
  8530. fi
  8531. archive_cmds_need_lc='no'
  8532. hardcode_libdir_separator=:
  8533. ;;
  8534. solaris*)
  8535. no_undefined_flag=' -z defs'
  8536. if test "$GCC" = yes; then
  8537. wlarc='${wl}'
  8538. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8539. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8540. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8541. else
  8542. case `$CC -V 2>&1` in
  8543. *"Compilers 5.0"*)
  8544. wlarc=''
  8545. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8546. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8547. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8548. ;;
  8549. *)
  8550. wlarc='${wl}'
  8551. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8552. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8553. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8554. ;;
  8555. esac
  8556. fi
  8557. hardcode_libdir_flag_spec='-R$libdir'
  8558. hardcode_shlibpath_var=no
  8559. case $host_os in
  8560. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8561. *)
  8562. # The compiler driver will combine and reorder linker options,
  8563. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8564. # but is careful enough not to reorder.
  8565. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8566. if test "$GCC" = yes; then
  8567. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8568. else
  8569. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8570. fi
  8571. ;;
  8572. esac
  8573. link_all_deplibs=yes
  8574. ;;
  8575. sunos4*)
  8576. if test "x$host_vendor" = xsequent; then
  8577. # Use $CC to link under sequent, because it throws in some extra .o
  8578. # files that make .init and .fini sections work.
  8579. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8580. else
  8581. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8582. fi
  8583. hardcode_libdir_flag_spec='-L$libdir'
  8584. hardcode_direct=yes
  8585. hardcode_minus_L=yes
  8586. hardcode_shlibpath_var=no
  8587. ;;
  8588. sysv4)
  8589. case $host_vendor in
  8590. sni)
  8591. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8592. hardcode_direct=yes # is this really true???
  8593. ;;
  8594. siemens)
  8595. ## LD is ld it makes a PLAMLIB
  8596. ## CC just makes a GrossModule.
  8597. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8598. reload_cmds='$CC -r -o $output$reload_objs'
  8599. hardcode_direct=no
  8600. ;;
  8601. motorola)
  8602. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8603. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8604. ;;
  8605. esac
  8606. runpath_var='LD_RUN_PATH'
  8607. hardcode_shlibpath_var=no
  8608. ;;
  8609. sysv4.3*)
  8610. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8611. hardcode_shlibpath_var=no
  8612. export_dynamic_flag_spec='-Bexport'
  8613. ;;
  8614. sysv4*MP*)
  8615. if test -d /usr/nec; then
  8616. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8617. hardcode_shlibpath_var=no
  8618. runpath_var=LD_RUN_PATH
  8619. hardcode_runpath_var=yes
  8620. ld_shlibs=yes
  8621. fi
  8622. ;;
  8623. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8624. no_undefined_flag='${wl}-z,text'
  8625. archive_cmds_need_lc=no
  8626. hardcode_shlibpath_var=no
  8627. runpath_var='LD_RUN_PATH'
  8628. if test "$GCC" = yes; then
  8629. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8630. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8631. else
  8632. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8633. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8634. fi
  8635. ;;
  8636. sysv5* | sco3.2v5* | sco5v6*)
  8637. # Note: We can NOT use -z defs as we might desire, because we do not
  8638. # link with -lc, and that would cause any symbols used from libc to
  8639. # always be unresolved, which means just about no library would
  8640. # ever link correctly. If we're not using GNU ld we use -z text
  8641. # though, which does catch some bad symbols but isn't as heavy-handed
  8642. # as -z defs.
  8643. no_undefined_flag='${wl}-z,text'
  8644. allow_undefined_flag='${wl}-z,nodefs'
  8645. archive_cmds_need_lc=no
  8646. hardcode_shlibpath_var=no
  8647. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8648. hardcode_libdir_separator=':'
  8649. link_all_deplibs=yes
  8650. export_dynamic_flag_spec='${wl}-Bexport'
  8651. runpath_var='LD_RUN_PATH'
  8652. if test "$GCC" = yes; then
  8653. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8654. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8655. else
  8656. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8657. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8658. fi
  8659. ;;
  8660. uts4*)
  8661. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8662. hardcode_libdir_flag_spec='-L$libdir'
  8663. hardcode_shlibpath_var=no
  8664. ;;
  8665. *)
  8666. ld_shlibs=no
  8667. ;;
  8668. esac
  8669. if test x$host_vendor = xsni; then
  8670. case $host in
  8671. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8672. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8673. ;;
  8674. esac
  8675. fi
  8676. fi
  8677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8678. $as_echo "$ld_shlibs" >&6; }
  8679. test "$ld_shlibs" = no && can_build_shared=no
  8680. with_gnu_ld=$with_gnu_ld
  8681. #
  8682. # Do we need to explicitly link libc?
  8683. #
  8684. case "x$archive_cmds_need_lc" in
  8685. x|xyes)
  8686. # Assume -lc should be added
  8687. archive_cmds_need_lc=yes
  8688. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8689. case $archive_cmds in
  8690. *'~'*)
  8691. # FIXME: we may have to deal with multi-command sequences.
  8692. ;;
  8693. '$CC '*)
  8694. # Test whether the compiler implicitly links with -lc since on some
  8695. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8696. # to ld, don't add -lc before -lgcc.
  8697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8698. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8699. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8700. $as_echo_n "(cached) " >&6
  8701. else
  8702. $RM conftest*
  8703. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8704. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8705. (eval $ac_compile) 2>&5
  8706. ac_status=$?
  8707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8708. test $ac_status = 0; } 2>conftest.err; then
  8709. soname=conftest
  8710. lib=conftest
  8711. libobjs=conftest.$ac_objext
  8712. deplibs=
  8713. wl=$lt_prog_compiler_wl
  8714. pic_flag=$lt_prog_compiler_pic
  8715. compiler_flags=-v
  8716. linker_flags=-v
  8717. verstring=
  8718. output_objdir=.
  8719. libname=conftest
  8720. lt_save_allow_undefined_flag=$allow_undefined_flag
  8721. allow_undefined_flag=
  8722. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8723. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8724. ac_status=$?
  8725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8726. test $ac_status = 0; }
  8727. then
  8728. lt_cv_archive_cmds_need_lc=no
  8729. else
  8730. lt_cv_archive_cmds_need_lc=yes
  8731. fi
  8732. allow_undefined_flag=$lt_save_allow_undefined_flag
  8733. else
  8734. cat conftest.err 1>&5
  8735. fi
  8736. $RM conftest*
  8737. fi
  8738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8739. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8740. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8741. ;;
  8742. esac
  8743. fi
  8744. ;;
  8745. esac
  8746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8747. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8748. if test "$GCC" = yes; then
  8749. case $host_os in
  8750. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8751. *) lt_awk_arg="/^libraries:/" ;;
  8752. esac
  8753. case $host_os in
  8754. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8755. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8756. esac
  8757. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8758. case $lt_search_path_spec in
  8759. *\;*)
  8760. # if the path contains ";" then we assume it to be the separator
  8761. # otherwise default to the standard path separator (i.e. ":") - it is
  8762. # assumed that no part of a normal pathname contains ";" but that should
  8763. # okay in the real world where ";" in dirpaths is itself problematic.
  8764. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8765. ;;
  8766. *)
  8767. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8768. ;;
  8769. esac
  8770. # Ok, now we have the path, separated by spaces, we can step through it
  8771. # and add multilib dir if necessary.
  8772. lt_tmp_lt_search_path_spec=
  8773. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8774. for lt_sys_path in $lt_search_path_spec; do
  8775. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8776. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8777. else
  8778. test -d "$lt_sys_path" && \
  8779. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8780. fi
  8781. done
  8782. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8783. BEGIN {RS=" "; FS="/|\n";} {
  8784. lt_foo="";
  8785. lt_count=0;
  8786. for (lt_i = NF; lt_i > 0; lt_i--) {
  8787. if ($lt_i != "" && $lt_i != ".") {
  8788. if ($lt_i == "..") {
  8789. lt_count++;
  8790. } else {
  8791. if (lt_count == 0) {
  8792. lt_foo="/" $lt_i lt_foo;
  8793. } else {
  8794. lt_count--;
  8795. }
  8796. }
  8797. }
  8798. }
  8799. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8800. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8801. }'`
  8802. # AWK program above erroneously prepends '/' to C:/dos/paths
  8803. # for these hosts.
  8804. case $host_os in
  8805. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8806. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8807. esac
  8808. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8809. else
  8810. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8811. fi
  8812. library_names_spec=
  8813. libname_spec='lib$name'
  8814. soname_spec=
  8815. shrext_cmds=".so"
  8816. postinstall_cmds=
  8817. postuninstall_cmds=
  8818. finish_cmds=
  8819. finish_eval=
  8820. shlibpath_var=
  8821. shlibpath_overrides_runpath=unknown
  8822. version_type=none
  8823. dynamic_linker="$host_os ld.so"
  8824. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8825. need_lib_prefix=unknown
  8826. hardcode_into_libs=no
  8827. # when you set need_version to no, make sure it does not cause -set_version
  8828. # flags to be left without arguments
  8829. need_version=unknown
  8830. case $host_os in
  8831. aix3*)
  8832. version_type=linux # correct to gnu/linux during the next big refactor
  8833. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8834. shlibpath_var=LIBPATH
  8835. # AIX 3 has no versioning support, so we append a major version to the name.
  8836. soname_spec='${libname}${release}${shared_ext}$major'
  8837. ;;
  8838. aix[4-9]*)
  8839. version_type=linux # correct to gnu/linux during the next big refactor
  8840. need_lib_prefix=no
  8841. need_version=no
  8842. hardcode_into_libs=yes
  8843. if test "$host_cpu" = ia64; then
  8844. # AIX 5 supports IA64
  8845. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8846. shlibpath_var=LD_LIBRARY_PATH
  8847. else
  8848. # With GCC up to 2.95.x, collect2 would create an import file
  8849. # for dependence libraries. The import file would start with
  8850. # the line `#! .'. This would cause the generated library to
  8851. # depend on `.', always an invalid library. This was fixed in
  8852. # development snapshots of GCC prior to 3.0.
  8853. case $host_os in
  8854. aix4 | aix4.[01] | aix4.[01].*)
  8855. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8856. echo ' yes '
  8857. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8858. :
  8859. else
  8860. can_build_shared=no
  8861. fi
  8862. ;;
  8863. esac
  8864. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8865. # soname into executable. Probably we can add versioning support to
  8866. # collect2, so additional links can be useful in future.
  8867. if test "$aix_use_runtimelinking" = yes; then
  8868. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8869. # instead of lib<name>.a to let people know that these are not
  8870. # typical AIX shared libraries.
  8871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8872. else
  8873. # We preserve .a as extension for shared libraries through AIX4.2
  8874. # and later when we are not doing run time linking.
  8875. library_names_spec='${libname}${release}.a $libname.a'
  8876. soname_spec='${libname}${release}${shared_ext}$major'
  8877. fi
  8878. shlibpath_var=LIBPATH
  8879. fi
  8880. ;;
  8881. amigaos*)
  8882. case $host_cpu in
  8883. powerpc)
  8884. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8885. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8887. ;;
  8888. m68k)
  8889. library_names_spec='$libname.ixlibrary $libname.a'
  8890. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8891. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  8892. ;;
  8893. esac
  8894. ;;
  8895. beos*)
  8896. library_names_spec='${libname}${shared_ext}'
  8897. dynamic_linker="$host_os ld.so"
  8898. shlibpath_var=LIBRARY_PATH
  8899. ;;
  8900. bsdi[45]*)
  8901. version_type=linux # correct to gnu/linux during the next big refactor
  8902. need_version=no
  8903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8904. soname_spec='${libname}${release}${shared_ext}$major'
  8905. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8906. shlibpath_var=LD_LIBRARY_PATH
  8907. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8908. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8909. # the default ld.so.conf also contains /usr/contrib/lib and
  8910. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8911. # libtool to hard-code these into programs
  8912. ;;
  8913. cygwin* | mingw* | pw32* | cegcc*)
  8914. version_type=windows
  8915. shrext_cmds=".dll"
  8916. need_version=no
  8917. need_lib_prefix=no
  8918. case $GCC,$cc_basename in
  8919. yes,*)
  8920. # gcc
  8921. library_names_spec='$libname.dll.a'
  8922. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8923. postinstall_cmds='base_file=`basename \${file}`~
  8924. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8925. dldir=$destdir/`dirname \$dlpath`~
  8926. test -d \$dldir || mkdir -p \$dldir~
  8927. $install_prog $dir/$dlname \$dldir/$dlname~
  8928. chmod a+x \$dldir/$dlname~
  8929. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8930. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8931. fi'
  8932. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8933. dlpath=$dir/\$dldll~
  8934. $RM \$dlpath'
  8935. shlibpath_overrides_runpath=yes
  8936. case $host_os in
  8937. cygwin*)
  8938. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8939. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8940. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8941. ;;
  8942. mingw* | cegcc*)
  8943. # MinGW DLLs use traditional 'lib' prefix
  8944. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8945. ;;
  8946. pw32*)
  8947. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8948. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8949. ;;
  8950. esac
  8951. dynamic_linker='Win32 ld.exe'
  8952. ;;
  8953. *,cl*)
  8954. # Native MSVC
  8955. libname_spec='$name'
  8956. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8957. library_names_spec='${libname}.dll.lib'
  8958. case $build_os in
  8959. mingw*)
  8960. sys_lib_search_path_spec=
  8961. lt_save_ifs=$IFS
  8962. IFS=';'
  8963. for lt_path in $LIB
  8964. do
  8965. IFS=$lt_save_ifs
  8966. # Let DOS variable expansion print the short 8.3 style file name.
  8967. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8968. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8969. done
  8970. IFS=$lt_save_ifs
  8971. # Convert to MSYS style.
  8972. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8973. ;;
  8974. cygwin*)
  8975. # Convert to unix form, then to dos form, then back to unix form
  8976. # but this time dos style (no spaces!) so that the unix form looks
  8977. # like /cygdrive/c/PROGRA~1:/cygdr...
  8978. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8979. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8980. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8981. ;;
  8982. *)
  8983. sys_lib_search_path_spec="$LIB"
  8984. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8985. # It is most probably a Windows format PATH.
  8986. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8987. else
  8988. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8989. fi
  8990. # FIXME: find the short name or the path components, as spaces are
  8991. # common. (e.g. "Program Files" -> "PROGRA~1")
  8992. ;;
  8993. esac
  8994. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8995. postinstall_cmds='base_file=`basename \${file}`~
  8996. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8997. dldir=$destdir/`dirname \$dlpath`~
  8998. test -d \$dldir || mkdir -p \$dldir~
  8999. $install_prog $dir/$dlname \$dldir/$dlname'
  9000. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9001. dlpath=$dir/\$dldll~
  9002. $RM \$dlpath'
  9003. shlibpath_overrides_runpath=yes
  9004. dynamic_linker='Win32 link.exe'
  9005. ;;
  9006. *)
  9007. # Assume MSVC wrapper
  9008. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9009. dynamic_linker='Win32 ld.exe'
  9010. ;;
  9011. esac
  9012. # FIXME: first we should search . and the directory the executable is in
  9013. shlibpath_var=PATH
  9014. ;;
  9015. darwin* | rhapsody*)
  9016. dynamic_linker="$host_os dyld"
  9017. version_type=darwin
  9018. need_lib_prefix=no
  9019. need_version=no
  9020. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9021. soname_spec='${libname}${release}${major}$shared_ext'
  9022. shlibpath_overrides_runpath=yes
  9023. shlibpath_var=DYLD_LIBRARY_PATH
  9024. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9025. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9026. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9027. ;;
  9028. dgux*)
  9029. version_type=linux # correct to gnu/linux during the next big refactor
  9030. need_lib_prefix=no
  9031. need_version=no
  9032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9033. soname_spec='${libname}${release}${shared_ext}$major'
  9034. shlibpath_var=LD_LIBRARY_PATH
  9035. ;;
  9036. freebsd* | dragonfly*)
  9037. # DragonFly does not have aout. When/if they implement a new
  9038. # versioning mechanism, adjust this.
  9039. if test -x /usr/bin/objformat; then
  9040. objformat=`/usr/bin/objformat`
  9041. else
  9042. case $host_os in
  9043. freebsd[23].*) objformat=aout ;;
  9044. *) objformat=elf ;;
  9045. esac
  9046. fi
  9047. version_type=freebsd-$objformat
  9048. case $version_type in
  9049. freebsd-elf*)
  9050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9051. need_version=no
  9052. need_lib_prefix=no
  9053. ;;
  9054. freebsd-*)
  9055. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9056. need_version=yes
  9057. ;;
  9058. esac
  9059. shlibpath_var=LD_LIBRARY_PATH
  9060. case $host_os in
  9061. freebsd2.*)
  9062. shlibpath_overrides_runpath=yes
  9063. ;;
  9064. freebsd3.[01]* | freebsdelf3.[01]*)
  9065. shlibpath_overrides_runpath=yes
  9066. hardcode_into_libs=yes
  9067. ;;
  9068. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9069. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9070. shlibpath_overrides_runpath=no
  9071. hardcode_into_libs=yes
  9072. ;;
  9073. *) # from 4.6 on, and DragonFly
  9074. shlibpath_overrides_runpath=yes
  9075. hardcode_into_libs=yes
  9076. ;;
  9077. esac
  9078. ;;
  9079. haiku*)
  9080. version_type=linux # correct to gnu/linux during the next big refactor
  9081. need_lib_prefix=no
  9082. need_version=no
  9083. dynamic_linker="$host_os runtime_loader"
  9084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9085. soname_spec='${libname}${release}${shared_ext}$major'
  9086. shlibpath_var=LIBRARY_PATH
  9087. shlibpath_overrides_runpath=yes
  9088. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9089. hardcode_into_libs=yes
  9090. ;;
  9091. hpux9* | hpux10* | hpux11*)
  9092. # Give a soname corresponding to the major version so that dld.sl refuses to
  9093. # link against other versions.
  9094. version_type=sunos
  9095. need_lib_prefix=no
  9096. need_version=no
  9097. case $host_cpu in
  9098. ia64*)
  9099. shrext_cmds='.so'
  9100. hardcode_into_libs=yes
  9101. dynamic_linker="$host_os dld.so"
  9102. shlibpath_var=LD_LIBRARY_PATH
  9103. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9105. soname_spec='${libname}${release}${shared_ext}$major'
  9106. if test "X$HPUX_IA64_MODE" = X32; then
  9107. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9108. else
  9109. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9110. fi
  9111. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9112. ;;
  9113. hppa*64*)
  9114. shrext_cmds='.sl'
  9115. hardcode_into_libs=yes
  9116. dynamic_linker="$host_os dld.sl"
  9117. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9118. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9120. soname_spec='${libname}${release}${shared_ext}$major'
  9121. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9122. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9123. ;;
  9124. *)
  9125. shrext_cmds='.sl'
  9126. dynamic_linker="$host_os dld.sl"
  9127. shlibpath_var=SHLIB_PATH
  9128. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9130. soname_spec='${libname}${release}${shared_ext}$major'
  9131. ;;
  9132. esac
  9133. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9134. postinstall_cmds='chmod 555 $lib'
  9135. # or fails outright, so override atomically:
  9136. install_override_mode=555
  9137. ;;
  9138. interix[3-9]*)
  9139. version_type=linux # correct to gnu/linux during the next big refactor
  9140. need_lib_prefix=no
  9141. need_version=no
  9142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9143. soname_spec='${libname}${release}${shared_ext}$major'
  9144. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9145. shlibpath_var=LD_LIBRARY_PATH
  9146. shlibpath_overrides_runpath=no
  9147. hardcode_into_libs=yes
  9148. ;;
  9149. irix5* | irix6* | nonstopux*)
  9150. case $host_os in
  9151. nonstopux*) version_type=nonstopux ;;
  9152. *)
  9153. if test "$lt_cv_prog_gnu_ld" = yes; then
  9154. version_type=linux # correct to gnu/linux during the next big refactor
  9155. else
  9156. version_type=irix
  9157. fi ;;
  9158. esac
  9159. need_lib_prefix=no
  9160. need_version=no
  9161. soname_spec='${libname}${release}${shared_ext}$major'
  9162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9163. case $host_os in
  9164. irix5* | nonstopux*)
  9165. libsuff= shlibsuff=
  9166. ;;
  9167. *)
  9168. case $LD in # libtool.m4 will add one of these switches to LD
  9169. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9170. libsuff= shlibsuff= libmagic=32-bit;;
  9171. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9172. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9173. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9174. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9175. *) libsuff= shlibsuff= libmagic=never-match;;
  9176. esac
  9177. ;;
  9178. esac
  9179. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9180. shlibpath_overrides_runpath=no
  9181. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9182. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9183. hardcode_into_libs=yes
  9184. ;;
  9185. # No shared lib support for Linux oldld, aout, or coff.
  9186. linux*oldld* | linux*aout* | linux*coff*)
  9187. dynamic_linker=no
  9188. ;;
  9189. # This must be glibc/ELF.
  9190. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9191. version_type=linux # correct to gnu/linux during the next big refactor
  9192. need_lib_prefix=no
  9193. need_version=no
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9195. soname_spec='${libname}${release}${shared_ext}$major'
  9196. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9197. shlibpath_var=LD_LIBRARY_PATH
  9198. shlibpath_overrides_runpath=no
  9199. # Some binutils ld are patched to set DT_RUNPATH
  9200. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9201. $as_echo_n "(cached) " >&6
  9202. else
  9203. lt_cv_shlibpath_overrides_runpath=no
  9204. save_LDFLAGS=$LDFLAGS
  9205. save_libdir=$libdir
  9206. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9207. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9209. /* end confdefs.h. */
  9210. int
  9211. main ()
  9212. {
  9213. ;
  9214. return 0;
  9215. }
  9216. _ACEOF
  9217. if ac_fn_c_try_link "$LINENO"; then :
  9218. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9219. lt_cv_shlibpath_overrides_runpath=yes
  9220. fi
  9221. fi
  9222. rm -f core conftest.err conftest.$ac_objext \
  9223. conftest$ac_exeext conftest.$ac_ext
  9224. LDFLAGS=$save_LDFLAGS
  9225. libdir=$save_libdir
  9226. fi
  9227. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9228. # This implies no fast_install, which is unacceptable.
  9229. # Some rework will be needed to allow for fast_install
  9230. # before this can be enabled.
  9231. hardcode_into_libs=yes
  9232. # Append ld.so.conf contents to the search path
  9233. if test -f /etc/ld.so.conf; then
  9234. 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;s/"//g;/^$/d' | tr '\n' ' '`
  9235. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9236. fi
  9237. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9238. # powerpc, because MkLinux only supported shared libraries with the
  9239. # GNU dynamic linker. Since this was broken with cross compilers,
  9240. # most powerpc-linux boxes support dynamic linking these days and
  9241. # people can always --disable-shared, the test was removed, and we
  9242. # assume the GNU/Linux dynamic linker is in use.
  9243. dynamic_linker='GNU/Linux ld.so'
  9244. ;;
  9245. netbsdelf*-gnu)
  9246. version_type=linux
  9247. need_lib_prefix=no
  9248. need_version=no
  9249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9250. soname_spec='${libname}${release}${shared_ext}$major'
  9251. shlibpath_var=LD_LIBRARY_PATH
  9252. shlibpath_overrides_runpath=no
  9253. hardcode_into_libs=yes
  9254. dynamic_linker='NetBSD ld.elf_so'
  9255. ;;
  9256. netbsd*)
  9257. version_type=sunos
  9258. need_lib_prefix=no
  9259. need_version=no
  9260. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9261. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9262. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9263. dynamic_linker='NetBSD (a.out) ld.so'
  9264. else
  9265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9266. soname_spec='${libname}${release}${shared_ext}$major'
  9267. dynamic_linker='NetBSD ld.elf_so'
  9268. fi
  9269. shlibpath_var=LD_LIBRARY_PATH
  9270. shlibpath_overrides_runpath=yes
  9271. hardcode_into_libs=yes
  9272. ;;
  9273. newsos6)
  9274. version_type=linux # correct to gnu/linux during the next big refactor
  9275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9276. shlibpath_var=LD_LIBRARY_PATH
  9277. shlibpath_overrides_runpath=yes
  9278. ;;
  9279. *nto* | *qnx*)
  9280. version_type=qnx
  9281. need_lib_prefix=no
  9282. need_version=no
  9283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9284. soname_spec='${libname}${release}${shared_ext}$major'
  9285. shlibpath_var=LD_LIBRARY_PATH
  9286. shlibpath_overrides_runpath=no
  9287. hardcode_into_libs=yes
  9288. dynamic_linker='ldqnx.so'
  9289. ;;
  9290. openbsd*)
  9291. version_type=sunos
  9292. sys_lib_dlsearch_path_spec="/usr/lib"
  9293. need_lib_prefix=no
  9294. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9295. case $host_os in
  9296. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9297. *) need_version=no ;;
  9298. esac
  9299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9300. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9301. shlibpath_var=LD_LIBRARY_PATH
  9302. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9303. case $host_os in
  9304. openbsd2.[89] | openbsd2.[89].*)
  9305. shlibpath_overrides_runpath=no
  9306. ;;
  9307. *)
  9308. shlibpath_overrides_runpath=yes
  9309. ;;
  9310. esac
  9311. else
  9312. shlibpath_overrides_runpath=yes
  9313. fi
  9314. ;;
  9315. os2*)
  9316. libname_spec='$name'
  9317. shrext_cmds=".dll"
  9318. need_lib_prefix=no
  9319. library_names_spec='$libname${shared_ext} $libname.a'
  9320. dynamic_linker='OS/2 ld.exe'
  9321. shlibpath_var=LIBPATH
  9322. ;;
  9323. osf3* | osf4* | osf5*)
  9324. version_type=osf
  9325. need_lib_prefix=no
  9326. need_version=no
  9327. soname_spec='${libname}${release}${shared_ext}$major'
  9328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9329. shlibpath_var=LD_LIBRARY_PATH
  9330. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9331. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9332. ;;
  9333. rdos*)
  9334. dynamic_linker=no
  9335. ;;
  9336. solaris*)
  9337. version_type=linux # correct to gnu/linux during the next big refactor
  9338. need_lib_prefix=no
  9339. need_version=no
  9340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9341. soname_spec='${libname}${release}${shared_ext}$major'
  9342. shlibpath_var=LD_LIBRARY_PATH
  9343. shlibpath_overrides_runpath=yes
  9344. hardcode_into_libs=yes
  9345. # ldd complains unless libraries are executable
  9346. postinstall_cmds='chmod +x $lib'
  9347. ;;
  9348. sunos4*)
  9349. version_type=sunos
  9350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9351. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9352. shlibpath_var=LD_LIBRARY_PATH
  9353. shlibpath_overrides_runpath=yes
  9354. if test "$with_gnu_ld" = yes; then
  9355. need_lib_prefix=no
  9356. fi
  9357. need_version=yes
  9358. ;;
  9359. sysv4 | sysv4.3*)
  9360. version_type=linux # correct to gnu/linux during the next big refactor
  9361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9362. soname_spec='${libname}${release}${shared_ext}$major'
  9363. shlibpath_var=LD_LIBRARY_PATH
  9364. case $host_vendor in
  9365. sni)
  9366. shlibpath_overrides_runpath=no
  9367. need_lib_prefix=no
  9368. runpath_var=LD_RUN_PATH
  9369. ;;
  9370. siemens)
  9371. need_lib_prefix=no
  9372. ;;
  9373. motorola)
  9374. need_lib_prefix=no
  9375. need_version=no
  9376. shlibpath_overrides_runpath=no
  9377. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9378. ;;
  9379. esac
  9380. ;;
  9381. sysv4*MP*)
  9382. if test -d /usr/nec ;then
  9383. version_type=linux # correct to gnu/linux during the next big refactor
  9384. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9385. soname_spec='$libname${shared_ext}.$major'
  9386. shlibpath_var=LD_LIBRARY_PATH
  9387. fi
  9388. ;;
  9389. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9390. version_type=freebsd-elf
  9391. need_lib_prefix=no
  9392. need_version=no
  9393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9394. soname_spec='${libname}${release}${shared_ext}$major'
  9395. shlibpath_var=LD_LIBRARY_PATH
  9396. shlibpath_overrides_runpath=yes
  9397. hardcode_into_libs=yes
  9398. if test "$with_gnu_ld" = yes; then
  9399. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9400. else
  9401. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9402. case $host_os in
  9403. sco3.2v5*)
  9404. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9405. ;;
  9406. esac
  9407. fi
  9408. sys_lib_dlsearch_path_spec='/usr/lib'
  9409. ;;
  9410. tpf*)
  9411. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9412. version_type=linux # correct to gnu/linux during the next big refactor
  9413. need_lib_prefix=no
  9414. need_version=no
  9415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9416. shlibpath_var=LD_LIBRARY_PATH
  9417. shlibpath_overrides_runpath=no
  9418. hardcode_into_libs=yes
  9419. ;;
  9420. uts4*)
  9421. version_type=linux # correct to gnu/linux during the next big refactor
  9422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9423. soname_spec='${libname}${release}${shared_ext}$major'
  9424. shlibpath_var=LD_LIBRARY_PATH
  9425. ;;
  9426. *)
  9427. dynamic_linker=no
  9428. ;;
  9429. esac
  9430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9431. $as_echo "$dynamic_linker" >&6; }
  9432. test "$dynamic_linker" = no && can_build_shared=no
  9433. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9434. if test "$GCC" = yes; then
  9435. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9436. fi
  9437. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9438. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9439. fi
  9440. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9441. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9442. fi
  9443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9444. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9445. hardcode_action=
  9446. if test -n "$hardcode_libdir_flag_spec" ||
  9447. test -n "$runpath_var" ||
  9448. test "X$hardcode_automatic" = "Xyes" ; then
  9449. # We can hardcode non-existent directories.
  9450. if test "$hardcode_direct" != no &&
  9451. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9452. # have to relink, otherwise we might link with an installed library
  9453. # when we should be linking with a yet-to-be-installed one
  9454. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9455. test "$hardcode_minus_L" != no; then
  9456. # Linking always hardcodes the temporary library directory.
  9457. hardcode_action=relink
  9458. else
  9459. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9460. hardcode_action=immediate
  9461. fi
  9462. else
  9463. # We cannot hardcode anything, or else we can only hardcode existing
  9464. # directories.
  9465. hardcode_action=unsupported
  9466. fi
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9468. $as_echo "$hardcode_action" >&6; }
  9469. if test "$hardcode_action" = relink ||
  9470. test "$inherit_rpath" = yes; then
  9471. # Fast installation is not supported
  9472. enable_fast_install=no
  9473. elif test "$shlibpath_overrides_runpath" = yes ||
  9474. test "$enable_shared" = no; then
  9475. # Fast installation is not necessary
  9476. enable_fast_install=needless
  9477. fi
  9478. if test "x$enable_dlopen" != xyes; then
  9479. enable_dlopen=unknown
  9480. enable_dlopen_self=unknown
  9481. enable_dlopen_self_static=unknown
  9482. else
  9483. lt_cv_dlopen=no
  9484. lt_cv_dlopen_libs=
  9485. case $host_os in
  9486. beos*)
  9487. lt_cv_dlopen="load_add_on"
  9488. lt_cv_dlopen_libs=
  9489. lt_cv_dlopen_self=yes
  9490. ;;
  9491. mingw* | pw32* | cegcc*)
  9492. lt_cv_dlopen="LoadLibrary"
  9493. lt_cv_dlopen_libs=
  9494. ;;
  9495. cygwin*)
  9496. lt_cv_dlopen="dlopen"
  9497. lt_cv_dlopen_libs=
  9498. ;;
  9499. darwin*)
  9500. # if libdl is installed we need to link against it
  9501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9502. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9503. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9504. $as_echo_n "(cached) " >&6
  9505. else
  9506. ac_check_lib_save_LIBS=$LIBS
  9507. LIBS="-ldl $LIBS"
  9508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9509. /* end confdefs.h. */
  9510. /* Override any GCC internal prototype to avoid an error.
  9511. Use char because int might match the return type of a GCC
  9512. builtin and then its argument prototype would still apply. */
  9513. #ifdef __cplusplus
  9514. extern "C"
  9515. #endif
  9516. char dlopen ();
  9517. int
  9518. main ()
  9519. {
  9520. return dlopen ();
  9521. ;
  9522. return 0;
  9523. }
  9524. _ACEOF
  9525. if ac_fn_c_try_link "$LINENO"; then :
  9526. ac_cv_lib_dl_dlopen=yes
  9527. else
  9528. ac_cv_lib_dl_dlopen=no
  9529. fi
  9530. rm -f core conftest.err conftest.$ac_objext \
  9531. conftest$ac_exeext conftest.$ac_ext
  9532. LIBS=$ac_check_lib_save_LIBS
  9533. fi
  9534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9535. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9536. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9537. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9538. else
  9539. lt_cv_dlopen="dyld"
  9540. lt_cv_dlopen_libs=
  9541. lt_cv_dlopen_self=yes
  9542. fi
  9543. ;;
  9544. *)
  9545. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9546. if test "x$ac_cv_func_shl_load" = xyes; then :
  9547. lt_cv_dlopen="shl_load"
  9548. else
  9549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9550. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9551. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9552. $as_echo_n "(cached) " >&6
  9553. else
  9554. ac_check_lib_save_LIBS=$LIBS
  9555. LIBS="-ldld $LIBS"
  9556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9557. /* end confdefs.h. */
  9558. /* Override any GCC internal prototype to avoid an error.
  9559. Use char because int might match the return type of a GCC
  9560. builtin and then its argument prototype would still apply. */
  9561. #ifdef __cplusplus
  9562. extern "C"
  9563. #endif
  9564. char shl_load ();
  9565. int
  9566. main ()
  9567. {
  9568. return shl_load ();
  9569. ;
  9570. return 0;
  9571. }
  9572. _ACEOF
  9573. if ac_fn_c_try_link "$LINENO"; then :
  9574. ac_cv_lib_dld_shl_load=yes
  9575. else
  9576. ac_cv_lib_dld_shl_load=no
  9577. fi
  9578. rm -f core conftest.err conftest.$ac_objext \
  9579. conftest$ac_exeext conftest.$ac_ext
  9580. LIBS=$ac_check_lib_save_LIBS
  9581. fi
  9582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9583. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9584. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9585. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9586. else
  9587. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9588. if test "x$ac_cv_func_dlopen" = xyes; then :
  9589. lt_cv_dlopen="dlopen"
  9590. else
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9592. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9593. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9594. $as_echo_n "(cached) " >&6
  9595. else
  9596. ac_check_lib_save_LIBS=$LIBS
  9597. LIBS="-ldl $LIBS"
  9598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9599. /* end confdefs.h. */
  9600. /* Override any GCC internal prototype to avoid an error.
  9601. Use char because int might match the return type of a GCC
  9602. builtin and then its argument prototype would still apply. */
  9603. #ifdef __cplusplus
  9604. extern "C"
  9605. #endif
  9606. char dlopen ();
  9607. int
  9608. main ()
  9609. {
  9610. return dlopen ();
  9611. ;
  9612. return 0;
  9613. }
  9614. _ACEOF
  9615. if ac_fn_c_try_link "$LINENO"; then :
  9616. ac_cv_lib_dl_dlopen=yes
  9617. else
  9618. ac_cv_lib_dl_dlopen=no
  9619. fi
  9620. rm -f core conftest.err conftest.$ac_objext \
  9621. conftest$ac_exeext conftest.$ac_ext
  9622. LIBS=$ac_check_lib_save_LIBS
  9623. fi
  9624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9625. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9626. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9627. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9628. else
  9629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9630. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9631. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9632. $as_echo_n "(cached) " >&6
  9633. else
  9634. ac_check_lib_save_LIBS=$LIBS
  9635. LIBS="-lsvld $LIBS"
  9636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9637. /* end confdefs.h. */
  9638. /* Override any GCC internal prototype to avoid an error.
  9639. Use char because int might match the return type of a GCC
  9640. builtin and then its argument prototype would still apply. */
  9641. #ifdef __cplusplus
  9642. extern "C"
  9643. #endif
  9644. char dlopen ();
  9645. int
  9646. main ()
  9647. {
  9648. return dlopen ();
  9649. ;
  9650. return 0;
  9651. }
  9652. _ACEOF
  9653. if ac_fn_c_try_link "$LINENO"; then :
  9654. ac_cv_lib_svld_dlopen=yes
  9655. else
  9656. ac_cv_lib_svld_dlopen=no
  9657. fi
  9658. rm -f core conftest.err conftest.$ac_objext \
  9659. conftest$ac_exeext conftest.$ac_ext
  9660. LIBS=$ac_check_lib_save_LIBS
  9661. fi
  9662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9663. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9664. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9665. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9666. else
  9667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9668. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9669. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9670. $as_echo_n "(cached) " >&6
  9671. else
  9672. ac_check_lib_save_LIBS=$LIBS
  9673. LIBS="-ldld $LIBS"
  9674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9675. /* end confdefs.h. */
  9676. /* Override any GCC internal prototype to avoid an error.
  9677. Use char because int might match the return type of a GCC
  9678. builtin and then its argument prototype would still apply. */
  9679. #ifdef __cplusplus
  9680. extern "C"
  9681. #endif
  9682. char dld_link ();
  9683. int
  9684. main ()
  9685. {
  9686. return dld_link ();
  9687. ;
  9688. return 0;
  9689. }
  9690. _ACEOF
  9691. if ac_fn_c_try_link "$LINENO"; then :
  9692. ac_cv_lib_dld_dld_link=yes
  9693. else
  9694. ac_cv_lib_dld_dld_link=no
  9695. fi
  9696. rm -f core conftest.err conftest.$ac_objext \
  9697. conftest$ac_exeext conftest.$ac_ext
  9698. LIBS=$ac_check_lib_save_LIBS
  9699. fi
  9700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9701. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9702. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9703. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9704. fi
  9705. fi
  9706. fi
  9707. fi
  9708. fi
  9709. fi
  9710. ;;
  9711. esac
  9712. if test "x$lt_cv_dlopen" != xno; then
  9713. enable_dlopen=yes
  9714. else
  9715. enable_dlopen=no
  9716. fi
  9717. case $lt_cv_dlopen in
  9718. dlopen)
  9719. save_CPPFLAGS="$CPPFLAGS"
  9720. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9721. save_LDFLAGS="$LDFLAGS"
  9722. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9723. save_LIBS="$LIBS"
  9724. LIBS="$lt_cv_dlopen_libs $LIBS"
  9725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9726. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9727. if ${lt_cv_dlopen_self+:} false; then :
  9728. $as_echo_n "(cached) " >&6
  9729. else
  9730. if test "$cross_compiling" = yes; then :
  9731. lt_cv_dlopen_self=cross
  9732. else
  9733. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9734. lt_status=$lt_dlunknown
  9735. cat > conftest.$ac_ext <<_LT_EOF
  9736. #line $LINENO "configure"
  9737. #include "confdefs.h"
  9738. #if HAVE_DLFCN_H
  9739. #include <dlfcn.h>
  9740. #endif
  9741. #include <stdio.h>
  9742. #ifdef RTLD_GLOBAL
  9743. # define LT_DLGLOBAL RTLD_GLOBAL
  9744. #else
  9745. # ifdef DL_GLOBAL
  9746. # define LT_DLGLOBAL DL_GLOBAL
  9747. # else
  9748. # define LT_DLGLOBAL 0
  9749. # endif
  9750. #endif
  9751. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9752. find out it does not work in some platform. */
  9753. #ifndef LT_DLLAZY_OR_NOW
  9754. # ifdef RTLD_LAZY
  9755. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9756. # else
  9757. # ifdef DL_LAZY
  9758. # define LT_DLLAZY_OR_NOW DL_LAZY
  9759. # else
  9760. # ifdef RTLD_NOW
  9761. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9762. # else
  9763. # ifdef DL_NOW
  9764. # define LT_DLLAZY_OR_NOW DL_NOW
  9765. # else
  9766. # define LT_DLLAZY_OR_NOW 0
  9767. # endif
  9768. # endif
  9769. # endif
  9770. # endif
  9771. #endif
  9772. /* When -fvisbility=hidden is used, assume the code has been annotated
  9773. correspondingly for the symbols needed. */
  9774. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9775. int fnord () __attribute__((visibility("default")));
  9776. #endif
  9777. int fnord () { return 42; }
  9778. int main ()
  9779. {
  9780. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9781. int status = $lt_dlunknown;
  9782. if (self)
  9783. {
  9784. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9785. else
  9786. {
  9787. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9788. else puts (dlerror ());
  9789. }
  9790. /* dlclose (self); */
  9791. }
  9792. else
  9793. puts (dlerror ());
  9794. return status;
  9795. }
  9796. _LT_EOF
  9797. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9798. (eval $ac_link) 2>&5
  9799. ac_status=$?
  9800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9801. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9802. (./conftest; exit; ) >&5 2>/dev/null
  9803. lt_status=$?
  9804. case x$lt_status in
  9805. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9806. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9807. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9808. esac
  9809. else :
  9810. # compilation failed
  9811. lt_cv_dlopen_self=no
  9812. fi
  9813. fi
  9814. rm -fr conftest*
  9815. fi
  9816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9817. $as_echo "$lt_cv_dlopen_self" >&6; }
  9818. if test "x$lt_cv_dlopen_self" = xyes; then
  9819. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9821. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9822. if ${lt_cv_dlopen_self_static+:} false; then :
  9823. $as_echo_n "(cached) " >&6
  9824. else
  9825. if test "$cross_compiling" = yes; then :
  9826. lt_cv_dlopen_self_static=cross
  9827. else
  9828. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9829. lt_status=$lt_dlunknown
  9830. cat > conftest.$ac_ext <<_LT_EOF
  9831. #line $LINENO "configure"
  9832. #include "confdefs.h"
  9833. #if HAVE_DLFCN_H
  9834. #include <dlfcn.h>
  9835. #endif
  9836. #include <stdio.h>
  9837. #ifdef RTLD_GLOBAL
  9838. # define LT_DLGLOBAL RTLD_GLOBAL
  9839. #else
  9840. # ifdef DL_GLOBAL
  9841. # define LT_DLGLOBAL DL_GLOBAL
  9842. # else
  9843. # define LT_DLGLOBAL 0
  9844. # endif
  9845. #endif
  9846. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9847. find out it does not work in some platform. */
  9848. #ifndef LT_DLLAZY_OR_NOW
  9849. # ifdef RTLD_LAZY
  9850. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9851. # else
  9852. # ifdef DL_LAZY
  9853. # define LT_DLLAZY_OR_NOW DL_LAZY
  9854. # else
  9855. # ifdef RTLD_NOW
  9856. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9857. # else
  9858. # ifdef DL_NOW
  9859. # define LT_DLLAZY_OR_NOW DL_NOW
  9860. # else
  9861. # define LT_DLLAZY_OR_NOW 0
  9862. # endif
  9863. # endif
  9864. # endif
  9865. # endif
  9866. #endif
  9867. /* When -fvisbility=hidden is used, assume the code has been annotated
  9868. correspondingly for the symbols needed. */
  9869. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9870. int fnord () __attribute__((visibility("default")));
  9871. #endif
  9872. int fnord () { return 42; }
  9873. int main ()
  9874. {
  9875. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9876. int status = $lt_dlunknown;
  9877. if (self)
  9878. {
  9879. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9880. else
  9881. {
  9882. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9883. else puts (dlerror ());
  9884. }
  9885. /* dlclose (self); */
  9886. }
  9887. else
  9888. puts (dlerror ());
  9889. return status;
  9890. }
  9891. _LT_EOF
  9892. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9893. (eval $ac_link) 2>&5
  9894. ac_status=$?
  9895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9896. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9897. (./conftest; exit; ) >&5 2>/dev/null
  9898. lt_status=$?
  9899. case x$lt_status in
  9900. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9901. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9902. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9903. esac
  9904. else :
  9905. # compilation failed
  9906. lt_cv_dlopen_self_static=no
  9907. fi
  9908. fi
  9909. rm -fr conftest*
  9910. fi
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9912. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9913. fi
  9914. CPPFLAGS="$save_CPPFLAGS"
  9915. LDFLAGS="$save_LDFLAGS"
  9916. LIBS="$save_LIBS"
  9917. ;;
  9918. esac
  9919. case $lt_cv_dlopen_self in
  9920. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9921. *) enable_dlopen_self=unknown ;;
  9922. esac
  9923. case $lt_cv_dlopen_self_static in
  9924. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9925. *) enable_dlopen_self_static=unknown ;;
  9926. esac
  9927. fi
  9928. striplib=
  9929. old_striplib=
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9931. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9932. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9933. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9934. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9936. $as_echo "yes" >&6; }
  9937. else
  9938. # FIXME - insert some real tests, host_os isn't really good enough
  9939. case $host_os in
  9940. darwin*)
  9941. if test -n "$STRIP" ; then
  9942. striplib="$STRIP -x"
  9943. old_striplib="$STRIP -S"
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9945. $as_echo "yes" >&6; }
  9946. else
  9947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9948. $as_echo "no" >&6; }
  9949. fi
  9950. ;;
  9951. *)
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9953. $as_echo "no" >&6; }
  9954. ;;
  9955. esac
  9956. fi
  9957. # Report which library types will actually be built
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9959. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9961. $as_echo "$can_build_shared" >&6; }
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9963. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9964. test "$can_build_shared" = "no" && enable_shared=no
  9965. # On AIX, shared libraries and static libraries use the same namespace, and
  9966. # are all built from PIC.
  9967. case $host_os in
  9968. aix3*)
  9969. test "$enable_shared" = yes && enable_static=no
  9970. if test -n "$RANLIB"; then
  9971. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9972. postinstall_cmds='$RANLIB $lib'
  9973. fi
  9974. ;;
  9975. aix[4-9]*)
  9976. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9977. test "$enable_shared" = yes && enable_static=no
  9978. fi
  9979. ;;
  9980. esac
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9982. $as_echo "$enable_shared" >&6; }
  9983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9984. $as_echo_n "checking whether to build static libraries... " >&6; }
  9985. # Make sure either enable_shared or enable_static is yes.
  9986. test "$enable_shared" = yes || enable_static=yes
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9988. $as_echo "$enable_static" >&6; }
  9989. fi
  9990. ac_ext=c
  9991. ac_cpp='$CPP $CPPFLAGS'
  9992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9995. CC="$lt_save_CC"
  9996. ac_config_commands="$ac_config_commands libtool"
  9997. # Only expand once:
  9998. ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile"
  9999. cat >confcache <<\_ACEOF
  10000. # This file is a shell script that caches the results of configure
  10001. # tests run on this system so they can be shared between configure
  10002. # scripts and configure runs, see configure's option --config-cache.
  10003. # It is not useful on other systems. If it contains results you don't
  10004. # want to keep, you may remove or edit it.
  10005. #
  10006. # config.status only pays attention to the cache file if you give it
  10007. # the --recheck option to rerun configure.
  10008. #
  10009. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10010. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10011. # following values.
  10012. _ACEOF
  10013. # The following way of writing the cache mishandles newlines in values,
  10014. # but we know of no workaround that is simple, portable, and efficient.
  10015. # So, we kill variables containing newlines.
  10016. # Ultrix sh set writes to stderr and can't be redirected directly,
  10017. # and sets the high bit in the cache file unless we assign to the vars.
  10018. (
  10019. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10020. eval ac_val=\$$ac_var
  10021. case $ac_val in #(
  10022. *${as_nl}*)
  10023. case $ac_var in #(
  10024. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10025. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10026. esac
  10027. case $ac_var in #(
  10028. _ | IFS | as_nl) ;; #(
  10029. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10030. *) { eval $ac_var=; unset $ac_var;} ;;
  10031. esac ;;
  10032. esac
  10033. done
  10034. (set) 2>&1 |
  10035. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10036. *${as_nl}ac_space=\ *)
  10037. # `set' does not quote correctly, so add quotes: double-quote
  10038. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10039. sed -n \
  10040. "s/'/'\\\\''/g;
  10041. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10042. ;; #(
  10043. *)
  10044. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10045. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10046. ;;
  10047. esac |
  10048. sort
  10049. ) |
  10050. sed '
  10051. /^ac_cv_env_/b end
  10052. t clear
  10053. :clear
  10054. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10055. t end
  10056. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10057. :end' >>confcache
  10058. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10059. if test -w "$cache_file"; then
  10060. if test "x$cache_file" != "x/dev/null"; then
  10061. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10062. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10063. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10064. cat confcache >"$cache_file"
  10065. else
  10066. case $cache_file in #(
  10067. */* | ?:*)
  10068. mv -f confcache "$cache_file"$$ &&
  10069. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10070. *)
  10071. mv -f confcache "$cache_file" ;;
  10072. esac
  10073. fi
  10074. fi
  10075. else
  10076. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10077. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10078. fi
  10079. fi
  10080. rm -f confcache
  10081. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10082. # Let make expand exec_prefix.
  10083. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10084. # Transform confdefs.h into DEFS.
  10085. # Protect against shell expansion while executing Makefile rules.
  10086. # Protect against Makefile macro expansion.
  10087. #
  10088. # If the first sed substitution is executed (which looks for macros that
  10089. # take arguments), then branch to the quote section. Otherwise,
  10090. # look for a macro that doesn't take arguments.
  10091. ac_script='
  10092. :mline
  10093. /\\$/{
  10094. N
  10095. s,\\\n,,
  10096. b mline
  10097. }
  10098. t clear
  10099. :clear
  10100. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  10101. t quote
  10102. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  10103. t quote
  10104. b any
  10105. :quote
  10106. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  10107. s/\[/\\&/g
  10108. s/\]/\\&/g
  10109. s/\$/$$/g
  10110. H
  10111. :any
  10112. ${
  10113. g
  10114. s/^\n//
  10115. s/\n/ /g
  10116. p
  10117. }
  10118. '
  10119. DEFS=`sed -n "$ac_script" confdefs.h`
  10120. ac_libobjs=
  10121. ac_ltlibobjs=
  10122. U=
  10123. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10124. # 1. Remove the extension, and $U if already installed.
  10125. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10126. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10127. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10128. # will be set to the directory where LIBOBJS objects are built.
  10129. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10130. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10131. done
  10132. LIBOBJS=$ac_libobjs
  10133. LTLIBOBJS=$ac_ltlibobjs
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10135. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10136. if test -n "$am_sleep_pid"; then
  10137. # Hide warnings about reused PIDs.
  10138. wait $am_sleep_pid 2>/dev/null
  10139. fi
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10141. $as_echo "done" >&6; }
  10142. if test -n "$EXEEXT"; then
  10143. am__EXEEXT_TRUE=
  10144. am__EXEEXT_FALSE='#'
  10145. else
  10146. am__EXEEXT_TRUE='#'
  10147. am__EXEEXT_FALSE=
  10148. fi
  10149. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10150. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10151. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10152. fi
  10153. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10154. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10155. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10156. fi
  10157. if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
  10158. as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
  10159. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10160. fi
  10161. : "${CONFIG_STATUS=./config.status}"
  10162. ac_write_fail=0
  10163. ac_clean_files_save=$ac_clean_files
  10164. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10165. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10166. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10167. as_write_fail=0
  10168. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10169. #! $SHELL
  10170. # Generated by $as_me.
  10171. # Run this file to recreate the current configuration.
  10172. # Compiler output produced by configure, useful for debugging
  10173. # configure, is in config.log if it exists.
  10174. debug=false
  10175. ac_cs_recheck=false
  10176. ac_cs_silent=false
  10177. SHELL=\${CONFIG_SHELL-$SHELL}
  10178. export SHELL
  10179. _ASEOF
  10180. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10181. ## -------------------- ##
  10182. ## M4sh Initialization. ##
  10183. ## -------------------- ##
  10184. # Be more Bourne compatible
  10185. DUALCASE=1; export DUALCASE # for MKS sh
  10186. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10187. emulate sh
  10188. NULLCMD=:
  10189. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10190. # is contrary to our usage. Disable this feature.
  10191. alias -g '${1+"$@"}'='"$@"'
  10192. setopt NO_GLOB_SUBST
  10193. else
  10194. case `(set -o) 2>/dev/null` in #(
  10195. *posix*) :
  10196. set -o posix ;; #(
  10197. *) :
  10198. ;;
  10199. esac
  10200. fi
  10201. as_nl='
  10202. '
  10203. export as_nl
  10204. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10205. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10206. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10207. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10208. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10209. # but without wasting forks for bash or zsh.
  10210. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10211. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10212. as_echo='print -r --'
  10213. as_echo_n='print -rn --'
  10214. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10215. as_echo='printf %s\n'
  10216. as_echo_n='printf %s'
  10217. else
  10218. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10219. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10220. as_echo_n='/usr/ucb/echo -n'
  10221. else
  10222. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10223. as_echo_n_body='eval
  10224. arg=$1;
  10225. case $arg in #(
  10226. *"$as_nl"*)
  10227. expr "X$arg" : "X\\(.*\\)$as_nl";
  10228. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10229. esac;
  10230. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10231. '
  10232. export as_echo_n_body
  10233. as_echo_n='sh -c $as_echo_n_body as_echo'
  10234. fi
  10235. export as_echo_body
  10236. as_echo='sh -c $as_echo_body as_echo'
  10237. fi
  10238. # The user is always right.
  10239. if test "${PATH_SEPARATOR+set}" != set; then
  10240. PATH_SEPARATOR=:
  10241. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10242. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10243. PATH_SEPARATOR=';'
  10244. }
  10245. fi
  10246. # IFS
  10247. # We need space, tab and new line, in precisely that order. Quoting is
  10248. # there to prevent editors from complaining about space-tab.
  10249. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10250. # splitting by setting IFS to empty value.)
  10251. IFS=" "" $as_nl"
  10252. # Find who we are. Look in the path if we contain no directory separator.
  10253. as_myself=
  10254. case $0 in #((
  10255. *[\\/]* ) as_myself=$0 ;;
  10256. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10257. for as_dir in $PATH
  10258. do
  10259. IFS=$as_save_IFS
  10260. test -z "$as_dir" && as_dir=.
  10261. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10262. done
  10263. IFS=$as_save_IFS
  10264. ;;
  10265. esac
  10266. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10267. # in which case we are not to be found in the path.
  10268. if test "x$as_myself" = x; then
  10269. as_myself=$0
  10270. fi
  10271. if test ! -f "$as_myself"; then
  10272. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10273. exit 1
  10274. fi
  10275. # Unset variables that we do not need and which cause bugs (e.g. in
  10276. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10277. # suppresses any "Segmentation fault" message there. '((' could
  10278. # trigger a bug in pdksh 5.2.14.
  10279. for as_var in BASH_ENV ENV MAIL MAILPATH
  10280. do eval test x\${$as_var+set} = xset \
  10281. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10282. done
  10283. PS1='$ '
  10284. PS2='> '
  10285. PS4='+ '
  10286. # NLS nuisances.
  10287. LC_ALL=C
  10288. export LC_ALL
  10289. LANGUAGE=C
  10290. export LANGUAGE
  10291. # CDPATH.
  10292. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10293. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10294. # ----------------------------------------
  10295. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10296. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10297. # script with STATUS, using 1 if that was 0.
  10298. as_fn_error ()
  10299. {
  10300. as_status=$1; test $as_status -eq 0 && as_status=1
  10301. if test "$4"; then
  10302. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10303. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10304. fi
  10305. $as_echo "$as_me: error: $2" >&2
  10306. as_fn_exit $as_status
  10307. } # as_fn_error
  10308. # as_fn_set_status STATUS
  10309. # -----------------------
  10310. # Set $? to STATUS, without forking.
  10311. as_fn_set_status ()
  10312. {
  10313. return $1
  10314. } # as_fn_set_status
  10315. # as_fn_exit STATUS
  10316. # -----------------
  10317. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10318. as_fn_exit ()
  10319. {
  10320. set +e
  10321. as_fn_set_status $1
  10322. exit $1
  10323. } # as_fn_exit
  10324. # as_fn_unset VAR
  10325. # ---------------
  10326. # Portably unset VAR.
  10327. as_fn_unset ()
  10328. {
  10329. { eval $1=; unset $1;}
  10330. }
  10331. as_unset=as_fn_unset
  10332. # as_fn_append VAR VALUE
  10333. # ----------------------
  10334. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10335. # advantage of any shell optimizations that allow amortized linear growth over
  10336. # repeated appends, instead of the typical quadratic growth present in naive
  10337. # implementations.
  10338. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10339. eval 'as_fn_append ()
  10340. {
  10341. eval $1+=\$2
  10342. }'
  10343. else
  10344. as_fn_append ()
  10345. {
  10346. eval $1=\$$1\$2
  10347. }
  10348. fi # as_fn_append
  10349. # as_fn_arith ARG...
  10350. # ------------------
  10351. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10352. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10353. # must be portable across $(()) and expr.
  10354. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10355. eval 'as_fn_arith ()
  10356. {
  10357. as_val=$(( $* ))
  10358. }'
  10359. else
  10360. as_fn_arith ()
  10361. {
  10362. as_val=`expr "$@" || test $? -eq 1`
  10363. }
  10364. fi # as_fn_arith
  10365. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10366. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10367. as_expr=expr
  10368. else
  10369. as_expr=false
  10370. fi
  10371. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10372. as_basename=basename
  10373. else
  10374. as_basename=false
  10375. fi
  10376. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10377. as_dirname=dirname
  10378. else
  10379. as_dirname=false
  10380. fi
  10381. as_me=`$as_basename -- "$0" ||
  10382. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10383. X"$0" : 'X\(//\)$' \| \
  10384. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10385. $as_echo X/"$0" |
  10386. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10387. s//\1/
  10388. q
  10389. }
  10390. /^X\/\(\/\/\)$/{
  10391. s//\1/
  10392. q
  10393. }
  10394. /^X\/\(\/\).*/{
  10395. s//\1/
  10396. q
  10397. }
  10398. s/.*/./; q'`
  10399. # Avoid depending upon Character Ranges.
  10400. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10401. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10402. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10403. as_cr_digits='0123456789'
  10404. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10405. ECHO_C= ECHO_N= ECHO_T=
  10406. case `echo -n x` in #(((((
  10407. -n*)
  10408. case `echo 'xy\c'` in
  10409. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10410. xy) ECHO_C='\c';;
  10411. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10412. ECHO_T=' ';;
  10413. esac;;
  10414. *)
  10415. ECHO_N='-n';;
  10416. esac
  10417. rm -f conf$$ conf$$.exe conf$$.file
  10418. if test -d conf$$.dir; then
  10419. rm -f conf$$.dir/conf$$.file
  10420. else
  10421. rm -f conf$$.dir
  10422. mkdir conf$$.dir 2>/dev/null
  10423. fi
  10424. if (echo >conf$$.file) 2>/dev/null; then
  10425. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10426. as_ln_s='ln -s'
  10427. # ... but there are two gotchas:
  10428. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10429. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10430. # In both cases, we have to default to `cp -pR'.
  10431. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10432. as_ln_s='cp -pR'
  10433. elif ln conf$$.file conf$$ 2>/dev/null; then
  10434. as_ln_s=ln
  10435. else
  10436. as_ln_s='cp -pR'
  10437. fi
  10438. else
  10439. as_ln_s='cp -pR'
  10440. fi
  10441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10442. rmdir conf$$.dir 2>/dev/null
  10443. # as_fn_mkdir_p
  10444. # -------------
  10445. # Create "$as_dir" as a directory, including parents if necessary.
  10446. as_fn_mkdir_p ()
  10447. {
  10448. case $as_dir in #(
  10449. -*) as_dir=./$as_dir;;
  10450. esac
  10451. test -d "$as_dir" || eval $as_mkdir_p || {
  10452. as_dirs=
  10453. while :; do
  10454. case $as_dir in #(
  10455. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10456. *) as_qdir=$as_dir;;
  10457. esac
  10458. as_dirs="'$as_qdir' $as_dirs"
  10459. as_dir=`$as_dirname -- "$as_dir" ||
  10460. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10461. X"$as_dir" : 'X\(//\)[^/]' \| \
  10462. X"$as_dir" : 'X\(//\)$' \| \
  10463. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10464. $as_echo X"$as_dir" |
  10465. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10466. s//\1/
  10467. q
  10468. }
  10469. /^X\(\/\/\)[^/].*/{
  10470. s//\1/
  10471. q
  10472. }
  10473. /^X\(\/\/\)$/{
  10474. s//\1/
  10475. q
  10476. }
  10477. /^X\(\/\).*/{
  10478. s//\1/
  10479. q
  10480. }
  10481. s/.*/./; q'`
  10482. test -d "$as_dir" && break
  10483. done
  10484. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10485. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10486. } # as_fn_mkdir_p
  10487. if mkdir -p . 2>/dev/null; then
  10488. as_mkdir_p='mkdir -p "$as_dir"'
  10489. else
  10490. test -d ./-p && rmdir ./-p
  10491. as_mkdir_p=false
  10492. fi
  10493. # as_fn_executable_p FILE
  10494. # -----------------------
  10495. # Test if FILE is an executable regular file.
  10496. as_fn_executable_p ()
  10497. {
  10498. test -f "$1" && test -x "$1"
  10499. } # as_fn_executable_p
  10500. as_test_x='test -x'
  10501. as_executable_p=as_fn_executable_p
  10502. # Sed expression to map a string onto a valid CPP name.
  10503. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10504. # Sed expression to map a string onto a valid variable name.
  10505. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10506. exec 6>&1
  10507. ## ----------------------------------- ##
  10508. ## Main body of $CONFIG_STATUS script. ##
  10509. ## ----------------------------------- ##
  10510. _ASEOF
  10511. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10512. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10513. # Save the log message, to keep $0 and so on meaningful, and to
  10514. # report actual input values of CONFIG_FILES etc. instead of their
  10515. # values after options handling.
  10516. ac_log="
  10517. This file was extended by OPCUAServer $as_me 1.0, which was
  10518. generated by GNU Autoconf 2.69. Invocation command line was
  10519. CONFIG_FILES = $CONFIG_FILES
  10520. CONFIG_HEADERS = $CONFIG_HEADERS
  10521. CONFIG_LINKS = $CONFIG_LINKS
  10522. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10523. $ $0 $@
  10524. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10525. "
  10526. _ACEOF
  10527. case $ac_config_files in *"
  10528. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10529. esac
  10530. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10531. # Files that config.status was made for.
  10532. config_files="$ac_config_files"
  10533. config_commands="$ac_config_commands"
  10534. _ACEOF
  10535. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10536. ac_cs_usage="\
  10537. \`$as_me' instantiates files and other configuration actions
  10538. from templates according to the current configuration. Unless the files
  10539. and actions are specified as TAGs, all are instantiated by default.
  10540. Usage: $0 [OPTION]... [TAG]...
  10541. -h, --help print this help, then exit
  10542. -V, --version print version number and configuration settings, then exit
  10543. --config print configuration, then exit
  10544. -q, --quiet, --silent
  10545. do not print progress messages
  10546. -d, --debug don't remove temporary files
  10547. --recheck update $as_me by reconfiguring in the same conditions
  10548. --file=FILE[:TEMPLATE]
  10549. instantiate the configuration file FILE
  10550. Configuration files:
  10551. $config_files
  10552. Configuration commands:
  10553. $config_commands
  10554. Report bugs to the package provider."
  10555. _ACEOF
  10556. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10557. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10558. ac_cs_version="\\
  10559. OPCUAServer config.status 1.0
  10560. configured by $0, generated by GNU Autoconf 2.69,
  10561. with options \\"\$ac_cs_config\\"
  10562. Copyright (C) 2012 Free Software Foundation, Inc.
  10563. This config.status script is free software; the Free Software Foundation
  10564. gives unlimited permission to copy, distribute and modify it."
  10565. ac_pwd='$ac_pwd'
  10566. srcdir='$srcdir'
  10567. INSTALL='$INSTALL'
  10568. MKDIR_P='$MKDIR_P'
  10569. AWK='$AWK'
  10570. test -n "\$AWK" || AWK=awk
  10571. _ACEOF
  10572. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10573. # The default lists apply if the user does not specify any file.
  10574. ac_need_defaults=:
  10575. while test $# != 0
  10576. do
  10577. case $1 in
  10578. --*=?*)
  10579. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10580. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10581. ac_shift=:
  10582. ;;
  10583. --*=)
  10584. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10585. ac_optarg=
  10586. ac_shift=:
  10587. ;;
  10588. *)
  10589. ac_option=$1
  10590. ac_optarg=$2
  10591. ac_shift=shift
  10592. ;;
  10593. esac
  10594. case $ac_option in
  10595. # Handling of the options.
  10596. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10597. ac_cs_recheck=: ;;
  10598. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10599. $as_echo "$ac_cs_version"; exit ;;
  10600. --config | --confi | --conf | --con | --co | --c )
  10601. $as_echo "$ac_cs_config"; exit ;;
  10602. --debug | --debu | --deb | --de | --d | -d )
  10603. debug=: ;;
  10604. --file | --fil | --fi | --f )
  10605. $ac_shift
  10606. case $ac_optarg in
  10607. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10608. '') as_fn_error $? "missing file argument" ;;
  10609. esac
  10610. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10611. ac_need_defaults=false;;
  10612. --he | --h | --help | --hel | -h )
  10613. $as_echo "$ac_cs_usage"; exit ;;
  10614. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10615. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10616. ac_cs_silent=: ;;
  10617. # This is an error.
  10618. -*) as_fn_error $? "unrecognized option: \`$1'
  10619. Try \`$0 --help' for more information." ;;
  10620. *) as_fn_append ac_config_targets " $1"
  10621. ac_need_defaults=false ;;
  10622. esac
  10623. shift
  10624. done
  10625. ac_configure_extra_args=
  10626. if $ac_cs_silent; then
  10627. exec 6>/dev/null
  10628. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10629. fi
  10630. _ACEOF
  10631. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10632. if \$ac_cs_recheck; then
  10633. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10634. shift
  10635. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10636. CONFIG_SHELL='$SHELL'
  10637. export CONFIG_SHELL
  10638. exec "\$@"
  10639. fi
  10640. _ACEOF
  10641. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10642. exec 5>>config.log
  10643. {
  10644. echo
  10645. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10646. ## Running $as_me. ##
  10647. _ASBOX
  10648. $as_echo "$ac_log"
  10649. } >&5
  10650. _ACEOF
  10651. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10652. #
  10653. # INIT-COMMANDS
  10654. #
  10655. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10656. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10657. # if CDPATH is set.
  10658. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10659. sed_quote_subst='$sed_quote_subst'
  10660. double_quote_subst='$double_quote_subst'
  10661. delay_variable_subst='$delay_variable_subst'
  10662. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10663. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10664. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10665. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10666. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10667. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10668. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10669. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10670. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  10671. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10672. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10673. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10674. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10675. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10676. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10677. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10678. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10679. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10680. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10681. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10682. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10683. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10684. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10685. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10686. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10687. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10688. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10689. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10690. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10691. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10692. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10693. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10694. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10695. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10696. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10697. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10698. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10699. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10700. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10701. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10702. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10703. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10704. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10705. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10706. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10707. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10708. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10709. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10710. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10711. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10712. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10713. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10714. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10715. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10716. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10717. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10718. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10719. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  10720. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  10721. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10722. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10723. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10724. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10725. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10726. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10727. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10728. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10729. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  10730. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10731. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10732. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10733. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10734. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10735. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10736. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10737. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10738. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10739. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10740. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10741. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10742. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10743. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10744. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10745. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10746. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10747. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10748. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10749. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10750. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10751. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10752. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10753. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10754. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10755. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10756. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10757. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10758. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10759. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10760. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10761. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10762. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10763. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10764. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10765. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10766. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  10767. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10768. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10769. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10770. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10771. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10772. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10773. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10774. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10775. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10776. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10777. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10778. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10779. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10780. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10781. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10782. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10783. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10784. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10785. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10786. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10787. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10788. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10789. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10790. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10791. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10792. LTCC='$LTCC'
  10793. LTCFLAGS='$LTCFLAGS'
  10794. compiler='$compiler_DEFAULT'
  10795. # A function that is used when there is no print builtin or printf.
  10796. func_fallback_echo ()
  10797. {
  10798. eval 'cat <<_LTECHO_EOF
  10799. \$1
  10800. _LTECHO_EOF'
  10801. }
  10802. # Quote evaled strings.
  10803. for var in SHELL \
  10804. ECHO \
  10805. PATH_SEPARATOR \
  10806. SED \
  10807. GREP \
  10808. EGREP \
  10809. FGREP \
  10810. LD \
  10811. NM \
  10812. LN_S \
  10813. lt_SP2NL \
  10814. lt_NL2SP \
  10815. reload_flag \
  10816. OBJDUMP \
  10817. deplibs_check_method \
  10818. file_magic_cmd \
  10819. file_magic_glob \
  10820. want_nocaseglob \
  10821. DLLTOOL \
  10822. sharedlib_from_linklib_cmd \
  10823. AR \
  10824. AR_FLAGS \
  10825. archiver_list_spec \
  10826. STRIP \
  10827. RANLIB \
  10828. CC \
  10829. CFLAGS \
  10830. compiler \
  10831. lt_cv_sys_global_symbol_pipe \
  10832. lt_cv_sys_global_symbol_to_cdecl \
  10833. lt_cv_sys_global_symbol_to_c_name_address \
  10834. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10835. nm_file_list_spec \
  10836. lt_prog_compiler_no_builtin_flag \
  10837. lt_prog_compiler_pic \
  10838. lt_prog_compiler_wl \
  10839. lt_prog_compiler_static \
  10840. lt_cv_prog_compiler_c_o \
  10841. need_locks \
  10842. MANIFEST_TOOL \
  10843. DSYMUTIL \
  10844. NMEDIT \
  10845. LIPO \
  10846. OTOOL \
  10847. OTOOL64 \
  10848. shrext_cmds \
  10849. export_dynamic_flag_spec \
  10850. whole_archive_flag_spec \
  10851. compiler_needs_object \
  10852. with_gnu_ld \
  10853. allow_undefined_flag \
  10854. no_undefined_flag \
  10855. hardcode_libdir_flag_spec \
  10856. hardcode_libdir_separator \
  10857. exclude_expsyms \
  10858. include_expsyms \
  10859. file_list_spec \
  10860. variables_saved_for_relink \
  10861. libname_spec \
  10862. library_names_spec \
  10863. soname_spec \
  10864. install_override_mode \
  10865. finish_eval \
  10866. old_striplib \
  10867. striplib; do
  10868. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10869. *[\\\\\\\`\\"\\\$]*)
  10870. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10871. ;;
  10872. *)
  10873. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10874. ;;
  10875. esac
  10876. done
  10877. # Double-quote double-evaled strings.
  10878. for var in reload_cmds \
  10879. old_postinstall_cmds \
  10880. old_postuninstall_cmds \
  10881. old_archive_cmds \
  10882. extract_expsyms_cmds \
  10883. old_archive_from_new_cmds \
  10884. old_archive_from_expsyms_cmds \
  10885. archive_cmds \
  10886. archive_expsym_cmds \
  10887. module_cmds \
  10888. module_expsym_cmds \
  10889. export_symbols_cmds \
  10890. prelink_cmds \
  10891. postlink_cmds \
  10892. postinstall_cmds \
  10893. postuninstall_cmds \
  10894. finish_cmds \
  10895. sys_lib_search_path_spec \
  10896. sys_lib_dlsearch_path_spec; do
  10897. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10898. *[\\\\\\\`\\"\\\$]*)
  10899. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10900. ;;
  10901. *)
  10902. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10903. ;;
  10904. esac
  10905. done
  10906. ac_aux_dir='$ac_aux_dir'
  10907. xsi_shell='$xsi_shell'
  10908. lt_shell_append='$lt_shell_append'
  10909. # See if we are running on zsh, and set the options which allow our
  10910. # commands through without removal of \ escapes INIT.
  10911. if test -n "\${ZSH_VERSION+set}" ; then
  10912. setopt NO_GLOB_SUBST
  10913. fi
  10914. PACKAGE='$PACKAGE'
  10915. VERSION='$VERSION'
  10916. TIMESTAMP='$TIMESTAMP'
  10917. RM='$RM'
  10918. ofile='$ofile'
  10919. _ACEOF
  10920. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10921. # Handling of arguments.
  10922. for ac_config_target in $ac_config_targets
  10923. do
  10924. case $ac_config_target in
  10925. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10926. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10927. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10928. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10929. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  10930. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10931. esac
  10932. done
  10933. # If the user did not use the arguments to specify the items to instantiate,
  10934. # then the envvar interface is used. Set only those that are not.
  10935. # We use the long form for the default assignment because of an extremely
  10936. # bizarre bug on SunOS 4.1.3.
  10937. if $ac_need_defaults; then
  10938. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10939. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10940. fi
  10941. # Have a temporary directory for convenience. Make it in the build tree
  10942. # simply because there is no reason against having it here, and in addition,
  10943. # creating and moving files from /tmp can sometimes cause problems.
  10944. # Hook for its removal unless debugging.
  10945. # Note that there is a small window in which the directory will not be cleaned:
  10946. # after its creation but before its name has been assigned to `$tmp'.
  10947. $debug ||
  10948. {
  10949. tmp= ac_tmp=
  10950. trap 'exit_status=$?
  10951. : "${ac_tmp:=$tmp}"
  10952. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10953. ' 0
  10954. trap 'as_fn_exit 1' 1 2 13 15
  10955. }
  10956. # Create a (secure) tmp directory for tmp files.
  10957. {
  10958. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10959. test -d "$tmp"
  10960. } ||
  10961. {
  10962. tmp=./conf$$-$RANDOM
  10963. (umask 077 && mkdir "$tmp")
  10964. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10965. ac_tmp=$tmp
  10966. # Set up the scripts for CONFIG_FILES section.
  10967. # No need to generate them if there are no CONFIG_FILES.
  10968. # This happens for instance with `./config.status config.h'.
  10969. if test -n "$CONFIG_FILES"; then
  10970. ac_cr=`echo X | tr X '\015'`
  10971. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10972. # But we know of no other shell where ac_cr would be empty at this
  10973. # point, so we can use a bashism as a fallback.
  10974. if test "x$ac_cr" = x; then
  10975. eval ac_cr=\$\'\\r\'
  10976. fi
  10977. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10978. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10979. ac_cs_awk_cr='\\r'
  10980. else
  10981. ac_cs_awk_cr=$ac_cr
  10982. fi
  10983. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10984. _ACEOF
  10985. {
  10986. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10987. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10988. echo "_ACEOF"
  10989. } >conf$$subs.sh ||
  10990. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10991. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10992. ac_delim='%!_!# '
  10993. for ac_last_try in false false false false false :; do
  10994. . ./conf$$subs.sh ||
  10995. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10996. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10997. if test $ac_delim_n = $ac_delim_num; then
  10998. break
  10999. elif $ac_last_try; then
  11000. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11001. else
  11002. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11003. fi
  11004. done
  11005. rm -f conf$$subs.sh
  11006. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11007. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11008. _ACEOF
  11009. sed -n '
  11010. h
  11011. s/^/S["/; s/!.*/"]=/
  11012. p
  11013. g
  11014. s/^[^!]*!//
  11015. :repl
  11016. t repl
  11017. s/'"$ac_delim"'$//
  11018. t delim
  11019. :nl
  11020. h
  11021. s/\(.\{148\}\)..*/\1/
  11022. t more1
  11023. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11024. p
  11025. n
  11026. b repl
  11027. :more1
  11028. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11029. p
  11030. g
  11031. s/.\{148\}//
  11032. t nl
  11033. :delim
  11034. h
  11035. s/\(.\{148\}\)..*/\1/
  11036. t more2
  11037. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11038. p
  11039. b
  11040. :more2
  11041. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11042. p
  11043. g
  11044. s/.\{148\}//
  11045. t delim
  11046. ' <conf$$subs.awk | sed '
  11047. /^[^""]/{
  11048. N
  11049. s/\n//
  11050. }
  11051. ' >>$CONFIG_STATUS || ac_write_fail=1
  11052. rm -f conf$$subs.awk
  11053. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11054. _ACAWK
  11055. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11056. for (key in S) S_is_set[key] = 1
  11057. FS = ""
  11058. }
  11059. {
  11060. line = $ 0
  11061. nfields = split(line, field, "@")
  11062. substed = 0
  11063. len = length(field[1])
  11064. for (i = 2; i < nfields; i++) {
  11065. key = field[i]
  11066. keylen = length(key)
  11067. if (S_is_set[key]) {
  11068. value = S[key]
  11069. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11070. len += length(value) + length(field[++i])
  11071. substed = 1
  11072. } else
  11073. len += 1 + keylen
  11074. }
  11075. print line
  11076. }
  11077. _ACAWK
  11078. _ACEOF
  11079. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11080. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11081. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11082. else
  11083. cat
  11084. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11085. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11086. _ACEOF
  11087. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11088. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11089. # trailing colons and then remove the whole line if VPATH becomes empty
  11090. # (actually we leave an empty line to preserve line numbers).
  11091. if test "x$srcdir" = x.; then
  11092. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11093. h
  11094. s///
  11095. s/^/:/
  11096. s/[ ]*$/:/
  11097. s/:\$(srcdir):/:/g
  11098. s/:\${srcdir}:/:/g
  11099. s/:@srcdir@:/:/g
  11100. s/^:*//
  11101. s/:*$//
  11102. x
  11103. s/\(=[ ]*\).*/\1/
  11104. G
  11105. s/\n//
  11106. s/^[^=]*=[ ]*$//
  11107. }'
  11108. fi
  11109. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11110. fi # test -n "$CONFIG_FILES"
  11111. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  11112. shift
  11113. for ac_tag
  11114. do
  11115. case $ac_tag in
  11116. :[FHLC]) ac_mode=$ac_tag; continue;;
  11117. esac
  11118. case $ac_mode$ac_tag in
  11119. :[FHL]*:*);;
  11120. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11121. :[FH]-) ac_tag=-:-;;
  11122. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11123. esac
  11124. ac_save_IFS=$IFS
  11125. IFS=:
  11126. set x $ac_tag
  11127. IFS=$ac_save_IFS
  11128. shift
  11129. ac_file=$1
  11130. shift
  11131. case $ac_mode in
  11132. :L) ac_source=$1;;
  11133. :[FH])
  11134. ac_file_inputs=
  11135. for ac_f
  11136. do
  11137. case $ac_f in
  11138. -) ac_f="$ac_tmp/stdin";;
  11139. *) # Look for the file first in the build tree, then in the source tree
  11140. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11141. # because $ac_f cannot contain `:'.
  11142. test -f "$ac_f" ||
  11143. case $ac_f in
  11144. [\\/$]*) false;;
  11145. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11146. esac ||
  11147. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11148. esac
  11149. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11150. as_fn_append ac_file_inputs " '$ac_f'"
  11151. done
  11152. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11153. # use $as_me), people would be surprised to read:
  11154. # /* config.h. Generated by config.status. */
  11155. configure_input='Generated from '`
  11156. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11157. `' by configure.'
  11158. if test x"$ac_file" != x-; then
  11159. configure_input="$ac_file. $configure_input"
  11160. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11161. $as_echo "$as_me: creating $ac_file" >&6;}
  11162. fi
  11163. # Neutralize special characters interpreted by sed in replacement strings.
  11164. case $configure_input in #(
  11165. *\&* | *\|* | *\\* )
  11166. ac_sed_conf_input=`$as_echo "$configure_input" |
  11167. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11168. *) ac_sed_conf_input=$configure_input;;
  11169. esac
  11170. case $ac_tag in
  11171. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11172. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11173. esac
  11174. ;;
  11175. esac
  11176. ac_dir=`$as_dirname -- "$ac_file" ||
  11177. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11178. X"$ac_file" : 'X\(//\)[^/]' \| \
  11179. X"$ac_file" : 'X\(//\)$' \| \
  11180. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11181. $as_echo X"$ac_file" |
  11182. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11183. s//\1/
  11184. q
  11185. }
  11186. /^X\(\/\/\)[^/].*/{
  11187. s//\1/
  11188. q
  11189. }
  11190. /^X\(\/\/\)$/{
  11191. s//\1/
  11192. q
  11193. }
  11194. /^X\(\/\).*/{
  11195. s//\1/
  11196. q
  11197. }
  11198. s/.*/./; q'`
  11199. as_dir="$ac_dir"; as_fn_mkdir_p
  11200. ac_builddir=.
  11201. case "$ac_dir" in
  11202. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11203. *)
  11204. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11205. # A ".." for each directory in $ac_dir_suffix.
  11206. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11207. case $ac_top_builddir_sub in
  11208. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11209. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11210. esac ;;
  11211. esac
  11212. ac_abs_top_builddir=$ac_pwd
  11213. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11214. # for backward compatibility:
  11215. ac_top_builddir=$ac_top_build_prefix
  11216. case $srcdir in
  11217. .) # We are building in place.
  11218. ac_srcdir=.
  11219. ac_top_srcdir=$ac_top_builddir_sub
  11220. ac_abs_top_srcdir=$ac_pwd ;;
  11221. [\\/]* | ?:[\\/]* ) # Absolute name.
  11222. ac_srcdir=$srcdir$ac_dir_suffix;
  11223. ac_top_srcdir=$srcdir
  11224. ac_abs_top_srcdir=$srcdir ;;
  11225. *) # Relative name.
  11226. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11227. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11228. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11229. esac
  11230. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11231. case $ac_mode in
  11232. :F)
  11233. #
  11234. # CONFIG_FILE
  11235. #
  11236. case $INSTALL in
  11237. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11238. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11239. esac
  11240. ac_MKDIR_P=$MKDIR_P
  11241. case $MKDIR_P in
  11242. [\\/$]* | ?:[\\/]* ) ;;
  11243. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11244. esac
  11245. _ACEOF
  11246. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11247. # If the template does not know about datarootdir, expand it.
  11248. # FIXME: This hack should be removed a few years after 2.60.
  11249. ac_datarootdir_hack=; ac_datarootdir_seen=
  11250. ac_sed_dataroot='
  11251. /datarootdir/ {
  11252. p
  11253. q
  11254. }
  11255. /@datadir@/p
  11256. /@docdir@/p
  11257. /@infodir@/p
  11258. /@localedir@/p
  11259. /@mandir@/p'
  11260. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11261. *datarootdir*) ac_datarootdir_seen=yes;;
  11262. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11263. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11264. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11265. _ACEOF
  11266. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11267. ac_datarootdir_hack='
  11268. s&@datadir@&$datadir&g
  11269. s&@docdir@&$docdir&g
  11270. s&@infodir@&$infodir&g
  11271. s&@localedir@&$localedir&g
  11272. s&@mandir@&$mandir&g
  11273. s&\\\${datarootdir}&$datarootdir&g' ;;
  11274. esac
  11275. _ACEOF
  11276. # Neutralize VPATH when `$srcdir' = `.'.
  11277. # Shell code in configure.ac might set extrasub.
  11278. # FIXME: do we really want to maintain this feature?
  11279. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11280. ac_sed_extra="$ac_vpsub
  11281. $extrasub
  11282. _ACEOF
  11283. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11284. :t
  11285. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11286. s|@configure_input@|$ac_sed_conf_input|;t t
  11287. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11288. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11289. s&@srcdir@&$ac_srcdir&;t t
  11290. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11291. s&@top_srcdir@&$ac_top_srcdir&;t t
  11292. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11293. s&@builddir@&$ac_builddir&;t t
  11294. s&@abs_builddir@&$ac_abs_builddir&;t t
  11295. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11296. s&@INSTALL@&$ac_INSTALL&;t t
  11297. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11298. $ac_datarootdir_hack
  11299. "
  11300. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11301. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11302. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11303. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11304. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11305. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11307. which seems to be undefined. Please make sure it is defined" >&5
  11308. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11309. which seems to be undefined. Please make sure it is defined" >&2;}
  11310. rm -f "$ac_tmp/stdin"
  11311. case $ac_file in
  11312. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11313. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11314. esac \
  11315. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11316. ;;
  11317. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11318. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11319. ;;
  11320. esac
  11321. case $ac_file$ac_mode in
  11322. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11323. # Older Autoconf quotes --file arguments for eval, but not when files
  11324. # are listed without --file. Let's play safe and only enable the eval
  11325. # if we detect the quoting.
  11326. case $CONFIG_FILES in
  11327. *\'*) eval set x "$CONFIG_FILES" ;;
  11328. *) set x $CONFIG_FILES ;;
  11329. esac
  11330. shift
  11331. for mf
  11332. do
  11333. # Strip MF so we end up with the name of the file.
  11334. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11335. # Check whether this is an Automake generated Makefile or not.
  11336. # We used to match only the files named 'Makefile.in', but
  11337. # some people rename them; so instead we look at the file content.
  11338. # Grep'ing the first line is not enough: some people post-process
  11339. # each Makefile.in and add a new line on top of each file to say so.
  11340. # Grep'ing the whole file is not good either: AIX grep has a line
  11341. # limit of 2048, but all sed's we know have understand at least 4000.
  11342. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11343. dirpart=`$as_dirname -- "$mf" ||
  11344. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11345. X"$mf" : 'X\(//\)[^/]' \| \
  11346. X"$mf" : 'X\(//\)$' \| \
  11347. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11348. $as_echo X"$mf" |
  11349. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11350. s//\1/
  11351. q
  11352. }
  11353. /^X\(\/\/\)[^/].*/{
  11354. s//\1/
  11355. q
  11356. }
  11357. /^X\(\/\/\)$/{
  11358. s//\1/
  11359. q
  11360. }
  11361. /^X\(\/\).*/{
  11362. s//\1/
  11363. q
  11364. }
  11365. s/.*/./; q'`
  11366. else
  11367. continue
  11368. fi
  11369. # Extract the definition of DEPDIR, am__include, and am__quote
  11370. # from the Makefile without running 'make'.
  11371. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11372. test -z "$DEPDIR" && continue
  11373. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11374. test -z "$am__include" && continue
  11375. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11376. # Find all dependency output files, they are included files with
  11377. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11378. # simplest approach to changing $(DEPDIR) to its actual value in the
  11379. # expansion.
  11380. for file in `sed -n "
  11381. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11382. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  11383. # Make sure the directory exists.
  11384. test -f "$dirpart/$file" && continue
  11385. fdir=`$as_dirname -- "$file" ||
  11386. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11387. X"$file" : 'X\(//\)[^/]' \| \
  11388. X"$file" : 'X\(//\)$' \| \
  11389. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11390. $as_echo X"$file" |
  11391. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11392. s//\1/
  11393. q
  11394. }
  11395. /^X\(\/\/\)[^/].*/{
  11396. s//\1/
  11397. q
  11398. }
  11399. /^X\(\/\/\)$/{
  11400. s//\1/
  11401. q
  11402. }
  11403. /^X\(\/\).*/{
  11404. s//\1/
  11405. q
  11406. }
  11407. s/.*/./; q'`
  11408. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11409. # echo "creating $dirpart/$file"
  11410. echo '# dummy' > "$dirpart/$file"
  11411. done
  11412. done
  11413. }
  11414. ;;
  11415. "libtool":C)
  11416. # See if we are running on zsh, and set the options which allow our
  11417. # commands through without removal of \ escapes.
  11418. if test -n "${ZSH_VERSION+set}" ; then
  11419. setopt NO_GLOB_SUBST
  11420. fi
  11421. cfgfile="${ofile}T"
  11422. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11423. $RM "$cfgfile"
  11424. cat <<_LT_EOF >> "$cfgfile"
  11425. #! $SHELL
  11426. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11427. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11428. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11429. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11430. #
  11431. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11432. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  11433. # Foundation, Inc.
  11434. # Written by Gordon Matzigkeit, 1996
  11435. #
  11436. # This file is part of GNU Libtool.
  11437. #
  11438. # GNU Libtool is free software; you can redistribute it and/or
  11439. # modify it under the terms of the GNU General Public License as
  11440. # published by the Free Software Foundation; either version 2 of
  11441. # the License, or (at your option) any later version.
  11442. #
  11443. # As a special exception to the GNU General Public License,
  11444. # if you distribute this file as part of a program or library that
  11445. # is built using GNU Libtool, you may include this file under the
  11446. # same distribution terms that you use for the rest of that program.
  11447. #
  11448. # GNU Libtool is distributed in the hope that it will be useful,
  11449. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11450. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11451. # GNU General Public License for more details.
  11452. #
  11453. # You should have received a copy of the GNU General Public License
  11454. # along with GNU Libtool; see the file COPYING. If not, a copy
  11455. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11456. # obtained by writing to the Free Software Foundation, Inc.,
  11457. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11458. # The names of the tagged configurations supported by this script.
  11459. available_tags=""
  11460. # ### BEGIN LIBTOOL CONFIG
  11461. # Which release of libtool.m4 was used?
  11462. macro_version=$macro_version
  11463. macro_revision=$macro_revision
  11464. # Whether or not to build shared libraries.
  11465. build_libtool_libs=$enable_shared
  11466. # Whether or not to build static libraries.
  11467. build_old_libs=$enable_static
  11468. # What type of objects to build.
  11469. pic_mode=$pic_mode
  11470. # Whether or not to optimize for fast installation.
  11471. fast_install=$enable_fast_install
  11472. # Shell to use when invoking shell scripts.
  11473. SHELL=$lt_SHELL
  11474. # An echo program that protects backslashes.
  11475. ECHO=$lt_ECHO
  11476. # The PATH separator for the build system.
  11477. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  11478. # The host system.
  11479. host_alias=$host_alias
  11480. host=$host
  11481. host_os=$host_os
  11482. # The build system.
  11483. build_alias=$build_alias
  11484. build=$build
  11485. build_os=$build_os
  11486. # A sed program that does not truncate output.
  11487. SED=$lt_SED
  11488. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11489. Xsed="\$SED -e 1s/^X//"
  11490. # A grep program that handles long lines.
  11491. GREP=$lt_GREP
  11492. # An ERE matcher.
  11493. EGREP=$lt_EGREP
  11494. # A literal string matcher.
  11495. FGREP=$lt_FGREP
  11496. # A BSD- or MS-compatible name lister.
  11497. NM=$lt_NM
  11498. # Whether we need soft or hard links.
  11499. LN_S=$lt_LN_S
  11500. # What is the maximum length of a command?
  11501. max_cmd_len=$max_cmd_len
  11502. # Object file suffix (normally "o").
  11503. objext=$ac_objext
  11504. # Executable file suffix (normally "").
  11505. exeext=$exeext
  11506. # whether the shell understands "unset".
  11507. lt_unset=$lt_unset
  11508. # turn spaces into newlines.
  11509. SP2NL=$lt_lt_SP2NL
  11510. # turn newlines into spaces.
  11511. NL2SP=$lt_lt_NL2SP
  11512. # convert \$build file names to \$host format.
  11513. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11514. # convert \$build files to toolchain format.
  11515. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11516. # An object symbol dumper.
  11517. OBJDUMP=$lt_OBJDUMP
  11518. # Method to check whether dependent libraries are shared objects.
  11519. deplibs_check_method=$lt_deplibs_check_method
  11520. # Command to use when deplibs_check_method = "file_magic".
  11521. file_magic_cmd=$lt_file_magic_cmd
  11522. # How to find potential files when deplibs_check_method = "file_magic".
  11523. file_magic_glob=$lt_file_magic_glob
  11524. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11525. want_nocaseglob=$lt_want_nocaseglob
  11526. # DLL creation program.
  11527. DLLTOOL=$lt_DLLTOOL
  11528. # Command to associate shared and link libraries.
  11529. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11530. # The archiver.
  11531. AR=$lt_AR
  11532. # Flags to create an archive.
  11533. AR_FLAGS=$lt_AR_FLAGS
  11534. # How to feed a file listing to the archiver.
  11535. archiver_list_spec=$lt_archiver_list_spec
  11536. # A symbol stripping program.
  11537. STRIP=$lt_STRIP
  11538. # Commands used to install an old-style archive.
  11539. RANLIB=$lt_RANLIB
  11540. old_postinstall_cmds=$lt_old_postinstall_cmds
  11541. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11542. # Whether to use a lock for old archive extraction.
  11543. lock_old_archive_extraction=$lock_old_archive_extraction
  11544. # A C compiler.
  11545. LTCC=$lt_CC
  11546. # LTCC compiler flags.
  11547. LTCFLAGS=$lt_CFLAGS
  11548. # Take the output of nm and produce a listing of raw symbols and C names.
  11549. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11550. # Transform the output of nm in a proper C declaration.
  11551. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11552. # Transform the output of nm in a C name address pair.
  11553. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11554. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11555. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11556. # Specify filename containing input files for \$NM.
  11557. nm_file_list_spec=$lt_nm_file_list_spec
  11558. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11559. lt_sysroot=$lt_sysroot
  11560. # The name of the directory that contains temporary libtool files.
  11561. objdir=$objdir
  11562. # Used to examine libraries when file_magic_cmd begins with "file".
  11563. MAGIC_CMD=$MAGIC_CMD
  11564. # Must we lock files when doing compilation?
  11565. need_locks=$lt_need_locks
  11566. # Manifest tool.
  11567. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11568. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11569. DSYMUTIL=$lt_DSYMUTIL
  11570. # Tool to change global to local symbols on Mac OS X.
  11571. NMEDIT=$lt_NMEDIT
  11572. # Tool to manipulate fat objects and archives on Mac OS X.
  11573. LIPO=$lt_LIPO
  11574. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11575. OTOOL=$lt_OTOOL
  11576. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11577. OTOOL64=$lt_OTOOL64
  11578. # Old archive suffix (normally "a").
  11579. libext=$libext
  11580. # Shared library suffix (normally ".so").
  11581. shrext_cmds=$lt_shrext_cmds
  11582. # The commands to extract the exported symbol list from a shared archive.
  11583. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11584. # Variables whose values should be saved in libtool wrapper scripts and
  11585. # restored at link time.
  11586. variables_saved_for_relink=$lt_variables_saved_for_relink
  11587. # Do we need the "lib" prefix for modules?
  11588. need_lib_prefix=$need_lib_prefix
  11589. # Do we need a version for libraries?
  11590. need_version=$need_version
  11591. # Library versioning type.
  11592. version_type=$version_type
  11593. # Shared library runtime path variable.
  11594. runpath_var=$runpath_var
  11595. # Shared library path variable.
  11596. shlibpath_var=$shlibpath_var
  11597. # Is shlibpath searched before the hard-coded library search path?
  11598. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11599. # Format of library name prefix.
  11600. libname_spec=$lt_libname_spec
  11601. # List of archive names. First name is the real one, the rest are links.
  11602. # The last name is the one that the linker finds with -lNAME
  11603. library_names_spec=$lt_library_names_spec
  11604. # The coded name of the library, if different from the real name.
  11605. soname_spec=$lt_soname_spec
  11606. # Permission mode override for installation of shared libraries.
  11607. install_override_mode=$lt_install_override_mode
  11608. # Command to use after installation of a shared archive.
  11609. postinstall_cmds=$lt_postinstall_cmds
  11610. # Command to use after uninstallation of a shared archive.
  11611. postuninstall_cmds=$lt_postuninstall_cmds
  11612. # Commands used to finish a libtool library installation in a directory.
  11613. finish_cmds=$lt_finish_cmds
  11614. # As "finish_cmds", except a single script fragment to be evaled but
  11615. # not shown.
  11616. finish_eval=$lt_finish_eval
  11617. # Whether we should hardcode library paths into libraries.
  11618. hardcode_into_libs=$hardcode_into_libs
  11619. # Compile-time system search path for libraries.
  11620. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11621. # Run-time system search path for libraries.
  11622. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11623. # Whether dlopen is supported.
  11624. dlopen_support=$enable_dlopen
  11625. # Whether dlopen of programs is supported.
  11626. dlopen_self=$enable_dlopen_self
  11627. # Whether dlopen of statically linked programs is supported.
  11628. dlopen_self_static=$enable_dlopen_self_static
  11629. # Commands to strip libraries.
  11630. old_striplib=$lt_old_striplib
  11631. striplib=$lt_striplib
  11632. # The linker used to build libraries.
  11633. LD=$lt_LD
  11634. # How to create reloadable object files.
  11635. reload_flag=$lt_reload_flag
  11636. reload_cmds=$lt_reload_cmds
  11637. # Commands used to build an old-style archive.
  11638. old_archive_cmds=$lt_old_archive_cmds
  11639. # A language specific compiler.
  11640. CC=$lt_compiler
  11641. # Is the compiler the GNU compiler?
  11642. with_gcc=$GCC
  11643. # Compiler flag to turn off builtin functions.
  11644. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11645. # Additional compiler flags for building library objects.
  11646. pic_flag=$lt_lt_prog_compiler_pic
  11647. # How to pass a linker flag through the compiler.
  11648. wl=$lt_lt_prog_compiler_wl
  11649. # Compiler flag to prevent dynamic linking.
  11650. link_static_flag=$lt_lt_prog_compiler_static
  11651. # Does compiler simultaneously support -c and -o options?
  11652. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11653. # Whether or not to add -lc for building shared libraries.
  11654. build_libtool_need_lc=$archive_cmds_need_lc
  11655. # Whether or not to disallow shared libs when runtime libs are static.
  11656. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11657. # Compiler flag to allow reflexive dlopens.
  11658. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11659. # Compiler flag to generate shared objects directly from archives.
  11660. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11661. # Whether the compiler copes with passing no objects directly.
  11662. compiler_needs_object=$lt_compiler_needs_object
  11663. # Create an old-style archive from a shared archive.
  11664. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11665. # Create a temporary old-style archive to link instead of a shared archive.
  11666. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11667. # Commands used to build a shared archive.
  11668. archive_cmds=$lt_archive_cmds
  11669. archive_expsym_cmds=$lt_archive_expsym_cmds
  11670. # Commands used to build a loadable module if different from building
  11671. # a shared archive.
  11672. module_cmds=$lt_module_cmds
  11673. module_expsym_cmds=$lt_module_expsym_cmds
  11674. # Whether we are building with GNU ld or not.
  11675. with_gnu_ld=$lt_with_gnu_ld
  11676. # Flag that allows shared libraries with undefined symbols to be built.
  11677. allow_undefined_flag=$lt_allow_undefined_flag
  11678. # Flag that enforces no undefined symbols.
  11679. no_undefined_flag=$lt_no_undefined_flag
  11680. # Flag to hardcode \$libdir into a binary during linking.
  11681. # This must work even if \$libdir does not exist
  11682. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11683. # Whether we need a single "-rpath" flag with a separated argument.
  11684. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11685. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11686. # DIR into the resulting binary.
  11687. hardcode_direct=$hardcode_direct
  11688. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11689. # DIR into the resulting binary and the resulting library dependency is
  11690. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11691. # library is relocated.
  11692. hardcode_direct_absolute=$hardcode_direct_absolute
  11693. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11694. # into the resulting binary.
  11695. hardcode_minus_L=$hardcode_minus_L
  11696. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11697. # into the resulting binary.
  11698. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11699. # Set to "yes" if building a shared library automatically hardcodes DIR
  11700. # into the library and all subsequent libraries and executables linked
  11701. # against it.
  11702. hardcode_automatic=$hardcode_automatic
  11703. # Set to yes if linker adds runtime paths of dependent libraries
  11704. # to runtime path list.
  11705. inherit_rpath=$inherit_rpath
  11706. # Whether libtool must link a program against all its dependency libraries.
  11707. link_all_deplibs=$link_all_deplibs
  11708. # Set to "yes" if exported symbols are required.
  11709. always_export_symbols=$always_export_symbols
  11710. # The commands to list exported symbols.
  11711. export_symbols_cmds=$lt_export_symbols_cmds
  11712. # Symbols that should not be listed in the preloaded symbols.
  11713. exclude_expsyms=$lt_exclude_expsyms
  11714. # Symbols that must always be exported.
  11715. include_expsyms=$lt_include_expsyms
  11716. # Commands necessary for linking programs (against libraries) with templates.
  11717. prelink_cmds=$lt_prelink_cmds
  11718. # Commands necessary for finishing linking programs.
  11719. postlink_cmds=$lt_postlink_cmds
  11720. # Specify filename containing input files.
  11721. file_list_spec=$lt_file_list_spec
  11722. # How to hardcode a shared library path into an executable.
  11723. hardcode_action=$hardcode_action
  11724. # ### END LIBTOOL CONFIG
  11725. _LT_EOF
  11726. case $host_os in
  11727. aix3*)
  11728. cat <<\_LT_EOF >> "$cfgfile"
  11729. # AIX sometimes has problems with the GCC collect2 program. For some
  11730. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11731. # vanish in a puff of smoke.
  11732. if test "X${COLLECT_NAMES+set}" != Xset; then
  11733. COLLECT_NAMES=
  11734. export COLLECT_NAMES
  11735. fi
  11736. _LT_EOF
  11737. ;;
  11738. esac
  11739. ltmain="$ac_aux_dir/ltmain.sh"
  11740. # We use sed instead of cat because bash on DJGPP gets confused if
  11741. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11742. # text mode, it properly converts lines to CR/LF. This bash problem
  11743. # is reportedly fixed, but why not run on old versions too?
  11744. sed '$q' "$ltmain" >> "$cfgfile" \
  11745. || (rm -f "$cfgfile"; exit 1)
  11746. if test x"$xsi_shell" = xyes; then
  11747. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  11748. func_dirname ()\
  11749. {\
  11750. \ case ${1} in\
  11751. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11752. \ * ) func_dirname_result="${3}" ;;\
  11753. \ esac\
  11754. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  11755. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11756. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11757. test 0 -eq $? || _lt_function_replace_fail=:
  11758. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  11759. func_basename ()\
  11760. {\
  11761. \ func_basename_result="${1##*/}"\
  11762. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11763. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11764. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11765. test 0 -eq $? || _lt_function_replace_fail=:
  11766. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  11767. func_dirname_and_basename ()\
  11768. {\
  11769. \ case ${1} in\
  11770. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11771. \ * ) func_dirname_result="${3}" ;;\
  11772. \ esac\
  11773. \ func_basename_result="${1##*/}"\
  11774. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11775. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11776. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11777. test 0 -eq $? || _lt_function_replace_fail=:
  11778. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  11779. func_stripname ()\
  11780. {\
  11781. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  11782. \ # positional parameters, so assign one to ordinary parameter first.\
  11783. \ func_stripname_result=${3}\
  11784. \ func_stripname_result=${func_stripname_result#"${1}"}\
  11785. \ func_stripname_result=${func_stripname_result%"${2}"}\
  11786. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  11787. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11788. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11789. test 0 -eq $? || _lt_function_replace_fail=:
  11790. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  11791. func_split_long_opt ()\
  11792. {\
  11793. \ func_split_long_opt_name=${1%%=*}\
  11794. \ func_split_long_opt_arg=${1#*=}\
  11795. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11796. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11797. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11798. test 0 -eq $? || _lt_function_replace_fail=:
  11799. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  11800. func_split_short_opt ()\
  11801. {\
  11802. \ func_split_short_opt_arg=${1#??}\
  11803. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  11804. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11805. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11806. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11807. test 0 -eq $? || _lt_function_replace_fail=:
  11808. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  11809. func_lo2o ()\
  11810. {\
  11811. \ case ${1} in\
  11812. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  11813. \ *) func_lo2o_result=${1} ;;\
  11814. \ esac\
  11815. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  11816. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11817. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11818. test 0 -eq $? || _lt_function_replace_fail=:
  11819. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  11820. func_xform ()\
  11821. {\
  11822. func_xform_result=${1%.*}.lo\
  11823. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  11824. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11825. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11826. test 0 -eq $? || _lt_function_replace_fail=:
  11827. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  11828. func_arith ()\
  11829. {\
  11830. func_arith_result=$(( $* ))\
  11831. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  11832. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11833. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11834. test 0 -eq $? || _lt_function_replace_fail=:
  11835. sed -e '/^func_len ()$/,/^} # func_len /c\
  11836. func_len ()\
  11837. {\
  11838. func_len_result=${#1}\
  11839. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  11840. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11841. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11842. test 0 -eq $? || _lt_function_replace_fail=:
  11843. fi
  11844. if test x"$lt_shell_append" = xyes; then
  11845. sed -e '/^func_append ()$/,/^} # func_append /c\
  11846. func_append ()\
  11847. {\
  11848. eval "${1}+=\\${2}"\
  11849. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  11850. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11851. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11852. test 0 -eq $? || _lt_function_replace_fail=:
  11853. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  11854. func_append_quoted ()\
  11855. {\
  11856. \ func_quote_for_eval "${2}"\
  11857. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  11858. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  11859. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11860. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11861. test 0 -eq $? || _lt_function_replace_fail=:
  11862. # Save a `func_append' function call where possible by direct use of '+='
  11863. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  11864. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11865. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11866. test 0 -eq $? || _lt_function_replace_fail=:
  11867. else
  11868. # Save a `func_append' function call even when '+=' is not available
  11869. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  11870. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11871. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11872. test 0 -eq $? || _lt_function_replace_fail=:
  11873. fi
  11874. if test x"$_lt_function_replace_fail" = x":"; then
  11875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  11876. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  11877. fi
  11878. mv -f "$cfgfile" "$ofile" ||
  11879. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11880. chmod +x "$ofile"
  11881. ;;
  11882. esac
  11883. done # for ac_tag
  11884. as_fn_exit 0
  11885. _ACEOF
  11886. ac_clean_files=$ac_clean_files_save
  11887. test $ac_write_fail = 0 ||
  11888. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11889. # configure is writing to config.log, and then calls config.status.
  11890. # config.status does its own redirection, appending to config.log.
  11891. # Unfortunately, on DOS this fails, as config.log is still kept open
  11892. # by configure, so config.status won't be able to write to it; its
  11893. # output is simply discarded. So we exec the FD to /dev/null,
  11894. # effectively closing config.log, so it can be properly (re)opened and
  11895. # appended to by config.status. When coming back to configure, we
  11896. # need to make the FD available again.
  11897. if test "$no_create" != yes; then
  11898. ac_cs_success=:
  11899. ac_config_status_args=
  11900. test "$silent" = yes &&
  11901. ac_config_status_args="$ac_config_status_args --quiet"
  11902. exec 5>/dev/null
  11903. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11904. exec 5>>config.log
  11905. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11906. # would make configure fail if this is the last instruction.
  11907. $ac_cs_success || as_fn_exit 1
  11908. fi
  11909. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11911. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11912. fi