output.3 407 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.68 for OPCUAServer 1.0.
  4. @%:@
  5. @%:@
  6. @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. @%:@ Foundation, Inc.
  9. @%:@
  10. @%:@
  11. @%:@ This configure script is free software; the Free Software Foundation
  12. @%:@ gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in @%:@(
  27. *posix*) :
  28. set -o posix ;; @%:@(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in @%:@(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in @%:@((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in @%:@(
  135. *posix*) :
  136. set -o posix ;; @%:@(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  162. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. PATH=/empty FPATH=/empty; export PATH FPATH
  166. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  167. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  168. test \$(( 1 + 1 )) = 2 || exit 1"
  169. if (eval "$as_required") 2>/dev/null; then :
  170. as_have_required=yes
  171. else
  172. as_have_required=no
  173. fi
  174. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  175. else
  176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  177. as_found=false
  178. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  179. do
  180. IFS=$as_save_IFS
  181. test -z "$as_dir" && as_dir=.
  182. as_found=:
  183. case $as_dir in @%:@(
  184. /*)
  185. for as_base in sh bash ksh sh5; do
  186. # Try only shells that exist, to save several forks.
  187. as_shell=$as_dir/$as_base
  188. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  189. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  190. CONFIG_SHELL=$as_shell as_have_required=yes
  191. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. break 2
  193. fi
  194. fi
  195. done;;
  196. esac
  197. as_found=false
  198. done
  199. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  200. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  201. CONFIG_SHELL=$SHELL as_have_required=yes
  202. fi; }
  203. IFS=$as_save_IFS
  204. if test "x$CONFIG_SHELL" != x; then :
  205. # We cannot yet assume a decent shell, so we have to provide a
  206. # neutralization value for shells without unset; and this also
  207. # works around shells that cannot unset nonexistent variables.
  208. # Preserve -v and -x to the replacement shell.
  209. BASH_ENV=/dev/null
  210. ENV=/dev/null
  211. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  212. export CONFIG_SHELL
  213. case $- in @%:@ ((((
  214. *v*x* | *x*v* ) as_opts=-vx ;;
  215. *v* ) as_opts=-v ;;
  216. *x* ) as_opts=-x ;;
  217. * ) as_opts= ;;
  218. esac
  219. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  220. fi
  221. if test x$as_have_required = xno; then :
  222. $as_echo "$0: This script requires a shell more modern than all"
  223. $as_echo "$0: the shells that I found on your system."
  224. if test x${ZSH_VERSION+set} = xset ; then
  225. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  226. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  227. else
  228. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  229. $0: including any error possibly output before this
  230. $0: message. Then install a modern shell, or manually run
  231. $0: the script under such a shell if you do have one."
  232. fi
  233. exit 1
  234. fi
  235. fi
  236. fi
  237. SHELL=${CONFIG_SHELL-/bin/sh}
  238. export SHELL
  239. # Unset more variables known to interfere with behavior of common tools.
  240. CLICOLOR_FORCE= GREP_OPTIONS=
  241. unset CLICOLOR_FORCE GREP_OPTIONS
  242. ## --------------------- ##
  243. ## M4sh Shell Functions. ##
  244. ## --------------------- ##
  245. @%:@ as_fn_unset VAR
  246. @%:@ ---------------
  247. @%:@ Portably unset VAR.
  248. as_fn_unset ()
  249. {
  250. { eval $1=; unset $1;}
  251. }
  252. as_unset=as_fn_unset
  253. @%:@ as_fn_set_status STATUS
  254. @%:@ -----------------------
  255. @%:@ Set @S|@? to STATUS, without forking.
  256. as_fn_set_status ()
  257. {
  258. return $1
  259. } @%:@ as_fn_set_status
  260. @%:@ as_fn_exit STATUS
  261. @%:@ -----------------
  262. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  263. as_fn_exit ()
  264. {
  265. set +e
  266. as_fn_set_status $1
  267. exit $1
  268. } @%:@ as_fn_exit
  269. @%:@ as_fn_mkdir_p
  270. @%:@ -------------
  271. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  272. as_fn_mkdir_p ()
  273. {
  274. case $as_dir in #(
  275. -*) as_dir=./$as_dir;;
  276. esac
  277. test -d "$as_dir" || eval $as_mkdir_p || {
  278. as_dirs=
  279. while :; do
  280. case $as_dir in #(
  281. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  282. *) as_qdir=$as_dir;;
  283. esac
  284. as_dirs="'$as_qdir' $as_dirs"
  285. as_dir=`$as_dirname -- "$as_dir" ||
  286. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  287. X"$as_dir" : 'X\(//\)[^/]' \| \
  288. X"$as_dir" : 'X\(//\)$' \| \
  289. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  290. $as_echo X"$as_dir" |
  291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)[^/].*/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)$/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\).*/{
  304. s//\1/
  305. q
  306. }
  307. s/.*/./; q'`
  308. test -d "$as_dir" && break
  309. done
  310. test -z "$as_dirs" || eval "mkdir $as_dirs"
  311. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  312. } @%:@ as_fn_mkdir_p
  313. @%:@ as_fn_append VAR VALUE
  314. @%:@ ----------------------
  315. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  316. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  317. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  318. @%:@ implementations.
  319. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  320. eval 'as_fn_append ()
  321. {
  322. eval $1+=\$2
  323. }'
  324. else
  325. as_fn_append ()
  326. {
  327. eval $1=\$$1\$2
  328. }
  329. fi # as_fn_append
  330. @%:@ as_fn_arith ARG...
  331. @%:@ ------------------
  332. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  333. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  334. @%:@ must be portable across @S|@(()) and expr.
  335. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  336. eval 'as_fn_arith ()
  337. {
  338. as_val=$(( $* ))
  339. }'
  340. else
  341. as_fn_arith ()
  342. {
  343. as_val=`expr "$@" || test $? -eq 1`
  344. }
  345. fi # as_fn_arith
  346. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  347. @%:@ ----------------------------------------
  348. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  349. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  350. @%:@ script with STATUS, using 1 if that was 0.
  351. as_fn_error ()
  352. {
  353. as_status=$1; test $as_status -eq 0 && as_status=1
  354. if test "$4"; then
  355. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  356. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  357. fi
  358. $as_echo "$as_me: error: $2" >&2
  359. as_fn_exit $as_status
  360. } @%:@ as_fn_error
  361. if expr a : '\(a\)' >/dev/null 2>&1 &&
  362. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  363. as_expr=expr
  364. else
  365. as_expr=false
  366. fi
  367. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  368. as_basename=basename
  369. else
  370. as_basename=false
  371. fi
  372. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  373. as_dirname=dirname
  374. else
  375. as_dirname=false
  376. fi
  377. as_me=`$as_basename -- "$0" ||
  378. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  379. X"$0" : 'X\(//\)$' \| \
  380. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  381. $as_echo X/"$0" |
  382. sed '/^.*\/\([^/][^/]*\)\/*$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\/\)$/{
  387. s//\1/
  388. q
  389. }
  390. /^X\/\(\/\).*/{
  391. s//\1/
  392. q
  393. }
  394. s/.*/./; q'`
  395. # Avoid depending upon Character Ranges.
  396. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  397. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  398. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  399. as_cr_digits='0123456789'
  400. as_cr_alnum=$as_cr_Letters$as_cr_digits
  401. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  402. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  403. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  404. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  405. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  406. sed -n '
  407. p
  408. /[$]LINENO/=
  409. ' <$as_myself |
  410. sed '
  411. s/[$]LINENO.*/&-/
  412. t lineno
  413. b
  414. :lineno
  415. N
  416. :loop
  417. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  418. t loop
  419. s/-\n.*//
  420. ' >$as_me.lineno &&
  421. chmod +x "$as_me.lineno" ||
  422. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  423. # Don't try to exec as it changes $[0], causing all sort of problems
  424. # (the dirname of $[0] is not the place where we might find the
  425. # original and so on. Autoconf is especially sensitive to this).
  426. . "./$as_me.lineno"
  427. # Exit status is that of the last command.
  428. exit
  429. }
  430. ECHO_C= ECHO_N= ECHO_T=
  431. case `echo -n x` in @%:@(((((
  432. -n*)
  433. case `echo 'xy\c'` in
  434. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  435. xy) ECHO_C='\c';;
  436. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  437. ECHO_T=' ';;
  438. esac;;
  439. *)
  440. ECHO_N='-n';;
  441. esac
  442. rm -f conf$$ conf$$.exe conf$$.file
  443. if test -d conf$$.dir; then
  444. rm -f conf$$.dir/conf$$.file
  445. else
  446. rm -f conf$$.dir
  447. mkdir conf$$.dir 2>/dev/null
  448. fi
  449. if (echo >conf$$.file) 2>/dev/null; then
  450. if ln -s conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s='ln -s'
  452. # ... but there are two gotchas:
  453. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  454. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  455. # In both cases, we have to default to `cp -p'.
  456. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  457. as_ln_s='cp -p'
  458. elif ln conf$$.file conf$$ 2>/dev/null; then
  459. as_ln_s=ln
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  467. rmdir conf$$.dir 2>/dev/null
  468. if mkdir -p . 2>/dev/null; then
  469. as_mkdir_p='mkdir -p "$as_dir"'
  470. else
  471. test -d ./-p && rmdir ./-p
  472. as_mkdir_p=false
  473. fi
  474. if test -x / >/dev/null 2>&1; then
  475. as_test_x='test -x'
  476. else
  477. if ls -dL / >/dev/null 2>&1; then
  478. as_ls_L_option=L
  479. else
  480. as_ls_L_option=
  481. fi
  482. as_test_x='
  483. eval sh -c '\''
  484. if test -d "$1"; then
  485. test -d "$1/.";
  486. else
  487. case $1 in @%:@(
  488. -*)set "./$1";;
  489. esac;
  490. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  491. ???[sx]*):;;*)false;;esac;fi
  492. '\'' sh
  493. '
  494. fi
  495. as_executable_p=$as_test_x
  496. # Sed expression to map a string onto a valid CPP name.
  497. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  498. # Sed expression to map a string onto a valid variable name.
  499. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  500. SHELL=${CONFIG_SHELL-/bin/sh}
  501. test -n "$DJDIR" || exec 7<&0 </dev/null
  502. exec 6>&1
  503. # Name of the host.
  504. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  505. # so uname gets run too.
  506. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  507. #
  508. # Initializations.
  509. #
  510. ac_default_prefix=/usr/local
  511. ac_clean_files=
  512. ac_config_libobj_dir=.
  513. LIB@&t@OBJS=
  514. cross_compiling=no
  515. subdirs=
  516. MFLAGS=
  517. MAKEFLAGS=
  518. # Identity of this package.
  519. PACKAGE_NAME='OPCUAServer'
  520. PACKAGE_TARNAME='opcuaserver'
  521. PACKAGE_VERSION='1.0'
  522. PACKAGE_STRING='OPCUAServer 1.0'
  523. PACKAGE_BUGREPORT=''
  524. PACKAGE_URL=''
  525. # Factoring default headers for most tests.
  526. ac_includes_default="\
  527. #include <stdio.h>
  528. #ifdef HAVE_SYS_TYPES_H
  529. # include <sys/types.h>
  530. #endif
  531. #ifdef HAVE_SYS_STAT_H
  532. # include <sys/stat.h>
  533. #endif
  534. #ifdef STDC_HEADERS
  535. # include <stdlib.h>
  536. # include <stddef.h>
  537. #else
  538. # ifdef HAVE_STDLIB_H
  539. # include <stdlib.h>
  540. # endif
  541. #endif
  542. #ifdef HAVE_STRING_H
  543. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  544. # include <memory.h>
  545. # endif
  546. # include <string.h>
  547. #endif
  548. #ifdef HAVE_STRINGS_H
  549. # include <strings.h>
  550. #endif
  551. #ifdef HAVE_INTTYPES_H
  552. # include <inttypes.h>
  553. #endif
  554. #ifdef HAVE_STDINT_H
  555. # include <stdint.h>
  556. #endif
  557. #ifdef HAVE_UNISTD_H
  558. # include <unistd.h>
  559. #endif"
  560. ac_subst_vars='am__EXEEXT_FALSE
  561. am__EXEEXT_TRUE
  562. LTLIBOBJS
  563. LIB@&t@OBJS
  564. CPP
  565. OTOOL64
  566. OTOOL
  567. LIPO
  568. NMEDIT
  569. DSYMUTIL
  570. MANIFEST_TOOL
  571. RANLIB
  572. ac_ct_AR
  573. AR
  574. DLLTOOL
  575. OBJDUMP
  576. LN_S
  577. NM
  578. ac_ct_DUMPBIN
  579. DUMPBIN
  580. LD
  581. FGREP
  582. EGREP
  583. GREP
  584. SED
  585. LIBTOOL
  586. TARGET_LINUX_FALSE
  587. TARGET_LINUX_TRUE
  588. TARGET_WIN_FALSE
  589. TARGET_WIN_TRUE
  590. HAVE_CHECK_FALSE
  591. HAVE_CHECK_TRUE
  592. CHECK_LIBS
  593. CHECK_CFLAGS
  594. PKG_CONFIG_LIBDIR
  595. PKG_CONFIG_PATH
  596. PKG_CONFIG
  597. am__fastdepCC_FALSE
  598. am__fastdepCC_TRUE
  599. CCDEPMODE
  600. am__nodep
  601. AMDEPBACKSLASH
  602. AMDEP_FALSE
  603. AMDEP_TRUE
  604. am__quote
  605. am__include
  606. DEPDIR
  607. OBJEXT
  608. EXEEXT
  609. ac_ct_CC
  610. CPPFLAGS
  611. LDFLAGS
  612. CFLAGS
  613. CC
  614. am__untar
  615. am__tar
  616. AMTAR
  617. am__leading_dot
  618. SET_MAKE
  619. AWK
  620. mkdir_p
  621. MKDIR_P
  622. INSTALL_STRIP_PROGRAM
  623. STRIP
  624. install_sh
  625. MAKEINFO
  626. AUTOHEADER
  627. AUTOMAKE
  628. AUTOCONF
  629. ACLOCAL
  630. VERSION
  631. PACKAGE
  632. CYGPATH_W
  633. am__isrc
  634. INSTALL_DATA
  635. INSTALL_SCRIPT
  636. INSTALL_PROGRAM
  637. target_os
  638. target_vendor
  639. target_cpu
  640. target
  641. host_os
  642. host_vendor
  643. host_cpu
  644. host
  645. build_os
  646. build_vendor
  647. build_cpu
  648. build
  649. target_alias
  650. host_alias
  651. build_alias
  652. LIBS
  653. ECHO_T
  654. ECHO_N
  655. ECHO_C
  656. DEFS
  657. mandir
  658. localedir
  659. libdir
  660. psdir
  661. pdfdir
  662. dvidir
  663. htmldir
  664. infodir
  665. docdir
  666. oldincludedir
  667. includedir
  668. localstatedir
  669. sharedstatedir
  670. sysconfdir
  671. datadir
  672. datarootdir
  673. libexecdir
  674. sbindir
  675. bindir
  676. program_transform_name
  677. prefix
  678. exec_prefix
  679. PACKAGE_URL
  680. PACKAGE_BUGREPORT
  681. PACKAGE_STRING
  682. PACKAGE_VERSION
  683. PACKAGE_TARNAME
  684. PACKAGE_NAME
  685. PATH_SEPARATOR
  686. SHELL'
  687. ac_subst_files=''
  688. ac_user_opts='
  689. enable_option_checking
  690. enable_dependency_tracking
  691. enable_shared
  692. enable_static
  693. with_pic
  694. enable_fast_install
  695. with_gnu_ld
  696. with_sysroot
  697. enable_libtool_lock
  698. '
  699. ac_precious_vars='build_alias
  700. host_alias
  701. target_alias
  702. CC
  703. CFLAGS
  704. LDFLAGS
  705. LIBS
  706. CPPFLAGS
  707. PKG_CONFIG
  708. PKG_CONFIG_PATH
  709. PKG_CONFIG_LIBDIR
  710. CHECK_CFLAGS
  711. CHECK_LIBS
  712. CPP'
  713. # Initialize some variables set by options.
  714. ac_init_help=
  715. ac_init_version=false
  716. ac_unrecognized_opts=
  717. ac_unrecognized_sep=
  718. # The variables have the same names as the options, with
  719. # dashes changed to underlines.
  720. cache_file=/dev/null
  721. exec_prefix=NONE
  722. no_create=
  723. no_recursion=
  724. prefix=NONE
  725. program_prefix=NONE
  726. program_suffix=NONE
  727. program_transform_name=s,x,x,
  728. silent=
  729. site=
  730. srcdir=
  731. verbose=
  732. x_includes=NONE
  733. x_libraries=NONE
  734. # Installation directory options.
  735. # These are left unexpanded so users can "make install exec_prefix=/foo"
  736. # and all the variables that are supposed to be based on exec_prefix
  737. # by default will actually change.
  738. # Use braces instead of parens because sh, perl, etc. also accept them.
  739. # (The list follows the same order as the GNU Coding Standards.)
  740. bindir='${exec_prefix}/bin'
  741. sbindir='${exec_prefix}/sbin'
  742. libexecdir='${exec_prefix}/libexec'
  743. datarootdir='${prefix}/share'
  744. datadir='${datarootdir}'
  745. sysconfdir='${prefix}/etc'
  746. sharedstatedir='${prefix}/com'
  747. localstatedir='${prefix}/var'
  748. includedir='${prefix}/include'
  749. oldincludedir='/usr/include'
  750. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  751. infodir='${datarootdir}/info'
  752. htmldir='${docdir}'
  753. dvidir='${docdir}'
  754. pdfdir='${docdir}'
  755. psdir='${docdir}'
  756. libdir='${exec_prefix}/lib'
  757. localedir='${datarootdir}/locale'
  758. mandir='${datarootdir}/man'
  759. ac_prev=
  760. ac_dashdash=
  761. for ac_option
  762. do
  763. # If the previous option needs an argument, assign it.
  764. if test -n "$ac_prev"; then
  765. eval $ac_prev=\$ac_option
  766. ac_prev=
  767. continue
  768. fi
  769. case $ac_option in
  770. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  771. *=) ac_optarg= ;;
  772. *) ac_optarg=yes ;;
  773. esac
  774. # Accept the important Cygnus configure options, so we can diagnose typos.
  775. case $ac_dashdash$ac_option in
  776. --)
  777. ac_dashdash=yes ;;
  778. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  779. ac_prev=bindir ;;
  780. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  781. bindir=$ac_optarg ;;
  782. -build | --build | --buil | --bui | --bu)
  783. ac_prev=build_alias ;;
  784. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  785. build_alias=$ac_optarg ;;
  786. -cache-file | --cache-file | --cache-fil | --cache-fi \
  787. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  788. ac_prev=cache_file ;;
  789. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  790. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  791. cache_file=$ac_optarg ;;
  792. --config-cache | -C)
  793. cache_file=config.cache ;;
  794. -datadir | --datadir | --datadi | --datad)
  795. ac_prev=datadir ;;
  796. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  797. datadir=$ac_optarg ;;
  798. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  799. | --dataroo | --dataro | --datar)
  800. ac_prev=datarootdir ;;
  801. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  802. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  803. datarootdir=$ac_optarg ;;
  804. -disable-* | --disable-*)
  805. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  806. # Reject names that are not valid shell variable names.
  807. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  808. as_fn_error $? "invalid feature name: $ac_useropt"
  809. ac_useropt_orig=$ac_useropt
  810. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  811. case $ac_user_opts in
  812. *"
  813. "enable_$ac_useropt"
  814. "*) ;;
  815. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  816. ac_unrecognized_sep=', ';;
  817. esac
  818. eval enable_$ac_useropt=no ;;
  819. -docdir | --docdir | --docdi | --doc | --do)
  820. ac_prev=docdir ;;
  821. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  822. docdir=$ac_optarg ;;
  823. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  824. ac_prev=dvidir ;;
  825. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  826. dvidir=$ac_optarg ;;
  827. -enable-* | --enable-*)
  828. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  829. # Reject names that are not valid shell variable names.
  830. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  831. as_fn_error $? "invalid feature name: $ac_useropt"
  832. ac_useropt_orig=$ac_useropt
  833. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  834. case $ac_user_opts in
  835. *"
  836. "enable_$ac_useropt"
  837. "*) ;;
  838. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  839. ac_unrecognized_sep=', ';;
  840. esac
  841. eval enable_$ac_useropt=\$ac_optarg ;;
  842. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  843. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  844. | --exec | --exe | --ex)
  845. ac_prev=exec_prefix ;;
  846. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  847. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  848. | --exec=* | --exe=* | --ex=*)
  849. exec_prefix=$ac_optarg ;;
  850. -gas | --gas | --ga | --g)
  851. # Obsolete; use --with-gas.
  852. with_gas=yes ;;
  853. -help | --help | --hel | --he | -h)
  854. ac_init_help=long ;;
  855. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  856. ac_init_help=recursive ;;
  857. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  858. ac_init_help=short ;;
  859. -host | --host | --hos | --ho)
  860. ac_prev=host_alias ;;
  861. -host=* | --host=* | --hos=* | --ho=*)
  862. host_alias=$ac_optarg ;;
  863. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  864. ac_prev=htmldir ;;
  865. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  866. | --ht=*)
  867. htmldir=$ac_optarg ;;
  868. -includedir | --includedir | --includedi | --included | --include \
  869. | --includ | --inclu | --incl | --inc)
  870. ac_prev=includedir ;;
  871. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  872. | --includ=* | --inclu=* | --incl=* | --inc=*)
  873. includedir=$ac_optarg ;;
  874. -infodir | --infodir | --infodi | --infod | --info | --inf)
  875. ac_prev=infodir ;;
  876. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  877. infodir=$ac_optarg ;;
  878. -libdir | --libdir | --libdi | --libd)
  879. ac_prev=libdir ;;
  880. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  881. libdir=$ac_optarg ;;
  882. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  883. | --libexe | --libex | --libe)
  884. ac_prev=libexecdir ;;
  885. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  886. | --libexe=* | --libex=* | --libe=*)
  887. libexecdir=$ac_optarg ;;
  888. -localedir | --localedir | --localedi | --localed | --locale)
  889. ac_prev=localedir ;;
  890. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  891. localedir=$ac_optarg ;;
  892. -localstatedir | --localstatedir | --localstatedi | --localstated \
  893. | --localstate | --localstat | --localsta | --localst | --locals)
  894. ac_prev=localstatedir ;;
  895. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  896. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  897. localstatedir=$ac_optarg ;;
  898. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  899. ac_prev=mandir ;;
  900. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  901. mandir=$ac_optarg ;;
  902. -nfp | --nfp | --nf)
  903. # Obsolete; use --without-fp.
  904. with_fp=no ;;
  905. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  906. | --no-cr | --no-c | -n)
  907. no_create=yes ;;
  908. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  909. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  910. no_recursion=yes ;;
  911. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  912. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  913. | --oldin | --oldi | --old | --ol | --o)
  914. ac_prev=oldincludedir ;;
  915. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  916. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  917. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  918. oldincludedir=$ac_optarg ;;
  919. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  920. ac_prev=prefix ;;
  921. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  922. prefix=$ac_optarg ;;
  923. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  924. | --program-pre | --program-pr | --program-p)
  925. ac_prev=program_prefix ;;
  926. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  927. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  928. program_prefix=$ac_optarg ;;
  929. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  930. | --program-suf | --program-su | --program-s)
  931. ac_prev=program_suffix ;;
  932. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  933. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  934. program_suffix=$ac_optarg ;;
  935. -program-transform-name | --program-transform-name \
  936. | --program-transform-nam | --program-transform-na \
  937. | --program-transform-n | --program-transform- \
  938. | --program-transform | --program-transfor \
  939. | --program-transfo | --program-transf \
  940. | --program-trans | --program-tran \
  941. | --progr-tra | --program-tr | --program-t)
  942. ac_prev=program_transform_name ;;
  943. -program-transform-name=* | --program-transform-name=* \
  944. | --program-transform-nam=* | --program-transform-na=* \
  945. | --program-transform-n=* | --program-transform-=* \
  946. | --program-transform=* | --program-transfor=* \
  947. | --program-transfo=* | --program-transf=* \
  948. | --program-trans=* | --program-tran=* \
  949. | --progr-tra=* | --program-tr=* | --program-t=*)
  950. program_transform_name=$ac_optarg ;;
  951. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  952. ac_prev=pdfdir ;;
  953. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  954. pdfdir=$ac_optarg ;;
  955. -psdir | --psdir | --psdi | --psd | --ps)
  956. ac_prev=psdir ;;
  957. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  958. psdir=$ac_optarg ;;
  959. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  960. | -silent | --silent | --silen | --sile | --sil)
  961. silent=yes ;;
  962. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  963. ac_prev=sbindir ;;
  964. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  965. | --sbi=* | --sb=*)
  966. sbindir=$ac_optarg ;;
  967. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  968. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  969. | --sharedst | --shareds | --shared | --share | --shar \
  970. | --sha | --sh)
  971. ac_prev=sharedstatedir ;;
  972. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  973. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  974. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  975. | --sha=* | --sh=*)
  976. sharedstatedir=$ac_optarg ;;
  977. -site | --site | --sit)
  978. ac_prev=site ;;
  979. -site=* | --site=* | --sit=*)
  980. site=$ac_optarg ;;
  981. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  982. ac_prev=srcdir ;;
  983. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  984. srcdir=$ac_optarg ;;
  985. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  986. | --syscon | --sysco | --sysc | --sys | --sy)
  987. ac_prev=sysconfdir ;;
  988. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  989. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  990. sysconfdir=$ac_optarg ;;
  991. -target | --target | --targe | --targ | --tar | --ta | --t)
  992. ac_prev=target_alias ;;
  993. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  994. target_alias=$ac_optarg ;;
  995. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  996. verbose=yes ;;
  997. -version | --version | --versio | --versi | --vers | -V)
  998. ac_init_version=: ;;
  999. -with-* | --with-*)
  1000. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1001. # Reject names that are not valid shell variable names.
  1002. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1003. as_fn_error $? "invalid package name: $ac_useropt"
  1004. ac_useropt_orig=$ac_useropt
  1005. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1006. case $ac_user_opts in
  1007. *"
  1008. "with_$ac_useropt"
  1009. "*) ;;
  1010. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1011. ac_unrecognized_sep=', ';;
  1012. esac
  1013. eval with_$ac_useropt=\$ac_optarg ;;
  1014. -without-* | --without-*)
  1015. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1016. # Reject names that are not valid shell variable names.
  1017. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1018. as_fn_error $? "invalid package name: $ac_useropt"
  1019. ac_useropt_orig=$ac_useropt
  1020. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1021. case $ac_user_opts in
  1022. *"
  1023. "with_$ac_useropt"
  1024. "*) ;;
  1025. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1026. ac_unrecognized_sep=', ';;
  1027. esac
  1028. eval with_$ac_useropt=no ;;
  1029. --x)
  1030. # Obsolete; use --with-x.
  1031. with_x=yes ;;
  1032. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1033. | --x-incl | --x-inc | --x-in | --x-i)
  1034. ac_prev=x_includes ;;
  1035. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1036. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1037. x_includes=$ac_optarg ;;
  1038. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1039. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1040. ac_prev=x_libraries ;;
  1041. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1042. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1043. x_libraries=$ac_optarg ;;
  1044. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1045. Try \`$0 --help' for more information"
  1046. ;;
  1047. *=*)
  1048. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1049. # Reject names that are not valid shell variable names.
  1050. case $ac_envvar in #(
  1051. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1052. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1053. esac
  1054. eval $ac_envvar=\$ac_optarg
  1055. export $ac_envvar ;;
  1056. *)
  1057. # FIXME: should be removed in autoconf 3.0.
  1058. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1059. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1060. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1061. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1062. ;;
  1063. esac
  1064. done
  1065. if test -n "$ac_prev"; then
  1066. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1067. as_fn_error $? "missing argument to $ac_option"
  1068. fi
  1069. if test -n "$ac_unrecognized_opts"; then
  1070. case $enable_option_checking in
  1071. no) ;;
  1072. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1073. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1074. esac
  1075. fi
  1076. # Check all directory arguments for consistency.
  1077. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1078. datadir sysconfdir sharedstatedir localstatedir includedir \
  1079. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1080. libdir localedir mandir
  1081. do
  1082. eval ac_val=\$$ac_var
  1083. # Remove trailing slashes.
  1084. case $ac_val in
  1085. */ )
  1086. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1087. eval $ac_var=\$ac_val;;
  1088. esac
  1089. # Be sure to have absolute directory names.
  1090. case $ac_val in
  1091. [\\/$]* | ?:[\\/]* ) continue;;
  1092. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1093. esac
  1094. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1095. done
  1096. # There might be people who depend on the old broken behavior: `$host'
  1097. # used to hold the argument of --host etc.
  1098. # FIXME: To remove some day.
  1099. build=$build_alias
  1100. host=$host_alias
  1101. target=$target_alias
  1102. # FIXME: To remove some day.
  1103. if test "x$host_alias" != x; then
  1104. if test "x$build_alias" = x; then
  1105. cross_compiling=maybe
  1106. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1107. If a cross compiler is detected then cross compile mode will be used" >&2
  1108. elif test "x$build_alias" != "x$host_alias"; then
  1109. cross_compiling=yes
  1110. fi
  1111. fi
  1112. ac_tool_prefix=
  1113. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1114. test "$silent" = yes && exec 6>/dev/null
  1115. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1116. ac_ls_di=`ls -di .` &&
  1117. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1118. as_fn_error $? "working directory cannot be determined"
  1119. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1120. as_fn_error $? "pwd does not report name of working directory"
  1121. # Find the source files, if location was not specified.
  1122. if test -z "$srcdir"; then
  1123. ac_srcdir_defaulted=yes
  1124. # Try the directory containing this script, then the parent directory.
  1125. ac_confdir=`$as_dirname -- "$as_myself" ||
  1126. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1127. X"$as_myself" : 'X\(//\)[^/]' \| \
  1128. X"$as_myself" : 'X\(//\)$' \| \
  1129. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1130. $as_echo X"$as_myself" |
  1131. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1132. s//\1/
  1133. q
  1134. }
  1135. /^X\(\/\/\)[^/].*/{
  1136. s//\1/
  1137. q
  1138. }
  1139. /^X\(\/\/\)$/{
  1140. s//\1/
  1141. q
  1142. }
  1143. /^X\(\/\).*/{
  1144. s//\1/
  1145. q
  1146. }
  1147. s/.*/./; q'`
  1148. srcdir=$ac_confdir
  1149. if test ! -r "$srcdir/$ac_unique_file"; then
  1150. srcdir=..
  1151. fi
  1152. else
  1153. ac_srcdir_defaulted=no
  1154. fi
  1155. if test ! -r "$srcdir/$ac_unique_file"; then
  1156. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1157. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1158. fi
  1159. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1160. ac_abs_confdir=`(
  1161. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1162. pwd)`
  1163. # When building in place, set srcdir=.
  1164. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1165. srcdir=.
  1166. fi
  1167. # Remove unnecessary trailing slashes from srcdir.
  1168. # Double slashes in file names in object file debugging info
  1169. # mess up M-x gdb in Emacs.
  1170. case $srcdir in
  1171. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1172. esac
  1173. for ac_var in $ac_precious_vars; do
  1174. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1175. eval ac_env_${ac_var}_value=\$${ac_var}
  1176. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1177. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1178. done
  1179. #
  1180. # Report the --help message.
  1181. #
  1182. if test "$ac_init_help" = "long"; then
  1183. # Omit some internal or obsolete options to make the list less imposing.
  1184. # This message is too long to be a string in the A/UX 3.1 sh.
  1185. cat <<_ACEOF
  1186. \`configure' configures OPCUAServer 1.0 to adapt to many kinds of systems.
  1187. Usage: $0 [OPTION]... [VAR=VALUE]...
  1188. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1189. VAR=VALUE. See below for descriptions of some of the useful variables.
  1190. Defaults for the options are specified in brackets.
  1191. Configuration:
  1192. -h, --help display this help and exit
  1193. --help=short display options specific to this package
  1194. --help=recursive display the short help of all the included packages
  1195. -V, --version display version information and exit
  1196. -q, --quiet, --silent do not print \`checking ...' messages
  1197. --cache-file=FILE cache test results in FILE [disabled]
  1198. -C, --config-cache alias for \`--cache-file=config.cache'
  1199. -n, --no-create do not create output files
  1200. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1201. Installation directories:
  1202. --prefix=PREFIX install architecture-independent files in PREFIX
  1203. @<:@@S|@ac_default_prefix@:>@
  1204. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1205. @<:@PREFIX@:>@
  1206. By default, \`make install' will install all the files in
  1207. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1208. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1209. for instance \`--prefix=\$HOME'.
  1210. For better control, use the options below.
  1211. Fine tuning of the installation directories:
  1212. --bindir=DIR user executables [EPREFIX/bin]
  1213. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1214. --libexecdir=DIR program executables [EPREFIX/libexec]
  1215. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1216. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1217. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1218. --libdir=DIR object code libraries [EPREFIX/lib]
  1219. --includedir=DIR C header files [PREFIX/include]
  1220. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1221. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1222. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1223. --infodir=DIR info documentation [DATAROOTDIR/info]
  1224. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1225. --mandir=DIR man documentation [DATAROOTDIR/man]
  1226. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/opcuaserver@:>@
  1227. --htmldir=DIR html documentation [DOCDIR]
  1228. --dvidir=DIR dvi documentation [DOCDIR]
  1229. --pdfdir=DIR pdf documentation [DOCDIR]
  1230. --psdir=DIR ps documentation [DOCDIR]
  1231. _ACEOF
  1232. cat <<\_ACEOF
  1233. Program names:
  1234. --program-prefix=PREFIX prepend PREFIX to installed program names
  1235. --program-suffix=SUFFIX append SUFFIX to installed program names
  1236. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1237. System types:
  1238. --build=BUILD configure for building on BUILD [guessed]
  1239. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1240. --target=TARGET configure for building compilers for TARGET [HOST]
  1241. _ACEOF
  1242. fi
  1243. if test -n "$ac_init_help"; then
  1244. case $ac_init_help in
  1245. short | recursive ) echo "Configuration of OPCUAServer 1.0:";;
  1246. esac
  1247. cat <<\_ACEOF
  1248. Optional Features:
  1249. --disable-option-checking ignore unrecognized --enable/--with options
  1250. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1251. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1252. --disable-dependency-tracking speeds up one-time build
  1253. --enable-dependency-tracking do not reject slow dependency extractors
  1254. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1255. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1256. --enable-fast-install@<:@=PKGS@:>@
  1257. optimize for fast installation @<:@default=yes@:>@
  1258. --disable-libtool-lock avoid locking (might break parallel builds)
  1259. Optional Packages:
  1260. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1261. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1262. --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
  1263. both@:>@
  1264. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1265. --with-sysroot=DIR Search for dependent libraries within DIR
  1266. (or the compiler's sysroot if not specified).
  1267. Some influential environment variables:
  1268. CC C compiler command
  1269. CFLAGS C compiler flags
  1270. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1271. nonstandard directory <lib dir>
  1272. LIBS libraries to pass to the linker, e.g. -l<library>
  1273. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1274. you have headers in a nonstandard directory <include dir>
  1275. PKG_CONFIG path to pkg-config utility
  1276. PKG_CONFIG_PATH
  1277. directories to add to pkg-config's search path
  1278. PKG_CONFIG_LIBDIR
  1279. path overriding pkg-config's built-in search path
  1280. CHECK_CFLAGS
  1281. C compiler flags for CHECK, overriding pkg-config
  1282. CHECK_LIBS linker flags for CHECK, overriding pkg-config
  1283. CPP C preprocessor
  1284. Use these variables to override the choices made by `configure' or to help
  1285. it to find libraries and programs with nonstandard names/locations.
  1286. Report bugs to the package provider.
  1287. _ACEOF
  1288. ac_status=$?
  1289. fi
  1290. if test "$ac_init_help" = "recursive"; then
  1291. # If there are subdirs, report their specific --help.
  1292. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1293. test -d "$ac_dir" ||
  1294. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1295. continue
  1296. ac_builddir=.
  1297. case "$ac_dir" in
  1298. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1299. *)
  1300. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1301. # A ".." for each directory in $ac_dir_suffix.
  1302. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1303. case $ac_top_builddir_sub in
  1304. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1305. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1306. esac ;;
  1307. esac
  1308. ac_abs_top_builddir=$ac_pwd
  1309. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1310. # for backward compatibility:
  1311. ac_top_builddir=$ac_top_build_prefix
  1312. case $srcdir in
  1313. .) # We are building in place.
  1314. ac_srcdir=.
  1315. ac_top_srcdir=$ac_top_builddir_sub
  1316. ac_abs_top_srcdir=$ac_pwd ;;
  1317. [\\/]* | ?:[\\/]* ) # Absolute name.
  1318. ac_srcdir=$srcdir$ac_dir_suffix;
  1319. ac_top_srcdir=$srcdir
  1320. ac_abs_top_srcdir=$srcdir ;;
  1321. *) # Relative name.
  1322. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1323. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1324. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1325. esac
  1326. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1327. cd "$ac_dir" || { ac_status=$?; continue; }
  1328. # Check for guested configure.
  1329. if test -f "$ac_srcdir/configure.gnu"; then
  1330. echo &&
  1331. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1332. elif test -f "$ac_srcdir/configure"; then
  1333. echo &&
  1334. $SHELL "$ac_srcdir/configure" --help=recursive
  1335. else
  1336. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1337. fi || ac_status=$?
  1338. cd "$ac_pwd" || { ac_status=$?; break; }
  1339. done
  1340. fi
  1341. test -n "$ac_init_help" && exit $ac_status
  1342. if $ac_init_version; then
  1343. cat <<\_ACEOF
  1344. OPCUAServer configure 1.0
  1345. generated by GNU Autoconf 2.68
  1346. Copyright (C) 2010 Free Software Foundation, Inc.
  1347. This configure script is free software; the Free Software Foundation
  1348. gives unlimited permission to copy, distribute and modify it.
  1349. _ACEOF
  1350. exit
  1351. fi
  1352. ## ------------------------ ##
  1353. ## Autoconf initialization. ##
  1354. ## ------------------------ ##
  1355. @%:@ ac_fn_c_try_compile LINENO
  1356. @%:@ --------------------------
  1357. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1358. ac_fn_c_try_compile ()
  1359. {
  1360. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1361. rm -f conftest.$ac_objext
  1362. if { { ac_try="$ac_compile"
  1363. case "(($ac_try" in
  1364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1365. *) ac_try_echo=$ac_try;;
  1366. esac
  1367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1368. $as_echo "$ac_try_echo"; } >&5
  1369. (eval "$ac_compile") 2>conftest.err
  1370. ac_status=$?
  1371. if test -s conftest.err; then
  1372. grep -v '^ *+' conftest.err >conftest.er1
  1373. cat conftest.er1 >&5
  1374. mv -f conftest.er1 conftest.err
  1375. fi
  1376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1377. test $ac_status = 0; } && {
  1378. test -z "$ac_c_werror_flag" ||
  1379. test ! -s conftest.err
  1380. } && test -s conftest.$ac_objext; then :
  1381. ac_retval=0
  1382. else
  1383. $as_echo "$as_me: failed program was:" >&5
  1384. sed 's/^/| /' conftest.$ac_ext >&5
  1385. ac_retval=1
  1386. fi
  1387. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1388. as_fn_set_status $ac_retval
  1389. } @%:@ ac_fn_c_try_compile
  1390. @%:@ ac_fn_c_try_link LINENO
  1391. @%:@ -----------------------
  1392. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1393. ac_fn_c_try_link ()
  1394. {
  1395. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1396. rm -f conftest.$ac_objext conftest$ac_exeext
  1397. if { { ac_try="$ac_link"
  1398. case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_link") 2>conftest.err
  1405. ac_status=$?
  1406. if test -s conftest.err; then
  1407. grep -v '^ *+' conftest.err >conftest.er1
  1408. cat conftest.er1 >&5
  1409. mv -f conftest.er1 conftest.err
  1410. fi
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } && {
  1413. test -z "$ac_c_werror_flag" ||
  1414. test ! -s conftest.err
  1415. } && test -s conftest$ac_exeext && {
  1416. test "$cross_compiling" = yes ||
  1417. $as_test_x conftest$ac_exeext
  1418. }; then :
  1419. ac_retval=0
  1420. else
  1421. $as_echo "$as_me: failed program was:" >&5
  1422. sed 's/^/| /' conftest.$ac_ext >&5
  1423. ac_retval=1
  1424. fi
  1425. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1426. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1427. # interfere with the next link command; also delete a directory that is
  1428. # left behind by Apple's compiler. We do this before executing the actions.
  1429. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1430. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1431. as_fn_set_status $ac_retval
  1432. } @%:@ ac_fn_c_try_link
  1433. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1434. @%:@ -------------------------------------------------------
  1435. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1436. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1437. ac_fn_c_check_header_compile ()
  1438. {
  1439. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1441. $as_echo_n "checking for $2... " >&6; }
  1442. if eval \${$3+:} false; then :
  1443. $as_echo_n "(cached) " >&6
  1444. else
  1445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1446. /* end confdefs.h. */
  1447. $4
  1448. @%:@include <$2>
  1449. _ACEOF
  1450. if ac_fn_c_try_compile "$LINENO"; then :
  1451. eval "$3=yes"
  1452. else
  1453. eval "$3=no"
  1454. fi
  1455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1456. fi
  1457. eval ac_res=\$$3
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1459. $as_echo "$ac_res" >&6; }
  1460. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1461. } @%:@ ac_fn_c_check_header_compile
  1462. @%:@ ac_fn_c_try_cpp LINENO
  1463. @%:@ ----------------------
  1464. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1465. ac_fn_c_try_cpp ()
  1466. {
  1467. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1468. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1469. case "(($ac_try" in
  1470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1471. *) ac_try_echo=$ac_try;;
  1472. esac
  1473. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1474. $as_echo "$ac_try_echo"; } >&5
  1475. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1476. ac_status=$?
  1477. if test -s conftest.err; then
  1478. grep -v '^ *+' conftest.err >conftest.er1
  1479. cat conftest.er1 >&5
  1480. mv -f conftest.er1 conftest.err
  1481. fi
  1482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1483. test $ac_status = 0; } > conftest.i && {
  1484. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1485. test ! -s conftest.err
  1486. }; then :
  1487. ac_retval=0
  1488. else
  1489. $as_echo "$as_me: failed program was:" >&5
  1490. sed 's/^/| /' conftest.$ac_ext >&5
  1491. ac_retval=1
  1492. fi
  1493. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1494. as_fn_set_status $ac_retval
  1495. } @%:@ ac_fn_c_try_cpp
  1496. @%:@ ac_fn_c_try_run LINENO
  1497. @%:@ ----------------------
  1498. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1499. @%:@ that executables *can* be run.
  1500. ac_fn_c_try_run ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. if { { ac_try="$ac_link"
  1504. case "(($ac_try" in
  1505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1506. *) ac_try_echo=$ac_try;;
  1507. esac
  1508. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1509. $as_echo "$ac_try_echo"; } >&5
  1510. (eval "$ac_link") 2>&5
  1511. ac_status=$?
  1512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1513. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1514. { { case "(($ac_try" in
  1515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1516. *) ac_try_echo=$ac_try;;
  1517. esac
  1518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1519. $as_echo "$ac_try_echo"; } >&5
  1520. (eval "$ac_try") 2>&5
  1521. ac_status=$?
  1522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1523. test $ac_status = 0; }; }; then :
  1524. ac_retval=0
  1525. else
  1526. $as_echo "$as_me: program exited with status $ac_status" >&5
  1527. $as_echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. ac_retval=$ac_status
  1530. fi
  1531. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1532. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1533. as_fn_set_status $ac_retval
  1534. } @%:@ ac_fn_c_try_run
  1535. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1536. @%:@ ----------------------------------
  1537. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1538. ac_fn_c_check_func ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1542. $as_echo_n "checking for $2... " >&6; }
  1543. if eval \${$3+:} false; then :
  1544. $as_echo_n "(cached) " >&6
  1545. else
  1546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1547. /* end confdefs.h. */
  1548. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1549. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1550. #define $2 innocuous_$2
  1551. /* System header to define __stub macros and hopefully few prototypes,
  1552. which can conflict with char $2 (); below.
  1553. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1554. <limits.h> exists even on freestanding compilers. */
  1555. #ifdef __STDC__
  1556. # include <limits.h>
  1557. #else
  1558. # include <assert.h>
  1559. #endif
  1560. #undef $2
  1561. /* Override any GCC internal prototype to avoid an error.
  1562. Use char because int might match the return type of a GCC
  1563. builtin and then its argument prototype would still apply. */
  1564. #ifdef __cplusplus
  1565. extern "C"
  1566. #endif
  1567. char $2 ();
  1568. /* The GNU C library defines this for functions which it implements
  1569. to always fail with ENOSYS. Some functions are actually named
  1570. something starting with __ and the normal name is an alias. */
  1571. #if defined __stub_$2 || defined __stub___$2
  1572. choke me
  1573. #endif
  1574. int
  1575. main ()
  1576. {
  1577. return $2 ();
  1578. ;
  1579. return 0;
  1580. }
  1581. _ACEOF
  1582. if ac_fn_c_try_link "$LINENO"; then :
  1583. eval "$3=yes"
  1584. else
  1585. eval "$3=no"
  1586. fi
  1587. rm -f core conftest.err conftest.$ac_objext \
  1588. conftest$ac_exeext conftest.$ac_ext
  1589. fi
  1590. eval ac_res=\$$3
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1592. $as_echo "$ac_res" >&6; }
  1593. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1594. } @%:@ ac_fn_c_check_func
  1595. cat >config.log <<_ACEOF
  1596. This file contains any messages produced by compilers while
  1597. running configure, to aid debugging if configure makes a mistake.
  1598. It was created by OPCUAServer $as_me 1.0, which was
  1599. generated by GNU Autoconf 2.68. Invocation command line was
  1600. $ $0 $@
  1601. _ACEOF
  1602. exec 5>>config.log
  1603. {
  1604. cat <<_ASUNAME
  1605. ## --------- ##
  1606. ## Platform. ##
  1607. ## --------- ##
  1608. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1609. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1610. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1611. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1612. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1613. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1614. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1615. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1616. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1617. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1618. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1619. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1620. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1621. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1622. _ASUNAME
  1623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1624. for as_dir in $PATH
  1625. do
  1626. IFS=$as_save_IFS
  1627. test -z "$as_dir" && as_dir=.
  1628. $as_echo "PATH: $as_dir"
  1629. done
  1630. IFS=$as_save_IFS
  1631. } >&5
  1632. cat >&5 <<_ACEOF
  1633. ## ----------- ##
  1634. ## Core tests. ##
  1635. ## ----------- ##
  1636. _ACEOF
  1637. # Keep a trace of the command line.
  1638. # Strip out --no-create and --no-recursion so they do not pile up.
  1639. # Strip out --silent because we don't want to record it for future runs.
  1640. # Also quote any args containing shell meta-characters.
  1641. # Make two passes to allow for proper duplicate-argument suppression.
  1642. ac_configure_args=
  1643. ac_configure_args0=
  1644. ac_configure_args1=
  1645. ac_must_keep_next=false
  1646. for ac_pass in 1 2
  1647. do
  1648. for ac_arg
  1649. do
  1650. case $ac_arg in
  1651. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1652. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1653. | -silent | --silent | --silen | --sile | --sil)
  1654. continue ;;
  1655. *\'*)
  1656. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1657. esac
  1658. case $ac_pass in
  1659. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1660. 2)
  1661. as_fn_append ac_configure_args1 " '$ac_arg'"
  1662. if test $ac_must_keep_next = true; then
  1663. ac_must_keep_next=false # Got value, back to normal.
  1664. else
  1665. case $ac_arg in
  1666. *=* | --config-cache | -C | -disable-* | --disable-* \
  1667. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1668. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1669. | -with-* | --with-* | -without-* | --without-* | --x)
  1670. case "$ac_configure_args0 " in
  1671. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1672. esac
  1673. ;;
  1674. -* ) ac_must_keep_next=true ;;
  1675. esac
  1676. fi
  1677. as_fn_append ac_configure_args " '$ac_arg'"
  1678. ;;
  1679. esac
  1680. done
  1681. done
  1682. { ac_configure_args0=; unset ac_configure_args0;}
  1683. { ac_configure_args1=; unset ac_configure_args1;}
  1684. # When interrupted or exit'd, cleanup temporary files, and complete
  1685. # config.log. We remove comments because anyway the quotes in there
  1686. # would cause problems or look ugly.
  1687. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1688. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1689. trap 'exit_status=$?
  1690. # Save into config.log some information that might help in debugging.
  1691. {
  1692. echo
  1693. $as_echo "## ---------------- ##
  1694. ## Cache variables. ##
  1695. ## ---------------- ##"
  1696. echo
  1697. # The following way of writing the cache mishandles newlines in values,
  1698. (
  1699. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1700. eval ac_val=\$$ac_var
  1701. case $ac_val in #(
  1702. *${as_nl}*)
  1703. case $ac_var in #(
  1704. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1705. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1706. esac
  1707. case $ac_var in #(
  1708. _ | IFS | as_nl) ;; #(
  1709. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1710. *) { eval $ac_var=; unset $ac_var;} ;;
  1711. esac ;;
  1712. esac
  1713. done
  1714. (set) 2>&1 |
  1715. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1716. *${as_nl}ac_space=\ *)
  1717. sed -n \
  1718. "s/'\''/'\''\\\\'\'''\''/g;
  1719. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1720. ;; #(
  1721. *)
  1722. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1723. ;;
  1724. esac |
  1725. sort
  1726. )
  1727. echo
  1728. $as_echo "## ----------------- ##
  1729. ## Output variables. ##
  1730. ## ----------------- ##"
  1731. echo
  1732. for ac_var in $ac_subst_vars
  1733. do
  1734. eval ac_val=\$$ac_var
  1735. case $ac_val in
  1736. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1737. esac
  1738. $as_echo "$ac_var='\''$ac_val'\''"
  1739. done | sort
  1740. echo
  1741. if test -n "$ac_subst_files"; then
  1742. $as_echo "## ------------------- ##
  1743. ## File substitutions. ##
  1744. ## ------------------- ##"
  1745. echo
  1746. for ac_var in $ac_subst_files
  1747. do
  1748. eval ac_val=\$$ac_var
  1749. case $ac_val in
  1750. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1751. esac
  1752. $as_echo "$ac_var='\''$ac_val'\''"
  1753. done | sort
  1754. echo
  1755. fi
  1756. if test -s confdefs.h; then
  1757. $as_echo "## ----------- ##
  1758. ## confdefs.h. ##
  1759. ## ----------- ##"
  1760. echo
  1761. cat confdefs.h
  1762. echo
  1763. fi
  1764. test "$ac_signal" != 0 &&
  1765. $as_echo "$as_me: caught signal $ac_signal"
  1766. $as_echo "$as_me: exit $exit_status"
  1767. } >&5
  1768. rm -f core *.core core.conftest.* &&
  1769. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1770. exit $exit_status
  1771. ' 0
  1772. for ac_signal in 1 2 13 15; do
  1773. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1774. done
  1775. ac_signal=0
  1776. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1777. rm -f -r conftest* confdefs.h
  1778. $as_echo "/* confdefs.h */" > confdefs.h
  1779. # Predefined preprocessor variables.
  1780. cat >>confdefs.h <<_ACEOF
  1781. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  1782. _ACEOF
  1783. cat >>confdefs.h <<_ACEOF
  1784. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1785. _ACEOF
  1786. cat >>confdefs.h <<_ACEOF
  1787. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  1788. _ACEOF
  1789. cat >>confdefs.h <<_ACEOF
  1790. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  1791. _ACEOF
  1792. cat >>confdefs.h <<_ACEOF
  1793. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1794. _ACEOF
  1795. cat >>confdefs.h <<_ACEOF
  1796. @%:@define PACKAGE_URL "$PACKAGE_URL"
  1797. _ACEOF
  1798. # Let the site file select an alternate cache file if it wants to.
  1799. # Prefer an explicitly selected file to automatically selected ones.
  1800. ac_site_file1=NONE
  1801. ac_site_file2=NONE
  1802. if test -n "$CONFIG_SITE"; then
  1803. # We do not want a PATH search for config.site.
  1804. case $CONFIG_SITE in @%:@((
  1805. -*) ac_site_file1=./$CONFIG_SITE;;
  1806. */*) ac_site_file1=$CONFIG_SITE;;
  1807. *) ac_site_file1=./$CONFIG_SITE;;
  1808. esac
  1809. elif test "x$prefix" != xNONE; then
  1810. ac_site_file1=$prefix/share/config.site
  1811. ac_site_file2=$prefix/etc/config.site
  1812. else
  1813. ac_site_file1=$ac_default_prefix/share/config.site
  1814. ac_site_file2=$ac_default_prefix/etc/config.site
  1815. fi
  1816. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1817. do
  1818. test "x$ac_site_file" = xNONE && continue
  1819. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1821. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1822. sed 's/^/| /' "$ac_site_file" >&5
  1823. . "$ac_site_file" \
  1824. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1825. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1826. as_fn_error $? "failed to load site script $ac_site_file
  1827. See \`config.log' for more details" "$LINENO" 5; }
  1828. fi
  1829. done
  1830. if test -r "$cache_file"; then
  1831. # Some versions of bash will fail to source /dev/null (special files
  1832. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1833. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1834. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1835. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1836. case $cache_file in
  1837. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1838. *) . "./$cache_file";;
  1839. esac
  1840. fi
  1841. else
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1843. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1844. >$cache_file
  1845. fi
  1846. # Check that the precious variables saved in the cache have kept the same
  1847. # value.
  1848. ac_cache_corrupted=false
  1849. for ac_var in $ac_precious_vars; do
  1850. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1851. eval ac_new_set=\$ac_env_${ac_var}_set
  1852. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1853. eval ac_new_val=\$ac_env_${ac_var}_value
  1854. case $ac_old_set,$ac_new_set in
  1855. set,)
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1857. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1858. ac_cache_corrupted=: ;;
  1859. ,set)
  1860. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1861. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1862. ac_cache_corrupted=: ;;
  1863. ,);;
  1864. *)
  1865. if test "x$ac_old_val" != "x$ac_new_val"; then
  1866. # differences in whitespace do not lead to failure.
  1867. ac_old_val_w=`echo x $ac_old_val`
  1868. ac_new_val_w=`echo x $ac_new_val`
  1869. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1870. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1871. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1872. ac_cache_corrupted=:
  1873. else
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1875. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1876. eval $ac_var=\$ac_old_val
  1877. fi
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1879. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1881. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1882. fi;;
  1883. esac
  1884. # Pass precious variables to config.status.
  1885. if test "$ac_new_set" = set; then
  1886. case $ac_new_val in
  1887. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1888. *) ac_arg=$ac_var=$ac_new_val ;;
  1889. esac
  1890. case " $ac_configure_args " in
  1891. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1892. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1893. esac
  1894. fi
  1895. done
  1896. if $ac_cache_corrupted; then
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1898. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1900. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1901. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1902. fi
  1903. ## -------------------- ##
  1904. ## Main body of script. ##
  1905. ## -------------------- ##
  1906. ac_ext=c
  1907. ac_cpp='$CPP $CPPFLAGS'
  1908. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1909. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1910. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1911. ac_aux_dir=
  1912. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1913. if test -f "$ac_dir/install-sh"; then
  1914. ac_aux_dir=$ac_dir
  1915. ac_install_sh="$ac_aux_dir/install-sh -c"
  1916. break
  1917. elif test -f "$ac_dir/install.sh"; then
  1918. ac_aux_dir=$ac_dir
  1919. ac_install_sh="$ac_aux_dir/install.sh -c"
  1920. break
  1921. elif test -f "$ac_dir/shtool"; then
  1922. ac_aux_dir=$ac_dir
  1923. ac_install_sh="$ac_aux_dir/shtool install -c"
  1924. break
  1925. fi
  1926. done
  1927. if test -z "$ac_aux_dir"; then
  1928. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1929. fi
  1930. # These three variables are undocumented and unsupported,
  1931. # and are intended to be withdrawn in a future Autoconf release.
  1932. # They can cause serious problems if a builder's source tree is in a directory
  1933. # whose full name contains unusual characters.
  1934. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1935. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1936. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1937. # Make sure we can run config.sub.
  1938. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1939. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1941. $as_echo_n "checking build system type... " >&6; }
  1942. if ${ac_cv_build+:} false; then :
  1943. $as_echo_n "(cached) " >&6
  1944. else
  1945. ac_build_alias=$build_alias
  1946. test "x$ac_build_alias" = x &&
  1947. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1948. test "x$ac_build_alias" = x &&
  1949. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1950. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1951. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1952. fi
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1954. $as_echo "$ac_cv_build" >&6; }
  1955. case $ac_cv_build in
  1956. *-*-*) ;;
  1957. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1958. esac
  1959. build=$ac_cv_build
  1960. ac_save_IFS=$IFS; IFS='-'
  1961. set x $ac_cv_build
  1962. shift
  1963. build_cpu=$1
  1964. build_vendor=$2
  1965. shift; shift
  1966. # Remember, the first character of IFS is used to create $*,
  1967. # except with old shells:
  1968. build_os=$*
  1969. IFS=$ac_save_IFS
  1970. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1972. $as_echo_n "checking host system type... " >&6; }
  1973. if ${ac_cv_host+:} false; then :
  1974. $as_echo_n "(cached) " >&6
  1975. else
  1976. if test "x$host_alias" = x; then
  1977. ac_cv_host=$ac_cv_build
  1978. else
  1979. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1980. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1981. fi
  1982. fi
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  1984. $as_echo "$ac_cv_host" >&6; }
  1985. case $ac_cv_host in
  1986. *-*-*) ;;
  1987. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  1988. esac
  1989. host=$ac_cv_host
  1990. ac_save_IFS=$IFS; IFS='-'
  1991. set x $ac_cv_host
  1992. shift
  1993. host_cpu=$1
  1994. host_vendor=$2
  1995. shift; shift
  1996. # Remember, the first character of IFS is used to create $*,
  1997. # except with old shells:
  1998. host_os=$*
  1999. IFS=$ac_save_IFS
  2000. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2002. $as_echo_n "checking target system type... " >&6; }
  2003. if ${ac_cv_target+:} false; then :
  2004. $as_echo_n "(cached) " >&6
  2005. else
  2006. if test "x$target_alias" = x; then
  2007. ac_cv_target=$ac_cv_host
  2008. else
  2009. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2010. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2011. fi
  2012. fi
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2014. $as_echo "$ac_cv_target" >&6; }
  2015. case $ac_cv_target in
  2016. *-*-*) ;;
  2017. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2018. esac
  2019. target=$ac_cv_target
  2020. ac_save_IFS=$IFS; IFS='-'
  2021. set x $ac_cv_target
  2022. shift
  2023. target_cpu=$1
  2024. target_vendor=$2
  2025. shift; shift
  2026. # Remember, the first character of IFS is used to create $*,
  2027. # except with old shells:
  2028. target_os=$*
  2029. IFS=$ac_save_IFS
  2030. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2031. # The aliases save the names the user supplied, while $host etc.
  2032. # will get canonicalized.
  2033. test -n "$target_alias" &&
  2034. test "$program_prefix$program_suffix$program_transform_name" = \
  2035. NONENONEs,x,x, &&
  2036. program_prefix=${target_alias}-
  2037. am__api_version='1.11'
  2038. # Find a good install program. We prefer a C program (faster),
  2039. # so one script is as good as another. But avoid the broken or
  2040. # incompatible versions:
  2041. # SysV /etc/install, /usr/sbin/install
  2042. # SunOS /usr/etc/install
  2043. # IRIX /sbin/install
  2044. # AIX /bin/install
  2045. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2046. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2047. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2048. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2049. # OS/2's system install, which has a completely different semantic
  2050. # ./install, which can be erroneously created by make from ./install.sh.
  2051. # Reject install programs that cannot install multiple files.
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2053. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2054. if test -z "$INSTALL"; then
  2055. if ${ac_cv_path_install+:} false; then :
  2056. $as_echo_n "(cached) " >&6
  2057. else
  2058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2059. for as_dir in $PATH
  2060. do
  2061. IFS=$as_save_IFS
  2062. test -z "$as_dir" && as_dir=.
  2063. # Account for people who put trailing slashes in PATH elements.
  2064. case $as_dir/ in @%:@((
  2065. ./ | .// | /[cC]/* | \
  2066. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2067. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2068. /usr/ucb/* ) ;;
  2069. *)
  2070. # OSF1 and SCO ODT 3.0 have their own names for install.
  2071. # Don't use installbsd from OSF since it installs stuff as root
  2072. # by default.
  2073. for ac_prog in ginstall scoinst install; do
  2074. for ac_exec_ext in '' $ac_executable_extensions; do
  2075. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2076. if test $ac_prog = install &&
  2077. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2078. # AIX install. It has an incompatible calling convention.
  2079. :
  2080. elif test $ac_prog = install &&
  2081. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2082. # program-specific install script used by HP pwplus--don't use.
  2083. :
  2084. else
  2085. rm -rf conftest.one conftest.two conftest.dir
  2086. echo one > conftest.one
  2087. echo two > conftest.two
  2088. mkdir conftest.dir
  2089. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2090. test -s conftest.one && test -s conftest.two &&
  2091. test -s conftest.dir/conftest.one &&
  2092. test -s conftest.dir/conftest.two
  2093. then
  2094. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2095. break 3
  2096. fi
  2097. fi
  2098. fi
  2099. done
  2100. done
  2101. ;;
  2102. esac
  2103. done
  2104. IFS=$as_save_IFS
  2105. rm -rf conftest.one conftest.two conftest.dir
  2106. fi
  2107. if test "${ac_cv_path_install+set}" = set; then
  2108. INSTALL=$ac_cv_path_install
  2109. else
  2110. # As a last resort, use the slow shell script. Don't cache a
  2111. # value for INSTALL within a source directory, because that will
  2112. # break other packages using the cache if that directory is
  2113. # removed, or if the value is a relative name.
  2114. INSTALL=$ac_install_sh
  2115. fi
  2116. fi
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2118. $as_echo "$INSTALL" >&6; }
  2119. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2120. # It thinks the first close brace ends the variable substitution.
  2121. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2122. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2123. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2125. $as_echo_n "checking whether build environment is sane... " >&6; }
  2126. # Just in case
  2127. sleep 1
  2128. echo timestamp > conftest.file
  2129. # Reject unsafe characters in $srcdir or the absolute working directory
  2130. # name. Accept space and tab only in the latter.
  2131. am_lf='
  2132. '
  2133. case `pwd` in
  2134. *[\\\"\#\$\&\'\`$am_lf]*)
  2135. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2136. esac
  2137. case $srcdir in
  2138. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2139. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2140. esac
  2141. # Do `set' in a subshell so we don't clobber the current shell's
  2142. # arguments. Must try -L first in case configure is actually a
  2143. # symlink; some systems play weird games with the mod time of symlinks
  2144. # (eg FreeBSD returns the mod time of the symlink's containing
  2145. # directory).
  2146. if (
  2147. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2148. if test "$*" = "X"; then
  2149. # -L didn't work.
  2150. set X `ls -t "$srcdir/configure" conftest.file`
  2151. fi
  2152. rm -f conftest.file
  2153. if test "$*" != "X $srcdir/configure conftest.file" \
  2154. && test "$*" != "X conftest.file $srcdir/configure"; then
  2155. # If neither matched, then we have a broken ls. This can happen
  2156. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2157. # broken ls alias from the environment. This has actually
  2158. # happened. Such a system could not be considered "sane".
  2159. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2160. alias in your environment" "$LINENO" 5
  2161. fi
  2162. test "$2" = conftest.file
  2163. )
  2164. then
  2165. # Ok.
  2166. :
  2167. else
  2168. as_fn_error $? "newly created file is older than distributed files!
  2169. Check your system clock" "$LINENO" 5
  2170. fi
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2172. $as_echo "yes" >&6; }
  2173. test "$program_prefix" != NONE &&
  2174. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2175. # Use a double $ so make ignores it.
  2176. test "$program_suffix" != NONE &&
  2177. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2178. # Double any \ or $.
  2179. # By default was `s,x,x', remove it if useless.
  2180. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2181. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2182. # expand $ac_aux_dir to an absolute path
  2183. am_aux_dir=`cd $ac_aux_dir && pwd`
  2184. if test x"${MISSING+set}" != xset; then
  2185. case $am_aux_dir in
  2186. *\ * | *\ *)
  2187. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2188. *)
  2189. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2190. esac
  2191. fi
  2192. # Use eval to expand $SHELL
  2193. if eval "$MISSING --run true"; then
  2194. am_missing_run="$MISSING --run "
  2195. else
  2196. am_missing_run=
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2198. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2199. fi
  2200. if test x"${install_sh}" != xset; then
  2201. case $am_aux_dir in
  2202. *\ * | *\ *)
  2203. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2204. *)
  2205. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2206. esac
  2207. fi
  2208. # Installed binaries are usually stripped using `strip' when the user
  2209. # run `make install-strip'. However `strip' might not be the right
  2210. # tool to use in cross-compilation environments, therefore Automake
  2211. # will honor the `STRIP' environment variable to overrule this program.
  2212. if test "$cross_compiling" != no; then
  2213. if test -n "$ac_tool_prefix"; then
  2214. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2215. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2217. $as_echo_n "checking for $ac_word... " >&6; }
  2218. if ${ac_cv_prog_STRIP+:} false; then :
  2219. $as_echo_n "(cached) " >&6
  2220. else
  2221. if test -n "$STRIP"; then
  2222. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2223. else
  2224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2225. for as_dir in $PATH
  2226. do
  2227. IFS=$as_save_IFS
  2228. test -z "$as_dir" && as_dir=.
  2229. for ac_exec_ext in '' $ac_executable_extensions; do
  2230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2231. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2233. break 2
  2234. fi
  2235. done
  2236. done
  2237. IFS=$as_save_IFS
  2238. fi
  2239. fi
  2240. STRIP=$ac_cv_prog_STRIP
  2241. if test -n "$STRIP"; then
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2243. $as_echo "$STRIP" >&6; }
  2244. else
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2246. $as_echo "no" >&6; }
  2247. fi
  2248. fi
  2249. if test -z "$ac_cv_prog_STRIP"; then
  2250. ac_ct_STRIP=$STRIP
  2251. # Extract the first word of "strip", so it can be a program name with args.
  2252. set dummy strip; ac_word=$2
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2254. $as_echo_n "checking for $ac_word... " >&6; }
  2255. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2256. $as_echo_n "(cached) " >&6
  2257. else
  2258. if test -n "$ac_ct_STRIP"; then
  2259. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2260. else
  2261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2262. for as_dir in $PATH
  2263. do
  2264. IFS=$as_save_IFS
  2265. test -z "$as_dir" && as_dir=.
  2266. for ac_exec_ext in '' $ac_executable_extensions; do
  2267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2268. ac_cv_prog_ac_ct_STRIP="strip"
  2269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2270. break 2
  2271. fi
  2272. done
  2273. done
  2274. IFS=$as_save_IFS
  2275. fi
  2276. fi
  2277. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2278. if test -n "$ac_ct_STRIP"; then
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2280. $as_echo "$ac_ct_STRIP" >&6; }
  2281. else
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2283. $as_echo "no" >&6; }
  2284. fi
  2285. if test "x$ac_ct_STRIP" = x; then
  2286. STRIP=":"
  2287. else
  2288. case $cross_compiling:$ac_tool_warned in
  2289. yes:)
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2291. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2292. ac_tool_warned=yes ;;
  2293. esac
  2294. STRIP=$ac_ct_STRIP
  2295. fi
  2296. else
  2297. STRIP="$ac_cv_prog_STRIP"
  2298. fi
  2299. fi
  2300. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2302. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2303. if test -z "$MKDIR_P"; then
  2304. if ${ac_cv_path_mkdir+:} false; then :
  2305. $as_echo_n "(cached) " >&6
  2306. else
  2307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2308. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2309. do
  2310. IFS=$as_save_IFS
  2311. test -z "$as_dir" && as_dir=.
  2312. for ac_prog in mkdir gmkdir; do
  2313. for ac_exec_ext in '' $ac_executable_extensions; do
  2314. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2315. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2316. 'mkdir (GNU coreutils) '* | \
  2317. 'mkdir (coreutils) '* | \
  2318. 'mkdir (fileutils) '4.1*)
  2319. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2320. break 3;;
  2321. esac
  2322. done
  2323. done
  2324. done
  2325. IFS=$as_save_IFS
  2326. fi
  2327. test -d ./--version && rmdir ./--version
  2328. if test "${ac_cv_path_mkdir+set}" = set; then
  2329. MKDIR_P="$ac_cv_path_mkdir -p"
  2330. else
  2331. # As a last resort, use the slow shell script. Don't cache a
  2332. # value for MKDIR_P within a source directory, because that will
  2333. # break other packages using the cache if that directory is
  2334. # removed, or if the value is a relative name.
  2335. MKDIR_P="$ac_install_sh -d"
  2336. fi
  2337. fi
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2339. $as_echo "$MKDIR_P" >&6; }
  2340. mkdir_p="$MKDIR_P"
  2341. case $mkdir_p in
  2342. [\\/$]* | ?:[\\/]*) ;;
  2343. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2344. esac
  2345. for ac_prog in gawk mawk nawk awk
  2346. do
  2347. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2348. set dummy $ac_prog; ac_word=$2
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2350. $as_echo_n "checking for $ac_word... " >&6; }
  2351. if ${ac_cv_prog_AWK+:} false; then :
  2352. $as_echo_n "(cached) " >&6
  2353. else
  2354. if test -n "$AWK"; then
  2355. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2356. else
  2357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2358. for as_dir in $PATH
  2359. do
  2360. IFS=$as_save_IFS
  2361. test -z "$as_dir" && as_dir=.
  2362. for ac_exec_ext in '' $ac_executable_extensions; do
  2363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2364. ac_cv_prog_AWK="$ac_prog"
  2365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2366. break 2
  2367. fi
  2368. done
  2369. done
  2370. IFS=$as_save_IFS
  2371. fi
  2372. fi
  2373. AWK=$ac_cv_prog_AWK
  2374. if test -n "$AWK"; then
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2376. $as_echo "$AWK" >&6; }
  2377. else
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2379. $as_echo "no" >&6; }
  2380. fi
  2381. test -n "$AWK" && break
  2382. done
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2384. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2385. set x ${MAKE-make}
  2386. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2387. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2388. $as_echo_n "(cached) " >&6
  2389. else
  2390. cat >conftest.make <<\_ACEOF
  2391. SHELL = /bin/sh
  2392. all:
  2393. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2394. _ACEOF
  2395. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2396. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2397. *@@@%%%=?*=@@@%%%*)
  2398. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2399. *)
  2400. eval ac_cv_prog_make_${ac_make}_set=no;;
  2401. esac
  2402. rm -f conftest.make
  2403. fi
  2404. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2406. $as_echo "yes" >&6; }
  2407. SET_MAKE=
  2408. else
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2410. $as_echo "no" >&6; }
  2411. SET_MAKE="MAKE=${MAKE-make}"
  2412. fi
  2413. rm -rf .tst 2>/dev/null
  2414. mkdir .tst 2>/dev/null
  2415. if test -d .tst; then
  2416. am__leading_dot=.
  2417. else
  2418. am__leading_dot=_
  2419. fi
  2420. rmdir .tst 2>/dev/null
  2421. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2422. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2423. # is not polluted with repeated "-I."
  2424. am__isrc=' -I$(srcdir)'
  2425. # test to see if srcdir already configured
  2426. if test -f $srcdir/config.status; then
  2427. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2428. fi
  2429. fi
  2430. # test whether we have cygpath
  2431. if test -z "$CYGPATH_W"; then
  2432. if (cygpath --version) >/dev/null 2>/dev/null; then
  2433. CYGPATH_W='cygpath -w'
  2434. else
  2435. CYGPATH_W=echo
  2436. fi
  2437. fi
  2438. # Define the identity of the package.
  2439. PACKAGE='opcuaserver'
  2440. VERSION='1.0'
  2441. cat >>confdefs.h <<_ACEOF
  2442. @%:@define PACKAGE "$PACKAGE"
  2443. _ACEOF
  2444. cat >>confdefs.h <<_ACEOF
  2445. @%:@define VERSION "$VERSION"
  2446. _ACEOF
  2447. # Some tools Automake needs.
  2448. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2449. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2450. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2451. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2452. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2453. # We need awk for the "check" target. The system "awk" is bad on
  2454. # some platforms.
  2455. # Always define AMTAR for backward compatibility. Yes, it's still used
  2456. # in the wild :-( We should find a proper way to deprecate it ...
  2457. AMTAR='$${TAR-tar}'
  2458. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2459. ac_ext=c
  2460. ac_cpp='$CPP $CPPFLAGS'
  2461. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2462. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2463. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2464. if test -n "$ac_tool_prefix"; then
  2465. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2466. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2468. $as_echo_n "checking for $ac_word... " >&6; }
  2469. if ${ac_cv_prog_CC+:} false; then :
  2470. $as_echo_n "(cached) " >&6
  2471. else
  2472. if test -n "$CC"; then
  2473. ac_cv_prog_CC="$CC" # Let the user override the test.
  2474. else
  2475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2476. for as_dir in $PATH
  2477. do
  2478. IFS=$as_save_IFS
  2479. test -z "$as_dir" && as_dir=.
  2480. for ac_exec_ext in '' $ac_executable_extensions; do
  2481. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2482. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2484. break 2
  2485. fi
  2486. done
  2487. done
  2488. IFS=$as_save_IFS
  2489. fi
  2490. fi
  2491. CC=$ac_cv_prog_CC
  2492. if test -n "$CC"; then
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2494. $as_echo "$CC" >&6; }
  2495. else
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2497. $as_echo "no" >&6; }
  2498. fi
  2499. fi
  2500. if test -z "$ac_cv_prog_CC"; then
  2501. ac_ct_CC=$CC
  2502. # Extract the first word of "gcc", so it can be a program name with args.
  2503. set dummy gcc; ac_word=$2
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2505. $as_echo_n "checking for $ac_word... " >&6; }
  2506. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2507. $as_echo_n "(cached) " >&6
  2508. else
  2509. if test -n "$ac_ct_CC"; then
  2510. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2511. else
  2512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2513. for as_dir in $PATH
  2514. do
  2515. IFS=$as_save_IFS
  2516. test -z "$as_dir" && as_dir=.
  2517. for ac_exec_ext in '' $ac_executable_extensions; do
  2518. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2519. ac_cv_prog_ac_ct_CC="gcc"
  2520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2521. break 2
  2522. fi
  2523. done
  2524. done
  2525. IFS=$as_save_IFS
  2526. fi
  2527. fi
  2528. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2529. if test -n "$ac_ct_CC"; then
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2531. $as_echo "$ac_ct_CC" >&6; }
  2532. else
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2534. $as_echo "no" >&6; }
  2535. fi
  2536. if test "x$ac_ct_CC" = x; then
  2537. CC=""
  2538. else
  2539. case $cross_compiling:$ac_tool_warned in
  2540. yes:)
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2542. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2543. ac_tool_warned=yes ;;
  2544. esac
  2545. CC=$ac_ct_CC
  2546. fi
  2547. else
  2548. CC="$ac_cv_prog_CC"
  2549. fi
  2550. if test -z "$CC"; then
  2551. if test -n "$ac_tool_prefix"; then
  2552. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2553. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2555. $as_echo_n "checking for $ac_word... " >&6; }
  2556. if ${ac_cv_prog_CC+:} false; then :
  2557. $as_echo_n "(cached) " >&6
  2558. else
  2559. if test -n "$CC"; then
  2560. ac_cv_prog_CC="$CC" # Let the user override the test.
  2561. else
  2562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2563. for as_dir in $PATH
  2564. do
  2565. IFS=$as_save_IFS
  2566. test -z "$as_dir" && as_dir=.
  2567. for ac_exec_ext in '' $ac_executable_extensions; do
  2568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2569. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2571. break 2
  2572. fi
  2573. done
  2574. done
  2575. IFS=$as_save_IFS
  2576. fi
  2577. fi
  2578. CC=$ac_cv_prog_CC
  2579. if test -n "$CC"; then
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2581. $as_echo "$CC" >&6; }
  2582. else
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2584. $as_echo "no" >&6; }
  2585. fi
  2586. fi
  2587. fi
  2588. if test -z "$CC"; then
  2589. # Extract the first word of "cc", so it can be a program name with args.
  2590. set dummy cc; ac_word=$2
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2592. $as_echo_n "checking for $ac_word... " >&6; }
  2593. if ${ac_cv_prog_CC+:} false; then :
  2594. $as_echo_n "(cached) " >&6
  2595. else
  2596. if test -n "$CC"; then
  2597. ac_cv_prog_CC="$CC" # Let the user override the test.
  2598. else
  2599. ac_prog_rejected=no
  2600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2601. for as_dir in $PATH
  2602. do
  2603. IFS=$as_save_IFS
  2604. test -z "$as_dir" && as_dir=.
  2605. for ac_exec_ext in '' $ac_executable_extensions; do
  2606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2607. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2608. ac_prog_rejected=yes
  2609. continue
  2610. fi
  2611. ac_cv_prog_CC="cc"
  2612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2613. break 2
  2614. fi
  2615. done
  2616. done
  2617. IFS=$as_save_IFS
  2618. if test $ac_prog_rejected = yes; then
  2619. # We found a bogon in the path, so make sure we never use it.
  2620. set dummy $ac_cv_prog_CC
  2621. shift
  2622. if test $@%:@ != 0; then
  2623. # We chose a different compiler from the bogus one.
  2624. # However, it has the same basename, so the bogon will be chosen
  2625. # first if we set CC to just the basename; use the full file name.
  2626. shift
  2627. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2628. fi
  2629. fi
  2630. fi
  2631. fi
  2632. CC=$ac_cv_prog_CC
  2633. if test -n "$CC"; then
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2635. $as_echo "$CC" >&6; }
  2636. else
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2638. $as_echo "no" >&6; }
  2639. fi
  2640. fi
  2641. if test -z "$CC"; then
  2642. if test -n "$ac_tool_prefix"; then
  2643. for ac_prog in cl.exe
  2644. do
  2645. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2646. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2648. $as_echo_n "checking for $ac_word... " >&6; }
  2649. if ${ac_cv_prog_CC+:} false; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test -n "$CC"; then
  2653. ac_cv_prog_CC="$CC" # Let the user override the test.
  2654. else
  2655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2656. for as_dir in $PATH
  2657. do
  2658. IFS=$as_save_IFS
  2659. test -z "$as_dir" && as_dir=.
  2660. for ac_exec_ext in '' $ac_executable_extensions; do
  2661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2662. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2664. break 2
  2665. fi
  2666. done
  2667. done
  2668. IFS=$as_save_IFS
  2669. fi
  2670. fi
  2671. CC=$ac_cv_prog_CC
  2672. if test -n "$CC"; then
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2674. $as_echo "$CC" >&6; }
  2675. else
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2677. $as_echo "no" >&6; }
  2678. fi
  2679. test -n "$CC" && break
  2680. done
  2681. fi
  2682. if test -z "$CC"; then
  2683. ac_ct_CC=$CC
  2684. for ac_prog in cl.exe
  2685. do
  2686. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2687. set dummy $ac_prog; ac_word=$2
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2689. $as_echo_n "checking for $ac_word... " >&6; }
  2690. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2691. $as_echo_n "(cached) " >&6
  2692. else
  2693. if test -n "$ac_ct_CC"; then
  2694. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2695. else
  2696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2697. for as_dir in $PATH
  2698. do
  2699. IFS=$as_save_IFS
  2700. test -z "$as_dir" && as_dir=.
  2701. for ac_exec_ext in '' $ac_executable_extensions; do
  2702. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2703. ac_cv_prog_ac_ct_CC="$ac_prog"
  2704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2705. break 2
  2706. fi
  2707. done
  2708. done
  2709. IFS=$as_save_IFS
  2710. fi
  2711. fi
  2712. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2713. if test -n "$ac_ct_CC"; then
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2715. $as_echo "$ac_ct_CC" >&6; }
  2716. else
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2718. $as_echo "no" >&6; }
  2719. fi
  2720. test -n "$ac_ct_CC" && break
  2721. done
  2722. if test "x$ac_ct_CC" = x; then
  2723. CC=""
  2724. else
  2725. case $cross_compiling:$ac_tool_warned in
  2726. yes:)
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2728. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2729. ac_tool_warned=yes ;;
  2730. esac
  2731. CC=$ac_ct_CC
  2732. fi
  2733. fi
  2734. fi
  2735. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2736. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2737. as_fn_error $? "no acceptable C compiler found in \$PATH
  2738. See \`config.log' for more details" "$LINENO" 5; }
  2739. # Provide some information about the compiler.
  2740. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2741. set X $ac_compile
  2742. ac_compiler=$2
  2743. for ac_option in --version -v -V -qversion; do
  2744. { { ac_try="$ac_compiler $ac_option >&5"
  2745. case "(($ac_try" in
  2746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2747. *) ac_try_echo=$ac_try;;
  2748. esac
  2749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2750. $as_echo "$ac_try_echo"; } >&5
  2751. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2752. ac_status=$?
  2753. if test -s conftest.err; then
  2754. sed '10a\
  2755. ... rest of stderr output deleted ...
  2756. 10q' conftest.err >conftest.er1
  2757. cat conftest.er1 >&5
  2758. fi
  2759. rm -f conftest.er1 conftest.err
  2760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2761. test $ac_status = 0; }
  2762. done
  2763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2764. /* end confdefs.h. */
  2765. int
  2766. main ()
  2767. {
  2768. ;
  2769. return 0;
  2770. }
  2771. _ACEOF
  2772. ac_clean_files_save=$ac_clean_files
  2773. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2774. # Try to create an executable without -o first, disregard a.out.
  2775. # It will help us diagnose broken compilers, and finding out an intuition
  2776. # of exeext.
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2778. $as_echo_n "checking whether the C compiler works... " >&6; }
  2779. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2780. # The possible output files:
  2781. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2782. ac_rmfiles=
  2783. for ac_file in $ac_files
  2784. do
  2785. case $ac_file in
  2786. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2787. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2788. esac
  2789. done
  2790. rm -f $ac_rmfiles
  2791. if { { ac_try="$ac_link_default"
  2792. case "(($ac_try" in
  2793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2794. *) ac_try_echo=$ac_try;;
  2795. esac
  2796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2797. $as_echo "$ac_try_echo"; } >&5
  2798. (eval "$ac_link_default") 2>&5
  2799. ac_status=$?
  2800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2801. test $ac_status = 0; }; then :
  2802. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2803. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2804. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2805. # so that the user can short-circuit this test for compilers unknown to
  2806. # Autoconf.
  2807. for ac_file in $ac_files ''
  2808. do
  2809. test -f "$ac_file" || continue
  2810. case $ac_file in
  2811. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2812. ;;
  2813. [ab].out )
  2814. # We found the default executable, but exeext='' is most
  2815. # certainly right.
  2816. break;;
  2817. *.* )
  2818. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2819. then :; else
  2820. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2821. fi
  2822. # We set ac_cv_exeext here because the later test for it is not
  2823. # safe: cross compilers may not add the suffix if given an `-o'
  2824. # argument, so we may need to know it at that point already.
  2825. # Even if this section looks crufty: it has the advantage of
  2826. # actually working.
  2827. break;;
  2828. * )
  2829. break;;
  2830. esac
  2831. done
  2832. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2833. else
  2834. ac_file=''
  2835. fi
  2836. if test -z "$ac_file"; then :
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2838. $as_echo "no" >&6; }
  2839. $as_echo "$as_me: failed program was:" >&5
  2840. sed 's/^/| /' conftest.$ac_ext >&5
  2841. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2842. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2843. as_fn_error 77 "C compiler cannot create executables
  2844. See \`config.log' for more details" "$LINENO" 5; }
  2845. else
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2847. $as_echo "yes" >&6; }
  2848. fi
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2850. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2852. $as_echo "$ac_file" >&6; }
  2853. ac_exeext=$ac_cv_exeext
  2854. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2855. ac_clean_files=$ac_clean_files_save
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2857. $as_echo_n "checking for suffix of executables... " >&6; }
  2858. if { { ac_try="$ac_link"
  2859. case "(($ac_try" in
  2860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2861. *) ac_try_echo=$ac_try;;
  2862. esac
  2863. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2864. $as_echo "$ac_try_echo"; } >&5
  2865. (eval "$ac_link") 2>&5
  2866. ac_status=$?
  2867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2868. test $ac_status = 0; }; then :
  2869. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2870. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2871. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2872. # `rm'.
  2873. for ac_file in conftest.exe conftest conftest.*; do
  2874. test -f "$ac_file" || continue
  2875. case $ac_file in
  2876. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2877. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2878. break;;
  2879. * ) break;;
  2880. esac
  2881. done
  2882. else
  2883. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2884. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2885. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2886. See \`config.log' for more details" "$LINENO" 5; }
  2887. fi
  2888. rm -f conftest conftest$ac_cv_exeext
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2890. $as_echo "$ac_cv_exeext" >&6; }
  2891. rm -f conftest.$ac_ext
  2892. EXEEXT=$ac_cv_exeext
  2893. ac_exeext=$EXEEXT
  2894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2895. /* end confdefs.h. */
  2896. @%:@include <stdio.h>
  2897. int
  2898. main ()
  2899. {
  2900. FILE *f = fopen ("conftest.out", "w");
  2901. return ferror (f) || fclose (f) != 0;
  2902. ;
  2903. return 0;
  2904. }
  2905. _ACEOF
  2906. ac_clean_files="$ac_clean_files conftest.out"
  2907. # Check that the compiler produces executables we can run. If not, either
  2908. # the compiler is broken, or we cross compile.
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2910. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2911. if test "$cross_compiling" != yes; then
  2912. { { ac_try="$ac_link"
  2913. case "(($ac_try" in
  2914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2915. *) ac_try_echo=$ac_try;;
  2916. esac
  2917. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2918. $as_echo "$ac_try_echo"; } >&5
  2919. (eval "$ac_link") 2>&5
  2920. ac_status=$?
  2921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2922. test $ac_status = 0; }
  2923. if { ac_try='./conftest$ac_cv_exeext'
  2924. { { case "(($ac_try" in
  2925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2926. *) ac_try_echo=$ac_try;;
  2927. esac
  2928. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2929. $as_echo "$ac_try_echo"; } >&5
  2930. (eval "$ac_try") 2>&5
  2931. ac_status=$?
  2932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2933. test $ac_status = 0; }; }; then
  2934. cross_compiling=no
  2935. else
  2936. if test "$cross_compiling" = maybe; then
  2937. cross_compiling=yes
  2938. else
  2939. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2940. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2941. as_fn_error $? "cannot run C compiled programs.
  2942. If you meant to cross compile, use \`--host'.
  2943. See \`config.log' for more details" "$LINENO" 5; }
  2944. fi
  2945. fi
  2946. fi
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2948. $as_echo "$cross_compiling" >&6; }
  2949. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2950. ac_clean_files=$ac_clean_files_save
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2952. $as_echo_n "checking for suffix of object files... " >&6; }
  2953. if ${ac_cv_objext+:} false; then :
  2954. $as_echo_n "(cached) " >&6
  2955. else
  2956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2957. /* end confdefs.h. */
  2958. int
  2959. main ()
  2960. {
  2961. ;
  2962. return 0;
  2963. }
  2964. _ACEOF
  2965. rm -f conftest.o conftest.obj
  2966. if { { ac_try="$ac_compile"
  2967. case "(($ac_try" in
  2968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2969. *) ac_try_echo=$ac_try;;
  2970. esac
  2971. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2972. $as_echo "$ac_try_echo"; } >&5
  2973. (eval "$ac_compile") 2>&5
  2974. ac_status=$?
  2975. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2976. test $ac_status = 0; }; then :
  2977. for ac_file in conftest.o conftest.obj conftest.*; do
  2978. test -f "$ac_file" || continue;
  2979. case $ac_file in
  2980. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2981. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2982. break;;
  2983. esac
  2984. done
  2985. else
  2986. $as_echo "$as_me: failed program was:" >&5
  2987. sed 's/^/| /' conftest.$ac_ext >&5
  2988. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2989. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2990. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2991. See \`config.log' for more details" "$LINENO" 5; }
  2992. fi
  2993. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2994. fi
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2996. $as_echo "$ac_cv_objext" >&6; }
  2997. OBJEXT=$ac_cv_objext
  2998. ac_objext=$OBJEXT
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3000. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3001. if ${ac_cv_c_compiler_gnu+:} false; then :
  3002. $as_echo_n "(cached) " >&6
  3003. else
  3004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3005. /* end confdefs.h. */
  3006. int
  3007. main ()
  3008. {
  3009. #ifndef __GNUC__
  3010. choke me
  3011. #endif
  3012. ;
  3013. return 0;
  3014. }
  3015. _ACEOF
  3016. if ac_fn_c_try_compile "$LINENO"; then :
  3017. ac_compiler_gnu=yes
  3018. else
  3019. ac_compiler_gnu=no
  3020. fi
  3021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3022. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3023. fi
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3025. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3026. if test $ac_compiler_gnu = yes; then
  3027. GCC=yes
  3028. else
  3029. GCC=
  3030. fi
  3031. ac_test_CFLAGS=${CFLAGS+set}
  3032. ac_save_CFLAGS=$CFLAGS
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3034. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3035. if ${ac_cv_prog_cc_g+:} false; then :
  3036. $as_echo_n "(cached) " >&6
  3037. else
  3038. ac_save_c_werror_flag=$ac_c_werror_flag
  3039. ac_c_werror_flag=yes
  3040. ac_cv_prog_cc_g=no
  3041. CFLAGS="-g"
  3042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3043. /* end confdefs.h. */
  3044. int
  3045. main ()
  3046. {
  3047. ;
  3048. return 0;
  3049. }
  3050. _ACEOF
  3051. if ac_fn_c_try_compile "$LINENO"; then :
  3052. ac_cv_prog_cc_g=yes
  3053. else
  3054. CFLAGS=""
  3055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3056. /* end confdefs.h. */
  3057. int
  3058. main ()
  3059. {
  3060. ;
  3061. return 0;
  3062. }
  3063. _ACEOF
  3064. if ac_fn_c_try_compile "$LINENO"; then :
  3065. else
  3066. ac_c_werror_flag=$ac_save_c_werror_flag
  3067. CFLAGS="-g"
  3068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3069. /* end confdefs.h. */
  3070. int
  3071. main ()
  3072. {
  3073. ;
  3074. return 0;
  3075. }
  3076. _ACEOF
  3077. if ac_fn_c_try_compile "$LINENO"; then :
  3078. ac_cv_prog_cc_g=yes
  3079. fi
  3080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3081. fi
  3082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3083. fi
  3084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3085. ac_c_werror_flag=$ac_save_c_werror_flag
  3086. fi
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3088. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3089. if test "$ac_test_CFLAGS" = set; then
  3090. CFLAGS=$ac_save_CFLAGS
  3091. elif test $ac_cv_prog_cc_g = yes; then
  3092. if test "$GCC" = yes; then
  3093. CFLAGS="-g -O2"
  3094. else
  3095. CFLAGS="-g"
  3096. fi
  3097. else
  3098. if test "$GCC" = yes; then
  3099. CFLAGS="-O2"
  3100. else
  3101. CFLAGS=
  3102. fi
  3103. fi
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3105. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3106. if ${ac_cv_prog_cc_c89+:} false; then :
  3107. $as_echo_n "(cached) " >&6
  3108. else
  3109. ac_cv_prog_cc_c89=no
  3110. ac_save_CC=$CC
  3111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3112. /* end confdefs.h. */
  3113. #include <stdarg.h>
  3114. #include <stdio.h>
  3115. #include <sys/types.h>
  3116. #include <sys/stat.h>
  3117. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3118. struct buf { int x; };
  3119. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3120. static char *e (p, i)
  3121. char **p;
  3122. int i;
  3123. {
  3124. return p[i];
  3125. }
  3126. static char *f (char * (*g) (char **, int), char **p, ...)
  3127. {
  3128. char *s;
  3129. va_list v;
  3130. va_start (v,p);
  3131. s = g (p, va_arg (v,int));
  3132. va_end (v);
  3133. return s;
  3134. }
  3135. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3136. function prototypes and stuff, but not '\xHH' hex character constants.
  3137. These don't provoke an error unfortunately, instead are silently treated
  3138. as 'x'. The following induces an error, until -std is added to get
  3139. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3140. array size at least. It's necessary to write '\x00'==0 to get something
  3141. that's true only with -std. */
  3142. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3143. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3144. inside strings and character constants. */
  3145. #define FOO(x) 'x'
  3146. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3147. int test (int i, double x);
  3148. struct s1 {int (*f) (int a);};
  3149. struct s2 {int (*f) (double a);};
  3150. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3151. int argc;
  3152. char **argv;
  3153. int
  3154. main ()
  3155. {
  3156. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3157. ;
  3158. return 0;
  3159. }
  3160. _ACEOF
  3161. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3162. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3163. do
  3164. CC="$ac_save_CC $ac_arg"
  3165. if ac_fn_c_try_compile "$LINENO"; then :
  3166. ac_cv_prog_cc_c89=$ac_arg
  3167. fi
  3168. rm -f core conftest.err conftest.$ac_objext
  3169. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3170. done
  3171. rm -f conftest.$ac_ext
  3172. CC=$ac_save_CC
  3173. fi
  3174. # AC_CACHE_VAL
  3175. case "x$ac_cv_prog_cc_c89" in
  3176. x)
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3178. $as_echo "none needed" >&6; } ;;
  3179. xno)
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3181. $as_echo "unsupported" >&6; } ;;
  3182. *)
  3183. CC="$CC $ac_cv_prog_cc_c89"
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3185. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3186. esac
  3187. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3188. fi
  3189. ac_ext=c
  3190. ac_cpp='$CPP $CPPFLAGS'
  3191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3194. DEPDIR="${am__leading_dot}deps"
  3195. ac_config_commands="$ac_config_commands depfiles"
  3196. am_make=${MAKE-make}
  3197. cat > confinc << 'END'
  3198. am__doit:
  3199. @echo this is the am__doit target
  3200. .PHONY: am__doit
  3201. END
  3202. # If we don't find an include directive, just comment out the code.
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3204. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3205. am__include="#"
  3206. am__quote=
  3207. _am_result=none
  3208. # First try GNU make style include.
  3209. echo "include confinc" > confmf
  3210. # Ignore all kinds of additional output from `make'.
  3211. case `$am_make -s -f confmf 2> /dev/null` in #(
  3212. *the\ am__doit\ target*)
  3213. am__include=include
  3214. am__quote=
  3215. _am_result=GNU
  3216. ;;
  3217. esac
  3218. # Now try BSD make style include.
  3219. if test "$am__include" = "#"; then
  3220. echo '.include "confinc"' > confmf
  3221. case `$am_make -s -f confmf 2> /dev/null` in #(
  3222. *the\ am__doit\ target*)
  3223. am__include=.include
  3224. am__quote="\""
  3225. _am_result=BSD
  3226. ;;
  3227. esac
  3228. fi
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3230. $as_echo "$_am_result" >&6; }
  3231. rm -f confinc confmf
  3232. @%:@ Check whether --enable-dependency-tracking was given.
  3233. if test "${enable_dependency_tracking+set}" = set; then :
  3234. enableval=$enable_dependency_tracking;
  3235. fi
  3236. if test "x$enable_dependency_tracking" != xno; then
  3237. am_depcomp="$ac_aux_dir/depcomp"
  3238. AMDEPBACKSLASH='\'
  3239. am__nodep='_no'
  3240. fi
  3241. if test "x$enable_dependency_tracking" != xno; then
  3242. AMDEP_TRUE=
  3243. AMDEP_FALSE='#'
  3244. else
  3245. AMDEP_TRUE='#'
  3246. AMDEP_FALSE=
  3247. fi
  3248. depcc="$CC" am_compiler_list=
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3250. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3251. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3255. # We make a subdir and do the tests there. Otherwise we can end up
  3256. # making bogus files that we don't know about and never remove. For
  3257. # instance it was reported that on HP-UX the gcc test will end up
  3258. # making a dummy file named `D' -- because `-MD' means `put the output
  3259. # in D'.
  3260. rm -rf conftest.dir
  3261. mkdir conftest.dir
  3262. # Copy depcomp to subdir because otherwise we won't find it if we're
  3263. # using a relative directory.
  3264. cp "$am_depcomp" conftest.dir
  3265. cd conftest.dir
  3266. # We will build objects and dependencies in a subdirectory because
  3267. # it helps to detect inapplicable dependency modes. For instance
  3268. # both Tru64's cc and ICC support -MD to output dependencies as a
  3269. # side effect of compilation, but ICC will put the dependencies in
  3270. # the current directory while Tru64 will put them in the object
  3271. # directory.
  3272. mkdir sub
  3273. am_cv_CC_dependencies_compiler_type=none
  3274. if test "$am_compiler_list" = ""; then
  3275. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3276. fi
  3277. am__universal=false
  3278. case " $depcc " in #(
  3279. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3280. esac
  3281. for depmode in $am_compiler_list; do
  3282. # Setup a source with many dependencies, because some compilers
  3283. # like to wrap large dependency lists on column 80 (with \), and
  3284. # we should not choose a depcomp mode which is confused by this.
  3285. #
  3286. # We need to recreate these files for each test, as the compiler may
  3287. # overwrite some of them when testing with obscure command lines.
  3288. # This happens at least with the AIX C compiler.
  3289. : > sub/conftest.c
  3290. for i in 1 2 3 4 5 6; do
  3291. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3292. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3293. # Solaris 8's {/usr,}/bin/sh.
  3294. touch sub/conftst$i.h
  3295. done
  3296. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3297. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3298. # mode. It turns out that the SunPro C++ compiler does not properly
  3299. # handle `-M -o', and we need to detect this. Also, some Intel
  3300. # versions had trouble with output in subdirs
  3301. am__obj=sub/conftest.${OBJEXT-o}
  3302. am__minus_obj="-o $am__obj"
  3303. case $depmode in
  3304. gcc)
  3305. # This depmode causes a compiler race in universal mode.
  3306. test "$am__universal" = false || continue
  3307. ;;
  3308. nosideeffect)
  3309. # after this tag, mechanisms are not by side-effect, so they'll
  3310. # only be used when explicitly requested
  3311. if test "x$enable_dependency_tracking" = xyes; then
  3312. continue
  3313. else
  3314. break
  3315. fi
  3316. ;;
  3317. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3318. # This compiler won't grok `-c -o', but also, the minuso test has
  3319. # not run yet. These depmodes are late enough in the game, and
  3320. # so weak that their functioning should not be impacted.
  3321. am__obj=conftest.${OBJEXT-o}
  3322. am__minus_obj=
  3323. ;;
  3324. none) break ;;
  3325. esac
  3326. if depmode=$depmode \
  3327. source=sub/conftest.c object=$am__obj \
  3328. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3329. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3330. >/dev/null 2>conftest.err &&
  3331. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3332. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3333. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3334. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3335. # icc doesn't choke on unknown options, it will just issue warnings
  3336. # or remarks (even with -Werror). So we grep stderr for any message
  3337. # that says an option was ignored or not supported.
  3338. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3339. # icc: Command line warning: ignoring option '-M'; no argument required
  3340. # The diagnosis changed in icc 8.0:
  3341. # icc: Command line remark: option '-MP' not supported
  3342. if (grep 'ignoring option' conftest.err ||
  3343. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3344. am_cv_CC_dependencies_compiler_type=$depmode
  3345. break
  3346. fi
  3347. fi
  3348. done
  3349. cd ..
  3350. rm -rf conftest.dir
  3351. else
  3352. am_cv_CC_dependencies_compiler_type=none
  3353. fi
  3354. fi
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3356. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3357. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3358. if
  3359. test "x$enable_dependency_tracking" != xno \
  3360. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3361. am__fastdepCC_TRUE=
  3362. am__fastdepCC_FALSE='#'
  3363. else
  3364. am__fastdepCC_TRUE='#'
  3365. am__fastdepCC_FALSE=
  3366. fi
  3367. if test "x$CC" != xcc; then
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3369. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3370. else
  3371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3372. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3373. fi
  3374. set dummy $CC; ac_cc=`$as_echo "$2" |
  3375. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3376. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3380. /* end confdefs.h. */
  3381. int
  3382. main ()
  3383. {
  3384. ;
  3385. return 0;
  3386. }
  3387. _ACEOF
  3388. # Make sure it works both with $CC and with simple cc.
  3389. # We do the test twice because some compilers refuse to overwrite an
  3390. # existing .o file with -o, though they will create one.
  3391. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3392. rm -f conftest2.*
  3393. if { { case "(($ac_try" in
  3394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3395. *) ac_try_echo=$ac_try;;
  3396. esac
  3397. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3398. $as_echo "$ac_try_echo"; } >&5
  3399. (eval "$ac_try") 2>&5
  3400. ac_status=$?
  3401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3402. test $ac_status = 0; } &&
  3403. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3405. *) ac_try_echo=$ac_try;;
  3406. esac
  3407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3408. $as_echo "$ac_try_echo"; } >&5
  3409. (eval "$ac_try") 2>&5
  3410. ac_status=$?
  3411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3412. test $ac_status = 0; };
  3413. then
  3414. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3415. if test "x$CC" != xcc; then
  3416. # Test first that cc exists at all.
  3417. if { ac_try='cc -c conftest.$ac_ext >&5'
  3418. { { case "(($ac_try" in
  3419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3420. *) ac_try_echo=$ac_try;;
  3421. esac
  3422. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3423. $as_echo "$ac_try_echo"; } >&5
  3424. (eval "$ac_try") 2>&5
  3425. ac_status=$?
  3426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3427. test $ac_status = 0; }; }; then
  3428. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3429. rm -f conftest2.*
  3430. if { { case "(($ac_try" in
  3431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3432. *) ac_try_echo=$ac_try;;
  3433. esac
  3434. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3435. $as_echo "$ac_try_echo"; } >&5
  3436. (eval "$ac_try") 2>&5
  3437. ac_status=$?
  3438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3439. test $ac_status = 0; } &&
  3440. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3442. *) ac_try_echo=$ac_try;;
  3443. esac
  3444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3445. $as_echo "$ac_try_echo"; } >&5
  3446. (eval "$ac_try") 2>&5
  3447. ac_status=$?
  3448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3449. test $ac_status = 0; };
  3450. then
  3451. # cc works too.
  3452. :
  3453. else
  3454. # cc exists but doesn't like -o.
  3455. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3456. fi
  3457. fi
  3458. fi
  3459. else
  3460. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3461. fi
  3462. rm -f core conftest*
  3463. fi
  3464. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3466. $as_echo "yes" >&6; }
  3467. else
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3469. $as_echo "no" >&6; }
  3470. $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  3471. fi
  3472. # FIXME: we rely on the cache variable name because
  3473. # there is no other way.
  3474. set dummy $CC
  3475. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3476. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  3477. if test "$am_t" != yes; then
  3478. # Losing compiler, so override with the script.
  3479. # FIXME: It is wrong to rewrite CC.
  3480. # But if we don't then we get into trouble of one sort or another.
  3481. # A longer-term fix would be to have automake use am__CC in this case,
  3482. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3483. CC="$am_aux_dir/compile $CC"
  3484. fi
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
  3486. $as_echo_n "checking for exp in -lm... " >&6; }
  3487. if ${ac_cv_lib_m_exp+:} false; then :
  3488. $as_echo_n "(cached) " >&6
  3489. else
  3490. ac_check_lib_save_LIBS=$LIBS
  3491. LIBS="-lm $LIBS"
  3492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3493. /* end confdefs.h. */
  3494. /* Override any GCC internal prototype to avoid an error.
  3495. Use char because int might match the return type of a GCC
  3496. builtin and then its argument prototype would still apply. */
  3497. #ifdef __cplusplus
  3498. extern "C"
  3499. #endif
  3500. char exp ();
  3501. int
  3502. main ()
  3503. {
  3504. return exp ();
  3505. ;
  3506. return 0;
  3507. }
  3508. _ACEOF
  3509. if ac_fn_c_try_link "$LINENO"; then :
  3510. ac_cv_lib_m_exp=yes
  3511. else
  3512. ac_cv_lib_m_exp=no
  3513. fi
  3514. rm -f core conftest.err conftest.$ac_objext \
  3515. conftest$ac_exeext conftest.$ac_ext
  3516. LIBS=$ac_check_lib_save_LIBS
  3517. fi
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
  3519. $as_echo "$ac_cv_lib_m_exp" >&6; }
  3520. if test "x$ac_cv_lib_m_exp" = xyes; then :
  3521. cat >>confdefs.h <<_ACEOF
  3522. @%:@define HAVE_LIBM 1
  3523. _ACEOF
  3524. LIBS="-lm $LIBS"
  3525. else
  3526. as_fn_error $? "Libm missing" "$LINENO" 5
  3527. fi
  3528. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3529. if test -n "$ac_tool_prefix"; then
  3530. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3531. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3533. $as_echo_n "checking for $ac_word... " >&6; }
  3534. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. case $PKG_CONFIG in
  3538. [\\/]* | ?:[\\/]*)
  3539. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3540. ;;
  3541. *)
  3542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3543. for as_dir in $PATH
  3544. do
  3545. IFS=$as_save_IFS
  3546. test -z "$as_dir" && as_dir=.
  3547. for ac_exec_ext in '' $ac_executable_extensions; do
  3548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3549. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3551. break 2
  3552. fi
  3553. done
  3554. done
  3555. IFS=$as_save_IFS
  3556. ;;
  3557. esac
  3558. fi
  3559. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3560. if test -n "$PKG_CONFIG"; then
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3562. $as_echo "$PKG_CONFIG" >&6; }
  3563. else
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3565. $as_echo "no" >&6; }
  3566. fi
  3567. fi
  3568. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3569. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3570. # Extract the first word of "pkg-config", so it can be a program name with args.
  3571. set dummy pkg-config; ac_word=$2
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3573. $as_echo_n "checking for $ac_word... " >&6; }
  3574. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. case $ac_pt_PKG_CONFIG in
  3578. [\\/]* | ?:[\\/]*)
  3579. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3580. ;;
  3581. *)
  3582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3583. for as_dir in $PATH
  3584. do
  3585. IFS=$as_save_IFS
  3586. test -z "$as_dir" && as_dir=.
  3587. for ac_exec_ext in '' $ac_executable_extensions; do
  3588. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3589. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3591. break 2
  3592. fi
  3593. done
  3594. done
  3595. IFS=$as_save_IFS
  3596. ;;
  3597. esac
  3598. fi
  3599. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3600. if test -n "$ac_pt_PKG_CONFIG"; then
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3602. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3603. else
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3605. $as_echo "no" >&6; }
  3606. fi
  3607. if test "x$ac_pt_PKG_CONFIG" = x; then
  3608. PKG_CONFIG=""
  3609. else
  3610. case $cross_compiling:$ac_tool_warned in
  3611. yes:)
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3613. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3614. ac_tool_warned=yes ;;
  3615. esac
  3616. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3617. fi
  3618. else
  3619. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3620. fi
  3621. fi
  3622. if test -n "$PKG_CONFIG"; then
  3623. _pkg_min_version=0.9.0
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3625. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3626. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3628. $as_echo "yes" >&6; }
  3629. else
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3631. $as_echo "no" >&6; }
  3632. PKG_CONFIG=""
  3633. fi
  3634. fi
  3635. pkg_failed=no
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
  3637. $as_echo_n "checking for CHECK... " >&6; }
  3638. if test -n "$CHECK_CFLAGS"; then
  3639. pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
  3640. elif test -n "$PKG_CONFIG"; then
  3641. if test -n "$PKG_CONFIG" && \
  3642. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
  3643. ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
  3644. ac_status=$?
  3645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3646. test $ac_status = 0; }; then
  3647. pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
  3648. test "x$?" != "x0" && pkg_failed=yes
  3649. else
  3650. pkg_failed=yes
  3651. fi
  3652. else
  3653. pkg_failed=untried
  3654. fi
  3655. if test -n "$CHECK_LIBS"; then
  3656. pkg_cv_CHECK_LIBS="$CHECK_LIBS"
  3657. elif test -n "$PKG_CONFIG"; then
  3658. if test -n "$PKG_CONFIG" && \
  3659. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
  3660. ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
  3661. ac_status=$?
  3662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3663. test $ac_status = 0; }; then
  3664. pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
  3665. test "x$?" != "x0" && pkg_failed=yes
  3666. else
  3667. pkg_failed=yes
  3668. fi
  3669. else
  3670. pkg_failed=untried
  3671. fi
  3672. if test $pkg_failed = yes; then
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3674. $as_echo "no" >&6; }
  3675. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  3676. _pkg_short_errors_supported=yes
  3677. else
  3678. _pkg_short_errors_supported=no
  3679. fi
  3680. if test $_pkg_short_errors_supported = yes; then
  3681. CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
  3682. else
  3683. CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
  3684. fi
  3685. # Put the nasty error message in config.log where it belongs
  3686. echo "$CHECK_PKG_ERRORS" >&5
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
  3688. $as_echo "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;}
  3689. have_check="no"
  3690. elif test $pkg_failed = untried; then
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3692. $as_echo "no" >&6; }
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
  3694. $as_echo "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;}
  3695. have_check="no"
  3696. else
  3697. CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
  3698. CHECK_LIBS=$pkg_cv_CHECK_LIBS
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3700. $as_echo "yes" >&6; }
  3701. have_check="yes"
  3702. fi
  3703. if test x"$have_check" = "xyes"; then
  3704. HAVE_CHECK_TRUE=
  3705. HAVE_CHECK_FALSE='#'
  3706. else
  3707. HAVE_CHECK_TRUE='#'
  3708. HAVE_CHECK_FALSE=
  3709. fi
  3710. if test "${host_os}" = "mingw32"; then
  3711. TARGET_WIN_TRUE=
  3712. TARGET_WIN_FALSE='#'
  3713. else
  3714. TARGET_WIN_TRUE='#'
  3715. TARGET_WIN_FALSE=
  3716. fi
  3717. if test "${host_os}" = "linux-gnu" || test "${host_os}" = "linux"; then
  3718. TARGET_LINUX_TRUE=
  3719. TARGET_LINUX_FALSE='#'
  3720. else
  3721. TARGET_LINUX_TRUE='#'
  3722. TARGET_LINUX_FALSE=
  3723. fi
  3724. #adding platform-dependent information to compile flags
  3725. if test -z "$TARGET_WIN_TRUE"; then :
  3726. $as_echo "@%:@define WINDOWS 1" >>confdefs.h
  3727. fi #define WINDOWS is accessible from pre-processor
  3728. if test -z "$TARGET_LINUX_TRUE"; then :
  3729. $as_echo "@%:@define LINUX 1" >>confdefs.h
  3730. fi
  3731. case `pwd` in
  3732. *\ * | *\ *)
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3734. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3735. esac
  3736. macro_version='2.4.2'
  3737. macro_revision='1.3337'
  3738. ltmain="$ac_aux_dir/ltmain.sh"
  3739. # Backslashify metacharacters that are still active within
  3740. # double-quoted strings.
  3741. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3742. # Same as above, but do not quote variable references.
  3743. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3744. # Sed substitution to delay expansion of an escaped shell variable in a
  3745. # double_quote_subst'ed string.
  3746. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3747. # Sed substitution to delay expansion of an escaped single quote.
  3748. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3749. # Sed substitution to avoid accidental globbing in evaled expressions
  3750. no_glob_subst='s/\*/\\\*/g'
  3751. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3752. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3753. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3755. $as_echo_n "checking how to print strings... " >&6; }
  3756. # Test print first, because it will be a builtin if present.
  3757. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3758. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3759. ECHO='print -r --'
  3760. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3761. ECHO='printf %s\n'
  3762. else
  3763. # Use this function as a fallback that always works.
  3764. func_fallback_echo ()
  3765. {
  3766. eval 'cat <<_LTECHO_EOF
  3767. $1
  3768. _LTECHO_EOF'
  3769. }
  3770. ECHO='func_fallback_echo'
  3771. fi
  3772. # func_echo_all arg...
  3773. # Invoke $ECHO with all args, space-separated.
  3774. func_echo_all ()
  3775. {
  3776. $ECHO ""
  3777. }
  3778. case "$ECHO" in
  3779. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3780. $as_echo "printf" >&6; } ;;
  3781. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3782. $as_echo "print -r" >&6; } ;;
  3783. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3784. $as_echo "cat" >&6; } ;;
  3785. esac
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3787. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3788. if ${ac_cv_path_SED+:} false; then :
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3792. for ac_i in 1 2 3 4 5 6 7; do
  3793. ac_script="$ac_script$as_nl$ac_script"
  3794. done
  3795. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3796. { ac_script=; unset ac_script;}
  3797. if test -z "$SED"; then
  3798. ac_path_SED_found=false
  3799. # Loop through the user's path and test for each of PROGNAME-LIST
  3800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3801. for as_dir in $PATH
  3802. do
  3803. IFS=$as_save_IFS
  3804. test -z "$as_dir" && as_dir=.
  3805. for ac_prog in sed gsed; do
  3806. for ac_exec_ext in '' $ac_executable_extensions; do
  3807. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3808. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3809. # Check for GNU ac_path_SED and select it if it is found.
  3810. # Check for GNU $ac_path_SED
  3811. case `"$ac_path_SED" --version 2>&1` in
  3812. *GNU*)
  3813. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3814. *)
  3815. ac_count=0
  3816. $as_echo_n 0123456789 >"conftest.in"
  3817. while :
  3818. do
  3819. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3820. mv "conftest.tmp" "conftest.in"
  3821. cp "conftest.in" "conftest.nl"
  3822. $as_echo '' >> "conftest.nl"
  3823. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3824. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3825. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3826. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3827. # Best one so far, save it but keep looking for a better one
  3828. ac_cv_path_SED="$ac_path_SED"
  3829. ac_path_SED_max=$ac_count
  3830. fi
  3831. # 10*(2^10) chars as input seems more than enough
  3832. test $ac_count -gt 10 && break
  3833. done
  3834. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3835. esac
  3836. $ac_path_SED_found && break 3
  3837. done
  3838. done
  3839. done
  3840. IFS=$as_save_IFS
  3841. if test -z "$ac_cv_path_SED"; then
  3842. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3843. fi
  3844. else
  3845. ac_cv_path_SED=$SED
  3846. fi
  3847. fi
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3849. $as_echo "$ac_cv_path_SED" >&6; }
  3850. SED="$ac_cv_path_SED"
  3851. rm -f conftest.sed
  3852. test -z "$SED" && SED=sed
  3853. Xsed="$SED -e 1s/^X//"
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3855. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3856. if ${ac_cv_path_GREP+:} false; then :
  3857. $as_echo_n "(cached) " >&6
  3858. else
  3859. if test -z "$GREP"; then
  3860. ac_path_GREP_found=false
  3861. # Loop through the user's path and test for each of PROGNAME-LIST
  3862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3863. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3864. do
  3865. IFS=$as_save_IFS
  3866. test -z "$as_dir" && as_dir=.
  3867. for ac_prog in grep ggrep; do
  3868. for ac_exec_ext in '' $ac_executable_extensions; do
  3869. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3870. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3871. # Check for GNU ac_path_GREP and select it if it is found.
  3872. # Check for GNU $ac_path_GREP
  3873. case `"$ac_path_GREP" --version 2>&1` in
  3874. *GNU*)
  3875. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3876. *)
  3877. ac_count=0
  3878. $as_echo_n 0123456789 >"conftest.in"
  3879. while :
  3880. do
  3881. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3882. mv "conftest.tmp" "conftest.in"
  3883. cp "conftest.in" "conftest.nl"
  3884. $as_echo 'GREP' >> "conftest.nl"
  3885. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3886. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3887. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3888. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3889. # Best one so far, save it but keep looking for a better one
  3890. ac_cv_path_GREP="$ac_path_GREP"
  3891. ac_path_GREP_max=$ac_count
  3892. fi
  3893. # 10*(2^10) chars as input seems more than enough
  3894. test $ac_count -gt 10 && break
  3895. done
  3896. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3897. esac
  3898. $ac_path_GREP_found && break 3
  3899. done
  3900. done
  3901. done
  3902. IFS=$as_save_IFS
  3903. if test -z "$ac_cv_path_GREP"; then
  3904. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3905. fi
  3906. else
  3907. ac_cv_path_GREP=$GREP
  3908. fi
  3909. fi
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3911. $as_echo "$ac_cv_path_GREP" >&6; }
  3912. GREP="$ac_cv_path_GREP"
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3914. $as_echo_n "checking for egrep... " >&6; }
  3915. if ${ac_cv_path_EGREP+:} false; then :
  3916. $as_echo_n "(cached) " >&6
  3917. else
  3918. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3919. then ac_cv_path_EGREP="$GREP -E"
  3920. else
  3921. if test -z "$EGREP"; then
  3922. ac_path_EGREP_found=false
  3923. # Loop through the user's path and test for each of PROGNAME-LIST
  3924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3925. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3926. do
  3927. IFS=$as_save_IFS
  3928. test -z "$as_dir" && as_dir=.
  3929. for ac_prog in egrep; do
  3930. for ac_exec_ext in '' $ac_executable_extensions; do
  3931. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3932. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3933. # Check for GNU ac_path_EGREP and select it if it is found.
  3934. # Check for GNU $ac_path_EGREP
  3935. case `"$ac_path_EGREP" --version 2>&1` in
  3936. *GNU*)
  3937. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3938. *)
  3939. ac_count=0
  3940. $as_echo_n 0123456789 >"conftest.in"
  3941. while :
  3942. do
  3943. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3944. mv "conftest.tmp" "conftest.in"
  3945. cp "conftest.in" "conftest.nl"
  3946. $as_echo 'EGREP' >> "conftest.nl"
  3947. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3948. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3949. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3950. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3951. # Best one so far, save it but keep looking for a better one
  3952. ac_cv_path_EGREP="$ac_path_EGREP"
  3953. ac_path_EGREP_max=$ac_count
  3954. fi
  3955. # 10*(2^10) chars as input seems more than enough
  3956. test $ac_count -gt 10 && break
  3957. done
  3958. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3959. esac
  3960. $ac_path_EGREP_found && break 3
  3961. done
  3962. done
  3963. done
  3964. IFS=$as_save_IFS
  3965. if test -z "$ac_cv_path_EGREP"; then
  3966. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3967. fi
  3968. else
  3969. ac_cv_path_EGREP=$EGREP
  3970. fi
  3971. fi
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3974. $as_echo "$ac_cv_path_EGREP" >&6; }
  3975. EGREP="$ac_cv_path_EGREP"
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3977. $as_echo_n "checking for fgrep... " >&6; }
  3978. if ${ac_cv_path_FGREP+:} false; then :
  3979. $as_echo_n "(cached) " >&6
  3980. else
  3981. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3982. then ac_cv_path_FGREP="$GREP -F"
  3983. else
  3984. if test -z "$FGREP"; then
  3985. ac_path_FGREP_found=false
  3986. # Loop through the user's path and test for each of PROGNAME-LIST
  3987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3988. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3989. do
  3990. IFS=$as_save_IFS
  3991. test -z "$as_dir" && as_dir=.
  3992. for ac_prog in fgrep; do
  3993. for ac_exec_ext in '' $ac_executable_extensions; do
  3994. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3995. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3996. # Check for GNU ac_path_FGREP and select it if it is found.
  3997. # Check for GNU $ac_path_FGREP
  3998. case `"$ac_path_FGREP" --version 2>&1` in
  3999. *GNU*)
  4000. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4001. *)
  4002. ac_count=0
  4003. $as_echo_n 0123456789 >"conftest.in"
  4004. while :
  4005. do
  4006. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4007. mv "conftest.tmp" "conftest.in"
  4008. cp "conftest.in" "conftest.nl"
  4009. $as_echo 'FGREP' >> "conftest.nl"
  4010. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4011. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4012. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4013. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4014. # Best one so far, save it but keep looking for a better one
  4015. ac_cv_path_FGREP="$ac_path_FGREP"
  4016. ac_path_FGREP_max=$ac_count
  4017. fi
  4018. # 10*(2^10) chars as input seems more than enough
  4019. test $ac_count -gt 10 && break
  4020. done
  4021. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4022. esac
  4023. $ac_path_FGREP_found && break 3
  4024. done
  4025. done
  4026. done
  4027. IFS=$as_save_IFS
  4028. if test -z "$ac_cv_path_FGREP"; then
  4029. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4030. fi
  4031. else
  4032. ac_cv_path_FGREP=$FGREP
  4033. fi
  4034. fi
  4035. fi
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4037. $as_echo "$ac_cv_path_FGREP" >&6; }
  4038. FGREP="$ac_cv_path_FGREP"
  4039. test -z "$GREP" && GREP=grep
  4040. @%:@ Check whether --with-gnu-ld was given.
  4041. if test "${with_gnu_ld+set}" = set; then :
  4042. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4043. else
  4044. with_gnu_ld=no
  4045. fi
  4046. ac_prog=ld
  4047. if test "$GCC" = yes; then
  4048. # Check if gcc -print-prog-name=ld gives a path.
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4050. $as_echo_n "checking for ld used by $CC... " >&6; }
  4051. case $host in
  4052. *-*-mingw*)
  4053. # gcc leaves a trailing carriage return which upsets mingw
  4054. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4055. *)
  4056. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4057. esac
  4058. case $ac_prog in
  4059. # Accept absolute paths.
  4060. [\\/]* | ?:[\\/]*)
  4061. re_direlt='/[^/][^/]*/\.\./'
  4062. # Canonicalize the pathname of ld
  4063. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4064. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4065. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4066. done
  4067. test -z "$LD" && LD="$ac_prog"
  4068. ;;
  4069. "")
  4070. # If it fails, then pretend we aren't using GCC.
  4071. ac_prog=ld
  4072. ;;
  4073. *)
  4074. # If it is relative, then search for the first ld in PATH.
  4075. with_gnu_ld=unknown
  4076. ;;
  4077. esac
  4078. elif test "$with_gnu_ld" = yes; then
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4080. $as_echo_n "checking for GNU ld... " >&6; }
  4081. else
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4083. $as_echo_n "checking for non-GNU ld... " >&6; }
  4084. fi
  4085. if ${lt_cv_path_LD+:} false; then :
  4086. $as_echo_n "(cached) " >&6
  4087. else
  4088. if test -z "$LD"; then
  4089. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4090. for ac_dir in $PATH; do
  4091. IFS="$lt_save_ifs"
  4092. test -z "$ac_dir" && ac_dir=.
  4093. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4094. lt_cv_path_LD="$ac_dir/$ac_prog"
  4095. # Check to see if the program is GNU ld. I'd rather use --version,
  4096. # but apparently some variants of GNU ld only accept -v.
  4097. # Break only if it was the GNU/non-GNU ld that we prefer.
  4098. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4099. *GNU* | *'with BFD'*)
  4100. test "$with_gnu_ld" != no && break
  4101. ;;
  4102. *)
  4103. test "$with_gnu_ld" != yes && break
  4104. ;;
  4105. esac
  4106. fi
  4107. done
  4108. IFS="$lt_save_ifs"
  4109. else
  4110. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4111. fi
  4112. fi
  4113. LD="$lt_cv_path_LD"
  4114. if test -n "$LD"; then
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4116. $as_echo "$LD" >&6; }
  4117. else
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4119. $as_echo "no" >&6; }
  4120. fi
  4121. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4123. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4124. if ${lt_cv_prog_gnu_ld+:} false; then :
  4125. $as_echo_n "(cached) " >&6
  4126. else
  4127. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4128. case `$LD -v 2>&1 </dev/null` in
  4129. *GNU* | *'with BFD'*)
  4130. lt_cv_prog_gnu_ld=yes
  4131. ;;
  4132. *)
  4133. lt_cv_prog_gnu_ld=no
  4134. ;;
  4135. esac
  4136. fi
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4138. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4139. with_gnu_ld=$lt_cv_prog_gnu_ld
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4141. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4142. if ${lt_cv_path_NM+:} false; then :
  4143. $as_echo_n "(cached) " >&6
  4144. else
  4145. if test -n "$NM"; then
  4146. # Let the user override the test.
  4147. lt_cv_path_NM="$NM"
  4148. else
  4149. lt_nm_to_check="${ac_tool_prefix}nm"
  4150. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4151. lt_nm_to_check="$lt_nm_to_check nm"
  4152. fi
  4153. for lt_tmp_nm in $lt_nm_to_check; do
  4154. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4155. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4156. IFS="$lt_save_ifs"
  4157. test -z "$ac_dir" && ac_dir=.
  4158. tmp_nm="$ac_dir/$lt_tmp_nm"
  4159. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4160. # Check to see if the nm accepts a BSD-compat flag.
  4161. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4162. # nm: unknown option "B" ignored
  4163. # Tru64's nm complains that /dev/null is an invalid object file
  4164. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4165. */dev/null* | *'Invalid file or object type'*)
  4166. lt_cv_path_NM="$tmp_nm -B"
  4167. break
  4168. ;;
  4169. *)
  4170. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4171. */dev/null*)
  4172. lt_cv_path_NM="$tmp_nm -p"
  4173. break
  4174. ;;
  4175. *)
  4176. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4177. continue # so that we can try to find one that supports BSD flags
  4178. ;;
  4179. esac
  4180. ;;
  4181. esac
  4182. fi
  4183. done
  4184. IFS="$lt_save_ifs"
  4185. done
  4186. : ${lt_cv_path_NM=no}
  4187. fi
  4188. fi
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4190. $as_echo "$lt_cv_path_NM" >&6; }
  4191. if test "$lt_cv_path_NM" != "no"; then
  4192. NM="$lt_cv_path_NM"
  4193. else
  4194. # Didn't find any BSD compatible name lister, look for dumpbin.
  4195. if test -n "$DUMPBIN"; then :
  4196. # Let the user override the test.
  4197. else
  4198. if test -n "$ac_tool_prefix"; then
  4199. for ac_prog in dumpbin "link -dump"
  4200. do
  4201. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4202. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4204. $as_echo_n "checking for $ac_word... " >&6; }
  4205. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. if test -n "$DUMPBIN"; then
  4209. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4210. else
  4211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4212. for as_dir in $PATH
  4213. do
  4214. IFS=$as_save_IFS
  4215. test -z "$as_dir" && as_dir=.
  4216. for ac_exec_ext in '' $ac_executable_extensions; do
  4217. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4218. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4220. break 2
  4221. fi
  4222. done
  4223. done
  4224. IFS=$as_save_IFS
  4225. fi
  4226. fi
  4227. DUMPBIN=$ac_cv_prog_DUMPBIN
  4228. if test -n "$DUMPBIN"; then
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4230. $as_echo "$DUMPBIN" >&6; }
  4231. else
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4233. $as_echo "no" >&6; }
  4234. fi
  4235. test -n "$DUMPBIN" && break
  4236. done
  4237. fi
  4238. if test -z "$DUMPBIN"; then
  4239. ac_ct_DUMPBIN=$DUMPBIN
  4240. for ac_prog in dumpbin "link -dump"
  4241. do
  4242. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4243. set dummy $ac_prog; ac_word=$2
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4245. $as_echo_n "checking for $ac_word... " >&6; }
  4246. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4247. $as_echo_n "(cached) " >&6
  4248. else
  4249. if test -n "$ac_ct_DUMPBIN"; then
  4250. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4251. else
  4252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4253. for as_dir in $PATH
  4254. do
  4255. IFS=$as_save_IFS
  4256. test -z "$as_dir" && as_dir=.
  4257. for ac_exec_ext in '' $ac_executable_extensions; do
  4258. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4259. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4261. break 2
  4262. fi
  4263. done
  4264. done
  4265. IFS=$as_save_IFS
  4266. fi
  4267. fi
  4268. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4269. if test -n "$ac_ct_DUMPBIN"; then
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4271. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4272. else
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4274. $as_echo "no" >&6; }
  4275. fi
  4276. test -n "$ac_ct_DUMPBIN" && break
  4277. done
  4278. if test "x$ac_ct_DUMPBIN" = x; then
  4279. DUMPBIN=":"
  4280. else
  4281. case $cross_compiling:$ac_tool_warned in
  4282. yes:)
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4284. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4285. ac_tool_warned=yes ;;
  4286. esac
  4287. DUMPBIN=$ac_ct_DUMPBIN
  4288. fi
  4289. fi
  4290. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4291. *COFF*)
  4292. DUMPBIN="$DUMPBIN -symbols"
  4293. ;;
  4294. *)
  4295. DUMPBIN=:
  4296. ;;
  4297. esac
  4298. fi
  4299. if test "$DUMPBIN" != ":"; then
  4300. NM="$DUMPBIN"
  4301. fi
  4302. fi
  4303. test -z "$NM" && NM=nm
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4305. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4306. if ${lt_cv_nm_interface+:} false; then :
  4307. $as_echo_n "(cached) " >&6
  4308. else
  4309. lt_cv_nm_interface="BSD nm"
  4310. echo "int some_variable = 0;" > conftest.$ac_ext
  4311. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4312. (eval "$ac_compile" 2>conftest.err)
  4313. cat conftest.err >&5
  4314. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4315. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4316. cat conftest.err >&5
  4317. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4318. cat conftest.out >&5
  4319. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4320. lt_cv_nm_interface="MS dumpbin"
  4321. fi
  4322. rm -f conftest*
  4323. fi
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4325. $as_echo "$lt_cv_nm_interface" >&6; }
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4327. $as_echo_n "checking whether ln -s works... " >&6; }
  4328. LN_S=$as_ln_s
  4329. if test "$LN_S" = "ln -s"; then
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4331. $as_echo "yes" >&6; }
  4332. else
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4334. $as_echo "no, using $LN_S" >&6; }
  4335. fi
  4336. # find the maximum length of command line arguments
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4338. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4339. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4340. $as_echo_n "(cached) " >&6
  4341. else
  4342. i=0
  4343. teststring="ABCD"
  4344. case $build_os in
  4345. msdosdjgpp*)
  4346. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4347. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4348. # during glob expansion). Even if it were fixed, the result of this
  4349. # check would be larger than it should be.
  4350. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4351. ;;
  4352. gnu*)
  4353. # Under GNU Hurd, this test is not required because there is
  4354. # no limit to the length of command line arguments.
  4355. # Libtool will interpret -1 as no limit whatsoever
  4356. lt_cv_sys_max_cmd_len=-1;
  4357. ;;
  4358. cygwin* | mingw* | cegcc*)
  4359. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4360. # about 5 minutes as the teststring grows exponentially.
  4361. # Worse, since 9x/ME are not pre-emptively multitasking,
  4362. # you end up with a "frozen" computer, even though with patience
  4363. # the test eventually succeeds (with a max line length of 256k).
  4364. # Instead, let's just punt: use the minimum linelength reported by
  4365. # all of the supported platforms: 8192 (on NT/2K/XP).
  4366. lt_cv_sys_max_cmd_len=8192;
  4367. ;;
  4368. mint*)
  4369. # On MiNT this can take a long time and run out of memory.
  4370. lt_cv_sys_max_cmd_len=8192;
  4371. ;;
  4372. amigaos*)
  4373. # On AmigaOS with pdksh, this test takes hours, literally.
  4374. # So we just punt and use a minimum line length of 8192.
  4375. lt_cv_sys_max_cmd_len=8192;
  4376. ;;
  4377. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4378. # This has been around since 386BSD, at least. Likely further.
  4379. if test -x /sbin/sysctl; then
  4380. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4381. elif test -x /usr/sbin/sysctl; then
  4382. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4383. else
  4384. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4385. fi
  4386. # And add a safety zone
  4387. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4388. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4389. ;;
  4390. interix*)
  4391. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4392. lt_cv_sys_max_cmd_len=196608
  4393. ;;
  4394. os2*)
  4395. # The test takes a long time on OS/2.
  4396. lt_cv_sys_max_cmd_len=8192
  4397. ;;
  4398. osf*)
  4399. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4400. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4401. # nice to cause kernel panics so lets avoid the loop below.
  4402. # First set a reasonable default.
  4403. lt_cv_sys_max_cmd_len=16384
  4404. #
  4405. if test -x /sbin/sysconfig; then
  4406. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4407. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4408. esac
  4409. fi
  4410. ;;
  4411. sco3.2v5*)
  4412. lt_cv_sys_max_cmd_len=102400
  4413. ;;
  4414. sysv5* | sco5v6* | sysv4.2uw2*)
  4415. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4416. if test -n "$kargmax"; then
  4417. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4418. else
  4419. lt_cv_sys_max_cmd_len=32768
  4420. fi
  4421. ;;
  4422. *)
  4423. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4424. if test -n "$lt_cv_sys_max_cmd_len"; then
  4425. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4426. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4427. else
  4428. # Make teststring a little bigger before we do anything with it.
  4429. # a 1K string should be a reasonable start.
  4430. for i in 1 2 3 4 5 6 7 8 ; do
  4431. teststring=$teststring$teststring
  4432. done
  4433. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4434. # If test is not a shell built-in, we'll probably end up computing a
  4435. # maximum length that is only half of the actual maximum length, but
  4436. # we can't tell.
  4437. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4438. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4439. test $i != 17 # 1/2 MB should be enough
  4440. do
  4441. i=`expr $i + 1`
  4442. teststring=$teststring$teststring
  4443. done
  4444. # Only check the string length outside the loop.
  4445. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4446. teststring=
  4447. # Add a significant safety factor because C++ compilers can tack on
  4448. # massive amounts of additional arguments before passing them to the
  4449. # linker. It appears as though 1/2 is a usable value.
  4450. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4451. fi
  4452. ;;
  4453. esac
  4454. fi
  4455. if test -n $lt_cv_sys_max_cmd_len ; then
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4457. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4458. else
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4460. $as_echo "none" >&6; }
  4461. fi
  4462. max_cmd_len=$lt_cv_sys_max_cmd_len
  4463. : ${CP="cp -f"}
  4464. : ${MV="mv -f"}
  4465. : ${RM="rm -f"}
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4467. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4468. # Try some XSI features
  4469. xsi_shell=no
  4470. ( _lt_dummy="a/b/c"
  4471. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4472. = c,a/b,b/c, \
  4473. && eval 'test $(( 1 + 1 )) -eq 2 \
  4474. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4475. && xsi_shell=yes
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4477. $as_echo "$xsi_shell" >&6; }
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4479. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4480. lt_shell_append=no
  4481. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4482. >/dev/null 2>&1 \
  4483. && lt_shell_append=yes
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4485. $as_echo "$lt_shell_append" >&6; }
  4486. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4487. lt_unset=unset
  4488. else
  4489. lt_unset=false
  4490. fi
  4491. # test EBCDIC or ASCII
  4492. case `echo X|tr X '\101'` in
  4493. A) # ASCII based system
  4494. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4495. lt_SP2NL='tr \040 \012'
  4496. lt_NL2SP='tr \015\012 \040\040'
  4497. ;;
  4498. *) # EBCDIC based system
  4499. lt_SP2NL='tr \100 \n'
  4500. lt_NL2SP='tr \r\n \100\100'
  4501. ;;
  4502. esac
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4504. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4505. if ${lt_cv_to_host_file_cmd+:} false; then :
  4506. $as_echo_n "(cached) " >&6
  4507. else
  4508. case $host in
  4509. *-*-mingw* )
  4510. case $build in
  4511. *-*-mingw* ) # actually msys
  4512. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4513. ;;
  4514. *-*-cygwin* )
  4515. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4516. ;;
  4517. * ) # otherwise, assume *nix
  4518. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4519. ;;
  4520. esac
  4521. ;;
  4522. *-*-cygwin* )
  4523. case $build in
  4524. *-*-mingw* ) # actually msys
  4525. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4526. ;;
  4527. *-*-cygwin* )
  4528. lt_cv_to_host_file_cmd=func_convert_file_noop
  4529. ;;
  4530. * ) # otherwise, assume *nix
  4531. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4532. ;;
  4533. esac
  4534. ;;
  4535. * ) # unhandled hosts (and "normal" native builds)
  4536. lt_cv_to_host_file_cmd=func_convert_file_noop
  4537. ;;
  4538. esac
  4539. fi
  4540. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4542. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4544. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4545. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4546. $as_echo_n "(cached) " >&6
  4547. else
  4548. #assume ordinary cross tools, or native build.
  4549. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4550. case $host in
  4551. *-*-mingw* )
  4552. case $build in
  4553. *-*-mingw* ) # actually msys
  4554. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4555. ;;
  4556. esac
  4557. ;;
  4558. esac
  4559. fi
  4560. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4562. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4564. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4565. if ${lt_cv_ld_reload_flag+:} false; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. lt_cv_ld_reload_flag='-r'
  4569. fi
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4571. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4572. reload_flag=$lt_cv_ld_reload_flag
  4573. case $reload_flag in
  4574. "" | " "*) ;;
  4575. *) reload_flag=" $reload_flag" ;;
  4576. esac
  4577. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4578. case $host_os in
  4579. cygwin* | mingw* | pw32* | cegcc*)
  4580. if test "$GCC" != yes; then
  4581. reload_cmds=false
  4582. fi
  4583. ;;
  4584. darwin*)
  4585. if test "$GCC" = yes; then
  4586. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4587. else
  4588. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4589. fi
  4590. ;;
  4591. esac
  4592. if test -n "$ac_tool_prefix"; then
  4593. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4594. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4596. $as_echo_n "checking for $ac_word... " >&6; }
  4597. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4598. $as_echo_n "(cached) " >&6
  4599. else
  4600. if test -n "$OBJDUMP"; then
  4601. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4602. else
  4603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4604. for as_dir in $PATH
  4605. do
  4606. IFS=$as_save_IFS
  4607. test -z "$as_dir" && as_dir=.
  4608. for ac_exec_ext in '' $ac_executable_extensions; do
  4609. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4610. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4612. break 2
  4613. fi
  4614. done
  4615. done
  4616. IFS=$as_save_IFS
  4617. fi
  4618. fi
  4619. OBJDUMP=$ac_cv_prog_OBJDUMP
  4620. if test -n "$OBJDUMP"; then
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4622. $as_echo "$OBJDUMP" >&6; }
  4623. else
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4625. $as_echo "no" >&6; }
  4626. fi
  4627. fi
  4628. if test -z "$ac_cv_prog_OBJDUMP"; then
  4629. ac_ct_OBJDUMP=$OBJDUMP
  4630. # Extract the first word of "objdump", so it can be a program name with args.
  4631. set dummy objdump; ac_word=$2
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4633. $as_echo_n "checking for $ac_word... " >&6; }
  4634. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4635. $as_echo_n "(cached) " >&6
  4636. else
  4637. if test -n "$ac_ct_OBJDUMP"; then
  4638. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4639. else
  4640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4641. for as_dir in $PATH
  4642. do
  4643. IFS=$as_save_IFS
  4644. test -z "$as_dir" && as_dir=.
  4645. for ac_exec_ext in '' $ac_executable_extensions; do
  4646. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4647. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4649. break 2
  4650. fi
  4651. done
  4652. done
  4653. IFS=$as_save_IFS
  4654. fi
  4655. fi
  4656. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4657. if test -n "$ac_ct_OBJDUMP"; then
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4659. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4660. else
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4662. $as_echo "no" >&6; }
  4663. fi
  4664. if test "x$ac_ct_OBJDUMP" = x; then
  4665. OBJDUMP="false"
  4666. else
  4667. case $cross_compiling:$ac_tool_warned in
  4668. yes:)
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4670. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4671. ac_tool_warned=yes ;;
  4672. esac
  4673. OBJDUMP=$ac_ct_OBJDUMP
  4674. fi
  4675. else
  4676. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4677. fi
  4678. test -z "$OBJDUMP" && OBJDUMP=objdump
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4680. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4681. if ${lt_cv_deplibs_check_method+:} false; then :
  4682. $as_echo_n "(cached) " >&6
  4683. else
  4684. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4685. lt_cv_file_magic_test_file=
  4686. lt_cv_deplibs_check_method='unknown'
  4687. # Need to set the preceding variable on all platforms that support
  4688. # interlibrary dependencies.
  4689. # 'none' -- dependencies not supported.
  4690. # `unknown' -- same as none, but documents that we really don't know.
  4691. # 'pass_all' -- all dependencies passed with no checks.
  4692. # 'test_compile' -- check by making test program.
  4693. # 'file_magic [[regex]]' -- check by looking for files in library path
  4694. # which responds to the $file_magic_cmd with a given extended regex.
  4695. # If you have `file' or equivalent on your system and you're not sure
  4696. # whether `pass_all' will *always* work, you probably want this one.
  4697. case $host_os in
  4698. aix[4-9]*)
  4699. lt_cv_deplibs_check_method=pass_all
  4700. ;;
  4701. beos*)
  4702. lt_cv_deplibs_check_method=pass_all
  4703. ;;
  4704. bsdi[45]*)
  4705. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4706. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4707. lt_cv_file_magic_test_file=/shlib/libc.so
  4708. ;;
  4709. cygwin*)
  4710. # func_win32_libid is a shell function defined in ltmain.sh
  4711. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4712. lt_cv_file_magic_cmd='func_win32_libid'
  4713. ;;
  4714. mingw* | pw32*)
  4715. # Base MSYS/MinGW do not provide the 'file' command needed by
  4716. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4717. # unless we find 'file', for example because we are cross-compiling.
  4718. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4719. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4720. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4721. lt_cv_file_magic_cmd='func_win32_libid'
  4722. else
  4723. # Keep this pattern in sync with the one in func_win32_libid.
  4724. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4725. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4726. fi
  4727. ;;
  4728. cegcc*)
  4729. # use the weaker test based on 'objdump'. See mingw*.
  4730. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4731. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4732. ;;
  4733. darwin* | rhapsody*)
  4734. lt_cv_deplibs_check_method=pass_all
  4735. ;;
  4736. freebsd* | dragonfly*)
  4737. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4738. case $host_cpu in
  4739. i*86 )
  4740. # Not sure whether the presence of OpenBSD here was a mistake.
  4741. # Let's accept both of them until this is cleared up.
  4742. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4743. lt_cv_file_magic_cmd=/usr/bin/file
  4744. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4745. ;;
  4746. esac
  4747. else
  4748. lt_cv_deplibs_check_method=pass_all
  4749. fi
  4750. ;;
  4751. gnu*)
  4752. lt_cv_deplibs_check_method=pass_all
  4753. ;;
  4754. haiku*)
  4755. lt_cv_deplibs_check_method=pass_all
  4756. ;;
  4757. hpux10.20* | hpux11*)
  4758. lt_cv_file_magic_cmd=/usr/bin/file
  4759. case $host_cpu in
  4760. ia64*)
  4761. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4762. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4763. ;;
  4764. hppa*64*)
  4765. 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]'
  4766. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4767. ;;
  4768. *)
  4769. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4770. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4771. ;;
  4772. esac
  4773. ;;
  4774. interix[3-9]*)
  4775. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4776. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4777. ;;
  4778. irix5* | irix6* | nonstopux*)
  4779. case $LD in
  4780. *-32|*"-32 ") libmagic=32-bit;;
  4781. *-n32|*"-n32 ") libmagic=N32;;
  4782. *-64|*"-64 ") libmagic=64-bit;;
  4783. *) libmagic=never-match;;
  4784. esac
  4785. lt_cv_deplibs_check_method=pass_all
  4786. ;;
  4787. # This must be glibc/ELF.
  4788. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4789. lt_cv_deplibs_check_method=pass_all
  4790. ;;
  4791. netbsd* | netbsdelf*-gnu)
  4792. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4793. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4794. else
  4795. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4796. fi
  4797. ;;
  4798. newos6*)
  4799. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4800. lt_cv_file_magic_cmd=/usr/bin/file
  4801. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4802. ;;
  4803. *nto* | *qnx*)
  4804. lt_cv_deplibs_check_method=pass_all
  4805. ;;
  4806. openbsd*)
  4807. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4808. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4809. else
  4810. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4811. fi
  4812. ;;
  4813. osf3* | osf4* | osf5*)
  4814. lt_cv_deplibs_check_method=pass_all
  4815. ;;
  4816. rdos*)
  4817. lt_cv_deplibs_check_method=pass_all
  4818. ;;
  4819. solaris*)
  4820. lt_cv_deplibs_check_method=pass_all
  4821. ;;
  4822. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4823. lt_cv_deplibs_check_method=pass_all
  4824. ;;
  4825. sysv4 | sysv4.3*)
  4826. case $host_vendor in
  4827. motorola)
  4828. 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]'
  4829. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4830. ;;
  4831. ncr)
  4832. lt_cv_deplibs_check_method=pass_all
  4833. ;;
  4834. sequent)
  4835. lt_cv_file_magic_cmd='/bin/file'
  4836. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4837. ;;
  4838. sni)
  4839. lt_cv_file_magic_cmd='/bin/file'
  4840. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4841. lt_cv_file_magic_test_file=/lib/libc.so
  4842. ;;
  4843. siemens)
  4844. lt_cv_deplibs_check_method=pass_all
  4845. ;;
  4846. pc)
  4847. lt_cv_deplibs_check_method=pass_all
  4848. ;;
  4849. esac
  4850. ;;
  4851. tpf*)
  4852. lt_cv_deplibs_check_method=pass_all
  4853. ;;
  4854. esac
  4855. fi
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4857. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4858. file_magic_glob=
  4859. want_nocaseglob=no
  4860. if test "$build" = "$host"; then
  4861. case $host_os in
  4862. mingw* | pw32*)
  4863. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4864. want_nocaseglob=yes
  4865. else
  4866. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4867. fi
  4868. ;;
  4869. esac
  4870. fi
  4871. file_magic_cmd=$lt_cv_file_magic_cmd
  4872. deplibs_check_method=$lt_cv_deplibs_check_method
  4873. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4874. if test -n "$ac_tool_prefix"; then
  4875. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4876. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4878. $as_echo_n "checking for $ac_word... " >&6; }
  4879. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4880. $as_echo_n "(cached) " >&6
  4881. else
  4882. if test -n "$DLLTOOL"; then
  4883. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4884. else
  4885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4886. for as_dir in $PATH
  4887. do
  4888. IFS=$as_save_IFS
  4889. test -z "$as_dir" && as_dir=.
  4890. for ac_exec_ext in '' $ac_executable_extensions; do
  4891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4892. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4894. break 2
  4895. fi
  4896. done
  4897. done
  4898. IFS=$as_save_IFS
  4899. fi
  4900. fi
  4901. DLLTOOL=$ac_cv_prog_DLLTOOL
  4902. if test -n "$DLLTOOL"; then
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4904. $as_echo "$DLLTOOL" >&6; }
  4905. else
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4907. $as_echo "no" >&6; }
  4908. fi
  4909. fi
  4910. if test -z "$ac_cv_prog_DLLTOOL"; then
  4911. ac_ct_DLLTOOL=$DLLTOOL
  4912. # Extract the first word of "dlltool", so it can be a program name with args.
  4913. set dummy dlltool; ac_word=$2
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4915. $as_echo_n "checking for $ac_word... " >&6; }
  4916. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4917. $as_echo_n "(cached) " >&6
  4918. else
  4919. if test -n "$ac_ct_DLLTOOL"; then
  4920. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4921. else
  4922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4923. for as_dir in $PATH
  4924. do
  4925. IFS=$as_save_IFS
  4926. test -z "$as_dir" && as_dir=.
  4927. for ac_exec_ext in '' $ac_executable_extensions; do
  4928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4929. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4931. break 2
  4932. fi
  4933. done
  4934. done
  4935. IFS=$as_save_IFS
  4936. fi
  4937. fi
  4938. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4939. if test -n "$ac_ct_DLLTOOL"; then
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4941. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4942. else
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4944. $as_echo "no" >&6; }
  4945. fi
  4946. if test "x$ac_ct_DLLTOOL" = x; then
  4947. DLLTOOL="false"
  4948. else
  4949. case $cross_compiling:$ac_tool_warned in
  4950. yes:)
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4953. ac_tool_warned=yes ;;
  4954. esac
  4955. DLLTOOL=$ac_ct_DLLTOOL
  4956. fi
  4957. else
  4958. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4959. fi
  4960. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4962. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4963. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4964. $as_echo_n "(cached) " >&6
  4965. else
  4966. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4967. case $host_os in
  4968. cygwin* | mingw* | pw32* | cegcc*)
  4969. # two different shell functions defined in ltmain.sh
  4970. # decide which to use based on capabilities of $DLLTOOL
  4971. case `$DLLTOOL --help 2>&1` in
  4972. *--identify-strict*)
  4973. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4974. ;;
  4975. *)
  4976. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4977. ;;
  4978. esac
  4979. ;;
  4980. *)
  4981. # fallback: assume linklib IS sharedlib
  4982. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4983. ;;
  4984. esac
  4985. fi
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4987. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4988. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4989. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4990. if test -n "$ac_tool_prefix"; then
  4991. for ac_prog in ar
  4992. do
  4993. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4994. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4996. $as_echo_n "checking for $ac_word... " >&6; }
  4997. if ${ac_cv_prog_AR+:} false; then :
  4998. $as_echo_n "(cached) " >&6
  4999. else
  5000. if test -n "$AR"; then
  5001. ac_cv_prog_AR="$AR" # Let the user override the test.
  5002. else
  5003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5004. for as_dir in $PATH
  5005. do
  5006. IFS=$as_save_IFS
  5007. test -z "$as_dir" && as_dir=.
  5008. for ac_exec_ext in '' $ac_executable_extensions; do
  5009. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5010. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5012. break 2
  5013. fi
  5014. done
  5015. done
  5016. IFS=$as_save_IFS
  5017. fi
  5018. fi
  5019. AR=$ac_cv_prog_AR
  5020. if test -n "$AR"; then
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5022. $as_echo "$AR" >&6; }
  5023. else
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5025. $as_echo "no" >&6; }
  5026. fi
  5027. test -n "$AR" && break
  5028. done
  5029. fi
  5030. if test -z "$AR"; then
  5031. ac_ct_AR=$AR
  5032. for ac_prog in ar
  5033. do
  5034. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5035. set dummy $ac_prog; ac_word=$2
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5037. $as_echo_n "checking for $ac_word... " >&6; }
  5038. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5039. $as_echo_n "(cached) " >&6
  5040. else
  5041. if test -n "$ac_ct_AR"; then
  5042. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5043. else
  5044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5045. for as_dir in $PATH
  5046. do
  5047. IFS=$as_save_IFS
  5048. test -z "$as_dir" && as_dir=.
  5049. for ac_exec_ext in '' $ac_executable_extensions; do
  5050. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5051. ac_cv_prog_ac_ct_AR="$ac_prog"
  5052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5053. break 2
  5054. fi
  5055. done
  5056. done
  5057. IFS=$as_save_IFS
  5058. fi
  5059. fi
  5060. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5061. if test -n "$ac_ct_AR"; then
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5063. $as_echo "$ac_ct_AR" >&6; }
  5064. else
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5066. $as_echo "no" >&6; }
  5067. fi
  5068. test -n "$ac_ct_AR" && break
  5069. done
  5070. if test "x$ac_ct_AR" = x; then
  5071. AR="false"
  5072. else
  5073. case $cross_compiling:$ac_tool_warned in
  5074. yes:)
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5076. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5077. ac_tool_warned=yes ;;
  5078. esac
  5079. AR=$ac_ct_AR
  5080. fi
  5081. fi
  5082. : ${AR=ar}
  5083. : ${AR_FLAGS=cru}
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5085. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5086. if ${lt_cv_ar_at_file+:} false; then :
  5087. $as_echo_n "(cached) " >&6
  5088. else
  5089. lt_cv_ar_at_file=no
  5090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5091. /* end confdefs.h. */
  5092. int
  5093. main ()
  5094. {
  5095. ;
  5096. return 0;
  5097. }
  5098. _ACEOF
  5099. if ac_fn_c_try_compile "$LINENO"; then :
  5100. echo conftest.$ac_objext > conftest.lst
  5101. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5102. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5103. (eval $lt_ar_try) 2>&5
  5104. ac_status=$?
  5105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5106. test $ac_status = 0; }
  5107. if test "$ac_status" -eq 0; then
  5108. # Ensure the archiver fails upon bogus file names.
  5109. rm -f conftest.$ac_objext libconftest.a
  5110. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5111. (eval $lt_ar_try) 2>&5
  5112. ac_status=$?
  5113. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5114. test $ac_status = 0; }
  5115. if test "$ac_status" -ne 0; then
  5116. lt_cv_ar_at_file=@
  5117. fi
  5118. fi
  5119. rm -f conftest.* libconftest.a
  5120. fi
  5121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5122. fi
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5124. $as_echo "$lt_cv_ar_at_file" >&6; }
  5125. if test "x$lt_cv_ar_at_file" = xno; then
  5126. archiver_list_spec=
  5127. else
  5128. archiver_list_spec=$lt_cv_ar_at_file
  5129. fi
  5130. if test -n "$ac_tool_prefix"; then
  5131. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5132. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5134. $as_echo_n "checking for $ac_word... " >&6; }
  5135. if ${ac_cv_prog_STRIP+:} false; then :
  5136. $as_echo_n "(cached) " >&6
  5137. else
  5138. if test -n "$STRIP"; then
  5139. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5140. else
  5141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5142. for as_dir in $PATH
  5143. do
  5144. IFS=$as_save_IFS
  5145. test -z "$as_dir" && as_dir=.
  5146. for ac_exec_ext in '' $ac_executable_extensions; do
  5147. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5148. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5150. break 2
  5151. fi
  5152. done
  5153. done
  5154. IFS=$as_save_IFS
  5155. fi
  5156. fi
  5157. STRIP=$ac_cv_prog_STRIP
  5158. if test -n "$STRIP"; then
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5160. $as_echo "$STRIP" >&6; }
  5161. else
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5163. $as_echo "no" >&6; }
  5164. fi
  5165. fi
  5166. if test -z "$ac_cv_prog_STRIP"; then
  5167. ac_ct_STRIP=$STRIP
  5168. # Extract the first word of "strip", so it can be a program name with args.
  5169. set dummy strip; ac_word=$2
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5171. $as_echo_n "checking for $ac_word... " >&6; }
  5172. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5173. $as_echo_n "(cached) " >&6
  5174. else
  5175. if test -n "$ac_ct_STRIP"; then
  5176. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5177. else
  5178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5179. for as_dir in $PATH
  5180. do
  5181. IFS=$as_save_IFS
  5182. test -z "$as_dir" && as_dir=.
  5183. for ac_exec_ext in '' $ac_executable_extensions; do
  5184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5185. ac_cv_prog_ac_ct_STRIP="strip"
  5186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5187. break 2
  5188. fi
  5189. done
  5190. done
  5191. IFS=$as_save_IFS
  5192. fi
  5193. fi
  5194. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5195. if test -n "$ac_ct_STRIP"; then
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5197. $as_echo "$ac_ct_STRIP" >&6; }
  5198. else
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5200. $as_echo "no" >&6; }
  5201. fi
  5202. if test "x$ac_ct_STRIP" = x; then
  5203. STRIP=":"
  5204. else
  5205. case $cross_compiling:$ac_tool_warned in
  5206. yes:)
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5208. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5209. ac_tool_warned=yes ;;
  5210. esac
  5211. STRIP=$ac_ct_STRIP
  5212. fi
  5213. else
  5214. STRIP="$ac_cv_prog_STRIP"
  5215. fi
  5216. test -z "$STRIP" && STRIP=:
  5217. if test -n "$ac_tool_prefix"; then
  5218. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5219. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5221. $as_echo_n "checking for $ac_word... " >&6; }
  5222. if ${ac_cv_prog_RANLIB+:} false; then :
  5223. $as_echo_n "(cached) " >&6
  5224. else
  5225. if test -n "$RANLIB"; then
  5226. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5227. else
  5228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5229. for as_dir in $PATH
  5230. do
  5231. IFS=$as_save_IFS
  5232. test -z "$as_dir" && as_dir=.
  5233. for ac_exec_ext in '' $ac_executable_extensions; do
  5234. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5235. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5237. break 2
  5238. fi
  5239. done
  5240. done
  5241. IFS=$as_save_IFS
  5242. fi
  5243. fi
  5244. RANLIB=$ac_cv_prog_RANLIB
  5245. if test -n "$RANLIB"; then
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5247. $as_echo "$RANLIB" >&6; }
  5248. else
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5250. $as_echo "no" >&6; }
  5251. fi
  5252. fi
  5253. if test -z "$ac_cv_prog_RANLIB"; then
  5254. ac_ct_RANLIB=$RANLIB
  5255. # Extract the first word of "ranlib", so it can be a program name with args.
  5256. set dummy ranlib; ac_word=$2
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5258. $as_echo_n "checking for $ac_word... " >&6; }
  5259. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5260. $as_echo_n "(cached) " >&6
  5261. else
  5262. if test -n "$ac_ct_RANLIB"; then
  5263. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5264. else
  5265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5266. for as_dir in $PATH
  5267. do
  5268. IFS=$as_save_IFS
  5269. test -z "$as_dir" && as_dir=.
  5270. for ac_exec_ext in '' $ac_executable_extensions; do
  5271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5272. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5274. break 2
  5275. fi
  5276. done
  5277. done
  5278. IFS=$as_save_IFS
  5279. fi
  5280. fi
  5281. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5282. if test -n "$ac_ct_RANLIB"; then
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5284. $as_echo "$ac_ct_RANLIB" >&6; }
  5285. else
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5287. $as_echo "no" >&6; }
  5288. fi
  5289. if test "x$ac_ct_RANLIB" = x; then
  5290. RANLIB=":"
  5291. else
  5292. case $cross_compiling:$ac_tool_warned in
  5293. yes:)
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5295. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5296. ac_tool_warned=yes ;;
  5297. esac
  5298. RANLIB=$ac_ct_RANLIB
  5299. fi
  5300. else
  5301. RANLIB="$ac_cv_prog_RANLIB"
  5302. fi
  5303. test -z "$RANLIB" && RANLIB=:
  5304. # Determine commands to create old-style static archives.
  5305. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5306. old_postinstall_cmds='chmod 644 $oldlib'
  5307. old_postuninstall_cmds=
  5308. if test -n "$RANLIB"; then
  5309. case $host_os in
  5310. openbsd*)
  5311. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5312. ;;
  5313. *)
  5314. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5315. ;;
  5316. esac
  5317. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5318. fi
  5319. case $host_os in
  5320. darwin*)
  5321. lock_old_archive_extraction=yes ;;
  5322. *)
  5323. lock_old_archive_extraction=no ;;
  5324. esac
  5325. # If no C compiler was specified, use CC.
  5326. LTCC=${LTCC-"$CC"}
  5327. # If no C compiler flags were specified, use CFLAGS.
  5328. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5329. # Allow CC to be a program name with arguments.
  5330. compiler=$CC
  5331. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5333. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5334. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5335. $as_echo_n "(cached) " >&6
  5336. else
  5337. # These are sane defaults that work on at least a few old systems.
  5338. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5339. # Character class describing NM global symbol codes.
  5340. symcode='[BCDEGRST]'
  5341. # Regexp to match symbols that can be accessed directly from C.
  5342. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5343. # Define system-specific variables.
  5344. case $host_os in
  5345. aix*)
  5346. symcode='[BCDT]'
  5347. ;;
  5348. cygwin* | mingw* | pw32* | cegcc*)
  5349. symcode='[ABCDGISTW]'
  5350. ;;
  5351. hpux*)
  5352. if test "$host_cpu" = ia64; then
  5353. symcode='[ABCDEGRST]'
  5354. fi
  5355. ;;
  5356. irix* | nonstopux*)
  5357. symcode='[BCDEGRST]'
  5358. ;;
  5359. osf*)
  5360. symcode='[BCDEGQRST]'
  5361. ;;
  5362. solaris*)
  5363. symcode='[BDRT]'
  5364. ;;
  5365. sco3.2v5*)
  5366. symcode='[DT]'
  5367. ;;
  5368. sysv4.2uw2*)
  5369. symcode='[DT]'
  5370. ;;
  5371. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5372. symcode='[ABDT]'
  5373. ;;
  5374. sysv4)
  5375. symcode='[DFNSTU]'
  5376. ;;
  5377. esac
  5378. # If we're using GNU nm, then use its standard symbol codes.
  5379. case `$NM -V 2>&1` in
  5380. *GNU* | *'with BFD'*)
  5381. symcode='[ABCDGIRSTW]' ;;
  5382. esac
  5383. # Transform an extracted symbol line into a proper C declaration.
  5384. # Some systems (esp. on ia64) link data and code symbols differently,
  5385. # so use this general approach.
  5386. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5387. # Transform an extracted symbol line into symbol name and symbol address
  5388. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5389. 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'"
  5390. # Handle CRLF in mingw tool chain
  5391. opt_cr=
  5392. case $build_os in
  5393. mingw*)
  5394. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5395. ;;
  5396. esac
  5397. # Try without a prefix underscore, then with it.
  5398. for ac_symprfx in "" "_"; do
  5399. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5400. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5401. # Write the raw and C identifiers.
  5402. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5403. # Fake it for dumpbin and say T for any non-static function
  5404. # and D for any global variable.
  5405. # Also find C++ and __fastcall symbols from MSVC++,
  5406. # which start with @ or ?.
  5407. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5408. " {last_section=section; section=\$ 3};"\
  5409. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5410. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5411. " \$ 0!~/External *\|/{next};"\
  5412. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5413. " {if(hide[section]) next};"\
  5414. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5415. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5416. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5417. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5418. " ' prfx=^$ac_symprfx"
  5419. else
  5420. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5421. fi
  5422. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5423. # Check to see that the pipe works correctly.
  5424. pipe_works=no
  5425. rm -f conftest*
  5426. cat > conftest.$ac_ext <<_LT_EOF
  5427. #ifdef __cplusplus
  5428. extern "C" {
  5429. #endif
  5430. char nm_test_var;
  5431. void nm_test_func(void);
  5432. void nm_test_func(void){}
  5433. #ifdef __cplusplus
  5434. }
  5435. #endif
  5436. int main(){nm_test_var='a';nm_test_func();return(0);}
  5437. _LT_EOF
  5438. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5439. (eval $ac_compile) 2>&5
  5440. ac_status=$?
  5441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5442. test $ac_status = 0; }; then
  5443. # Now try to grab the symbols.
  5444. nlist=conftest.nm
  5445. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5446. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5447. ac_status=$?
  5448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5449. test $ac_status = 0; } && test -s "$nlist"; then
  5450. # Try sorting and uniquifying the output.
  5451. if sort "$nlist" | uniq > "$nlist"T; then
  5452. mv -f "$nlist"T "$nlist"
  5453. else
  5454. rm -f "$nlist"T
  5455. fi
  5456. # Make sure that we snagged all the symbols we need.
  5457. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5458. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5459. cat <<_LT_EOF > conftest.$ac_ext
  5460. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5461. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5462. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5463. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5464. # define LT@&t@_DLSYM_CONST
  5465. #elif defined(__osf__)
  5466. /* This system does not cope well with relocations in const data. */
  5467. # define LT@&t@_DLSYM_CONST
  5468. #else
  5469. # define LT@&t@_DLSYM_CONST const
  5470. #endif
  5471. #ifdef __cplusplus
  5472. extern "C" {
  5473. #endif
  5474. _LT_EOF
  5475. # Now generate the symbol file.
  5476. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5477. cat <<_LT_EOF >> conftest.$ac_ext
  5478. /* The mapping between symbol names and symbols. */
  5479. LT@&t@_DLSYM_CONST struct {
  5480. const char *name;
  5481. void *address;
  5482. }
  5483. lt__PROGRAM__LTX_preloaded_symbols[] =
  5484. {
  5485. { "@PROGRAM@", (void *) 0 },
  5486. _LT_EOF
  5487. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5488. cat <<\_LT_EOF >> conftest.$ac_ext
  5489. {0, (void *) 0}
  5490. };
  5491. /* This works around a problem in FreeBSD linker */
  5492. #ifdef FREEBSD_WORKAROUND
  5493. static const void *lt_preloaded_setup() {
  5494. return lt__PROGRAM__LTX_preloaded_symbols;
  5495. }
  5496. #endif
  5497. #ifdef __cplusplus
  5498. }
  5499. #endif
  5500. _LT_EOF
  5501. # Now try linking the two files.
  5502. mv conftest.$ac_objext conftstm.$ac_objext
  5503. lt_globsym_save_LIBS=$LIBS
  5504. lt_globsym_save_CFLAGS=$CFLAGS
  5505. LIBS="conftstm.$ac_objext"
  5506. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5507. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5508. (eval $ac_link) 2>&5
  5509. ac_status=$?
  5510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5511. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5512. pipe_works=yes
  5513. fi
  5514. LIBS=$lt_globsym_save_LIBS
  5515. CFLAGS=$lt_globsym_save_CFLAGS
  5516. else
  5517. echo "cannot find nm_test_func in $nlist" >&5
  5518. fi
  5519. else
  5520. echo "cannot find nm_test_var in $nlist" >&5
  5521. fi
  5522. else
  5523. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5524. fi
  5525. else
  5526. echo "$progname: failed program was:" >&5
  5527. cat conftest.$ac_ext >&5
  5528. fi
  5529. rm -rf conftest* conftst*
  5530. # Do not use the global_symbol_pipe unless it works.
  5531. if test "$pipe_works" = yes; then
  5532. break
  5533. else
  5534. lt_cv_sys_global_symbol_pipe=
  5535. fi
  5536. done
  5537. fi
  5538. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5539. lt_cv_sys_global_symbol_to_cdecl=
  5540. fi
  5541. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5543. $as_echo "failed" >&6; }
  5544. else
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5546. $as_echo "ok" >&6; }
  5547. fi
  5548. # Response file support.
  5549. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5550. nm_file_list_spec='@'
  5551. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5552. nm_file_list_spec='@'
  5553. fi
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5555. $as_echo_n "checking for sysroot... " >&6; }
  5556. @%:@ Check whether --with-sysroot was given.
  5557. if test "${with_sysroot+set}" = set; then :
  5558. withval=$with_sysroot;
  5559. else
  5560. with_sysroot=no
  5561. fi
  5562. lt_sysroot=
  5563. case ${with_sysroot} in #(
  5564. yes)
  5565. if test "$GCC" = yes; then
  5566. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5567. fi
  5568. ;; #(
  5569. /*)
  5570. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5571. ;; #(
  5572. no|'')
  5573. ;; #(
  5574. *)
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5576. $as_echo "${with_sysroot}" >&6; }
  5577. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5578. ;;
  5579. esac
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5581. $as_echo "${lt_sysroot:-no}" >&6; }
  5582. @%:@ Check whether --enable-libtool-lock was given.
  5583. if test "${enable_libtool_lock+set}" = set; then :
  5584. enableval=$enable_libtool_lock;
  5585. fi
  5586. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5587. # Some flags need to be propagated to the compiler or linker for good
  5588. # libtool support.
  5589. case $host in
  5590. ia64-*-hpux*)
  5591. # Find out which ABI we are using.
  5592. echo 'int i;' > conftest.$ac_ext
  5593. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5594. (eval $ac_compile) 2>&5
  5595. ac_status=$?
  5596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5597. test $ac_status = 0; }; then
  5598. case `/usr/bin/file conftest.$ac_objext` in
  5599. *ELF-32*)
  5600. HPUX_IA64_MODE="32"
  5601. ;;
  5602. *ELF-64*)
  5603. HPUX_IA64_MODE="64"
  5604. ;;
  5605. esac
  5606. fi
  5607. rm -rf conftest*
  5608. ;;
  5609. *-*-irix6*)
  5610. # Find out which ABI we are using.
  5611. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5612. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5613. (eval $ac_compile) 2>&5
  5614. ac_status=$?
  5615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5616. test $ac_status = 0; }; then
  5617. if test "$lt_cv_prog_gnu_ld" = yes; then
  5618. case `/usr/bin/file conftest.$ac_objext` in
  5619. *32-bit*)
  5620. LD="${LD-ld} -melf32bsmip"
  5621. ;;
  5622. *N32*)
  5623. LD="${LD-ld} -melf32bmipn32"
  5624. ;;
  5625. *64-bit*)
  5626. LD="${LD-ld} -melf64bmip"
  5627. ;;
  5628. esac
  5629. else
  5630. case `/usr/bin/file conftest.$ac_objext` in
  5631. *32-bit*)
  5632. LD="${LD-ld} -32"
  5633. ;;
  5634. *N32*)
  5635. LD="${LD-ld} -n32"
  5636. ;;
  5637. *64-bit*)
  5638. LD="${LD-ld} -64"
  5639. ;;
  5640. esac
  5641. fi
  5642. fi
  5643. rm -rf conftest*
  5644. ;;
  5645. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5646. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5647. # Find out which ABI we are using.
  5648. echo 'int i;' > conftest.$ac_ext
  5649. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5650. (eval $ac_compile) 2>&5
  5651. ac_status=$?
  5652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5653. test $ac_status = 0; }; then
  5654. case `/usr/bin/file conftest.o` in
  5655. *32-bit*)
  5656. case $host in
  5657. x86_64-*kfreebsd*-gnu)
  5658. LD="${LD-ld} -m elf_i386_fbsd"
  5659. ;;
  5660. x86_64-*linux*)
  5661. LD="${LD-ld} -m elf_i386"
  5662. ;;
  5663. ppc64-*linux*|powerpc64-*linux*)
  5664. LD="${LD-ld} -m elf32ppclinux"
  5665. ;;
  5666. s390x-*linux*)
  5667. LD="${LD-ld} -m elf_s390"
  5668. ;;
  5669. sparc64-*linux*)
  5670. LD="${LD-ld} -m elf32_sparc"
  5671. ;;
  5672. esac
  5673. ;;
  5674. *64-bit*)
  5675. case $host in
  5676. x86_64-*kfreebsd*-gnu)
  5677. LD="${LD-ld} -m elf_x86_64_fbsd"
  5678. ;;
  5679. x86_64-*linux*)
  5680. LD="${LD-ld} -m elf_x86_64"
  5681. ;;
  5682. ppc*-*linux*|powerpc*-*linux*)
  5683. LD="${LD-ld} -m elf64ppc"
  5684. ;;
  5685. s390*-*linux*|s390*-*tpf*)
  5686. LD="${LD-ld} -m elf64_s390"
  5687. ;;
  5688. sparc*-*linux*)
  5689. LD="${LD-ld} -m elf64_sparc"
  5690. ;;
  5691. esac
  5692. ;;
  5693. esac
  5694. fi
  5695. rm -rf conftest*
  5696. ;;
  5697. *-*-sco3.2v5*)
  5698. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5699. SAVE_CFLAGS="$CFLAGS"
  5700. CFLAGS="$CFLAGS -belf"
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5702. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5703. if ${lt_cv_cc_needs_belf+:} false; then :
  5704. $as_echo_n "(cached) " >&6
  5705. else
  5706. ac_ext=c
  5707. ac_cpp='$CPP $CPPFLAGS'
  5708. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5709. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5710. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5712. /* end confdefs.h. */
  5713. int
  5714. main ()
  5715. {
  5716. ;
  5717. return 0;
  5718. }
  5719. _ACEOF
  5720. if ac_fn_c_try_link "$LINENO"; then :
  5721. lt_cv_cc_needs_belf=yes
  5722. else
  5723. lt_cv_cc_needs_belf=no
  5724. fi
  5725. rm -f core conftest.err conftest.$ac_objext \
  5726. conftest$ac_exeext conftest.$ac_ext
  5727. ac_ext=c
  5728. ac_cpp='$CPP $CPPFLAGS'
  5729. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5730. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5731. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5732. fi
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5734. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5735. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5736. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5737. CFLAGS="$SAVE_CFLAGS"
  5738. fi
  5739. ;;
  5740. *-*solaris*)
  5741. # Find out which ABI we are using.
  5742. echo 'int i;' > conftest.$ac_ext
  5743. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5744. (eval $ac_compile) 2>&5
  5745. ac_status=$?
  5746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5747. test $ac_status = 0; }; then
  5748. case `/usr/bin/file conftest.o` in
  5749. *64-bit*)
  5750. case $lt_cv_prog_gnu_ld in
  5751. yes*)
  5752. case $host in
  5753. i?86-*-solaris*)
  5754. LD="${LD-ld} -m elf_x86_64"
  5755. ;;
  5756. sparc*-*-solaris*)
  5757. LD="${LD-ld} -m elf64_sparc"
  5758. ;;
  5759. esac
  5760. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5761. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5762. LD="${LD-ld}_sol2"
  5763. fi
  5764. ;;
  5765. *)
  5766. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5767. LD="${LD-ld} -64"
  5768. fi
  5769. ;;
  5770. esac
  5771. ;;
  5772. esac
  5773. fi
  5774. rm -rf conftest*
  5775. ;;
  5776. esac
  5777. need_locks="$enable_libtool_lock"
  5778. if test -n "$ac_tool_prefix"; then
  5779. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5780. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5782. $as_echo_n "checking for $ac_word... " >&6; }
  5783. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5784. $as_echo_n "(cached) " >&6
  5785. else
  5786. if test -n "$MANIFEST_TOOL"; then
  5787. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5788. else
  5789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5790. for as_dir in $PATH
  5791. do
  5792. IFS=$as_save_IFS
  5793. test -z "$as_dir" && as_dir=.
  5794. for ac_exec_ext in '' $ac_executable_extensions; do
  5795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5796. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5798. break 2
  5799. fi
  5800. done
  5801. done
  5802. IFS=$as_save_IFS
  5803. fi
  5804. fi
  5805. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5806. if test -n "$MANIFEST_TOOL"; then
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5808. $as_echo "$MANIFEST_TOOL" >&6; }
  5809. else
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5811. $as_echo "no" >&6; }
  5812. fi
  5813. fi
  5814. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5815. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5816. # Extract the first word of "mt", so it can be a program name with args.
  5817. set dummy mt; ac_word=$2
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5819. $as_echo_n "checking for $ac_word... " >&6; }
  5820. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5821. $as_echo_n "(cached) " >&6
  5822. else
  5823. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5824. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5825. else
  5826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5827. for as_dir in $PATH
  5828. do
  5829. IFS=$as_save_IFS
  5830. test -z "$as_dir" && as_dir=.
  5831. for ac_exec_ext in '' $ac_executable_extensions; do
  5832. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5833. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5835. break 2
  5836. fi
  5837. done
  5838. done
  5839. IFS=$as_save_IFS
  5840. fi
  5841. fi
  5842. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5843. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5845. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5846. else
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5848. $as_echo "no" >&6; }
  5849. fi
  5850. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5851. MANIFEST_TOOL=":"
  5852. else
  5853. case $cross_compiling:$ac_tool_warned in
  5854. yes:)
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5856. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5857. ac_tool_warned=yes ;;
  5858. esac
  5859. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5860. fi
  5861. else
  5862. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5863. fi
  5864. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5866. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5867. if ${lt_cv_path_mainfest_tool+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. lt_cv_path_mainfest_tool=no
  5871. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5872. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5873. cat conftest.err >&5
  5874. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5875. lt_cv_path_mainfest_tool=yes
  5876. fi
  5877. rm -f conftest*
  5878. fi
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5880. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5881. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5882. MANIFEST_TOOL=:
  5883. fi
  5884. case $host_os in
  5885. rhapsody* | darwin*)
  5886. if test -n "$ac_tool_prefix"; then
  5887. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5888. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5890. $as_echo_n "checking for $ac_word... " >&6; }
  5891. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5892. $as_echo_n "(cached) " >&6
  5893. else
  5894. if test -n "$DSYMUTIL"; then
  5895. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5896. else
  5897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5898. for as_dir in $PATH
  5899. do
  5900. IFS=$as_save_IFS
  5901. test -z "$as_dir" && as_dir=.
  5902. for ac_exec_ext in '' $ac_executable_extensions; do
  5903. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5904. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5906. break 2
  5907. fi
  5908. done
  5909. done
  5910. IFS=$as_save_IFS
  5911. fi
  5912. fi
  5913. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5914. if test -n "$DSYMUTIL"; then
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5916. $as_echo "$DSYMUTIL" >&6; }
  5917. else
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5919. $as_echo "no" >&6; }
  5920. fi
  5921. fi
  5922. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5923. ac_ct_DSYMUTIL=$DSYMUTIL
  5924. # Extract the first word of "dsymutil", so it can be a program name with args.
  5925. set dummy dsymutil; ac_word=$2
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5927. $as_echo_n "checking for $ac_word... " >&6; }
  5928. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5929. $as_echo_n "(cached) " >&6
  5930. else
  5931. if test -n "$ac_ct_DSYMUTIL"; then
  5932. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5933. else
  5934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5935. for as_dir in $PATH
  5936. do
  5937. IFS=$as_save_IFS
  5938. test -z "$as_dir" && as_dir=.
  5939. for ac_exec_ext in '' $ac_executable_extensions; do
  5940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5941. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5943. break 2
  5944. fi
  5945. done
  5946. done
  5947. IFS=$as_save_IFS
  5948. fi
  5949. fi
  5950. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5951. if test -n "$ac_ct_DSYMUTIL"; then
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5953. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5954. else
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5956. $as_echo "no" >&6; }
  5957. fi
  5958. if test "x$ac_ct_DSYMUTIL" = x; then
  5959. DSYMUTIL=":"
  5960. else
  5961. case $cross_compiling:$ac_tool_warned in
  5962. yes:)
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5965. ac_tool_warned=yes ;;
  5966. esac
  5967. DSYMUTIL=$ac_ct_DSYMUTIL
  5968. fi
  5969. else
  5970. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5971. fi
  5972. if test -n "$ac_tool_prefix"; then
  5973. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5974. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5976. $as_echo_n "checking for $ac_word... " >&6; }
  5977. if ${ac_cv_prog_NMEDIT+:} false; then :
  5978. $as_echo_n "(cached) " >&6
  5979. else
  5980. if test -n "$NMEDIT"; then
  5981. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5982. else
  5983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5984. for as_dir in $PATH
  5985. do
  5986. IFS=$as_save_IFS
  5987. test -z "$as_dir" && as_dir=.
  5988. for ac_exec_ext in '' $ac_executable_extensions; do
  5989. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5990. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5992. break 2
  5993. fi
  5994. done
  5995. done
  5996. IFS=$as_save_IFS
  5997. fi
  5998. fi
  5999. NMEDIT=$ac_cv_prog_NMEDIT
  6000. if test -n "$NMEDIT"; then
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6002. $as_echo "$NMEDIT" >&6; }
  6003. else
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6005. $as_echo "no" >&6; }
  6006. fi
  6007. fi
  6008. if test -z "$ac_cv_prog_NMEDIT"; then
  6009. ac_ct_NMEDIT=$NMEDIT
  6010. # Extract the first word of "nmedit", so it can be a program name with args.
  6011. set dummy nmedit; ac_word=$2
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6013. $as_echo_n "checking for $ac_word... " >&6; }
  6014. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6015. $as_echo_n "(cached) " >&6
  6016. else
  6017. if test -n "$ac_ct_NMEDIT"; then
  6018. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6019. else
  6020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6021. for as_dir in $PATH
  6022. do
  6023. IFS=$as_save_IFS
  6024. test -z "$as_dir" && as_dir=.
  6025. for ac_exec_ext in '' $ac_executable_extensions; do
  6026. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6027. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6029. break 2
  6030. fi
  6031. done
  6032. done
  6033. IFS=$as_save_IFS
  6034. fi
  6035. fi
  6036. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6037. if test -n "$ac_ct_NMEDIT"; then
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6039. $as_echo "$ac_ct_NMEDIT" >&6; }
  6040. else
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6042. $as_echo "no" >&6; }
  6043. fi
  6044. if test "x$ac_ct_NMEDIT" = x; then
  6045. NMEDIT=":"
  6046. else
  6047. case $cross_compiling:$ac_tool_warned in
  6048. yes:)
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6050. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6051. ac_tool_warned=yes ;;
  6052. esac
  6053. NMEDIT=$ac_ct_NMEDIT
  6054. fi
  6055. else
  6056. NMEDIT="$ac_cv_prog_NMEDIT"
  6057. fi
  6058. if test -n "$ac_tool_prefix"; then
  6059. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6060. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6062. $as_echo_n "checking for $ac_word... " >&6; }
  6063. if ${ac_cv_prog_LIPO+:} false; then :
  6064. $as_echo_n "(cached) " >&6
  6065. else
  6066. if test -n "$LIPO"; then
  6067. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6068. else
  6069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6070. for as_dir in $PATH
  6071. do
  6072. IFS=$as_save_IFS
  6073. test -z "$as_dir" && as_dir=.
  6074. for ac_exec_ext in '' $ac_executable_extensions; do
  6075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6076. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6078. break 2
  6079. fi
  6080. done
  6081. done
  6082. IFS=$as_save_IFS
  6083. fi
  6084. fi
  6085. LIPO=$ac_cv_prog_LIPO
  6086. if test -n "$LIPO"; then
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6088. $as_echo "$LIPO" >&6; }
  6089. else
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6091. $as_echo "no" >&6; }
  6092. fi
  6093. fi
  6094. if test -z "$ac_cv_prog_LIPO"; then
  6095. ac_ct_LIPO=$LIPO
  6096. # Extract the first word of "lipo", so it can be a program name with args.
  6097. set dummy lipo; ac_word=$2
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6099. $as_echo_n "checking for $ac_word... " >&6; }
  6100. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6101. $as_echo_n "(cached) " >&6
  6102. else
  6103. if test -n "$ac_ct_LIPO"; then
  6104. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6105. else
  6106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6107. for as_dir in $PATH
  6108. do
  6109. IFS=$as_save_IFS
  6110. test -z "$as_dir" && as_dir=.
  6111. for ac_exec_ext in '' $ac_executable_extensions; do
  6112. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6113. ac_cv_prog_ac_ct_LIPO="lipo"
  6114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6115. break 2
  6116. fi
  6117. done
  6118. done
  6119. IFS=$as_save_IFS
  6120. fi
  6121. fi
  6122. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6123. if test -n "$ac_ct_LIPO"; then
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6125. $as_echo "$ac_ct_LIPO" >&6; }
  6126. else
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6128. $as_echo "no" >&6; }
  6129. fi
  6130. if test "x$ac_ct_LIPO" = x; then
  6131. LIPO=":"
  6132. else
  6133. case $cross_compiling:$ac_tool_warned in
  6134. yes:)
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6136. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6137. ac_tool_warned=yes ;;
  6138. esac
  6139. LIPO=$ac_ct_LIPO
  6140. fi
  6141. else
  6142. LIPO="$ac_cv_prog_LIPO"
  6143. fi
  6144. if test -n "$ac_tool_prefix"; then
  6145. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6146. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6148. $as_echo_n "checking for $ac_word... " >&6; }
  6149. if ${ac_cv_prog_OTOOL+:} false; then :
  6150. $as_echo_n "(cached) " >&6
  6151. else
  6152. if test -n "$OTOOL"; then
  6153. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6154. else
  6155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6156. for as_dir in $PATH
  6157. do
  6158. IFS=$as_save_IFS
  6159. test -z "$as_dir" && as_dir=.
  6160. for ac_exec_ext in '' $ac_executable_extensions; do
  6161. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6162. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6164. break 2
  6165. fi
  6166. done
  6167. done
  6168. IFS=$as_save_IFS
  6169. fi
  6170. fi
  6171. OTOOL=$ac_cv_prog_OTOOL
  6172. if test -n "$OTOOL"; then
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6174. $as_echo "$OTOOL" >&6; }
  6175. else
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6177. $as_echo "no" >&6; }
  6178. fi
  6179. fi
  6180. if test -z "$ac_cv_prog_OTOOL"; then
  6181. ac_ct_OTOOL=$OTOOL
  6182. # Extract the first word of "otool", so it can be a program name with args.
  6183. set dummy otool; ac_word=$2
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6185. $as_echo_n "checking for $ac_word... " >&6; }
  6186. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6187. $as_echo_n "(cached) " >&6
  6188. else
  6189. if test -n "$ac_ct_OTOOL"; then
  6190. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6191. else
  6192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6193. for as_dir in $PATH
  6194. do
  6195. IFS=$as_save_IFS
  6196. test -z "$as_dir" && as_dir=.
  6197. for ac_exec_ext in '' $ac_executable_extensions; do
  6198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6199. ac_cv_prog_ac_ct_OTOOL="otool"
  6200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6201. break 2
  6202. fi
  6203. done
  6204. done
  6205. IFS=$as_save_IFS
  6206. fi
  6207. fi
  6208. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6209. if test -n "$ac_ct_OTOOL"; then
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6211. $as_echo "$ac_ct_OTOOL" >&6; }
  6212. else
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6214. $as_echo "no" >&6; }
  6215. fi
  6216. if test "x$ac_ct_OTOOL" = x; then
  6217. OTOOL=":"
  6218. else
  6219. case $cross_compiling:$ac_tool_warned in
  6220. yes:)
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6222. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6223. ac_tool_warned=yes ;;
  6224. esac
  6225. OTOOL=$ac_ct_OTOOL
  6226. fi
  6227. else
  6228. OTOOL="$ac_cv_prog_OTOOL"
  6229. fi
  6230. if test -n "$ac_tool_prefix"; then
  6231. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6232. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6234. $as_echo_n "checking for $ac_word... " >&6; }
  6235. if ${ac_cv_prog_OTOOL64+:} false; then :
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. if test -n "$OTOOL64"; then
  6239. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6240. else
  6241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6242. for as_dir in $PATH
  6243. do
  6244. IFS=$as_save_IFS
  6245. test -z "$as_dir" && as_dir=.
  6246. for ac_exec_ext in '' $ac_executable_extensions; do
  6247. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6248. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6250. break 2
  6251. fi
  6252. done
  6253. done
  6254. IFS=$as_save_IFS
  6255. fi
  6256. fi
  6257. OTOOL64=$ac_cv_prog_OTOOL64
  6258. if test -n "$OTOOL64"; then
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6260. $as_echo "$OTOOL64" >&6; }
  6261. else
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6263. $as_echo "no" >&6; }
  6264. fi
  6265. fi
  6266. if test -z "$ac_cv_prog_OTOOL64"; then
  6267. ac_ct_OTOOL64=$OTOOL64
  6268. # Extract the first word of "otool64", so it can be a program name with args.
  6269. set dummy otool64; ac_word=$2
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6271. $as_echo_n "checking for $ac_word... " >&6; }
  6272. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6273. $as_echo_n "(cached) " >&6
  6274. else
  6275. if test -n "$ac_ct_OTOOL64"; then
  6276. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6277. else
  6278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6279. for as_dir in $PATH
  6280. do
  6281. IFS=$as_save_IFS
  6282. test -z "$as_dir" && as_dir=.
  6283. for ac_exec_ext in '' $ac_executable_extensions; do
  6284. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6285. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6287. break 2
  6288. fi
  6289. done
  6290. done
  6291. IFS=$as_save_IFS
  6292. fi
  6293. fi
  6294. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6295. if test -n "$ac_ct_OTOOL64"; then
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6297. $as_echo "$ac_ct_OTOOL64" >&6; }
  6298. else
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6300. $as_echo "no" >&6; }
  6301. fi
  6302. if test "x$ac_ct_OTOOL64" = x; then
  6303. OTOOL64=":"
  6304. else
  6305. case $cross_compiling:$ac_tool_warned in
  6306. yes:)
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6308. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6309. ac_tool_warned=yes ;;
  6310. esac
  6311. OTOOL64=$ac_ct_OTOOL64
  6312. fi
  6313. else
  6314. OTOOL64="$ac_cv_prog_OTOOL64"
  6315. fi
  6316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6317. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6318. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6319. $as_echo_n "(cached) " >&6
  6320. else
  6321. lt_cv_apple_cc_single_mod=no
  6322. if test -z "${LT_MULTI_MODULE}"; then
  6323. # By default we will add the -single_module flag. You can override
  6324. # by either setting the environment variable LT_MULTI_MODULE
  6325. # non-empty at configure time, or by adding -multi_module to the
  6326. # link flags.
  6327. rm -rf libconftest.dylib*
  6328. echo "int foo(void){return 1;}" > conftest.c
  6329. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6330. -dynamiclib -Wl,-single_module conftest.c" >&5
  6331. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6332. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6333. _lt_result=$?
  6334. # If there is a non-empty error log, and "single_module"
  6335. # appears in it, assume the flag caused a linker warning
  6336. if test -s conftest.err && $GREP single_module conftest.err; then
  6337. cat conftest.err >&5
  6338. # Otherwise, if the output was created with a 0 exit code from
  6339. # the compiler, it worked.
  6340. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6341. lt_cv_apple_cc_single_mod=yes
  6342. else
  6343. cat conftest.err >&5
  6344. fi
  6345. rm -rf libconftest.dylib*
  6346. rm -f conftest.*
  6347. fi
  6348. fi
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6350. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6352. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6353. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6354. $as_echo_n "(cached) " >&6
  6355. else
  6356. lt_cv_ld_exported_symbols_list=no
  6357. save_LDFLAGS=$LDFLAGS
  6358. echo "_main" > conftest.sym
  6359. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6361. /* end confdefs.h. */
  6362. int
  6363. main ()
  6364. {
  6365. ;
  6366. return 0;
  6367. }
  6368. _ACEOF
  6369. if ac_fn_c_try_link "$LINENO"; then :
  6370. lt_cv_ld_exported_symbols_list=yes
  6371. else
  6372. lt_cv_ld_exported_symbols_list=no
  6373. fi
  6374. rm -f core conftest.err conftest.$ac_objext \
  6375. conftest$ac_exeext conftest.$ac_ext
  6376. LDFLAGS="$save_LDFLAGS"
  6377. fi
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6379. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6381. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6382. if ${lt_cv_ld_force_load+:} false; then :
  6383. $as_echo_n "(cached) " >&6
  6384. else
  6385. lt_cv_ld_force_load=no
  6386. cat > conftest.c << _LT_EOF
  6387. int forced_loaded() { return 2;}
  6388. _LT_EOF
  6389. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6390. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6391. echo "$AR cru libconftest.a conftest.o" >&5
  6392. $AR cru libconftest.a conftest.o 2>&5
  6393. echo "$RANLIB libconftest.a" >&5
  6394. $RANLIB libconftest.a 2>&5
  6395. cat > conftest.c << _LT_EOF
  6396. int main() { return 0;}
  6397. _LT_EOF
  6398. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6399. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6400. _lt_result=$?
  6401. if test -s conftest.err && $GREP force_load conftest.err; then
  6402. cat conftest.err >&5
  6403. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6404. lt_cv_ld_force_load=yes
  6405. else
  6406. cat conftest.err >&5
  6407. fi
  6408. rm -f conftest.err libconftest.a conftest conftest.c
  6409. rm -rf conftest.dSYM
  6410. fi
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6412. $as_echo "$lt_cv_ld_force_load" >&6; }
  6413. case $host_os in
  6414. rhapsody* | darwin1.[012])
  6415. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6416. darwin1.*)
  6417. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6418. darwin*) # darwin 5.x on
  6419. # if running on 10.5 or later, the deployment target defaults
  6420. # to the OS version, if on x86, and 10.4, the deployment
  6421. # target defaults to 10.4. Don't you love it?
  6422. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6423. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6424. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6425. 10.[012]*)
  6426. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6427. 10.*)
  6428. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6429. esac
  6430. ;;
  6431. esac
  6432. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6433. _lt_dar_single_mod='$single_module'
  6434. fi
  6435. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6436. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6437. else
  6438. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6439. fi
  6440. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6441. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6442. else
  6443. _lt_dsymutil=
  6444. fi
  6445. ;;
  6446. esac
  6447. ac_ext=c
  6448. ac_cpp='$CPP $CPPFLAGS'
  6449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6453. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6454. # On Suns, sometimes $CPP names a directory.
  6455. if test -n "$CPP" && test -d "$CPP"; then
  6456. CPP=
  6457. fi
  6458. if test -z "$CPP"; then
  6459. if ${ac_cv_prog_CPP+:} false; then :
  6460. $as_echo_n "(cached) " >&6
  6461. else
  6462. # Double quotes because CPP needs to be expanded
  6463. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6464. do
  6465. ac_preproc_ok=false
  6466. for ac_c_preproc_warn_flag in '' yes
  6467. do
  6468. # Use a header file that comes with gcc, so configuring glibc
  6469. # with a fresh cross-compiler works.
  6470. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6471. # <limits.h> exists even on freestanding compilers.
  6472. # On the NeXT, cc -E runs the code through the compiler's parser,
  6473. # not just through cpp. "Syntax error" is here to catch this case.
  6474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6475. /* end confdefs.h. */
  6476. @%:@ifdef __STDC__
  6477. @%:@ include <limits.h>
  6478. @%:@else
  6479. @%:@ include <assert.h>
  6480. @%:@endif
  6481. Syntax error
  6482. _ACEOF
  6483. if ac_fn_c_try_cpp "$LINENO"; then :
  6484. else
  6485. # Broken: fails on valid input.
  6486. continue
  6487. fi
  6488. rm -f conftest.err conftest.i conftest.$ac_ext
  6489. # OK, works on sane cases. Now check whether nonexistent headers
  6490. # can be detected and how.
  6491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6492. /* end confdefs.h. */
  6493. @%:@include <ac_nonexistent.h>
  6494. _ACEOF
  6495. if ac_fn_c_try_cpp "$LINENO"; then :
  6496. # Broken: success on invalid input.
  6497. continue
  6498. else
  6499. # Passes both tests.
  6500. ac_preproc_ok=:
  6501. break
  6502. fi
  6503. rm -f conftest.err conftest.i conftest.$ac_ext
  6504. done
  6505. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6506. rm -f conftest.i conftest.err conftest.$ac_ext
  6507. if $ac_preproc_ok; then :
  6508. break
  6509. fi
  6510. done
  6511. ac_cv_prog_CPP=$CPP
  6512. fi
  6513. CPP=$ac_cv_prog_CPP
  6514. else
  6515. ac_cv_prog_CPP=$CPP
  6516. fi
  6517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6518. $as_echo "$CPP" >&6; }
  6519. ac_preproc_ok=false
  6520. for ac_c_preproc_warn_flag in '' yes
  6521. do
  6522. # Use a header file that comes with gcc, so configuring glibc
  6523. # with a fresh cross-compiler works.
  6524. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6525. # <limits.h> exists even on freestanding compilers.
  6526. # On the NeXT, cc -E runs the code through the compiler's parser,
  6527. # not just through cpp. "Syntax error" is here to catch this case.
  6528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6529. /* end confdefs.h. */
  6530. @%:@ifdef __STDC__
  6531. @%:@ include <limits.h>
  6532. @%:@else
  6533. @%:@ include <assert.h>
  6534. @%:@endif
  6535. Syntax error
  6536. _ACEOF
  6537. if ac_fn_c_try_cpp "$LINENO"; then :
  6538. else
  6539. # Broken: fails on valid input.
  6540. continue
  6541. fi
  6542. rm -f conftest.err conftest.i conftest.$ac_ext
  6543. # OK, works on sane cases. Now check whether nonexistent headers
  6544. # can be detected and how.
  6545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6546. /* end confdefs.h. */
  6547. @%:@include <ac_nonexistent.h>
  6548. _ACEOF
  6549. if ac_fn_c_try_cpp "$LINENO"; then :
  6550. # Broken: success on invalid input.
  6551. continue
  6552. else
  6553. # Passes both tests.
  6554. ac_preproc_ok=:
  6555. break
  6556. fi
  6557. rm -f conftest.err conftest.i conftest.$ac_ext
  6558. done
  6559. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6560. rm -f conftest.i conftest.err conftest.$ac_ext
  6561. if $ac_preproc_ok; then :
  6562. else
  6563. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6564. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6565. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6566. See \`config.log' for more details" "$LINENO" 5; }
  6567. fi
  6568. ac_ext=c
  6569. ac_cpp='$CPP $CPPFLAGS'
  6570. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6571. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6572. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6574. $as_echo_n "checking for ANSI C header files... " >&6; }
  6575. if ${ac_cv_header_stdc+:} false; then :
  6576. $as_echo_n "(cached) " >&6
  6577. else
  6578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6579. /* end confdefs.h. */
  6580. #include <stdlib.h>
  6581. #include <stdarg.h>
  6582. #include <string.h>
  6583. #include <float.h>
  6584. int
  6585. main ()
  6586. {
  6587. ;
  6588. return 0;
  6589. }
  6590. _ACEOF
  6591. if ac_fn_c_try_compile "$LINENO"; then :
  6592. ac_cv_header_stdc=yes
  6593. else
  6594. ac_cv_header_stdc=no
  6595. fi
  6596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6597. if test $ac_cv_header_stdc = yes; then
  6598. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6600. /* end confdefs.h. */
  6601. #include <string.h>
  6602. _ACEOF
  6603. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6604. $EGREP "memchr" >/dev/null 2>&1; then :
  6605. else
  6606. ac_cv_header_stdc=no
  6607. fi
  6608. rm -f conftest*
  6609. fi
  6610. if test $ac_cv_header_stdc = yes; then
  6611. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6613. /* end confdefs.h. */
  6614. #include <stdlib.h>
  6615. _ACEOF
  6616. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6617. $EGREP "free" >/dev/null 2>&1; then :
  6618. else
  6619. ac_cv_header_stdc=no
  6620. fi
  6621. rm -f conftest*
  6622. fi
  6623. if test $ac_cv_header_stdc = yes; then
  6624. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6625. if test "$cross_compiling" = yes; then :
  6626. :
  6627. else
  6628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6629. /* end confdefs.h. */
  6630. #include <ctype.h>
  6631. #include <stdlib.h>
  6632. #if ((' ' & 0x0FF) == 0x020)
  6633. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6634. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6635. #else
  6636. # define ISLOWER(c) \
  6637. (('a' <= (c) && (c) <= 'i') \
  6638. || ('j' <= (c) && (c) <= 'r') \
  6639. || ('s' <= (c) && (c) <= 'z'))
  6640. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6641. #endif
  6642. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6643. int
  6644. main ()
  6645. {
  6646. int i;
  6647. for (i = 0; i < 256; i++)
  6648. if (XOR (islower (i), ISLOWER (i))
  6649. || toupper (i) != TOUPPER (i))
  6650. return 2;
  6651. return 0;
  6652. }
  6653. _ACEOF
  6654. if ac_fn_c_try_run "$LINENO"; then :
  6655. else
  6656. ac_cv_header_stdc=no
  6657. fi
  6658. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6659. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6660. fi
  6661. fi
  6662. fi
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6664. $as_echo "$ac_cv_header_stdc" >&6; }
  6665. if test $ac_cv_header_stdc = yes; then
  6666. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  6667. fi
  6668. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6669. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6670. inttypes.h stdint.h unistd.h
  6671. do :
  6672. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6673. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6674. "
  6675. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6676. cat >>confdefs.h <<_ACEOF
  6677. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6678. _ACEOF
  6679. fi
  6680. done
  6681. for ac_header in dlfcn.h
  6682. do :
  6683. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6684. "
  6685. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6686. cat >>confdefs.h <<_ACEOF
  6687. @%:@define HAVE_DLFCN_H 1
  6688. _ACEOF
  6689. fi
  6690. done
  6691. # Set options
  6692. enable_dlopen=no
  6693. enable_win32_dll=no
  6694. @%:@ Check whether --enable-shared was given.
  6695. if test "${enable_shared+set}" = set; then :
  6696. enableval=$enable_shared; p=${PACKAGE-default}
  6697. case $enableval in
  6698. yes) enable_shared=yes ;;
  6699. no) enable_shared=no ;;
  6700. *)
  6701. enable_shared=no
  6702. # Look at the argument we got. We use all the common list separators.
  6703. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6704. for pkg in $enableval; do
  6705. IFS="$lt_save_ifs"
  6706. if test "X$pkg" = "X$p"; then
  6707. enable_shared=yes
  6708. fi
  6709. done
  6710. IFS="$lt_save_ifs"
  6711. ;;
  6712. esac
  6713. else
  6714. enable_shared=yes
  6715. fi
  6716. @%:@ Check whether --enable-static was given.
  6717. if test "${enable_static+set}" = set; then :
  6718. enableval=$enable_static; p=${PACKAGE-default}
  6719. case $enableval in
  6720. yes) enable_static=yes ;;
  6721. no) enable_static=no ;;
  6722. *)
  6723. enable_static=no
  6724. # Look at the argument we got. We use all the common list separators.
  6725. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6726. for pkg in $enableval; do
  6727. IFS="$lt_save_ifs"
  6728. if test "X$pkg" = "X$p"; then
  6729. enable_static=yes
  6730. fi
  6731. done
  6732. IFS="$lt_save_ifs"
  6733. ;;
  6734. esac
  6735. else
  6736. enable_static=yes
  6737. fi
  6738. @%:@ Check whether --with-pic was given.
  6739. if test "${with_pic+set}" = set; then :
  6740. withval=$with_pic; lt_p=${PACKAGE-default}
  6741. case $withval in
  6742. yes|no) pic_mode=$withval ;;
  6743. *)
  6744. pic_mode=default
  6745. # Look at the argument we got. We use all the common list separators.
  6746. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6747. for lt_pkg in $withval; do
  6748. IFS="$lt_save_ifs"
  6749. if test "X$lt_pkg" = "X$lt_p"; then
  6750. pic_mode=yes
  6751. fi
  6752. done
  6753. IFS="$lt_save_ifs"
  6754. ;;
  6755. esac
  6756. else
  6757. pic_mode=default
  6758. fi
  6759. test -z "$pic_mode" && pic_mode=default
  6760. @%:@ Check whether --enable-fast-install was given.
  6761. if test "${enable_fast_install+set}" = set; then :
  6762. enableval=$enable_fast_install; p=${PACKAGE-default}
  6763. case $enableval in
  6764. yes) enable_fast_install=yes ;;
  6765. no) enable_fast_install=no ;;
  6766. *)
  6767. enable_fast_install=no
  6768. # Look at the argument we got. We use all the common list separators.
  6769. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6770. for pkg in $enableval; do
  6771. IFS="$lt_save_ifs"
  6772. if test "X$pkg" = "X$p"; then
  6773. enable_fast_install=yes
  6774. fi
  6775. done
  6776. IFS="$lt_save_ifs"
  6777. ;;
  6778. esac
  6779. else
  6780. enable_fast_install=yes
  6781. fi
  6782. # This can be used to rebuild libtool when needed
  6783. LIBTOOL_DEPS="$ltmain"
  6784. # Always use our own libtool.
  6785. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6786. test -z "$LN_S" && LN_S="ln -s"
  6787. if test -n "${ZSH_VERSION+set}" ; then
  6788. setopt NO_GLOB_SUBST
  6789. fi
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6791. $as_echo_n "checking for objdir... " >&6; }
  6792. if ${lt_cv_objdir+:} false; then :
  6793. $as_echo_n "(cached) " >&6
  6794. else
  6795. rm -f .libs 2>/dev/null
  6796. mkdir .libs 2>/dev/null
  6797. if test -d .libs; then
  6798. lt_cv_objdir=.libs
  6799. else
  6800. # MS-DOS does not allow filenames that begin with a dot.
  6801. lt_cv_objdir=_libs
  6802. fi
  6803. rmdir .libs 2>/dev/null
  6804. fi
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6806. $as_echo "$lt_cv_objdir" >&6; }
  6807. objdir=$lt_cv_objdir
  6808. cat >>confdefs.h <<_ACEOF
  6809. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  6810. _ACEOF
  6811. case $host_os in
  6812. aix3*)
  6813. # AIX sometimes has problems with the GCC collect2 program. For some
  6814. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6815. # vanish in a puff of smoke.
  6816. if test "X${COLLECT_NAMES+set}" != Xset; then
  6817. COLLECT_NAMES=
  6818. export COLLECT_NAMES
  6819. fi
  6820. ;;
  6821. esac
  6822. # Global variables:
  6823. ofile=libtool
  6824. can_build_shared=yes
  6825. # All known linkers require a `.a' archive for static linking (except MSVC,
  6826. # which needs '.lib').
  6827. libext=a
  6828. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6829. old_CC="$CC"
  6830. old_CFLAGS="$CFLAGS"
  6831. # Set sane defaults for various variables
  6832. test -z "$CC" && CC=cc
  6833. test -z "$LTCC" && LTCC=$CC
  6834. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6835. test -z "$LD" && LD=ld
  6836. test -z "$ac_objext" && ac_objext=o
  6837. for cc_temp in $compiler""; do
  6838. case $cc_temp in
  6839. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6840. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6841. \-*) ;;
  6842. *) break;;
  6843. esac
  6844. done
  6845. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6846. # Only perform the check for file, if the check method requires it
  6847. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6848. case $deplibs_check_method in
  6849. file_magic*)
  6850. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6852. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6853. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6854. $as_echo_n "(cached) " >&6
  6855. else
  6856. case $MAGIC_CMD in
  6857. [\\/*] | ?:[\\/]*)
  6858. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6859. ;;
  6860. *)
  6861. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6862. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6863. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6864. for ac_dir in $ac_dummy; do
  6865. IFS="$lt_save_ifs"
  6866. test -z "$ac_dir" && ac_dir=.
  6867. if test -f $ac_dir/${ac_tool_prefix}file; then
  6868. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6869. if test -n "$file_magic_test_file"; then
  6870. case $deplibs_check_method in
  6871. "file_magic "*)
  6872. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6873. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6874. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6875. $EGREP "$file_magic_regex" > /dev/null; then
  6876. :
  6877. else
  6878. cat <<_LT_EOF 1>&2
  6879. *** Warning: the command libtool uses to detect shared libraries,
  6880. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6881. *** The result is that libtool may fail to recognize shared libraries
  6882. *** as such. This will affect the creation of libtool libraries that
  6883. *** depend on shared libraries, but programs linked with such libtool
  6884. *** libraries will work regardless of this problem. Nevertheless, you
  6885. *** may want to report the problem to your system manager and/or to
  6886. *** bug-libtool@gnu.org
  6887. _LT_EOF
  6888. fi ;;
  6889. esac
  6890. fi
  6891. break
  6892. fi
  6893. done
  6894. IFS="$lt_save_ifs"
  6895. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6896. ;;
  6897. esac
  6898. fi
  6899. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6900. if test -n "$MAGIC_CMD"; then
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6902. $as_echo "$MAGIC_CMD" >&6; }
  6903. else
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6905. $as_echo "no" >&6; }
  6906. fi
  6907. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6908. if test -n "$ac_tool_prefix"; then
  6909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6910. $as_echo_n "checking for 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/file; then
  6926. lt_cv_path_MAGIC_CMD="$ac_dir/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. else
  6966. MAGIC_CMD=:
  6967. fi
  6968. fi
  6969. fi
  6970. ;;
  6971. esac
  6972. # Use C for the default configuration in the libtool script
  6973. lt_save_CC="$CC"
  6974. ac_ext=c
  6975. ac_cpp='$CPP $CPPFLAGS'
  6976. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6977. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6978. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6979. # Source file extension for C test sources.
  6980. ac_ext=c
  6981. # Object file extension for compiled C test sources.
  6982. objext=o
  6983. objext=$objext
  6984. # Code to be used in simple compile tests
  6985. lt_simple_compile_test_code="int some_variable = 0;"
  6986. # Code to be used in simple link tests
  6987. lt_simple_link_test_code='int main(){return(0);}'
  6988. # If no C compiler was specified, use CC.
  6989. LTCC=${LTCC-"$CC"}
  6990. # If no C compiler flags were specified, use CFLAGS.
  6991. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6992. # Allow CC to be a program name with arguments.
  6993. compiler=$CC
  6994. # Save the default compiler, since it gets overwritten when the other
  6995. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6996. compiler_DEFAULT=$CC
  6997. # save warnings/boilerplate of simple test code
  6998. ac_outfile=conftest.$ac_objext
  6999. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7000. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7001. _lt_compiler_boilerplate=`cat conftest.err`
  7002. $RM conftest*
  7003. ac_outfile=conftest.$ac_objext
  7004. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7005. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7006. _lt_linker_boilerplate=`cat conftest.err`
  7007. $RM -r conftest*
  7008. if test -n "$compiler"; then
  7009. lt_prog_compiler_no_builtin_flag=
  7010. if test "$GCC" = yes; then
  7011. case $cc_basename in
  7012. nvcc*)
  7013. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7014. *)
  7015. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7016. esac
  7017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7018. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7019. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7020. $as_echo_n "(cached) " >&6
  7021. else
  7022. lt_cv_prog_compiler_rtti_exceptions=no
  7023. ac_outfile=conftest.$ac_objext
  7024. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7025. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7026. # Insert the option either (1) after the last *FLAGS variable, or
  7027. # (2) before a word containing "conftest.", or (3) at the end.
  7028. # Note that $ac_compile itself does not contain backslashes and begins
  7029. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7030. # The option is referenced via a variable to avoid confusing sed.
  7031. lt_compile=`echo "$ac_compile" | $SED \
  7032. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7033. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7034. -e 's:$: $lt_compiler_flag:'`
  7035. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7036. (eval "$lt_compile" 2>conftest.err)
  7037. ac_status=$?
  7038. cat conftest.err >&5
  7039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7040. if (exit $ac_status) && test -s "$ac_outfile"; then
  7041. # The compiler can only warn and ignore the option if not recognized
  7042. # So say no if there are warnings other than the usual output.
  7043. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7044. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7045. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7046. lt_cv_prog_compiler_rtti_exceptions=yes
  7047. fi
  7048. fi
  7049. $RM conftest*
  7050. fi
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7052. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7053. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7054. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7055. else
  7056. :
  7057. fi
  7058. fi
  7059. lt_prog_compiler_wl=
  7060. lt_prog_compiler_pic=
  7061. lt_prog_compiler_static=
  7062. if test "$GCC" = yes; then
  7063. lt_prog_compiler_wl='-Wl,'
  7064. lt_prog_compiler_static='-static'
  7065. case $host_os in
  7066. aix*)
  7067. # All AIX code is PIC.
  7068. if test "$host_cpu" = ia64; then
  7069. # AIX 5 now supports IA64 processor
  7070. lt_prog_compiler_static='-Bstatic'
  7071. fi
  7072. ;;
  7073. amigaos*)
  7074. case $host_cpu in
  7075. powerpc)
  7076. # see comment about AmigaOS4 .so support
  7077. lt_prog_compiler_pic='-fPIC'
  7078. ;;
  7079. m68k)
  7080. # FIXME: we need at least 68020 code to build shared libraries, but
  7081. # adding the `-m68020' flag to GCC prevents building anything better,
  7082. # like `-m68040'.
  7083. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7084. ;;
  7085. esac
  7086. ;;
  7087. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7088. # PIC is the default for these OSes.
  7089. ;;
  7090. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7091. # This hack is so that the source file can tell whether it is being
  7092. # built for inclusion in a dll (and should export symbols for example).
  7093. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7094. # (--disable-auto-import) libraries
  7095. lt_prog_compiler_pic='-DDLL_EXPORT'
  7096. ;;
  7097. darwin* | rhapsody*)
  7098. # PIC is the default on this platform
  7099. # Common symbols not allowed in MH_DYLIB files
  7100. lt_prog_compiler_pic='-fno-common'
  7101. ;;
  7102. haiku*)
  7103. # PIC is the default for Haiku.
  7104. # The "-static" flag exists, but is broken.
  7105. lt_prog_compiler_static=
  7106. ;;
  7107. hpux*)
  7108. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7109. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7110. # sets the default TLS model and affects inlining.
  7111. case $host_cpu in
  7112. hppa*64*)
  7113. # +Z the default
  7114. ;;
  7115. *)
  7116. lt_prog_compiler_pic='-fPIC'
  7117. ;;
  7118. esac
  7119. ;;
  7120. interix[3-9]*)
  7121. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7122. # Instead, we relocate shared libraries at runtime.
  7123. ;;
  7124. msdosdjgpp*)
  7125. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7126. # on systems that don't support them.
  7127. lt_prog_compiler_can_build_shared=no
  7128. enable_shared=no
  7129. ;;
  7130. *nto* | *qnx*)
  7131. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7132. # it will coredump.
  7133. lt_prog_compiler_pic='-fPIC -shared'
  7134. ;;
  7135. sysv4*MP*)
  7136. if test -d /usr/nec; then
  7137. lt_prog_compiler_pic=-Kconform_pic
  7138. fi
  7139. ;;
  7140. *)
  7141. lt_prog_compiler_pic='-fPIC'
  7142. ;;
  7143. esac
  7144. case $cc_basename in
  7145. nvcc*) # Cuda Compiler Driver 2.2
  7146. lt_prog_compiler_wl='-Xlinker '
  7147. if test -n "$lt_prog_compiler_pic"; then
  7148. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7149. fi
  7150. ;;
  7151. esac
  7152. else
  7153. # PORTME Check for flag to pass linker flags through the system compiler.
  7154. case $host_os in
  7155. aix*)
  7156. lt_prog_compiler_wl='-Wl,'
  7157. if test "$host_cpu" = ia64; then
  7158. # AIX 5 now supports IA64 processor
  7159. lt_prog_compiler_static='-Bstatic'
  7160. else
  7161. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7162. fi
  7163. ;;
  7164. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7165. # This hack is so that the source file can tell whether it is being
  7166. # built for inclusion in a dll (and should export symbols for example).
  7167. lt_prog_compiler_pic='-DDLL_EXPORT'
  7168. ;;
  7169. hpux9* | hpux10* | hpux11*)
  7170. lt_prog_compiler_wl='-Wl,'
  7171. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7172. # not for PA HP-UX.
  7173. case $host_cpu in
  7174. hppa*64*|ia64*)
  7175. # +Z the default
  7176. ;;
  7177. *)
  7178. lt_prog_compiler_pic='+Z'
  7179. ;;
  7180. esac
  7181. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7182. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7183. ;;
  7184. irix5* | irix6* | nonstopux*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. # PIC (with -KPIC) is the default.
  7187. lt_prog_compiler_static='-non_shared'
  7188. ;;
  7189. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7190. case $cc_basename in
  7191. # old Intel for x86_64 which still supported -KPIC.
  7192. ecc*)
  7193. lt_prog_compiler_wl='-Wl,'
  7194. lt_prog_compiler_pic='-KPIC'
  7195. lt_prog_compiler_static='-static'
  7196. ;;
  7197. # icc used to be incompatible with GCC.
  7198. # ICC 10 doesn't accept -KPIC any more.
  7199. icc* | ifort*)
  7200. lt_prog_compiler_wl='-Wl,'
  7201. lt_prog_compiler_pic='-fPIC'
  7202. lt_prog_compiler_static='-static'
  7203. ;;
  7204. # Lahey Fortran 8.1.
  7205. lf95*)
  7206. lt_prog_compiler_wl='-Wl,'
  7207. lt_prog_compiler_pic='--shared'
  7208. lt_prog_compiler_static='--static'
  7209. ;;
  7210. nagfor*)
  7211. # NAG Fortran compiler
  7212. lt_prog_compiler_wl='-Wl,-Wl,,'
  7213. lt_prog_compiler_pic='-PIC'
  7214. lt_prog_compiler_static='-Bstatic'
  7215. ;;
  7216. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7217. # Portland Group compilers (*not* the Pentium gcc compiler,
  7218. # which looks to be a dead project)
  7219. lt_prog_compiler_wl='-Wl,'
  7220. lt_prog_compiler_pic='-fpic'
  7221. lt_prog_compiler_static='-Bstatic'
  7222. ;;
  7223. ccc*)
  7224. lt_prog_compiler_wl='-Wl,'
  7225. # All Alpha code is PIC.
  7226. lt_prog_compiler_static='-non_shared'
  7227. ;;
  7228. xl* | bgxl* | bgf* | mpixl*)
  7229. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7230. lt_prog_compiler_wl='-Wl,'
  7231. lt_prog_compiler_pic='-qpic'
  7232. lt_prog_compiler_static='-qstaticlink'
  7233. ;;
  7234. *)
  7235. case `$CC -V 2>&1 | sed 5q` in
  7236. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7237. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7238. lt_prog_compiler_pic='-KPIC'
  7239. lt_prog_compiler_static='-Bstatic'
  7240. lt_prog_compiler_wl=''
  7241. ;;
  7242. *Sun\ F* | *Sun*Fortran*)
  7243. lt_prog_compiler_pic='-KPIC'
  7244. lt_prog_compiler_static='-Bstatic'
  7245. lt_prog_compiler_wl='-Qoption ld '
  7246. ;;
  7247. *Sun\ C*)
  7248. # Sun C 5.9
  7249. lt_prog_compiler_pic='-KPIC'
  7250. lt_prog_compiler_static='-Bstatic'
  7251. lt_prog_compiler_wl='-Wl,'
  7252. ;;
  7253. *Intel*\ [CF]*Compiler*)
  7254. lt_prog_compiler_wl='-Wl,'
  7255. lt_prog_compiler_pic='-fPIC'
  7256. lt_prog_compiler_static='-static'
  7257. ;;
  7258. *Portland\ Group*)
  7259. lt_prog_compiler_wl='-Wl,'
  7260. lt_prog_compiler_pic='-fpic'
  7261. lt_prog_compiler_static='-Bstatic'
  7262. ;;
  7263. esac
  7264. ;;
  7265. esac
  7266. ;;
  7267. newsos6)
  7268. lt_prog_compiler_pic='-KPIC'
  7269. lt_prog_compiler_static='-Bstatic'
  7270. ;;
  7271. *nto* | *qnx*)
  7272. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7273. # it will coredump.
  7274. lt_prog_compiler_pic='-fPIC -shared'
  7275. ;;
  7276. osf3* | osf4* | osf5*)
  7277. lt_prog_compiler_wl='-Wl,'
  7278. # All OSF/1 code is PIC.
  7279. lt_prog_compiler_static='-non_shared'
  7280. ;;
  7281. rdos*)
  7282. lt_prog_compiler_static='-non_shared'
  7283. ;;
  7284. solaris*)
  7285. lt_prog_compiler_pic='-KPIC'
  7286. lt_prog_compiler_static='-Bstatic'
  7287. case $cc_basename in
  7288. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7289. lt_prog_compiler_wl='-Qoption ld ';;
  7290. *)
  7291. lt_prog_compiler_wl='-Wl,';;
  7292. esac
  7293. ;;
  7294. sunos4*)
  7295. lt_prog_compiler_wl='-Qoption ld '
  7296. lt_prog_compiler_pic='-PIC'
  7297. lt_prog_compiler_static='-Bstatic'
  7298. ;;
  7299. sysv4 | sysv4.2uw2* | sysv4.3*)
  7300. lt_prog_compiler_wl='-Wl,'
  7301. lt_prog_compiler_pic='-KPIC'
  7302. lt_prog_compiler_static='-Bstatic'
  7303. ;;
  7304. sysv4*MP*)
  7305. if test -d /usr/nec ;then
  7306. lt_prog_compiler_pic='-Kconform_pic'
  7307. lt_prog_compiler_static='-Bstatic'
  7308. fi
  7309. ;;
  7310. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7311. lt_prog_compiler_wl='-Wl,'
  7312. lt_prog_compiler_pic='-KPIC'
  7313. lt_prog_compiler_static='-Bstatic'
  7314. ;;
  7315. unicos*)
  7316. lt_prog_compiler_wl='-Wl,'
  7317. lt_prog_compiler_can_build_shared=no
  7318. ;;
  7319. uts4*)
  7320. lt_prog_compiler_pic='-pic'
  7321. lt_prog_compiler_static='-Bstatic'
  7322. ;;
  7323. *)
  7324. lt_prog_compiler_can_build_shared=no
  7325. ;;
  7326. esac
  7327. fi
  7328. case $host_os in
  7329. # For platforms which do not support PIC, -DPIC is meaningless:
  7330. *djgpp*)
  7331. lt_prog_compiler_pic=
  7332. ;;
  7333. *)
  7334. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  7335. ;;
  7336. esac
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7338. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7339. if ${lt_cv_prog_compiler_pic+:} false; then :
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7343. fi
  7344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7345. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7346. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7347. #
  7348. # Check to make sure the PIC flag actually works.
  7349. #
  7350. if test -n "$lt_prog_compiler_pic"; then
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7352. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7353. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7354. $as_echo_n "(cached) " >&6
  7355. else
  7356. lt_cv_prog_compiler_pic_works=no
  7357. ac_outfile=conftest.$ac_objext
  7358. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7359. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  7360. # Insert the option either (1) after the last *FLAGS variable, or
  7361. # (2) before a word containing "conftest.", or (3) at the end.
  7362. # Note that $ac_compile itself does not contain backslashes and begins
  7363. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7364. # The option is referenced via a variable to avoid confusing sed.
  7365. lt_compile=`echo "$ac_compile" | $SED \
  7366. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7367. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7368. -e 's:$: $lt_compiler_flag:'`
  7369. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7370. (eval "$lt_compile" 2>conftest.err)
  7371. ac_status=$?
  7372. cat conftest.err >&5
  7373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7374. if (exit $ac_status) && test -s "$ac_outfile"; then
  7375. # The compiler can only warn and ignore the option if not recognized
  7376. # So say no if there are warnings other than the usual output.
  7377. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7378. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7379. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7380. lt_cv_prog_compiler_pic_works=yes
  7381. fi
  7382. fi
  7383. $RM conftest*
  7384. fi
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7386. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7387. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7388. case $lt_prog_compiler_pic in
  7389. "" | " "*) ;;
  7390. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7391. esac
  7392. else
  7393. lt_prog_compiler_pic=
  7394. lt_prog_compiler_can_build_shared=no
  7395. fi
  7396. fi
  7397. #
  7398. # Check to make sure the static flag actually works.
  7399. #
  7400. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7402. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7403. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7404. $as_echo_n "(cached) " >&6
  7405. else
  7406. lt_cv_prog_compiler_static_works=no
  7407. save_LDFLAGS="$LDFLAGS"
  7408. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7409. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7410. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7411. # The linker can only warn and ignore the option if not recognized
  7412. # So say no if there are warnings
  7413. if test -s conftest.err; then
  7414. # Append any errors to the config.log.
  7415. cat conftest.err 1>&5
  7416. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7417. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7418. if diff conftest.exp conftest.er2 >/dev/null; then
  7419. lt_cv_prog_compiler_static_works=yes
  7420. fi
  7421. else
  7422. lt_cv_prog_compiler_static_works=yes
  7423. fi
  7424. fi
  7425. $RM -r conftest*
  7426. LDFLAGS="$save_LDFLAGS"
  7427. fi
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7429. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7430. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7431. :
  7432. else
  7433. lt_prog_compiler_static=
  7434. fi
  7435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7436. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7437. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7438. $as_echo_n "(cached) " >&6
  7439. else
  7440. lt_cv_prog_compiler_c_o=no
  7441. $RM -r conftest 2>/dev/null
  7442. mkdir conftest
  7443. cd conftest
  7444. mkdir out
  7445. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7446. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7447. # Insert the option either (1) after the last *FLAGS variable, or
  7448. # (2) before a word containing "conftest.", or (3) at the end.
  7449. # Note that $ac_compile itself does not contain backslashes and begins
  7450. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7451. lt_compile=`echo "$ac_compile" | $SED \
  7452. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7453. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7454. -e 's:$: $lt_compiler_flag:'`
  7455. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7456. (eval "$lt_compile" 2>out/conftest.err)
  7457. ac_status=$?
  7458. cat out/conftest.err >&5
  7459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7460. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7461. then
  7462. # The compiler can only warn and ignore the option if not recognized
  7463. # So say no if there are warnings
  7464. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7465. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7466. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7467. lt_cv_prog_compiler_c_o=yes
  7468. fi
  7469. fi
  7470. chmod u+w . 2>&5
  7471. $RM conftest*
  7472. # SGI C++ compiler will create directory out/ii_files/ for
  7473. # template instantiation
  7474. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7475. $RM out/* && rmdir out
  7476. cd ..
  7477. $RM -r conftest
  7478. $RM conftest*
  7479. fi
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7481. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7483. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7484. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7485. $as_echo_n "(cached) " >&6
  7486. else
  7487. lt_cv_prog_compiler_c_o=no
  7488. $RM -r conftest 2>/dev/null
  7489. mkdir conftest
  7490. cd conftest
  7491. mkdir out
  7492. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7493. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7494. # Insert the option either (1) after the last *FLAGS variable, or
  7495. # (2) before a word containing "conftest.", or (3) at the end.
  7496. # Note that $ac_compile itself does not contain backslashes and begins
  7497. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7498. lt_compile=`echo "$ac_compile" | $SED \
  7499. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7500. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7501. -e 's:$: $lt_compiler_flag:'`
  7502. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7503. (eval "$lt_compile" 2>out/conftest.err)
  7504. ac_status=$?
  7505. cat out/conftest.err >&5
  7506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7507. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7508. then
  7509. # The compiler can only warn and ignore the option if not recognized
  7510. # So say no if there are warnings
  7511. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7512. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7513. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7514. lt_cv_prog_compiler_c_o=yes
  7515. fi
  7516. fi
  7517. chmod u+w . 2>&5
  7518. $RM conftest*
  7519. # SGI C++ compiler will create directory out/ii_files/ for
  7520. # template instantiation
  7521. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7522. $RM out/* && rmdir out
  7523. cd ..
  7524. $RM -r conftest
  7525. $RM conftest*
  7526. fi
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7528. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7529. hard_links="nottested"
  7530. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7531. # do not overwrite the value of need_locks provided by the user
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7533. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7534. hard_links=yes
  7535. $RM conftest*
  7536. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7537. touch conftest.a
  7538. ln conftest.a conftest.b 2>&5 || hard_links=no
  7539. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7541. $as_echo "$hard_links" >&6; }
  7542. if test "$hard_links" = no; then
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7544. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7545. need_locks=warn
  7546. fi
  7547. else
  7548. need_locks=no
  7549. fi
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7551. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7552. runpath_var=
  7553. allow_undefined_flag=
  7554. always_export_symbols=no
  7555. archive_cmds=
  7556. archive_expsym_cmds=
  7557. compiler_needs_object=no
  7558. enable_shared_with_static_runtimes=no
  7559. export_dynamic_flag_spec=
  7560. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7561. hardcode_automatic=no
  7562. hardcode_direct=no
  7563. hardcode_direct_absolute=no
  7564. hardcode_libdir_flag_spec=
  7565. hardcode_libdir_separator=
  7566. hardcode_minus_L=no
  7567. hardcode_shlibpath_var=unsupported
  7568. inherit_rpath=no
  7569. link_all_deplibs=unknown
  7570. module_cmds=
  7571. module_expsym_cmds=
  7572. old_archive_from_new_cmds=
  7573. old_archive_from_expsyms_cmds=
  7574. thread_safe_flag_spec=
  7575. whole_archive_flag_spec=
  7576. # include_expsyms should be a list of space-separated symbols to be *always*
  7577. # included in the symbol list
  7578. include_expsyms=
  7579. # exclude_expsyms can be an extended regexp of symbols to exclude
  7580. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7581. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7582. # as well as any symbol that contains `d'.
  7583. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7584. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7585. # platforms (ab)use it in PIC code, but their linkers get confused if
  7586. # the symbol is explicitly referenced. Since portable code cannot
  7587. # rely on this symbol name, it's probably fine to never include it in
  7588. # preloaded symbol tables.
  7589. # Exclude shared library initialization/finalization symbols.
  7590. extract_expsyms_cmds=
  7591. case $host_os in
  7592. cygwin* | mingw* | pw32* | cegcc*)
  7593. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7594. # When not using gcc, we currently assume that we are using
  7595. # Microsoft Visual C++.
  7596. if test "$GCC" != yes; then
  7597. with_gnu_ld=no
  7598. fi
  7599. ;;
  7600. interix*)
  7601. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7602. with_gnu_ld=yes
  7603. ;;
  7604. openbsd*)
  7605. with_gnu_ld=no
  7606. ;;
  7607. linux* | k*bsd*-gnu | gnu*)
  7608. link_all_deplibs=no
  7609. ;;
  7610. esac
  7611. ld_shlibs=yes
  7612. # On some targets, GNU ld is compatible enough with the native linker
  7613. # that we're better off using the native interface for both.
  7614. lt_use_gnu_ld_interface=no
  7615. if test "$with_gnu_ld" = yes; then
  7616. case $host_os in
  7617. aix*)
  7618. # The AIX port of GNU ld has always aspired to compatibility
  7619. # with the native linker. However, as the warning in the GNU ld
  7620. # block says, versions before 2.19.5* couldn't really create working
  7621. # shared libraries, regardless of the interface used.
  7622. case `$LD -v 2>&1` in
  7623. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7624. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7625. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7626. *)
  7627. lt_use_gnu_ld_interface=yes
  7628. ;;
  7629. esac
  7630. ;;
  7631. *)
  7632. lt_use_gnu_ld_interface=yes
  7633. ;;
  7634. esac
  7635. fi
  7636. if test "$lt_use_gnu_ld_interface" = yes; then
  7637. # If archive_cmds runs LD, not CC, wlarc should be empty
  7638. wlarc='${wl}'
  7639. # Set some defaults for GNU ld with shared library support. These
  7640. # are reset later if shared libraries are not supported. Putting them
  7641. # here allows them to be overridden if necessary.
  7642. runpath_var=LD_RUN_PATH
  7643. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7644. export_dynamic_flag_spec='${wl}--export-dynamic'
  7645. # ancient GNU ld didn't support --whole-archive et. al.
  7646. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7647. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7648. else
  7649. whole_archive_flag_spec=
  7650. fi
  7651. supports_anon_versioning=no
  7652. case `$LD -v 2>&1` in
  7653. *GNU\ gold*) supports_anon_versioning=yes ;;
  7654. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7655. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7656. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7657. *\ 2.11.*) ;; # other 2.11 versions
  7658. *) supports_anon_versioning=yes ;;
  7659. esac
  7660. # See if GNU ld supports shared libraries.
  7661. case $host_os in
  7662. aix[3-9]*)
  7663. # On AIX/PPC, the GNU linker is very broken
  7664. if test "$host_cpu" != ia64; then
  7665. ld_shlibs=no
  7666. cat <<_LT_EOF 1>&2
  7667. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7668. *** to be unable to reliably create shared libraries on AIX.
  7669. *** Therefore, libtool is disabling shared libraries support. If you
  7670. *** really care for shared libraries, you may want to install binutils
  7671. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7672. *** You will then need to restart the configuration process.
  7673. _LT_EOF
  7674. fi
  7675. ;;
  7676. amigaos*)
  7677. case $host_cpu in
  7678. powerpc)
  7679. # see comment about AmigaOS4 .so support
  7680. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7681. archive_expsym_cmds=''
  7682. ;;
  7683. m68k)
  7684. 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)'
  7685. hardcode_libdir_flag_spec='-L$libdir'
  7686. hardcode_minus_L=yes
  7687. ;;
  7688. esac
  7689. ;;
  7690. beos*)
  7691. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7692. allow_undefined_flag=unsupported
  7693. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7694. # support --undefined. This deserves some investigation. FIXME
  7695. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7696. else
  7697. ld_shlibs=no
  7698. fi
  7699. ;;
  7700. cygwin* | mingw* | pw32* | cegcc*)
  7701. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7702. # as there is no search path for DLLs.
  7703. hardcode_libdir_flag_spec='-L$libdir'
  7704. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7705. allow_undefined_flag=unsupported
  7706. always_export_symbols=no
  7707. enable_shared_with_static_runtimes=yes
  7708. 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'
  7709. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7710. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7711. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7712. # If the export-symbols file already is a .def file (1st line
  7713. # is EXPORTS), use it as is; otherwise, prepend...
  7714. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7715. cp $export_symbols $output_objdir/$soname.def;
  7716. else
  7717. echo EXPORTS > $output_objdir/$soname.def;
  7718. cat $export_symbols >> $output_objdir/$soname.def;
  7719. fi~
  7720. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7721. else
  7722. ld_shlibs=no
  7723. fi
  7724. ;;
  7725. haiku*)
  7726. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7727. link_all_deplibs=yes
  7728. ;;
  7729. interix[3-9]*)
  7730. hardcode_direct=no
  7731. hardcode_shlibpath_var=no
  7732. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7733. export_dynamic_flag_spec='${wl}-E'
  7734. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7735. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7736. # default) and relocated if they conflict, which is a slow very memory
  7737. # consuming and fragmenting process. To avoid this, we pick a random,
  7738. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7739. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7740. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7741. 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'
  7742. ;;
  7743. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7744. tmp_diet=no
  7745. if test "$host_os" = linux-dietlibc; then
  7746. case $cc_basename in
  7747. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7748. esac
  7749. fi
  7750. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7751. && test "$tmp_diet" = no
  7752. then
  7753. tmp_addflag=' $pic_flag'
  7754. tmp_sharedflag='-shared'
  7755. case $cc_basename,$host_cpu in
  7756. pgcc*) # Portland Group C compiler
  7757. 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'
  7758. tmp_addflag=' $pic_flag'
  7759. ;;
  7760. pgf77* | pgf90* | pgf95* | pgfortran*)
  7761. # Portland Group f77 and f90 compilers
  7762. 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'
  7763. tmp_addflag=' $pic_flag -Mnomain' ;;
  7764. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7765. tmp_addflag=' -i_dynamic' ;;
  7766. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7767. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7768. ifc* | ifort*) # Intel Fortran compiler
  7769. tmp_addflag=' -nofor_main' ;;
  7770. lf95*) # Lahey Fortran 8.1
  7771. whole_archive_flag_spec=
  7772. tmp_sharedflag='--shared' ;;
  7773. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7774. tmp_sharedflag='-qmkshrobj'
  7775. tmp_addflag= ;;
  7776. nvcc*) # Cuda Compiler Driver 2.2
  7777. 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'
  7778. compiler_needs_object=yes
  7779. ;;
  7780. esac
  7781. case `$CC -V 2>&1 | sed 5q` in
  7782. *Sun\ C*) # Sun C 5.9
  7783. 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'
  7784. compiler_needs_object=yes
  7785. tmp_sharedflag='-G' ;;
  7786. *Sun\ F*) # Sun Fortran 8.3
  7787. tmp_sharedflag='-G' ;;
  7788. esac
  7789. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7790. if test "x$supports_anon_versioning" = xyes; then
  7791. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7792. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7793. echo "local: *; };" >> $output_objdir/$libname.ver~
  7794. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7795. fi
  7796. case $cc_basename in
  7797. xlf* | bgf* | bgxlf* | mpixlf*)
  7798. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7799. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7800. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7801. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7802. if test "x$supports_anon_versioning" = xyes; then
  7803. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7804. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7805. echo "local: *; };" >> $output_objdir/$libname.ver~
  7806. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7807. fi
  7808. ;;
  7809. esac
  7810. else
  7811. ld_shlibs=no
  7812. fi
  7813. ;;
  7814. netbsd* | netbsdelf*-gnu)
  7815. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7816. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7817. wlarc=
  7818. else
  7819. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7820. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7821. fi
  7822. ;;
  7823. solaris*)
  7824. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7825. ld_shlibs=no
  7826. cat <<_LT_EOF 1>&2
  7827. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7828. *** create shared libraries on Solaris systems. Therefore, libtool
  7829. *** is disabling shared libraries support. We urge you to upgrade GNU
  7830. *** binutils to release 2.9.1 or newer. Another option is to modify
  7831. *** your PATH or compiler configuration so that the native linker is
  7832. *** used, and then restart.
  7833. _LT_EOF
  7834. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7835. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7836. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7837. else
  7838. ld_shlibs=no
  7839. fi
  7840. ;;
  7841. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7842. case `$LD -v 2>&1` in
  7843. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7844. ld_shlibs=no
  7845. cat <<_LT_EOF 1>&2
  7846. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7847. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7848. *** is disabling shared libraries support. We urge you to upgrade GNU
  7849. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7850. *** your PATH or compiler configuration so that the native linker is
  7851. *** used, and then restart.
  7852. _LT_EOF
  7853. ;;
  7854. *)
  7855. # For security reasons, it is highly recommended that you always
  7856. # use absolute paths for naming shared libraries, and exclude the
  7857. # DT_RUNPATH tag from executables and libraries. But doing so
  7858. # requires that you compile everything twice, which is a pain.
  7859. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7860. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7861. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7862. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7863. else
  7864. ld_shlibs=no
  7865. fi
  7866. ;;
  7867. esac
  7868. ;;
  7869. sunos4*)
  7870. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7871. wlarc=
  7872. hardcode_direct=yes
  7873. hardcode_shlibpath_var=no
  7874. ;;
  7875. *)
  7876. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7877. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7878. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7879. else
  7880. ld_shlibs=no
  7881. fi
  7882. ;;
  7883. esac
  7884. if test "$ld_shlibs" = no; then
  7885. runpath_var=
  7886. hardcode_libdir_flag_spec=
  7887. export_dynamic_flag_spec=
  7888. whole_archive_flag_spec=
  7889. fi
  7890. else
  7891. # PORTME fill in a description of your system's linker (not GNU ld)
  7892. case $host_os in
  7893. aix3*)
  7894. allow_undefined_flag=unsupported
  7895. always_export_symbols=yes
  7896. 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'
  7897. # Note: this linker hardcodes the directories in LIBPATH if there
  7898. # are no directories specified by -L.
  7899. hardcode_minus_L=yes
  7900. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7901. # Neither direct hardcoding nor static linking is supported with a
  7902. # broken collect2.
  7903. hardcode_direct=unsupported
  7904. fi
  7905. ;;
  7906. aix[4-9]*)
  7907. if test "$host_cpu" = ia64; then
  7908. # On IA64, the linker does run time linking by default, so we don't
  7909. # have to do anything special.
  7910. aix_use_runtimelinking=no
  7911. exp_sym_flag='-Bexport'
  7912. no_entry_flag=""
  7913. else
  7914. # If we're using GNU nm, then we don't want the "-C" option.
  7915. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7916. # Also, AIX nm treats weak defined symbols like other global
  7917. # defined symbols, whereas GNU nm marks them as "W".
  7918. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7919. 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'
  7920. else
  7921. 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'
  7922. fi
  7923. aix_use_runtimelinking=no
  7924. # Test if we are trying to use run time linking or normal
  7925. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7926. # need to do runtime linking.
  7927. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7928. for ld_flag in $LDFLAGS; do
  7929. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7930. aix_use_runtimelinking=yes
  7931. break
  7932. fi
  7933. done
  7934. ;;
  7935. esac
  7936. exp_sym_flag='-bexport'
  7937. no_entry_flag='-bnoentry'
  7938. fi
  7939. # When large executables or shared objects are built, AIX ld can
  7940. # have problems creating the table of contents. If linking a library
  7941. # or program results in "error TOC overflow" add -mminimal-toc to
  7942. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7943. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7944. archive_cmds=''
  7945. hardcode_direct=yes
  7946. hardcode_direct_absolute=yes
  7947. hardcode_libdir_separator=':'
  7948. link_all_deplibs=yes
  7949. file_list_spec='${wl}-f,'
  7950. if test "$GCC" = yes; then
  7951. case $host_os in aix4.[012]|aix4.[012].*)
  7952. # We only want to do this on AIX 4.2 and lower, the check
  7953. # below for broken collect2 doesn't work under 4.3+
  7954. collect2name=`${CC} -print-prog-name=collect2`
  7955. if test -f "$collect2name" &&
  7956. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7957. then
  7958. # We have reworked collect2
  7959. :
  7960. else
  7961. # We have old collect2
  7962. hardcode_direct=unsupported
  7963. # It fails to find uninstalled libraries when the uninstalled
  7964. # path is not listed in the libpath. Setting hardcode_minus_L
  7965. # to unsupported forces relinking
  7966. hardcode_minus_L=yes
  7967. hardcode_libdir_flag_spec='-L$libdir'
  7968. hardcode_libdir_separator=
  7969. fi
  7970. ;;
  7971. esac
  7972. shared_flag='-shared'
  7973. if test "$aix_use_runtimelinking" = yes; then
  7974. shared_flag="$shared_flag "'${wl}-G'
  7975. fi
  7976. link_all_deplibs=no
  7977. else
  7978. # not using gcc
  7979. if test "$host_cpu" = ia64; then
  7980. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7981. # chokes on -Wl,-G. The following line is correct:
  7982. shared_flag='-G'
  7983. else
  7984. if test "$aix_use_runtimelinking" = yes; then
  7985. shared_flag='${wl}-G'
  7986. else
  7987. shared_flag='${wl}-bM:SRE'
  7988. fi
  7989. fi
  7990. fi
  7991. export_dynamic_flag_spec='${wl}-bexpall'
  7992. # It seems that -bexpall does not export symbols beginning with
  7993. # underscore (_), so it is better to generate a list of symbols to export.
  7994. always_export_symbols=yes
  7995. if test "$aix_use_runtimelinking" = yes; then
  7996. # Warning - without using the other runtime loading flags (-brtl),
  7997. # -berok will link without error, but may produce a broken library.
  7998. allow_undefined_flag='-berok'
  7999. # Determine the default libpath from the value encoded in an
  8000. # empty executable.
  8001. if test "${lt_cv_aix_libpath+set}" = set; then
  8002. aix_libpath=$lt_cv_aix_libpath
  8003. else
  8004. if ${lt_cv_aix_libpath_+:} false; then :
  8005. $as_echo_n "(cached) " >&6
  8006. else
  8007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8008. /* end confdefs.h. */
  8009. int
  8010. main ()
  8011. {
  8012. ;
  8013. return 0;
  8014. }
  8015. _ACEOF
  8016. if ac_fn_c_try_link "$LINENO"; then :
  8017. lt_aix_libpath_sed='
  8018. /Import File Strings/,/^$/ {
  8019. /^0/ {
  8020. s/^0 *\([^ ]*\) *$/\1/
  8021. p
  8022. }
  8023. }'
  8024. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8025. # Check for a 64-bit object if we didn't find anything.
  8026. if test -z "$lt_cv_aix_libpath_"; then
  8027. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8028. fi
  8029. fi
  8030. rm -f core conftest.err conftest.$ac_objext \
  8031. conftest$ac_exeext conftest.$ac_ext
  8032. if test -z "$lt_cv_aix_libpath_"; then
  8033. lt_cv_aix_libpath_="/usr/lib:/lib"
  8034. fi
  8035. fi
  8036. aix_libpath=$lt_cv_aix_libpath_
  8037. fi
  8038. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8039. 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"
  8040. else
  8041. if test "$host_cpu" = ia64; then
  8042. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8043. allow_undefined_flag="-z nodefs"
  8044. 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"
  8045. else
  8046. # Determine the default libpath from the value encoded in an
  8047. # empty executable.
  8048. if test "${lt_cv_aix_libpath+set}" = set; then
  8049. aix_libpath=$lt_cv_aix_libpath
  8050. else
  8051. if ${lt_cv_aix_libpath_+:} false; then :
  8052. $as_echo_n "(cached) " >&6
  8053. else
  8054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8055. /* end confdefs.h. */
  8056. int
  8057. main ()
  8058. {
  8059. ;
  8060. return 0;
  8061. }
  8062. _ACEOF
  8063. if ac_fn_c_try_link "$LINENO"; then :
  8064. lt_aix_libpath_sed='
  8065. /Import File Strings/,/^$/ {
  8066. /^0/ {
  8067. s/^0 *\([^ ]*\) *$/\1/
  8068. p
  8069. }
  8070. }'
  8071. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8072. # Check for a 64-bit object if we didn't find anything.
  8073. if test -z "$lt_cv_aix_libpath_"; then
  8074. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8075. fi
  8076. fi
  8077. rm -f core conftest.err conftest.$ac_objext \
  8078. conftest$ac_exeext conftest.$ac_ext
  8079. if test -z "$lt_cv_aix_libpath_"; then
  8080. lt_cv_aix_libpath_="/usr/lib:/lib"
  8081. fi
  8082. fi
  8083. aix_libpath=$lt_cv_aix_libpath_
  8084. fi
  8085. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8086. # Warning - without using the other run time loading flags,
  8087. # -berok will link without error, but may produce a broken library.
  8088. no_undefined_flag=' ${wl}-bernotok'
  8089. allow_undefined_flag=' ${wl}-berok'
  8090. if test "$with_gnu_ld" = yes; then
  8091. # We only use this code for GNU lds that support --whole-archive.
  8092. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8093. else
  8094. # Exported symbols can be pulled into shared objects from archives
  8095. whole_archive_flag_spec='$convenience'
  8096. fi
  8097. archive_cmds_need_lc=yes
  8098. # This is similar to how AIX traditionally builds its shared libraries.
  8099. 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'
  8100. fi
  8101. fi
  8102. ;;
  8103. amigaos*)
  8104. case $host_cpu in
  8105. powerpc)
  8106. # see comment about AmigaOS4 .so support
  8107. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8108. archive_expsym_cmds=''
  8109. ;;
  8110. m68k)
  8111. 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)'
  8112. hardcode_libdir_flag_spec='-L$libdir'
  8113. hardcode_minus_L=yes
  8114. ;;
  8115. esac
  8116. ;;
  8117. bsdi[45]*)
  8118. export_dynamic_flag_spec=-rdynamic
  8119. ;;
  8120. cygwin* | mingw* | pw32* | cegcc*)
  8121. # When not using gcc, we currently assume that we are using
  8122. # Microsoft Visual C++.
  8123. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8124. # no search path for DLLs.
  8125. case $cc_basename in
  8126. cl*)
  8127. # Native MSVC
  8128. hardcode_libdir_flag_spec=' '
  8129. allow_undefined_flag=unsupported
  8130. always_export_symbols=yes
  8131. file_list_spec='@'
  8132. # Tell ltmain to make .lib files, not .a files.
  8133. libext=lib
  8134. # Tell ltmain to make .dll files, not .so files.
  8135. shrext_cmds=".dll"
  8136. # FIXME: Setting linknames here is a bad hack.
  8137. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8138. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8139. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8140. else
  8141. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8142. fi~
  8143. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8144. linknames='
  8145. # The linker will not automatically build a static lib if we build a DLL.
  8146. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8147. enable_shared_with_static_runtimes=yes
  8148. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8149. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8150. # Don't use ranlib
  8151. old_postinstall_cmds='chmod 644 $oldlib'
  8152. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8153. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8154. case $lt_outputfile in
  8155. *.exe|*.EXE) ;;
  8156. *)
  8157. lt_outputfile="$lt_outputfile.exe"
  8158. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8159. ;;
  8160. esac~
  8161. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8162. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8163. $RM "$lt_outputfile.manifest";
  8164. fi'
  8165. ;;
  8166. *)
  8167. # Assume MSVC wrapper
  8168. hardcode_libdir_flag_spec=' '
  8169. allow_undefined_flag=unsupported
  8170. # Tell ltmain to make .lib files, not .a files.
  8171. libext=lib
  8172. # Tell ltmain to make .dll files, not .so files.
  8173. shrext_cmds=".dll"
  8174. # FIXME: Setting linknames here is a bad hack.
  8175. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8176. # The linker will automatically build a .lib file if we build a DLL.
  8177. old_archive_from_new_cmds='true'
  8178. # FIXME: Should let the user specify the lib program.
  8179. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8180. enable_shared_with_static_runtimes=yes
  8181. ;;
  8182. esac
  8183. ;;
  8184. darwin* | rhapsody*)
  8185. archive_cmds_need_lc=no
  8186. hardcode_direct=no
  8187. hardcode_automatic=yes
  8188. hardcode_shlibpath_var=unsupported
  8189. if test "$lt_cv_ld_force_load" = "yes"; then
  8190. 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\"`'
  8191. else
  8192. whole_archive_flag_spec=''
  8193. fi
  8194. link_all_deplibs=yes
  8195. allow_undefined_flag="$_lt_dar_allow_undefined"
  8196. case $cc_basename in
  8197. ifort*) _lt_dar_can_shared=yes ;;
  8198. *) _lt_dar_can_shared=$GCC ;;
  8199. esac
  8200. if test "$_lt_dar_can_shared" = "yes"; then
  8201. output_verbose_link_cmd=func_echo_all
  8202. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8203. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8204. 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}"
  8205. 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}"
  8206. else
  8207. ld_shlibs=no
  8208. fi
  8209. ;;
  8210. dgux*)
  8211. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8212. hardcode_libdir_flag_spec='-L$libdir'
  8213. hardcode_shlibpath_var=no
  8214. ;;
  8215. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8216. # support. Future versions do this automatically, but an explicit c++rt0.o
  8217. # does not break anything, and helps significantly (at the cost of a little
  8218. # extra space).
  8219. freebsd2.2*)
  8220. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8221. hardcode_libdir_flag_spec='-R$libdir'
  8222. hardcode_direct=yes
  8223. hardcode_shlibpath_var=no
  8224. ;;
  8225. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8226. freebsd2.*)
  8227. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8228. hardcode_direct=yes
  8229. hardcode_minus_L=yes
  8230. hardcode_shlibpath_var=no
  8231. ;;
  8232. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8233. freebsd* | dragonfly*)
  8234. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8235. hardcode_libdir_flag_spec='-R$libdir'
  8236. hardcode_direct=yes
  8237. hardcode_shlibpath_var=no
  8238. ;;
  8239. hpux9*)
  8240. if test "$GCC" = yes; then
  8241. 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'
  8242. else
  8243. 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'
  8244. fi
  8245. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8246. hardcode_libdir_separator=:
  8247. hardcode_direct=yes
  8248. # hardcode_minus_L: Not really in the search PATH,
  8249. # but as the default location of the library.
  8250. hardcode_minus_L=yes
  8251. export_dynamic_flag_spec='${wl}-E'
  8252. ;;
  8253. hpux10*)
  8254. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8255. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8256. else
  8257. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8258. fi
  8259. if test "$with_gnu_ld" = no; then
  8260. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8261. hardcode_libdir_separator=:
  8262. hardcode_direct=yes
  8263. hardcode_direct_absolute=yes
  8264. export_dynamic_flag_spec='${wl}-E'
  8265. # hardcode_minus_L: Not really in the search PATH,
  8266. # but as the default location of the library.
  8267. hardcode_minus_L=yes
  8268. fi
  8269. ;;
  8270. hpux11*)
  8271. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8272. case $host_cpu in
  8273. hppa*64*)
  8274. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8275. ;;
  8276. ia64*)
  8277. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8278. ;;
  8279. *)
  8280. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8281. ;;
  8282. esac
  8283. else
  8284. case $host_cpu in
  8285. hppa*64*)
  8286. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8287. ;;
  8288. ia64*)
  8289. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8290. ;;
  8291. *)
  8292. # Older versions of the 11.00 compiler do not understand -b yet
  8293. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8295. $as_echo_n "checking if $CC understands -b... " >&6; }
  8296. if ${lt_cv_prog_compiler__b+:} false; then :
  8297. $as_echo_n "(cached) " >&6
  8298. else
  8299. lt_cv_prog_compiler__b=no
  8300. save_LDFLAGS="$LDFLAGS"
  8301. LDFLAGS="$LDFLAGS -b"
  8302. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8303. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8304. # The linker can only warn and ignore the option if not recognized
  8305. # So say no if there are warnings
  8306. if test -s conftest.err; then
  8307. # Append any errors to the config.log.
  8308. cat conftest.err 1>&5
  8309. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8310. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8311. if diff conftest.exp conftest.er2 >/dev/null; then
  8312. lt_cv_prog_compiler__b=yes
  8313. fi
  8314. else
  8315. lt_cv_prog_compiler__b=yes
  8316. fi
  8317. fi
  8318. $RM -r conftest*
  8319. LDFLAGS="$save_LDFLAGS"
  8320. fi
  8321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8322. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8323. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8324. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8325. else
  8326. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8327. fi
  8328. ;;
  8329. esac
  8330. fi
  8331. if test "$with_gnu_ld" = no; then
  8332. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8333. hardcode_libdir_separator=:
  8334. case $host_cpu in
  8335. hppa*64*|ia64*)
  8336. hardcode_direct=no
  8337. hardcode_shlibpath_var=no
  8338. ;;
  8339. *)
  8340. hardcode_direct=yes
  8341. hardcode_direct_absolute=yes
  8342. export_dynamic_flag_spec='${wl}-E'
  8343. # hardcode_minus_L: Not really in the search PATH,
  8344. # but as the default location of the library.
  8345. hardcode_minus_L=yes
  8346. ;;
  8347. esac
  8348. fi
  8349. ;;
  8350. irix5* | irix6* | nonstopux*)
  8351. if test "$GCC" = yes; then
  8352. 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'
  8353. # Try to use the -exported_symbol ld option, if it does not
  8354. # work, assume that -exports_file does not work either and
  8355. # implicitly export all symbols.
  8356. # This should be the same for all languages, so no per-tag cache variable.
  8357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8358. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8359. if ${lt_cv_irix_exported_symbol+:} false; then :
  8360. $as_echo_n "(cached) " >&6
  8361. else
  8362. save_LDFLAGS="$LDFLAGS"
  8363. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8365. /* end confdefs.h. */
  8366. int foo (void) { return 0; }
  8367. _ACEOF
  8368. if ac_fn_c_try_link "$LINENO"; then :
  8369. lt_cv_irix_exported_symbol=yes
  8370. else
  8371. lt_cv_irix_exported_symbol=no
  8372. fi
  8373. rm -f core conftest.err conftest.$ac_objext \
  8374. conftest$ac_exeext conftest.$ac_ext
  8375. LDFLAGS="$save_LDFLAGS"
  8376. fi
  8377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8378. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8379. if test "$lt_cv_irix_exported_symbol" = yes; then
  8380. 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'
  8381. fi
  8382. else
  8383. 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'
  8384. 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'
  8385. fi
  8386. archive_cmds_need_lc='no'
  8387. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8388. hardcode_libdir_separator=:
  8389. inherit_rpath=yes
  8390. link_all_deplibs=yes
  8391. ;;
  8392. netbsd* | netbsdelf*-gnu)
  8393. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8394. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8395. else
  8396. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8397. fi
  8398. hardcode_libdir_flag_spec='-R$libdir'
  8399. hardcode_direct=yes
  8400. hardcode_shlibpath_var=no
  8401. ;;
  8402. newsos6)
  8403. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8404. hardcode_direct=yes
  8405. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8406. hardcode_libdir_separator=:
  8407. hardcode_shlibpath_var=no
  8408. ;;
  8409. *nto* | *qnx*)
  8410. ;;
  8411. openbsd*)
  8412. if test -f /usr/libexec/ld.so; then
  8413. hardcode_direct=yes
  8414. hardcode_shlibpath_var=no
  8415. hardcode_direct_absolute=yes
  8416. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8417. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8418. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8419. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8420. export_dynamic_flag_spec='${wl}-E'
  8421. else
  8422. case $host_os in
  8423. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8424. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8425. hardcode_libdir_flag_spec='-R$libdir'
  8426. ;;
  8427. *)
  8428. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8429. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8430. ;;
  8431. esac
  8432. fi
  8433. else
  8434. ld_shlibs=no
  8435. fi
  8436. ;;
  8437. os2*)
  8438. hardcode_libdir_flag_spec='-L$libdir'
  8439. hardcode_minus_L=yes
  8440. allow_undefined_flag=unsupported
  8441. 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'
  8442. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8443. ;;
  8444. osf3*)
  8445. if test "$GCC" = yes; then
  8446. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8447. 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'
  8448. else
  8449. allow_undefined_flag=' -expect_unresolved \*'
  8450. 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'
  8451. fi
  8452. archive_cmds_need_lc='no'
  8453. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8454. hardcode_libdir_separator=:
  8455. ;;
  8456. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8457. if test "$GCC" = yes; then
  8458. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8459. 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'
  8460. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8461. else
  8462. allow_undefined_flag=' -expect_unresolved \*'
  8463. 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'
  8464. 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~
  8465. $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'
  8466. # Both c and cxx compiler support -rpath directly
  8467. hardcode_libdir_flag_spec='-rpath $libdir'
  8468. fi
  8469. archive_cmds_need_lc='no'
  8470. hardcode_libdir_separator=:
  8471. ;;
  8472. solaris*)
  8473. no_undefined_flag=' -z defs'
  8474. if test "$GCC" = yes; then
  8475. wlarc='${wl}'
  8476. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8477. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8478. $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'
  8479. else
  8480. case `$CC -V 2>&1` in
  8481. *"Compilers 5.0"*)
  8482. wlarc=''
  8483. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8484. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8485. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8486. ;;
  8487. *)
  8488. wlarc='${wl}'
  8489. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8490. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8491. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8492. ;;
  8493. esac
  8494. fi
  8495. hardcode_libdir_flag_spec='-R$libdir'
  8496. hardcode_shlibpath_var=no
  8497. case $host_os in
  8498. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8499. *)
  8500. # The compiler driver will combine and reorder linker options,
  8501. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8502. # but is careful enough not to reorder.
  8503. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8504. if test "$GCC" = yes; then
  8505. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8506. else
  8507. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8508. fi
  8509. ;;
  8510. esac
  8511. link_all_deplibs=yes
  8512. ;;
  8513. sunos4*)
  8514. if test "x$host_vendor" = xsequent; then
  8515. # Use $CC to link under sequent, because it throws in some extra .o
  8516. # files that make .init and .fini sections work.
  8517. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8518. else
  8519. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8520. fi
  8521. hardcode_libdir_flag_spec='-L$libdir'
  8522. hardcode_direct=yes
  8523. hardcode_minus_L=yes
  8524. hardcode_shlibpath_var=no
  8525. ;;
  8526. sysv4)
  8527. case $host_vendor in
  8528. sni)
  8529. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8530. hardcode_direct=yes # is this really true???
  8531. ;;
  8532. siemens)
  8533. ## LD is ld it makes a PLAMLIB
  8534. ## CC just makes a GrossModule.
  8535. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8536. reload_cmds='$CC -r -o $output$reload_objs'
  8537. hardcode_direct=no
  8538. ;;
  8539. motorola)
  8540. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8541. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8542. ;;
  8543. esac
  8544. runpath_var='LD_RUN_PATH'
  8545. hardcode_shlibpath_var=no
  8546. ;;
  8547. sysv4.3*)
  8548. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8549. hardcode_shlibpath_var=no
  8550. export_dynamic_flag_spec='-Bexport'
  8551. ;;
  8552. sysv4*MP*)
  8553. if test -d /usr/nec; then
  8554. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8555. hardcode_shlibpath_var=no
  8556. runpath_var=LD_RUN_PATH
  8557. hardcode_runpath_var=yes
  8558. ld_shlibs=yes
  8559. fi
  8560. ;;
  8561. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8562. no_undefined_flag='${wl}-z,text'
  8563. archive_cmds_need_lc=no
  8564. hardcode_shlibpath_var=no
  8565. runpath_var='LD_RUN_PATH'
  8566. if test "$GCC" = yes; then
  8567. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8568. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8569. else
  8570. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8571. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8572. fi
  8573. ;;
  8574. sysv5* | sco3.2v5* | sco5v6*)
  8575. # Note: We can NOT use -z defs as we might desire, because we do not
  8576. # link with -lc, and that would cause any symbols used from libc to
  8577. # always be unresolved, which means just about no library would
  8578. # ever link correctly. If we're not using GNU ld we use -z text
  8579. # though, which does catch some bad symbols but isn't as heavy-handed
  8580. # as -z defs.
  8581. no_undefined_flag='${wl}-z,text'
  8582. allow_undefined_flag='${wl}-z,nodefs'
  8583. archive_cmds_need_lc=no
  8584. hardcode_shlibpath_var=no
  8585. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8586. hardcode_libdir_separator=':'
  8587. link_all_deplibs=yes
  8588. export_dynamic_flag_spec='${wl}-Bexport'
  8589. runpath_var='LD_RUN_PATH'
  8590. if test "$GCC" = yes; then
  8591. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8592. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8593. else
  8594. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8595. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8596. fi
  8597. ;;
  8598. uts4*)
  8599. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8600. hardcode_libdir_flag_spec='-L$libdir'
  8601. hardcode_shlibpath_var=no
  8602. ;;
  8603. *)
  8604. ld_shlibs=no
  8605. ;;
  8606. esac
  8607. if test x$host_vendor = xsni; then
  8608. case $host in
  8609. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8610. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8611. ;;
  8612. esac
  8613. fi
  8614. fi
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8616. $as_echo "$ld_shlibs" >&6; }
  8617. test "$ld_shlibs" = no && can_build_shared=no
  8618. with_gnu_ld=$with_gnu_ld
  8619. #
  8620. # Do we need to explicitly link libc?
  8621. #
  8622. case "x$archive_cmds_need_lc" in
  8623. x|xyes)
  8624. # Assume -lc should be added
  8625. archive_cmds_need_lc=yes
  8626. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8627. case $archive_cmds in
  8628. *'~'*)
  8629. # FIXME: we may have to deal with multi-command sequences.
  8630. ;;
  8631. '$CC '*)
  8632. # Test whether the compiler implicitly links with -lc since on some
  8633. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8634. # to ld, don't add -lc before -lgcc.
  8635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8636. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8637. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8638. $as_echo_n "(cached) " >&6
  8639. else
  8640. $RM conftest*
  8641. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8642. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8643. (eval $ac_compile) 2>&5
  8644. ac_status=$?
  8645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8646. test $ac_status = 0; } 2>conftest.err; then
  8647. soname=conftest
  8648. lib=conftest
  8649. libobjs=conftest.$ac_objext
  8650. deplibs=
  8651. wl=$lt_prog_compiler_wl
  8652. pic_flag=$lt_prog_compiler_pic
  8653. compiler_flags=-v
  8654. linker_flags=-v
  8655. verstring=
  8656. output_objdir=.
  8657. libname=conftest
  8658. lt_save_allow_undefined_flag=$allow_undefined_flag
  8659. allow_undefined_flag=
  8660. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8661. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8662. ac_status=$?
  8663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8664. test $ac_status = 0; }
  8665. then
  8666. lt_cv_archive_cmds_need_lc=no
  8667. else
  8668. lt_cv_archive_cmds_need_lc=yes
  8669. fi
  8670. allow_undefined_flag=$lt_save_allow_undefined_flag
  8671. else
  8672. cat conftest.err 1>&5
  8673. fi
  8674. $RM conftest*
  8675. fi
  8676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8677. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8678. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8679. ;;
  8680. esac
  8681. fi
  8682. ;;
  8683. esac
  8684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8685. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8686. if test "$GCC" = yes; then
  8687. case $host_os in
  8688. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8689. *) lt_awk_arg="/^libraries:/" ;;
  8690. esac
  8691. case $host_os in
  8692. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8693. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8694. esac
  8695. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8696. case $lt_search_path_spec in
  8697. *\;*)
  8698. # if the path contains ";" then we assume it to be the separator
  8699. # otherwise default to the standard path separator (i.e. ":") - it is
  8700. # assumed that no part of a normal pathname contains ";" but that should
  8701. # okay in the real world where ";" in dirpaths is itself problematic.
  8702. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8703. ;;
  8704. *)
  8705. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8706. ;;
  8707. esac
  8708. # Ok, now we have the path, separated by spaces, we can step through it
  8709. # and add multilib dir if necessary.
  8710. lt_tmp_lt_search_path_spec=
  8711. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8712. for lt_sys_path in $lt_search_path_spec; do
  8713. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8714. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8715. else
  8716. test -d "$lt_sys_path" && \
  8717. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8718. fi
  8719. done
  8720. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8721. BEGIN {RS=" "; FS="/|\n";} {
  8722. lt_foo="";
  8723. lt_count=0;
  8724. for (lt_i = NF; lt_i > 0; lt_i--) {
  8725. if ($lt_i != "" && $lt_i != ".") {
  8726. if ($lt_i == "..") {
  8727. lt_count++;
  8728. } else {
  8729. if (lt_count == 0) {
  8730. lt_foo="/" $lt_i lt_foo;
  8731. } else {
  8732. lt_count--;
  8733. }
  8734. }
  8735. }
  8736. }
  8737. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8738. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8739. }'`
  8740. # AWK program above erroneously prepends '/' to C:/dos/paths
  8741. # for these hosts.
  8742. case $host_os in
  8743. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8744. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8745. esac
  8746. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8747. else
  8748. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8749. fi
  8750. library_names_spec=
  8751. libname_spec='lib$name'
  8752. soname_spec=
  8753. shrext_cmds=".so"
  8754. postinstall_cmds=
  8755. postuninstall_cmds=
  8756. finish_cmds=
  8757. finish_eval=
  8758. shlibpath_var=
  8759. shlibpath_overrides_runpath=unknown
  8760. version_type=none
  8761. dynamic_linker="$host_os ld.so"
  8762. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8763. need_lib_prefix=unknown
  8764. hardcode_into_libs=no
  8765. # when you set need_version to no, make sure it does not cause -set_version
  8766. # flags to be left without arguments
  8767. need_version=unknown
  8768. case $host_os in
  8769. aix3*)
  8770. version_type=linux # correct to gnu/linux during the next big refactor
  8771. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8772. shlibpath_var=LIBPATH
  8773. # AIX 3 has no versioning support, so we append a major version to the name.
  8774. soname_spec='${libname}${release}${shared_ext}$major'
  8775. ;;
  8776. aix[4-9]*)
  8777. version_type=linux # correct to gnu/linux during the next big refactor
  8778. need_lib_prefix=no
  8779. need_version=no
  8780. hardcode_into_libs=yes
  8781. if test "$host_cpu" = ia64; then
  8782. # AIX 5 supports IA64
  8783. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8784. shlibpath_var=LD_LIBRARY_PATH
  8785. else
  8786. # With GCC up to 2.95.x, collect2 would create an import file
  8787. # for dependence libraries. The import file would start with
  8788. # the line `#! .'. This would cause the generated library to
  8789. # depend on `.', always an invalid library. This was fixed in
  8790. # development snapshots of GCC prior to 3.0.
  8791. case $host_os in
  8792. aix4 | aix4.[01] | aix4.[01].*)
  8793. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8794. echo ' yes '
  8795. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8796. :
  8797. else
  8798. can_build_shared=no
  8799. fi
  8800. ;;
  8801. esac
  8802. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8803. # soname into executable. Probably we can add versioning support to
  8804. # collect2, so additional links can be useful in future.
  8805. if test "$aix_use_runtimelinking" = yes; then
  8806. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8807. # instead of lib<name>.a to let people know that these are not
  8808. # typical AIX shared libraries.
  8809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8810. else
  8811. # We preserve .a as extension for shared libraries through AIX4.2
  8812. # and later when we are not doing run time linking.
  8813. library_names_spec='${libname}${release}.a $libname.a'
  8814. soname_spec='${libname}${release}${shared_ext}$major'
  8815. fi
  8816. shlibpath_var=LIBPATH
  8817. fi
  8818. ;;
  8819. amigaos*)
  8820. case $host_cpu in
  8821. powerpc)
  8822. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8823. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8824. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8825. ;;
  8826. m68k)
  8827. library_names_spec='$libname.ixlibrary $libname.a'
  8828. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8829. 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'
  8830. ;;
  8831. esac
  8832. ;;
  8833. beos*)
  8834. library_names_spec='${libname}${shared_ext}'
  8835. dynamic_linker="$host_os ld.so"
  8836. shlibpath_var=LIBRARY_PATH
  8837. ;;
  8838. bsdi[45]*)
  8839. version_type=linux # correct to gnu/linux during the next big refactor
  8840. need_version=no
  8841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8842. soname_spec='${libname}${release}${shared_ext}$major'
  8843. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8844. shlibpath_var=LD_LIBRARY_PATH
  8845. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8846. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8847. # the default ld.so.conf also contains /usr/contrib/lib and
  8848. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8849. # libtool to hard-code these into programs
  8850. ;;
  8851. cygwin* | mingw* | pw32* | cegcc*)
  8852. version_type=windows
  8853. shrext_cmds=".dll"
  8854. need_version=no
  8855. need_lib_prefix=no
  8856. case $GCC,$cc_basename in
  8857. yes,*)
  8858. # gcc
  8859. library_names_spec='$libname.dll.a'
  8860. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8861. postinstall_cmds='base_file=`basename \${file}`~
  8862. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8863. dldir=$destdir/`dirname \$dlpath`~
  8864. test -d \$dldir || mkdir -p \$dldir~
  8865. $install_prog $dir/$dlname \$dldir/$dlname~
  8866. chmod a+x \$dldir/$dlname~
  8867. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8868. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8869. fi'
  8870. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8871. dlpath=$dir/\$dldll~
  8872. $RM \$dlpath'
  8873. shlibpath_overrides_runpath=yes
  8874. case $host_os in
  8875. cygwin*)
  8876. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8877. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8878. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8879. ;;
  8880. mingw* | cegcc*)
  8881. # MinGW DLLs use traditional 'lib' prefix
  8882. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8883. ;;
  8884. pw32*)
  8885. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8886. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8887. ;;
  8888. esac
  8889. dynamic_linker='Win32 ld.exe'
  8890. ;;
  8891. *,cl*)
  8892. # Native MSVC
  8893. libname_spec='$name'
  8894. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8895. library_names_spec='${libname}.dll.lib'
  8896. case $build_os in
  8897. mingw*)
  8898. sys_lib_search_path_spec=
  8899. lt_save_ifs=$IFS
  8900. IFS=';'
  8901. for lt_path in $LIB
  8902. do
  8903. IFS=$lt_save_ifs
  8904. # Let DOS variable expansion print the short 8.3 style file name.
  8905. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8906. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8907. done
  8908. IFS=$lt_save_ifs
  8909. # Convert to MSYS style.
  8910. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8911. ;;
  8912. cygwin*)
  8913. # Convert to unix form, then to dos form, then back to unix form
  8914. # but this time dos style (no spaces!) so that the unix form looks
  8915. # like /cygdrive/c/PROGRA~1:/cygdr...
  8916. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8917. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8918. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8919. ;;
  8920. *)
  8921. sys_lib_search_path_spec="$LIB"
  8922. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8923. # It is most probably a Windows format PATH.
  8924. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8925. else
  8926. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8927. fi
  8928. # FIXME: find the short name or the path components, as spaces are
  8929. # common. (e.g. "Program Files" -> "PROGRA~1")
  8930. ;;
  8931. esac
  8932. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8933. postinstall_cmds='base_file=`basename \${file}`~
  8934. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8935. dldir=$destdir/`dirname \$dlpath`~
  8936. test -d \$dldir || mkdir -p \$dldir~
  8937. $install_prog $dir/$dlname \$dldir/$dlname'
  8938. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8939. dlpath=$dir/\$dldll~
  8940. $RM \$dlpath'
  8941. shlibpath_overrides_runpath=yes
  8942. dynamic_linker='Win32 link.exe'
  8943. ;;
  8944. *)
  8945. # Assume MSVC wrapper
  8946. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8947. dynamic_linker='Win32 ld.exe'
  8948. ;;
  8949. esac
  8950. # FIXME: first we should search . and the directory the executable is in
  8951. shlibpath_var=PATH
  8952. ;;
  8953. darwin* | rhapsody*)
  8954. dynamic_linker="$host_os dyld"
  8955. version_type=darwin
  8956. need_lib_prefix=no
  8957. need_version=no
  8958. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8959. soname_spec='${libname}${release}${major}$shared_ext'
  8960. shlibpath_overrides_runpath=yes
  8961. shlibpath_var=DYLD_LIBRARY_PATH
  8962. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8963. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8964. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8965. ;;
  8966. dgux*)
  8967. version_type=linux # correct to gnu/linux during the next big refactor
  8968. need_lib_prefix=no
  8969. need_version=no
  8970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8971. soname_spec='${libname}${release}${shared_ext}$major'
  8972. shlibpath_var=LD_LIBRARY_PATH
  8973. ;;
  8974. freebsd* | dragonfly*)
  8975. # DragonFly does not have aout. When/if they implement a new
  8976. # versioning mechanism, adjust this.
  8977. if test -x /usr/bin/objformat; then
  8978. objformat=`/usr/bin/objformat`
  8979. else
  8980. case $host_os in
  8981. freebsd[23].*) objformat=aout ;;
  8982. *) objformat=elf ;;
  8983. esac
  8984. fi
  8985. version_type=freebsd-$objformat
  8986. case $version_type in
  8987. freebsd-elf*)
  8988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8989. need_version=no
  8990. need_lib_prefix=no
  8991. ;;
  8992. freebsd-*)
  8993. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8994. need_version=yes
  8995. ;;
  8996. esac
  8997. shlibpath_var=LD_LIBRARY_PATH
  8998. case $host_os in
  8999. freebsd2.*)
  9000. shlibpath_overrides_runpath=yes
  9001. ;;
  9002. freebsd3.[01]* | freebsdelf3.[01]*)
  9003. shlibpath_overrides_runpath=yes
  9004. hardcode_into_libs=yes
  9005. ;;
  9006. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9007. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9008. shlibpath_overrides_runpath=no
  9009. hardcode_into_libs=yes
  9010. ;;
  9011. *) # from 4.6 on, and DragonFly
  9012. shlibpath_overrides_runpath=yes
  9013. hardcode_into_libs=yes
  9014. ;;
  9015. esac
  9016. ;;
  9017. gnu*)
  9018. version_type=linux # correct to gnu/linux during the next big refactor
  9019. need_lib_prefix=no
  9020. need_version=no
  9021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9022. soname_spec='${libname}${release}${shared_ext}$major'
  9023. shlibpath_var=LD_LIBRARY_PATH
  9024. shlibpath_overrides_runpath=no
  9025. hardcode_into_libs=yes
  9026. ;;
  9027. haiku*)
  9028. version_type=linux # correct to gnu/linux during the next big refactor
  9029. need_lib_prefix=no
  9030. need_version=no
  9031. dynamic_linker="$host_os runtime_loader"
  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=LIBRARY_PATH
  9035. shlibpath_overrides_runpath=yes
  9036. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9037. hardcode_into_libs=yes
  9038. ;;
  9039. hpux9* | hpux10* | hpux11*)
  9040. # Give a soname corresponding to the major version so that dld.sl refuses to
  9041. # link against other versions.
  9042. version_type=sunos
  9043. need_lib_prefix=no
  9044. need_version=no
  9045. case $host_cpu in
  9046. ia64*)
  9047. shrext_cmds='.so'
  9048. hardcode_into_libs=yes
  9049. dynamic_linker="$host_os dld.so"
  9050. shlibpath_var=LD_LIBRARY_PATH
  9051. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9053. soname_spec='${libname}${release}${shared_ext}$major'
  9054. if test "X$HPUX_IA64_MODE" = X32; then
  9055. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9056. else
  9057. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9058. fi
  9059. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9060. ;;
  9061. hppa*64*)
  9062. shrext_cmds='.sl'
  9063. hardcode_into_libs=yes
  9064. dynamic_linker="$host_os dld.sl"
  9065. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9066. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9068. soname_spec='${libname}${release}${shared_ext}$major'
  9069. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9070. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9071. ;;
  9072. *)
  9073. shrext_cmds='.sl'
  9074. dynamic_linker="$host_os dld.sl"
  9075. shlibpath_var=SHLIB_PATH
  9076. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9078. soname_spec='${libname}${release}${shared_ext}$major'
  9079. ;;
  9080. esac
  9081. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9082. postinstall_cmds='chmod 555 $lib'
  9083. # or fails outright, so override atomically:
  9084. install_override_mode=555
  9085. ;;
  9086. interix[3-9]*)
  9087. version_type=linux # correct to gnu/linux during the next big refactor
  9088. need_lib_prefix=no
  9089. need_version=no
  9090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9091. soname_spec='${libname}${release}${shared_ext}$major'
  9092. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9093. shlibpath_var=LD_LIBRARY_PATH
  9094. shlibpath_overrides_runpath=no
  9095. hardcode_into_libs=yes
  9096. ;;
  9097. irix5* | irix6* | nonstopux*)
  9098. case $host_os in
  9099. nonstopux*) version_type=nonstopux ;;
  9100. *)
  9101. if test "$lt_cv_prog_gnu_ld" = yes; then
  9102. version_type=linux # correct to gnu/linux during the next big refactor
  9103. else
  9104. version_type=irix
  9105. fi ;;
  9106. esac
  9107. need_lib_prefix=no
  9108. need_version=no
  9109. soname_spec='${libname}${release}${shared_ext}$major'
  9110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9111. case $host_os in
  9112. irix5* | nonstopux*)
  9113. libsuff= shlibsuff=
  9114. ;;
  9115. *)
  9116. case $LD in # libtool.m4 will add one of these switches to LD
  9117. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9118. libsuff= shlibsuff= libmagic=32-bit;;
  9119. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9120. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9121. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9122. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9123. *) libsuff= shlibsuff= libmagic=never-match;;
  9124. esac
  9125. ;;
  9126. esac
  9127. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9128. shlibpath_overrides_runpath=no
  9129. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9130. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9131. hardcode_into_libs=yes
  9132. ;;
  9133. # No shared lib support for Linux oldld, aout, or coff.
  9134. linux*oldld* | linux*aout* | linux*coff*)
  9135. dynamic_linker=no
  9136. ;;
  9137. # This must be glibc/ELF.
  9138. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9145. shlibpath_var=LD_LIBRARY_PATH
  9146. shlibpath_overrides_runpath=no
  9147. # Some binutils ld are patched to set DT_RUNPATH
  9148. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9149. $as_echo_n "(cached) " >&6
  9150. else
  9151. lt_cv_shlibpath_overrides_runpath=no
  9152. save_LDFLAGS=$LDFLAGS
  9153. save_libdir=$libdir
  9154. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9155. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9157. /* end confdefs.h. */
  9158. int
  9159. main ()
  9160. {
  9161. ;
  9162. return 0;
  9163. }
  9164. _ACEOF
  9165. if ac_fn_c_try_link "$LINENO"; then :
  9166. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9167. lt_cv_shlibpath_overrides_runpath=yes
  9168. fi
  9169. fi
  9170. rm -f core conftest.err conftest.$ac_objext \
  9171. conftest$ac_exeext conftest.$ac_ext
  9172. LDFLAGS=$save_LDFLAGS
  9173. libdir=$save_libdir
  9174. fi
  9175. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9176. # This implies no fast_install, which is unacceptable.
  9177. # Some rework will be needed to allow for fast_install
  9178. # before this can be enabled.
  9179. hardcode_into_libs=yes
  9180. # Append ld.so.conf contents to the search path
  9181. if test -f /etc/ld.so.conf; then
  9182. 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' ' '`
  9183. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9184. fi
  9185. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9186. # powerpc, because MkLinux only supported shared libraries with the
  9187. # GNU dynamic linker. Since this was broken with cross compilers,
  9188. # most powerpc-linux boxes support dynamic linking these days and
  9189. # people can always --disable-shared, the test was removed, and we
  9190. # assume the GNU/Linux dynamic linker is in use.
  9191. dynamic_linker='GNU/Linux ld.so'
  9192. ;;
  9193. netbsdelf*-gnu)
  9194. version_type=linux
  9195. need_lib_prefix=no
  9196. need_version=no
  9197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9198. soname_spec='${libname}${release}${shared_ext}$major'
  9199. shlibpath_var=LD_LIBRARY_PATH
  9200. shlibpath_overrides_runpath=no
  9201. hardcode_into_libs=yes
  9202. dynamic_linker='NetBSD ld.elf_so'
  9203. ;;
  9204. netbsd*)
  9205. version_type=sunos
  9206. need_lib_prefix=no
  9207. need_version=no
  9208. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9210. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9211. dynamic_linker='NetBSD (a.out) ld.so'
  9212. else
  9213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9214. soname_spec='${libname}${release}${shared_ext}$major'
  9215. dynamic_linker='NetBSD ld.elf_so'
  9216. fi
  9217. shlibpath_var=LD_LIBRARY_PATH
  9218. shlibpath_overrides_runpath=yes
  9219. hardcode_into_libs=yes
  9220. ;;
  9221. newsos6)
  9222. version_type=linux # correct to gnu/linux during the next big refactor
  9223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9224. shlibpath_var=LD_LIBRARY_PATH
  9225. shlibpath_overrides_runpath=yes
  9226. ;;
  9227. *nto* | *qnx*)
  9228. version_type=qnx
  9229. need_lib_prefix=no
  9230. need_version=no
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9232. soname_spec='${libname}${release}${shared_ext}$major'
  9233. shlibpath_var=LD_LIBRARY_PATH
  9234. shlibpath_overrides_runpath=no
  9235. hardcode_into_libs=yes
  9236. dynamic_linker='ldqnx.so'
  9237. ;;
  9238. openbsd*)
  9239. version_type=sunos
  9240. sys_lib_dlsearch_path_spec="/usr/lib"
  9241. need_lib_prefix=no
  9242. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9243. case $host_os in
  9244. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9245. *) need_version=no ;;
  9246. esac
  9247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9248. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9249. shlibpath_var=LD_LIBRARY_PATH
  9250. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9251. case $host_os in
  9252. openbsd2.[89] | openbsd2.[89].*)
  9253. shlibpath_overrides_runpath=no
  9254. ;;
  9255. *)
  9256. shlibpath_overrides_runpath=yes
  9257. ;;
  9258. esac
  9259. else
  9260. shlibpath_overrides_runpath=yes
  9261. fi
  9262. ;;
  9263. os2*)
  9264. libname_spec='$name'
  9265. shrext_cmds=".dll"
  9266. need_lib_prefix=no
  9267. library_names_spec='$libname${shared_ext} $libname.a'
  9268. dynamic_linker='OS/2 ld.exe'
  9269. shlibpath_var=LIBPATH
  9270. ;;
  9271. osf3* | osf4* | osf5*)
  9272. version_type=osf
  9273. need_lib_prefix=no
  9274. need_version=no
  9275. soname_spec='${libname}${release}${shared_ext}$major'
  9276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9277. shlibpath_var=LD_LIBRARY_PATH
  9278. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9279. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9280. ;;
  9281. rdos*)
  9282. dynamic_linker=no
  9283. ;;
  9284. solaris*)
  9285. version_type=linux # correct to gnu/linux during the next big refactor
  9286. need_lib_prefix=no
  9287. need_version=no
  9288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9289. soname_spec='${libname}${release}${shared_ext}$major'
  9290. shlibpath_var=LD_LIBRARY_PATH
  9291. shlibpath_overrides_runpath=yes
  9292. hardcode_into_libs=yes
  9293. # ldd complains unless libraries are executable
  9294. postinstall_cmds='chmod +x $lib'
  9295. ;;
  9296. sunos4*)
  9297. version_type=sunos
  9298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9299. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9300. shlibpath_var=LD_LIBRARY_PATH
  9301. shlibpath_overrides_runpath=yes
  9302. if test "$with_gnu_ld" = yes; then
  9303. need_lib_prefix=no
  9304. fi
  9305. need_version=yes
  9306. ;;
  9307. sysv4 | sysv4.3*)
  9308. version_type=linux # correct to gnu/linux during the next big refactor
  9309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9310. soname_spec='${libname}${release}${shared_ext}$major'
  9311. shlibpath_var=LD_LIBRARY_PATH
  9312. case $host_vendor in
  9313. sni)
  9314. shlibpath_overrides_runpath=no
  9315. need_lib_prefix=no
  9316. runpath_var=LD_RUN_PATH
  9317. ;;
  9318. siemens)
  9319. need_lib_prefix=no
  9320. ;;
  9321. motorola)
  9322. need_lib_prefix=no
  9323. need_version=no
  9324. shlibpath_overrides_runpath=no
  9325. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9326. ;;
  9327. esac
  9328. ;;
  9329. sysv4*MP*)
  9330. if test -d /usr/nec ;then
  9331. version_type=linux # correct to gnu/linux during the next big refactor
  9332. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9333. soname_spec='$libname${shared_ext}.$major'
  9334. shlibpath_var=LD_LIBRARY_PATH
  9335. fi
  9336. ;;
  9337. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9338. version_type=freebsd-elf
  9339. need_lib_prefix=no
  9340. need_version=no
  9341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9342. soname_spec='${libname}${release}${shared_ext}$major'
  9343. shlibpath_var=LD_LIBRARY_PATH
  9344. shlibpath_overrides_runpath=yes
  9345. hardcode_into_libs=yes
  9346. if test "$with_gnu_ld" = yes; then
  9347. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9348. else
  9349. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9350. case $host_os in
  9351. sco3.2v5*)
  9352. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9353. ;;
  9354. esac
  9355. fi
  9356. sys_lib_dlsearch_path_spec='/usr/lib'
  9357. ;;
  9358. tpf*)
  9359. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9360. version_type=linux # correct to gnu/linux during the next big refactor
  9361. need_lib_prefix=no
  9362. need_version=no
  9363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9364. shlibpath_var=LD_LIBRARY_PATH
  9365. shlibpath_overrides_runpath=no
  9366. hardcode_into_libs=yes
  9367. ;;
  9368. uts4*)
  9369. version_type=linux # correct to gnu/linux during the next big refactor
  9370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9371. soname_spec='${libname}${release}${shared_ext}$major'
  9372. shlibpath_var=LD_LIBRARY_PATH
  9373. ;;
  9374. *)
  9375. dynamic_linker=no
  9376. ;;
  9377. esac
  9378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9379. $as_echo "$dynamic_linker" >&6; }
  9380. test "$dynamic_linker" = no && can_build_shared=no
  9381. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9382. if test "$GCC" = yes; then
  9383. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9384. fi
  9385. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9386. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9387. fi
  9388. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9389. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9390. fi
  9391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9392. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9393. hardcode_action=
  9394. if test -n "$hardcode_libdir_flag_spec" ||
  9395. test -n "$runpath_var" ||
  9396. test "X$hardcode_automatic" = "Xyes" ; then
  9397. # We can hardcode non-existent directories.
  9398. if test "$hardcode_direct" != no &&
  9399. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9400. # have to relink, otherwise we might link with an installed library
  9401. # when we should be linking with a yet-to-be-installed one
  9402. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9403. test "$hardcode_minus_L" != no; then
  9404. # Linking always hardcodes the temporary library directory.
  9405. hardcode_action=relink
  9406. else
  9407. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9408. hardcode_action=immediate
  9409. fi
  9410. else
  9411. # We cannot hardcode anything, or else we can only hardcode existing
  9412. # directories.
  9413. hardcode_action=unsupported
  9414. fi
  9415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9416. $as_echo "$hardcode_action" >&6; }
  9417. if test "$hardcode_action" = relink ||
  9418. test "$inherit_rpath" = yes; then
  9419. # Fast installation is not supported
  9420. enable_fast_install=no
  9421. elif test "$shlibpath_overrides_runpath" = yes ||
  9422. test "$enable_shared" = no; then
  9423. # Fast installation is not necessary
  9424. enable_fast_install=needless
  9425. fi
  9426. if test "x$enable_dlopen" != xyes; then
  9427. enable_dlopen=unknown
  9428. enable_dlopen_self=unknown
  9429. enable_dlopen_self_static=unknown
  9430. else
  9431. lt_cv_dlopen=no
  9432. lt_cv_dlopen_libs=
  9433. case $host_os in
  9434. beos*)
  9435. lt_cv_dlopen="load_add_on"
  9436. lt_cv_dlopen_libs=
  9437. lt_cv_dlopen_self=yes
  9438. ;;
  9439. mingw* | pw32* | cegcc*)
  9440. lt_cv_dlopen="LoadLibrary"
  9441. lt_cv_dlopen_libs=
  9442. ;;
  9443. cygwin*)
  9444. lt_cv_dlopen="dlopen"
  9445. lt_cv_dlopen_libs=
  9446. ;;
  9447. darwin*)
  9448. # if libdl is installed we need to link against it
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9450. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9451. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9452. $as_echo_n "(cached) " >&6
  9453. else
  9454. ac_check_lib_save_LIBS=$LIBS
  9455. LIBS="-ldl $LIBS"
  9456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9457. /* end confdefs.h. */
  9458. /* Override any GCC internal prototype to avoid an error.
  9459. Use char because int might match the return type of a GCC
  9460. builtin and then its argument prototype would still apply. */
  9461. #ifdef __cplusplus
  9462. extern "C"
  9463. #endif
  9464. char dlopen ();
  9465. int
  9466. main ()
  9467. {
  9468. return dlopen ();
  9469. ;
  9470. return 0;
  9471. }
  9472. _ACEOF
  9473. if ac_fn_c_try_link "$LINENO"; then :
  9474. ac_cv_lib_dl_dlopen=yes
  9475. else
  9476. ac_cv_lib_dl_dlopen=no
  9477. fi
  9478. rm -f core conftest.err conftest.$ac_objext \
  9479. conftest$ac_exeext conftest.$ac_ext
  9480. LIBS=$ac_check_lib_save_LIBS
  9481. fi
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9483. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9484. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9485. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9486. else
  9487. lt_cv_dlopen="dyld"
  9488. lt_cv_dlopen_libs=
  9489. lt_cv_dlopen_self=yes
  9490. fi
  9491. ;;
  9492. *)
  9493. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9494. if test "x$ac_cv_func_shl_load" = xyes; then :
  9495. lt_cv_dlopen="shl_load"
  9496. else
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9498. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9499. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9500. $as_echo_n "(cached) " >&6
  9501. else
  9502. ac_check_lib_save_LIBS=$LIBS
  9503. LIBS="-ldld $LIBS"
  9504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9505. /* end confdefs.h. */
  9506. /* Override any GCC internal prototype to avoid an error.
  9507. Use char because int might match the return type of a GCC
  9508. builtin and then its argument prototype would still apply. */
  9509. #ifdef __cplusplus
  9510. extern "C"
  9511. #endif
  9512. char shl_load ();
  9513. int
  9514. main ()
  9515. {
  9516. return shl_load ();
  9517. ;
  9518. return 0;
  9519. }
  9520. _ACEOF
  9521. if ac_fn_c_try_link "$LINENO"; then :
  9522. ac_cv_lib_dld_shl_load=yes
  9523. else
  9524. ac_cv_lib_dld_shl_load=no
  9525. fi
  9526. rm -f core conftest.err conftest.$ac_objext \
  9527. conftest$ac_exeext conftest.$ac_ext
  9528. LIBS=$ac_check_lib_save_LIBS
  9529. fi
  9530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9531. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9532. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9533. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9534. else
  9535. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9536. if test "x$ac_cv_func_dlopen" = xyes; then :
  9537. lt_cv_dlopen="dlopen"
  9538. else
  9539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9540. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9541. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9542. $as_echo_n "(cached) " >&6
  9543. else
  9544. ac_check_lib_save_LIBS=$LIBS
  9545. LIBS="-ldl $LIBS"
  9546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9547. /* end confdefs.h. */
  9548. /* Override any GCC internal prototype to avoid an error.
  9549. Use char because int might match the return type of a GCC
  9550. builtin and then its argument prototype would still apply. */
  9551. #ifdef __cplusplus
  9552. extern "C"
  9553. #endif
  9554. char dlopen ();
  9555. int
  9556. main ()
  9557. {
  9558. return dlopen ();
  9559. ;
  9560. return 0;
  9561. }
  9562. _ACEOF
  9563. if ac_fn_c_try_link "$LINENO"; then :
  9564. ac_cv_lib_dl_dlopen=yes
  9565. else
  9566. ac_cv_lib_dl_dlopen=no
  9567. fi
  9568. rm -f core conftest.err conftest.$ac_objext \
  9569. conftest$ac_exeext conftest.$ac_ext
  9570. LIBS=$ac_check_lib_save_LIBS
  9571. fi
  9572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9573. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9574. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9575. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9576. else
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9578. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9579. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9580. $as_echo_n "(cached) " >&6
  9581. else
  9582. ac_check_lib_save_LIBS=$LIBS
  9583. LIBS="-lsvld $LIBS"
  9584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9585. /* end confdefs.h. */
  9586. /* Override any GCC internal prototype to avoid an error.
  9587. Use char because int might match the return type of a GCC
  9588. builtin and then its argument prototype would still apply. */
  9589. #ifdef __cplusplus
  9590. extern "C"
  9591. #endif
  9592. char dlopen ();
  9593. int
  9594. main ()
  9595. {
  9596. return dlopen ();
  9597. ;
  9598. return 0;
  9599. }
  9600. _ACEOF
  9601. if ac_fn_c_try_link "$LINENO"; then :
  9602. ac_cv_lib_svld_dlopen=yes
  9603. else
  9604. ac_cv_lib_svld_dlopen=no
  9605. fi
  9606. rm -f core conftest.err conftest.$ac_objext \
  9607. conftest$ac_exeext conftest.$ac_ext
  9608. LIBS=$ac_check_lib_save_LIBS
  9609. fi
  9610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9611. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9612. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9613. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9614. else
  9615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9616. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9617. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9618. $as_echo_n "(cached) " >&6
  9619. else
  9620. ac_check_lib_save_LIBS=$LIBS
  9621. LIBS="-ldld $LIBS"
  9622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9623. /* end confdefs.h. */
  9624. /* Override any GCC internal prototype to avoid an error.
  9625. Use char because int might match the return type of a GCC
  9626. builtin and then its argument prototype would still apply. */
  9627. #ifdef __cplusplus
  9628. extern "C"
  9629. #endif
  9630. char dld_link ();
  9631. int
  9632. main ()
  9633. {
  9634. return dld_link ();
  9635. ;
  9636. return 0;
  9637. }
  9638. _ACEOF
  9639. if ac_fn_c_try_link "$LINENO"; then :
  9640. ac_cv_lib_dld_dld_link=yes
  9641. else
  9642. ac_cv_lib_dld_dld_link=no
  9643. fi
  9644. rm -f core conftest.err conftest.$ac_objext \
  9645. conftest$ac_exeext conftest.$ac_ext
  9646. LIBS=$ac_check_lib_save_LIBS
  9647. fi
  9648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9649. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9650. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9651. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9652. fi
  9653. fi
  9654. fi
  9655. fi
  9656. fi
  9657. fi
  9658. ;;
  9659. esac
  9660. if test "x$lt_cv_dlopen" != xno; then
  9661. enable_dlopen=yes
  9662. else
  9663. enable_dlopen=no
  9664. fi
  9665. case $lt_cv_dlopen in
  9666. dlopen)
  9667. save_CPPFLAGS="$CPPFLAGS"
  9668. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9669. save_LDFLAGS="$LDFLAGS"
  9670. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9671. save_LIBS="$LIBS"
  9672. LIBS="$lt_cv_dlopen_libs $LIBS"
  9673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9674. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9675. if ${lt_cv_dlopen_self+:} false; then :
  9676. $as_echo_n "(cached) " >&6
  9677. else
  9678. if test "$cross_compiling" = yes; then :
  9679. lt_cv_dlopen_self=cross
  9680. else
  9681. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9682. lt_status=$lt_dlunknown
  9683. cat > conftest.$ac_ext <<_LT_EOF
  9684. #line $LINENO "configure"
  9685. #include "confdefs.h"
  9686. #if HAVE_DLFCN_H
  9687. #include <dlfcn.h>
  9688. #endif
  9689. #include <stdio.h>
  9690. #ifdef RTLD_GLOBAL
  9691. # define LT_DLGLOBAL RTLD_GLOBAL
  9692. #else
  9693. # ifdef DL_GLOBAL
  9694. # define LT_DLGLOBAL DL_GLOBAL
  9695. # else
  9696. # define LT_DLGLOBAL 0
  9697. # endif
  9698. #endif
  9699. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9700. find out it does not work in some platform. */
  9701. #ifndef LT_DLLAZY_OR_NOW
  9702. # ifdef RTLD_LAZY
  9703. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9704. # else
  9705. # ifdef DL_LAZY
  9706. # define LT_DLLAZY_OR_NOW DL_LAZY
  9707. # else
  9708. # ifdef RTLD_NOW
  9709. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9710. # else
  9711. # ifdef DL_NOW
  9712. # define LT_DLLAZY_OR_NOW DL_NOW
  9713. # else
  9714. # define LT_DLLAZY_OR_NOW 0
  9715. # endif
  9716. # endif
  9717. # endif
  9718. # endif
  9719. #endif
  9720. /* When -fvisbility=hidden is used, assume the code has been annotated
  9721. correspondingly for the symbols needed. */
  9722. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9723. int fnord () __attribute__((visibility("default")));
  9724. #endif
  9725. int fnord () { return 42; }
  9726. int main ()
  9727. {
  9728. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9729. int status = $lt_dlunknown;
  9730. if (self)
  9731. {
  9732. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9733. else
  9734. {
  9735. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9736. else puts (dlerror ());
  9737. }
  9738. /* dlclose (self); */
  9739. }
  9740. else
  9741. puts (dlerror ());
  9742. return status;
  9743. }
  9744. _LT_EOF
  9745. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9746. (eval $ac_link) 2>&5
  9747. ac_status=$?
  9748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9749. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9750. (./conftest; exit; ) >&5 2>/dev/null
  9751. lt_status=$?
  9752. case x$lt_status in
  9753. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9754. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9755. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9756. esac
  9757. else :
  9758. # compilation failed
  9759. lt_cv_dlopen_self=no
  9760. fi
  9761. fi
  9762. rm -fr conftest*
  9763. fi
  9764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9765. $as_echo "$lt_cv_dlopen_self" >&6; }
  9766. if test "x$lt_cv_dlopen_self" = xyes; then
  9767. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9769. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9770. if ${lt_cv_dlopen_self_static+:} false; then :
  9771. $as_echo_n "(cached) " >&6
  9772. else
  9773. if test "$cross_compiling" = yes; then :
  9774. lt_cv_dlopen_self_static=cross
  9775. else
  9776. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9777. lt_status=$lt_dlunknown
  9778. cat > conftest.$ac_ext <<_LT_EOF
  9779. #line $LINENO "configure"
  9780. #include "confdefs.h"
  9781. #if HAVE_DLFCN_H
  9782. #include <dlfcn.h>
  9783. #endif
  9784. #include <stdio.h>
  9785. #ifdef RTLD_GLOBAL
  9786. # define LT_DLGLOBAL RTLD_GLOBAL
  9787. #else
  9788. # ifdef DL_GLOBAL
  9789. # define LT_DLGLOBAL DL_GLOBAL
  9790. # else
  9791. # define LT_DLGLOBAL 0
  9792. # endif
  9793. #endif
  9794. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9795. find out it does not work in some platform. */
  9796. #ifndef LT_DLLAZY_OR_NOW
  9797. # ifdef RTLD_LAZY
  9798. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9799. # else
  9800. # ifdef DL_LAZY
  9801. # define LT_DLLAZY_OR_NOW DL_LAZY
  9802. # else
  9803. # ifdef RTLD_NOW
  9804. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9805. # else
  9806. # ifdef DL_NOW
  9807. # define LT_DLLAZY_OR_NOW DL_NOW
  9808. # else
  9809. # define LT_DLLAZY_OR_NOW 0
  9810. # endif
  9811. # endif
  9812. # endif
  9813. # endif
  9814. #endif
  9815. /* When -fvisbility=hidden is used, assume the code has been annotated
  9816. correspondingly for the symbols needed. */
  9817. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9818. int fnord () __attribute__((visibility("default")));
  9819. #endif
  9820. int fnord () { return 42; }
  9821. int main ()
  9822. {
  9823. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9824. int status = $lt_dlunknown;
  9825. if (self)
  9826. {
  9827. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9828. else
  9829. {
  9830. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9831. else puts (dlerror ());
  9832. }
  9833. /* dlclose (self); */
  9834. }
  9835. else
  9836. puts (dlerror ());
  9837. return status;
  9838. }
  9839. _LT_EOF
  9840. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9841. (eval $ac_link) 2>&5
  9842. ac_status=$?
  9843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9844. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9845. (./conftest; exit; ) >&5 2>/dev/null
  9846. lt_status=$?
  9847. case x$lt_status in
  9848. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9849. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9850. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9851. esac
  9852. else :
  9853. # compilation failed
  9854. lt_cv_dlopen_self_static=no
  9855. fi
  9856. fi
  9857. rm -fr conftest*
  9858. fi
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9860. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9861. fi
  9862. CPPFLAGS="$save_CPPFLAGS"
  9863. LDFLAGS="$save_LDFLAGS"
  9864. LIBS="$save_LIBS"
  9865. ;;
  9866. esac
  9867. case $lt_cv_dlopen_self in
  9868. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9869. *) enable_dlopen_self=unknown ;;
  9870. esac
  9871. case $lt_cv_dlopen_self_static in
  9872. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9873. *) enable_dlopen_self_static=unknown ;;
  9874. esac
  9875. fi
  9876. striplib=
  9877. old_striplib=
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9879. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9880. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9881. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9882. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9884. $as_echo "yes" >&6; }
  9885. else
  9886. # FIXME - insert some real tests, host_os isn't really good enough
  9887. case $host_os in
  9888. darwin*)
  9889. if test -n "$STRIP" ; then
  9890. striplib="$STRIP -x"
  9891. old_striplib="$STRIP -S"
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9893. $as_echo "yes" >&6; }
  9894. else
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9896. $as_echo "no" >&6; }
  9897. fi
  9898. ;;
  9899. *)
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9901. $as_echo "no" >&6; }
  9902. ;;
  9903. esac
  9904. fi
  9905. # Report which library types will actually be built
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9907. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9909. $as_echo "$can_build_shared" >&6; }
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9911. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9912. test "$can_build_shared" = "no" && enable_shared=no
  9913. # On AIX, shared libraries and static libraries use the same namespace, and
  9914. # are all built from PIC.
  9915. case $host_os in
  9916. aix3*)
  9917. test "$enable_shared" = yes && enable_static=no
  9918. if test -n "$RANLIB"; then
  9919. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9920. postinstall_cmds='$RANLIB $lib'
  9921. fi
  9922. ;;
  9923. aix[4-9]*)
  9924. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9925. test "$enable_shared" = yes && enable_static=no
  9926. fi
  9927. ;;
  9928. esac
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9930. $as_echo "$enable_shared" >&6; }
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9932. $as_echo_n "checking whether to build static libraries... " >&6; }
  9933. # Make sure either enable_shared or enable_static is yes.
  9934. test "$enable_shared" = yes || enable_static=yes
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9936. $as_echo "$enable_static" >&6; }
  9937. fi
  9938. ac_ext=c
  9939. ac_cpp='$CPP $CPPFLAGS'
  9940. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9941. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9942. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9943. CC="$lt_save_CC"
  9944. ac_config_commands="$ac_config_commands libtool"
  9945. # Only expand once:
  9946. ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile examples/src/Makefile"
  9947. cat >confcache <<\_ACEOF
  9948. # This file is a shell script that caches the results of configure
  9949. # tests run on this system so they can be shared between configure
  9950. # scripts and configure runs, see configure's option --config-cache.
  9951. # It is not useful on other systems. If it contains results you don't
  9952. # want to keep, you may remove or edit it.
  9953. #
  9954. # config.status only pays attention to the cache file if you give it
  9955. # the --recheck option to rerun configure.
  9956. #
  9957. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9958. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9959. # following values.
  9960. _ACEOF
  9961. # The following way of writing the cache mishandles newlines in values,
  9962. # but we know of no workaround that is simple, portable, and efficient.
  9963. # So, we kill variables containing newlines.
  9964. # Ultrix sh set writes to stderr and can't be redirected directly,
  9965. # and sets the high bit in the cache file unless we assign to the vars.
  9966. (
  9967. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9968. eval ac_val=\$$ac_var
  9969. case $ac_val in #(
  9970. *${as_nl}*)
  9971. case $ac_var in #(
  9972. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9973. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9974. esac
  9975. case $ac_var in #(
  9976. _ | IFS | as_nl) ;; #(
  9977. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9978. *) { eval $ac_var=; unset $ac_var;} ;;
  9979. esac ;;
  9980. esac
  9981. done
  9982. (set) 2>&1 |
  9983. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9984. *${as_nl}ac_space=\ *)
  9985. # `set' does not quote correctly, so add quotes: double-quote
  9986. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9987. sed -n \
  9988. "s/'/'\\\\''/g;
  9989. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9990. ;; #(
  9991. *)
  9992. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9993. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9994. ;;
  9995. esac |
  9996. sort
  9997. ) |
  9998. sed '
  9999. /^ac_cv_env_/b end
  10000. t clear
  10001. :clear
  10002. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10003. t end
  10004. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10005. :end' >>confcache
  10006. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10007. if test -w "$cache_file"; then
  10008. if test "x$cache_file" != "x/dev/null"; then
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10010. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10011. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10012. cat confcache >"$cache_file"
  10013. else
  10014. case $cache_file in #(
  10015. */* | ?:*)
  10016. mv -f confcache "$cache_file"$$ &&
  10017. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10018. *)
  10019. mv -f confcache "$cache_file" ;;
  10020. esac
  10021. fi
  10022. fi
  10023. else
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10025. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10026. fi
  10027. fi
  10028. rm -f confcache
  10029. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10030. # Let make expand exec_prefix.
  10031. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10032. # Transform confdefs.h into DEFS.
  10033. # Protect against shell expansion while executing Makefile rules.
  10034. # Protect against Makefile macro expansion.
  10035. #
  10036. # If the first sed substitution is executed (which looks for macros that
  10037. # take arguments), then branch to the quote section. Otherwise,
  10038. # look for a macro that doesn't take arguments.
  10039. ac_script='
  10040. :mline
  10041. /\\$/{
  10042. N
  10043. s,\\\n,,
  10044. b mline
  10045. }
  10046. t clear
  10047. :clear
  10048. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  10049. t quote
  10050. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  10051. t quote
  10052. b any
  10053. :quote
  10054. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  10055. s/\[/\\&/g
  10056. s/\]/\\&/g
  10057. s/\$/$$/g
  10058. H
  10059. :any
  10060. ${
  10061. g
  10062. s/^\n//
  10063. s/\n/ /g
  10064. p
  10065. }
  10066. '
  10067. DEFS=`sed -n "$ac_script" confdefs.h`
  10068. ac_libobjs=
  10069. ac_ltlibobjs=
  10070. U=
  10071. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  10072. # 1. Remove the extension, and $U if already installed.
  10073. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10074. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10075. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10076. # will be set to the directory where LIBOBJS objects are built.
  10077. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10078. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10079. done
  10080. LIB@&t@OBJS=$ac_libobjs
  10081. LTLIBOBJS=$ac_ltlibobjs
  10082. if test -n "$EXEEXT"; then
  10083. am__EXEEXT_TRUE=
  10084. am__EXEEXT_FALSE='#'
  10085. else
  10086. am__EXEEXT_TRUE='#'
  10087. am__EXEEXT_FALSE=
  10088. fi
  10089. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10090. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10091. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10092. fi
  10093. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10094. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10095. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10096. fi
  10097. if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
  10098. as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
  10099. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10100. fi
  10101. if test -z "${TARGET_WIN_TRUE}" && test -z "${TARGET_WIN_FALSE}"; then
  10102. as_fn_error $? "conditional \"TARGET_WIN\" was never defined.
  10103. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10104. fi
  10105. if test -z "${TARGET_LINUX_TRUE}" && test -z "${TARGET_LINUX_FALSE}"; then
  10106. as_fn_error $? "conditional \"TARGET_LINUX\" was never defined.
  10107. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10108. fi
  10109. : "${CONFIG_STATUS=./config.status}"
  10110. ac_write_fail=0
  10111. ac_clean_files_save=$ac_clean_files
  10112. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10113. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10114. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10115. as_write_fail=0
  10116. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10117. #! $SHELL
  10118. # Generated by $as_me.
  10119. # Run this file to recreate the current configuration.
  10120. # Compiler output produced by configure, useful for debugging
  10121. # configure, is in config.log if it exists.
  10122. debug=false
  10123. ac_cs_recheck=false
  10124. ac_cs_silent=false
  10125. SHELL=\${CONFIG_SHELL-$SHELL}
  10126. export SHELL
  10127. _ASEOF
  10128. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10129. ## -------------------- ##
  10130. ## M4sh Initialization. ##
  10131. ## -------------------- ##
  10132. # Be more Bourne compatible
  10133. DUALCASE=1; export DUALCASE # for MKS sh
  10134. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10135. emulate sh
  10136. NULLCMD=:
  10137. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10138. # is contrary to our usage. Disable this feature.
  10139. alias -g '${1+"$@"}'='"$@"'
  10140. setopt NO_GLOB_SUBST
  10141. else
  10142. case `(set -o) 2>/dev/null` in @%:@(
  10143. *posix*) :
  10144. set -o posix ;; @%:@(
  10145. *) :
  10146. ;;
  10147. esac
  10148. fi
  10149. as_nl='
  10150. '
  10151. export as_nl
  10152. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10153. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10154. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10155. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10156. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10157. # but without wasting forks for bash or zsh.
  10158. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10159. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10160. as_echo='print -r --'
  10161. as_echo_n='print -rn --'
  10162. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10163. as_echo='printf %s\n'
  10164. as_echo_n='printf %s'
  10165. else
  10166. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10167. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10168. as_echo_n='/usr/ucb/echo -n'
  10169. else
  10170. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10171. as_echo_n_body='eval
  10172. arg=$1;
  10173. case $arg in @%:@(
  10174. *"$as_nl"*)
  10175. expr "X$arg" : "X\\(.*\\)$as_nl";
  10176. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10177. esac;
  10178. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10179. '
  10180. export as_echo_n_body
  10181. as_echo_n='sh -c $as_echo_n_body as_echo'
  10182. fi
  10183. export as_echo_body
  10184. as_echo='sh -c $as_echo_body as_echo'
  10185. fi
  10186. # The user is always right.
  10187. if test "${PATH_SEPARATOR+set}" != set; then
  10188. PATH_SEPARATOR=:
  10189. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10190. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10191. PATH_SEPARATOR=';'
  10192. }
  10193. fi
  10194. # IFS
  10195. # We need space, tab and new line, in precisely that order. Quoting is
  10196. # there to prevent editors from complaining about space-tab.
  10197. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10198. # splitting by setting IFS to empty value.)
  10199. IFS=" "" $as_nl"
  10200. # Find who we are. Look in the path if we contain no directory separator.
  10201. as_myself=
  10202. case $0 in @%:@((
  10203. *[\\/]* ) as_myself=$0 ;;
  10204. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10205. for as_dir in $PATH
  10206. do
  10207. IFS=$as_save_IFS
  10208. test -z "$as_dir" && as_dir=.
  10209. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10210. done
  10211. IFS=$as_save_IFS
  10212. ;;
  10213. esac
  10214. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10215. # in which case we are not to be found in the path.
  10216. if test "x$as_myself" = x; then
  10217. as_myself=$0
  10218. fi
  10219. if test ! -f "$as_myself"; then
  10220. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10221. exit 1
  10222. fi
  10223. # Unset variables that we do not need and which cause bugs (e.g. in
  10224. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10225. # suppresses any "Segmentation fault" message there. '((' could
  10226. # trigger a bug in pdksh 5.2.14.
  10227. for as_var in BASH_ENV ENV MAIL MAILPATH
  10228. do eval test x\${$as_var+set} = xset \
  10229. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10230. done
  10231. PS1='$ '
  10232. PS2='> '
  10233. PS4='+ '
  10234. # NLS nuisances.
  10235. LC_ALL=C
  10236. export LC_ALL
  10237. LANGUAGE=C
  10238. export LANGUAGE
  10239. # CDPATH.
  10240. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10241. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  10242. @%:@ ----------------------------------------
  10243. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10244. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10245. @%:@ script with STATUS, using 1 if that was 0.
  10246. as_fn_error ()
  10247. {
  10248. as_status=$1; test $as_status -eq 0 && as_status=1
  10249. if test "$4"; then
  10250. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10251. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10252. fi
  10253. $as_echo "$as_me: error: $2" >&2
  10254. as_fn_exit $as_status
  10255. } @%:@ as_fn_error
  10256. @%:@ as_fn_set_status STATUS
  10257. @%:@ -----------------------
  10258. @%:@ Set @S|@? to STATUS, without forking.
  10259. as_fn_set_status ()
  10260. {
  10261. return $1
  10262. } @%:@ as_fn_set_status
  10263. @%:@ as_fn_exit STATUS
  10264. @%:@ -----------------
  10265. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10266. as_fn_exit ()
  10267. {
  10268. set +e
  10269. as_fn_set_status $1
  10270. exit $1
  10271. } @%:@ as_fn_exit
  10272. @%:@ as_fn_unset VAR
  10273. @%:@ ---------------
  10274. @%:@ Portably unset VAR.
  10275. as_fn_unset ()
  10276. {
  10277. { eval $1=; unset $1;}
  10278. }
  10279. as_unset=as_fn_unset
  10280. @%:@ as_fn_append VAR VALUE
  10281. @%:@ ----------------------
  10282. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  10283. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  10284. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  10285. @%:@ implementations.
  10286. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10287. eval 'as_fn_append ()
  10288. {
  10289. eval $1+=\$2
  10290. }'
  10291. else
  10292. as_fn_append ()
  10293. {
  10294. eval $1=\$$1\$2
  10295. }
  10296. fi # as_fn_append
  10297. @%:@ as_fn_arith ARG...
  10298. @%:@ ------------------
  10299. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  10300. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  10301. @%:@ must be portable across @S|@(()) and expr.
  10302. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10303. eval 'as_fn_arith ()
  10304. {
  10305. as_val=$(( $* ))
  10306. }'
  10307. else
  10308. as_fn_arith ()
  10309. {
  10310. as_val=`expr "$@" || test $? -eq 1`
  10311. }
  10312. fi # as_fn_arith
  10313. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10314. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10315. as_expr=expr
  10316. else
  10317. as_expr=false
  10318. fi
  10319. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10320. as_basename=basename
  10321. else
  10322. as_basename=false
  10323. fi
  10324. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10325. as_dirname=dirname
  10326. else
  10327. as_dirname=false
  10328. fi
  10329. as_me=`$as_basename -- "$0" ||
  10330. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10331. X"$0" : 'X\(//\)$' \| \
  10332. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10333. $as_echo X/"$0" |
  10334. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10335. s//\1/
  10336. q
  10337. }
  10338. /^X\/\(\/\/\)$/{
  10339. s//\1/
  10340. q
  10341. }
  10342. /^X\/\(\/\).*/{
  10343. s//\1/
  10344. q
  10345. }
  10346. s/.*/./; q'`
  10347. # Avoid depending upon Character Ranges.
  10348. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10349. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10350. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10351. as_cr_digits='0123456789'
  10352. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10353. ECHO_C= ECHO_N= ECHO_T=
  10354. case `echo -n x` in @%:@(((((
  10355. -n*)
  10356. case `echo 'xy\c'` in
  10357. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10358. xy) ECHO_C='\c';;
  10359. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10360. ECHO_T=' ';;
  10361. esac;;
  10362. *)
  10363. ECHO_N='-n';;
  10364. esac
  10365. rm -f conf$$ conf$$.exe conf$$.file
  10366. if test -d conf$$.dir; then
  10367. rm -f conf$$.dir/conf$$.file
  10368. else
  10369. rm -f conf$$.dir
  10370. mkdir conf$$.dir 2>/dev/null
  10371. fi
  10372. if (echo >conf$$.file) 2>/dev/null; then
  10373. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10374. as_ln_s='ln -s'
  10375. # ... but there are two gotchas:
  10376. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10377. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10378. # In both cases, we have to default to `cp -p'.
  10379. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10380. as_ln_s='cp -p'
  10381. elif ln conf$$.file conf$$ 2>/dev/null; then
  10382. as_ln_s=ln
  10383. else
  10384. as_ln_s='cp -p'
  10385. fi
  10386. else
  10387. as_ln_s='cp -p'
  10388. fi
  10389. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10390. rmdir conf$$.dir 2>/dev/null
  10391. @%:@ as_fn_mkdir_p
  10392. @%:@ -------------
  10393. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  10394. as_fn_mkdir_p ()
  10395. {
  10396. case $as_dir in #(
  10397. -*) as_dir=./$as_dir;;
  10398. esac
  10399. test -d "$as_dir" || eval $as_mkdir_p || {
  10400. as_dirs=
  10401. while :; do
  10402. case $as_dir in #(
  10403. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10404. *) as_qdir=$as_dir;;
  10405. esac
  10406. as_dirs="'$as_qdir' $as_dirs"
  10407. as_dir=`$as_dirname -- "$as_dir" ||
  10408. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10409. X"$as_dir" : 'X\(//\)[^/]' \| \
  10410. X"$as_dir" : 'X\(//\)$' \| \
  10411. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10412. $as_echo X"$as_dir" |
  10413. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10414. s//\1/
  10415. q
  10416. }
  10417. /^X\(\/\/\)[^/].*/{
  10418. s//\1/
  10419. q
  10420. }
  10421. /^X\(\/\/\)$/{
  10422. s//\1/
  10423. q
  10424. }
  10425. /^X\(\/\).*/{
  10426. s//\1/
  10427. q
  10428. }
  10429. s/.*/./; q'`
  10430. test -d "$as_dir" && break
  10431. done
  10432. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10433. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10434. } @%:@ as_fn_mkdir_p
  10435. if mkdir -p . 2>/dev/null; then
  10436. as_mkdir_p='mkdir -p "$as_dir"'
  10437. else
  10438. test -d ./-p && rmdir ./-p
  10439. as_mkdir_p=false
  10440. fi
  10441. if test -x / >/dev/null 2>&1; then
  10442. as_test_x='test -x'
  10443. else
  10444. if ls -dL / >/dev/null 2>&1; then
  10445. as_ls_L_option=L
  10446. else
  10447. as_ls_L_option=
  10448. fi
  10449. as_test_x='
  10450. eval sh -c '\''
  10451. if test -d "$1"; then
  10452. test -d "$1/.";
  10453. else
  10454. case $1 in @%:@(
  10455. -*)set "./$1";;
  10456. esac;
  10457. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  10458. ???[sx]*):;;*)false;;esac;fi
  10459. '\'' sh
  10460. '
  10461. fi
  10462. as_executable_p=$as_test_x
  10463. # Sed expression to map a string onto a valid CPP name.
  10464. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10465. # Sed expression to map a string onto a valid variable name.
  10466. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10467. exec 6>&1
  10468. ## ----------------------------------- ##
  10469. ## Main body of $CONFIG_STATUS script. ##
  10470. ## ----------------------------------- ##
  10471. _ASEOF
  10472. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10473. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10474. # Save the log message, to keep $0 and so on meaningful, and to
  10475. # report actual input values of CONFIG_FILES etc. instead of their
  10476. # values after options handling.
  10477. ac_log="
  10478. This file was extended by OPCUAServer $as_me 1.0, which was
  10479. generated by GNU Autoconf 2.68. Invocation command line was
  10480. CONFIG_FILES = $CONFIG_FILES
  10481. CONFIG_HEADERS = $CONFIG_HEADERS
  10482. CONFIG_LINKS = $CONFIG_LINKS
  10483. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10484. $ $0 $@
  10485. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10486. "
  10487. _ACEOF
  10488. case $ac_config_files in *"
  10489. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10490. esac
  10491. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10492. # Files that config.status was made for.
  10493. config_files="$ac_config_files"
  10494. config_commands="$ac_config_commands"
  10495. _ACEOF
  10496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10497. ac_cs_usage="\
  10498. \`$as_me' instantiates files and other configuration actions
  10499. from templates according to the current configuration. Unless the files
  10500. and actions are specified as TAGs, all are instantiated by default.
  10501. Usage: $0 [OPTION]... [TAG]...
  10502. -h, --help print this help, then exit
  10503. -V, --version print version number and configuration settings, then exit
  10504. --config print configuration, then exit
  10505. -q, --quiet, --silent
  10506. do not print progress messages
  10507. -d, --debug don't remove temporary files
  10508. --recheck update $as_me by reconfiguring in the same conditions
  10509. --file=FILE[:TEMPLATE]
  10510. instantiate the configuration file FILE
  10511. Configuration files:
  10512. $config_files
  10513. Configuration commands:
  10514. $config_commands
  10515. Report bugs to the package provider."
  10516. _ACEOF
  10517. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10518. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10519. ac_cs_version="\\
  10520. OPCUAServer config.status 1.0
  10521. configured by $0, generated by GNU Autoconf 2.68,
  10522. with options \\"\$ac_cs_config\\"
  10523. Copyright (C) 2010 Free Software Foundation, Inc.
  10524. This config.status script is free software; the Free Software Foundation
  10525. gives unlimited permission to copy, distribute and modify it."
  10526. ac_pwd='$ac_pwd'
  10527. srcdir='$srcdir'
  10528. INSTALL='$INSTALL'
  10529. MKDIR_P='$MKDIR_P'
  10530. AWK='$AWK'
  10531. test -n "\$AWK" || AWK=awk
  10532. _ACEOF
  10533. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10534. # The default lists apply if the user does not specify any file.
  10535. ac_need_defaults=:
  10536. while test $# != 0
  10537. do
  10538. case $1 in
  10539. --*=?*)
  10540. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10541. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10542. ac_shift=:
  10543. ;;
  10544. --*=)
  10545. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10546. ac_optarg=
  10547. ac_shift=:
  10548. ;;
  10549. *)
  10550. ac_option=$1
  10551. ac_optarg=$2
  10552. ac_shift=shift
  10553. ;;
  10554. esac
  10555. case $ac_option in
  10556. # Handling of the options.
  10557. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10558. ac_cs_recheck=: ;;
  10559. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10560. $as_echo "$ac_cs_version"; exit ;;
  10561. --config | --confi | --conf | --con | --co | --c )
  10562. $as_echo "$ac_cs_config"; exit ;;
  10563. --debug | --debu | --deb | --de | --d | -d )
  10564. debug=: ;;
  10565. --file | --fil | --fi | --f )
  10566. $ac_shift
  10567. case $ac_optarg in
  10568. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10569. '') as_fn_error $? "missing file argument" ;;
  10570. esac
  10571. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10572. ac_need_defaults=false;;
  10573. --he | --h | --help | --hel | -h )
  10574. $as_echo "$ac_cs_usage"; exit ;;
  10575. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10576. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10577. ac_cs_silent=: ;;
  10578. # This is an error.
  10579. -*) as_fn_error $? "unrecognized option: \`$1'
  10580. Try \`$0 --help' for more information." ;;
  10581. *) as_fn_append ac_config_targets " $1"
  10582. ac_need_defaults=false ;;
  10583. esac
  10584. shift
  10585. done
  10586. ac_configure_extra_args=
  10587. if $ac_cs_silent; then
  10588. exec 6>/dev/null
  10589. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10590. fi
  10591. _ACEOF
  10592. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10593. if \$ac_cs_recheck; then
  10594. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10595. shift
  10596. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10597. CONFIG_SHELL='$SHELL'
  10598. export CONFIG_SHELL
  10599. exec "\$@"
  10600. fi
  10601. _ACEOF
  10602. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10603. exec 5>>config.log
  10604. {
  10605. echo
  10606. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  10607. @%:@@%:@ Running $as_me. @%:@@%:@
  10608. _ASBOX
  10609. $as_echo "$ac_log"
  10610. } >&5
  10611. _ACEOF
  10612. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10613. #
  10614. # INIT-COMMANDS
  10615. #
  10616. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10617. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10618. # if CDPATH is set.
  10619. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10620. sed_quote_subst='$sed_quote_subst'
  10621. double_quote_subst='$double_quote_subst'
  10622. delay_variable_subst='$delay_variable_subst'
  10623. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10624. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10625. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10626. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10627. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10628. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10629. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10630. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10631. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  10632. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10633. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10634. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10635. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10636. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10637. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10638. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10639. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10640. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10641. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10642. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10643. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10644. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10645. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10646. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10647. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10648. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10649. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10650. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10651. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10652. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10653. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10654. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10655. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10656. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10657. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10658. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10659. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10660. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10661. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10662. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10663. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10664. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10665. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10666. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10667. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10668. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10669. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10670. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10671. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10672. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10673. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10674. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10675. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10676. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10677. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10678. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10679. 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"`'
  10680. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  10681. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  10682. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10683. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10684. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10685. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10686. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10687. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10688. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10689. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10690. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  10691. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10692. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10693. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10694. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10695. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10696. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10697. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10698. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10699. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10700. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10701. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10702. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10703. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10704. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10705. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10706. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10707. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10708. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10709. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10710. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10711. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10712. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10713. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10714. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10715. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10716. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10717. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10718. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10719. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10720. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10721. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10722. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10723. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10724. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10725. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10726. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10727. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  10728. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10729. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10730. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10731. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10732. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10733. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10734. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10735. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10736. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10737. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10738. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10739. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10740. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10741. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10742. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10743. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10744. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10745. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10746. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10747. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10748. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10749. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10750. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10751. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10752. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10753. LTCC='$LTCC'
  10754. LTCFLAGS='$LTCFLAGS'
  10755. compiler='$compiler_DEFAULT'
  10756. # A function that is used when there is no print builtin or printf.
  10757. func_fallback_echo ()
  10758. {
  10759. eval 'cat <<_LTECHO_EOF
  10760. \$1
  10761. _LTECHO_EOF'
  10762. }
  10763. # Quote evaled strings.
  10764. for var in SHELL \
  10765. ECHO \
  10766. PATH_SEPARATOR \
  10767. SED \
  10768. GREP \
  10769. EGREP \
  10770. FGREP \
  10771. LD \
  10772. NM \
  10773. LN_S \
  10774. lt_SP2NL \
  10775. lt_NL2SP \
  10776. reload_flag \
  10777. OBJDUMP \
  10778. deplibs_check_method \
  10779. file_magic_cmd \
  10780. file_magic_glob \
  10781. want_nocaseglob \
  10782. DLLTOOL \
  10783. sharedlib_from_linklib_cmd \
  10784. AR \
  10785. AR_FLAGS \
  10786. archiver_list_spec \
  10787. STRIP \
  10788. RANLIB \
  10789. CC \
  10790. CFLAGS \
  10791. compiler \
  10792. lt_cv_sys_global_symbol_pipe \
  10793. lt_cv_sys_global_symbol_to_cdecl \
  10794. lt_cv_sys_global_symbol_to_c_name_address \
  10795. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10796. nm_file_list_spec \
  10797. lt_prog_compiler_no_builtin_flag \
  10798. lt_prog_compiler_pic \
  10799. lt_prog_compiler_wl \
  10800. lt_prog_compiler_static \
  10801. lt_cv_prog_compiler_c_o \
  10802. need_locks \
  10803. MANIFEST_TOOL \
  10804. DSYMUTIL \
  10805. NMEDIT \
  10806. LIPO \
  10807. OTOOL \
  10808. OTOOL64 \
  10809. shrext_cmds \
  10810. export_dynamic_flag_spec \
  10811. whole_archive_flag_spec \
  10812. compiler_needs_object \
  10813. with_gnu_ld \
  10814. allow_undefined_flag \
  10815. no_undefined_flag \
  10816. hardcode_libdir_flag_spec \
  10817. hardcode_libdir_separator \
  10818. exclude_expsyms \
  10819. include_expsyms \
  10820. file_list_spec \
  10821. variables_saved_for_relink \
  10822. libname_spec \
  10823. library_names_spec \
  10824. soname_spec \
  10825. install_override_mode \
  10826. finish_eval \
  10827. old_striplib \
  10828. striplib; do
  10829. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10830. *[\\\\\\\`\\"\\\$]*)
  10831. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10832. ;;
  10833. *)
  10834. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10835. ;;
  10836. esac
  10837. done
  10838. # Double-quote double-evaled strings.
  10839. for var in reload_cmds \
  10840. old_postinstall_cmds \
  10841. old_postuninstall_cmds \
  10842. old_archive_cmds \
  10843. extract_expsyms_cmds \
  10844. old_archive_from_new_cmds \
  10845. old_archive_from_expsyms_cmds \
  10846. archive_cmds \
  10847. archive_expsym_cmds \
  10848. module_cmds \
  10849. module_expsym_cmds \
  10850. export_symbols_cmds \
  10851. prelink_cmds \
  10852. postlink_cmds \
  10853. postinstall_cmds \
  10854. postuninstall_cmds \
  10855. finish_cmds \
  10856. sys_lib_search_path_spec \
  10857. sys_lib_dlsearch_path_spec; do
  10858. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10859. *[\\\\\\\`\\"\\\$]*)
  10860. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10861. ;;
  10862. *)
  10863. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10864. ;;
  10865. esac
  10866. done
  10867. ac_aux_dir='$ac_aux_dir'
  10868. xsi_shell='$xsi_shell'
  10869. lt_shell_append='$lt_shell_append'
  10870. # See if we are running on zsh, and set the options which allow our
  10871. # commands through without removal of \ escapes INIT.
  10872. if test -n "\${ZSH_VERSION+set}" ; then
  10873. setopt NO_GLOB_SUBST
  10874. fi
  10875. PACKAGE='$PACKAGE'
  10876. VERSION='$VERSION'
  10877. TIMESTAMP='$TIMESTAMP'
  10878. RM='$RM'
  10879. ofile='$ofile'
  10880. _ACEOF
  10881. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10882. # Handling of arguments.
  10883. for ac_config_target in $ac_config_targets
  10884. do
  10885. case $ac_config_target in
  10886. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10887. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10888. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10889. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10890. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  10891. "examples/src/Makefile") CONFIG_FILES="$CONFIG_FILES examples/src/Makefile" ;;
  10892. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10893. esac
  10894. done
  10895. # If the user did not use the arguments to specify the items to instantiate,
  10896. # then the envvar interface is used. Set only those that are not.
  10897. # We use the long form for the default assignment because of an extremely
  10898. # bizarre bug on SunOS 4.1.3.
  10899. if $ac_need_defaults; then
  10900. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10901. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10902. fi
  10903. # Have a temporary directory for convenience. Make it in the build tree
  10904. # simply because there is no reason against having it here, and in addition,
  10905. # creating and moving files from /tmp can sometimes cause problems.
  10906. # Hook for its removal unless debugging.
  10907. # Note that there is a small window in which the directory will not be cleaned:
  10908. # after its creation but before its name has been assigned to `$tmp'.
  10909. $debug ||
  10910. {
  10911. tmp= ac_tmp=
  10912. trap 'exit_status=$?
  10913. : "${ac_tmp:=$tmp}"
  10914. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10915. ' 0
  10916. trap 'as_fn_exit 1' 1 2 13 15
  10917. }
  10918. # Create a (secure) tmp directory for tmp files.
  10919. {
  10920. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10921. test -d "$tmp"
  10922. } ||
  10923. {
  10924. tmp=./conf$$-$RANDOM
  10925. (umask 077 && mkdir "$tmp")
  10926. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10927. ac_tmp=$tmp
  10928. # Set up the scripts for CONFIG_FILES section.
  10929. # No need to generate them if there are no CONFIG_FILES.
  10930. # This happens for instance with `./config.status config.h'.
  10931. if test -n "$CONFIG_FILES"; then
  10932. ac_cr=`echo X | tr X '\015'`
  10933. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10934. # But we know of no other shell where ac_cr would be empty at this
  10935. # point, so we can use a bashism as a fallback.
  10936. if test "x$ac_cr" = x; then
  10937. eval ac_cr=\$\'\\r\'
  10938. fi
  10939. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10940. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10941. ac_cs_awk_cr='\\r'
  10942. else
  10943. ac_cs_awk_cr=$ac_cr
  10944. fi
  10945. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10946. _ACEOF
  10947. {
  10948. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10949. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10950. echo "_ACEOF"
  10951. } >conf$$subs.sh ||
  10952. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10953. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10954. ac_delim='%!_!# '
  10955. for ac_last_try in false false false false false :; do
  10956. . ./conf$$subs.sh ||
  10957. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10958. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10959. if test $ac_delim_n = $ac_delim_num; then
  10960. break
  10961. elif $ac_last_try; then
  10962. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10963. else
  10964. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10965. fi
  10966. done
  10967. rm -f conf$$subs.sh
  10968. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10969. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10970. _ACEOF
  10971. sed -n '
  10972. h
  10973. s/^/S["/; s/!.*/"]=/
  10974. p
  10975. g
  10976. s/^[^!]*!//
  10977. :repl
  10978. t repl
  10979. s/'"$ac_delim"'$//
  10980. t delim
  10981. :nl
  10982. h
  10983. s/\(.\{148\}\)..*/\1/
  10984. t more1
  10985. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10986. p
  10987. n
  10988. b repl
  10989. :more1
  10990. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10991. p
  10992. g
  10993. s/.\{148\}//
  10994. t nl
  10995. :delim
  10996. h
  10997. s/\(.\{148\}\)..*/\1/
  10998. t more2
  10999. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11000. p
  11001. b
  11002. :more2
  11003. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11004. p
  11005. g
  11006. s/.\{148\}//
  11007. t delim
  11008. ' <conf$$subs.awk | sed '
  11009. /^[^""]/{
  11010. N
  11011. s/\n//
  11012. }
  11013. ' >>$CONFIG_STATUS || ac_write_fail=1
  11014. rm -f conf$$subs.awk
  11015. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11016. _ACAWK
  11017. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11018. for (key in S) S_is_set[key] = 1
  11019. FS = ""
  11020. }
  11021. {
  11022. line = $ 0
  11023. nfields = split(line, field, "@")
  11024. substed = 0
  11025. len = length(field[1])
  11026. for (i = 2; i < nfields; i++) {
  11027. key = field[i]
  11028. keylen = length(key)
  11029. if (S_is_set[key]) {
  11030. value = S[key]
  11031. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11032. len += length(value) + length(field[++i])
  11033. substed = 1
  11034. } else
  11035. len += 1 + keylen
  11036. }
  11037. print line
  11038. }
  11039. _ACAWK
  11040. _ACEOF
  11041. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11042. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11043. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11044. else
  11045. cat
  11046. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11047. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11048. _ACEOF
  11049. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11050. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11051. # trailing colons and then remove the whole line if VPATH becomes empty
  11052. # (actually we leave an empty line to preserve line numbers).
  11053. if test "x$srcdir" = x.; then
  11054. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11055. h
  11056. s///
  11057. s/^/:/
  11058. s/[ ]*$/:/
  11059. s/:\$(srcdir):/:/g
  11060. s/:\${srcdir}:/:/g
  11061. s/:@srcdir@:/:/g
  11062. s/^:*//
  11063. s/:*$//
  11064. x
  11065. s/\(=[ ]*\).*/\1/
  11066. G
  11067. s/\n//
  11068. s/^[^=]*=[ ]*$//
  11069. }'
  11070. fi
  11071. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11072. fi # test -n "$CONFIG_FILES"
  11073. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  11074. shift
  11075. for ac_tag
  11076. do
  11077. case $ac_tag in
  11078. :[FHLC]) ac_mode=$ac_tag; continue;;
  11079. esac
  11080. case $ac_mode$ac_tag in
  11081. :[FHL]*:*);;
  11082. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11083. :[FH]-) ac_tag=-:-;;
  11084. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11085. esac
  11086. ac_save_IFS=$IFS
  11087. IFS=:
  11088. set x $ac_tag
  11089. IFS=$ac_save_IFS
  11090. shift
  11091. ac_file=$1
  11092. shift
  11093. case $ac_mode in
  11094. :L) ac_source=$1;;
  11095. :[FH])
  11096. ac_file_inputs=
  11097. for ac_f
  11098. do
  11099. case $ac_f in
  11100. -) ac_f="$ac_tmp/stdin";;
  11101. *) # Look for the file first in the build tree, then in the source tree
  11102. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11103. # because $ac_f cannot contain `:'.
  11104. test -f "$ac_f" ||
  11105. case $ac_f in
  11106. [\\/$]*) false;;
  11107. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11108. esac ||
  11109. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11110. esac
  11111. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11112. as_fn_append ac_file_inputs " '$ac_f'"
  11113. done
  11114. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11115. # use $as_me), people would be surprised to read:
  11116. # /* config.h. Generated by config.status. */
  11117. configure_input='Generated from '`
  11118. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11119. `' by configure.'
  11120. if test x"$ac_file" != x-; then
  11121. configure_input="$ac_file. $configure_input"
  11122. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11123. $as_echo "$as_me: creating $ac_file" >&6;}
  11124. fi
  11125. # Neutralize special characters interpreted by sed in replacement strings.
  11126. case $configure_input in #(
  11127. *\&* | *\|* | *\\* )
  11128. ac_sed_conf_input=`$as_echo "$configure_input" |
  11129. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11130. *) ac_sed_conf_input=$configure_input;;
  11131. esac
  11132. case $ac_tag in
  11133. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11134. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11135. esac
  11136. ;;
  11137. esac
  11138. ac_dir=`$as_dirname -- "$ac_file" ||
  11139. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11140. X"$ac_file" : 'X\(//\)[^/]' \| \
  11141. X"$ac_file" : 'X\(//\)$' \| \
  11142. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11143. $as_echo X"$ac_file" |
  11144. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11145. s//\1/
  11146. q
  11147. }
  11148. /^X\(\/\/\)[^/].*/{
  11149. s//\1/
  11150. q
  11151. }
  11152. /^X\(\/\/\)$/{
  11153. s//\1/
  11154. q
  11155. }
  11156. /^X\(\/\).*/{
  11157. s//\1/
  11158. q
  11159. }
  11160. s/.*/./; q'`
  11161. as_dir="$ac_dir"; as_fn_mkdir_p
  11162. ac_builddir=.
  11163. case "$ac_dir" in
  11164. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11165. *)
  11166. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11167. # A ".." for each directory in $ac_dir_suffix.
  11168. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11169. case $ac_top_builddir_sub in
  11170. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11171. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11172. esac ;;
  11173. esac
  11174. ac_abs_top_builddir=$ac_pwd
  11175. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11176. # for backward compatibility:
  11177. ac_top_builddir=$ac_top_build_prefix
  11178. case $srcdir in
  11179. .) # We are building in place.
  11180. ac_srcdir=.
  11181. ac_top_srcdir=$ac_top_builddir_sub
  11182. ac_abs_top_srcdir=$ac_pwd ;;
  11183. [\\/]* | ?:[\\/]* ) # Absolute name.
  11184. ac_srcdir=$srcdir$ac_dir_suffix;
  11185. ac_top_srcdir=$srcdir
  11186. ac_abs_top_srcdir=$srcdir ;;
  11187. *) # Relative name.
  11188. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11189. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11190. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11191. esac
  11192. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11193. case $ac_mode in
  11194. :F)
  11195. #
  11196. # CONFIG_FILE
  11197. #
  11198. case $INSTALL in
  11199. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11200. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11201. esac
  11202. ac_MKDIR_P=$MKDIR_P
  11203. case $MKDIR_P in
  11204. [\\/$]* | ?:[\\/]* ) ;;
  11205. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11206. esac
  11207. _ACEOF
  11208. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11209. # If the template does not know about datarootdir, expand it.
  11210. # FIXME: This hack should be removed a few years after 2.60.
  11211. ac_datarootdir_hack=; ac_datarootdir_seen=
  11212. ac_sed_dataroot='
  11213. /datarootdir/ {
  11214. p
  11215. q
  11216. }
  11217. /@datadir@/p
  11218. /@docdir@/p
  11219. /@infodir@/p
  11220. /@localedir@/p
  11221. /@mandir@/p'
  11222. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11223. *datarootdir*) ac_datarootdir_seen=yes;;
  11224. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11225. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11226. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11227. _ACEOF
  11228. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11229. ac_datarootdir_hack='
  11230. s&@datadir@&$datadir&g
  11231. s&@docdir@&$docdir&g
  11232. s&@infodir@&$infodir&g
  11233. s&@localedir@&$localedir&g
  11234. s&@mandir@&$mandir&g
  11235. s&\\\${datarootdir}&$datarootdir&g' ;;
  11236. esac
  11237. _ACEOF
  11238. # Neutralize VPATH when `$srcdir' = `.'.
  11239. # Shell code in configure.ac might set extrasub.
  11240. # FIXME: do we really want to maintain this feature?
  11241. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11242. ac_sed_extra="$ac_vpsub
  11243. $extrasub
  11244. _ACEOF
  11245. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11246. :t
  11247. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11248. s|@configure_input@|$ac_sed_conf_input|;t t
  11249. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11250. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11251. s&@srcdir@&$ac_srcdir&;t t
  11252. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11253. s&@top_srcdir@&$ac_top_srcdir&;t t
  11254. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11255. s&@builddir@&$ac_builddir&;t t
  11256. s&@abs_builddir@&$ac_abs_builddir&;t t
  11257. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11258. s&@INSTALL@&$ac_INSTALL&;t t
  11259. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11260. $ac_datarootdir_hack
  11261. "
  11262. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11263. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11264. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11265. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11266. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11267. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11268. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11269. which seems to be undefined. Please make sure it is defined" >&5
  11270. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11271. which seems to be undefined. Please make sure it is defined" >&2;}
  11272. rm -f "$ac_tmp/stdin"
  11273. case $ac_file in
  11274. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11275. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11276. esac \
  11277. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11278. ;;
  11279. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11280. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11281. ;;
  11282. esac
  11283. case $ac_file$ac_mode in
  11284. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11285. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11286. # are listed without --file. Let's play safe and only enable the eval
  11287. # if we detect the quoting.
  11288. case $CONFIG_FILES in
  11289. *\'*) eval set x "$CONFIG_FILES" ;;
  11290. *) set x $CONFIG_FILES ;;
  11291. esac
  11292. shift
  11293. for mf
  11294. do
  11295. # Strip MF so we end up with the name of the file.
  11296. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11297. # Check whether this is an Automake generated Makefile or not.
  11298. # We used to match only the files named `Makefile.in', but
  11299. # some people rename them; so instead we look at the file content.
  11300. # Grep'ing the first line is not enough: some people post-process
  11301. # each Makefile.in and add a new line on top of each file to say so.
  11302. # Grep'ing the whole file is not good either: AIX grep has a line
  11303. # limit of 2048, but all sed's we know have understand at least 4000.
  11304. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11305. dirpart=`$as_dirname -- "$mf" ||
  11306. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11307. X"$mf" : 'X\(//\)[^/]' \| \
  11308. X"$mf" : 'X\(//\)$' \| \
  11309. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11310. $as_echo X"$mf" |
  11311. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11312. s//\1/
  11313. q
  11314. }
  11315. /^X\(\/\/\)[^/].*/{
  11316. s//\1/
  11317. q
  11318. }
  11319. /^X\(\/\/\)$/{
  11320. s//\1/
  11321. q
  11322. }
  11323. /^X\(\/\).*/{
  11324. s//\1/
  11325. q
  11326. }
  11327. s/.*/./; q'`
  11328. else
  11329. continue
  11330. fi
  11331. # Extract the definition of DEPDIR, am__include, and am__quote
  11332. # from the Makefile without running `make'.
  11333. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11334. test -z "$DEPDIR" && continue
  11335. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11336. test -z "am__include" && continue
  11337. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11338. # When using ansi2knr, U may be empty or an underscore; expand it
  11339. U=`sed -n 's/^U = //p' < "$mf"`
  11340. # Find all dependency output files, they are included files with
  11341. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11342. # simplest approach to changing $(DEPDIR) to its actual value in the
  11343. # expansion.
  11344. for file in `sed -n "
  11345. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11346. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11347. # Make sure the directory exists.
  11348. test -f "$dirpart/$file" && continue
  11349. fdir=`$as_dirname -- "$file" ||
  11350. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11351. X"$file" : 'X\(//\)[^/]' \| \
  11352. X"$file" : 'X\(//\)$' \| \
  11353. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11354. $as_echo X"$file" |
  11355. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11356. s//\1/
  11357. q
  11358. }
  11359. /^X\(\/\/\)[^/].*/{
  11360. s//\1/
  11361. q
  11362. }
  11363. /^X\(\/\/\)$/{
  11364. s//\1/
  11365. q
  11366. }
  11367. /^X\(\/\).*/{
  11368. s//\1/
  11369. q
  11370. }
  11371. s/.*/./; q'`
  11372. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11373. # echo "creating $dirpart/$file"
  11374. echo '# dummy' > "$dirpart/$file"
  11375. done
  11376. done
  11377. }
  11378. ;;
  11379. "libtool":C)
  11380. # See if we are running on zsh, and set the options which allow our
  11381. # commands through without removal of \ escapes.
  11382. if test -n "${ZSH_VERSION+set}" ; then
  11383. setopt NO_GLOB_SUBST
  11384. fi
  11385. cfgfile="${ofile}T"
  11386. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11387. $RM "$cfgfile"
  11388. cat <<_LT_EOF >> "$cfgfile"
  11389. #! $SHELL
  11390. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11391. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11392. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11393. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11394. #
  11395. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11396. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  11397. # Foundation, Inc.
  11398. # Written by Gordon Matzigkeit, 1996
  11399. #
  11400. # This file is part of GNU Libtool.
  11401. #
  11402. # GNU Libtool is free software; you can redistribute it and/or
  11403. # modify it under the terms of the GNU General Public License as
  11404. # published by the Free Software Foundation; either version 2 of
  11405. # the License, or (at your option) any later version.
  11406. #
  11407. # As a special exception to the GNU General Public License,
  11408. # if you distribute this file as part of a program or library that
  11409. # is built using GNU Libtool, you may include this file under the
  11410. # same distribution terms that you use for the rest of that program.
  11411. #
  11412. # GNU Libtool is distributed in the hope that it will be useful,
  11413. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11414. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11415. # GNU General Public License for more details.
  11416. #
  11417. # You should have received a copy of the GNU General Public License
  11418. # along with GNU Libtool; see the file COPYING. If not, a copy
  11419. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11420. # obtained by writing to the Free Software Foundation, Inc.,
  11421. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11422. # The names of the tagged configurations supported by this script.
  11423. available_tags=""
  11424. # ### BEGIN LIBTOOL CONFIG
  11425. # Which release of libtool.m4 was used?
  11426. macro_version=$macro_version
  11427. macro_revision=$macro_revision
  11428. # Whether or not to build shared libraries.
  11429. build_libtool_libs=$enable_shared
  11430. # Whether or not to build static libraries.
  11431. build_old_libs=$enable_static
  11432. # What type of objects to build.
  11433. pic_mode=$pic_mode
  11434. # Whether or not to optimize for fast installation.
  11435. fast_install=$enable_fast_install
  11436. # Shell to use when invoking shell scripts.
  11437. SHELL=$lt_SHELL
  11438. # An echo program that protects backslashes.
  11439. ECHO=$lt_ECHO
  11440. # The PATH separator for the build system.
  11441. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  11442. # The host system.
  11443. host_alias=$host_alias
  11444. host=$host
  11445. host_os=$host_os
  11446. # The build system.
  11447. build_alias=$build_alias
  11448. build=$build
  11449. build_os=$build_os
  11450. # A sed program that does not truncate output.
  11451. SED=$lt_SED
  11452. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11453. Xsed="\$SED -e 1s/^X//"
  11454. # A grep program that handles long lines.
  11455. GREP=$lt_GREP
  11456. # An ERE matcher.
  11457. EGREP=$lt_EGREP
  11458. # A literal string matcher.
  11459. FGREP=$lt_FGREP
  11460. # A BSD- or MS-compatible name lister.
  11461. NM=$lt_NM
  11462. # Whether we need soft or hard links.
  11463. LN_S=$lt_LN_S
  11464. # What is the maximum length of a command?
  11465. max_cmd_len=$max_cmd_len
  11466. # Object file suffix (normally "o").
  11467. objext=$ac_objext
  11468. # Executable file suffix (normally "").
  11469. exeext=$exeext
  11470. # whether the shell understands "unset".
  11471. lt_unset=$lt_unset
  11472. # turn spaces into newlines.
  11473. SP2NL=$lt_lt_SP2NL
  11474. # turn newlines into spaces.
  11475. NL2SP=$lt_lt_NL2SP
  11476. # convert \$build file names to \$host format.
  11477. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11478. # convert \$build files to toolchain format.
  11479. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11480. # An object symbol dumper.
  11481. OBJDUMP=$lt_OBJDUMP
  11482. # Method to check whether dependent libraries are shared objects.
  11483. deplibs_check_method=$lt_deplibs_check_method
  11484. # Command to use when deplibs_check_method = "file_magic".
  11485. file_magic_cmd=$lt_file_magic_cmd
  11486. # How to find potential files when deplibs_check_method = "file_magic".
  11487. file_magic_glob=$lt_file_magic_glob
  11488. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11489. want_nocaseglob=$lt_want_nocaseglob
  11490. # DLL creation program.
  11491. DLLTOOL=$lt_DLLTOOL
  11492. # Command to associate shared and link libraries.
  11493. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11494. # The archiver.
  11495. AR=$lt_AR
  11496. # Flags to create an archive.
  11497. AR_FLAGS=$lt_AR_FLAGS
  11498. # How to feed a file listing to the archiver.
  11499. archiver_list_spec=$lt_archiver_list_spec
  11500. # A symbol stripping program.
  11501. STRIP=$lt_STRIP
  11502. # Commands used to install an old-style archive.
  11503. RANLIB=$lt_RANLIB
  11504. old_postinstall_cmds=$lt_old_postinstall_cmds
  11505. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11506. # Whether to use a lock for old archive extraction.
  11507. lock_old_archive_extraction=$lock_old_archive_extraction
  11508. # A C compiler.
  11509. LTCC=$lt_CC
  11510. # LTCC compiler flags.
  11511. LTCFLAGS=$lt_CFLAGS
  11512. # Take the output of nm and produce a listing of raw symbols and C names.
  11513. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11514. # Transform the output of nm in a proper C declaration.
  11515. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11516. # Transform the output of nm in a C name address pair.
  11517. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11518. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11519. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11520. # Specify filename containing input files for \$NM.
  11521. nm_file_list_spec=$lt_nm_file_list_spec
  11522. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11523. lt_sysroot=$lt_sysroot
  11524. # The name of the directory that contains temporary libtool files.
  11525. objdir=$objdir
  11526. # Used to examine libraries when file_magic_cmd begins with "file".
  11527. MAGIC_CMD=$MAGIC_CMD
  11528. # Must we lock files when doing compilation?
  11529. need_locks=$lt_need_locks
  11530. # Manifest tool.
  11531. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11532. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11533. DSYMUTIL=$lt_DSYMUTIL
  11534. # Tool to change global to local symbols on Mac OS X.
  11535. NMEDIT=$lt_NMEDIT
  11536. # Tool to manipulate fat objects and archives on Mac OS X.
  11537. LIPO=$lt_LIPO
  11538. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11539. OTOOL=$lt_OTOOL
  11540. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11541. OTOOL64=$lt_OTOOL64
  11542. # Old archive suffix (normally "a").
  11543. libext=$libext
  11544. # Shared library suffix (normally ".so").
  11545. shrext_cmds=$lt_shrext_cmds
  11546. # The commands to extract the exported symbol list from a shared archive.
  11547. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11548. # Variables whose values should be saved in libtool wrapper scripts and
  11549. # restored at link time.
  11550. variables_saved_for_relink=$lt_variables_saved_for_relink
  11551. # Do we need the "lib" prefix for modules?
  11552. need_lib_prefix=$need_lib_prefix
  11553. # Do we need a version for libraries?
  11554. need_version=$need_version
  11555. # Library versioning type.
  11556. version_type=$version_type
  11557. # Shared library runtime path variable.
  11558. runpath_var=$runpath_var
  11559. # Shared library path variable.
  11560. shlibpath_var=$shlibpath_var
  11561. # Is shlibpath searched before the hard-coded library search path?
  11562. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11563. # Format of library name prefix.
  11564. libname_spec=$lt_libname_spec
  11565. # List of archive names. First name is the real one, the rest are links.
  11566. # The last name is the one that the linker finds with -lNAME
  11567. library_names_spec=$lt_library_names_spec
  11568. # The coded name of the library, if different from the real name.
  11569. soname_spec=$lt_soname_spec
  11570. # Permission mode override for installation of shared libraries.
  11571. install_override_mode=$lt_install_override_mode
  11572. # Command to use after installation of a shared archive.
  11573. postinstall_cmds=$lt_postinstall_cmds
  11574. # Command to use after uninstallation of a shared archive.
  11575. postuninstall_cmds=$lt_postuninstall_cmds
  11576. # Commands used to finish a libtool library installation in a directory.
  11577. finish_cmds=$lt_finish_cmds
  11578. # As "finish_cmds", except a single script fragment to be evaled but
  11579. # not shown.
  11580. finish_eval=$lt_finish_eval
  11581. # Whether we should hardcode library paths into libraries.
  11582. hardcode_into_libs=$hardcode_into_libs
  11583. # Compile-time system search path for libraries.
  11584. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11585. # Run-time system search path for libraries.
  11586. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11587. # Whether dlopen is supported.
  11588. dlopen_support=$enable_dlopen
  11589. # Whether dlopen of programs is supported.
  11590. dlopen_self=$enable_dlopen_self
  11591. # Whether dlopen of statically linked programs is supported.
  11592. dlopen_self_static=$enable_dlopen_self_static
  11593. # Commands to strip libraries.
  11594. old_striplib=$lt_old_striplib
  11595. striplib=$lt_striplib
  11596. # The linker used to build libraries.
  11597. LD=$lt_LD
  11598. # How to create reloadable object files.
  11599. reload_flag=$lt_reload_flag
  11600. reload_cmds=$lt_reload_cmds
  11601. # Commands used to build an old-style archive.
  11602. old_archive_cmds=$lt_old_archive_cmds
  11603. # A language specific compiler.
  11604. CC=$lt_compiler
  11605. # Is the compiler the GNU compiler?
  11606. with_gcc=$GCC
  11607. # Compiler flag to turn off builtin functions.
  11608. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11609. # Additional compiler flags for building library objects.
  11610. pic_flag=$lt_lt_prog_compiler_pic
  11611. # How to pass a linker flag through the compiler.
  11612. wl=$lt_lt_prog_compiler_wl
  11613. # Compiler flag to prevent dynamic linking.
  11614. link_static_flag=$lt_lt_prog_compiler_static
  11615. # Does compiler simultaneously support -c and -o options?
  11616. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11617. # Whether or not to add -lc for building shared libraries.
  11618. build_libtool_need_lc=$archive_cmds_need_lc
  11619. # Whether or not to disallow shared libs when runtime libs are static.
  11620. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11621. # Compiler flag to allow reflexive dlopens.
  11622. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11623. # Compiler flag to generate shared objects directly from archives.
  11624. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11625. # Whether the compiler copes with passing no objects directly.
  11626. compiler_needs_object=$lt_compiler_needs_object
  11627. # Create an old-style archive from a shared archive.
  11628. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11629. # Create a temporary old-style archive to link instead of a shared archive.
  11630. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11631. # Commands used to build a shared archive.
  11632. archive_cmds=$lt_archive_cmds
  11633. archive_expsym_cmds=$lt_archive_expsym_cmds
  11634. # Commands used to build a loadable module if different from building
  11635. # a shared archive.
  11636. module_cmds=$lt_module_cmds
  11637. module_expsym_cmds=$lt_module_expsym_cmds
  11638. # Whether we are building with GNU ld or not.
  11639. with_gnu_ld=$lt_with_gnu_ld
  11640. # Flag that allows shared libraries with undefined symbols to be built.
  11641. allow_undefined_flag=$lt_allow_undefined_flag
  11642. # Flag that enforces no undefined symbols.
  11643. no_undefined_flag=$lt_no_undefined_flag
  11644. # Flag to hardcode \$libdir into a binary during linking.
  11645. # This must work even if \$libdir does not exist
  11646. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11647. # Whether we need a single "-rpath" flag with a separated argument.
  11648. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11649. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11650. # DIR into the resulting binary.
  11651. hardcode_direct=$hardcode_direct
  11652. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11653. # DIR into the resulting binary and the resulting library dependency is
  11654. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11655. # library is relocated.
  11656. hardcode_direct_absolute=$hardcode_direct_absolute
  11657. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11658. # into the resulting binary.
  11659. hardcode_minus_L=$hardcode_minus_L
  11660. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11661. # into the resulting binary.
  11662. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11663. # Set to "yes" if building a shared library automatically hardcodes DIR
  11664. # into the library and all subsequent libraries and executables linked
  11665. # against it.
  11666. hardcode_automatic=$hardcode_automatic
  11667. # Set to yes if linker adds runtime paths of dependent libraries
  11668. # to runtime path list.
  11669. inherit_rpath=$inherit_rpath
  11670. # Whether libtool must link a program against all its dependency libraries.
  11671. link_all_deplibs=$link_all_deplibs
  11672. # Set to "yes" if exported symbols are required.
  11673. always_export_symbols=$always_export_symbols
  11674. # The commands to list exported symbols.
  11675. export_symbols_cmds=$lt_export_symbols_cmds
  11676. # Symbols that should not be listed in the preloaded symbols.
  11677. exclude_expsyms=$lt_exclude_expsyms
  11678. # Symbols that must always be exported.
  11679. include_expsyms=$lt_include_expsyms
  11680. # Commands necessary for linking programs (against libraries) with templates.
  11681. prelink_cmds=$lt_prelink_cmds
  11682. # Commands necessary for finishing linking programs.
  11683. postlink_cmds=$lt_postlink_cmds
  11684. # Specify filename containing input files.
  11685. file_list_spec=$lt_file_list_spec
  11686. # How to hardcode a shared library path into an executable.
  11687. hardcode_action=$hardcode_action
  11688. # ### END LIBTOOL CONFIG
  11689. _LT_EOF
  11690. case $host_os in
  11691. aix3*)
  11692. cat <<\_LT_EOF >> "$cfgfile"
  11693. # AIX sometimes has problems with the GCC collect2 program. For some
  11694. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11695. # vanish in a puff of smoke.
  11696. if test "X${COLLECT_NAMES+set}" != Xset; then
  11697. COLLECT_NAMES=
  11698. export COLLECT_NAMES
  11699. fi
  11700. _LT_EOF
  11701. ;;
  11702. esac
  11703. ltmain="$ac_aux_dir/ltmain.sh"
  11704. # We use sed instead of cat because bash on DJGPP gets confused if
  11705. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11706. # text mode, it properly converts lines to CR/LF. This bash problem
  11707. # is reportedly fixed, but why not run on old versions too?
  11708. sed '$q' "$ltmain" >> "$cfgfile" \
  11709. || (rm -f "$cfgfile"; exit 1)
  11710. if test x"$xsi_shell" = xyes; then
  11711. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  11712. func_dirname ()\
  11713. {\
  11714. \ case ${1} in\
  11715. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11716. \ * ) func_dirname_result="${3}" ;;\
  11717. \ esac\
  11718. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  11719. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11720. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11721. test 0 -eq $? || _lt_function_replace_fail=:
  11722. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  11723. func_basename ()\
  11724. {\
  11725. \ func_basename_result="${1##*/}"\
  11726. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11727. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11728. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11729. test 0 -eq $? || _lt_function_replace_fail=:
  11730. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  11731. func_dirname_and_basename ()\
  11732. {\
  11733. \ case ${1} in\
  11734. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11735. \ * ) func_dirname_result="${3}" ;;\
  11736. \ esac\
  11737. \ func_basename_result="${1##*/}"\
  11738. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11739. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11740. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11741. test 0 -eq $? || _lt_function_replace_fail=:
  11742. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  11743. func_stripname ()\
  11744. {\
  11745. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  11746. \ # positional parameters, so assign one to ordinary parameter first.\
  11747. \ func_stripname_result=${3}\
  11748. \ func_stripname_result=${func_stripname_result#"${1}"}\
  11749. \ func_stripname_result=${func_stripname_result%"${2}"}\
  11750. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  11751. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11752. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11753. test 0 -eq $? || _lt_function_replace_fail=:
  11754. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  11755. func_split_long_opt ()\
  11756. {\
  11757. \ func_split_long_opt_name=${1%%=*}\
  11758. \ func_split_long_opt_arg=${1#*=}\
  11759. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11760. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11761. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11762. test 0 -eq $? || _lt_function_replace_fail=:
  11763. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  11764. func_split_short_opt ()\
  11765. {\
  11766. \ func_split_short_opt_arg=${1#??}\
  11767. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  11768. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11769. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11770. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11771. test 0 -eq $? || _lt_function_replace_fail=:
  11772. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  11773. func_lo2o ()\
  11774. {\
  11775. \ case ${1} in\
  11776. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  11777. \ *) func_lo2o_result=${1} ;;\
  11778. \ esac\
  11779. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  11780. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11781. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11782. test 0 -eq $? || _lt_function_replace_fail=:
  11783. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  11784. func_xform ()\
  11785. {\
  11786. func_xform_result=${1%.*}.lo\
  11787. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  11788. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11789. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11790. test 0 -eq $? || _lt_function_replace_fail=:
  11791. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  11792. func_arith ()\
  11793. {\
  11794. func_arith_result=$(( $* ))\
  11795. } # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
  11800. func_len ()\
  11801. {\
  11802. func_len_result=${#1}\
  11803. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  11804. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11805. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11806. test 0 -eq $? || _lt_function_replace_fail=:
  11807. fi
  11808. if test x"$lt_shell_append" = xyes; then
  11809. sed -e '/^func_append ()$/,/^} # func_append /c\
  11810. func_append ()\
  11811. {\
  11812. eval "${1}+=\\${2}"\
  11813. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  11814. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11815. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11816. test 0 -eq $? || _lt_function_replace_fail=:
  11817. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  11818. func_append_quoted ()\
  11819. {\
  11820. \ func_quote_for_eval "${2}"\
  11821. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  11822. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  11823. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11824. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11825. test 0 -eq $? || _lt_function_replace_fail=:
  11826. # Save a `func_append' function call where possible by direct use of '+='
  11827. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  11828. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11829. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11830. test 0 -eq $? || _lt_function_replace_fail=:
  11831. else
  11832. # Save a `func_append' function call even when '+=' is not available
  11833. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  11834. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11835. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11836. test 0 -eq $? || _lt_function_replace_fail=:
  11837. fi
  11838. if test x"$_lt_function_replace_fail" = x":"; then
  11839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  11840. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  11841. fi
  11842. mv -f "$cfgfile" "$ofile" ||
  11843. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11844. chmod +x "$ofile"
  11845. ;;
  11846. esac
  11847. done # for ac_tag
  11848. as_fn_exit 0
  11849. _ACEOF
  11850. ac_clean_files=$ac_clean_files_save
  11851. test $ac_write_fail = 0 ||
  11852. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11853. # configure is writing to config.log, and then calls config.status.
  11854. # config.status does its own redirection, appending to config.log.
  11855. # Unfortunately, on DOS this fails, as config.log is still kept open
  11856. # by configure, so config.status won't be able to write to it; its
  11857. # output is simply discarded. So we exec the FD to /dev/null,
  11858. # effectively closing config.log, so it can be properly (re)opened and
  11859. # appended to by config.status. When coming back to configure, we
  11860. # need to make the FD available again.
  11861. if test "$no_create" != yes; then
  11862. ac_cs_success=:
  11863. ac_config_status_args=
  11864. test "$silent" = yes &&
  11865. ac_config_status_args="$ac_config_status_args --quiet"
  11866. exec 5>/dev/null
  11867. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11868. exec 5>>config.log
  11869. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11870. # would make configure fail if this is the last instruction.
  11871. $ac_cs_success || as_fn_exit 1
  11872. fi
  11873. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11874. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11875. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11876. fi