configure 433 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for jose 10.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='jose'
  539. PACKAGE_TARNAME='jose'
  540. PACKAGE_VERSION='10'
  541. PACKAGE_STRING='jose 10'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_subst_vars='am__EXEEXT_FALSE
  580. am__EXEEXT_TRUE
  581. LTLIBOBJS
  582. LIBOBJS
  583. HAVE_LD_VERSION_SCRIPT_FALSE
  584. HAVE_LD_VERSION_SCRIPT_TRUE
  585. JOSE_CFLAGS
  586. OPENMP_CFLAGS
  587. libcrypto_LIBS
  588. libcrypto_CFLAGS
  589. jansson_LIBS
  590. jansson_CFLAGS
  591. zlib_LIBS
  592. zlib_CFLAGS
  593. PKG_CONFIG_LIBDIR
  594. PKG_CONFIG_PATH
  595. PKG_CONFIG
  596. CPP
  597. LT_SYS_LIBRARY_PATH
  598. OTOOL64
  599. OTOOL
  600. LIPO
  601. NMEDIT
  602. DSYMUTIL
  603. MANIFEST_TOOL
  604. RANLIB
  605. ac_ct_AR
  606. AR
  607. DLLTOOL
  608. OBJDUMP
  609. LN_S
  610. NM
  611. ac_ct_DUMPBIN
  612. DUMPBIN
  613. LD
  614. FGREP
  615. EGREP
  616. GREP
  617. SED
  618. LIBTOOL
  619. AM_BACKSLASH
  620. AM_DEFAULT_VERBOSITY
  621. AM_DEFAULT_V
  622. AM_V
  623. am__fastdepCC_FALSE
  624. am__fastdepCC_TRUE
  625. CCDEPMODE
  626. am__nodep
  627. AMDEPBACKSLASH
  628. AMDEP_FALSE
  629. AMDEP_TRUE
  630. am__quote
  631. am__include
  632. DEPDIR
  633. am__untar
  634. am__tar
  635. AMTAR
  636. am__leading_dot
  637. SET_MAKE
  638. AWK
  639. mkdir_p
  640. MKDIR_P
  641. INSTALL_STRIP_PROGRAM
  642. STRIP
  643. install_sh
  644. MAKEINFO
  645. AUTOHEADER
  646. AUTOMAKE
  647. AUTOCONF
  648. ACLOCAL
  649. VERSION
  650. PACKAGE
  651. CYGPATH_W
  652. am__isrc
  653. INSTALL_DATA
  654. INSTALL_SCRIPT
  655. INSTALL_PROGRAM
  656. OBJEXT
  657. EXEEXT
  658. ac_ct_CC
  659. CPPFLAGS
  660. LDFLAGS
  661. CFLAGS
  662. CC
  663. target_os
  664. target_vendor
  665. target_cpu
  666. target
  667. host_os
  668. host_vendor
  669. host_cpu
  670. host
  671. build_os
  672. build_vendor
  673. build_cpu
  674. build
  675. target_alias
  676. host_alias
  677. build_alias
  678. LIBS
  679. ECHO_T
  680. ECHO_N
  681. ECHO_C
  682. DEFS
  683. mandir
  684. localedir
  685. libdir
  686. psdir
  687. pdfdir
  688. dvidir
  689. htmldir
  690. infodir
  691. docdir
  692. oldincludedir
  693. includedir
  694. localstatedir
  695. sharedstatedir
  696. sysconfdir
  697. datadir
  698. datarootdir
  699. libexecdir
  700. sbindir
  701. bindir
  702. program_transform_name
  703. prefix
  704. exec_prefix
  705. PACKAGE_URL
  706. PACKAGE_BUGREPORT
  707. PACKAGE_STRING
  708. PACKAGE_VERSION
  709. PACKAGE_TARNAME
  710. PACKAGE_NAME
  711. PATH_SEPARATOR
  712. SHELL'
  713. ac_subst_files=''
  714. ac_user_opts='
  715. enable_option_checking
  716. enable_dependency_tracking
  717. enable_silent_rules
  718. enable_static
  719. enable_shared
  720. with_pic
  721. enable_fast_install
  722. with_aix_soname
  723. with_gnu_ld
  724. with_sysroot
  725. enable_libtool_lock
  726. enable_openmp
  727. '
  728. ac_precious_vars='build_alias
  729. host_alias
  730. target_alias
  731. CC
  732. CFLAGS
  733. LDFLAGS
  734. LIBS
  735. CPPFLAGS
  736. LT_SYS_LIBRARY_PATH
  737. CPP
  738. PKG_CONFIG
  739. PKG_CONFIG_PATH
  740. PKG_CONFIG_LIBDIR
  741. zlib_CFLAGS
  742. zlib_LIBS
  743. jansson_CFLAGS
  744. jansson_LIBS
  745. libcrypto_CFLAGS
  746. libcrypto_LIBS'
  747. # Initialize some variables set by options.
  748. ac_init_help=
  749. ac_init_version=false
  750. ac_unrecognized_opts=
  751. ac_unrecognized_sep=
  752. # The variables have the same names as the options, with
  753. # dashes changed to underlines.
  754. cache_file=/dev/null
  755. exec_prefix=NONE
  756. no_create=
  757. no_recursion=
  758. prefix=NONE
  759. program_prefix=NONE
  760. program_suffix=NONE
  761. program_transform_name=s,x,x,
  762. silent=
  763. site=
  764. srcdir=
  765. verbose=
  766. x_includes=NONE
  767. x_libraries=NONE
  768. # Installation directory options.
  769. # These are left unexpanded so users can "make install exec_prefix=/foo"
  770. # and all the variables that are supposed to be based on exec_prefix
  771. # by default will actually change.
  772. # Use braces instead of parens because sh, perl, etc. also accept them.
  773. # (The list follows the same order as the GNU Coding Standards.)
  774. bindir='${exec_prefix}/bin'
  775. sbindir='${exec_prefix}/sbin'
  776. libexecdir='${exec_prefix}/libexec'
  777. datarootdir='${prefix}/share'
  778. datadir='${datarootdir}'
  779. sysconfdir='${prefix}/etc'
  780. sharedstatedir='${prefix}/com'
  781. localstatedir='${prefix}/var'
  782. includedir='${prefix}/include'
  783. oldincludedir='/usr/include'
  784. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  785. infodir='${datarootdir}/info'
  786. htmldir='${docdir}'
  787. dvidir='${docdir}'
  788. pdfdir='${docdir}'
  789. psdir='${docdir}'
  790. libdir='${exec_prefix}/lib'
  791. localedir='${datarootdir}/locale'
  792. mandir='${datarootdir}/man'
  793. ac_prev=
  794. ac_dashdash=
  795. for ac_option
  796. do
  797. # If the previous option needs an argument, assign it.
  798. if test -n "$ac_prev"; then
  799. eval $ac_prev=\$ac_option
  800. ac_prev=
  801. continue
  802. fi
  803. case $ac_option in
  804. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  805. *=) ac_optarg= ;;
  806. *) ac_optarg=yes ;;
  807. esac
  808. # Accept the important Cygnus configure options, so we can diagnose typos.
  809. case $ac_dashdash$ac_option in
  810. --)
  811. ac_dashdash=yes ;;
  812. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  813. ac_prev=bindir ;;
  814. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  815. bindir=$ac_optarg ;;
  816. -build | --build | --buil | --bui | --bu)
  817. ac_prev=build_alias ;;
  818. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  819. build_alias=$ac_optarg ;;
  820. -cache-file | --cache-file | --cache-fil | --cache-fi \
  821. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  822. ac_prev=cache_file ;;
  823. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  824. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  825. cache_file=$ac_optarg ;;
  826. --config-cache | -C)
  827. cache_file=config.cache ;;
  828. -datadir | --datadir | --datadi | --datad)
  829. ac_prev=datadir ;;
  830. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  831. datadir=$ac_optarg ;;
  832. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  833. | --dataroo | --dataro | --datar)
  834. ac_prev=datarootdir ;;
  835. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  836. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  837. datarootdir=$ac_optarg ;;
  838. -disable-* | --disable-*)
  839. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  840. # Reject names that are not valid shell variable names.
  841. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  842. as_fn_error $? "invalid feature name: $ac_useropt"
  843. ac_useropt_orig=$ac_useropt
  844. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  845. case $ac_user_opts in
  846. *"
  847. "enable_$ac_useropt"
  848. "*) ;;
  849. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  850. ac_unrecognized_sep=', ';;
  851. esac
  852. eval enable_$ac_useropt=no ;;
  853. -docdir | --docdir | --docdi | --doc | --do)
  854. ac_prev=docdir ;;
  855. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  856. docdir=$ac_optarg ;;
  857. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  858. ac_prev=dvidir ;;
  859. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  860. dvidir=$ac_optarg ;;
  861. -enable-* | --enable-*)
  862. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  863. # Reject names that are not valid shell variable names.
  864. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  865. as_fn_error $? "invalid feature name: $ac_useropt"
  866. ac_useropt_orig=$ac_useropt
  867. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  868. case $ac_user_opts in
  869. *"
  870. "enable_$ac_useropt"
  871. "*) ;;
  872. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  873. ac_unrecognized_sep=', ';;
  874. esac
  875. eval enable_$ac_useropt=\$ac_optarg ;;
  876. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  877. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  878. | --exec | --exe | --ex)
  879. ac_prev=exec_prefix ;;
  880. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  881. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  882. | --exec=* | --exe=* | --ex=*)
  883. exec_prefix=$ac_optarg ;;
  884. -gas | --gas | --ga | --g)
  885. # Obsolete; use --with-gas.
  886. with_gas=yes ;;
  887. -help | --help | --hel | --he | -h)
  888. ac_init_help=long ;;
  889. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  890. ac_init_help=recursive ;;
  891. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  892. ac_init_help=short ;;
  893. -host | --host | --hos | --ho)
  894. ac_prev=host_alias ;;
  895. -host=* | --host=* | --hos=* | --ho=*)
  896. host_alias=$ac_optarg ;;
  897. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  898. ac_prev=htmldir ;;
  899. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  900. | --ht=*)
  901. htmldir=$ac_optarg ;;
  902. -includedir | --includedir | --includedi | --included | --include \
  903. | --includ | --inclu | --incl | --inc)
  904. ac_prev=includedir ;;
  905. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  906. | --includ=* | --inclu=* | --incl=* | --inc=*)
  907. includedir=$ac_optarg ;;
  908. -infodir | --infodir | --infodi | --infod | --info | --inf)
  909. ac_prev=infodir ;;
  910. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  911. infodir=$ac_optarg ;;
  912. -libdir | --libdir | --libdi | --libd)
  913. ac_prev=libdir ;;
  914. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  915. libdir=$ac_optarg ;;
  916. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  917. | --libexe | --libex | --libe)
  918. ac_prev=libexecdir ;;
  919. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  920. | --libexe=* | --libex=* | --libe=*)
  921. libexecdir=$ac_optarg ;;
  922. -localedir | --localedir | --localedi | --localed | --locale)
  923. ac_prev=localedir ;;
  924. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  925. localedir=$ac_optarg ;;
  926. -localstatedir | --localstatedir | --localstatedi | --localstated \
  927. | --localstate | --localstat | --localsta | --localst | --locals)
  928. ac_prev=localstatedir ;;
  929. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  930. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  931. localstatedir=$ac_optarg ;;
  932. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  933. ac_prev=mandir ;;
  934. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  935. mandir=$ac_optarg ;;
  936. -nfp | --nfp | --nf)
  937. # Obsolete; use --without-fp.
  938. with_fp=no ;;
  939. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  940. | --no-cr | --no-c | -n)
  941. no_create=yes ;;
  942. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  943. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  944. no_recursion=yes ;;
  945. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  946. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  947. | --oldin | --oldi | --old | --ol | --o)
  948. ac_prev=oldincludedir ;;
  949. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  950. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  951. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  952. oldincludedir=$ac_optarg ;;
  953. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  954. ac_prev=prefix ;;
  955. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  956. prefix=$ac_optarg ;;
  957. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  958. | --program-pre | --program-pr | --program-p)
  959. ac_prev=program_prefix ;;
  960. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  961. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  962. program_prefix=$ac_optarg ;;
  963. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  964. | --program-suf | --program-su | --program-s)
  965. ac_prev=program_suffix ;;
  966. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  967. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  968. program_suffix=$ac_optarg ;;
  969. -program-transform-name | --program-transform-name \
  970. | --program-transform-nam | --program-transform-na \
  971. | --program-transform-n | --program-transform- \
  972. | --program-transform | --program-transfor \
  973. | --program-transfo | --program-transf \
  974. | --program-trans | --program-tran \
  975. | --progr-tra | --program-tr | --program-t)
  976. ac_prev=program_transform_name ;;
  977. -program-transform-name=* | --program-transform-name=* \
  978. | --program-transform-nam=* | --program-transform-na=* \
  979. | --program-transform-n=* | --program-transform-=* \
  980. | --program-transform=* | --program-transfor=* \
  981. | --program-transfo=* | --program-transf=* \
  982. | --program-trans=* | --program-tran=* \
  983. | --progr-tra=* | --program-tr=* | --program-t=*)
  984. program_transform_name=$ac_optarg ;;
  985. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  986. ac_prev=pdfdir ;;
  987. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  988. pdfdir=$ac_optarg ;;
  989. -psdir | --psdir | --psdi | --psd | --ps)
  990. ac_prev=psdir ;;
  991. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  992. psdir=$ac_optarg ;;
  993. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  994. | -silent | --silent | --silen | --sile | --sil)
  995. silent=yes ;;
  996. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  997. ac_prev=sbindir ;;
  998. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  999. | --sbi=* | --sb=*)
  1000. sbindir=$ac_optarg ;;
  1001. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1002. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1003. | --sharedst | --shareds | --shared | --share | --shar \
  1004. | --sha | --sh)
  1005. ac_prev=sharedstatedir ;;
  1006. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1007. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1008. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1009. | --sha=* | --sh=*)
  1010. sharedstatedir=$ac_optarg ;;
  1011. -site | --site | --sit)
  1012. ac_prev=site ;;
  1013. -site=* | --site=* | --sit=*)
  1014. site=$ac_optarg ;;
  1015. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1016. ac_prev=srcdir ;;
  1017. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1018. srcdir=$ac_optarg ;;
  1019. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1020. | --syscon | --sysco | --sysc | --sys | --sy)
  1021. ac_prev=sysconfdir ;;
  1022. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1023. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1024. sysconfdir=$ac_optarg ;;
  1025. -target | --target | --targe | --targ | --tar | --ta | --t)
  1026. ac_prev=target_alias ;;
  1027. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1028. target_alias=$ac_optarg ;;
  1029. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1030. verbose=yes ;;
  1031. -version | --version | --versio | --versi | --vers | -V)
  1032. ac_init_version=: ;;
  1033. -with-* | --with-*)
  1034. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1035. # Reject names that are not valid shell variable names.
  1036. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1037. as_fn_error $? "invalid package name: $ac_useropt"
  1038. ac_useropt_orig=$ac_useropt
  1039. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1040. case $ac_user_opts in
  1041. *"
  1042. "with_$ac_useropt"
  1043. "*) ;;
  1044. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1045. ac_unrecognized_sep=', ';;
  1046. esac
  1047. eval with_$ac_useropt=\$ac_optarg ;;
  1048. -without-* | --without-*)
  1049. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1050. # Reject names that are not valid shell variable names.
  1051. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1052. as_fn_error $? "invalid package name: $ac_useropt"
  1053. ac_useropt_orig=$ac_useropt
  1054. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1055. case $ac_user_opts in
  1056. *"
  1057. "with_$ac_useropt"
  1058. "*) ;;
  1059. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1060. ac_unrecognized_sep=', ';;
  1061. esac
  1062. eval with_$ac_useropt=no ;;
  1063. --x)
  1064. # Obsolete; use --with-x.
  1065. with_x=yes ;;
  1066. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1067. | --x-incl | --x-inc | --x-in | --x-i)
  1068. ac_prev=x_includes ;;
  1069. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1070. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1071. x_includes=$ac_optarg ;;
  1072. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1073. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1074. ac_prev=x_libraries ;;
  1075. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1076. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1077. x_libraries=$ac_optarg ;;
  1078. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1079. Try \`$0 --help' for more information"
  1080. ;;
  1081. *=*)
  1082. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1083. # Reject names that are not valid shell variable names.
  1084. case $ac_envvar in #(
  1085. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1086. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1087. esac
  1088. eval $ac_envvar=\$ac_optarg
  1089. export $ac_envvar ;;
  1090. *)
  1091. # FIXME: should be removed in autoconf 3.0.
  1092. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1093. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1094. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1095. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1096. ;;
  1097. esac
  1098. done
  1099. if test -n "$ac_prev"; then
  1100. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1101. as_fn_error $? "missing argument to $ac_option"
  1102. fi
  1103. if test -n "$ac_unrecognized_opts"; then
  1104. case $enable_option_checking in
  1105. no) ;;
  1106. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1107. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1108. esac
  1109. fi
  1110. # Check all directory arguments for consistency.
  1111. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1112. datadir sysconfdir sharedstatedir localstatedir includedir \
  1113. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1114. libdir localedir mandir
  1115. do
  1116. eval ac_val=\$$ac_var
  1117. # Remove trailing slashes.
  1118. case $ac_val in
  1119. */ )
  1120. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1121. eval $ac_var=\$ac_val;;
  1122. esac
  1123. # Be sure to have absolute directory names.
  1124. case $ac_val in
  1125. [\\/$]* | ?:[\\/]* ) continue;;
  1126. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1127. esac
  1128. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1129. done
  1130. # There might be people who depend on the old broken behavior: `$host'
  1131. # used to hold the argument of --host etc.
  1132. # FIXME: To remove some day.
  1133. build=$build_alias
  1134. host=$host_alias
  1135. target=$target_alias
  1136. # FIXME: To remove some day.
  1137. if test "x$host_alias" != x; then
  1138. if test "x$build_alias" = x; then
  1139. cross_compiling=maybe
  1140. elif test "x$build_alias" != "x$host_alias"; then
  1141. cross_compiling=yes
  1142. fi
  1143. fi
  1144. ac_tool_prefix=
  1145. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1146. test "$silent" = yes && exec 6>/dev/null
  1147. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1148. ac_ls_di=`ls -di .` &&
  1149. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1150. as_fn_error $? "working directory cannot be determined"
  1151. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1152. as_fn_error $? "pwd does not report name of working directory"
  1153. # Find the source files, if location was not specified.
  1154. if test -z "$srcdir"; then
  1155. ac_srcdir_defaulted=yes
  1156. # Try the directory containing this script, then the parent directory.
  1157. ac_confdir=`$as_dirname -- "$as_myself" ||
  1158. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1159. X"$as_myself" : 'X\(//\)[^/]' \| \
  1160. X"$as_myself" : 'X\(//\)$' \| \
  1161. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1162. $as_echo X"$as_myself" |
  1163. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1164. s//\1/
  1165. q
  1166. }
  1167. /^X\(\/\/\)[^/].*/{
  1168. s//\1/
  1169. q
  1170. }
  1171. /^X\(\/\/\)$/{
  1172. s//\1/
  1173. q
  1174. }
  1175. /^X\(\/\).*/{
  1176. s//\1/
  1177. q
  1178. }
  1179. s/.*/./; q'`
  1180. srcdir=$ac_confdir
  1181. if test ! -r "$srcdir/$ac_unique_file"; then
  1182. srcdir=..
  1183. fi
  1184. else
  1185. ac_srcdir_defaulted=no
  1186. fi
  1187. if test ! -r "$srcdir/$ac_unique_file"; then
  1188. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1189. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1190. fi
  1191. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1192. ac_abs_confdir=`(
  1193. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1194. pwd)`
  1195. # When building in place, set srcdir=.
  1196. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1197. srcdir=.
  1198. fi
  1199. # Remove unnecessary trailing slashes from srcdir.
  1200. # Double slashes in file names in object file debugging info
  1201. # mess up M-x gdb in Emacs.
  1202. case $srcdir in
  1203. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1204. esac
  1205. for ac_var in $ac_precious_vars; do
  1206. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1207. eval ac_env_${ac_var}_value=\$${ac_var}
  1208. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1209. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1210. done
  1211. #
  1212. # Report the --help message.
  1213. #
  1214. if test "$ac_init_help" = "long"; then
  1215. # Omit some internal or obsolete options to make the list less imposing.
  1216. # This message is too long to be a string in the A/UX 3.1 sh.
  1217. cat <<_ACEOF
  1218. \`configure' configures jose 10 to adapt to many kinds of systems.
  1219. Usage: $0 [OPTION]... [VAR=VALUE]...
  1220. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1221. VAR=VALUE. See below for descriptions of some of the useful variables.
  1222. Defaults for the options are specified in brackets.
  1223. Configuration:
  1224. -h, --help display this help and exit
  1225. --help=short display options specific to this package
  1226. --help=recursive display the short help of all the included packages
  1227. -V, --version display version information and exit
  1228. -q, --quiet, --silent do not print \`checking ...' messages
  1229. --cache-file=FILE cache test results in FILE [disabled]
  1230. -C, --config-cache alias for \`--cache-file=config.cache'
  1231. -n, --no-create do not create output files
  1232. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1233. Installation directories:
  1234. --prefix=PREFIX install architecture-independent files in PREFIX
  1235. [$ac_default_prefix]
  1236. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1237. [PREFIX]
  1238. By default, \`make install' will install all the files in
  1239. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1240. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1241. for instance \`--prefix=\$HOME'.
  1242. For better control, use the options below.
  1243. Fine tuning of the installation directories:
  1244. --bindir=DIR user executables [EPREFIX/bin]
  1245. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1246. --libexecdir=DIR program executables [EPREFIX/libexec]
  1247. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1248. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1249. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1250. --libdir=DIR object code libraries [EPREFIX/lib]
  1251. --includedir=DIR C header files [PREFIX/include]
  1252. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1253. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1254. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1255. --infodir=DIR info documentation [DATAROOTDIR/info]
  1256. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1257. --mandir=DIR man documentation [DATAROOTDIR/man]
  1258. --docdir=DIR documentation root [DATAROOTDIR/doc/jose]
  1259. --htmldir=DIR html documentation [DOCDIR]
  1260. --dvidir=DIR dvi documentation [DOCDIR]
  1261. --pdfdir=DIR pdf documentation [DOCDIR]
  1262. --psdir=DIR ps documentation [DOCDIR]
  1263. _ACEOF
  1264. cat <<\_ACEOF
  1265. Program names:
  1266. --program-prefix=PREFIX prepend PREFIX to installed program names
  1267. --program-suffix=SUFFIX append SUFFIX to installed program names
  1268. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1269. System types:
  1270. --build=BUILD configure for building on BUILD [guessed]
  1271. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1272. --target=TARGET configure for building compilers for TARGET [HOST]
  1273. _ACEOF
  1274. fi
  1275. if test -n "$ac_init_help"; then
  1276. case $ac_init_help in
  1277. short | recursive ) echo "Configuration of jose 10:";;
  1278. esac
  1279. cat <<\_ACEOF
  1280. Optional Features:
  1281. --disable-option-checking ignore unrecognized --enable/--with options
  1282. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1283. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1284. --enable-dependency-tracking
  1285. do not reject slow dependency extractors
  1286. --disable-dependency-tracking
  1287. speeds up one-time build
  1288. --enable-silent-rules less verbose build output (undo: "make V=1")
  1289. --disable-silent-rules verbose build output (undo: "make V=0")
  1290. --enable-static[=PKGS] build static libraries [default=no]
  1291. --enable-shared[=PKGS] build shared libraries [default=yes]
  1292. --enable-fast-install[=PKGS]
  1293. optimize for fast installation [default=yes]
  1294. --disable-libtool-lock avoid locking (might break parallel builds)
  1295. --disable-openmp do not use OpenMP
  1296. Optional Packages:
  1297. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1298. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1299. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1300. both]
  1301. --with-aix-soname=aix|svr4|both
  1302. shared library versioning (aka "SONAME") variant to
  1303. provide on AIX, [default=aix].
  1304. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1305. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1306. compiler's sysroot if not specified).
  1307. Some influential environment variables:
  1308. CC C compiler command
  1309. CFLAGS C compiler flags
  1310. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1311. nonstandard directory <lib dir>
  1312. LIBS libraries to pass to the linker, e.g. -l<library>
  1313. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1314. you have headers in a nonstandard directory <include dir>
  1315. LT_SYS_LIBRARY_PATH
  1316. User-defined run-time library search path.
  1317. CPP C preprocessor
  1318. PKG_CONFIG path to pkg-config utility
  1319. PKG_CONFIG_PATH
  1320. directories to add to pkg-config's search path
  1321. PKG_CONFIG_LIBDIR
  1322. path overriding pkg-config's built-in search path
  1323. zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
  1324. zlib_LIBS linker flags for zlib, overriding pkg-config
  1325. jansson_CFLAGS
  1326. C compiler flags for jansson, overriding pkg-config
  1327. jansson_LIBS
  1328. linker flags for jansson, overriding pkg-config
  1329. libcrypto_CFLAGS
  1330. C compiler flags for libcrypto, overriding pkg-config
  1331. libcrypto_LIBS
  1332. linker flags for libcrypto, overriding pkg-config
  1333. Use these variables to override the choices made by `configure' or to help
  1334. it to find libraries and programs with nonstandard names/locations.
  1335. Report bugs to the package provider.
  1336. _ACEOF
  1337. ac_status=$?
  1338. fi
  1339. if test "$ac_init_help" = "recursive"; then
  1340. # If there are subdirs, report their specific --help.
  1341. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1342. test -d "$ac_dir" ||
  1343. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1344. continue
  1345. ac_builddir=.
  1346. case "$ac_dir" in
  1347. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1348. *)
  1349. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1350. # A ".." for each directory in $ac_dir_suffix.
  1351. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1352. case $ac_top_builddir_sub in
  1353. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1354. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1355. esac ;;
  1356. esac
  1357. ac_abs_top_builddir=$ac_pwd
  1358. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1359. # for backward compatibility:
  1360. ac_top_builddir=$ac_top_build_prefix
  1361. case $srcdir in
  1362. .) # We are building in place.
  1363. ac_srcdir=.
  1364. ac_top_srcdir=$ac_top_builddir_sub
  1365. ac_abs_top_srcdir=$ac_pwd ;;
  1366. [\\/]* | ?:[\\/]* ) # Absolute name.
  1367. ac_srcdir=$srcdir$ac_dir_suffix;
  1368. ac_top_srcdir=$srcdir
  1369. ac_abs_top_srcdir=$srcdir ;;
  1370. *) # Relative name.
  1371. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1372. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1373. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1374. esac
  1375. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1376. cd "$ac_dir" || { ac_status=$?; continue; }
  1377. # Check for guested configure.
  1378. if test -f "$ac_srcdir/configure.gnu"; then
  1379. echo &&
  1380. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1381. elif test -f "$ac_srcdir/configure"; then
  1382. echo &&
  1383. $SHELL "$ac_srcdir/configure" --help=recursive
  1384. else
  1385. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1386. fi || ac_status=$?
  1387. cd "$ac_pwd" || { ac_status=$?; break; }
  1388. done
  1389. fi
  1390. test -n "$ac_init_help" && exit $ac_status
  1391. if $ac_init_version; then
  1392. cat <<\_ACEOF
  1393. jose configure 10
  1394. generated by GNU Autoconf 2.69
  1395. Copyright (C) 2012 Free Software Foundation, Inc.
  1396. This configure script is free software; the Free Software Foundation
  1397. gives unlimited permission to copy, distribute and modify it.
  1398. _ACEOF
  1399. exit
  1400. fi
  1401. ## ------------------------ ##
  1402. ## Autoconf initialization. ##
  1403. ## ------------------------ ##
  1404. # ac_fn_c_try_compile LINENO
  1405. # --------------------------
  1406. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1407. ac_fn_c_try_compile ()
  1408. {
  1409. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1410. rm -f conftest.$ac_objext
  1411. if { { ac_try="$ac_compile"
  1412. case "(($ac_try" in
  1413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1414. *) ac_try_echo=$ac_try;;
  1415. esac
  1416. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1417. $as_echo "$ac_try_echo"; } >&5
  1418. (eval "$ac_compile") 2>conftest.err
  1419. ac_status=$?
  1420. if test -s conftest.err; then
  1421. grep -v '^ *+' conftest.err >conftest.er1
  1422. cat conftest.er1 >&5
  1423. mv -f conftest.er1 conftest.err
  1424. fi
  1425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1426. test $ac_status = 0; } && {
  1427. test -z "$ac_c_werror_flag" ||
  1428. test ! -s conftest.err
  1429. } && test -s conftest.$ac_objext; then :
  1430. ac_retval=0
  1431. else
  1432. $as_echo "$as_me: failed program was:" >&5
  1433. sed 's/^/| /' conftest.$ac_ext >&5
  1434. ac_retval=1
  1435. fi
  1436. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1437. as_fn_set_status $ac_retval
  1438. } # ac_fn_c_try_compile
  1439. # ac_fn_c_try_link LINENO
  1440. # -----------------------
  1441. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1442. ac_fn_c_try_link ()
  1443. {
  1444. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1445. rm -f conftest.$ac_objext conftest$ac_exeext
  1446. if { { ac_try="$ac_link"
  1447. case "(($ac_try" in
  1448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1449. *) ac_try_echo=$ac_try;;
  1450. esac
  1451. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1452. $as_echo "$ac_try_echo"; } >&5
  1453. (eval "$ac_link") 2>conftest.err
  1454. ac_status=$?
  1455. if test -s conftest.err; then
  1456. grep -v '^ *+' conftest.err >conftest.er1
  1457. cat conftest.er1 >&5
  1458. mv -f conftest.er1 conftest.err
  1459. fi
  1460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1461. test $ac_status = 0; } && {
  1462. test -z "$ac_c_werror_flag" ||
  1463. test ! -s conftest.err
  1464. } && test -s conftest$ac_exeext && {
  1465. test "$cross_compiling" = yes ||
  1466. test -x conftest$ac_exeext
  1467. }; then :
  1468. ac_retval=0
  1469. else
  1470. $as_echo "$as_me: failed program was:" >&5
  1471. sed 's/^/| /' conftest.$ac_ext >&5
  1472. ac_retval=1
  1473. fi
  1474. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1475. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1476. # interfere with the next link command; also delete a directory that is
  1477. # left behind by Apple's compiler. We do this before executing the actions.
  1478. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1479. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1480. as_fn_set_status $ac_retval
  1481. } # ac_fn_c_try_link
  1482. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1483. # -------------------------------------------------------
  1484. # Tests whether HEADER exists and can be compiled using the include files in
  1485. # INCLUDES, setting the cache variable VAR accordingly.
  1486. ac_fn_c_check_header_compile ()
  1487. {
  1488. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1490. $as_echo_n "checking for $2... " >&6; }
  1491. if eval \${$3+:} false; then :
  1492. $as_echo_n "(cached) " >&6
  1493. else
  1494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1495. /* end confdefs.h. */
  1496. $4
  1497. #include <$2>
  1498. _ACEOF
  1499. if ac_fn_c_try_compile "$LINENO"; then :
  1500. eval "$3=yes"
  1501. else
  1502. eval "$3=no"
  1503. fi
  1504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1505. fi
  1506. eval ac_res=\$$3
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1508. $as_echo "$ac_res" >&6; }
  1509. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1510. } # ac_fn_c_check_header_compile
  1511. # ac_fn_c_try_cpp LINENO
  1512. # ----------------------
  1513. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1514. ac_fn_c_try_cpp ()
  1515. {
  1516. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1517. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1518. case "(($ac_try" in
  1519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1520. *) ac_try_echo=$ac_try;;
  1521. esac
  1522. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1523. $as_echo "$ac_try_echo"; } >&5
  1524. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1525. ac_status=$?
  1526. if test -s conftest.err; then
  1527. grep -v '^ *+' conftest.err >conftest.er1
  1528. cat conftest.er1 >&5
  1529. mv -f conftest.er1 conftest.err
  1530. fi
  1531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1532. test $ac_status = 0; } > conftest.i && {
  1533. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1534. test ! -s conftest.err
  1535. }; then :
  1536. ac_retval=0
  1537. else
  1538. $as_echo "$as_me: failed program was:" >&5
  1539. sed 's/^/| /' conftest.$ac_ext >&5
  1540. ac_retval=1
  1541. fi
  1542. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1543. as_fn_set_status $ac_retval
  1544. } # ac_fn_c_try_cpp
  1545. # ac_fn_c_try_run LINENO
  1546. # ----------------------
  1547. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1548. # that executables *can* be run.
  1549. ac_fn_c_try_run ()
  1550. {
  1551. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1552. if { { ac_try="$ac_link"
  1553. case "(($ac_try" in
  1554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1555. *) ac_try_echo=$ac_try;;
  1556. esac
  1557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1558. $as_echo "$ac_try_echo"; } >&5
  1559. (eval "$ac_link") 2>&5
  1560. ac_status=$?
  1561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1562. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1563. { { case "(($ac_try" in
  1564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1565. *) ac_try_echo=$ac_try;;
  1566. esac
  1567. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1568. $as_echo "$ac_try_echo"; } >&5
  1569. (eval "$ac_try") 2>&5
  1570. ac_status=$?
  1571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1572. test $ac_status = 0; }; }; then :
  1573. ac_retval=0
  1574. else
  1575. $as_echo "$as_me: program exited with status $ac_status" >&5
  1576. $as_echo "$as_me: failed program was:" >&5
  1577. sed 's/^/| /' conftest.$ac_ext >&5
  1578. ac_retval=$ac_status
  1579. fi
  1580. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1581. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1582. as_fn_set_status $ac_retval
  1583. } # ac_fn_c_try_run
  1584. # ac_fn_c_check_func LINENO FUNC VAR
  1585. # ----------------------------------
  1586. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1587. ac_fn_c_check_func ()
  1588. {
  1589. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1591. $as_echo_n "checking for $2... " >&6; }
  1592. if eval \${$3+:} false; then :
  1593. $as_echo_n "(cached) " >&6
  1594. else
  1595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1596. /* end confdefs.h. */
  1597. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1598. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1599. #define $2 innocuous_$2
  1600. /* System header to define __stub macros and hopefully few prototypes,
  1601. which can conflict with char $2 (); below.
  1602. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1603. <limits.h> exists even on freestanding compilers. */
  1604. #ifdef __STDC__
  1605. # include <limits.h>
  1606. #else
  1607. # include <assert.h>
  1608. #endif
  1609. #undef $2
  1610. /* Override any GCC internal prototype to avoid an error.
  1611. Use char because int might match the return type of a GCC
  1612. builtin and then its argument prototype would still apply. */
  1613. #ifdef __cplusplus
  1614. extern "C"
  1615. #endif
  1616. char $2 ();
  1617. /* The GNU C library defines this for functions which it implements
  1618. to always fail with ENOSYS. Some functions are actually named
  1619. something starting with __ and the normal name is an alias. */
  1620. #if defined __stub_$2 || defined __stub___$2
  1621. choke me
  1622. #endif
  1623. int
  1624. main ()
  1625. {
  1626. return $2 ();
  1627. ;
  1628. return 0;
  1629. }
  1630. _ACEOF
  1631. if ac_fn_c_try_link "$LINENO"; then :
  1632. eval "$3=yes"
  1633. else
  1634. eval "$3=no"
  1635. fi
  1636. rm -f core conftest.err conftest.$ac_objext \
  1637. conftest$ac_exeext conftest.$ac_ext
  1638. fi
  1639. eval ac_res=\$$3
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1641. $as_echo "$ac_res" >&6; }
  1642. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1643. } # ac_fn_c_check_func
  1644. cat >config.log <<_ACEOF
  1645. This file contains any messages produced by compilers while
  1646. running configure, to aid debugging if configure makes a mistake.
  1647. It was created by jose $as_me 10, which was
  1648. generated by GNU Autoconf 2.69. Invocation command line was
  1649. $ $0 $@
  1650. _ACEOF
  1651. exec 5>>config.log
  1652. {
  1653. cat <<_ASUNAME
  1654. ## --------- ##
  1655. ## Platform. ##
  1656. ## --------- ##
  1657. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1658. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1659. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1660. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1661. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1662. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1663. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1664. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1665. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1666. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1667. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1668. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1669. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1670. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1671. _ASUNAME
  1672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1673. for as_dir in $PATH
  1674. do
  1675. IFS=$as_save_IFS
  1676. test -z "$as_dir" && as_dir=.
  1677. $as_echo "PATH: $as_dir"
  1678. done
  1679. IFS=$as_save_IFS
  1680. } >&5
  1681. cat >&5 <<_ACEOF
  1682. ## ----------- ##
  1683. ## Core tests. ##
  1684. ## ----------- ##
  1685. _ACEOF
  1686. # Keep a trace of the command line.
  1687. # Strip out --no-create and --no-recursion so they do not pile up.
  1688. # Strip out --silent because we don't want to record it for future runs.
  1689. # Also quote any args containing shell meta-characters.
  1690. # Make two passes to allow for proper duplicate-argument suppression.
  1691. ac_configure_args=
  1692. ac_configure_args0=
  1693. ac_configure_args1=
  1694. ac_must_keep_next=false
  1695. for ac_pass in 1 2
  1696. do
  1697. for ac_arg
  1698. do
  1699. case $ac_arg in
  1700. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1701. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1702. | -silent | --silent | --silen | --sile | --sil)
  1703. continue ;;
  1704. *\'*)
  1705. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1706. esac
  1707. case $ac_pass in
  1708. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1709. 2)
  1710. as_fn_append ac_configure_args1 " '$ac_arg'"
  1711. if test $ac_must_keep_next = true; then
  1712. ac_must_keep_next=false # Got value, back to normal.
  1713. else
  1714. case $ac_arg in
  1715. *=* | --config-cache | -C | -disable-* | --disable-* \
  1716. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1717. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1718. | -with-* | --with-* | -without-* | --without-* | --x)
  1719. case "$ac_configure_args0 " in
  1720. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1721. esac
  1722. ;;
  1723. -* ) ac_must_keep_next=true ;;
  1724. esac
  1725. fi
  1726. as_fn_append ac_configure_args " '$ac_arg'"
  1727. ;;
  1728. esac
  1729. done
  1730. done
  1731. { ac_configure_args0=; unset ac_configure_args0;}
  1732. { ac_configure_args1=; unset ac_configure_args1;}
  1733. # When interrupted or exit'd, cleanup temporary files, and complete
  1734. # config.log. We remove comments because anyway the quotes in there
  1735. # would cause problems or look ugly.
  1736. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1737. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1738. trap 'exit_status=$?
  1739. # Save into config.log some information that might help in debugging.
  1740. {
  1741. echo
  1742. $as_echo "## ---------------- ##
  1743. ## Cache variables. ##
  1744. ## ---------------- ##"
  1745. echo
  1746. # The following way of writing the cache mishandles newlines in values,
  1747. (
  1748. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1749. eval ac_val=\$$ac_var
  1750. case $ac_val in #(
  1751. *${as_nl}*)
  1752. case $ac_var in #(
  1753. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1754. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1755. esac
  1756. case $ac_var in #(
  1757. _ | IFS | as_nl) ;; #(
  1758. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1759. *) { eval $ac_var=; unset $ac_var;} ;;
  1760. esac ;;
  1761. esac
  1762. done
  1763. (set) 2>&1 |
  1764. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1765. *${as_nl}ac_space=\ *)
  1766. sed -n \
  1767. "s/'\''/'\''\\\\'\'''\''/g;
  1768. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1769. ;; #(
  1770. *)
  1771. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1772. ;;
  1773. esac |
  1774. sort
  1775. )
  1776. echo
  1777. $as_echo "## ----------------- ##
  1778. ## Output variables. ##
  1779. ## ----------------- ##"
  1780. echo
  1781. for ac_var in $ac_subst_vars
  1782. do
  1783. eval ac_val=\$$ac_var
  1784. case $ac_val in
  1785. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1786. esac
  1787. $as_echo "$ac_var='\''$ac_val'\''"
  1788. done | sort
  1789. echo
  1790. if test -n "$ac_subst_files"; then
  1791. $as_echo "## ------------------- ##
  1792. ## File substitutions. ##
  1793. ## ------------------- ##"
  1794. echo
  1795. for ac_var in $ac_subst_files
  1796. do
  1797. eval ac_val=\$$ac_var
  1798. case $ac_val in
  1799. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1800. esac
  1801. $as_echo "$ac_var='\''$ac_val'\''"
  1802. done | sort
  1803. echo
  1804. fi
  1805. if test -s confdefs.h; then
  1806. $as_echo "## ----------- ##
  1807. ## confdefs.h. ##
  1808. ## ----------- ##"
  1809. echo
  1810. cat confdefs.h
  1811. echo
  1812. fi
  1813. test "$ac_signal" != 0 &&
  1814. $as_echo "$as_me: caught signal $ac_signal"
  1815. $as_echo "$as_me: exit $exit_status"
  1816. } >&5
  1817. rm -f core *.core core.conftest.* &&
  1818. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1819. exit $exit_status
  1820. ' 0
  1821. for ac_signal in 1 2 13 15; do
  1822. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1823. done
  1824. ac_signal=0
  1825. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1826. rm -f -r conftest* confdefs.h
  1827. $as_echo "/* confdefs.h */" > confdefs.h
  1828. # Predefined preprocessor variables.
  1829. cat >>confdefs.h <<_ACEOF
  1830. #define PACKAGE_NAME "$PACKAGE_NAME"
  1831. _ACEOF
  1832. cat >>confdefs.h <<_ACEOF
  1833. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1834. _ACEOF
  1835. cat >>confdefs.h <<_ACEOF
  1836. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1837. _ACEOF
  1838. cat >>confdefs.h <<_ACEOF
  1839. #define PACKAGE_STRING "$PACKAGE_STRING"
  1840. _ACEOF
  1841. cat >>confdefs.h <<_ACEOF
  1842. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1843. _ACEOF
  1844. cat >>confdefs.h <<_ACEOF
  1845. #define PACKAGE_URL "$PACKAGE_URL"
  1846. _ACEOF
  1847. # Let the site file select an alternate cache file if it wants to.
  1848. # Prefer an explicitly selected file to automatically selected ones.
  1849. ac_site_file1=NONE
  1850. ac_site_file2=NONE
  1851. if test -n "$CONFIG_SITE"; then
  1852. # We do not want a PATH search for config.site.
  1853. case $CONFIG_SITE in #((
  1854. -*) ac_site_file1=./$CONFIG_SITE;;
  1855. */*) ac_site_file1=$CONFIG_SITE;;
  1856. *) ac_site_file1=./$CONFIG_SITE;;
  1857. esac
  1858. elif test "x$prefix" != xNONE; then
  1859. ac_site_file1=$prefix/share/config.site
  1860. ac_site_file2=$prefix/etc/config.site
  1861. else
  1862. ac_site_file1=$ac_default_prefix/share/config.site
  1863. ac_site_file2=$ac_default_prefix/etc/config.site
  1864. fi
  1865. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1866. do
  1867. test "x$ac_site_file" = xNONE && continue
  1868. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1869. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1870. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1871. sed 's/^/| /' "$ac_site_file" >&5
  1872. . "$ac_site_file" \
  1873. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1874. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1875. as_fn_error $? "failed to load site script $ac_site_file
  1876. See \`config.log' for more details" "$LINENO" 5; }
  1877. fi
  1878. done
  1879. if test -r "$cache_file"; then
  1880. # Some versions of bash will fail to source /dev/null (special files
  1881. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1882. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1884. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1885. case $cache_file in
  1886. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1887. *) . "./$cache_file";;
  1888. esac
  1889. fi
  1890. else
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1892. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1893. >$cache_file
  1894. fi
  1895. # Check that the precious variables saved in the cache have kept the same
  1896. # value.
  1897. ac_cache_corrupted=false
  1898. for ac_var in $ac_precious_vars; do
  1899. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1900. eval ac_new_set=\$ac_env_${ac_var}_set
  1901. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1902. eval ac_new_val=\$ac_env_${ac_var}_value
  1903. case $ac_old_set,$ac_new_set in
  1904. set,)
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1906. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1907. ac_cache_corrupted=: ;;
  1908. ,set)
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1910. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1911. ac_cache_corrupted=: ;;
  1912. ,);;
  1913. *)
  1914. if test "x$ac_old_val" != "x$ac_new_val"; then
  1915. # differences in whitespace do not lead to failure.
  1916. ac_old_val_w=`echo x $ac_old_val`
  1917. ac_new_val_w=`echo x $ac_new_val`
  1918. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1920. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1921. ac_cache_corrupted=:
  1922. else
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1924. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1925. eval $ac_var=\$ac_old_val
  1926. fi
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1928. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1930. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1931. fi;;
  1932. esac
  1933. # Pass precious variables to config.status.
  1934. if test "$ac_new_set" = set; then
  1935. case $ac_new_val in
  1936. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1937. *) ac_arg=$ac_var=$ac_new_val ;;
  1938. esac
  1939. case " $ac_configure_args " in
  1940. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1941. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1942. esac
  1943. fi
  1944. done
  1945. if $ac_cache_corrupted; then
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1947. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1949. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1950. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1951. fi
  1952. ## -------------------- ##
  1953. ## Main body of script. ##
  1954. ## -------------------- ##
  1955. ac_ext=c
  1956. ac_cpp='$CPP $CPPFLAGS'
  1957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1960. ac_aux_dir=
  1961. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1962. if test -f "$ac_dir/install-sh"; then
  1963. ac_aux_dir=$ac_dir
  1964. ac_install_sh="$ac_aux_dir/install-sh -c"
  1965. break
  1966. elif test -f "$ac_dir/install.sh"; then
  1967. ac_aux_dir=$ac_dir
  1968. ac_install_sh="$ac_aux_dir/install.sh -c"
  1969. break
  1970. elif test -f "$ac_dir/shtool"; then
  1971. ac_aux_dir=$ac_dir
  1972. ac_install_sh="$ac_aux_dir/shtool install -c"
  1973. break
  1974. fi
  1975. done
  1976. if test -z "$ac_aux_dir"; then
  1977. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1978. fi
  1979. # These three variables are undocumented and unsupported,
  1980. # and are intended to be withdrawn in a future Autoconf release.
  1981. # They can cause serious problems if a builder's source tree is in a directory
  1982. # whose full name contains unusual characters.
  1983. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1984. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1985. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1986. # Make sure we can run config.sub.
  1987. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1988. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1990. $as_echo_n "checking build system type... " >&6; }
  1991. if ${ac_cv_build+:} false; then :
  1992. $as_echo_n "(cached) " >&6
  1993. else
  1994. ac_build_alias=$build_alias
  1995. test "x$ac_build_alias" = x &&
  1996. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1997. test "x$ac_build_alias" = x &&
  1998. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1999. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2000. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2001. fi
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2003. $as_echo "$ac_cv_build" >&6; }
  2004. case $ac_cv_build in
  2005. *-*-*) ;;
  2006. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2007. esac
  2008. build=$ac_cv_build
  2009. ac_save_IFS=$IFS; IFS='-'
  2010. set x $ac_cv_build
  2011. shift
  2012. build_cpu=$1
  2013. build_vendor=$2
  2014. shift; shift
  2015. # Remember, the first character of IFS is used to create $*,
  2016. # except with old shells:
  2017. build_os=$*
  2018. IFS=$ac_save_IFS
  2019. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2021. $as_echo_n "checking host system type... " >&6; }
  2022. if ${ac_cv_host+:} false; then :
  2023. $as_echo_n "(cached) " >&6
  2024. else
  2025. if test "x$host_alias" = x; then
  2026. ac_cv_host=$ac_cv_build
  2027. else
  2028. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2029. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2030. fi
  2031. fi
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2033. $as_echo "$ac_cv_host" >&6; }
  2034. case $ac_cv_host in
  2035. *-*-*) ;;
  2036. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2037. esac
  2038. host=$ac_cv_host
  2039. ac_save_IFS=$IFS; IFS='-'
  2040. set x $ac_cv_host
  2041. shift
  2042. host_cpu=$1
  2043. host_vendor=$2
  2044. shift; shift
  2045. # Remember, the first character of IFS is used to create $*,
  2046. # except with old shells:
  2047. host_os=$*
  2048. IFS=$ac_save_IFS
  2049. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2051. $as_echo_n "checking target system type... " >&6; }
  2052. if ${ac_cv_target+:} false; then :
  2053. $as_echo_n "(cached) " >&6
  2054. else
  2055. if test "x$target_alias" = x; then
  2056. ac_cv_target=$ac_cv_host
  2057. else
  2058. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2059. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2060. fi
  2061. fi
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2063. $as_echo "$ac_cv_target" >&6; }
  2064. case $ac_cv_target in
  2065. *-*-*) ;;
  2066. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2067. esac
  2068. target=$ac_cv_target
  2069. ac_save_IFS=$IFS; IFS='-'
  2070. set x $ac_cv_target
  2071. shift
  2072. target_cpu=$1
  2073. target_vendor=$2
  2074. shift; shift
  2075. # Remember, the first character of IFS is used to create $*,
  2076. # except with old shells:
  2077. target_os=$*
  2078. IFS=$ac_save_IFS
  2079. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2080. # The aliases save the names the user supplied, while $host etc.
  2081. # will get canonicalized.
  2082. test -n "$target_alias" &&
  2083. test "$program_prefix$program_suffix$program_transform_name" = \
  2084. NONENONEs,x,x, &&
  2085. program_prefix=${target_alias}-
  2086. # Expand $ac_aux_dir to an absolute path.
  2087. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2088. ac_ext=c
  2089. ac_cpp='$CPP $CPPFLAGS'
  2090. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2091. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2092. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2093. if test -n "$ac_tool_prefix"; then
  2094. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2095. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2097. $as_echo_n "checking for $ac_word... " >&6; }
  2098. if ${ac_cv_prog_CC+:} false; then :
  2099. $as_echo_n "(cached) " >&6
  2100. else
  2101. if test -n "$CC"; then
  2102. ac_cv_prog_CC="$CC" # Let the user override the test.
  2103. else
  2104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2105. for as_dir in $PATH
  2106. do
  2107. IFS=$as_save_IFS
  2108. test -z "$as_dir" && as_dir=.
  2109. for ac_exec_ext in '' $ac_executable_extensions; do
  2110. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2111. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2112. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2113. break 2
  2114. fi
  2115. done
  2116. done
  2117. IFS=$as_save_IFS
  2118. fi
  2119. fi
  2120. CC=$ac_cv_prog_CC
  2121. if test -n "$CC"; then
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2123. $as_echo "$CC" >&6; }
  2124. else
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2126. $as_echo "no" >&6; }
  2127. fi
  2128. fi
  2129. if test -z "$ac_cv_prog_CC"; then
  2130. ac_ct_CC=$CC
  2131. # Extract the first word of "gcc", so it can be a program name with args.
  2132. set dummy gcc; ac_word=$2
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2134. $as_echo_n "checking for $ac_word... " >&6; }
  2135. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2136. $as_echo_n "(cached) " >&6
  2137. else
  2138. if test -n "$ac_ct_CC"; then
  2139. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2140. else
  2141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2142. for as_dir in $PATH
  2143. do
  2144. IFS=$as_save_IFS
  2145. test -z "$as_dir" && as_dir=.
  2146. for ac_exec_ext in '' $ac_executable_extensions; do
  2147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2148. ac_cv_prog_ac_ct_CC="gcc"
  2149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2150. break 2
  2151. fi
  2152. done
  2153. done
  2154. IFS=$as_save_IFS
  2155. fi
  2156. fi
  2157. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2158. if test -n "$ac_ct_CC"; then
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2160. $as_echo "$ac_ct_CC" >&6; }
  2161. else
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2163. $as_echo "no" >&6; }
  2164. fi
  2165. if test "x$ac_ct_CC" = x; then
  2166. CC=""
  2167. else
  2168. case $cross_compiling:$ac_tool_warned in
  2169. yes:)
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2171. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2172. ac_tool_warned=yes ;;
  2173. esac
  2174. CC=$ac_ct_CC
  2175. fi
  2176. else
  2177. CC="$ac_cv_prog_CC"
  2178. fi
  2179. if test -z "$CC"; then
  2180. if test -n "$ac_tool_prefix"; then
  2181. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2182. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2184. $as_echo_n "checking for $ac_word... " >&6; }
  2185. if ${ac_cv_prog_CC+:} false; then :
  2186. $as_echo_n "(cached) " >&6
  2187. else
  2188. if test -n "$CC"; then
  2189. ac_cv_prog_CC="$CC" # Let the user override the test.
  2190. else
  2191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2192. for as_dir in $PATH
  2193. do
  2194. IFS=$as_save_IFS
  2195. test -z "$as_dir" && as_dir=.
  2196. for ac_exec_ext in '' $ac_executable_extensions; do
  2197. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2198. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2200. break 2
  2201. fi
  2202. done
  2203. done
  2204. IFS=$as_save_IFS
  2205. fi
  2206. fi
  2207. CC=$ac_cv_prog_CC
  2208. if test -n "$CC"; then
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2210. $as_echo "$CC" >&6; }
  2211. else
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2213. $as_echo "no" >&6; }
  2214. fi
  2215. fi
  2216. fi
  2217. if test -z "$CC"; then
  2218. # Extract the first word of "cc", so it can be a program name with args.
  2219. set dummy cc; ac_word=$2
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2221. $as_echo_n "checking for $ac_word... " >&6; }
  2222. if ${ac_cv_prog_CC+:} false; then :
  2223. $as_echo_n "(cached) " >&6
  2224. else
  2225. if test -n "$CC"; then
  2226. ac_cv_prog_CC="$CC" # Let the user override the test.
  2227. else
  2228. ac_prog_rejected=no
  2229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2230. for as_dir in $PATH
  2231. do
  2232. IFS=$as_save_IFS
  2233. test -z "$as_dir" && as_dir=.
  2234. for ac_exec_ext in '' $ac_executable_extensions; do
  2235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2236. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2237. ac_prog_rejected=yes
  2238. continue
  2239. fi
  2240. ac_cv_prog_CC="cc"
  2241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2242. break 2
  2243. fi
  2244. done
  2245. done
  2246. IFS=$as_save_IFS
  2247. if test $ac_prog_rejected = yes; then
  2248. # We found a bogon in the path, so make sure we never use it.
  2249. set dummy $ac_cv_prog_CC
  2250. shift
  2251. if test $# != 0; then
  2252. # We chose a different compiler from the bogus one.
  2253. # However, it has the same basename, so the bogon will be chosen
  2254. # first if we set CC to just the basename; use the full file name.
  2255. shift
  2256. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2257. fi
  2258. fi
  2259. fi
  2260. fi
  2261. CC=$ac_cv_prog_CC
  2262. if test -n "$CC"; then
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2264. $as_echo "$CC" >&6; }
  2265. else
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2267. $as_echo "no" >&6; }
  2268. fi
  2269. fi
  2270. if test -z "$CC"; then
  2271. if test -n "$ac_tool_prefix"; then
  2272. for ac_prog in cl.exe
  2273. do
  2274. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2275. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2277. $as_echo_n "checking for $ac_word... " >&6; }
  2278. if ${ac_cv_prog_CC+:} false; then :
  2279. $as_echo_n "(cached) " >&6
  2280. else
  2281. if test -n "$CC"; then
  2282. ac_cv_prog_CC="$CC" # Let the user override the test.
  2283. else
  2284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2285. for as_dir in $PATH
  2286. do
  2287. IFS=$as_save_IFS
  2288. test -z "$as_dir" && as_dir=.
  2289. for ac_exec_ext in '' $ac_executable_extensions; do
  2290. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2291. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2293. break 2
  2294. fi
  2295. done
  2296. done
  2297. IFS=$as_save_IFS
  2298. fi
  2299. fi
  2300. CC=$ac_cv_prog_CC
  2301. if test -n "$CC"; then
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2303. $as_echo "$CC" >&6; }
  2304. else
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2306. $as_echo "no" >&6; }
  2307. fi
  2308. test -n "$CC" && break
  2309. done
  2310. fi
  2311. if test -z "$CC"; then
  2312. ac_ct_CC=$CC
  2313. for ac_prog in cl.exe
  2314. do
  2315. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2316. set dummy $ac_prog; ac_word=$2
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2318. $as_echo_n "checking for $ac_word... " >&6; }
  2319. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2320. $as_echo_n "(cached) " >&6
  2321. else
  2322. if test -n "$ac_ct_CC"; then
  2323. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2324. else
  2325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2326. for as_dir in $PATH
  2327. do
  2328. IFS=$as_save_IFS
  2329. test -z "$as_dir" && as_dir=.
  2330. for ac_exec_ext in '' $ac_executable_extensions; do
  2331. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2332. ac_cv_prog_ac_ct_CC="$ac_prog"
  2333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2334. break 2
  2335. fi
  2336. done
  2337. done
  2338. IFS=$as_save_IFS
  2339. fi
  2340. fi
  2341. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2342. if test -n "$ac_ct_CC"; then
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2344. $as_echo "$ac_ct_CC" >&6; }
  2345. else
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2347. $as_echo "no" >&6; }
  2348. fi
  2349. test -n "$ac_ct_CC" && break
  2350. done
  2351. if test "x$ac_ct_CC" = x; then
  2352. CC=""
  2353. else
  2354. case $cross_compiling:$ac_tool_warned in
  2355. yes:)
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2357. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2358. ac_tool_warned=yes ;;
  2359. esac
  2360. CC=$ac_ct_CC
  2361. fi
  2362. fi
  2363. fi
  2364. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2365. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2366. as_fn_error $? "no acceptable C compiler found in \$PATH
  2367. See \`config.log' for more details" "$LINENO" 5; }
  2368. # Provide some information about the compiler.
  2369. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2370. set X $ac_compile
  2371. ac_compiler=$2
  2372. for ac_option in --version -v -V -qversion; do
  2373. { { ac_try="$ac_compiler $ac_option >&5"
  2374. case "(($ac_try" in
  2375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2376. *) ac_try_echo=$ac_try;;
  2377. esac
  2378. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2379. $as_echo "$ac_try_echo"; } >&5
  2380. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2381. ac_status=$?
  2382. if test -s conftest.err; then
  2383. sed '10a\
  2384. ... rest of stderr output deleted ...
  2385. 10q' conftest.err >conftest.er1
  2386. cat conftest.er1 >&5
  2387. fi
  2388. rm -f conftest.er1 conftest.err
  2389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2390. test $ac_status = 0; }
  2391. done
  2392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2393. /* end confdefs.h. */
  2394. int
  2395. main ()
  2396. {
  2397. ;
  2398. return 0;
  2399. }
  2400. _ACEOF
  2401. ac_clean_files_save=$ac_clean_files
  2402. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2403. # Try to create an executable without -o first, disregard a.out.
  2404. # It will help us diagnose broken compilers, and finding out an intuition
  2405. # of exeext.
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2407. $as_echo_n "checking whether the C compiler works... " >&6; }
  2408. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2409. # The possible output files:
  2410. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2411. ac_rmfiles=
  2412. for ac_file in $ac_files
  2413. do
  2414. case $ac_file in
  2415. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2416. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2417. esac
  2418. done
  2419. rm -f $ac_rmfiles
  2420. if { { ac_try="$ac_link_default"
  2421. case "(($ac_try" in
  2422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2423. *) ac_try_echo=$ac_try;;
  2424. esac
  2425. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2426. $as_echo "$ac_try_echo"; } >&5
  2427. (eval "$ac_link_default") 2>&5
  2428. ac_status=$?
  2429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2430. test $ac_status = 0; }; then :
  2431. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2432. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2433. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2434. # so that the user can short-circuit this test for compilers unknown to
  2435. # Autoconf.
  2436. for ac_file in $ac_files ''
  2437. do
  2438. test -f "$ac_file" || continue
  2439. case $ac_file in
  2440. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2441. ;;
  2442. [ab].out )
  2443. # We found the default executable, but exeext='' is most
  2444. # certainly right.
  2445. break;;
  2446. *.* )
  2447. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2448. then :; else
  2449. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2450. fi
  2451. # We set ac_cv_exeext here because the later test for it is not
  2452. # safe: cross compilers may not add the suffix if given an `-o'
  2453. # argument, so we may need to know it at that point already.
  2454. # Even if this section looks crufty: it has the advantage of
  2455. # actually working.
  2456. break;;
  2457. * )
  2458. break;;
  2459. esac
  2460. done
  2461. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2462. else
  2463. ac_file=''
  2464. fi
  2465. if test -z "$ac_file"; then :
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2467. $as_echo "no" >&6; }
  2468. $as_echo "$as_me: failed program was:" >&5
  2469. sed 's/^/| /' conftest.$ac_ext >&5
  2470. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2471. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2472. as_fn_error 77 "C compiler cannot create executables
  2473. See \`config.log' for more details" "$LINENO" 5; }
  2474. else
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2476. $as_echo "yes" >&6; }
  2477. fi
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2479. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2481. $as_echo "$ac_file" >&6; }
  2482. ac_exeext=$ac_cv_exeext
  2483. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2484. ac_clean_files=$ac_clean_files_save
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2486. $as_echo_n "checking for suffix of executables... " >&6; }
  2487. if { { ac_try="$ac_link"
  2488. case "(($ac_try" in
  2489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2490. *) ac_try_echo=$ac_try;;
  2491. esac
  2492. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2493. $as_echo "$ac_try_echo"; } >&5
  2494. (eval "$ac_link") 2>&5
  2495. ac_status=$?
  2496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2497. test $ac_status = 0; }; then :
  2498. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2499. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2500. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2501. # `rm'.
  2502. for ac_file in conftest.exe conftest conftest.*; do
  2503. test -f "$ac_file" || continue
  2504. case $ac_file in
  2505. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2506. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2507. break;;
  2508. * ) break;;
  2509. esac
  2510. done
  2511. else
  2512. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2513. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2514. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2515. See \`config.log' for more details" "$LINENO" 5; }
  2516. fi
  2517. rm -f conftest conftest$ac_cv_exeext
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2519. $as_echo "$ac_cv_exeext" >&6; }
  2520. rm -f conftest.$ac_ext
  2521. EXEEXT=$ac_cv_exeext
  2522. ac_exeext=$EXEEXT
  2523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2524. /* end confdefs.h. */
  2525. #include <stdio.h>
  2526. int
  2527. main ()
  2528. {
  2529. FILE *f = fopen ("conftest.out", "w");
  2530. return ferror (f) || fclose (f) != 0;
  2531. ;
  2532. return 0;
  2533. }
  2534. _ACEOF
  2535. ac_clean_files="$ac_clean_files conftest.out"
  2536. # Check that the compiler produces executables we can run. If not, either
  2537. # the compiler is broken, or we cross compile.
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2539. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2540. if test "$cross_compiling" != yes; then
  2541. { { ac_try="$ac_link"
  2542. case "(($ac_try" in
  2543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2544. *) ac_try_echo=$ac_try;;
  2545. esac
  2546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2547. $as_echo "$ac_try_echo"; } >&5
  2548. (eval "$ac_link") 2>&5
  2549. ac_status=$?
  2550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2551. test $ac_status = 0; }
  2552. if { ac_try='./conftest$ac_cv_exeext'
  2553. { { case "(($ac_try" in
  2554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2555. *) ac_try_echo=$ac_try;;
  2556. esac
  2557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2558. $as_echo "$ac_try_echo"; } >&5
  2559. (eval "$ac_try") 2>&5
  2560. ac_status=$?
  2561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2562. test $ac_status = 0; }; }; then
  2563. cross_compiling=no
  2564. else
  2565. if test "$cross_compiling" = maybe; then
  2566. cross_compiling=yes
  2567. else
  2568. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2569. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2570. as_fn_error $? "cannot run C compiled programs.
  2571. If you meant to cross compile, use \`--host'.
  2572. See \`config.log' for more details" "$LINENO" 5; }
  2573. fi
  2574. fi
  2575. fi
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2577. $as_echo "$cross_compiling" >&6; }
  2578. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2579. ac_clean_files=$ac_clean_files_save
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2581. $as_echo_n "checking for suffix of object files... " >&6; }
  2582. if ${ac_cv_objext+:} false; then :
  2583. $as_echo_n "(cached) " >&6
  2584. else
  2585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2586. /* end confdefs.h. */
  2587. int
  2588. main ()
  2589. {
  2590. ;
  2591. return 0;
  2592. }
  2593. _ACEOF
  2594. rm -f conftest.o conftest.obj
  2595. if { { ac_try="$ac_compile"
  2596. case "(($ac_try" in
  2597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2598. *) ac_try_echo=$ac_try;;
  2599. esac
  2600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2601. $as_echo "$ac_try_echo"; } >&5
  2602. (eval "$ac_compile") 2>&5
  2603. ac_status=$?
  2604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2605. test $ac_status = 0; }; then :
  2606. for ac_file in conftest.o conftest.obj conftest.*; do
  2607. test -f "$ac_file" || continue;
  2608. case $ac_file in
  2609. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2610. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2611. break;;
  2612. esac
  2613. done
  2614. else
  2615. $as_echo "$as_me: failed program was:" >&5
  2616. sed 's/^/| /' conftest.$ac_ext >&5
  2617. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2618. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2619. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2620. See \`config.log' for more details" "$LINENO" 5; }
  2621. fi
  2622. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2623. fi
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2625. $as_echo "$ac_cv_objext" >&6; }
  2626. OBJEXT=$ac_cv_objext
  2627. ac_objext=$OBJEXT
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2629. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2630. if ${ac_cv_c_compiler_gnu+:} false; then :
  2631. $as_echo_n "(cached) " >&6
  2632. else
  2633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2634. /* end confdefs.h. */
  2635. int
  2636. main ()
  2637. {
  2638. #ifndef __GNUC__
  2639. choke me
  2640. #endif
  2641. ;
  2642. return 0;
  2643. }
  2644. _ACEOF
  2645. if ac_fn_c_try_compile "$LINENO"; then :
  2646. ac_compiler_gnu=yes
  2647. else
  2648. ac_compiler_gnu=no
  2649. fi
  2650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2651. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2652. fi
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2654. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2655. if test $ac_compiler_gnu = yes; then
  2656. GCC=yes
  2657. else
  2658. GCC=
  2659. fi
  2660. ac_test_CFLAGS=${CFLAGS+set}
  2661. ac_save_CFLAGS=$CFLAGS
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2663. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2664. if ${ac_cv_prog_cc_g+:} false; then :
  2665. $as_echo_n "(cached) " >&6
  2666. else
  2667. ac_save_c_werror_flag=$ac_c_werror_flag
  2668. ac_c_werror_flag=yes
  2669. ac_cv_prog_cc_g=no
  2670. CFLAGS="-g"
  2671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2672. /* end confdefs.h. */
  2673. int
  2674. main ()
  2675. {
  2676. ;
  2677. return 0;
  2678. }
  2679. _ACEOF
  2680. if ac_fn_c_try_compile "$LINENO"; then :
  2681. ac_cv_prog_cc_g=yes
  2682. else
  2683. CFLAGS=""
  2684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2685. /* end confdefs.h. */
  2686. int
  2687. main ()
  2688. {
  2689. ;
  2690. return 0;
  2691. }
  2692. _ACEOF
  2693. if ac_fn_c_try_compile "$LINENO"; then :
  2694. else
  2695. ac_c_werror_flag=$ac_save_c_werror_flag
  2696. CFLAGS="-g"
  2697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2698. /* end confdefs.h. */
  2699. int
  2700. main ()
  2701. {
  2702. ;
  2703. return 0;
  2704. }
  2705. _ACEOF
  2706. if ac_fn_c_try_compile "$LINENO"; then :
  2707. ac_cv_prog_cc_g=yes
  2708. fi
  2709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2710. fi
  2711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2712. fi
  2713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2714. ac_c_werror_flag=$ac_save_c_werror_flag
  2715. fi
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2717. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2718. if test "$ac_test_CFLAGS" = set; then
  2719. CFLAGS=$ac_save_CFLAGS
  2720. elif test $ac_cv_prog_cc_g = yes; then
  2721. if test "$GCC" = yes; then
  2722. CFLAGS="-g -O2"
  2723. else
  2724. CFLAGS="-g"
  2725. fi
  2726. else
  2727. if test "$GCC" = yes; then
  2728. CFLAGS="-O2"
  2729. else
  2730. CFLAGS=
  2731. fi
  2732. fi
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2734. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2735. if ${ac_cv_prog_cc_c89+:} false; then :
  2736. $as_echo_n "(cached) " >&6
  2737. else
  2738. ac_cv_prog_cc_c89=no
  2739. ac_save_CC=$CC
  2740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2741. /* end confdefs.h. */
  2742. #include <stdarg.h>
  2743. #include <stdio.h>
  2744. struct stat;
  2745. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2746. struct buf { int x; };
  2747. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2748. static char *e (p, i)
  2749. char **p;
  2750. int i;
  2751. {
  2752. return p[i];
  2753. }
  2754. static char *f (char * (*g) (char **, int), char **p, ...)
  2755. {
  2756. char *s;
  2757. va_list v;
  2758. va_start (v,p);
  2759. s = g (p, va_arg (v,int));
  2760. va_end (v);
  2761. return s;
  2762. }
  2763. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2764. function prototypes and stuff, but not '\xHH' hex character constants.
  2765. These don't provoke an error unfortunately, instead are silently treated
  2766. as 'x'. The following induces an error, until -std is added to get
  2767. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2768. array size at least. It's necessary to write '\x00'==0 to get something
  2769. that's true only with -std. */
  2770. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2771. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2772. inside strings and character constants. */
  2773. #define FOO(x) 'x'
  2774. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2775. int test (int i, double x);
  2776. struct s1 {int (*f) (int a);};
  2777. struct s2 {int (*f) (double a);};
  2778. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2779. int argc;
  2780. char **argv;
  2781. int
  2782. main ()
  2783. {
  2784. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2785. ;
  2786. return 0;
  2787. }
  2788. _ACEOF
  2789. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2790. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2791. do
  2792. CC="$ac_save_CC $ac_arg"
  2793. if ac_fn_c_try_compile "$LINENO"; then :
  2794. ac_cv_prog_cc_c89=$ac_arg
  2795. fi
  2796. rm -f core conftest.err conftest.$ac_objext
  2797. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2798. done
  2799. rm -f conftest.$ac_ext
  2800. CC=$ac_save_CC
  2801. fi
  2802. # AC_CACHE_VAL
  2803. case "x$ac_cv_prog_cc_c89" in
  2804. x)
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2806. $as_echo "none needed" >&6; } ;;
  2807. xno)
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2809. $as_echo "unsupported" >&6; } ;;
  2810. *)
  2811. CC="$CC $ac_cv_prog_cc_c89"
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2813. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2814. esac
  2815. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2816. fi
  2817. ac_ext=c
  2818. ac_cpp='$CPP $CPPFLAGS'
  2819. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2820. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2821. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2822. ac_ext=c
  2823. ac_cpp='$CPP $CPPFLAGS'
  2824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  2828. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  2829. if ${am_cv_prog_cc_c_o+:} false; then :
  2830. $as_echo_n "(cached) " >&6
  2831. else
  2832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2833. /* end confdefs.h. */
  2834. int
  2835. main ()
  2836. {
  2837. ;
  2838. return 0;
  2839. }
  2840. _ACEOF
  2841. # Make sure it works both with $CC and with simple cc.
  2842. # Following AC_PROG_CC_C_O, we do the test twice because some
  2843. # compilers refuse to overwrite an existing .o file with -o,
  2844. # though they will create one.
  2845. am_cv_prog_cc_c_o=yes
  2846. for am_i in 1 2; do
  2847. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  2848. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  2849. ac_status=$?
  2850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2851. (exit $ac_status); } \
  2852. && test -f conftest2.$ac_objext; then
  2853. : OK
  2854. else
  2855. am_cv_prog_cc_c_o=no
  2856. break
  2857. fi
  2858. done
  2859. rm -f core conftest*
  2860. unset am_i
  2861. fi
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  2863. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  2864. if test "$am_cv_prog_cc_c_o" != yes; then
  2865. # Losing compiler, so override with the script.
  2866. # FIXME: It is wrong to rewrite CC.
  2867. # But if we don't then we get into trouble of one sort or another.
  2868. # A longer-term fix would be to have automake use am__CC in this case,
  2869. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  2870. CC="$am_aux_dir/compile $CC"
  2871. fi
  2872. ac_ext=c
  2873. ac_cpp='$CPP $CPPFLAGS'
  2874. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2875. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2876. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  2878. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  2879. if ${ac_cv_prog_cc_c99+:} false; then :
  2880. $as_echo_n "(cached) " >&6
  2881. else
  2882. ac_cv_prog_cc_c99=no
  2883. ac_save_CC=$CC
  2884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2885. /* end confdefs.h. */
  2886. #include <stdarg.h>
  2887. #include <stdbool.h>
  2888. #include <stdlib.h>
  2889. #include <wchar.h>
  2890. #include <stdio.h>
  2891. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2892. #define debug(...) fprintf (stderr, __VA_ARGS__)
  2893. #define showlist(...) puts (#__VA_ARGS__)
  2894. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2895. static void
  2896. test_varargs_macros (void)
  2897. {
  2898. int x = 1234;
  2899. int y = 5678;
  2900. debug ("Flag");
  2901. debug ("X = %d\n", x);
  2902. showlist (The first, second, and third items.);
  2903. report (x>y, "x is %d but y is %d", x, y);
  2904. }
  2905. // Check long long types.
  2906. #define BIG64 18446744073709551615ull
  2907. #define BIG32 4294967295ul
  2908. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2909. #if !BIG_OK
  2910. your preprocessor is broken;
  2911. #endif
  2912. #if BIG_OK
  2913. #else
  2914. your preprocessor is broken;
  2915. #endif
  2916. static long long int bignum = -9223372036854775807LL;
  2917. static unsigned long long int ubignum = BIG64;
  2918. struct incomplete_array
  2919. {
  2920. int datasize;
  2921. double data[];
  2922. };
  2923. struct named_init {
  2924. int number;
  2925. const wchar_t *name;
  2926. double average;
  2927. };
  2928. typedef const char *ccp;
  2929. static inline int
  2930. test_restrict (ccp restrict text)
  2931. {
  2932. // See if C++-style comments work.
  2933. // Iterate through items via the restricted pointer.
  2934. // Also check for declarations in for loops.
  2935. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  2936. continue;
  2937. return 0;
  2938. }
  2939. // Check varargs and va_copy.
  2940. static void
  2941. test_varargs (const char *format, ...)
  2942. {
  2943. va_list args;
  2944. va_start (args, format);
  2945. va_list args_copy;
  2946. va_copy (args_copy, args);
  2947. const char *str;
  2948. int number;
  2949. float fnumber;
  2950. while (*format)
  2951. {
  2952. switch (*format++)
  2953. {
  2954. case 's': // string
  2955. str = va_arg (args_copy, const char *);
  2956. break;
  2957. case 'd': // int
  2958. number = va_arg (args_copy, int);
  2959. break;
  2960. case 'f': // float
  2961. fnumber = va_arg (args_copy, double);
  2962. break;
  2963. default:
  2964. break;
  2965. }
  2966. }
  2967. va_end (args_copy);
  2968. va_end (args);
  2969. }
  2970. int
  2971. main ()
  2972. {
  2973. // Check bool.
  2974. _Bool success = false;
  2975. // Check restrict.
  2976. if (test_restrict ("String literal") == 0)
  2977. success = true;
  2978. char *restrict newvar = "Another string";
  2979. // Check varargs.
  2980. test_varargs ("s, d' f .", "string", 65, 34.234);
  2981. test_varargs_macros ();
  2982. // Check flexible array members.
  2983. struct incomplete_array *ia =
  2984. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2985. ia->datasize = 10;
  2986. for (int i = 0; i < ia->datasize; ++i)
  2987. ia->data[i] = i * 1.234;
  2988. // Check named initializers.
  2989. struct named_init ni = {
  2990. .number = 34,
  2991. .name = L"Test wide string",
  2992. .average = 543.34343,
  2993. };
  2994. ni.number = 58;
  2995. int dynamic_array[ni.number];
  2996. dynamic_array[ni.number - 1] = 543;
  2997. // work around unused variable warnings
  2998. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  2999. || dynamic_array[ni.number - 1] != 543);
  3000. ;
  3001. return 0;
  3002. }
  3003. _ACEOF
  3004. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3005. do
  3006. CC="$ac_save_CC $ac_arg"
  3007. if ac_fn_c_try_compile "$LINENO"; then :
  3008. ac_cv_prog_cc_c99=$ac_arg
  3009. fi
  3010. rm -f core conftest.err conftest.$ac_objext
  3011. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3012. done
  3013. rm -f conftest.$ac_ext
  3014. CC=$ac_save_CC
  3015. fi
  3016. # AC_CACHE_VAL
  3017. case "x$ac_cv_prog_cc_c99" in
  3018. x)
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3020. $as_echo "none needed" >&6; } ;;
  3021. xno)
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3023. $as_echo "unsupported" >&6; } ;;
  3024. *)
  3025. CC="$CC $ac_cv_prog_cc_c99"
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3027. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3028. esac
  3029. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3030. fi
  3031. am__api_version='1.15'
  3032. # Find a good install program. We prefer a C program (faster),
  3033. # so one script is as good as another. But avoid the broken or
  3034. # incompatible versions:
  3035. # SysV /etc/install, /usr/sbin/install
  3036. # SunOS /usr/etc/install
  3037. # IRIX /sbin/install
  3038. # AIX /bin/install
  3039. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3040. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3041. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3042. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3043. # OS/2's system install, which has a completely different semantic
  3044. # ./install, which can be erroneously created by make from ./install.sh.
  3045. # Reject install programs that cannot install multiple files.
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3047. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3048. if test -z "$INSTALL"; then
  3049. if ${ac_cv_path_install+:} false; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3053. for as_dir in $PATH
  3054. do
  3055. IFS=$as_save_IFS
  3056. test -z "$as_dir" && as_dir=.
  3057. # Account for people who put trailing slashes in PATH elements.
  3058. case $as_dir/ in #((
  3059. ./ | .// | /[cC]/* | \
  3060. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3061. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3062. /usr/ucb/* ) ;;
  3063. *)
  3064. # OSF1 and SCO ODT 3.0 have their own names for install.
  3065. # Don't use installbsd from OSF since it installs stuff as root
  3066. # by default.
  3067. for ac_prog in ginstall scoinst install; do
  3068. for ac_exec_ext in '' $ac_executable_extensions; do
  3069. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3070. if test $ac_prog = install &&
  3071. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3072. # AIX install. It has an incompatible calling convention.
  3073. :
  3074. elif test $ac_prog = install &&
  3075. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3076. # program-specific install script used by HP pwplus--don't use.
  3077. :
  3078. else
  3079. rm -rf conftest.one conftest.two conftest.dir
  3080. echo one > conftest.one
  3081. echo two > conftest.two
  3082. mkdir conftest.dir
  3083. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3084. test -s conftest.one && test -s conftest.two &&
  3085. test -s conftest.dir/conftest.one &&
  3086. test -s conftest.dir/conftest.two
  3087. then
  3088. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3089. break 3
  3090. fi
  3091. fi
  3092. fi
  3093. done
  3094. done
  3095. ;;
  3096. esac
  3097. done
  3098. IFS=$as_save_IFS
  3099. rm -rf conftest.one conftest.two conftest.dir
  3100. fi
  3101. if test "${ac_cv_path_install+set}" = set; then
  3102. INSTALL=$ac_cv_path_install
  3103. else
  3104. # As a last resort, use the slow shell script. Don't cache a
  3105. # value for INSTALL within a source directory, because that will
  3106. # break other packages using the cache if that directory is
  3107. # removed, or if the value is a relative name.
  3108. INSTALL=$ac_install_sh
  3109. fi
  3110. fi
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3112. $as_echo "$INSTALL" >&6; }
  3113. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3114. # It thinks the first close brace ends the variable substitution.
  3115. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3116. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3117. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3119. $as_echo_n "checking whether build environment is sane... " >&6; }
  3120. # Reject unsafe characters in $srcdir or the absolute working directory
  3121. # name. Accept space and tab only in the latter.
  3122. am_lf='
  3123. '
  3124. case `pwd` in
  3125. *[\\\"\#\$\&\'\`$am_lf]*)
  3126. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3127. esac
  3128. case $srcdir in
  3129. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3130. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3131. esac
  3132. # Do 'set' in a subshell so we don't clobber the current shell's
  3133. # arguments. Must try -L first in case configure is actually a
  3134. # symlink; some systems play weird games with the mod time of symlinks
  3135. # (eg FreeBSD returns the mod time of the symlink's containing
  3136. # directory).
  3137. if (
  3138. am_has_slept=no
  3139. for am_try in 1 2; do
  3140. echo "timestamp, slept: $am_has_slept" > conftest.file
  3141. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3142. if test "$*" = "X"; then
  3143. # -L didn't work.
  3144. set X `ls -t "$srcdir/configure" conftest.file`
  3145. fi
  3146. if test "$*" != "X $srcdir/configure conftest.file" \
  3147. && test "$*" != "X conftest.file $srcdir/configure"; then
  3148. # If neither matched, then we have a broken ls. This can happen
  3149. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3150. # broken ls alias from the environment. This has actually
  3151. # happened. Such a system could not be considered "sane".
  3152. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3153. alias in your environment" "$LINENO" 5
  3154. fi
  3155. if test "$2" = conftest.file || test $am_try -eq 2; then
  3156. break
  3157. fi
  3158. # Just in case.
  3159. sleep 1
  3160. am_has_slept=yes
  3161. done
  3162. test "$2" = conftest.file
  3163. )
  3164. then
  3165. # Ok.
  3166. :
  3167. else
  3168. as_fn_error $? "newly created file is older than distributed files!
  3169. Check your system clock" "$LINENO" 5
  3170. fi
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3172. $as_echo "yes" >&6; }
  3173. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3174. # generated files are strictly newer.
  3175. am_sleep_pid=
  3176. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3177. ( sleep 1 ) &
  3178. am_sleep_pid=$!
  3179. fi
  3180. rm -f conftest.file
  3181. test "$program_prefix" != NONE &&
  3182. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3183. # Use a double $ so make ignores it.
  3184. test "$program_suffix" != NONE &&
  3185. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3186. # Double any \ or $.
  3187. # By default was `s,x,x', remove it if useless.
  3188. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3189. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3190. if test x"${MISSING+set}" != xset; then
  3191. case $am_aux_dir in
  3192. *\ * | *\ *)
  3193. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3194. *)
  3195. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3196. esac
  3197. fi
  3198. # Use eval to expand $SHELL
  3199. if eval "$MISSING --is-lightweight"; then
  3200. am_missing_run="$MISSING "
  3201. else
  3202. am_missing_run=
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3204. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3205. fi
  3206. if test x"${install_sh+set}" != xset; then
  3207. case $am_aux_dir in
  3208. *\ * | *\ *)
  3209. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3210. *)
  3211. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3212. esac
  3213. fi
  3214. # Installed binaries are usually stripped using 'strip' when the user
  3215. # run "make install-strip". However 'strip' might not be the right
  3216. # tool to use in cross-compilation environments, therefore Automake
  3217. # will honor the 'STRIP' environment variable to overrule this program.
  3218. if test "$cross_compiling" != no; then
  3219. if test -n "$ac_tool_prefix"; then
  3220. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3221. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3223. $as_echo_n "checking for $ac_word... " >&6; }
  3224. if ${ac_cv_prog_STRIP+:} false; then :
  3225. $as_echo_n "(cached) " >&6
  3226. else
  3227. if test -n "$STRIP"; then
  3228. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3229. else
  3230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3231. for as_dir in $PATH
  3232. do
  3233. IFS=$as_save_IFS
  3234. test -z "$as_dir" && as_dir=.
  3235. for ac_exec_ext in '' $ac_executable_extensions; do
  3236. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3237. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3239. break 2
  3240. fi
  3241. done
  3242. done
  3243. IFS=$as_save_IFS
  3244. fi
  3245. fi
  3246. STRIP=$ac_cv_prog_STRIP
  3247. if test -n "$STRIP"; then
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3249. $as_echo "$STRIP" >&6; }
  3250. else
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3252. $as_echo "no" >&6; }
  3253. fi
  3254. fi
  3255. if test -z "$ac_cv_prog_STRIP"; then
  3256. ac_ct_STRIP=$STRIP
  3257. # Extract the first word of "strip", so it can be a program name with args.
  3258. set dummy strip; ac_word=$2
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3260. $as_echo_n "checking for $ac_word... " >&6; }
  3261. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3262. $as_echo_n "(cached) " >&6
  3263. else
  3264. if test -n "$ac_ct_STRIP"; then
  3265. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3266. else
  3267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3268. for as_dir in $PATH
  3269. do
  3270. IFS=$as_save_IFS
  3271. test -z "$as_dir" && as_dir=.
  3272. for ac_exec_ext in '' $ac_executable_extensions; do
  3273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3274. ac_cv_prog_ac_ct_STRIP="strip"
  3275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3276. break 2
  3277. fi
  3278. done
  3279. done
  3280. IFS=$as_save_IFS
  3281. fi
  3282. fi
  3283. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3284. if test -n "$ac_ct_STRIP"; then
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3286. $as_echo "$ac_ct_STRIP" >&6; }
  3287. else
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3289. $as_echo "no" >&6; }
  3290. fi
  3291. if test "x$ac_ct_STRIP" = x; then
  3292. STRIP=":"
  3293. else
  3294. case $cross_compiling:$ac_tool_warned in
  3295. yes:)
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3297. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3298. ac_tool_warned=yes ;;
  3299. esac
  3300. STRIP=$ac_ct_STRIP
  3301. fi
  3302. else
  3303. STRIP="$ac_cv_prog_STRIP"
  3304. fi
  3305. fi
  3306. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3308. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3309. if test -z "$MKDIR_P"; then
  3310. if ${ac_cv_path_mkdir+:} false; then :
  3311. $as_echo_n "(cached) " >&6
  3312. else
  3313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3314. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3315. do
  3316. IFS=$as_save_IFS
  3317. test -z "$as_dir" && as_dir=.
  3318. for ac_prog in mkdir gmkdir; do
  3319. for ac_exec_ext in '' $ac_executable_extensions; do
  3320. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3321. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3322. 'mkdir (GNU coreutils) '* | \
  3323. 'mkdir (coreutils) '* | \
  3324. 'mkdir (fileutils) '4.1*)
  3325. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3326. break 3;;
  3327. esac
  3328. done
  3329. done
  3330. done
  3331. IFS=$as_save_IFS
  3332. fi
  3333. test -d ./--version && rmdir ./--version
  3334. if test "${ac_cv_path_mkdir+set}" = set; then
  3335. MKDIR_P="$ac_cv_path_mkdir -p"
  3336. else
  3337. # As a last resort, use the slow shell script. Don't cache a
  3338. # value for MKDIR_P within a source directory, because that will
  3339. # break other packages using the cache if that directory is
  3340. # removed, or if the value is a relative name.
  3341. MKDIR_P="$ac_install_sh -d"
  3342. fi
  3343. fi
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3345. $as_echo "$MKDIR_P" >&6; }
  3346. for ac_prog in gawk mawk nawk awk
  3347. do
  3348. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3349. set dummy $ac_prog; ac_word=$2
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3351. $as_echo_n "checking for $ac_word... " >&6; }
  3352. if ${ac_cv_prog_AWK+:} false; then :
  3353. $as_echo_n "(cached) " >&6
  3354. else
  3355. if test -n "$AWK"; then
  3356. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3357. else
  3358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3359. for as_dir in $PATH
  3360. do
  3361. IFS=$as_save_IFS
  3362. test -z "$as_dir" && as_dir=.
  3363. for ac_exec_ext in '' $ac_executable_extensions; do
  3364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3365. ac_cv_prog_AWK="$ac_prog"
  3366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3367. break 2
  3368. fi
  3369. done
  3370. done
  3371. IFS=$as_save_IFS
  3372. fi
  3373. fi
  3374. AWK=$ac_cv_prog_AWK
  3375. if test -n "$AWK"; then
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3377. $as_echo "$AWK" >&6; }
  3378. else
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3380. $as_echo "no" >&6; }
  3381. fi
  3382. test -n "$AWK" && break
  3383. done
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3385. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3386. set x ${MAKE-make}
  3387. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3388. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3389. $as_echo_n "(cached) " >&6
  3390. else
  3391. cat >conftest.make <<\_ACEOF
  3392. SHELL = /bin/sh
  3393. all:
  3394. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3395. _ACEOF
  3396. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3397. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3398. *@@@%%%=?*=@@@%%%*)
  3399. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3400. *)
  3401. eval ac_cv_prog_make_${ac_make}_set=no;;
  3402. esac
  3403. rm -f conftest.make
  3404. fi
  3405. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3407. $as_echo "yes" >&6; }
  3408. SET_MAKE=
  3409. else
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3411. $as_echo "no" >&6; }
  3412. SET_MAKE="MAKE=${MAKE-make}"
  3413. fi
  3414. rm -rf .tst 2>/dev/null
  3415. mkdir .tst 2>/dev/null
  3416. if test -d .tst; then
  3417. am__leading_dot=.
  3418. else
  3419. am__leading_dot=_
  3420. fi
  3421. rmdir .tst 2>/dev/null
  3422. DEPDIR="${am__leading_dot}deps"
  3423. ac_config_commands="$ac_config_commands depfiles"
  3424. am_make=${MAKE-make}
  3425. cat > confinc << 'END'
  3426. am__doit:
  3427. @echo this is the am__doit target
  3428. .PHONY: am__doit
  3429. END
  3430. # If we don't find an include directive, just comment out the code.
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3432. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3433. am__include="#"
  3434. am__quote=
  3435. _am_result=none
  3436. # First try GNU make style include.
  3437. echo "include confinc" > confmf
  3438. # Ignore all kinds of additional output from 'make'.
  3439. case `$am_make -s -f confmf 2> /dev/null` in #(
  3440. *the\ am__doit\ target*)
  3441. am__include=include
  3442. am__quote=
  3443. _am_result=GNU
  3444. ;;
  3445. esac
  3446. # Now try BSD make style include.
  3447. if test "$am__include" = "#"; then
  3448. echo '.include "confinc"' > confmf
  3449. case `$am_make -s -f confmf 2> /dev/null` in #(
  3450. *the\ am__doit\ target*)
  3451. am__include=.include
  3452. am__quote="\""
  3453. _am_result=BSD
  3454. ;;
  3455. esac
  3456. fi
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3458. $as_echo "$_am_result" >&6; }
  3459. rm -f confinc confmf
  3460. # Check whether --enable-dependency-tracking was given.
  3461. if test "${enable_dependency_tracking+set}" = set; then :
  3462. enableval=$enable_dependency_tracking;
  3463. fi
  3464. if test "x$enable_dependency_tracking" != xno; then
  3465. am_depcomp="$ac_aux_dir/depcomp"
  3466. AMDEPBACKSLASH='\'
  3467. am__nodep='_no'
  3468. fi
  3469. if test "x$enable_dependency_tracking" != xno; then
  3470. AMDEP_TRUE=
  3471. AMDEP_FALSE='#'
  3472. else
  3473. AMDEP_TRUE='#'
  3474. AMDEP_FALSE=
  3475. fi
  3476. # Check whether --enable-silent-rules was given.
  3477. if test "${enable_silent_rules+set}" = set; then :
  3478. enableval=$enable_silent_rules;
  3479. fi
  3480. case $enable_silent_rules in # (((
  3481. yes) AM_DEFAULT_VERBOSITY=0;;
  3482. no) AM_DEFAULT_VERBOSITY=1;;
  3483. *) AM_DEFAULT_VERBOSITY=1;;
  3484. esac
  3485. am_make=${MAKE-make}
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3487. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3488. if ${am_cv_make_support_nested_variables+:} false; then :
  3489. $as_echo_n "(cached) " >&6
  3490. else
  3491. if $as_echo 'TRUE=$(BAR$(V))
  3492. BAR0=false
  3493. BAR1=true
  3494. V=1
  3495. am__doit:
  3496. @$(TRUE)
  3497. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3498. am_cv_make_support_nested_variables=yes
  3499. else
  3500. am_cv_make_support_nested_variables=no
  3501. fi
  3502. fi
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3504. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3505. if test $am_cv_make_support_nested_variables = yes; then
  3506. AM_V='$(V)'
  3507. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3508. else
  3509. AM_V=$AM_DEFAULT_VERBOSITY
  3510. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3511. fi
  3512. AM_BACKSLASH='\'
  3513. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3514. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3515. # is not polluted with repeated "-I."
  3516. am__isrc=' -I$(srcdir)'
  3517. # test to see if srcdir already configured
  3518. if test -f $srcdir/config.status; then
  3519. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3520. fi
  3521. fi
  3522. # test whether we have cygpath
  3523. if test -z "$CYGPATH_W"; then
  3524. if (cygpath --version) >/dev/null 2>/dev/null; then
  3525. CYGPATH_W='cygpath -w'
  3526. else
  3527. CYGPATH_W=echo
  3528. fi
  3529. fi
  3530. # Define the identity of the package.
  3531. PACKAGE='jose'
  3532. VERSION='10'
  3533. cat >>confdefs.h <<_ACEOF
  3534. #define PACKAGE "$PACKAGE"
  3535. _ACEOF
  3536. cat >>confdefs.h <<_ACEOF
  3537. #define VERSION "$VERSION"
  3538. _ACEOF
  3539. # Some tools Automake needs.
  3540. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3541. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3542. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3543. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3544. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3545. # For better backward compatibility. To be removed once Automake 1.9.x
  3546. # dies out for good. For more background, see:
  3547. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3548. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3549. mkdir_p='$(MKDIR_P)'
  3550. # We need awk for the "check" target (and possibly the TAP driver). The
  3551. # system "awk" is bad on some platforms.
  3552. # Always define AMTAR for backward compatibility. Yes, it's still used
  3553. # in the wild :-( We should find a proper way to deprecate it ...
  3554. AMTAR='$${TAR-tar}'
  3555. # We'll loop over all known methods to create a tar archive until one works.
  3556. _am_tools='gnutar pax cpio none'
  3557. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3558. depcc="$CC" am_compiler_list=
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3560. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3561. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3565. # We make a subdir and do the tests there. Otherwise we can end up
  3566. # making bogus files that we don't know about and never remove. For
  3567. # instance it was reported that on HP-UX the gcc test will end up
  3568. # making a dummy file named 'D' -- because '-MD' means "put the output
  3569. # in D".
  3570. rm -rf conftest.dir
  3571. mkdir conftest.dir
  3572. # Copy depcomp to subdir because otherwise we won't find it if we're
  3573. # using a relative directory.
  3574. cp "$am_depcomp" conftest.dir
  3575. cd conftest.dir
  3576. # We will build objects and dependencies in a subdirectory because
  3577. # it helps to detect inapplicable dependency modes. For instance
  3578. # both Tru64's cc and ICC support -MD to output dependencies as a
  3579. # side effect of compilation, but ICC will put the dependencies in
  3580. # the current directory while Tru64 will put them in the object
  3581. # directory.
  3582. mkdir sub
  3583. am_cv_CC_dependencies_compiler_type=none
  3584. if test "$am_compiler_list" = ""; then
  3585. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3586. fi
  3587. am__universal=false
  3588. case " $depcc " in #(
  3589. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3590. esac
  3591. for depmode in $am_compiler_list; do
  3592. # Setup a source with many dependencies, because some compilers
  3593. # like to wrap large dependency lists on column 80 (with \), and
  3594. # we should not choose a depcomp mode which is confused by this.
  3595. #
  3596. # We need to recreate these files for each test, as the compiler may
  3597. # overwrite some of them when testing with obscure command lines.
  3598. # This happens at least with the AIX C compiler.
  3599. : > sub/conftest.c
  3600. for i in 1 2 3 4 5 6; do
  3601. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3602. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3603. # Solaris 10 /bin/sh.
  3604. echo '/* dummy */' > sub/conftst$i.h
  3605. done
  3606. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3607. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3608. # mode. It turns out that the SunPro C++ compiler does not properly
  3609. # handle '-M -o', and we need to detect this. Also, some Intel
  3610. # versions had trouble with output in subdirs.
  3611. am__obj=sub/conftest.${OBJEXT-o}
  3612. am__minus_obj="-o $am__obj"
  3613. case $depmode in
  3614. gcc)
  3615. # This depmode causes a compiler race in universal mode.
  3616. test "$am__universal" = false || continue
  3617. ;;
  3618. nosideeffect)
  3619. # After this tag, mechanisms are not by side-effect, so they'll
  3620. # only be used when explicitly requested.
  3621. if test "x$enable_dependency_tracking" = xyes; then
  3622. continue
  3623. else
  3624. break
  3625. fi
  3626. ;;
  3627. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3628. # This compiler won't grok '-c -o', but also, the minuso test has
  3629. # not run yet. These depmodes are late enough in the game, and
  3630. # so weak that their functioning should not be impacted.
  3631. am__obj=conftest.${OBJEXT-o}
  3632. am__minus_obj=
  3633. ;;
  3634. none) break ;;
  3635. esac
  3636. if depmode=$depmode \
  3637. source=sub/conftest.c object=$am__obj \
  3638. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3639. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3640. >/dev/null 2>conftest.err &&
  3641. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3642. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3643. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3644. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3645. # icc doesn't choke on unknown options, it will just issue warnings
  3646. # or remarks (even with -Werror). So we grep stderr for any message
  3647. # that says an option was ignored or not supported.
  3648. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3649. # icc: Command line warning: ignoring option '-M'; no argument required
  3650. # The diagnosis changed in icc 8.0:
  3651. # icc: Command line remark: option '-MP' not supported
  3652. if (grep 'ignoring option' conftest.err ||
  3653. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3654. am_cv_CC_dependencies_compiler_type=$depmode
  3655. break
  3656. fi
  3657. fi
  3658. done
  3659. cd ..
  3660. rm -rf conftest.dir
  3661. else
  3662. am_cv_CC_dependencies_compiler_type=none
  3663. fi
  3664. fi
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3666. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3667. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3668. if
  3669. test "x$enable_dependency_tracking" != xno \
  3670. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3671. am__fastdepCC_TRUE=
  3672. am__fastdepCC_FALSE='#'
  3673. else
  3674. am__fastdepCC_TRUE='#'
  3675. am__fastdepCC_FALSE=
  3676. fi
  3677. # POSIX will say in a future version that running "rm -f" with no argument
  3678. # is OK; and we want to be able to make that assumption in our Makefile
  3679. # recipes. So use an aggressive probe to check that the usage we want is
  3680. # actually supported "in the wild" to an acceptable degree.
  3681. # See automake bug#10828.
  3682. # To make any issue more visible, cause the running configure to be aborted
  3683. # by default if the 'rm' program in use doesn't match our expectations; the
  3684. # user can still override this though.
  3685. if rm -f && rm -fr && rm -rf; then : OK; else
  3686. cat >&2 <<'END'
  3687. Oops!
  3688. Your 'rm' program seems unable to run without file operands specified
  3689. on the command line, even when the '-f' option is present. This is contrary
  3690. to the behaviour of most rm programs out there, and not conforming with
  3691. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3692. Please tell bug-automake@gnu.org about your system, including the value
  3693. of your $PATH and any error possibly output before this message. This
  3694. can help us improve future automake versions.
  3695. END
  3696. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3697. echo 'Configuration will proceed anyway, since you have set the' >&2
  3698. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3699. echo >&2
  3700. else
  3701. cat >&2 <<'END'
  3702. Aborting the configuration process, to ensure you take notice of the issue.
  3703. You can download and install GNU coreutils to get an 'rm' implementation
  3704. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3705. If you want to complete the configuration process using your problematic
  3706. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3707. to "yes", and re-run configure.
  3708. END
  3709. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3710. fi
  3711. fi
  3712. # Check whether --enable-silent-rules was given.
  3713. if test "${enable_silent_rules+set}" = set; then :
  3714. enableval=$enable_silent_rules;
  3715. fi
  3716. case $enable_silent_rules in # (((
  3717. yes) AM_DEFAULT_VERBOSITY=0;;
  3718. no) AM_DEFAULT_VERBOSITY=1;;
  3719. *) AM_DEFAULT_VERBOSITY=0;;
  3720. esac
  3721. am_make=${MAKE-make}
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3723. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3724. if ${am_cv_make_support_nested_variables+:} false; then :
  3725. $as_echo_n "(cached) " >&6
  3726. else
  3727. if $as_echo 'TRUE=$(BAR$(V))
  3728. BAR0=false
  3729. BAR1=true
  3730. V=1
  3731. am__doit:
  3732. @$(TRUE)
  3733. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3734. am_cv_make_support_nested_variables=yes
  3735. else
  3736. am_cv_make_support_nested_variables=no
  3737. fi
  3738. fi
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3740. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3741. if test $am_cv_make_support_nested_variables = yes; then
  3742. AM_V='$(V)'
  3743. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3744. else
  3745. AM_V=$AM_DEFAULT_VERBOSITY
  3746. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3747. fi
  3748. AM_BACKSLASH='\'
  3749. case `pwd` in
  3750. *\ * | *\ *)
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3752. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3753. esac
  3754. macro_version='2.4.6'
  3755. macro_revision='2.4.6'
  3756. ltmain=$ac_aux_dir/ltmain.sh
  3757. # Backslashify metacharacters that are still active within
  3758. # double-quoted strings.
  3759. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3760. # Same as above, but do not quote variable references.
  3761. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3762. # Sed substitution to delay expansion of an escaped shell variable in a
  3763. # double_quote_subst'ed string.
  3764. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3765. # Sed substitution to delay expansion of an escaped single quote.
  3766. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3767. # Sed substitution to avoid accidental globbing in evaled expressions
  3768. no_glob_subst='s/\*/\\\*/g'
  3769. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3770. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3771. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3773. $as_echo_n "checking how to print strings... " >&6; }
  3774. # Test print first, because it will be a builtin if present.
  3775. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3776. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3777. ECHO='print -r --'
  3778. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3779. ECHO='printf %s\n'
  3780. else
  3781. # Use this function as a fallback that always works.
  3782. func_fallback_echo ()
  3783. {
  3784. eval 'cat <<_LTECHO_EOF
  3785. $1
  3786. _LTECHO_EOF'
  3787. }
  3788. ECHO='func_fallback_echo'
  3789. fi
  3790. # func_echo_all arg...
  3791. # Invoke $ECHO with all args, space-separated.
  3792. func_echo_all ()
  3793. {
  3794. $ECHO ""
  3795. }
  3796. case $ECHO in
  3797. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3798. $as_echo "printf" >&6; } ;;
  3799. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3800. $as_echo "print -r" >&6; } ;;
  3801. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3802. $as_echo "cat" >&6; } ;;
  3803. esac
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3805. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3806. if ${ac_cv_path_SED+:} false; then :
  3807. $as_echo_n "(cached) " >&6
  3808. else
  3809. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3810. for ac_i in 1 2 3 4 5 6 7; do
  3811. ac_script="$ac_script$as_nl$ac_script"
  3812. done
  3813. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3814. { ac_script=; unset ac_script;}
  3815. if test -z "$SED"; then
  3816. ac_path_SED_found=false
  3817. # Loop through the user's path and test for each of PROGNAME-LIST
  3818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3819. for as_dir in $PATH
  3820. do
  3821. IFS=$as_save_IFS
  3822. test -z "$as_dir" && as_dir=.
  3823. for ac_prog in sed gsed; do
  3824. for ac_exec_ext in '' $ac_executable_extensions; do
  3825. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3826. as_fn_executable_p "$ac_path_SED" || continue
  3827. # Check for GNU ac_path_SED and select it if it is found.
  3828. # Check for GNU $ac_path_SED
  3829. case `"$ac_path_SED" --version 2>&1` in
  3830. *GNU*)
  3831. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3832. *)
  3833. ac_count=0
  3834. $as_echo_n 0123456789 >"conftest.in"
  3835. while :
  3836. do
  3837. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3838. mv "conftest.tmp" "conftest.in"
  3839. cp "conftest.in" "conftest.nl"
  3840. $as_echo '' >> "conftest.nl"
  3841. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3842. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3843. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3844. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3845. # Best one so far, save it but keep looking for a better one
  3846. ac_cv_path_SED="$ac_path_SED"
  3847. ac_path_SED_max=$ac_count
  3848. fi
  3849. # 10*(2^10) chars as input seems more than enough
  3850. test $ac_count -gt 10 && break
  3851. done
  3852. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3853. esac
  3854. $ac_path_SED_found && break 3
  3855. done
  3856. done
  3857. done
  3858. IFS=$as_save_IFS
  3859. if test -z "$ac_cv_path_SED"; then
  3860. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3861. fi
  3862. else
  3863. ac_cv_path_SED=$SED
  3864. fi
  3865. fi
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3867. $as_echo "$ac_cv_path_SED" >&6; }
  3868. SED="$ac_cv_path_SED"
  3869. rm -f conftest.sed
  3870. test -z "$SED" && SED=sed
  3871. Xsed="$SED -e 1s/^X//"
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3873. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3874. if ${ac_cv_path_GREP+:} false; then :
  3875. $as_echo_n "(cached) " >&6
  3876. else
  3877. if test -z "$GREP"; then
  3878. ac_path_GREP_found=false
  3879. # Loop through the user's path and test for each of PROGNAME-LIST
  3880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3881. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3882. do
  3883. IFS=$as_save_IFS
  3884. test -z "$as_dir" && as_dir=.
  3885. for ac_prog in grep ggrep; do
  3886. for ac_exec_ext in '' $ac_executable_extensions; do
  3887. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3888. as_fn_executable_p "$ac_path_GREP" || continue
  3889. # Check for GNU ac_path_GREP and select it if it is found.
  3890. # Check for GNU $ac_path_GREP
  3891. case `"$ac_path_GREP" --version 2>&1` in
  3892. *GNU*)
  3893. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3894. *)
  3895. ac_count=0
  3896. $as_echo_n 0123456789 >"conftest.in"
  3897. while :
  3898. do
  3899. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3900. mv "conftest.tmp" "conftest.in"
  3901. cp "conftest.in" "conftest.nl"
  3902. $as_echo 'GREP' >> "conftest.nl"
  3903. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3904. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3905. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3906. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3907. # Best one so far, save it but keep looking for a better one
  3908. ac_cv_path_GREP="$ac_path_GREP"
  3909. ac_path_GREP_max=$ac_count
  3910. fi
  3911. # 10*(2^10) chars as input seems more than enough
  3912. test $ac_count -gt 10 && break
  3913. done
  3914. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3915. esac
  3916. $ac_path_GREP_found && break 3
  3917. done
  3918. done
  3919. done
  3920. IFS=$as_save_IFS
  3921. if test -z "$ac_cv_path_GREP"; then
  3922. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3923. fi
  3924. else
  3925. ac_cv_path_GREP=$GREP
  3926. fi
  3927. fi
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3929. $as_echo "$ac_cv_path_GREP" >&6; }
  3930. GREP="$ac_cv_path_GREP"
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3932. $as_echo_n "checking for egrep... " >&6; }
  3933. if ${ac_cv_path_EGREP+:} false; then :
  3934. $as_echo_n "(cached) " >&6
  3935. else
  3936. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3937. then ac_cv_path_EGREP="$GREP -E"
  3938. else
  3939. if test -z "$EGREP"; then
  3940. ac_path_EGREP_found=false
  3941. # Loop through the user's path and test for each of PROGNAME-LIST
  3942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3943. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3944. do
  3945. IFS=$as_save_IFS
  3946. test -z "$as_dir" && as_dir=.
  3947. for ac_prog in egrep; do
  3948. for ac_exec_ext in '' $ac_executable_extensions; do
  3949. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3950. as_fn_executable_p "$ac_path_EGREP" || continue
  3951. # Check for GNU ac_path_EGREP and select it if it is found.
  3952. # Check for GNU $ac_path_EGREP
  3953. case `"$ac_path_EGREP" --version 2>&1` in
  3954. *GNU*)
  3955. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3956. *)
  3957. ac_count=0
  3958. $as_echo_n 0123456789 >"conftest.in"
  3959. while :
  3960. do
  3961. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3962. mv "conftest.tmp" "conftest.in"
  3963. cp "conftest.in" "conftest.nl"
  3964. $as_echo 'EGREP' >> "conftest.nl"
  3965. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3966. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3967. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3968. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3969. # Best one so far, save it but keep looking for a better one
  3970. ac_cv_path_EGREP="$ac_path_EGREP"
  3971. ac_path_EGREP_max=$ac_count
  3972. fi
  3973. # 10*(2^10) chars as input seems more than enough
  3974. test $ac_count -gt 10 && break
  3975. done
  3976. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3977. esac
  3978. $ac_path_EGREP_found && break 3
  3979. done
  3980. done
  3981. done
  3982. IFS=$as_save_IFS
  3983. if test -z "$ac_cv_path_EGREP"; then
  3984. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3985. fi
  3986. else
  3987. ac_cv_path_EGREP=$EGREP
  3988. fi
  3989. fi
  3990. fi
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3992. $as_echo "$ac_cv_path_EGREP" >&6; }
  3993. EGREP="$ac_cv_path_EGREP"
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3995. $as_echo_n "checking for fgrep... " >&6; }
  3996. if ${ac_cv_path_FGREP+:} false; then :
  3997. $as_echo_n "(cached) " >&6
  3998. else
  3999. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4000. then ac_cv_path_FGREP="$GREP -F"
  4001. else
  4002. if test -z "$FGREP"; then
  4003. ac_path_FGREP_found=false
  4004. # Loop through the user's path and test for each of PROGNAME-LIST
  4005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4006. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4007. do
  4008. IFS=$as_save_IFS
  4009. test -z "$as_dir" && as_dir=.
  4010. for ac_prog in fgrep; do
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4013. as_fn_executable_p "$ac_path_FGREP" || continue
  4014. # Check for GNU ac_path_FGREP and select it if it is found.
  4015. # Check for GNU $ac_path_FGREP
  4016. case `"$ac_path_FGREP" --version 2>&1` in
  4017. *GNU*)
  4018. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4019. *)
  4020. ac_count=0
  4021. $as_echo_n 0123456789 >"conftest.in"
  4022. while :
  4023. do
  4024. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4025. mv "conftest.tmp" "conftest.in"
  4026. cp "conftest.in" "conftest.nl"
  4027. $as_echo 'FGREP' >> "conftest.nl"
  4028. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4029. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4030. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4031. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4032. # Best one so far, save it but keep looking for a better one
  4033. ac_cv_path_FGREP="$ac_path_FGREP"
  4034. ac_path_FGREP_max=$ac_count
  4035. fi
  4036. # 10*(2^10) chars as input seems more than enough
  4037. test $ac_count -gt 10 && break
  4038. done
  4039. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4040. esac
  4041. $ac_path_FGREP_found && break 3
  4042. done
  4043. done
  4044. done
  4045. IFS=$as_save_IFS
  4046. if test -z "$ac_cv_path_FGREP"; then
  4047. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4048. fi
  4049. else
  4050. ac_cv_path_FGREP=$FGREP
  4051. fi
  4052. fi
  4053. fi
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4055. $as_echo "$ac_cv_path_FGREP" >&6; }
  4056. FGREP="$ac_cv_path_FGREP"
  4057. test -z "$GREP" && GREP=grep
  4058. # Check whether --with-gnu-ld was given.
  4059. if test "${with_gnu_ld+set}" = set; then :
  4060. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4061. else
  4062. with_gnu_ld=no
  4063. fi
  4064. ac_prog=ld
  4065. if test yes = "$GCC"; then
  4066. # Check if gcc -print-prog-name=ld gives a path.
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4068. $as_echo_n "checking for ld used by $CC... " >&6; }
  4069. case $host in
  4070. *-*-mingw*)
  4071. # gcc leaves a trailing carriage return, which upsets mingw
  4072. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4073. *)
  4074. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4075. esac
  4076. case $ac_prog in
  4077. # Accept absolute paths.
  4078. [\\/]* | ?:[\\/]*)
  4079. re_direlt='/[^/][^/]*/\.\./'
  4080. # Canonicalize the pathname of ld
  4081. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4082. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4083. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4084. done
  4085. test -z "$LD" && LD=$ac_prog
  4086. ;;
  4087. "")
  4088. # If it fails, then pretend we aren't using GCC.
  4089. ac_prog=ld
  4090. ;;
  4091. *)
  4092. # If it is relative, then search for the first ld in PATH.
  4093. with_gnu_ld=unknown
  4094. ;;
  4095. esac
  4096. elif test yes = "$with_gnu_ld"; then
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4098. $as_echo_n "checking for GNU ld... " >&6; }
  4099. else
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4101. $as_echo_n "checking for non-GNU ld... " >&6; }
  4102. fi
  4103. if ${lt_cv_path_LD+:} false; then :
  4104. $as_echo_n "(cached) " >&6
  4105. else
  4106. if test -z "$LD"; then
  4107. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4108. for ac_dir in $PATH; do
  4109. IFS=$lt_save_ifs
  4110. test -z "$ac_dir" && ac_dir=.
  4111. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4112. lt_cv_path_LD=$ac_dir/$ac_prog
  4113. # Check to see if the program is GNU ld. I'd rather use --version,
  4114. # but apparently some variants of GNU ld only accept -v.
  4115. # Break only if it was the GNU/non-GNU ld that we prefer.
  4116. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4117. *GNU* | *'with BFD'*)
  4118. test no != "$with_gnu_ld" && break
  4119. ;;
  4120. *)
  4121. test yes != "$with_gnu_ld" && break
  4122. ;;
  4123. esac
  4124. fi
  4125. done
  4126. IFS=$lt_save_ifs
  4127. else
  4128. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4129. fi
  4130. fi
  4131. LD=$lt_cv_path_LD
  4132. if test -n "$LD"; then
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4134. $as_echo "$LD" >&6; }
  4135. else
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4137. $as_echo "no" >&6; }
  4138. fi
  4139. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4141. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4142. if ${lt_cv_prog_gnu_ld+:} false; then :
  4143. $as_echo_n "(cached) " >&6
  4144. else
  4145. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4146. case `$LD -v 2>&1 </dev/null` in
  4147. *GNU* | *'with BFD'*)
  4148. lt_cv_prog_gnu_ld=yes
  4149. ;;
  4150. *)
  4151. lt_cv_prog_gnu_ld=no
  4152. ;;
  4153. esac
  4154. fi
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4156. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4157. with_gnu_ld=$lt_cv_prog_gnu_ld
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4159. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4160. if ${lt_cv_path_NM+:} false; then :
  4161. $as_echo_n "(cached) " >&6
  4162. else
  4163. if test -n "$NM"; then
  4164. # Let the user override the test.
  4165. lt_cv_path_NM=$NM
  4166. else
  4167. lt_nm_to_check=${ac_tool_prefix}nm
  4168. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4169. lt_nm_to_check="$lt_nm_to_check nm"
  4170. fi
  4171. for lt_tmp_nm in $lt_nm_to_check; do
  4172. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4173. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4174. IFS=$lt_save_ifs
  4175. test -z "$ac_dir" && ac_dir=.
  4176. tmp_nm=$ac_dir/$lt_tmp_nm
  4177. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4178. # Check to see if the nm accepts a BSD-compat flag.
  4179. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4180. # nm: unknown option "B" ignored
  4181. # Tru64's nm complains that /dev/null is an invalid object file
  4182. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4183. case $build_os in
  4184. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4185. *) lt_bad_file=/dev/null ;;
  4186. esac
  4187. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4188. *$lt_bad_file* | *'Invalid file or object type'*)
  4189. lt_cv_path_NM="$tmp_nm -B"
  4190. break 2
  4191. ;;
  4192. *)
  4193. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4194. */dev/null*)
  4195. lt_cv_path_NM="$tmp_nm -p"
  4196. break 2
  4197. ;;
  4198. *)
  4199. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4200. continue # so that we can try to find one that supports BSD flags
  4201. ;;
  4202. esac
  4203. ;;
  4204. esac
  4205. fi
  4206. done
  4207. IFS=$lt_save_ifs
  4208. done
  4209. : ${lt_cv_path_NM=no}
  4210. fi
  4211. fi
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4213. $as_echo "$lt_cv_path_NM" >&6; }
  4214. if test no != "$lt_cv_path_NM"; then
  4215. NM=$lt_cv_path_NM
  4216. else
  4217. # Didn't find any BSD compatible name lister, look for dumpbin.
  4218. if test -n "$DUMPBIN"; then :
  4219. # Let the user override the test.
  4220. else
  4221. if test -n "$ac_tool_prefix"; then
  4222. for ac_prog in dumpbin "link -dump"
  4223. do
  4224. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4225. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4227. $as_echo_n "checking for $ac_word... " >&6; }
  4228. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4229. $as_echo_n "(cached) " >&6
  4230. else
  4231. if test -n "$DUMPBIN"; then
  4232. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4233. else
  4234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4235. for as_dir in $PATH
  4236. do
  4237. IFS=$as_save_IFS
  4238. test -z "$as_dir" && as_dir=.
  4239. for ac_exec_ext in '' $ac_executable_extensions; do
  4240. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4241. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4243. break 2
  4244. fi
  4245. done
  4246. done
  4247. IFS=$as_save_IFS
  4248. fi
  4249. fi
  4250. DUMPBIN=$ac_cv_prog_DUMPBIN
  4251. if test -n "$DUMPBIN"; then
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4253. $as_echo "$DUMPBIN" >&6; }
  4254. else
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4256. $as_echo "no" >&6; }
  4257. fi
  4258. test -n "$DUMPBIN" && break
  4259. done
  4260. fi
  4261. if test -z "$DUMPBIN"; then
  4262. ac_ct_DUMPBIN=$DUMPBIN
  4263. for ac_prog in dumpbin "link -dump"
  4264. do
  4265. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4266. set dummy $ac_prog; ac_word=$2
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4268. $as_echo_n "checking for $ac_word... " >&6; }
  4269. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4270. $as_echo_n "(cached) " >&6
  4271. else
  4272. if test -n "$ac_ct_DUMPBIN"; then
  4273. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4274. else
  4275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4276. for as_dir in $PATH
  4277. do
  4278. IFS=$as_save_IFS
  4279. test -z "$as_dir" && as_dir=.
  4280. for ac_exec_ext in '' $ac_executable_extensions; do
  4281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4282. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4284. break 2
  4285. fi
  4286. done
  4287. done
  4288. IFS=$as_save_IFS
  4289. fi
  4290. fi
  4291. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4292. if test -n "$ac_ct_DUMPBIN"; then
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4294. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4295. else
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4297. $as_echo "no" >&6; }
  4298. fi
  4299. test -n "$ac_ct_DUMPBIN" && break
  4300. done
  4301. if test "x$ac_ct_DUMPBIN" = x; then
  4302. DUMPBIN=":"
  4303. else
  4304. case $cross_compiling:$ac_tool_warned in
  4305. yes:)
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4307. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4308. ac_tool_warned=yes ;;
  4309. esac
  4310. DUMPBIN=$ac_ct_DUMPBIN
  4311. fi
  4312. fi
  4313. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4314. *COFF*)
  4315. DUMPBIN="$DUMPBIN -symbols -headers"
  4316. ;;
  4317. *)
  4318. DUMPBIN=:
  4319. ;;
  4320. esac
  4321. fi
  4322. if test : != "$DUMPBIN"; then
  4323. NM=$DUMPBIN
  4324. fi
  4325. fi
  4326. test -z "$NM" && NM=nm
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4328. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4329. if ${lt_cv_nm_interface+:} false; then :
  4330. $as_echo_n "(cached) " >&6
  4331. else
  4332. lt_cv_nm_interface="BSD nm"
  4333. echo "int some_variable = 0;" > conftest.$ac_ext
  4334. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4335. (eval "$ac_compile" 2>conftest.err)
  4336. cat conftest.err >&5
  4337. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4338. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4339. cat conftest.err >&5
  4340. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4341. cat conftest.out >&5
  4342. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4343. lt_cv_nm_interface="MS dumpbin"
  4344. fi
  4345. rm -f conftest*
  4346. fi
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4348. $as_echo "$lt_cv_nm_interface" >&6; }
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4350. $as_echo_n "checking whether ln -s works... " >&6; }
  4351. LN_S=$as_ln_s
  4352. if test "$LN_S" = "ln -s"; then
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4354. $as_echo "yes" >&6; }
  4355. else
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4357. $as_echo "no, using $LN_S" >&6; }
  4358. fi
  4359. # find the maximum length of command line arguments
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4361. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4362. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4363. $as_echo_n "(cached) " >&6
  4364. else
  4365. i=0
  4366. teststring=ABCD
  4367. case $build_os in
  4368. msdosdjgpp*)
  4369. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4370. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4371. # during glob expansion). Even if it were fixed, the result of this
  4372. # check would be larger than it should be.
  4373. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4374. ;;
  4375. gnu*)
  4376. # Under GNU Hurd, this test is not required because there is
  4377. # no limit to the length of command line arguments.
  4378. # Libtool will interpret -1 as no limit whatsoever
  4379. lt_cv_sys_max_cmd_len=-1;
  4380. ;;
  4381. cygwin* | mingw* | cegcc*)
  4382. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4383. # about 5 minutes as the teststring grows exponentially.
  4384. # Worse, since 9x/ME are not pre-emptively multitasking,
  4385. # you end up with a "frozen" computer, even though with patience
  4386. # the test eventually succeeds (with a max line length of 256k).
  4387. # Instead, let's just punt: use the minimum linelength reported by
  4388. # all of the supported platforms: 8192 (on NT/2K/XP).
  4389. lt_cv_sys_max_cmd_len=8192;
  4390. ;;
  4391. mint*)
  4392. # On MiNT this can take a long time and run out of memory.
  4393. lt_cv_sys_max_cmd_len=8192;
  4394. ;;
  4395. amigaos*)
  4396. # On AmigaOS with pdksh, this test takes hours, literally.
  4397. # So we just punt and use a minimum line length of 8192.
  4398. lt_cv_sys_max_cmd_len=8192;
  4399. ;;
  4400. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4401. # This has been around since 386BSD, at least. Likely further.
  4402. if test -x /sbin/sysctl; then
  4403. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4404. elif test -x /usr/sbin/sysctl; then
  4405. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4406. else
  4407. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4408. fi
  4409. # And add a safety zone
  4410. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4411. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4412. ;;
  4413. interix*)
  4414. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4415. lt_cv_sys_max_cmd_len=196608
  4416. ;;
  4417. os2*)
  4418. # The test takes a long time on OS/2.
  4419. lt_cv_sys_max_cmd_len=8192
  4420. ;;
  4421. osf*)
  4422. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4423. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4424. # nice to cause kernel panics so lets avoid the loop below.
  4425. # First set a reasonable default.
  4426. lt_cv_sys_max_cmd_len=16384
  4427. #
  4428. if test -x /sbin/sysconfig; then
  4429. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4430. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4431. esac
  4432. fi
  4433. ;;
  4434. sco3.2v5*)
  4435. lt_cv_sys_max_cmd_len=102400
  4436. ;;
  4437. sysv5* | sco5v6* | sysv4.2uw2*)
  4438. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4439. if test -n "$kargmax"; then
  4440. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4441. else
  4442. lt_cv_sys_max_cmd_len=32768
  4443. fi
  4444. ;;
  4445. *)
  4446. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4447. if test -n "$lt_cv_sys_max_cmd_len" && \
  4448. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4449. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4450. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4451. else
  4452. # Make teststring a little bigger before we do anything with it.
  4453. # a 1K string should be a reasonable start.
  4454. for i in 1 2 3 4 5 6 7 8; do
  4455. teststring=$teststring$teststring
  4456. done
  4457. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4458. # If test is not a shell built-in, we'll probably end up computing a
  4459. # maximum length that is only half of the actual maximum length, but
  4460. # we can't tell.
  4461. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4462. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4463. test 17 != "$i" # 1/2 MB should be enough
  4464. do
  4465. i=`expr $i + 1`
  4466. teststring=$teststring$teststring
  4467. done
  4468. # Only check the string length outside the loop.
  4469. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4470. teststring=
  4471. # Add a significant safety factor because C++ compilers can tack on
  4472. # massive amounts of additional arguments before passing them to the
  4473. # linker. It appears as though 1/2 is a usable value.
  4474. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4475. fi
  4476. ;;
  4477. esac
  4478. fi
  4479. if test -n "$lt_cv_sys_max_cmd_len"; then
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4481. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4482. else
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4484. $as_echo "none" >&6; }
  4485. fi
  4486. max_cmd_len=$lt_cv_sys_max_cmd_len
  4487. : ${CP="cp -f"}
  4488. : ${MV="mv -f"}
  4489. : ${RM="rm -f"}
  4490. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4491. lt_unset=unset
  4492. else
  4493. lt_unset=false
  4494. fi
  4495. # test EBCDIC or ASCII
  4496. case `echo X|tr X '\101'` in
  4497. A) # ASCII based system
  4498. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4499. lt_SP2NL='tr \040 \012'
  4500. lt_NL2SP='tr \015\012 \040\040'
  4501. ;;
  4502. *) # EBCDIC based system
  4503. lt_SP2NL='tr \100 \n'
  4504. lt_NL2SP='tr \r\n \100\100'
  4505. ;;
  4506. esac
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4508. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4509. if ${lt_cv_to_host_file_cmd+:} false; then :
  4510. $as_echo_n "(cached) " >&6
  4511. else
  4512. case $host in
  4513. *-*-mingw* )
  4514. case $build in
  4515. *-*-mingw* ) # actually msys
  4516. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4517. ;;
  4518. *-*-cygwin* )
  4519. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4520. ;;
  4521. * ) # otherwise, assume *nix
  4522. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4523. ;;
  4524. esac
  4525. ;;
  4526. *-*-cygwin* )
  4527. case $build in
  4528. *-*-mingw* ) # actually msys
  4529. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4530. ;;
  4531. *-*-cygwin* )
  4532. lt_cv_to_host_file_cmd=func_convert_file_noop
  4533. ;;
  4534. * ) # otherwise, assume *nix
  4535. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4536. ;;
  4537. esac
  4538. ;;
  4539. * ) # unhandled hosts (and "normal" native builds)
  4540. lt_cv_to_host_file_cmd=func_convert_file_noop
  4541. ;;
  4542. esac
  4543. fi
  4544. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4546. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4548. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4549. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4550. $as_echo_n "(cached) " >&6
  4551. else
  4552. #assume ordinary cross tools, or native build.
  4553. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4554. case $host in
  4555. *-*-mingw* )
  4556. case $build in
  4557. *-*-mingw* ) # actually msys
  4558. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4559. ;;
  4560. esac
  4561. ;;
  4562. esac
  4563. fi
  4564. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4566. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4568. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4569. if ${lt_cv_ld_reload_flag+:} false; then :
  4570. $as_echo_n "(cached) " >&6
  4571. else
  4572. lt_cv_ld_reload_flag='-r'
  4573. fi
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4575. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4576. reload_flag=$lt_cv_ld_reload_flag
  4577. case $reload_flag in
  4578. "" | " "*) ;;
  4579. *) reload_flag=" $reload_flag" ;;
  4580. esac
  4581. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4582. case $host_os in
  4583. cygwin* | mingw* | pw32* | cegcc*)
  4584. if test yes != "$GCC"; then
  4585. reload_cmds=false
  4586. fi
  4587. ;;
  4588. darwin*)
  4589. if test yes = "$GCC"; then
  4590. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4591. else
  4592. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4593. fi
  4594. ;;
  4595. esac
  4596. if test -n "$ac_tool_prefix"; then
  4597. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4598. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4600. $as_echo_n "checking for $ac_word... " >&6; }
  4601. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4602. $as_echo_n "(cached) " >&6
  4603. else
  4604. if test -n "$OBJDUMP"; then
  4605. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4606. else
  4607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4608. for as_dir in $PATH
  4609. do
  4610. IFS=$as_save_IFS
  4611. test -z "$as_dir" && as_dir=.
  4612. for ac_exec_ext in '' $ac_executable_extensions; do
  4613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4614. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4616. break 2
  4617. fi
  4618. done
  4619. done
  4620. IFS=$as_save_IFS
  4621. fi
  4622. fi
  4623. OBJDUMP=$ac_cv_prog_OBJDUMP
  4624. if test -n "$OBJDUMP"; then
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4626. $as_echo "$OBJDUMP" >&6; }
  4627. else
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4629. $as_echo "no" >&6; }
  4630. fi
  4631. fi
  4632. if test -z "$ac_cv_prog_OBJDUMP"; then
  4633. ac_ct_OBJDUMP=$OBJDUMP
  4634. # Extract the first word of "objdump", so it can be a program name with args.
  4635. set dummy objdump; ac_word=$2
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4637. $as_echo_n "checking for $ac_word... " >&6; }
  4638. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4639. $as_echo_n "(cached) " >&6
  4640. else
  4641. if test -n "$ac_ct_OBJDUMP"; then
  4642. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4643. else
  4644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4645. for as_dir in $PATH
  4646. do
  4647. IFS=$as_save_IFS
  4648. test -z "$as_dir" && as_dir=.
  4649. for ac_exec_ext in '' $ac_executable_extensions; do
  4650. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4651. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4653. break 2
  4654. fi
  4655. done
  4656. done
  4657. IFS=$as_save_IFS
  4658. fi
  4659. fi
  4660. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4661. if test -n "$ac_ct_OBJDUMP"; then
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4663. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4664. else
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4666. $as_echo "no" >&6; }
  4667. fi
  4668. if test "x$ac_ct_OBJDUMP" = x; then
  4669. OBJDUMP="false"
  4670. else
  4671. case $cross_compiling:$ac_tool_warned in
  4672. yes:)
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4675. ac_tool_warned=yes ;;
  4676. esac
  4677. OBJDUMP=$ac_ct_OBJDUMP
  4678. fi
  4679. else
  4680. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4681. fi
  4682. test -z "$OBJDUMP" && OBJDUMP=objdump
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4684. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4685. if ${lt_cv_deplibs_check_method+:} false; then :
  4686. $as_echo_n "(cached) " >&6
  4687. else
  4688. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4689. lt_cv_file_magic_test_file=
  4690. lt_cv_deplibs_check_method='unknown'
  4691. # Need to set the preceding variable on all platforms that support
  4692. # interlibrary dependencies.
  4693. # 'none' -- dependencies not supported.
  4694. # 'unknown' -- same as none, but documents that we really don't know.
  4695. # 'pass_all' -- all dependencies passed with no checks.
  4696. # 'test_compile' -- check by making test program.
  4697. # 'file_magic [[regex]]' -- check by looking for files in library path
  4698. # that responds to the $file_magic_cmd with a given extended regex.
  4699. # If you have 'file' or equivalent on your system and you're not sure
  4700. # whether 'pass_all' will *always* work, you probably want this one.
  4701. case $host_os in
  4702. aix[4-9]*)
  4703. lt_cv_deplibs_check_method=pass_all
  4704. ;;
  4705. beos*)
  4706. lt_cv_deplibs_check_method=pass_all
  4707. ;;
  4708. bsdi[45]*)
  4709. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4710. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4711. lt_cv_file_magic_test_file=/shlib/libc.so
  4712. ;;
  4713. cygwin*)
  4714. # func_win32_libid is a shell function defined in ltmain.sh
  4715. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4716. lt_cv_file_magic_cmd='func_win32_libid'
  4717. ;;
  4718. mingw* | pw32*)
  4719. # Base MSYS/MinGW do not provide the 'file' command needed by
  4720. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4721. # unless we find 'file', for example because we are cross-compiling.
  4722. if ( file / ) >/dev/null 2>&1; then
  4723. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4724. lt_cv_file_magic_cmd='func_win32_libid'
  4725. else
  4726. # Keep this pattern in sync with the one in func_win32_libid.
  4727. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4728. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4729. fi
  4730. ;;
  4731. cegcc*)
  4732. # use the weaker test based on 'objdump'. See mingw*.
  4733. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4734. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4735. ;;
  4736. darwin* | rhapsody*)
  4737. lt_cv_deplibs_check_method=pass_all
  4738. ;;
  4739. freebsd* | dragonfly*)
  4740. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4741. case $host_cpu in
  4742. i*86 )
  4743. # Not sure whether the presence of OpenBSD here was a mistake.
  4744. # Let's accept both of them until this is cleared up.
  4745. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4746. lt_cv_file_magic_cmd=/usr/bin/file
  4747. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4748. ;;
  4749. esac
  4750. else
  4751. lt_cv_deplibs_check_method=pass_all
  4752. fi
  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 | gnu*)
  4789. lt_cv_deplibs_check_method=pass_all
  4790. ;;
  4791. netbsd*)
  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* | bitrig*)
  4807. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; 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. os2*)
  4855. lt_cv_deplibs_check_method=pass_all
  4856. ;;
  4857. esac
  4858. fi
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4860. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4861. file_magic_glob=
  4862. want_nocaseglob=no
  4863. if test "$build" = "$host"; then
  4864. case $host_os in
  4865. mingw* | pw32*)
  4866. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4867. want_nocaseglob=yes
  4868. else
  4869. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4870. fi
  4871. ;;
  4872. esac
  4873. fi
  4874. file_magic_cmd=$lt_cv_file_magic_cmd
  4875. deplibs_check_method=$lt_cv_deplibs_check_method
  4876. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4877. if test -n "$ac_tool_prefix"; then
  4878. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4879. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4881. $as_echo_n "checking for $ac_word... " >&6; }
  4882. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. if test -n "$DLLTOOL"; then
  4886. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4887. else
  4888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4889. for as_dir in $PATH
  4890. do
  4891. IFS=$as_save_IFS
  4892. test -z "$as_dir" && as_dir=.
  4893. for ac_exec_ext in '' $ac_executable_extensions; do
  4894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4895. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4897. break 2
  4898. fi
  4899. done
  4900. done
  4901. IFS=$as_save_IFS
  4902. fi
  4903. fi
  4904. DLLTOOL=$ac_cv_prog_DLLTOOL
  4905. if test -n "$DLLTOOL"; then
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4907. $as_echo "$DLLTOOL" >&6; }
  4908. else
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4910. $as_echo "no" >&6; }
  4911. fi
  4912. fi
  4913. if test -z "$ac_cv_prog_DLLTOOL"; then
  4914. ac_ct_DLLTOOL=$DLLTOOL
  4915. # Extract the first word of "dlltool", so it can be a program name with args.
  4916. set dummy dlltool; ac_word=$2
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4918. $as_echo_n "checking for $ac_word... " >&6; }
  4919. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. if test -n "$ac_ct_DLLTOOL"; then
  4923. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4924. else
  4925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4926. for as_dir in $PATH
  4927. do
  4928. IFS=$as_save_IFS
  4929. test -z "$as_dir" && as_dir=.
  4930. for ac_exec_ext in '' $ac_executable_extensions; do
  4931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4932. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4934. break 2
  4935. fi
  4936. done
  4937. done
  4938. IFS=$as_save_IFS
  4939. fi
  4940. fi
  4941. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4942. if test -n "$ac_ct_DLLTOOL"; then
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4944. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4945. else
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4947. $as_echo "no" >&6; }
  4948. fi
  4949. if test "x$ac_ct_DLLTOOL" = x; then
  4950. DLLTOOL="false"
  4951. else
  4952. case $cross_compiling:$ac_tool_warned in
  4953. yes:)
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4956. ac_tool_warned=yes ;;
  4957. esac
  4958. DLLTOOL=$ac_ct_DLLTOOL
  4959. fi
  4960. else
  4961. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4962. fi
  4963. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4965. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4966. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4967. $as_echo_n "(cached) " >&6
  4968. else
  4969. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4970. case $host_os in
  4971. cygwin* | mingw* | pw32* | cegcc*)
  4972. # two different shell functions defined in ltmain.sh;
  4973. # decide which one to use based on capabilities of $DLLTOOL
  4974. case `$DLLTOOL --help 2>&1` in
  4975. *--identify-strict*)
  4976. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4977. ;;
  4978. *)
  4979. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4980. ;;
  4981. esac
  4982. ;;
  4983. *)
  4984. # fallback: assume linklib IS sharedlib
  4985. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4986. ;;
  4987. esac
  4988. fi
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4990. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4991. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4992. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4993. if test -n "$ac_tool_prefix"; then
  4994. for ac_prog in ar
  4995. do
  4996. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4997. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4999. $as_echo_n "checking for $ac_word... " >&6; }
  5000. if ${ac_cv_prog_AR+:} false; then :
  5001. $as_echo_n "(cached) " >&6
  5002. else
  5003. if test -n "$AR"; then
  5004. ac_cv_prog_AR="$AR" # Let the user override the test.
  5005. else
  5006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5007. for as_dir in $PATH
  5008. do
  5009. IFS=$as_save_IFS
  5010. test -z "$as_dir" && as_dir=.
  5011. for ac_exec_ext in '' $ac_executable_extensions; do
  5012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5013. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5015. break 2
  5016. fi
  5017. done
  5018. done
  5019. IFS=$as_save_IFS
  5020. fi
  5021. fi
  5022. AR=$ac_cv_prog_AR
  5023. if test -n "$AR"; then
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5025. $as_echo "$AR" >&6; }
  5026. else
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5028. $as_echo "no" >&6; }
  5029. fi
  5030. test -n "$AR" && break
  5031. done
  5032. fi
  5033. if test -z "$AR"; then
  5034. ac_ct_AR=$AR
  5035. for ac_prog in ar
  5036. do
  5037. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5038. set dummy $ac_prog; ac_word=$2
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5040. $as_echo_n "checking for $ac_word... " >&6; }
  5041. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5042. $as_echo_n "(cached) " >&6
  5043. else
  5044. if test -n "$ac_ct_AR"; then
  5045. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5046. else
  5047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5048. for as_dir in $PATH
  5049. do
  5050. IFS=$as_save_IFS
  5051. test -z "$as_dir" && as_dir=.
  5052. for ac_exec_ext in '' $ac_executable_extensions; do
  5053. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5054. ac_cv_prog_ac_ct_AR="$ac_prog"
  5055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5056. break 2
  5057. fi
  5058. done
  5059. done
  5060. IFS=$as_save_IFS
  5061. fi
  5062. fi
  5063. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5064. if test -n "$ac_ct_AR"; then
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5066. $as_echo "$ac_ct_AR" >&6; }
  5067. else
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5069. $as_echo "no" >&6; }
  5070. fi
  5071. test -n "$ac_ct_AR" && break
  5072. done
  5073. if test "x$ac_ct_AR" = x; then
  5074. AR="false"
  5075. else
  5076. case $cross_compiling:$ac_tool_warned in
  5077. yes:)
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5079. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5080. ac_tool_warned=yes ;;
  5081. esac
  5082. AR=$ac_ct_AR
  5083. fi
  5084. fi
  5085. : ${AR=ar}
  5086. : ${AR_FLAGS=cru}
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5088. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5089. if ${lt_cv_ar_at_file+:} false; then :
  5090. $as_echo_n "(cached) " >&6
  5091. else
  5092. lt_cv_ar_at_file=no
  5093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5094. /* end confdefs.h. */
  5095. int
  5096. main ()
  5097. {
  5098. ;
  5099. return 0;
  5100. }
  5101. _ACEOF
  5102. if ac_fn_c_try_compile "$LINENO"; then :
  5103. echo conftest.$ac_objext > conftest.lst
  5104. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5105. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5106. (eval $lt_ar_try) 2>&5
  5107. ac_status=$?
  5108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5109. test $ac_status = 0; }
  5110. if test 0 -eq "$ac_status"; then
  5111. # Ensure the archiver fails upon bogus file names.
  5112. rm -f conftest.$ac_objext libconftest.a
  5113. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5114. (eval $lt_ar_try) 2>&5
  5115. ac_status=$?
  5116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5117. test $ac_status = 0; }
  5118. if test 0 -ne "$ac_status"; then
  5119. lt_cv_ar_at_file=@
  5120. fi
  5121. fi
  5122. rm -f conftest.* libconftest.a
  5123. fi
  5124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5125. fi
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5127. $as_echo "$lt_cv_ar_at_file" >&6; }
  5128. if test no = "$lt_cv_ar_at_file"; then
  5129. archiver_list_spec=
  5130. else
  5131. archiver_list_spec=$lt_cv_ar_at_file
  5132. fi
  5133. if test -n "$ac_tool_prefix"; then
  5134. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5135. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5137. $as_echo_n "checking for $ac_word... " >&6; }
  5138. if ${ac_cv_prog_STRIP+:} false; then :
  5139. $as_echo_n "(cached) " >&6
  5140. else
  5141. if test -n "$STRIP"; then
  5142. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5143. else
  5144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5145. for as_dir in $PATH
  5146. do
  5147. IFS=$as_save_IFS
  5148. test -z "$as_dir" && as_dir=.
  5149. for ac_exec_ext in '' $ac_executable_extensions; do
  5150. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5151. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5153. break 2
  5154. fi
  5155. done
  5156. done
  5157. IFS=$as_save_IFS
  5158. fi
  5159. fi
  5160. STRIP=$ac_cv_prog_STRIP
  5161. if test -n "$STRIP"; then
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5163. $as_echo "$STRIP" >&6; }
  5164. else
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5166. $as_echo "no" >&6; }
  5167. fi
  5168. fi
  5169. if test -z "$ac_cv_prog_STRIP"; then
  5170. ac_ct_STRIP=$STRIP
  5171. # Extract the first word of "strip", so it can be a program name with args.
  5172. set dummy strip; ac_word=$2
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5174. $as_echo_n "checking for $ac_word... " >&6; }
  5175. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5176. $as_echo_n "(cached) " >&6
  5177. else
  5178. if test -n "$ac_ct_STRIP"; then
  5179. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5180. else
  5181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5182. for as_dir in $PATH
  5183. do
  5184. IFS=$as_save_IFS
  5185. test -z "$as_dir" && as_dir=.
  5186. for ac_exec_ext in '' $ac_executable_extensions; do
  5187. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5188. ac_cv_prog_ac_ct_STRIP="strip"
  5189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5190. break 2
  5191. fi
  5192. done
  5193. done
  5194. IFS=$as_save_IFS
  5195. fi
  5196. fi
  5197. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5198. if test -n "$ac_ct_STRIP"; then
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5200. $as_echo "$ac_ct_STRIP" >&6; }
  5201. else
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5203. $as_echo "no" >&6; }
  5204. fi
  5205. if test "x$ac_ct_STRIP" = x; then
  5206. STRIP=":"
  5207. else
  5208. case $cross_compiling:$ac_tool_warned in
  5209. yes:)
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5211. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5212. ac_tool_warned=yes ;;
  5213. esac
  5214. STRIP=$ac_ct_STRIP
  5215. fi
  5216. else
  5217. STRIP="$ac_cv_prog_STRIP"
  5218. fi
  5219. test -z "$STRIP" && STRIP=:
  5220. if test -n "$ac_tool_prefix"; then
  5221. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5222. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5224. $as_echo_n "checking for $ac_word... " >&6; }
  5225. if ${ac_cv_prog_RANLIB+:} false; then :
  5226. $as_echo_n "(cached) " >&6
  5227. else
  5228. if test -n "$RANLIB"; then
  5229. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5230. else
  5231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5232. for as_dir in $PATH
  5233. do
  5234. IFS=$as_save_IFS
  5235. test -z "$as_dir" && as_dir=.
  5236. for ac_exec_ext in '' $ac_executable_extensions; do
  5237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5238. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5240. break 2
  5241. fi
  5242. done
  5243. done
  5244. IFS=$as_save_IFS
  5245. fi
  5246. fi
  5247. RANLIB=$ac_cv_prog_RANLIB
  5248. if test -n "$RANLIB"; then
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5250. $as_echo "$RANLIB" >&6; }
  5251. else
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5253. $as_echo "no" >&6; }
  5254. fi
  5255. fi
  5256. if test -z "$ac_cv_prog_RANLIB"; then
  5257. ac_ct_RANLIB=$RANLIB
  5258. # Extract the first word of "ranlib", so it can be a program name with args.
  5259. set dummy ranlib; ac_word=$2
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5261. $as_echo_n "checking for $ac_word... " >&6; }
  5262. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5263. $as_echo_n "(cached) " >&6
  5264. else
  5265. if test -n "$ac_ct_RANLIB"; then
  5266. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5267. else
  5268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5269. for as_dir in $PATH
  5270. do
  5271. IFS=$as_save_IFS
  5272. test -z "$as_dir" && as_dir=.
  5273. for ac_exec_ext in '' $ac_executable_extensions; do
  5274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5275. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5277. break 2
  5278. fi
  5279. done
  5280. done
  5281. IFS=$as_save_IFS
  5282. fi
  5283. fi
  5284. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5285. if test -n "$ac_ct_RANLIB"; then
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5287. $as_echo "$ac_ct_RANLIB" >&6; }
  5288. else
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5290. $as_echo "no" >&6; }
  5291. fi
  5292. if test "x$ac_ct_RANLIB" = x; then
  5293. RANLIB=":"
  5294. else
  5295. case $cross_compiling:$ac_tool_warned in
  5296. yes:)
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5298. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5299. ac_tool_warned=yes ;;
  5300. esac
  5301. RANLIB=$ac_ct_RANLIB
  5302. fi
  5303. else
  5304. RANLIB="$ac_cv_prog_RANLIB"
  5305. fi
  5306. test -z "$RANLIB" && RANLIB=:
  5307. # Determine commands to create old-style static archives.
  5308. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5309. old_postinstall_cmds='chmod 644 $oldlib'
  5310. old_postuninstall_cmds=
  5311. if test -n "$RANLIB"; then
  5312. case $host_os in
  5313. bitrig* | openbsd*)
  5314. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5315. ;;
  5316. *)
  5317. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5318. ;;
  5319. esac
  5320. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5321. fi
  5322. case $host_os in
  5323. darwin*)
  5324. lock_old_archive_extraction=yes ;;
  5325. *)
  5326. lock_old_archive_extraction=no ;;
  5327. esac
  5328. # If no C compiler was specified, use CC.
  5329. LTCC=${LTCC-"$CC"}
  5330. # If no C compiler flags were specified, use CFLAGS.
  5331. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5332. # Allow CC to be a program name with arguments.
  5333. compiler=$CC
  5334. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5336. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5337. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5338. $as_echo_n "(cached) " >&6
  5339. else
  5340. # These are sane defaults that work on at least a few old systems.
  5341. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5342. # Character class describing NM global symbol codes.
  5343. symcode='[BCDEGRST]'
  5344. # Regexp to match symbols that can be accessed directly from C.
  5345. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5346. # Define system-specific variables.
  5347. case $host_os in
  5348. aix*)
  5349. symcode='[BCDT]'
  5350. ;;
  5351. cygwin* | mingw* | pw32* | cegcc*)
  5352. symcode='[ABCDGISTW]'
  5353. ;;
  5354. hpux*)
  5355. if test ia64 = "$host_cpu"; then
  5356. symcode='[ABCDEGRST]'
  5357. fi
  5358. ;;
  5359. irix* | nonstopux*)
  5360. symcode='[BCDEGRST]'
  5361. ;;
  5362. osf*)
  5363. symcode='[BCDEGQRST]'
  5364. ;;
  5365. solaris*)
  5366. symcode='[BDRT]'
  5367. ;;
  5368. sco3.2v5*)
  5369. symcode='[DT]'
  5370. ;;
  5371. sysv4.2uw2*)
  5372. symcode='[DT]'
  5373. ;;
  5374. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5375. symcode='[ABDT]'
  5376. ;;
  5377. sysv4)
  5378. symcode='[DFNSTU]'
  5379. ;;
  5380. esac
  5381. # If we're using GNU nm, then use its standard symbol codes.
  5382. case `$NM -V 2>&1` in
  5383. *GNU* | *'with BFD'*)
  5384. symcode='[ABCDGIRSTW]' ;;
  5385. esac
  5386. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5387. # Gets list of data symbols to import.
  5388. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5389. # Adjust the below global symbol transforms to fixup imported variables.
  5390. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5391. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5392. lt_c_name_lib_hook="\
  5393. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5394. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5395. else
  5396. # Disable hooks by default.
  5397. lt_cv_sys_global_symbol_to_import=
  5398. lt_cdecl_hook=
  5399. lt_c_name_hook=
  5400. lt_c_name_lib_hook=
  5401. fi
  5402. # Transform an extracted symbol line into a proper C declaration.
  5403. # Some systems (esp. on ia64) link data and code symbols differently,
  5404. # so use this general approach.
  5405. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5406. $lt_cdecl_hook\
  5407. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5408. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5409. # Transform an extracted symbol line into symbol name and symbol address
  5410. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5411. $lt_c_name_hook\
  5412. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5413. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5414. # Transform an extracted symbol line into symbol name with lib prefix and
  5415. # symbol address.
  5416. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5417. $lt_c_name_lib_hook\
  5418. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5419. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5420. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5421. # Handle CRLF in mingw tool chain
  5422. opt_cr=
  5423. case $build_os in
  5424. mingw*)
  5425. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5426. ;;
  5427. esac
  5428. # Try without a prefix underscore, then with it.
  5429. for ac_symprfx in "" "_"; do
  5430. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5431. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5432. # Write the raw and C identifiers.
  5433. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5434. # Fake it for dumpbin and say T for any non-static function,
  5435. # D for any global variable and I for any imported variable.
  5436. # Also find C++ and __fastcall symbols from MSVC++,
  5437. # which start with @ or ?.
  5438. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5439. " {last_section=section; section=\$ 3};"\
  5440. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5441. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5442. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5443. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5444. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5445. " \$ 0!~/External *\|/{next};"\
  5446. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5447. " {if(hide[section]) next};"\
  5448. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5449. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5450. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5451. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5452. " ' prfx=^$ac_symprfx"
  5453. else
  5454. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5455. fi
  5456. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5457. # Check to see that the pipe works correctly.
  5458. pipe_works=no
  5459. rm -f conftest*
  5460. cat > conftest.$ac_ext <<_LT_EOF
  5461. #ifdef __cplusplus
  5462. extern "C" {
  5463. #endif
  5464. char nm_test_var;
  5465. void nm_test_func(void);
  5466. void nm_test_func(void){}
  5467. #ifdef __cplusplus
  5468. }
  5469. #endif
  5470. int main(){nm_test_var='a';nm_test_func();return(0);}
  5471. _LT_EOF
  5472. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5473. (eval $ac_compile) 2>&5
  5474. ac_status=$?
  5475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5476. test $ac_status = 0; }; then
  5477. # Now try to grab the symbols.
  5478. nlist=conftest.nm
  5479. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5480. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5481. ac_status=$?
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5483. test $ac_status = 0; } && test -s "$nlist"; then
  5484. # Try sorting and uniquifying the output.
  5485. if sort "$nlist" | uniq > "$nlist"T; then
  5486. mv -f "$nlist"T "$nlist"
  5487. else
  5488. rm -f "$nlist"T
  5489. fi
  5490. # Make sure that we snagged all the symbols we need.
  5491. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5492. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5493. cat <<_LT_EOF > conftest.$ac_ext
  5494. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5495. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5496. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5497. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5498. # define LT_DLSYM_CONST
  5499. #elif defined __osf__
  5500. /* This system does not cope well with relocations in const data. */
  5501. # define LT_DLSYM_CONST
  5502. #else
  5503. # define LT_DLSYM_CONST const
  5504. #endif
  5505. #ifdef __cplusplus
  5506. extern "C" {
  5507. #endif
  5508. _LT_EOF
  5509. # Now generate the symbol file.
  5510. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5511. cat <<_LT_EOF >> conftest.$ac_ext
  5512. /* The mapping between symbol names and symbols. */
  5513. LT_DLSYM_CONST struct {
  5514. const char *name;
  5515. void *address;
  5516. }
  5517. lt__PROGRAM__LTX_preloaded_symbols[] =
  5518. {
  5519. { "@PROGRAM@", (void *) 0 },
  5520. _LT_EOF
  5521. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5522. cat <<\_LT_EOF >> conftest.$ac_ext
  5523. {0, (void *) 0}
  5524. };
  5525. /* This works around a problem in FreeBSD linker */
  5526. #ifdef FREEBSD_WORKAROUND
  5527. static const void *lt_preloaded_setup() {
  5528. return lt__PROGRAM__LTX_preloaded_symbols;
  5529. }
  5530. #endif
  5531. #ifdef __cplusplus
  5532. }
  5533. #endif
  5534. _LT_EOF
  5535. # Now try linking the two files.
  5536. mv conftest.$ac_objext conftstm.$ac_objext
  5537. lt_globsym_save_LIBS=$LIBS
  5538. lt_globsym_save_CFLAGS=$CFLAGS
  5539. LIBS=conftstm.$ac_objext
  5540. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5541. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5542. (eval $ac_link) 2>&5
  5543. ac_status=$?
  5544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5545. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5546. pipe_works=yes
  5547. fi
  5548. LIBS=$lt_globsym_save_LIBS
  5549. CFLAGS=$lt_globsym_save_CFLAGS
  5550. else
  5551. echo "cannot find nm_test_func in $nlist" >&5
  5552. fi
  5553. else
  5554. echo "cannot find nm_test_var in $nlist" >&5
  5555. fi
  5556. else
  5557. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5558. fi
  5559. else
  5560. echo "$progname: failed program was:" >&5
  5561. cat conftest.$ac_ext >&5
  5562. fi
  5563. rm -rf conftest* conftst*
  5564. # Do not use the global_symbol_pipe unless it works.
  5565. if test yes = "$pipe_works"; then
  5566. break
  5567. else
  5568. lt_cv_sys_global_symbol_pipe=
  5569. fi
  5570. done
  5571. fi
  5572. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5573. lt_cv_sys_global_symbol_to_cdecl=
  5574. fi
  5575. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5577. $as_echo "failed" >&6; }
  5578. else
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5580. $as_echo "ok" >&6; }
  5581. fi
  5582. # Response file support.
  5583. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5584. nm_file_list_spec='@'
  5585. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5586. nm_file_list_spec='@'
  5587. fi
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5589. $as_echo_n "checking for sysroot... " >&6; }
  5590. # Check whether --with-sysroot was given.
  5591. if test "${with_sysroot+set}" = set; then :
  5592. withval=$with_sysroot;
  5593. else
  5594. with_sysroot=no
  5595. fi
  5596. lt_sysroot=
  5597. case $with_sysroot in #(
  5598. yes)
  5599. if test yes = "$GCC"; then
  5600. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5601. fi
  5602. ;; #(
  5603. /*)
  5604. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5605. ;; #(
  5606. no|'')
  5607. ;; #(
  5608. *)
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5610. $as_echo "$with_sysroot" >&6; }
  5611. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5612. ;;
  5613. esac
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5615. $as_echo "${lt_sysroot:-no}" >&6; }
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5617. $as_echo_n "checking for a working dd... " >&6; }
  5618. if ${ac_cv_path_lt_DD+:} false; then :
  5619. $as_echo_n "(cached) " >&6
  5620. else
  5621. printf 0123456789abcdef0123456789abcdef >conftest.i
  5622. cat conftest.i conftest.i >conftest2.i
  5623. : ${lt_DD:=$DD}
  5624. if test -z "$lt_DD"; then
  5625. ac_path_lt_DD_found=false
  5626. # Loop through the user's path and test for each of PROGNAME-LIST
  5627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5628. for as_dir in $PATH
  5629. do
  5630. IFS=$as_save_IFS
  5631. test -z "$as_dir" && as_dir=.
  5632. for ac_prog in dd; do
  5633. for ac_exec_ext in '' $ac_executable_extensions; do
  5634. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5635. as_fn_executable_p "$ac_path_lt_DD" || continue
  5636. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5637. cmp -s conftest.i conftest.out \
  5638. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5639. fi
  5640. $ac_path_lt_DD_found && break 3
  5641. done
  5642. done
  5643. done
  5644. IFS=$as_save_IFS
  5645. if test -z "$ac_cv_path_lt_DD"; then
  5646. :
  5647. fi
  5648. else
  5649. ac_cv_path_lt_DD=$lt_DD
  5650. fi
  5651. rm -f conftest.i conftest2.i conftest.out
  5652. fi
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5654. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5656. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5657. if ${lt_cv_truncate_bin+:} false; then :
  5658. $as_echo_n "(cached) " >&6
  5659. else
  5660. printf 0123456789abcdef0123456789abcdef >conftest.i
  5661. cat conftest.i conftest.i >conftest2.i
  5662. lt_cv_truncate_bin=
  5663. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5664. cmp -s conftest.i conftest.out \
  5665. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5666. fi
  5667. rm -f conftest.i conftest2.i conftest.out
  5668. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5669. fi
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5671. $as_echo "$lt_cv_truncate_bin" >&6; }
  5672. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5673. func_cc_basename ()
  5674. {
  5675. for cc_temp in $*""; do
  5676. case $cc_temp in
  5677. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5678. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5679. \-*) ;;
  5680. *) break;;
  5681. esac
  5682. done
  5683. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5684. }
  5685. # Check whether --enable-libtool-lock was given.
  5686. if test "${enable_libtool_lock+set}" = set; then :
  5687. enableval=$enable_libtool_lock;
  5688. fi
  5689. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5690. # Some flags need to be propagated to the compiler or linker for good
  5691. # libtool support.
  5692. case $host in
  5693. ia64-*-hpux*)
  5694. # Find out what ABI is being produced by ac_compile, and set mode
  5695. # options accordingly.
  5696. echo 'int i;' > conftest.$ac_ext
  5697. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5698. (eval $ac_compile) 2>&5
  5699. ac_status=$?
  5700. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5701. test $ac_status = 0; }; then
  5702. case `/usr/bin/file conftest.$ac_objext` in
  5703. *ELF-32*)
  5704. HPUX_IA64_MODE=32
  5705. ;;
  5706. *ELF-64*)
  5707. HPUX_IA64_MODE=64
  5708. ;;
  5709. esac
  5710. fi
  5711. rm -rf conftest*
  5712. ;;
  5713. *-*-irix6*)
  5714. # Find out what ABI is being produced by ac_compile, and set linker
  5715. # options accordingly.
  5716. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5717. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5718. (eval $ac_compile) 2>&5
  5719. ac_status=$?
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5721. test $ac_status = 0; }; then
  5722. if test yes = "$lt_cv_prog_gnu_ld"; then
  5723. case `/usr/bin/file conftest.$ac_objext` in
  5724. *32-bit*)
  5725. LD="${LD-ld} -melf32bsmip"
  5726. ;;
  5727. *N32*)
  5728. LD="${LD-ld} -melf32bmipn32"
  5729. ;;
  5730. *64-bit*)
  5731. LD="${LD-ld} -melf64bmip"
  5732. ;;
  5733. esac
  5734. else
  5735. case `/usr/bin/file conftest.$ac_objext` in
  5736. *32-bit*)
  5737. LD="${LD-ld} -32"
  5738. ;;
  5739. *N32*)
  5740. LD="${LD-ld} -n32"
  5741. ;;
  5742. *64-bit*)
  5743. LD="${LD-ld} -64"
  5744. ;;
  5745. esac
  5746. fi
  5747. fi
  5748. rm -rf conftest*
  5749. ;;
  5750. mips64*-*linux*)
  5751. # Find out what ABI is being produced by ac_compile, and set linker
  5752. # options accordingly.
  5753. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5754. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5755. (eval $ac_compile) 2>&5
  5756. ac_status=$?
  5757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5758. test $ac_status = 0; }; then
  5759. emul=elf
  5760. case `/usr/bin/file conftest.$ac_objext` in
  5761. *32-bit*)
  5762. emul="${emul}32"
  5763. ;;
  5764. *64-bit*)
  5765. emul="${emul}64"
  5766. ;;
  5767. esac
  5768. case `/usr/bin/file conftest.$ac_objext` in
  5769. *MSB*)
  5770. emul="${emul}btsmip"
  5771. ;;
  5772. *LSB*)
  5773. emul="${emul}ltsmip"
  5774. ;;
  5775. esac
  5776. case `/usr/bin/file conftest.$ac_objext` in
  5777. *N32*)
  5778. emul="${emul}n32"
  5779. ;;
  5780. esac
  5781. LD="${LD-ld} -m $emul"
  5782. fi
  5783. rm -rf conftest*
  5784. ;;
  5785. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5786. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5787. # Find out what ABI is being produced by ac_compile, and set linker
  5788. # options accordingly. Note that the listed cases only cover the
  5789. # situations where additional linker options are needed (such as when
  5790. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5791. # vice versa); the common cases where no linker options are needed do
  5792. # not appear in the list.
  5793. echo 'int i;' > conftest.$ac_ext
  5794. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5795. (eval $ac_compile) 2>&5
  5796. ac_status=$?
  5797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5798. test $ac_status = 0; }; then
  5799. case `/usr/bin/file conftest.o` in
  5800. *32-bit*)
  5801. case $host in
  5802. x86_64-*kfreebsd*-gnu)
  5803. LD="${LD-ld} -m elf_i386_fbsd"
  5804. ;;
  5805. x86_64-*linux*)
  5806. case `/usr/bin/file conftest.o` in
  5807. *x86-64*)
  5808. LD="${LD-ld} -m elf32_x86_64"
  5809. ;;
  5810. *)
  5811. LD="${LD-ld} -m elf_i386"
  5812. ;;
  5813. esac
  5814. ;;
  5815. powerpc64le-*linux*)
  5816. LD="${LD-ld} -m elf32lppclinux"
  5817. ;;
  5818. powerpc64-*linux*)
  5819. LD="${LD-ld} -m elf32ppclinux"
  5820. ;;
  5821. s390x-*linux*)
  5822. LD="${LD-ld} -m elf_s390"
  5823. ;;
  5824. sparc64-*linux*)
  5825. LD="${LD-ld} -m elf32_sparc"
  5826. ;;
  5827. esac
  5828. ;;
  5829. *64-bit*)
  5830. case $host in
  5831. x86_64-*kfreebsd*-gnu)
  5832. LD="${LD-ld} -m elf_x86_64_fbsd"
  5833. ;;
  5834. x86_64-*linux*)
  5835. LD="${LD-ld} -m elf_x86_64"
  5836. ;;
  5837. powerpcle-*linux*)
  5838. LD="${LD-ld} -m elf64lppc"
  5839. ;;
  5840. powerpc-*linux*)
  5841. LD="${LD-ld} -m elf64ppc"
  5842. ;;
  5843. s390*-*linux*|s390*-*tpf*)
  5844. LD="${LD-ld} -m elf64_s390"
  5845. ;;
  5846. sparc*-*linux*)
  5847. LD="${LD-ld} -m elf64_sparc"
  5848. ;;
  5849. esac
  5850. ;;
  5851. esac
  5852. fi
  5853. rm -rf conftest*
  5854. ;;
  5855. *-*-sco3.2v5*)
  5856. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5857. SAVE_CFLAGS=$CFLAGS
  5858. CFLAGS="$CFLAGS -belf"
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5860. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5861. if ${lt_cv_cc_needs_belf+:} false; then :
  5862. $as_echo_n "(cached) " >&6
  5863. else
  5864. ac_ext=c
  5865. ac_cpp='$CPP $CPPFLAGS'
  5866. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5867. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5868. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5870. /* end confdefs.h. */
  5871. int
  5872. main ()
  5873. {
  5874. ;
  5875. return 0;
  5876. }
  5877. _ACEOF
  5878. if ac_fn_c_try_link "$LINENO"; then :
  5879. lt_cv_cc_needs_belf=yes
  5880. else
  5881. lt_cv_cc_needs_belf=no
  5882. fi
  5883. rm -f core conftest.err conftest.$ac_objext \
  5884. conftest$ac_exeext conftest.$ac_ext
  5885. ac_ext=c
  5886. ac_cpp='$CPP $CPPFLAGS'
  5887. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5888. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5889. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5890. fi
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5892. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5893. if test yes != "$lt_cv_cc_needs_belf"; then
  5894. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5895. CFLAGS=$SAVE_CFLAGS
  5896. fi
  5897. ;;
  5898. *-*solaris*)
  5899. # Find out what ABI is being produced by ac_compile, and set linker
  5900. # options accordingly.
  5901. echo 'int i;' > conftest.$ac_ext
  5902. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5903. (eval $ac_compile) 2>&5
  5904. ac_status=$?
  5905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5906. test $ac_status = 0; }; then
  5907. case `/usr/bin/file conftest.o` in
  5908. *64-bit*)
  5909. case $lt_cv_prog_gnu_ld in
  5910. yes*)
  5911. case $host in
  5912. i?86-*-solaris*|x86_64-*-solaris*)
  5913. LD="${LD-ld} -m elf_x86_64"
  5914. ;;
  5915. sparc*-*-solaris*)
  5916. LD="${LD-ld} -m elf64_sparc"
  5917. ;;
  5918. esac
  5919. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5920. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5921. LD=${LD-ld}_sol2
  5922. fi
  5923. ;;
  5924. *)
  5925. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5926. LD="${LD-ld} -64"
  5927. fi
  5928. ;;
  5929. esac
  5930. ;;
  5931. esac
  5932. fi
  5933. rm -rf conftest*
  5934. ;;
  5935. esac
  5936. need_locks=$enable_libtool_lock
  5937. if test -n "$ac_tool_prefix"; then
  5938. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5939. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5941. $as_echo_n "checking for $ac_word... " >&6; }
  5942. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5943. $as_echo_n "(cached) " >&6
  5944. else
  5945. if test -n "$MANIFEST_TOOL"; then
  5946. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5947. else
  5948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5949. for as_dir in $PATH
  5950. do
  5951. IFS=$as_save_IFS
  5952. test -z "$as_dir" && as_dir=.
  5953. for ac_exec_ext in '' $ac_executable_extensions; do
  5954. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5955. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5957. break 2
  5958. fi
  5959. done
  5960. done
  5961. IFS=$as_save_IFS
  5962. fi
  5963. fi
  5964. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5965. if test -n "$MANIFEST_TOOL"; then
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5967. $as_echo "$MANIFEST_TOOL" >&6; }
  5968. else
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5970. $as_echo "no" >&6; }
  5971. fi
  5972. fi
  5973. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5974. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5975. # Extract the first word of "mt", so it can be a program name with args.
  5976. set dummy mt; ac_word=$2
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5978. $as_echo_n "checking for $ac_word... " >&6; }
  5979. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5980. $as_echo_n "(cached) " >&6
  5981. else
  5982. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5983. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5984. else
  5985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5986. for as_dir in $PATH
  5987. do
  5988. IFS=$as_save_IFS
  5989. test -z "$as_dir" && as_dir=.
  5990. for ac_exec_ext in '' $ac_executable_extensions; do
  5991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5992. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5994. break 2
  5995. fi
  5996. done
  5997. done
  5998. IFS=$as_save_IFS
  5999. fi
  6000. fi
  6001. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6002. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6004. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6005. else
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6007. $as_echo "no" >&6; }
  6008. fi
  6009. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6010. MANIFEST_TOOL=":"
  6011. else
  6012. case $cross_compiling:$ac_tool_warned in
  6013. yes:)
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6015. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6016. ac_tool_warned=yes ;;
  6017. esac
  6018. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6019. fi
  6020. else
  6021. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6022. fi
  6023. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6025. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6026. if ${lt_cv_path_mainfest_tool+:} false; then :
  6027. $as_echo_n "(cached) " >&6
  6028. else
  6029. lt_cv_path_mainfest_tool=no
  6030. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6031. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6032. cat conftest.err >&5
  6033. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6034. lt_cv_path_mainfest_tool=yes
  6035. fi
  6036. rm -f conftest*
  6037. fi
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6039. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6040. if test yes != "$lt_cv_path_mainfest_tool"; then
  6041. MANIFEST_TOOL=:
  6042. fi
  6043. case $host_os in
  6044. rhapsody* | darwin*)
  6045. if test -n "$ac_tool_prefix"; then
  6046. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6047. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6049. $as_echo_n "checking for $ac_word... " >&6; }
  6050. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6051. $as_echo_n "(cached) " >&6
  6052. else
  6053. if test -n "$DSYMUTIL"; then
  6054. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6055. else
  6056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6057. for as_dir in $PATH
  6058. do
  6059. IFS=$as_save_IFS
  6060. test -z "$as_dir" && as_dir=.
  6061. for ac_exec_ext in '' $ac_executable_extensions; do
  6062. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6063. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6065. break 2
  6066. fi
  6067. done
  6068. done
  6069. IFS=$as_save_IFS
  6070. fi
  6071. fi
  6072. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6073. if test -n "$DSYMUTIL"; then
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6075. $as_echo "$DSYMUTIL" >&6; }
  6076. else
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6078. $as_echo "no" >&6; }
  6079. fi
  6080. fi
  6081. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6082. ac_ct_DSYMUTIL=$DSYMUTIL
  6083. # Extract the first word of "dsymutil", so it can be a program name with args.
  6084. set dummy dsymutil; ac_word=$2
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6086. $as_echo_n "checking for $ac_word... " >&6; }
  6087. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6088. $as_echo_n "(cached) " >&6
  6089. else
  6090. if test -n "$ac_ct_DSYMUTIL"; then
  6091. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6092. else
  6093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6094. for as_dir in $PATH
  6095. do
  6096. IFS=$as_save_IFS
  6097. test -z "$as_dir" && as_dir=.
  6098. for ac_exec_ext in '' $ac_executable_extensions; do
  6099. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6100. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6101. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6102. break 2
  6103. fi
  6104. done
  6105. done
  6106. IFS=$as_save_IFS
  6107. fi
  6108. fi
  6109. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6110. if test -n "$ac_ct_DSYMUTIL"; then
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6112. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6113. else
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6115. $as_echo "no" >&6; }
  6116. fi
  6117. if test "x$ac_ct_DSYMUTIL" = x; then
  6118. DSYMUTIL=":"
  6119. else
  6120. case $cross_compiling:$ac_tool_warned in
  6121. yes:)
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6123. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6124. ac_tool_warned=yes ;;
  6125. esac
  6126. DSYMUTIL=$ac_ct_DSYMUTIL
  6127. fi
  6128. else
  6129. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6130. fi
  6131. if test -n "$ac_tool_prefix"; then
  6132. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6133. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6135. $as_echo_n "checking for $ac_word... " >&6; }
  6136. if ${ac_cv_prog_NMEDIT+:} false; then :
  6137. $as_echo_n "(cached) " >&6
  6138. else
  6139. if test -n "$NMEDIT"; then
  6140. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6141. else
  6142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6143. for as_dir in $PATH
  6144. do
  6145. IFS=$as_save_IFS
  6146. test -z "$as_dir" && as_dir=.
  6147. for ac_exec_ext in '' $ac_executable_extensions; do
  6148. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6149. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6151. break 2
  6152. fi
  6153. done
  6154. done
  6155. IFS=$as_save_IFS
  6156. fi
  6157. fi
  6158. NMEDIT=$ac_cv_prog_NMEDIT
  6159. if test -n "$NMEDIT"; then
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6161. $as_echo "$NMEDIT" >&6; }
  6162. else
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6164. $as_echo "no" >&6; }
  6165. fi
  6166. fi
  6167. if test -z "$ac_cv_prog_NMEDIT"; then
  6168. ac_ct_NMEDIT=$NMEDIT
  6169. # Extract the first word of "nmedit", so it can be a program name with args.
  6170. set dummy nmedit; ac_word=$2
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6172. $as_echo_n "checking for $ac_word... " >&6; }
  6173. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6174. $as_echo_n "(cached) " >&6
  6175. else
  6176. if test -n "$ac_ct_NMEDIT"; then
  6177. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6178. else
  6179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6180. for as_dir in $PATH
  6181. do
  6182. IFS=$as_save_IFS
  6183. test -z "$as_dir" && as_dir=.
  6184. for ac_exec_ext in '' $ac_executable_extensions; do
  6185. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6186. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6188. break 2
  6189. fi
  6190. done
  6191. done
  6192. IFS=$as_save_IFS
  6193. fi
  6194. fi
  6195. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6196. if test -n "$ac_ct_NMEDIT"; then
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6198. $as_echo "$ac_ct_NMEDIT" >&6; }
  6199. else
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6201. $as_echo "no" >&6; }
  6202. fi
  6203. if test "x$ac_ct_NMEDIT" = x; then
  6204. NMEDIT=":"
  6205. else
  6206. case $cross_compiling:$ac_tool_warned in
  6207. yes:)
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6209. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6210. ac_tool_warned=yes ;;
  6211. esac
  6212. NMEDIT=$ac_ct_NMEDIT
  6213. fi
  6214. else
  6215. NMEDIT="$ac_cv_prog_NMEDIT"
  6216. fi
  6217. if test -n "$ac_tool_prefix"; then
  6218. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6219. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6221. $as_echo_n "checking for $ac_word... " >&6; }
  6222. if ${ac_cv_prog_LIPO+:} false; then :
  6223. $as_echo_n "(cached) " >&6
  6224. else
  6225. if test -n "$LIPO"; then
  6226. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6227. else
  6228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6229. for as_dir in $PATH
  6230. do
  6231. IFS=$as_save_IFS
  6232. test -z "$as_dir" && as_dir=.
  6233. for ac_exec_ext in '' $ac_executable_extensions; do
  6234. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6235. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6237. break 2
  6238. fi
  6239. done
  6240. done
  6241. IFS=$as_save_IFS
  6242. fi
  6243. fi
  6244. LIPO=$ac_cv_prog_LIPO
  6245. if test -n "$LIPO"; then
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6247. $as_echo "$LIPO" >&6; }
  6248. else
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6250. $as_echo "no" >&6; }
  6251. fi
  6252. fi
  6253. if test -z "$ac_cv_prog_LIPO"; then
  6254. ac_ct_LIPO=$LIPO
  6255. # Extract the first word of "lipo", so it can be a program name with args.
  6256. set dummy lipo; ac_word=$2
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6258. $as_echo_n "checking for $ac_word... " >&6; }
  6259. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6260. $as_echo_n "(cached) " >&6
  6261. else
  6262. if test -n "$ac_ct_LIPO"; then
  6263. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6264. else
  6265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6266. for as_dir in $PATH
  6267. do
  6268. IFS=$as_save_IFS
  6269. test -z "$as_dir" && as_dir=.
  6270. for ac_exec_ext in '' $ac_executable_extensions; do
  6271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6272. ac_cv_prog_ac_ct_LIPO="lipo"
  6273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6274. break 2
  6275. fi
  6276. done
  6277. done
  6278. IFS=$as_save_IFS
  6279. fi
  6280. fi
  6281. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6282. if test -n "$ac_ct_LIPO"; then
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6284. $as_echo "$ac_ct_LIPO" >&6; }
  6285. else
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6287. $as_echo "no" >&6; }
  6288. fi
  6289. if test "x$ac_ct_LIPO" = x; then
  6290. LIPO=":"
  6291. else
  6292. case $cross_compiling:$ac_tool_warned in
  6293. yes:)
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6295. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6296. ac_tool_warned=yes ;;
  6297. esac
  6298. LIPO=$ac_ct_LIPO
  6299. fi
  6300. else
  6301. LIPO="$ac_cv_prog_LIPO"
  6302. fi
  6303. if test -n "$ac_tool_prefix"; then
  6304. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6305. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6307. $as_echo_n "checking for $ac_word... " >&6; }
  6308. if ${ac_cv_prog_OTOOL+:} false; then :
  6309. $as_echo_n "(cached) " >&6
  6310. else
  6311. if test -n "$OTOOL"; then
  6312. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6313. else
  6314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6315. for as_dir in $PATH
  6316. do
  6317. IFS=$as_save_IFS
  6318. test -z "$as_dir" && as_dir=.
  6319. for ac_exec_ext in '' $ac_executable_extensions; do
  6320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6321. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6323. break 2
  6324. fi
  6325. done
  6326. done
  6327. IFS=$as_save_IFS
  6328. fi
  6329. fi
  6330. OTOOL=$ac_cv_prog_OTOOL
  6331. if test -n "$OTOOL"; then
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6333. $as_echo "$OTOOL" >&6; }
  6334. else
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6336. $as_echo "no" >&6; }
  6337. fi
  6338. fi
  6339. if test -z "$ac_cv_prog_OTOOL"; then
  6340. ac_ct_OTOOL=$OTOOL
  6341. # Extract the first word of "otool", so it can be a program name with args.
  6342. set dummy otool; ac_word=$2
  6343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6344. $as_echo_n "checking for $ac_word... " >&6; }
  6345. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6346. $as_echo_n "(cached) " >&6
  6347. else
  6348. if test -n "$ac_ct_OTOOL"; then
  6349. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6350. else
  6351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6352. for as_dir in $PATH
  6353. do
  6354. IFS=$as_save_IFS
  6355. test -z "$as_dir" && as_dir=.
  6356. for ac_exec_ext in '' $ac_executable_extensions; do
  6357. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6358. ac_cv_prog_ac_ct_OTOOL="otool"
  6359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6360. break 2
  6361. fi
  6362. done
  6363. done
  6364. IFS=$as_save_IFS
  6365. fi
  6366. fi
  6367. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6368. if test -n "$ac_ct_OTOOL"; then
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6370. $as_echo "$ac_ct_OTOOL" >&6; }
  6371. else
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6373. $as_echo "no" >&6; }
  6374. fi
  6375. if test "x$ac_ct_OTOOL" = x; then
  6376. OTOOL=":"
  6377. else
  6378. case $cross_compiling:$ac_tool_warned in
  6379. yes:)
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6381. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6382. ac_tool_warned=yes ;;
  6383. esac
  6384. OTOOL=$ac_ct_OTOOL
  6385. fi
  6386. else
  6387. OTOOL="$ac_cv_prog_OTOOL"
  6388. fi
  6389. if test -n "$ac_tool_prefix"; then
  6390. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6391. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6393. $as_echo_n "checking for $ac_word... " >&6; }
  6394. if ${ac_cv_prog_OTOOL64+:} false; then :
  6395. $as_echo_n "(cached) " >&6
  6396. else
  6397. if test -n "$OTOOL64"; then
  6398. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6399. else
  6400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6401. for as_dir in $PATH
  6402. do
  6403. IFS=$as_save_IFS
  6404. test -z "$as_dir" && as_dir=.
  6405. for ac_exec_ext in '' $ac_executable_extensions; do
  6406. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6407. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6409. break 2
  6410. fi
  6411. done
  6412. done
  6413. IFS=$as_save_IFS
  6414. fi
  6415. fi
  6416. OTOOL64=$ac_cv_prog_OTOOL64
  6417. if test -n "$OTOOL64"; then
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6419. $as_echo "$OTOOL64" >&6; }
  6420. else
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6422. $as_echo "no" >&6; }
  6423. fi
  6424. fi
  6425. if test -z "$ac_cv_prog_OTOOL64"; then
  6426. ac_ct_OTOOL64=$OTOOL64
  6427. # Extract the first word of "otool64", so it can be a program name with args.
  6428. set dummy otool64; ac_word=$2
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6430. $as_echo_n "checking for $ac_word... " >&6; }
  6431. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6432. $as_echo_n "(cached) " >&6
  6433. else
  6434. if test -n "$ac_ct_OTOOL64"; then
  6435. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6436. else
  6437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6438. for as_dir in $PATH
  6439. do
  6440. IFS=$as_save_IFS
  6441. test -z "$as_dir" && as_dir=.
  6442. for ac_exec_ext in '' $ac_executable_extensions; do
  6443. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6444. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6446. break 2
  6447. fi
  6448. done
  6449. done
  6450. IFS=$as_save_IFS
  6451. fi
  6452. fi
  6453. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6454. if test -n "$ac_ct_OTOOL64"; then
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6456. $as_echo "$ac_ct_OTOOL64" >&6; }
  6457. else
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6459. $as_echo "no" >&6; }
  6460. fi
  6461. if test "x$ac_ct_OTOOL64" = x; then
  6462. OTOOL64=":"
  6463. else
  6464. case $cross_compiling:$ac_tool_warned in
  6465. yes:)
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6467. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6468. ac_tool_warned=yes ;;
  6469. esac
  6470. OTOOL64=$ac_ct_OTOOL64
  6471. fi
  6472. else
  6473. OTOOL64="$ac_cv_prog_OTOOL64"
  6474. fi
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6476. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6477. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6478. $as_echo_n "(cached) " >&6
  6479. else
  6480. lt_cv_apple_cc_single_mod=no
  6481. if test -z "$LT_MULTI_MODULE"; then
  6482. # By default we will add the -single_module flag. You can override
  6483. # by either setting the environment variable LT_MULTI_MODULE
  6484. # non-empty at configure time, or by adding -multi_module to the
  6485. # link flags.
  6486. rm -rf libconftest.dylib*
  6487. echo "int foo(void){return 1;}" > conftest.c
  6488. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6489. -dynamiclib -Wl,-single_module conftest.c" >&5
  6490. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6491. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6492. _lt_result=$?
  6493. # If there is a non-empty error log, and "single_module"
  6494. # appears in it, assume the flag caused a linker warning
  6495. if test -s conftest.err && $GREP single_module conftest.err; then
  6496. cat conftest.err >&5
  6497. # Otherwise, if the output was created with a 0 exit code from
  6498. # the compiler, it worked.
  6499. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6500. lt_cv_apple_cc_single_mod=yes
  6501. else
  6502. cat conftest.err >&5
  6503. fi
  6504. rm -rf libconftest.dylib*
  6505. rm -f conftest.*
  6506. fi
  6507. fi
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6509. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6511. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6512. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6513. $as_echo_n "(cached) " >&6
  6514. else
  6515. lt_cv_ld_exported_symbols_list=no
  6516. save_LDFLAGS=$LDFLAGS
  6517. echo "_main" > conftest.sym
  6518. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6520. /* end confdefs.h. */
  6521. int
  6522. main ()
  6523. {
  6524. ;
  6525. return 0;
  6526. }
  6527. _ACEOF
  6528. if ac_fn_c_try_link "$LINENO"; then :
  6529. lt_cv_ld_exported_symbols_list=yes
  6530. else
  6531. lt_cv_ld_exported_symbols_list=no
  6532. fi
  6533. rm -f core conftest.err conftest.$ac_objext \
  6534. conftest$ac_exeext conftest.$ac_ext
  6535. LDFLAGS=$save_LDFLAGS
  6536. fi
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6538. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6540. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6541. if ${lt_cv_ld_force_load+:} false; then :
  6542. $as_echo_n "(cached) " >&6
  6543. else
  6544. lt_cv_ld_force_load=no
  6545. cat > conftest.c << _LT_EOF
  6546. int forced_loaded() { return 2;}
  6547. _LT_EOF
  6548. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6549. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6550. echo "$AR cru libconftest.a conftest.o" >&5
  6551. $AR cru libconftest.a conftest.o 2>&5
  6552. echo "$RANLIB libconftest.a" >&5
  6553. $RANLIB libconftest.a 2>&5
  6554. cat > conftest.c << _LT_EOF
  6555. int main() { return 0;}
  6556. _LT_EOF
  6557. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6558. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6559. _lt_result=$?
  6560. if test -s conftest.err && $GREP force_load conftest.err; then
  6561. cat conftest.err >&5
  6562. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6563. lt_cv_ld_force_load=yes
  6564. else
  6565. cat conftest.err >&5
  6566. fi
  6567. rm -f conftest.err libconftest.a conftest conftest.c
  6568. rm -rf conftest.dSYM
  6569. fi
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6571. $as_echo "$lt_cv_ld_force_load" >&6; }
  6572. case $host_os in
  6573. rhapsody* | darwin1.[012])
  6574. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6575. darwin1.*)
  6576. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6577. darwin*) # darwin 5.x on
  6578. # if running on 10.5 or later, the deployment target defaults
  6579. # to the OS version, if on x86, and 10.4, the deployment
  6580. # target defaults to 10.4. Don't you love it?
  6581. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6582. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6583. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6584. 10.[012][,.]*)
  6585. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6586. 10.*)
  6587. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6588. esac
  6589. ;;
  6590. esac
  6591. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6592. _lt_dar_single_mod='$single_module'
  6593. fi
  6594. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6595. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6596. else
  6597. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6598. fi
  6599. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6600. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6601. else
  6602. _lt_dsymutil=
  6603. fi
  6604. ;;
  6605. esac
  6606. # func_munge_path_list VARIABLE PATH
  6607. # -----------------------------------
  6608. # VARIABLE is name of variable containing _space_ separated list of
  6609. # directories to be munged by the contents of PATH, which is string
  6610. # having a format:
  6611. # "DIR[:DIR]:"
  6612. # string "DIR[ DIR]" will be prepended to VARIABLE
  6613. # ":DIR[:DIR]"
  6614. # string "DIR[ DIR]" will be appended to VARIABLE
  6615. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6616. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6617. # "DIRA[ DIRA]" will be appended to VARIABLE
  6618. # "DIR[:DIR]"
  6619. # VARIABLE will be replaced by "DIR[ DIR]"
  6620. func_munge_path_list ()
  6621. {
  6622. case x$2 in
  6623. x)
  6624. ;;
  6625. *:)
  6626. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6627. ;;
  6628. x:*)
  6629. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6630. ;;
  6631. *::*)
  6632. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6633. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6634. ;;
  6635. *)
  6636. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6637. ;;
  6638. esac
  6639. }
  6640. ac_ext=c
  6641. ac_cpp='$CPP $CPPFLAGS'
  6642. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6643. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6644. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6646. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6647. # On Suns, sometimes $CPP names a directory.
  6648. if test -n "$CPP" && test -d "$CPP"; then
  6649. CPP=
  6650. fi
  6651. if test -z "$CPP"; then
  6652. if ${ac_cv_prog_CPP+:} false; then :
  6653. $as_echo_n "(cached) " >&6
  6654. else
  6655. # Double quotes because CPP needs to be expanded
  6656. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6657. do
  6658. ac_preproc_ok=false
  6659. for ac_c_preproc_warn_flag in '' yes
  6660. do
  6661. # Use a header file that comes with gcc, so configuring glibc
  6662. # with a fresh cross-compiler works.
  6663. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6664. # <limits.h> exists even on freestanding compilers.
  6665. # On the NeXT, cc -E runs the code through the compiler's parser,
  6666. # not just through cpp. "Syntax error" is here to catch this case.
  6667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6668. /* end confdefs.h. */
  6669. #ifdef __STDC__
  6670. # include <limits.h>
  6671. #else
  6672. # include <assert.h>
  6673. #endif
  6674. Syntax error
  6675. _ACEOF
  6676. if ac_fn_c_try_cpp "$LINENO"; then :
  6677. else
  6678. # Broken: fails on valid input.
  6679. continue
  6680. fi
  6681. rm -f conftest.err conftest.i conftest.$ac_ext
  6682. # OK, works on sane cases. Now check whether nonexistent headers
  6683. # can be detected and how.
  6684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6685. /* end confdefs.h. */
  6686. #include <ac_nonexistent.h>
  6687. _ACEOF
  6688. if ac_fn_c_try_cpp "$LINENO"; then :
  6689. # Broken: success on invalid input.
  6690. continue
  6691. else
  6692. # Passes both tests.
  6693. ac_preproc_ok=:
  6694. break
  6695. fi
  6696. rm -f conftest.err conftest.i conftest.$ac_ext
  6697. done
  6698. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6699. rm -f conftest.i conftest.err conftest.$ac_ext
  6700. if $ac_preproc_ok; then :
  6701. break
  6702. fi
  6703. done
  6704. ac_cv_prog_CPP=$CPP
  6705. fi
  6706. CPP=$ac_cv_prog_CPP
  6707. else
  6708. ac_cv_prog_CPP=$CPP
  6709. fi
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6711. $as_echo "$CPP" >&6; }
  6712. ac_preproc_ok=false
  6713. for ac_c_preproc_warn_flag in '' yes
  6714. do
  6715. # Use a header file that comes with gcc, so configuring glibc
  6716. # with a fresh cross-compiler works.
  6717. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6718. # <limits.h> exists even on freestanding compilers.
  6719. # On the NeXT, cc -E runs the code through the compiler's parser,
  6720. # not just through cpp. "Syntax error" is here to catch this case.
  6721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6722. /* end confdefs.h. */
  6723. #ifdef __STDC__
  6724. # include <limits.h>
  6725. #else
  6726. # include <assert.h>
  6727. #endif
  6728. Syntax error
  6729. _ACEOF
  6730. if ac_fn_c_try_cpp "$LINENO"; then :
  6731. else
  6732. # Broken: fails on valid input.
  6733. continue
  6734. fi
  6735. rm -f conftest.err conftest.i conftest.$ac_ext
  6736. # OK, works on sane cases. Now check whether nonexistent headers
  6737. # can be detected and how.
  6738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6739. /* end confdefs.h. */
  6740. #include <ac_nonexistent.h>
  6741. _ACEOF
  6742. if ac_fn_c_try_cpp "$LINENO"; then :
  6743. # Broken: success on invalid input.
  6744. continue
  6745. else
  6746. # Passes both tests.
  6747. ac_preproc_ok=:
  6748. break
  6749. fi
  6750. rm -f conftest.err conftest.i conftest.$ac_ext
  6751. done
  6752. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6753. rm -f conftest.i conftest.err conftest.$ac_ext
  6754. if $ac_preproc_ok; then :
  6755. else
  6756. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6757. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6758. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6759. See \`config.log' for more details" "$LINENO" 5; }
  6760. fi
  6761. ac_ext=c
  6762. ac_cpp='$CPP $CPPFLAGS'
  6763. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6764. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6765. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6767. $as_echo_n "checking for ANSI C header files... " >&6; }
  6768. if ${ac_cv_header_stdc+:} false; then :
  6769. $as_echo_n "(cached) " >&6
  6770. else
  6771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6772. /* end confdefs.h. */
  6773. #include <stdlib.h>
  6774. #include <stdarg.h>
  6775. #include <string.h>
  6776. #include <float.h>
  6777. int
  6778. main ()
  6779. {
  6780. ;
  6781. return 0;
  6782. }
  6783. _ACEOF
  6784. if ac_fn_c_try_compile "$LINENO"; then :
  6785. ac_cv_header_stdc=yes
  6786. else
  6787. ac_cv_header_stdc=no
  6788. fi
  6789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6790. if test $ac_cv_header_stdc = yes; then
  6791. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6793. /* end confdefs.h. */
  6794. #include <string.h>
  6795. _ACEOF
  6796. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6797. $EGREP "memchr" >/dev/null 2>&1; then :
  6798. else
  6799. ac_cv_header_stdc=no
  6800. fi
  6801. rm -f conftest*
  6802. fi
  6803. if test $ac_cv_header_stdc = yes; then
  6804. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6806. /* end confdefs.h. */
  6807. #include <stdlib.h>
  6808. _ACEOF
  6809. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6810. $EGREP "free" >/dev/null 2>&1; then :
  6811. else
  6812. ac_cv_header_stdc=no
  6813. fi
  6814. rm -f conftest*
  6815. fi
  6816. if test $ac_cv_header_stdc = yes; then
  6817. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6818. if test "$cross_compiling" = yes; then :
  6819. :
  6820. else
  6821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6822. /* end confdefs.h. */
  6823. #include <ctype.h>
  6824. #include <stdlib.h>
  6825. #if ((' ' & 0x0FF) == 0x020)
  6826. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6827. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6828. #else
  6829. # define ISLOWER(c) \
  6830. (('a' <= (c) && (c) <= 'i') \
  6831. || ('j' <= (c) && (c) <= 'r') \
  6832. || ('s' <= (c) && (c) <= 'z'))
  6833. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6834. #endif
  6835. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6836. int
  6837. main ()
  6838. {
  6839. int i;
  6840. for (i = 0; i < 256; i++)
  6841. if (XOR (islower (i), ISLOWER (i))
  6842. || toupper (i) != TOUPPER (i))
  6843. return 2;
  6844. return 0;
  6845. }
  6846. _ACEOF
  6847. if ac_fn_c_try_run "$LINENO"; then :
  6848. else
  6849. ac_cv_header_stdc=no
  6850. fi
  6851. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6852. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6853. fi
  6854. fi
  6855. fi
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6857. $as_echo "$ac_cv_header_stdc" >&6; }
  6858. if test $ac_cv_header_stdc = yes; then
  6859. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6860. fi
  6861. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6862. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6863. inttypes.h stdint.h unistd.h
  6864. do :
  6865. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6866. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6867. "
  6868. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6869. cat >>confdefs.h <<_ACEOF
  6870. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6871. _ACEOF
  6872. fi
  6873. done
  6874. for ac_header in dlfcn.h
  6875. do :
  6876. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6877. "
  6878. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6879. cat >>confdefs.h <<_ACEOF
  6880. #define HAVE_DLFCN_H 1
  6881. _ACEOF
  6882. fi
  6883. done
  6884. # Set options
  6885. # Check whether --enable-static was given.
  6886. if test "${enable_static+set}" = set; then :
  6887. enableval=$enable_static; p=${PACKAGE-default}
  6888. case $enableval in
  6889. yes) enable_static=yes ;;
  6890. no) enable_static=no ;;
  6891. *)
  6892. enable_static=no
  6893. # Look at the argument we got. We use all the common list separators.
  6894. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6895. for pkg in $enableval; do
  6896. IFS=$lt_save_ifs
  6897. if test "X$pkg" = "X$p"; then
  6898. enable_static=yes
  6899. fi
  6900. done
  6901. IFS=$lt_save_ifs
  6902. ;;
  6903. esac
  6904. else
  6905. enable_static=no
  6906. fi
  6907. enable_dlopen=no
  6908. enable_win32_dll=no
  6909. # Check whether --enable-shared was given.
  6910. if test "${enable_shared+set}" = set; then :
  6911. enableval=$enable_shared; p=${PACKAGE-default}
  6912. case $enableval in
  6913. yes) enable_shared=yes ;;
  6914. no) enable_shared=no ;;
  6915. *)
  6916. enable_shared=no
  6917. # Look at the argument we got. We use all the common list separators.
  6918. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6919. for pkg in $enableval; do
  6920. IFS=$lt_save_ifs
  6921. if test "X$pkg" = "X$p"; then
  6922. enable_shared=yes
  6923. fi
  6924. done
  6925. IFS=$lt_save_ifs
  6926. ;;
  6927. esac
  6928. else
  6929. enable_shared=yes
  6930. fi
  6931. # Check whether --with-pic was given.
  6932. if test "${with_pic+set}" = set; then :
  6933. withval=$with_pic; lt_p=${PACKAGE-default}
  6934. case $withval in
  6935. yes|no) pic_mode=$withval ;;
  6936. *)
  6937. pic_mode=default
  6938. # Look at the argument we got. We use all the common list separators.
  6939. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6940. for lt_pkg in $withval; do
  6941. IFS=$lt_save_ifs
  6942. if test "X$lt_pkg" = "X$lt_p"; then
  6943. pic_mode=yes
  6944. fi
  6945. done
  6946. IFS=$lt_save_ifs
  6947. ;;
  6948. esac
  6949. else
  6950. pic_mode=default
  6951. fi
  6952. # Check whether --enable-fast-install was given.
  6953. if test "${enable_fast_install+set}" = set; then :
  6954. enableval=$enable_fast_install; p=${PACKAGE-default}
  6955. case $enableval in
  6956. yes) enable_fast_install=yes ;;
  6957. no) enable_fast_install=no ;;
  6958. *)
  6959. enable_fast_install=no
  6960. # Look at the argument we got. We use all the common list separators.
  6961. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6962. for pkg in $enableval; do
  6963. IFS=$lt_save_ifs
  6964. if test "X$pkg" = "X$p"; then
  6965. enable_fast_install=yes
  6966. fi
  6967. done
  6968. IFS=$lt_save_ifs
  6969. ;;
  6970. esac
  6971. else
  6972. enable_fast_install=yes
  6973. fi
  6974. shared_archive_member_spec=
  6975. case $host,$enable_shared in
  6976. power*-*-aix[5-9]*,yes)
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6978. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6979. # Check whether --with-aix-soname was given.
  6980. if test "${with_aix_soname+set}" = set; then :
  6981. withval=$with_aix_soname; case $withval in
  6982. aix|svr4|both)
  6983. ;;
  6984. *)
  6985. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6986. ;;
  6987. esac
  6988. lt_cv_with_aix_soname=$with_aix_soname
  6989. else
  6990. if ${lt_cv_with_aix_soname+:} false; then :
  6991. $as_echo_n "(cached) " >&6
  6992. else
  6993. lt_cv_with_aix_soname=aix
  6994. fi
  6995. with_aix_soname=$lt_cv_with_aix_soname
  6996. fi
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6998. $as_echo "$with_aix_soname" >&6; }
  6999. if test aix != "$with_aix_soname"; then
  7000. # For the AIX way of multilib, we name the shared archive member
  7001. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7002. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7003. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7004. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7005. if test 64 = "${OBJECT_MODE-32}"; then
  7006. shared_archive_member_spec=shr_64
  7007. else
  7008. shared_archive_member_spec=shr
  7009. fi
  7010. fi
  7011. ;;
  7012. *)
  7013. with_aix_soname=aix
  7014. ;;
  7015. esac
  7016. # This can be used to rebuild libtool when needed
  7017. LIBTOOL_DEPS=$ltmain
  7018. # Always use our own libtool.
  7019. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7020. test -z "$LN_S" && LN_S="ln -s"
  7021. if test -n "${ZSH_VERSION+set}"; then
  7022. setopt NO_GLOB_SUBST
  7023. fi
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7025. $as_echo_n "checking for objdir... " >&6; }
  7026. if ${lt_cv_objdir+:} false; then :
  7027. $as_echo_n "(cached) " >&6
  7028. else
  7029. rm -f .libs 2>/dev/null
  7030. mkdir .libs 2>/dev/null
  7031. if test -d .libs; then
  7032. lt_cv_objdir=.libs
  7033. else
  7034. # MS-DOS does not allow filenames that begin with a dot.
  7035. lt_cv_objdir=_libs
  7036. fi
  7037. rmdir .libs 2>/dev/null
  7038. fi
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7040. $as_echo "$lt_cv_objdir" >&6; }
  7041. objdir=$lt_cv_objdir
  7042. cat >>confdefs.h <<_ACEOF
  7043. #define LT_OBJDIR "$lt_cv_objdir/"
  7044. _ACEOF
  7045. case $host_os in
  7046. aix3*)
  7047. # AIX sometimes has problems with the GCC collect2 program. For some
  7048. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7049. # vanish in a puff of smoke.
  7050. if test set != "${COLLECT_NAMES+set}"; then
  7051. COLLECT_NAMES=
  7052. export COLLECT_NAMES
  7053. fi
  7054. ;;
  7055. esac
  7056. # Global variables:
  7057. ofile=libtool
  7058. can_build_shared=yes
  7059. # All known linkers require a '.a' archive for static linking (except MSVC,
  7060. # which needs '.lib').
  7061. libext=a
  7062. with_gnu_ld=$lt_cv_prog_gnu_ld
  7063. old_CC=$CC
  7064. old_CFLAGS=$CFLAGS
  7065. # Set sane defaults for various variables
  7066. test -z "$CC" && CC=cc
  7067. test -z "$LTCC" && LTCC=$CC
  7068. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7069. test -z "$LD" && LD=ld
  7070. test -z "$ac_objext" && ac_objext=o
  7071. func_cc_basename $compiler
  7072. cc_basename=$func_cc_basename_result
  7073. # Only perform the check for file, if the check method requires it
  7074. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7075. case $deplibs_check_method in
  7076. file_magic*)
  7077. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7079. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7080. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7081. $as_echo_n "(cached) " >&6
  7082. else
  7083. case $MAGIC_CMD in
  7084. [\\/*] | ?:[\\/]*)
  7085. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7086. ;;
  7087. *)
  7088. lt_save_MAGIC_CMD=$MAGIC_CMD
  7089. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7090. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7091. for ac_dir in $ac_dummy; do
  7092. IFS=$lt_save_ifs
  7093. test -z "$ac_dir" && ac_dir=.
  7094. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7095. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7096. if test -n "$file_magic_test_file"; then
  7097. case $deplibs_check_method in
  7098. "file_magic "*)
  7099. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7100. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7101. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7102. $EGREP "$file_magic_regex" > /dev/null; then
  7103. :
  7104. else
  7105. cat <<_LT_EOF 1>&2
  7106. *** Warning: the command libtool uses to detect shared libraries,
  7107. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7108. *** The result is that libtool may fail to recognize shared libraries
  7109. *** as such. This will affect the creation of libtool libraries that
  7110. *** depend on shared libraries, but programs linked with such libtool
  7111. *** libraries will work regardless of this problem. Nevertheless, you
  7112. *** may want to report the problem to your system manager and/or to
  7113. *** bug-libtool@gnu.org
  7114. _LT_EOF
  7115. fi ;;
  7116. esac
  7117. fi
  7118. break
  7119. fi
  7120. done
  7121. IFS=$lt_save_ifs
  7122. MAGIC_CMD=$lt_save_MAGIC_CMD
  7123. ;;
  7124. esac
  7125. fi
  7126. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7127. if test -n "$MAGIC_CMD"; then
  7128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7129. $as_echo "$MAGIC_CMD" >&6; }
  7130. else
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7132. $as_echo "no" >&6; }
  7133. fi
  7134. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7135. if test -n "$ac_tool_prefix"; then
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7137. $as_echo_n "checking for file... " >&6; }
  7138. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7139. $as_echo_n "(cached) " >&6
  7140. else
  7141. case $MAGIC_CMD in
  7142. [\\/*] | ?:[\\/]*)
  7143. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7144. ;;
  7145. *)
  7146. lt_save_MAGIC_CMD=$MAGIC_CMD
  7147. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7148. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7149. for ac_dir in $ac_dummy; do
  7150. IFS=$lt_save_ifs
  7151. test -z "$ac_dir" && ac_dir=.
  7152. if test -f "$ac_dir/file"; then
  7153. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7154. if test -n "$file_magic_test_file"; then
  7155. case $deplibs_check_method in
  7156. "file_magic "*)
  7157. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7158. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7159. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7160. $EGREP "$file_magic_regex" > /dev/null; then
  7161. :
  7162. else
  7163. cat <<_LT_EOF 1>&2
  7164. *** Warning: the command libtool uses to detect shared libraries,
  7165. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7166. *** The result is that libtool may fail to recognize shared libraries
  7167. *** as such. This will affect the creation of libtool libraries that
  7168. *** depend on shared libraries, but programs linked with such libtool
  7169. *** libraries will work regardless of this problem. Nevertheless, you
  7170. *** may want to report the problem to your system manager and/or to
  7171. *** bug-libtool@gnu.org
  7172. _LT_EOF
  7173. fi ;;
  7174. esac
  7175. fi
  7176. break
  7177. fi
  7178. done
  7179. IFS=$lt_save_ifs
  7180. MAGIC_CMD=$lt_save_MAGIC_CMD
  7181. ;;
  7182. esac
  7183. fi
  7184. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7185. if test -n "$MAGIC_CMD"; then
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7187. $as_echo "$MAGIC_CMD" >&6; }
  7188. else
  7189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7190. $as_echo "no" >&6; }
  7191. fi
  7192. else
  7193. MAGIC_CMD=:
  7194. fi
  7195. fi
  7196. fi
  7197. ;;
  7198. esac
  7199. # Use C for the default configuration in the libtool script
  7200. lt_save_CC=$CC
  7201. ac_ext=c
  7202. ac_cpp='$CPP $CPPFLAGS'
  7203. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7204. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7205. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7206. # Source file extension for C test sources.
  7207. ac_ext=c
  7208. # Object file extension for compiled C test sources.
  7209. objext=o
  7210. objext=$objext
  7211. # Code to be used in simple compile tests
  7212. lt_simple_compile_test_code="int some_variable = 0;"
  7213. # Code to be used in simple link tests
  7214. lt_simple_link_test_code='int main(){return(0);}'
  7215. # If no C compiler was specified, use CC.
  7216. LTCC=${LTCC-"$CC"}
  7217. # If no C compiler flags were specified, use CFLAGS.
  7218. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7219. # Allow CC to be a program name with arguments.
  7220. compiler=$CC
  7221. # Save the default compiler, since it gets overwritten when the other
  7222. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7223. compiler_DEFAULT=$CC
  7224. # save warnings/boilerplate of simple test code
  7225. ac_outfile=conftest.$ac_objext
  7226. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7227. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7228. _lt_compiler_boilerplate=`cat conftest.err`
  7229. $RM conftest*
  7230. ac_outfile=conftest.$ac_objext
  7231. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7232. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7233. _lt_linker_boilerplate=`cat conftest.err`
  7234. $RM -r conftest*
  7235. if test -n "$compiler"; then
  7236. lt_prog_compiler_no_builtin_flag=
  7237. if test yes = "$GCC"; then
  7238. case $cc_basename in
  7239. nvcc*)
  7240. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7241. *)
  7242. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7243. esac
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7245. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7246. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7247. $as_echo_n "(cached) " >&6
  7248. else
  7249. lt_cv_prog_compiler_rtti_exceptions=no
  7250. ac_outfile=conftest.$ac_objext
  7251. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7252. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7253. # Insert the option either (1) after the last *FLAGS variable, or
  7254. # (2) before a word containing "conftest.", or (3) at the end.
  7255. # Note that $ac_compile itself does not contain backslashes and begins
  7256. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7257. # The option is referenced via a variable to avoid confusing sed.
  7258. lt_compile=`echo "$ac_compile" | $SED \
  7259. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7260. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7261. -e 's:$: $lt_compiler_flag:'`
  7262. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7263. (eval "$lt_compile" 2>conftest.err)
  7264. ac_status=$?
  7265. cat conftest.err >&5
  7266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7267. if (exit $ac_status) && test -s "$ac_outfile"; then
  7268. # The compiler can only warn and ignore the option if not recognized
  7269. # So say no if there are warnings other than the usual output.
  7270. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7271. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7272. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7273. lt_cv_prog_compiler_rtti_exceptions=yes
  7274. fi
  7275. fi
  7276. $RM conftest*
  7277. fi
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7279. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7280. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7281. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7282. else
  7283. :
  7284. fi
  7285. fi
  7286. lt_prog_compiler_wl=
  7287. lt_prog_compiler_pic=
  7288. lt_prog_compiler_static=
  7289. if test yes = "$GCC"; then
  7290. lt_prog_compiler_wl='-Wl,'
  7291. lt_prog_compiler_static='-static'
  7292. case $host_os in
  7293. aix*)
  7294. # All AIX code is PIC.
  7295. if test ia64 = "$host_cpu"; then
  7296. # AIX 5 now supports IA64 processor
  7297. lt_prog_compiler_static='-Bstatic'
  7298. fi
  7299. lt_prog_compiler_pic='-fPIC'
  7300. ;;
  7301. amigaos*)
  7302. case $host_cpu in
  7303. powerpc)
  7304. # see comment about AmigaOS4 .so support
  7305. lt_prog_compiler_pic='-fPIC'
  7306. ;;
  7307. m68k)
  7308. # FIXME: we need at least 68020 code to build shared libraries, but
  7309. # adding the '-m68020' flag to GCC prevents building anything better,
  7310. # like '-m68040'.
  7311. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7312. ;;
  7313. esac
  7314. ;;
  7315. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7316. # PIC is the default for these OSes.
  7317. ;;
  7318. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7319. # This hack is so that the source file can tell whether it is being
  7320. # built for inclusion in a dll (and should export symbols for example).
  7321. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7322. # (--disable-auto-import) libraries
  7323. lt_prog_compiler_pic='-DDLL_EXPORT'
  7324. case $host_os in
  7325. os2*)
  7326. lt_prog_compiler_static='$wl-static'
  7327. ;;
  7328. esac
  7329. ;;
  7330. darwin* | rhapsody*)
  7331. # PIC is the default on this platform
  7332. # Common symbols not allowed in MH_DYLIB files
  7333. lt_prog_compiler_pic='-fno-common'
  7334. ;;
  7335. haiku*)
  7336. # PIC is the default for Haiku.
  7337. # The "-static" flag exists, but is broken.
  7338. lt_prog_compiler_static=
  7339. ;;
  7340. hpux*)
  7341. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7342. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7343. # sets the default TLS model and affects inlining.
  7344. case $host_cpu in
  7345. hppa*64*)
  7346. # +Z the default
  7347. ;;
  7348. *)
  7349. lt_prog_compiler_pic='-fPIC'
  7350. ;;
  7351. esac
  7352. ;;
  7353. interix[3-9]*)
  7354. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7355. # Instead, we relocate shared libraries at runtime.
  7356. ;;
  7357. msdosdjgpp*)
  7358. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7359. # on systems that don't support them.
  7360. lt_prog_compiler_can_build_shared=no
  7361. enable_shared=no
  7362. ;;
  7363. *nto* | *qnx*)
  7364. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7365. # it will coredump.
  7366. lt_prog_compiler_pic='-fPIC -shared'
  7367. ;;
  7368. sysv4*MP*)
  7369. if test -d /usr/nec; then
  7370. lt_prog_compiler_pic=-Kconform_pic
  7371. fi
  7372. ;;
  7373. *)
  7374. lt_prog_compiler_pic='-fPIC'
  7375. ;;
  7376. esac
  7377. case $cc_basename in
  7378. nvcc*) # Cuda Compiler Driver 2.2
  7379. lt_prog_compiler_wl='-Xlinker '
  7380. if test -n "$lt_prog_compiler_pic"; then
  7381. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7382. fi
  7383. ;;
  7384. esac
  7385. else
  7386. # PORTME Check for flag to pass linker flags through the system compiler.
  7387. case $host_os in
  7388. aix*)
  7389. lt_prog_compiler_wl='-Wl,'
  7390. if test ia64 = "$host_cpu"; then
  7391. # AIX 5 now supports IA64 processor
  7392. lt_prog_compiler_static='-Bstatic'
  7393. else
  7394. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7395. fi
  7396. ;;
  7397. darwin* | rhapsody*)
  7398. # PIC is the default on this platform
  7399. # Common symbols not allowed in MH_DYLIB files
  7400. lt_prog_compiler_pic='-fno-common'
  7401. case $cc_basename in
  7402. nagfor*)
  7403. # NAG Fortran compiler
  7404. lt_prog_compiler_wl='-Wl,-Wl,,'
  7405. lt_prog_compiler_pic='-PIC'
  7406. lt_prog_compiler_static='-Bstatic'
  7407. ;;
  7408. esac
  7409. ;;
  7410. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7411. # This hack is so that the source file can tell whether it is being
  7412. # built for inclusion in a dll (and should export symbols for example).
  7413. lt_prog_compiler_pic='-DDLL_EXPORT'
  7414. case $host_os in
  7415. os2*)
  7416. lt_prog_compiler_static='$wl-static'
  7417. ;;
  7418. esac
  7419. ;;
  7420. hpux9* | hpux10* | hpux11*)
  7421. lt_prog_compiler_wl='-Wl,'
  7422. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7423. # not for PA HP-UX.
  7424. case $host_cpu in
  7425. hppa*64*|ia64*)
  7426. # +Z the default
  7427. ;;
  7428. *)
  7429. lt_prog_compiler_pic='+Z'
  7430. ;;
  7431. esac
  7432. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7433. lt_prog_compiler_static='$wl-a ${wl}archive'
  7434. ;;
  7435. irix5* | irix6* | nonstopux*)
  7436. lt_prog_compiler_wl='-Wl,'
  7437. # PIC (with -KPIC) is the default.
  7438. lt_prog_compiler_static='-non_shared'
  7439. ;;
  7440. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7441. case $cc_basename in
  7442. # old Intel for x86_64, which still supported -KPIC.
  7443. ecc*)
  7444. lt_prog_compiler_wl='-Wl,'
  7445. lt_prog_compiler_pic='-KPIC'
  7446. lt_prog_compiler_static='-static'
  7447. ;;
  7448. # icc used to be incompatible with GCC.
  7449. # ICC 10 doesn't accept -KPIC any more.
  7450. icc* | ifort*)
  7451. lt_prog_compiler_wl='-Wl,'
  7452. lt_prog_compiler_pic='-fPIC'
  7453. lt_prog_compiler_static='-static'
  7454. ;;
  7455. # Lahey Fortran 8.1.
  7456. lf95*)
  7457. lt_prog_compiler_wl='-Wl,'
  7458. lt_prog_compiler_pic='--shared'
  7459. lt_prog_compiler_static='--static'
  7460. ;;
  7461. nagfor*)
  7462. # NAG Fortran compiler
  7463. lt_prog_compiler_wl='-Wl,-Wl,,'
  7464. lt_prog_compiler_pic='-PIC'
  7465. lt_prog_compiler_static='-Bstatic'
  7466. ;;
  7467. tcc*)
  7468. # Fabrice Bellard et al's Tiny C Compiler
  7469. lt_prog_compiler_wl='-Wl,'
  7470. lt_prog_compiler_pic='-fPIC'
  7471. lt_prog_compiler_static='-static'
  7472. ;;
  7473. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7474. # Portland Group compilers (*not* the Pentium gcc compiler,
  7475. # which looks to be a dead project)
  7476. lt_prog_compiler_wl='-Wl,'
  7477. lt_prog_compiler_pic='-fpic'
  7478. lt_prog_compiler_static='-Bstatic'
  7479. ;;
  7480. ccc*)
  7481. lt_prog_compiler_wl='-Wl,'
  7482. # All Alpha code is PIC.
  7483. lt_prog_compiler_static='-non_shared'
  7484. ;;
  7485. xl* | bgxl* | bgf* | mpixl*)
  7486. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7487. lt_prog_compiler_wl='-Wl,'
  7488. lt_prog_compiler_pic='-qpic'
  7489. lt_prog_compiler_static='-qstaticlink'
  7490. ;;
  7491. *)
  7492. case `$CC -V 2>&1 | sed 5q` in
  7493. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7494. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7495. lt_prog_compiler_pic='-KPIC'
  7496. lt_prog_compiler_static='-Bstatic'
  7497. lt_prog_compiler_wl=''
  7498. ;;
  7499. *Sun\ F* | *Sun*Fortran*)
  7500. lt_prog_compiler_pic='-KPIC'
  7501. lt_prog_compiler_static='-Bstatic'
  7502. lt_prog_compiler_wl='-Qoption ld '
  7503. ;;
  7504. *Sun\ C*)
  7505. # Sun C 5.9
  7506. lt_prog_compiler_pic='-KPIC'
  7507. lt_prog_compiler_static='-Bstatic'
  7508. lt_prog_compiler_wl='-Wl,'
  7509. ;;
  7510. *Intel*\ [CF]*Compiler*)
  7511. lt_prog_compiler_wl='-Wl,'
  7512. lt_prog_compiler_pic='-fPIC'
  7513. lt_prog_compiler_static='-static'
  7514. ;;
  7515. *Portland\ Group*)
  7516. lt_prog_compiler_wl='-Wl,'
  7517. lt_prog_compiler_pic='-fpic'
  7518. lt_prog_compiler_static='-Bstatic'
  7519. ;;
  7520. esac
  7521. ;;
  7522. esac
  7523. ;;
  7524. newsos6)
  7525. lt_prog_compiler_pic='-KPIC'
  7526. lt_prog_compiler_static='-Bstatic'
  7527. ;;
  7528. *nto* | *qnx*)
  7529. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7530. # it will coredump.
  7531. lt_prog_compiler_pic='-fPIC -shared'
  7532. ;;
  7533. osf3* | osf4* | osf5*)
  7534. lt_prog_compiler_wl='-Wl,'
  7535. # All OSF/1 code is PIC.
  7536. lt_prog_compiler_static='-non_shared'
  7537. ;;
  7538. rdos*)
  7539. lt_prog_compiler_static='-non_shared'
  7540. ;;
  7541. solaris*)
  7542. lt_prog_compiler_pic='-KPIC'
  7543. lt_prog_compiler_static='-Bstatic'
  7544. case $cc_basename in
  7545. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7546. lt_prog_compiler_wl='-Qoption ld ';;
  7547. *)
  7548. lt_prog_compiler_wl='-Wl,';;
  7549. esac
  7550. ;;
  7551. sunos4*)
  7552. lt_prog_compiler_wl='-Qoption ld '
  7553. lt_prog_compiler_pic='-PIC'
  7554. lt_prog_compiler_static='-Bstatic'
  7555. ;;
  7556. sysv4 | sysv4.2uw2* | sysv4.3*)
  7557. lt_prog_compiler_wl='-Wl,'
  7558. lt_prog_compiler_pic='-KPIC'
  7559. lt_prog_compiler_static='-Bstatic'
  7560. ;;
  7561. sysv4*MP*)
  7562. if test -d /usr/nec; then
  7563. lt_prog_compiler_pic='-Kconform_pic'
  7564. lt_prog_compiler_static='-Bstatic'
  7565. fi
  7566. ;;
  7567. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7568. lt_prog_compiler_wl='-Wl,'
  7569. lt_prog_compiler_pic='-KPIC'
  7570. lt_prog_compiler_static='-Bstatic'
  7571. ;;
  7572. unicos*)
  7573. lt_prog_compiler_wl='-Wl,'
  7574. lt_prog_compiler_can_build_shared=no
  7575. ;;
  7576. uts4*)
  7577. lt_prog_compiler_pic='-pic'
  7578. lt_prog_compiler_static='-Bstatic'
  7579. ;;
  7580. *)
  7581. lt_prog_compiler_can_build_shared=no
  7582. ;;
  7583. esac
  7584. fi
  7585. case $host_os in
  7586. # For platforms that do not support PIC, -DPIC is meaningless:
  7587. *djgpp*)
  7588. lt_prog_compiler_pic=
  7589. ;;
  7590. *)
  7591. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7592. ;;
  7593. esac
  7594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7595. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7596. if ${lt_cv_prog_compiler_pic+:} false; then :
  7597. $as_echo_n "(cached) " >&6
  7598. else
  7599. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7600. fi
  7601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7602. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7603. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7604. #
  7605. # Check to make sure the PIC flag actually works.
  7606. #
  7607. if test -n "$lt_prog_compiler_pic"; then
  7608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7609. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7610. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7611. $as_echo_n "(cached) " >&6
  7612. else
  7613. lt_cv_prog_compiler_pic_works=no
  7614. ac_outfile=conftest.$ac_objext
  7615. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7616. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7617. # Insert the option either (1) after the last *FLAGS variable, or
  7618. # (2) before a word containing "conftest.", or (3) at the end.
  7619. # Note that $ac_compile itself does not contain backslashes and begins
  7620. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7621. # The option is referenced via a variable to avoid confusing sed.
  7622. lt_compile=`echo "$ac_compile" | $SED \
  7623. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7624. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7625. -e 's:$: $lt_compiler_flag:'`
  7626. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7627. (eval "$lt_compile" 2>conftest.err)
  7628. ac_status=$?
  7629. cat conftest.err >&5
  7630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7631. if (exit $ac_status) && test -s "$ac_outfile"; then
  7632. # The compiler can only warn and ignore the option if not recognized
  7633. # So say no if there are warnings other than the usual output.
  7634. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7635. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7636. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7637. lt_cv_prog_compiler_pic_works=yes
  7638. fi
  7639. fi
  7640. $RM conftest*
  7641. fi
  7642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7643. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7644. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7645. case $lt_prog_compiler_pic in
  7646. "" | " "*) ;;
  7647. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7648. esac
  7649. else
  7650. lt_prog_compiler_pic=
  7651. lt_prog_compiler_can_build_shared=no
  7652. fi
  7653. fi
  7654. #
  7655. # Check to make sure the static flag actually works.
  7656. #
  7657. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7659. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7660. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7661. $as_echo_n "(cached) " >&6
  7662. else
  7663. lt_cv_prog_compiler_static_works=no
  7664. save_LDFLAGS=$LDFLAGS
  7665. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7666. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7667. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7668. # The linker can only warn and ignore the option if not recognized
  7669. # So say no if there are warnings
  7670. if test -s conftest.err; then
  7671. # Append any errors to the config.log.
  7672. cat conftest.err 1>&5
  7673. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7674. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7675. if diff conftest.exp conftest.er2 >/dev/null; then
  7676. lt_cv_prog_compiler_static_works=yes
  7677. fi
  7678. else
  7679. lt_cv_prog_compiler_static_works=yes
  7680. fi
  7681. fi
  7682. $RM -r conftest*
  7683. LDFLAGS=$save_LDFLAGS
  7684. fi
  7685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7686. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7687. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7688. :
  7689. else
  7690. lt_prog_compiler_static=
  7691. fi
  7692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7693. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7694. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7695. $as_echo_n "(cached) " >&6
  7696. else
  7697. lt_cv_prog_compiler_c_o=no
  7698. $RM -r conftest 2>/dev/null
  7699. mkdir conftest
  7700. cd conftest
  7701. mkdir out
  7702. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7703. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7704. # Insert the option either (1) after the last *FLAGS variable, or
  7705. # (2) before a word containing "conftest.", or (3) at the end.
  7706. # Note that $ac_compile itself does not contain backslashes and begins
  7707. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7708. lt_compile=`echo "$ac_compile" | $SED \
  7709. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7710. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7711. -e 's:$: $lt_compiler_flag:'`
  7712. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7713. (eval "$lt_compile" 2>out/conftest.err)
  7714. ac_status=$?
  7715. cat out/conftest.err >&5
  7716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7717. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7718. then
  7719. # The compiler can only warn and ignore the option if not recognized
  7720. # So say no if there are warnings
  7721. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7722. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7723. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7724. lt_cv_prog_compiler_c_o=yes
  7725. fi
  7726. fi
  7727. chmod u+w . 2>&5
  7728. $RM conftest*
  7729. # SGI C++ compiler will create directory out/ii_files/ for
  7730. # template instantiation
  7731. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7732. $RM out/* && rmdir out
  7733. cd ..
  7734. $RM -r conftest
  7735. $RM conftest*
  7736. fi
  7737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7738. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7740. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7741. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7742. $as_echo_n "(cached) " >&6
  7743. else
  7744. lt_cv_prog_compiler_c_o=no
  7745. $RM -r conftest 2>/dev/null
  7746. mkdir conftest
  7747. cd conftest
  7748. mkdir out
  7749. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7750. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7751. # Insert the option either (1) after the last *FLAGS variable, or
  7752. # (2) before a word containing "conftest.", or (3) at the end.
  7753. # Note that $ac_compile itself does not contain backslashes and begins
  7754. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7755. lt_compile=`echo "$ac_compile" | $SED \
  7756. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7757. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7758. -e 's:$: $lt_compiler_flag:'`
  7759. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7760. (eval "$lt_compile" 2>out/conftest.err)
  7761. ac_status=$?
  7762. cat out/conftest.err >&5
  7763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7764. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7765. then
  7766. # The compiler can only warn and ignore the option if not recognized
  7767. # So say no if there are warnings
  7768. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7769. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7770. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7771. lt_cv_prog_compiler_c_o=yes
  7772. fi
  7773. fi
  7774. chmod u+w . 2>&5
  7775. $RM conftest*
  7776. # SGI C++ compiler will create directory out/ii_files/ for
  7777. # template instantiation
  7778. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7779. $RM out/* && rmdir out
  7780. cd ..
  7781. $RM -r conftest
  7782. $RM conftest*
  7783. fi
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7785. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7786. hard_links=nottested
  7787. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7788. # do not overwrite the value of need_locks provided by the user
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7790. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7791. hard_links=yes
  7792. $RM conftest*
  7793. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7794. touch conftest.a
  7795. ln conftest.a conftest.b 2>&5 || hard_links=no
  7796. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7798. $as_echo "$hard_links" >&6; }
  7799. if test no = "$hard_links"; then
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7801. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7802. need_locks=warn
  7803. fi
  7804. else
  7805. need_locks=no
  7806. fi
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7808. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7809. runpath_var=
  7810. allow_undefined_flag=
  7811. always_export_symbols=no
  7812. archive_cmds=
  7813. archive_expsym_cmds=
  7814. compiler_needs_object=no
  7815. enable_shared_with_static_runtimes=no
  7816. export_dynamic_flag_spec=
  7817. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7818. hardcode_automatic=no
  7819. hardcode_direct=no
  7820. hardcode_direct_absolute=no
  7821. hardcode_libdir_flag_spec=
  7822. hardcode_libdir_separator=
  7823. hardcode_minus_L=no
  7824. hardcode_shlibpath_var=unsupported
  7825. inherit_rpath=no
  7826. link_all_deplibs=unknown
  7827. module_cmds=
  7828. module_expsym_cmds=
  7829. old_archive_from_new_cmds=
  7830. old_archive_from_expsyms_cmds=
  7831. thread_safe_flag_spec=
  7832. whole_archive_flag_spec=
  7833. # include_expsyms should be a list of space-separated symbols to be *always*
  7834. # included in the symbol list
  7835. include_expsyms=
  7836. # exclude_expsyms can be an extended regexp of symbols to exclude
  7837. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7838. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7839. # as well as any symbol that contains 'd'.
  7840. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7841. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7842. # platforms (ab)use it in PIC code, but their linkers get confused if
  7843. # the symbol is explicitly referenced. Since portable code cannot
  7844. # rely on this symbol name, it's probably fine to never include it in
  7845. # preloaded symbol tables.
  7846. # Exclude shared library initialization/finalization symbols.
  7847. extract_expsyms_cmds=
  7848. case $host_os in
  7849. cygwin* | mingw* | pw32* | cegcc*)
  7850. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7851. # When not using gcc, we currently assume that we are using
  7852. # Microsoft Visual C++.
  7853. if test yes != "$GCC"; then
  7854. with_gnu_ld=no
  7855. fi
  7856. ;;
  7857. interix*)
  7858. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7859. with_gnu_ld=yes
  7860. ;;
  7861. openbsd* | bitrig*)
  7862. with_gnu_ld=no
  7863. ;;
  7864. esac
  7865. ld_shlibs=yes
  7866. # On some targets, GNU ld is compatible enough with the native linker
  7867. # that we're better off using the native interface for both.
  7868. lt_use_gnu_ld_interface=no
  7869. if test yes = "$with_gnu_ld"; then
  7870. case $host_os in
  7871. aix*)
  7872. # The AIX port of GNU ld has always aspired to compatibility
  7873. # with the native linker. However, as the warning in the GNU ld
  7874. # block says, versions before 2.19.5* couldn't really create working
  7875. # shared libraries, regardless of the interface used.
  7876. case `$LD -v 2>&1` in
  7877. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7878. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7879. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7880. *)
  7881. lt_use_gnu_ld_interface=yes
  7882. ;;
  7883. esac
  7884. ;;
  7885. *)
  7886. lt_use_gnu_ld_interface=yes
  7887. ;;
  7888. esac
  7889. fi
  7890. if test yes = "$lt_use_gnu_ld_interface"; then
  7891. # If archive_cmds runs LD, not CC, wlarc should be empty
  7892. wlarc='$wl'
  7893. # Set some defaults for GNU ld with shared library support. These
  7894. # are reset later if shared libraries are not supported. Putting them
  7895. # here allows them to be overridden if necessary.
  7896. runpath_var=LD_RUN_PATH
  7897. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7898. export_dynamic_flag_spec='$wl--export-dynamic'
  7899. # ancient GNU ld didn't support --whole-archive et. al.
  7900. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7901. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7902. else
  7903. whole_archive_flag_spec=
  7904. fi
  7905. supports_anon_versioning=no
  7906. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7907. *GNU\ gold*) supports_anon_versioning=yes ;;
  7908. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7909. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7910. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7911. *\ 2.11.*) ;; # other 2.11 versions
  7912. *) supports_anon_versioning=yes ;;
  7913. esac
  7914. # See if GNU ld supports shared libraries.
  7915. case $host_os in
  7916. aix[3-9]*)
  7917. # On AIX/PPC, the GNU linker is very broken
  7918. if test ia64 != "$host_cpu"; then
  7919. ld_shlibs=no
  7920. cat <<_LT_EOF 1>&2
  7921. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7922. *** to be unable to reliably create shared libraries on AIX.
  7923. *** Therefore, libtool is disabling shared libraries support. If you
  7924. *** really care for shared libraries, you may want to install binutils
  7925. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7926. *** You will then need to restart the configuration process.
  7927. _LT_EOF
  7928. fi
  7929. ;;
  7930. amigaos*)
  7931. case $host_cpu in
  7932. powerpc)
  7933. # see comment about AmigaOS4 .so support
  7934. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7935. archive_expsym_cmds=''
  7936. ;;
  7937. m68k)
  7938. 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)'
  7939. hardcode_libdir_flag_spec='-L$libdir'
  7940. hardcode_minus_L=yes
  7941. ;;
  7942. esac
  7943. ;;
  7944. beos*)
  7945. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7946. allow_undefined_flag=unsupported
  7947. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7948. # support --undefined. This deserves some investigation. FIXME
  7949. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7950. else
  7951. ld_shlibs=no
  7952. fi
  7953. ;;
  7954. cygwin* | mingw* | pw32* | cegcc*)
  7955. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7956. # as there is no search path for DLLs.
  7957. hardcode_libdir_flag_spec='-L$libdir'
  7958. export_dynamic_flag_spec='$wl--export-all-symbols'
  7959. allow_undefined_flag=unsupported
  7960. always_export_symbols=no
  7961. enable_shared_with_static_runtimes=yes
  7962. 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'
  7963. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7964. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7965. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7966. # If the export-symbols file already is a .def file, use it as
  7967. # is; otherwise, prepend EXPORTS...
  7968. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7969. cp $export_symbols $output_objdir/$soname.def;
  7970. else
  7971. echo EXPORTS > $output_objdir/$soname.def;
  7972. cat $export_symbols >> $output_objdir/$soname.def;
  7973. fi~
  7974. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7975. else
  7976. ld_shlibs=no
  7977. fi
  7978. ;;
  7979. haiku*)
  7980. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7981. link_all_deplibs=yes
  7982. ;;
  7983. os2*)
  7984. hardcode_libdir_flag_spec='-L$libdir'
  7985. hardcode_minus_L=yes
  7986. allow_undefined_flag=unsupported
  7987. shrext_cmds=.dll
  7988. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7989. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7990. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7991. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7992. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7993. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7994. emximp -o $lib $output_objdir/$libname.def'
  7995. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7996. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7997. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7998. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7999. prefix_cmds="$SED"~
  8000. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8001. prefix_cmds="$prefix_cmds -e 1d";
  8002. fi~
  8003. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8004. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8005. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8006. emximp -o $lib $output_objdir/$libname.def'
  8007. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8008. enable_shared_with_static_runtimes=yes
  8009. ;;
  8010. interix[3-9]*)
  8011. hardcode_direct=no
  8012. hardcode_shlibpath_var=no
  8013. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8014. export_dynamic_flag_spec='$wl-E'
  8015. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8016. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8017. # default) and relocated if they conflict, which is a slow very memory
  8018. # consuming and fragmenting process. To avoid this, we pick a random,
  8019. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8020. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8021. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8022. 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'
  8023. ;;
  8024. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8025. tmp_diet=no
  8026. if test linux-dietlibc = "$host_os"; then
  8027. case $cc_basename in
  8028. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8029. esac
  8030. fi
  8031. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8032. && test no = "$tmp_diet"
  8033. then
  8034. tmp_addflag=' $pic_flag'
  8035. tmp_sharedflag='-shared'
  8036. case $cc_basename,$host_cpu in
  8037. pgcc*) # Portland Group C compiler
  8038. 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'
  8039. tmp_addflag=' $pic_flag'
  8040. ;;
  8041. pgf77* | pgf90* | pgf95* | pgfortran*)
  8042. # Portland Group f77 and f90 compilers
  8043. 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'
  8044. tmp_addflag=' $pic_flag -Mnomain' ;;
  8045. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8046. tmp_addflag=' -i_dynamic' ;;
  8047. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8048. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8049. ifc* | ifort*) # Intel Fortran compiler
  8050. tmp_addflag=' -nofor_main' ;;
  8051. lf95*) # Lahey Fortran 8.1
  8052. whole_archive_flag_spec=
  8053. tmp_sharedflag='--shared' ;;
  8054. nagfor*) # NAGFOR 5.3
  8055. tmp_sharedflag='-Wl,-shared' ;;
  8056. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8057. tmp_sharedflag='-qmkshrobj'
  8058. tmp_addflag= ;;
  8059. nvcc*) # Cuda Compiler Driver 2.2
  8060. 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'
  8061. compiler_needs_object=yes
  8062. ;;
  8063. esac
  8064. case `$CC -V 2>&1 | sed 5q` in
  8065. *Sun\ C*) # Sun C 5.9
  8066. 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'
  8067. compiler_needs_object=yes
  8068. tmp_sharedflag='-G' ;;
  8069. *Sun\ F*) # Sun Fortran 8.3
  8070. tmp_sharedflag='-G' ;;
  8071. esac
  8072. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8073. if test yes = "$supports_anon_versioning"; then
  8074. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8075. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8076. echo "local: *; };" >> $output_objdir/$libname.ver~
  8077. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8078. fi
  8079. case $cc_basename in
  8080. tcc*)
  8081. export_dynamic_flag_spec='-rdynamic'
  8082. ;;
  8083. xlf* | bgf* | bgxlf* | mpixlf*)
  8084. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8085. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8086. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8087. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8088. if test yes = "$supports_anon_versioning"; then
  8089. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8090. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8091. echo "local: *; };" >> $output_objdir/$libname.ver~
  8092. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8093. fi
  8094. ;;
  8095. esac
  8096. else
  8097. ld_shlibs=no
  8098. fi
  8099. ;;
  8100. netbsd*)
  8101. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8102. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8103. wlarc=
  8104. else
  8105. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8106. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8107. fi
  8108. ;;
  8109. solaris*)
  8110. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8111. ld_shlibs=no
  8112. cat <<_LT_EOF 1>&2
  8113. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8114. *** create shared libraries on Solaris systems. Therefore, libtool
  8115. *** is disabling shared libraries support. We urge you to upgrade GNU
  8116. *** binutils to release 2.9.1 or newer. Another option is to modify
  8117. *** your PATH or compiler configuration so that the native linker is
  8118. *** used, and then restart.
  8119. _LT_EOF
  8120. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8121. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8122. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8123. else
  8124. ld_shlibs=no
  8125. fi
  8126. ;;
  8127. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8128. case `$LD -v 2>&1` in
  8129. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8130. ld_shlibs=no
  8131. cat <<_LT_EOF 1>&2
  8132. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8133. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8134. *** is disabling shared libraries support. We urge you to upgrade GNU
  8135. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8136. *** your PATH or compiler configuration so that the native linker is
  8137. *** used, and then restart.
  8138. _LT_EOF
  8139. ;;
  8140. *)
  8141. # For security reasons, it is highly recommended that you always
  8142. # use absolute paths for naming shared libraries, and exclude the
  8143. # DT_RUNPATH tag from executables and libraries. But doing so
  8144. # requires that you compile everything twice, which is a pain.
  8145. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8146. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8147. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8148. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8149. else
  8150. ld_shlibs=no
  8151. fi
  8152. ;;
  8153. esac
  8154. ;;
  8155. sunos4*)
  8156. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8157. wlarc=
  8158. hardcode_direct=yes
  8159. hardcode_shlibpath_var=no
  8160. ;;
  8161. *)
  8162. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8163. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8164. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8165. else
  8166. ld_shlibs=no
  8167. fi
  8168. ;;
  8169. esac
  8170. if test no = "$ld_shlibs"; then
  8171. runpath_var=
  8172. hardcode_libdir_flag_spec=
  8173. export_dynamic_flag_spec=
  8174. whole_archive_flag_spec=
  8175. fi
  8176. else
  8177. # PORTME fill in a description of your system's linker (not GNU ld)
  8178. case $host_os in
  8179. aix3*)
  8180. allow_undefined_flag=unsupported
  8181. always_export_symbols=yes
  8182. 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'
  8183. # Note: this linker hardcodes the directories in LIBPATH if there
  8184. # are no directories specified by -L.
  8185. hardcode_minus_L=yes
  8186. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8187. # Neither direct hardcoding nor static linking is supported with a
  8188. # broken collect2.
  8189. hardcode_direct=unsupported
  8190. fi
  8191. ;;
  8192. aix[4-9]*)
  8193. if test ia64 = "$host_cpu"; then
  8194. # On IA64, the linker does run time linking by default, so we don't
  8195. # have to do anything special.
  8196. aix_use_runtimelinking=no
  8197. exp_sym_flag='-Bexport'
  8198. no_entry_flag=
  8199. else
  8200. # If we're using GNU nm, then we don't want the "-C" option.
  8201. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8202. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8203. # weak defined symbols like other global defined symbols, whereas
  8204. # GNU nm marks them as "W".
  8205. # While the 'weak' keyword is ignored in the Export File, we need
  8206. # it in the Import File for the 'aix-soname' feature, so we have
  8207. # to replace the "-B" option with "-P" for AIX nm.
  8208. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8209. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8210. else
  8211. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8212. fi
  8213. aix_use_runtimelinking=no
  8214. # Test if we are trying to use run time linking or normal
  8215. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8216. # have runtime linking enabled, and use it for executables.
  8217. # For shared libraries, we enable/disable runtime linking
  8218. # depending on the kind of the shared library created -
  8219. # when "with_aix_soname,aix_use_runtimelinking" is:
  8220. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8221. # "aix,yes" lib.so shared, rtl:yes, for executables
  8222. # lib.a static archive
  8223. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8224. # lib.a(lib.so.V) shared, rtl:no, for executables
  8225. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8226. # lib.a(lib.so.V) shared, rtl:no
  8227. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8228. # lib.a static archive
  8229. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8230. for ld_flag in $LDFLAGS; do
  8231. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8232. aix_use_runtimelinking=yes
  8233. break
  8234. fi
  8235. done
  8236. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8237. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8238. # so we don't have lib.a shared libs to link our executables.
  8239. # We have to force runtime linking in this case.
  8240. aix_use_runtimelinking=yes
  8241. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8242. fi
  8243. ;;
  8244. esac
  8245. exp_sym_flag='-bexport'
  8246. no_entry_flag='-bnoentry'
  8247. fi
  8248. # When large executables or shared objects are built, AIX ld can
  8249. # have problems creating the table of contents. If linking a library
  8250. # or program results in "error TOC overflow" add -mminimal-toc to
  8251. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8252. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8253. archive_cmds=''
  8254. hardcode_direct=yes
  8255. hardcode_direct_absolute=yes
  8256. hardcode_libdir_separator=':'
  8257. link_all_deplibs=yes
  8258. file_list_spec='$wl-f,'
  8259. case $with_aix_soname,$aix_use_runtimelinking in
  8260. aix,*) ;; # traditional, no import file
  8261. svr4,* | *,yes) # use import file
  8262. # The Import File defines what to hardcode.
  8263. hardcode_direct=no
  8264. hardcode_direct_absolute=no
  8265. ;;
  8266. esac
  8267. if test yes = "$GCC"; then
  8268. case $host_os in aix4.[012]|aix4.[012].*)
  8269. # We only want to do this on AIX 4.2 and lower, the check
  8270. # below for broken collect2 doesn't work under 4.3+
  8271. collect2name=`$CC -print-prog-name=collect2`
  8272. if test -f "$collect2name" &&
  8273. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8274. then
  8275. # We have reworked collect2
  8276. :
  8277. else
  8278. # We have old collect2
  8279. hardcode_direct=unsupported
  8280. # It fails to find uninstalled libraries when the uninstalled
  8281. # path is not listed in the libpath. Setting hardcode_minus_L
  8282. # to unsupported forces relinking
  8283. hardcode_minus_L=yes
  8284. hardcode_libdir_flag_spec='-L$libdir'
  8285. hardcode_libdir_separator=
  8286. fi
  8287. ;;
  8288. esac
  8289. shared_flag='-shared'
  8290. if test yes = "$aix_use_runtimelinking"; then
  8291. shared_flag="$shared_flag "'$wl-G'
  8292. fi
  8293. # Need to ensure runtime linking is disabled for the traditional
  8294. # shared library, or the linker may eventually find shared libraries
  8295. # /with/ Import File - we do not want to mix them.
  8296. shared_flag_aix='-shared'
  8297. shared_flag_svr4='-shared $wl-G'
  8298. else
  8299. # not using gcc
  8300. if test ia64 = "$host_cpu"; then
  8301. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8302. # chokes on -Wl,-G. The following line is correct:
  8303. shared_flag='-G'
  8304. else
  8305. if test yes = "$aix_use_runtimelinking"; then
  8306. shared_flag='$wl-G'
  8307. else
  8308. shared_flag='$wl-bM:SRE'
  8309. fi
  8310. shared_flag_aix='$wl-bM:SRE'
  8311. shared_flag_svr4='$wl-G'
  8312. fi
  8313. fi
  8314. export_dynamic_flag_spec='$wl-bexpall'
  8315. # It seems that -bexpall does not export symbols beginning with
  8316. # underscore (_), so it is better to generate a list of symbols to export.
  8317. always_export_symbols=yes
  8318. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8319. # Warning - without using the other runtime loading flags (-brtl),
  8320. # -berok will link without error, but may produce a broken library.
  8321. allow_undefined_flag='-berok'
  8322. # Determine the default libpath from the value encoded in an
  8323. # empty executable.
  8324. if test set = "${lt_cv_aix_libpath+set}"; then
  8325. aix_libpath=$lt_cv_aix_libpath
  8326. else
  8327. if ${lt_cv_aix_libpath_+:} false; then :
  8328. $as_echo_n "(cached) " >&6
  8329. else
  8330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8331. /* end confdefs.h. */
  8332. int
  8333. main ()
  8334. {
  8335. ;
  8336. return 0;
  8337. }
  8338. _ACEOF
  8339. if ac_fn_c_try_link "$LINENO"; then :
  8340. lt_aix_libpath_sed='
  8341. /Import File Strings/,/^$/ {
  8342. /^0/ {
  8343. s/^0 *\([^ ]*\) *$/\1/
  8344. p
  8345. }
  8346. }'
  8347. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8348. # Check for a 64-bit object if we didn't find anything.
  8349. if test -z "$lt_cv_aix_libpath_"; then
  8350. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8351. fi
  8352. fi
  8353. rm -f core conftest.err conftest.$ac_objext \
  8354. conftest$ac_exeext conftest.$ac_ext
  8355. if test -z "$lt_cv_aix_libpath_"; then
  8356. lt_cv_aix_libpath_=/usr/lib:/lib
  8357. fi
  8358. fi
  8359. aix_libpath=$lt_cv_aix_libpath_
  8360. fi
  8361. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8362. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8363. else
  8364. if test ia64 = "$host_cpu"; then
  8365. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8366. allow_undefined_flag="-z nodefs"
  8367. 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"
  8368. else
  8369. # Determine the default libpath from the value encoded in an
  8370. # empty executable.
  8371. if test set = "${lt_cv_aix_libpath+set}"; then
  8372. aix_libpath=$lt_cv_aix_libpath
  8373. else
  8374. if ${lt_cv_aix_libpath_+:} false; then :
  8375. $as_echo_n "(cached) " >&6
  8376. else
  8377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8378. /* end confdefs.h. */
  8379. int
  8380. main ()
  8381. {
  8382. ;
  8383. return 0;
  8384. }
  8385. _ACEOF
  8386. if ac_fn_c_try_link "$LINENO"; then :
  8387. lt_aix_libpath_sed='
  8388. /Import File Strings/,/^$/ {
  8389. /^0/ {
  8390. s/^0 *\([^ ]*\) *$/\1/
  8391. p
  8392. }
  8393. }'
  8394. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8395. # Check for a 64-bit object if we didn't find anything.
  8396. if test -z "$lt_cv_aix_libpath_"; then
  8397. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8398. fi
  8399. fi
  8400. rm -f core conftest.err conftest.$ac_objext \
  8401. conftest$ac_exeext conftest.$ac_ext
  8402. if test -z "$lt_cv_aix_libpath_"; then
  8403. lt_cv_aix_libpath_=/usr/lib:/lib
  8404. fi
  8405. fi
  8406. aix_libpath=$lt_cv_aix_libpath_
  8407. fi
  8408. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8409. # Warning - without using the other run time loading flags,
  8410. # -berok will link without error, but may produce a broken library.
  8411. no_undefined_flag=' $wl-bernotok'
  8412. allow_undefined_flag=' $wl-berok'
  8413. if test yes = "$with_gnu_ld"; then
  8414. # We only use this code for GNU lds that support --whole-archive.
  8415. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8416. else
  8417. # Exported symbols can be pulled into shared objects from archives
  8418. whole_archive_flag_spec='$convenience'
  8419. fi
  8420. archive_cmds_need_lc=yes
  8421. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8422. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8423. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8424. if test svr4 != "$with_aix_soname"; then
  8425. # This is similar to how AIX traditionally builds its shared libraries.
  8426. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8427. fi
  8428. if test aix != "$with_aix_soname"; then
  8429. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8430. else
  8431. # used by -dlpreopen to get the symbols
  8432. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8433. fi
  8434. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8435. fi
  8436. fi
  8437. ;;
  8438. amigaos*)
  8439. case $host_cpu in
  8440. powerpc)
  8441. # see comment about AmigaOS4 .so support
  8442. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8443. archive_expsym_cmds=''
  8444. ;;
  8445. m68k)
  8446. 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)'
  8447. hardcode_libdir_flag_spec='-L$libdir'
  8448. hardcode_minus_L=yes
  8449. ;;
  8450. esac
  8451. ;;
  8452. bsdi[45]*)
  8453. export_dynamic_flag_spec=-rdynamic
  8454. ;;
  8455. cygwin* | mingw* | pw32* | cegcc*)
  8456. # When not using gcc, we currently assume that we are using
  8457. # Microsoft Visual C++.
  8458. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8459. # no search path for DLLs.
  8460. case $cc_basename in
  8461. cl*)
  8462. # Native MSVC
  8463. hardcode_libdir_flag_spec=' '
  8464. allow_undefined_flag=unsupported
  8465. always_export_symbols=yes
  8466. file_list_spec='@'
  8467. # Tell ltmain to make .lib files, not .a files.
  8468. libext=lib
  8469. # Tell ltmain to make .dll files, not .so files.
  8470. shrext_cmds=.dll
  8471. # FIXME: Setting linknames here is a bad hack.
  8472. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8473. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8474. cp "$export_symbols" "$output_objdir/$soname.def";
  8475. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8476. else
  8477. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8478. fi~
  8479. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8480. linknames='
  8481. # The linker will not automatically build a static lib if we build a DLL.
  8482. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8483. enable_shared_with_static_runtimes=yes
  8484. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8485. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8486. # Don't use ranlib
  8487. old_postinstall_cmds='chmod 644 $oldlib'
  8488. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8489. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8490. case $lt_outputfile in
  8491. *.exe|*.EXE) ;;
  8492. *)
  8493. lt_outputfile=$lt_outputfile.exe
  8494. lt_tool_outputfile=$lt_tool_outputfile.exe
  8495. ;;
  8496. esac~
  8497. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8498. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8499. $RM "$lt_outputfile.manifest";
  8500. fi'
  8501. ;;
  8502. *)
  8503. # Assume MSVC wrapper
  8504. hardcode_libdir_flag_spec=' '
  8505. allow_undefined_flag=unsupported
  8506. # Tell ltmain to make .lib files, not .a files.
  8507. libext=lib
  8508. # Tell ltmain to make .dll files, not .so files.
  8509. shrext_cmds=.dll
  8510. # FIXME: Setting linknames here is a bad hack.
  8511. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8512. # The linker will automatically build a .lib file if we build a DLL.
  8513. old_archive_from_new_cmds='true'
  8514. # FIXME: Should let the user specify the lib program.
  8515. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8516. enable_shared_with_static_runtimes=yes
  8517. ;;
  8518. esac
  8519. ;;
  8520. darwin* | rhapsody*)
  8521. archive_cmds_need_lc=no
  8522. hardcode_direct=no
  8523. hardcode_automatic=yes
  8524. hardcode_shlibpath_var=unsupported
  8525. if test yes = "$lt_cv_ld_force_load"; then
  8526. 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\"`'
  8527. else
  8528. whole_archive_flag_spec=''
  8529. fi
  8530. link_all_deplibs=yes
  8531. allow_undefined_flag=$_lt_dar_allow_undefined
  8532. case $cc_basename in
  8533. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8534. *) _lt_dar_can_shared=$GCC ;;
  8535. esac
  8536. if test yes = "$_lt_dar_can_shared"; then
  8537. output_verbose_link_cmd=func_echo_all
  8538. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8539. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8540. 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"
  8541. 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"
  8542. else
  8543. ld_shlibs=no
  8544. fi
  8545. ;;
  8546. dgux*)
  8547. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8548. hardcode_libdir_flag_spec='-L$libdir'
  8549. hardcode_shlibpath_var=no
  8550. ;;
  8551. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8552. # support. Future versions do this automatically, but an explicit c++rt0.o
  8553. # does not break anything, and helps significantly (at the cost of a little
  8554. # extra space).
  8555. freebsd2.2*)
  8556. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8557. hardcode_libdir_flag_spec='-R$libdir'
  8558. hardcode_direct=yes
  8559. hardcode_shlibpath_var=no
  8560. ;;
  8561. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8562. freebsd2.*)
  8563. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8564. hardcode_direct=yes
  8565. hardcode_minus_L=yes
  8566. hardcode_shlibpath_var=no
  8567. ;;
  8568. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8569. freebsd* | dragonfly*)
  8570. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8571. hardcode_libdir_flag_spec='-R$libdir'
  8572. hardcode_direct=yes
  8573. hardcode_shlibpath_var=no
  8574. ;;
  8575. hpux9*)
  8576. if test yes = "$GCC"; then
  8577. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8578. else
  8579. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8580. fi
  8581. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8582. hardcode_libdir_separator=:
  8583. hardcode_direct=yes
  8584. # hardcode_minus_L: Not really in the search PATH,
  8585. # but as the default location of the library.
  8586. hardcode_minus_L=yes
  8587. export_dynamic_flag_spec='$wl-E'
  8588. ;;
  8589. hpux10*)
  8590. if test yes,no = "$GCC,$with_gnu_ld"; then
  8591. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8592. else
  8593. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8594. fi
  8595. if test no = "$with_gnu_ld"; then
  8596. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8597. hardcode_libdir_separator=:
  8598. hardcode_direct=yes
  8599. hardcode_direct_absolute=yes
  8600. export_dynamic_flag_spec='$wl-E'
  8601. # hardcode_minus_L: Not really in the search PATH,
  8602. # but as the default location of the library.
  8603. hardcode_minus_L=yes
  8604. fi
  8605. ;;
  8606. hpux11*)
  8607. if test yes,no = "$GCC,$with_gnu_ld"; then
  8608. case $host_cpu in
  8609. hppa*64*)
  8610. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8611. ;;
  8612. ia64*)
  8613. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8614. ;;
  8615. *)
  8616. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8617. ;;
  8618. esac
  8619. else
  8620. case $host_cpu in
  8621. hppa*64*)
  8622. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8623. ;;
  8624. ia64*)
  8625. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8626. ;;
  8627. *)
  8628. # Older versions of the 11.00 compiler do not understand -b yet
  8629. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8631. $as_echo_n "checking if $CC understands -b... " >&6; }
  8632. if ${lt_cv_prog_compiler__b+:} false; then :
  8633. $as_echo_n "(cached) " >&6
  8634. else
  8635. lt_cv_prog_compiler__b=no
  8636. save_LDFLAGS=$LDFLAGS
  8637. LDFLAGS="$LDFLAGS -b"
  8638. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8639. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8640. # The linker can only warn and ignore the option if not recognized
  8641. # So say no if there are warnings
  8642. if test -s conftest.err; then
  8643. # Append any errors to the config.log.
  8644. cat conftest.err 1>&5
  8645. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8646. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8647. if diff conftest.exp conftest.er2 >/dev/null; then
  8648. lt_cv_prog_compiler__b=yes
  8649. fi
  8650. else
  8651. lt_cv_prog_compiler__b=yes
  8652. fi
  8653. fi
  8654. $RM -r conftest*
  8655. LDFLAGS=$save_LDFLAGS
  8656. fi
  8657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8658. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8659. if test yes = "$lt_cv_prog_compiler__b"; then
  8660. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8661. else
  8662. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8663. fi
  8664. ;;
  8665. esac
  8666. fi
  8667. if test no = "$with_gnu_ld"; then
  8668. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8669. hardcode_libdir_separator=:
  8670. case $host_cpu in
  8671. hppa*64*|ia64*)
  8672. hardcode_direct=no
  8673. hardcode_shlibpath_var=no
  8674. ;;
  8675. *)
  8676. hardcode_direct=yes
  8677. hardcode_direct_absolute=yes
  8678. export_dynamic_flag_spec='$wl-E'
  8679. # hardcode_minus_L: Not really in the search PATH,
  8680. # but as the default location of the library.
  8681. hardcode_minus_L=yes
  8682. ;;
  8683. esac
  8684. fi
  8685. ;;
  8686. irix5* | irix6* | nonstopux*)
  8687. if test yes = "$GCC"; then
  8688. 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'
  8689. # Try to use the -exported_symbol ld option, if it does not
  8690. # work, assume that -exports_file does not work either and
  8691. # implicitly export all symbols.
  8692. # This should be the same for all languages, so no per-tag cache variable.
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8694. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8695. if ${lt_cv_irix_exported_symbol+:} false; then :
  8696. $as_echo_n "(cached) " >&6
  8697. else
  8698. save_LDFLAGS=$LDFLAGS
  8699. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8701. /* end confdefs.h. */
  8702. int foo (void) { return 0; }
  8703. _ACEOF
  8704. if ac_fn_c_try_link "$LINENO"; then :
  8705. lt_cv_irix_exported_symbol=yes
  8706. else
  8707. lt_cv_irix_exported_symbol=no
  8708. fi
  8709. rm -f core conftest.err conftest.$ac_objext \
  8710. conftest$ac_exeext conftest.$ac_ext
  8711. LDFLAGS=$save_LDFLAGS
  8712. fi
  8713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8714. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8715. if test yes = "$lt_cv_irix_exported_symbol"; then
  8716. 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'
  8717. fi
  8718. else
  8719. 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'
  8720. 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'
  8721. fi
  8722. archive_cmds_need_lc='no'
  8723. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8724. hardcode_libdir_separator=:
  8725. inherit_rpath=yes
  8726. link_all_deplibs=yes
  8727. ;;
  8728. linux*)
  8729. case $cc_basename in
  8730. tcc*)
  8731. # Fabrice Bellard et al's Tiny C Compiler
  8732. ld_shlibs=yes
  8733. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8734. ;;
  8735. esac
  8736. ;;
  8737. netbsd*)
  8738. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8739. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8740. else
  8741. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8742. fi
  8743. hardcode_libdir_flag_spec='-R$libdir'
  8744. hardcode_direct=yes
  8745. hardcode_shlibpath_var=no
  8746. ;;
  8747. newsos6)
  8748. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8749. hardcode_direct=yes
  8750. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8751. hardcode_libdir_separator=:
  8752. hardcode_shlibpath_var=no
  8753. ;;
  8754. *nto* | *qnx*)
  8755. ;;
  8756. openbsd* | bitrig*)
  8757. if test -f /usr/libexec/ld.so; then
  8758. hardcode_direct=yes
  8759. hardcode_shlibpath_var=no
  8760. hardcode_direct_absolute=yes
  8761. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8762. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8763. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8764. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8765. export_dynamic_flag_spec='$wl-E'
  8766. else
  8767. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8768. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8769. fi
  8770. else
  8771. ld_shlibs=no
  8772. fi
  8773. ;;
  8774. os2*)
  8775. hardcode_libdir_flag_spec='-L$libdir'
  8776. hardcode_minus_L=yes
  8777. allow_undefined_flag=unsupported
  8778. shrext_cmds=.dll
  8779. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8780. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8781. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8782. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8783. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8784. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8785. emximp -o $lib $output_objdir/$libname.def'
  8786. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8787. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8788. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8789. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8790. prefix_cmds="$SED"~
  8791. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8792. prefix_cmds="$prefix_cmds -e 1d";
  8793. fi~
  8794. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8795. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8796. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8797. emximp -o $lib $output_objdir/$libname.def'
  8798. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8799. enable_shared_with_static_runtimes=yes
  8800. ;;
  8801. osf3*)
  8802. if test yes = "$GCC"; then
  8803. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8804. 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'
  8805. else
  8806. allow_undefined_flag=' -expect_unresolved \*'
  8807. 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'
  8808. fi
  8809. archive_cmds_need_lc='no'
  8810. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8811. hardcode_libdir_separator=:
  8812. ;;
  8813. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8814. if test yes = "$GCC"; then
  8815. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8816. 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'
  8817. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8818. else
  8819. allow_undefined_flag=' -expect_unresolved \*'
  8820. 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'
  8821. 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~
  8822. $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'
  8823. # Both c and cxx compiler support -rpath directly
  8824. hardcode_libdir_flag_spec='-rpath $libdir'
  8825. fi
  8826. archive_cmds_need_lc='no'
  8827. hardcode_libdir_separator=:
  8828. ;;
  8829. solaris*)
  8830. no_undefined_flag=' -z defs'
  8831. if test yes = "$GCC"; then
  8832. wlarc='$wl'
  8833. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8834. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8835. $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'
  8836. else
  8837. case `$CC -V 2>&1` in
  8838. *"Compilers 5.0"*)
  8839. wlarc=''
  8840. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8841. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8842. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8843. ;;
  8844. *)
  8845. wlarc='$wl'
  8846. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8847. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8848. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8849. ;;
  8850. esac
  8851. fi
  8852. hardcode_libdir_flag_spec='-R$libdir'
  8853. hardcode_shlibpath_var=no
  8854. case $host_os in
  8855. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8856. *)
  8857. # The compiler driver will combine and reorder linker options,
  8858. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8859. # but is careful enough not to reorder.
  8860. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8861. if test yes = "$GCC"; then
  8862. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8863. else
  8864. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8865. fi
  8866. ;;
  8867. esac
  8868. link_all_deplibs=yes
  8869. ;;
  8870. sunos4*)
  8871. if test sequent = "$host_vendor"; then
  8872. # Use $CC to link under sequent, because it throws in some extra .o
  8873. # files that make .init and .fini sections work.
  8874. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8875. else
  8876. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8877. fi
  8878. hardcode_libdir_flag_spec='-L$libdir'
  8879. hardcode_direct=yes
  8880. hardcode_minus_L=yes
  8881. hardcode_shlibpath_var=no
  8882. ;;
  8883. sysv4)
  8884. case $host_vendor in
  8885. sni)
  8886. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8887. hardcode_direct=yes # is this really true???
  8888. ;;
  8889. siemens)
  8890. ## LD is ld it makes a PLAMLIB
  8891. ## CC just makes a GrossModule.
  8892. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8893. reload_cmds='$CC -r -o $output$reload_objs'
  8894. hardcode_direct=no
  8895. ;;
  8896. motorola)
  8897. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8898. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8899. ;;
  8900. esac
  8901. runpath_var='LD_RUN_PATH'
  8902. hardcode_shlibpath_var=no
  8903. ;;
  8904. sysv4.3*)
  8905. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8906. hardcode_shlibpath_var=no
  8907. export_dynamic_flag_spec='-Bexport'
  8908. ;;
  8909. sysv4*MP*)
  8910. if test -d /usr/nec; then
  8911. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8912. hardcode_shlibpath_var=no
  8913. runpath_var=LD_RUN_PATH
  8914. hardcode_runpath_var=yes
  8915. ld_shlibs=yes
  8916. fi
  8917. ;;
  8918. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8919. no_undefined_flag='$wl-z,text'
  8920. archive_cmds_need_lc=no
  8921. hardcode_shlibpath_var=no
  8922. runpath_var='LD_RUN_PATH'
  8923. if test yes = "$GCC"; then
  8924. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8925. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8926. else
  8927. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8928. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8929. fi
  8930. ;;
  8931. sysv5* | sco3.2v5* | sco5v6*)
  8932. # Note: We CANNOT use -z defs as we might desire, because we do not
  8933. # link with -lc, and that would cause any symbols used from libc to
  8934. # always be unresolved, which means just about no library would
  8935. # ever link correctly. If we're not using GNU ld we use -z text
  8936. # though, which does catch some bad symbols but isn't as heavy-handed
  8937. # as -z defs.
  8938. no_undefined_flag='$wl-z,text'
  8939. allow_undefined_flag='$wl-z,nodefs'
  8940. archive_cmds_need_lc=no
  8941. hardcode_shlibpath_var=no
  8942. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8943. hardcode_libdir_separator=':'
  8944. link_all_deplibs=yes
  8945. export_dynamic_flag_spec='$wl-Bexport'
  8946. runpath_var='LD_RUN_PATH'
  8947. if test yes = "$GCC"; then
  8948. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8949. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8950. else
  8951. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8952. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8953. fi
  8954. ;;
  8955. uts4*)
  8956. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8957. hardcode_libdir_flag_spec='-L$libdir'
  8958. hardcode_shlibpath_var=no
  8959. ;;
  8960. *)
  8961. ld_shlibs=no
  8962. ;;
  8963. esac
  8964. if test sni = "$host_vendor"; then
  8965. case $host in
  8966. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8967. export_dynamic_flag_spec='$wl-Blargedynsym'
  8968. ;;
  8969. esac
  8970. fi
  8971. fi
  8972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8973. $as_echo "$ld_shlibs" >&6; }
  8974. test no = "$ld_shlibs" && can_build_shared=no
  8975. with_gnu_ld=$with_gnu_ld
  8976. #
  8977. # Do we need to explicitly link libc?
  8978. #
  8979. case "x$archive_cmds_need_lc" in
  8980. x|xyes)
  8981. # Assume -lc should be added
  8982. archive_cmds_need_lc=yes
  8983. if test yes,yes = "$GCC,$enable_shared"; then
  8984. case $archive_cmds in
  8985. *'~'*)
  8986. # FIXME: we may have to deal with multi-command sequences.
  8987. ;;
  8988. '$CC '*)
  8989. # Test whether the compiler implicitly links with -lc since on some
  8990. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8991. # to ld, don't add -lc before -lgcc.
  8992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8993. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8994. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8995. $as_echo_n "(cached) " >&6
  8996. else
  8997. $RM conftest*
  8998. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8999. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9000. (eval $ac_compile) 2>&5
  9001. ac_status=$?
  9002. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9003. test $ac_status = 0; } 2>conftest.err; then
  9004. soname=conftest
  9005. lib=conftest
  9006. libobjs=conftest.$ac_objext
  9007. deplibs=
  9008. wl=$lt_prog_compiler_wl
  9009. pic_flag=$lt_prog_compiler_pic
  9010. compiler_flags=-v
  9011. linker_flags=-v
  9012. verstring=
  9013. output_objdir=.
  9014. libname=conftest
  9015. lt_save_allow_undefined_flag=$allow_undefined_flag
  9016. allow_undefined_flag=
  9017. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9018. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9019. ac_status=$?
  9020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9021. test $ac_status = 0; }
  9022. then
  9023. lt_cv_archive_cmds_need_lc=no
  9024. else
  9025. lt_cv_archive_cmds_need_lc=yes
  9026. fi
  9027. allow_undefined_flag=$lt_save_allow_undefined_flag
  9028. else
  9029. cat conftest.err 1>&5
  9030. fi
  9031. $RM conftest*
  9032. fi
  9033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9034. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9035. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9036. ;;
  9037. esac
  9038. fi
  9039. ;;
  9040. esac
  9041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9042. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9043. if test yes = "$GCC"; then
  9044. case $host_os in
  9045. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9046. *) lt_awk_arg='/^libraries:/' ;;
  9047. esac
  9048. case $host_os in
  9049. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9050. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9051. esac
  9052. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9053. case $lt_search_path_spec in
  9054. *\;*)
  9055. # if the path contains ";" then we assume it to be the separator
  9056. # otherwise default to the standard path separator (i.e. ":") - it is
  9057. # assumed that no part of a normal pathname contains ";" but that should
  9058. # okay in the real world where ";" in dirpaths is itself problematic.
  9059. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9060. ;;
  9061. *)
  9062. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9063. ;;
  9064. esac
  9065. # Ok, now we have the path, separated by spaces, we can step through it
  9066. # and add multilib dir if necessary...
  9067. lt_tmp_lt_search_path_spec=
  9068. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9069. # ...but if some path component already ends with the multilib dir we assume
  9070. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9071. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9072. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9073. lt_multi_os_dir=
  9074. ;;
  9075. esac
  9076. for lt_sys_path in $lt_search_path_spec; do
  9077. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9078. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9079. elif test -n "$lt_multi_os_dir"; then
  9080. test -d "$lt_sys_path" && \
  9081. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9082. fi
  9083. done
  9084. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9085. BEGIN {RS = " "; FS = "/|\n";} {
  9086. lt_foo = "";
  9087. lt_count = 0;
  9088. for (lt_i = NF; lt_i > 0; lt_i--) {
  9089. if ($lt_i != "" && $lt_i != ".") {
  9090. if ($lt_i == "..") {
  9091. lt_count++;
  9092. } else {
  9093. if (lt_count == 0) {
  9094. lt_foo = "/" $lt_i lt_foo;
  9095. } else {
  9096. lt_count--;
  9097. }
  9098. }
  9099. }
  9100. }
  9101. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9102. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9103. }'`
  9104. # AWK program above erroneously prepends '/' to C:/dos/paths
  9105. # for these hosts.
  9106. case $host_os in
  9107. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9108. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9109. esac
  9110. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9111. else
  9112. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9113. fi
  9114. library_names_spec=
  9115. libname_spec='lib$name'
  9116. soname_spec=
  9117. shrext_cmds=.so
  9118. postinstall_cmds=
  9119. postuninstall_cmds=
  9120. finish_cmds=
  9121. finish_eval=
  9122. shlibpath_var=
  9123. shlibpath_overrides_runpath=unknown
  9124. version_type=none
  9125. dynamic_linker="$host_os ld.so"
  9126. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9127. need_lib_prefix=unknown
  9128. hardcode_into_libs=no
  9129. # when you set need_version to no, make sure it does not cause -set_version
  9130. # flags to be left without arguments
  9131. need_version=unknown
  9132. case $host_os in
  9133. aix3*)
  9134. version_type=linux # correct to gnu/linux during the next big refactor
  9135. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9136. shlibpath_var=LIBPATH
  9137. # AIX 3 has no versioning support, so we append a major version to the name.
  9138. soname_spec='$libname$release$shared_ext$major'
  9139. ;;
  9140. aix[4-9]*)
  9141. version_type=linux # correct to gnu/linux during the next big refactor
  9142. need_lib_prefix=no
  9143. need_version=no
  9144. hardcode_into_libs=yes
  9145. if test ia64 = "$host_cpu"; then
  9146. # AIX 5 supports IA64
  9147. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9148. shlibpath_var=LD_LIBRARY_PATH
  9149. else
  9150. # With GCC up to 2.95.x, collect2 would create an import file
  9151. # for dependence libraries. The import file would start with
  9152. # the line '#! .'. This would cause the generated library to
  9153. # depend on '.', always an invalid library. This was fixed in
  9154. # development snapshots of GCC prior to 3.0.
  9155. case $host_os in
  9156. aix4 | aix4.[01] | aix4.[01].*)
  9157. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9158. echo ' yes '
  9159. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9160. :
  9161. else
  9162. can_build_shared=no
  9163. fi
  9164. ;;
  9165. esac
  9166. # Using Import Files as archive members, it is possible to support
  9167. # filename-based versioning of shared library archives on AIX. While
  9168. # this would work for both with and without runtime linking, it will
  9169. # prevent static linking of such archives. So we do filename-based
  9170. # shared library versioning with .so extension only, which is used
  9171. # when both runtime linking and shared linking is enabled.
  9172. # Unfortunately, runtime linking may impact performance, so we do
  9173. # not want this to be the default eventually. Also, we use the
  9174. # versioned .so libs for executables only if there is the -brtl
  9175. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9176. # To allow for filename-based versioning support, we need to create
  9177. # libNAME.so.V as an archive file, containing:
  9178. # *) an Import File, referring to the versioned filename of the
  9179. # archive as well as the shared archive member, telling the
  9180. # bitwidth (32 or 64) of that shared object, and providing the
  9181. # list of exported symbols of that shared object, eventually
  9182. # decorated with the 'weak' keyword
  9183. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9184. # it being seen by the linker.
  9185. # At run time we better use the real file rather than another symlink,
  9186. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9187. case $with_aix_soname,$aix_use_runtimelinking in
  9188. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9189. # soname into executable. Probably we can add versioning support to
  9190. # collect2, so additional links can be useful in future.
  9191. aix,yes) # traditional libtool
  9192. dynamic_linker='AIX unversionable lib.so'
  9193. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9194. # instead of lib<name>.a to let people know that these are not
  9195. # typical AIX shared libraries.
  9196. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9197. ;;
  9198. aix,no) # traditional AIX only
  9199. dynamic_linker='AIX lib.a(lib.so.V)'
  9200. # We preserve .a as extension for shared libraries through AIX4.2
  9201. # and later when we are not doing run time linking.
  9202. library_names_spec='$libname$release.a $libname.a'
  9203. soname_spec='$libname$release$shared_ext$major'
  9204. ;;
  9205. svr4,*) # full svr4 only
  9206. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9207. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9208. # We do not specify a path in Import Files, so LIBPATH fires.
  9209. shlibpath_overrides_runpath=yes
  9210. ;;
  9211. *,yes) # both, prefer svr4
  9212. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9213. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9214. # unpreferred sharedlib libNAME.a needs extra handling
  9215. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9216. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9217. # We do not specify a path in Import Files, so LIBPATH fires.
  9218. shlibpath_overrides_runpath=yes
  9219. ;;
  9220. *,no) # both, prefer aix
  9221. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9222. library_names_spec='$libname$release.a $libname.a'
  9223. soname_spec='$libname$release$shared_ext$major'
  9224. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9225. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9226. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9227. ;;
  9228. esac
  9229. shlibpath_var=LIBPATH
  9230. fi
  9231. ;;
  9232. amigaos*)
  9233. case $host_cpu in
  9234. powerpc)
  9235. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9236. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9237. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9238. ;;
  9239. m68k)
  9240. library_names_spec='$libname.ixlibrary $libname.a'
  9241. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9242. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9243. ;;
  9244. esac
  9245. ;;
  9246. beos*)
  9247. library_names_spec='$libname$shared_ext'
  9248. dynamic_linker="$host_os ld.so"
  9249. shlibpath_var=LIBRARY_PATH
  9250. ;;
  9251. bsdi[45]*)
  9252. version_type=linux # correct to gnu/linux during the next big refactor
  9253. need_version=no
  9254. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9255. soname_spec='$libname$release$shared_ext$major'
  9256. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9257. shlibpath_var=LD_LIBRARY_PATH
  9258. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9259. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9260. # the default ld.so.conf also contains /usr/contrib/lib and
  9261. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9262. # libtool to hard-code these into programs
  9263. ;;
  9264. cygwin* | mingw* | pw32* | cegcc*)
  9265. version_type=windows
  9266. shrext_cmds=.dll
  9267. need_version=no
  9268. need_lib_prefix=no
  9269. case $GCC,$cc_basename in
  9270. yes,*)
  9271. # gcc
  9272. library_names_spec='$libname.dll.a'
  9273. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9274. postinstall_cmds='base_file=`basename \$file`~
  9275. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9276. dldir=$destdir/`dirname \$dlpath`~
  9277. test -d \$dldir || mkdir -p \$dldir~
  9278. $install_prog $dir/$dlname \$dldir/$dlname~
  9279. chmod a+x \$dldir/$dlname~
  9280. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9281. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9282. fi'
  9283. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9284. dlpath=$dir/\$dldll~
  9285. $RM \$dlpath'
  9286. shlibpath_overrides_runpath=yes
  9287. case $host_os in
  9288. cygwin*)
  9289. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9290. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9291. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9292. ;;
  9293. mingw* | cegcc*)
  9294. # MinGW DLLs use traditional 'lib' prefix
  9295. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9296. ;;
  9297. pw32*)
  9298. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9299. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9300. ;;
  9301. esac
  9302. dynamic_linker='Win32 ld.exe'
  9303. ;;
  9304. *,cl*)
  9305. # Native MSVC
  9306. libname_spec='$name'
  9307. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9308. library_names_spec='$libname.dll.lib'
  9309. case $build_os in
  9310. mingw*)
  9311. sys_lib_search_path_spec=
  9312. lt_save_ifs=$IFS
  9313. IFS=';'
  9314. for lt_path in $LIB
  9315. do
  9316. IFS=$lt_save_ifs
  9317. # Let DOS variable expansion print the short 8.3 style file name.
  9318. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9319. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9320. done
  9321. IFS=$lt_save_ifs
  9322. # Convert to MSYS style.
  9323. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9324. ;;
  9325. cygwin*)
  9326. # Convert to unix form, then to dos form, then back to unix form
  9327. # but this time dos style (no spaces!) so that the unix form looks
  9328. # like /cygdrive/c/PROGRA~1:/cygdr...
  9329. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9330. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9331. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9332. ;;
  9333. *)
  9334. sys_lib_search_path_spec=$LIB
  9335. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9336. # It is most probably a Windows format PATH.
  9337. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9338. else
  9339. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9340. fi
  9341. # FIXME: find the short name or the path components, as spaces are
  9342. # common. (e.g. "Program Files" -> "PROGRA~1")
  9343. ;;
  9344. esac
  9345. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9346. postinstall_cmds='base_file=`basename \$file`~
  9347. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9348. dldir=$destdir/`dirname \$dlpath`~
  9349. test -d \$dldir || mkdir -p \$dldir~
  9350. $install_prog $dir/$dlname \$dldir/$dlname'
  9351. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9352. dlpath=$dir/\$dldll~
  9353. $RM \$dlpath'
  9354. shlibpath_overrides_runpath=yes
  9355. dynamic_linker='Win32 link.exe'
  9356. ;;
  9357. *)
  9358. # Assume MSVC wrapper
  9359. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9360. dynamic_linker='Win32 ld.exe'
  9361. ;;
  9362. esac
  9363. # FIXME: first we should search . and the directory the executable is in
  9364. shlibpath_var=PATH
  9365. ;;
  9366. darwin* | rhapsody*)
  9367. dynamic_linker="$host_os dyld"
  9368. version_type=darwin
  9369. need_lib_prefix=no
  9370. need_version=no
  9371. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9372. soname_spec='$libname$release$major$shared_ext'
  9373. shlibpath_overrides_runpath=yes
  9374. shlibpath_var=DYLD_LIBRARY_PATH
  9375. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9376. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9377. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9378. ;;
  9379. dgux*)
  9380. version_type=linux # correct to gnu/linux during the next big refactor
  9381. need_lib_prefix=no
  9382. need_version=no
  9383. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9384. soname_spec='$libname$release$shared_ext$major'
  9385. shlibpath_var=LD_LIBRARY_PATH
  9386. ;;
  9387. freebsd* | dragonfly*)
  9388. # DragonFly does not have aout. When/if they implement a new
  9389. # versioning mechanism, adjust this.
  9390. if test -x /usr/bin/objformat; then
  9391. objformat=`/usr/bin/objformat`
  9392. else
  9393. case $host_os in
  9394. freebsd[23].*) objformat=aout ;;
  9395. *) objformat=elf ;;
  9396. esac
  9397. fi
  9398. version_type=freebsd-$objformat
  9399. case $version_type in
  9400. freebsd-elf*)
  9401. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9402. soname_spec='$libname$release$shared_ext$major'
  9403. need_version=no
  9404. need_lib_prefix=no
  9405. ;;
  9406. freebsd-*)
  9407. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9408. need_version=yes
  9409. ;;
  9410. esac
  9411. shlibpath_var=LD_LIBRARY_PATH
  9412. case $host_os in
  9413. freebsd2.*)
  9414. shlibpath_overrides_runpath=yes
  9415. ;;
  9416. freebsd3.[01]* | freebsdelf3.[01]*)
  9417. shlibpath_overrides_runpath=yes
  9418. hardcode_into_libs=yes
  9419. ;;
  9420. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9421. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9422. shlibpath_overrides_runpath=no
  9423. hardcode_into_libs=yes
  9424. ;;
  9425. *) # from 4.6 on, and DragonFly
  9426. shlibpath_overrides_runpath=yes
  9427. hardcode_into_libs=yes
  9428. ;;
  9429. esac
  9430. ;;
  9431. haiku*)
  9432. version_type=linux # correct to gnu/linux during the next big refactor
  9433. need_lib_prefix=no
  9434. need_version=no
  9435. dynamic_linker="$host_os runtime_loader"
  9436. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9437. soname_spec='$libname$release$shared_ext$major'
  9438. shlibpath_var=LIBRARY_PATH
  9439. shlibpath_overrides_runpath=no
  9440. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9441. hardcode_into_libs=yes
  9442. ;;
  9443. hpux9* | hpux10* | hpux11*)
  9444. # Give a soname corresponding to the major version so that dld.sl refuses to
  9445. # link against other versions.
  9446. version_type=sunos
  9447. need_lib_prefix=no
  9448. need_version=no
  9449. case $host_cpu in
  9450. ia64*)
  9451. shrext_cmds='.so'
  9452. hardcode_into_libs=yes
  9453. dynamic_linker="$host_os dld.so"
  9454. shlibpath_var=LD_LIBRARY_PATH
  9455. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9456. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9457. soname_spec='$libname$release$shared_ext$major'
  9458. if test 32 = "$HPUX_IA64_MODE"; then
  9459. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9460. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9461. else
  9462. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9463. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9464. fi
  9465. ;;
  9466. hppa*64*)
  9467. shrext_cmds='.sl'
  9468. hardcode_into_libs=yes
  9469. dynamic_linker="$host_os dld.sl"
  9470. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9471. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9472. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9473. soname_spec='$libname$release$shared_ext$major'
  9474. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9475. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9476. ;;
  9477. *)
  9478. shrext_cmds='.sl'
  9479. dynamic_linker="$host_os dld.sl"
  9480. shlibpath_var=SHLIB_PATH
  9481. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9482. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9483. soname_spec='$libname$release$shared_ext$major'
  9484. ;;
  9485. esac
  9486. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9487. postinstall_cmds='chmod 555 $lib'
  9488. # or fails outright, so override atomically:
  9489. install_override_mode=555
  9490. ;;
  9491. interix[3-9]*)
  9492. version_type=linux # correct to gnu/linux during the next big refactor
  9493. need_lib_prefix=no
  9494. need_version=no
  9495. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9496. soname_spec='$libname$release$shared_ext$major'
  9497. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9498. shlibpath_var=LD_LIBRARY_PATH
  9499. shlibpath_overrides_runpath=no
  9500. hardcode_into_libs=yes
  9501. ;;
  9502. irix5* | irix6* | nonstopux*)
  9503. case $host_os in
  9504. nonstopux*) version_type=nonstopux ;;
  9505. *)
  9506. if test yes = "$lt_cv_prog_gnu_ld"; then
  9507. version_type=linux # correct to gnu/linux during the next big refactor
  9508. else
  9509. version_type=irix
  9510. fi ;;
  9511. esac
  9512. need_lib_prefix=no
  9513. need_version=no
  9514. soname_spec='$libname$release$shared_ext$major'
  9515. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9516. case $host_os in
  9517. irix5* | nonstopux*)
  9518. libsuff= shlibsuff=
  9519. ;;
  9520. *)
  9521. case $LD in # libtool.m4 will add one of these switches to LD
  9522. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9523. libsuff= shlibsuff= libmagic=32-bit;;
  9524. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9525. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9526. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9527. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9528. *) libsuff= shlibsuff= libmagic=never-match;;
  9529. esac
  9530. ;;
  9531. esac
  9532. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9533. shlibpath_overrides_runpath=no
  9534. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9535. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9536. hardcode_into_libs=yes
  9537. ;;
  9538. # No shared lib support for Linux oldld, aout, or coff.
  9539. linux*oldld* | linux*aout* | linux*coff*)
  9540. dynamic_linker=no
  9541. ;;
  9542. linux*android*)
  9543. version_type=none # Android doesn't support versioned libraries.
  9544. need_lib_prefix=no
  9545. need_version=no
  9546. library_names_spec='$libname$release$shared_ext'
  9547. soname_spec='$libname$release$shared_ext'
  9548. finish_cmds=
  9549. shlibpath_var=LD_LIBRARY_PATH
  9550. shlibpath_overrides_runpath=yes
  9551. # This implies no fast_install, which is unacceptable.
  9552. # Some rework will be needed to allow for fast_install
  9553. # before this can be enabled.
  9554. hardcode_into_libs=yes
  9555. dynamic_linker='Android linker'
  9556. # Don't embed -rpath directories since the linker doesn't support them.
  9557. hardcode_libdir_flag_spec='-L$libdir'
  9558. ;;
  9559. # This must be glibc/ELF.
  9560. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9561. version_type=linux # correct to gnu/linux during the next big refactor
  9562. need_lib_prefix=no
  9563. need_version=no
  9564. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9565. soname_spec='$libname$release$shared_ext$major'
  9566. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9567. shlibpath_var=LD_LIBRARY_PATH
  9568. shlibpath_overrides_runpath=no
  9569. # Some binutils ld are patched to set DT_RUNPATH
  9570. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9571. $as_echo_n "(cached) " >&6
  9572. else
  9573. lt_cv_shlibpath_overrides_runpath=no
  9574. save_LDFLAGS=$LDFLAGS
  9575. save_libdir=$libdir
  9576. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9577. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9579. /* end confdefs.h. */
  9580. int
  9581. main ()
  9582. {
  9583. ;
  9584. return 0;
  9585. }
  9586. _ACEOF
  9587. if ac_fn_c_try_link "$LINENO"; then :
  9588. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9589. lt_cv_shlibpath_overrides_runpath=yes
  9590. fi
  9591. fi
  9592. rm -f core conftest.err conftest.$ac_objext \
  9593. conftest$ac_exeext conftest.$ac_ext
  9594. LDFLAGS=$save_LDFLAGS
  9595. libdir=$save_libdir
  9596. fi
  9597. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9598. # This implies no fast_install, which is unacceptable.
  9599. # Some rework will be needed to allow for fast_install
  9600. # before this can be enabled.
  9601. hardcode_into_libs=yes
  9602. # Add ABI-specific directories to the system library path.
  9603. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9604. # Ideally, we could use ldconfig to report *all* directores which are
  9605. # searched for libraries, however this is still not possible. Aside from not
  9606. # being certain /sbin/ldconfig is available, command
  9607. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9608. # even though it is searched at run-time. Try to do the best guess by
  9609. # appending ld.so.conf contents (and includes) to the search path.
  9610. if test -f /etc/ld.so.conf; then
  9611. 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' ' '`
  9612. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9613. fi
  9614. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9615. # powerpc, because MkLinux only supported shared libraries with the
  9616. # GNU dynamic linker. Since this was broken with cross compilers,
  9617. # most powerpc-linux boxes support dynamic linking these days and
  9618. # people can always --disable-shared, the test was removed, and we
  9619. # assume the GNU/Linux dynamic linker is in use.
  9620. dynamic_linker='GNU/Linux ld.so'
  9621. ;;
  9622. netbsd*)
  9623. version_type=sunos
  9624. need_lib_prefix=no
  9625. need_version=no
  9626. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9627. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9628. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9629. dynamic_linker='NetBSD (a.out) ld.so'
  9630. else
  9631. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9632. soname_spec='$libname$release$shared_ext$major'
  9633. dynamic_linker='NetBSD ld.elf_so'
  9634. fi
  9635. shlibpath_var=LD_LIBRARY_PATH
  9636. shlibpath_overrides_runpath=yes
  9637. hardcode_into_libs=yes
  9638. ;;
  9639. newsos6)
  9640. version_type=linux # correct to gnu/linux during the next big refactor
  9641. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9642. shlibpath_var=LD_LIBRARY_PATH
  9643. shlibpath_overrides_runpath=yes
  9644. ;;
  9645. *nto* | *qnx*)
  9646. version_type=qnx
  9647. need_lib_prefix=no
  9648. need_version=no
  9649. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9650. soname_spec='$libname$release$shared_ext$major'
  9651. shlibpath_var=LD_LIBRARY_PATH
  9652. shlibpath_overrides_runpath=no
  9653. hardcode_into_libs=yes
  9654. dynamic_linker='ldqnx.so'
  9655. ;;
  9656. openbsd* | bitrig*)
  9657. version_type=sunos
  9658. sys_lib_dlsearch_path_spec=/usr/lib
  9659. need_lib_prefix=no
  9660. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9661. need_version=no
  9662. else
  9663. need_version=yes
  9664. fi
  9665. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9666. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9667. shlibpath_var=LD_LIBRARY_PATH
  9668. shlibpath_overrides_runpath=yes
  9669. ;;
  9670. os2*)
  9671. libname_spec='$name'
  9672. version_type=windows
  9673. shrext_cmds=.dll
  9674. need_version=no
  9675. need_lib_prefix=no
  9676. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9677. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9678. v=$($ECHO $release$versuffix | tr -d .-);
  9679. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9680. $ECHO $n$v`$shared_ext'
  9681. library_names_spec='${libname}_dll.$libext'
  9682. dynamic_linker='OS/2 ld.exe'
  9683. shlibpath_var=BEGINLIBPATH
  9684. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9685. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9686. postinstall_cmds='base_file=`basename \$file`~
  9687. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9688. dldir=$destdir/`dirname \$dlpath`~
  9689. test -d \$dldir || mkdir -p \$dldir~
  9690. $install_prog $dir/$dlname \$dldir/$dlname~
  9691. chmod a+x \$dldir/$dlname~
  9692. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9693. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9694. fi'
  9695. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9696. dlpath=$dir/\$dldll~
  9697. $RM \$dlpath'
  9698. ;;
  9699. osf3* | osf4* | osf5*)
  9700. version_type=osf
  9701. need_lib_prefix=no
  9702. need_version=no
  9703. soname_spec='$libname$release$shared_ext$major'
  9704. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9705. shlibpath_var=LD_LIBRARY_PATH
  9706. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9707. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9708. ;;
  9709. rdos*)
  9710. dynamic_linker=no
  9711. ;;
  9712. solaris*)
  9713. version_type=linux # correct to gnu/linux during the next big refactor
  9714. need_lib_prefix=no
  9715. need_version=no
  9716. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9717. soname_spec='$libname$release$shared_ext$major'
  9718. shlibpath_var=LD_LIBRARY_PATH
  9719. shlibpath_overrides_runpath=yes
  9720. hardcode_into_libs=yes
  9721. # ldd complains unless libraries are executable
  9722. postinstall_cmds='chmod +x $lib'
  9723. ;;
  9724. sunos4*)
  9725. version_type=sunos
  9726. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9727. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9728. shlibpath_var=LD_LIBRARY_PATH
  9729. shlibpath_overrides_runpath=yes
  9730. if test yes = "$with_gnu_ld"; then
  9731. need_lib_prefix=no
  9732. fi
  9733. need_version=yes
  9734. ;;
  9735. sysv4 | sysv4.3*)
  9736. version_type=linux # correct to gnu/linux during the next big refactor
  9737. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9738. soname_spec='$libname$release$shared_ext$major'
  9739. shlibpath_var=LD_LIBRARY_PATH
  9740. case $host_vendor in
  9741. sni)
  9742. shlibpath_overrides_runpath=no
  9743. need_lib_prefix=no
  9744. runpath_var=LD_RUN_PATH
  9745. ;;
  9746. siemens)
  9747. need_lib_prefix=no
  9748. ;;
  9749. motorola)
  9750. need_lib_prefix=no
  9751. need_version=no
  9752. shlibpath_overrides_runpath=no
  9753. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9754. ;;
  9755. esac
  9756. ;;
  9757. sysv4*MP*)
  9758. if test -d /usr/nec; then
  9759. version_type=linux # correct to gnu/linux during the next big refactor
  9760. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9761. soname_spec='$libname$shared_ext.$major'
  9762. shlibpath_var=LD_LIBRARY_PATH
  9763. fi
  9764. ;;
  9765. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9766. version_type=sco
  9767. need_lib_prefix=no
  9768. need_version=no
  9769. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9770. soname_spec='$libname$release$shared_ext$major'
  9771. shlibpath_var=LD_LIBRARY_PATH
  9772. shlibpath_overrides_runpath=yes
  9773. hardcode_into_libs=yes
  9774. if test yes = "$with_gnu_ld"; then
  9775. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9776. else
  9777. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9778. case $host_os in
  9779. sco3.2v5*)
  9780. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9781. ;;
  9782. esac
  9783. fi
  9784. sys_lib_dlsearch_path_spec='/usr/lib'
  9785. ;;
  9786. tpf*)
  9787. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9788. version_type=linux # correct to gnu/linux during the next big refactor
  9789. need_lib_prefix=no
  9790. need_version=no
  9791. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9792. shlibpath_var=LD_LIBRARY_PATH
  9793. shlibpath_overrides_runpath=no
  9794. hardcode_into_libs=yes
  9795. ;;
  9796. uts4*)
  9797. version_type=linux # correct to gnu/linux during the next big refactor
  9798. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9799. soname_spec='$libname$release$shared_ext$major'
  9800. shlibpath_var=LD_LIBRARY_PATH
  9801. ;;
  9802. *)
  9803. dynamic_linker=no
  9804. ;;
  9805. esac
  9806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9807. $as_echo "$dynamic_linker" >&6; }
  9808. test no = "$dynamic_linker" && can_build_shared=no
  9809. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9810. if test yes = "$GCC"; then
  9811. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9812. fi
  9813. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9814. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9815. fi
  9816. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9817. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9818. fi
  9819. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9820. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9821. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9822. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9823. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9824. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9826. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9827. hardcode_action=
  9828. if test -n "$hardcode_libdir_flag_spec" ||
  9829. test -n "$runpath_var" ||
  9830. test yes = "$hardcode_automatic"; then
  9831. # We can hardcode non-existent directories.
  9832. if test no != "$hardcode_direct" &&
  9833. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9834. # have to relink, otherwise we might link with an installed library
  9835. # when we should be linking with a yet-to-be-installed one
  9836. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9837. test no != "$hardcode_minus_L"; then
  9838. # Linking always hardcodes the temporary library directory.
  9839. hardcode_action=relink
  9840. else
  9841. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9842. hardcode_action=immediate
  9843. fi
  9844. else
  9845. # We cannot hardcode anything, or else we can only hardcode existing
  9846. # directories.
  9847. hardcode_action=unsupported
  9848. fi
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9850. $as_echo "$hardcode_action" >&6; }
  9851. if test relink = "$hardcode_action" ||
  9852. test yes = "$inherit_rpath"; then
  9853. # Fast installation is not supported
  9854. enable_fast_install=no
  9855. elif test yes = "$shlibpath_overrides_runpath" ||
  9856. test no = "$enable_shared"; then
  9857. # Fast installation is not necessary
  9858. enable_fast_install=needless
  9859. fi
  9860. if test yes != "$enable_dlopen"; then
  9861. enable_dlopen=unknown
  9862. enable_dlopen_self=unknown
  9863. enable_dlopen_self_static=unknown
  9864. else
  9865. lt_cv_dlopen=no
  9866. lt_cv_dlopen_libs=
  9867. case $host_os in
  9868. beos*)
  9869. lt_cv_dlopen=load_add_on
  9870. lt_cv_dlopen_libs=
  9871. lt_cv_dlopen_self=yes
  9872. ;;
  9873. mingw* | pw32* | cegcc*)
  9874. lt_cv_dlopen=LoadLibrary
  9875. lt_cv_dlopen_libs=
  9876. ;;
  9877. cygwin*)
  9878. lt_cv_dlopen=dlopen
  9879. lt_cv_dlopen_libs=
  9880. ;;
  9881. darwin*)
  9882. # if libdl is installed we need to link against it
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9884. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9885. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9886. $as_echo_n "(cached) " >&6
  9887. else
  9888. ac_check_lib_save_LIBS=$LIBS
  9889. LIBS="-ldl $LIBS"
  9890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9891. /* end confdefs.h. */
  9892. /* Override any GCC internal prototype to avoid an error.
  9893. Use char because int might match the return type of a GCC
  9894. builtin and then its argument prototype would still apply. */
  9895. #ifdef __cplusplus
  9896. extern "C"
  9897. #endif
  9898. char dlopen ();
  9899. int
  9900. main ()
  9901. {
  9902. return dlopen ();
  9903. ;
  9904. return 0;
  9905. }
  9906. _ACEOF
  9907. if ac_fn_c_try_link "$LINENO"; then :
  9908. ac_cv_lib_dl_dlopen=yes
  9909. else
  9910. ac_cv_lib_dl_dlopen=no
  9911. fi
  9912. rm -f core conftest.err conftest.$ac_objext \
  9913. conftest$ac_exeext conftest.$ac_ext
  9914. LIBS=$ac_check_lib_save_LIBS
  9915. fi
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9917. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9918. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9919. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9920. else
  9921. lt_cv_dlopen=dyld
  9922. lt_cv_dlopen_libs=
  9923. lt_cv_dlopen_self=yes
  9924. fi
  9925. ;;
  9926. tpf*)
  9927. # Don't try to run any link tests for TPF. We know it's impossible
  9928. # because TPF is a cross-compiler, and we know how we open DSOs.
  9929. lt_cv_dlopen=dlopen
  9930. lt_cv_dlopen_libs=
  9931. lt_cv_dlopen_self=no
  9932. ;;
  9933. *)
  9934. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9935. if test "x$ac_cv_func_shl_load" = xyes; then :
  9936. lt_cv_dlopen=shl_load
  9937. else
  9938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9939. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9940. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9941. $as_echo_n "(cached) " >&6
  9942. else
  9943. ac_check_lib_save_LIBS=$LIBS
  9944. LIBS="-ldld $LIBS"
  9945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9946. /* end confdefs.h. */
  9947. /* Override any GCC internal prototype to avoid an error.
  9948. Use char because int might match the return type of a GCC
  9949. builtin and then its argument prototype would still apply. */
  9950. #ifdef __cplusplus
  9951. extern "C"
  9952. #endif
  9953. char shl_load ();
  9954. int
  9955. main ()
  9956. {
  9957. return shl_load ();
  9958. ;
  9959. return 0;
  9960. }
  9961. _ACEOF
  9962. if ac_fn_c_try_link "$LINENO"; then :
  9963. ac_cv_lib_dld_shl_load=yes
  9964. else
  9965. ac_cv_lib_dld_shl_load=no
  9966. fi
  9967. rm -f core conftest.err conftest.$ac_objext \
  9968. conftest$ac_exeext conftest.$ac_ext
  9969. LIBS=$ac_check_lib_save_LIBS
  9970. fi
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9972. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9973. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9974. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9975. else
  9976. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9977. if test "x$ac_cv_func_dlopen" = xyes; then :
  9978. lt_cv_dlopen=dlopen
  9979. else
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9981. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9982. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9983. $as_echo_n "(cached) " >&6
  9984. else
  9985. ac_check_lib_save_LIBS=$LIBS
  9986. LIBS="-ldl $LIBS"
  9987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9988. /* end confdefs.h. */
  9989. /* Override any GCC internal prototype to avoid an error.
  9990. Use char because int might match the return type of a GCC
  9991. builtin and then its argument prototype would still apply. */
  9992. #ifdef __cplusplus
  9993. extern "C"
  9994. #endif
  9995. char dlopen ();
  9996. int
  9997. main ()
  9998. {
  9999. return dlopen ();
  10000. ;
  10001. return 0;
  10002. }
  10003. _ACEOF
  10004. if ac_fn_c_try_link "$LINENO"; then :
  10005. ac_cv_lib_dl_dlopen=yes
  10006. else
  10007. ac_cv_lib_dl_dlopen=no
  10008. fi
  10009. rm -f core conftest.err conftest.$ac_objext \
  10010. conftest$ac_exeext conftest.$ac_ext
  10011. LIBS=$ac_check_lib_save_LIBS
  10012. fi
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10014. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10015. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10016. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10017. else
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10019. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10020. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10021. $as_echo_n "(cached) " >&6
  10022. else
  10023. ac_check_lib_save_LIBS=$LIBS
  10024. LIBS="-lsvld $LIBS"
  10025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10026. /* end confdefs.h. */
  10027. /* Override any GCC internal prototype to avoid an error.
  10028. Use char because int might match the return type of a GCC
  10029. builtin and then its argument prototype would still apply. */
  10030. #ifdef __cplusplus
  10031. extern "C"
  10032. #endif
  10033. char dlopen ();
  10034. int
  10035. main ()
  10036. {
  10037. return dlopen ();
  10038. ;
  10039. return 0;
  10040. }
  10041. _ACEOF
  10042. if ac_fn_c_try_link "$LINENO"; then :
  10043. ac_cv_lib_svld_dlopen=yes
  10044. else
  10045. ac_cv_lib_svld_dlopen=no
  10046. fi
  10047. rm -f core conftest.err conftest.$ac_objext \
  10048. conftest$ac_exeext conftest.$ac_ext
  10049. LIBS=$ac_check_lib_save_LIBS
  10050. fi
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10052. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10053. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10054. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10055. else
  10056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10057. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10058. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10059. $as_echo_n "(cached) " >&6
  10060. else
  10061. ac_check_lib_save_LIBS=$LIBS
  10062. LIBS="-ldld $LIBS"
  10063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10064. /* end confdefs.h. */
  10065. /* Override any GCC internal prototype to avoid an error.
  10066. Use char because int might match the return type of a GCC
  10067. builtin and then its argument prototype would still apply. */
  10068. #ifdef __cplusplus
  10069. extern "C"
  10070. #endif
  10071. char dld_link ();
  10072. int
  10073. main ()
  10074. {
  10075. return dld_link ();
  10076. ;
  10077. return 0;
  10078. }
  10079. _ACEOF
  10080. if ac_fn_c_try_link "$LINENO"; then :
  10081. ac_cv_lib_dld_dld_link=yes
  10082. else
  10083. ac_cv_lib_dld_dld_link=no
  10084. fi
  10085. rm -f core conftest.err conftest.$ac_objext \
  10086. conftest$ac_exeext conftest.$ac_ext
  10087. LIBS=$ac_check_lib_save_LIBS
  10088. fi
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10090. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10091. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10092. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10093. fi
  10094. fi
  10095. fi
  10096. fi
  10097. fi
  10098. fi
  10099. ;;
  10100. esac
  10101. if test no = "$lt_cv_dlopen"; then
  10102. enable_dlopen=no
  10103. else
  10104. enable_dlopen=yes
  10105. fi
  10106. case $lt_cv_dlopen in
  10107. dlopen)
  10108. save_CPPFLAGS=$CPPFLAGS
  10109. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10110. save_LDFLAGS=$LDFLAGS
  10111. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10112. save_LIBS=$LIBS
  10113. LIBS="$lt_cv_dlopen_libs $LIBS"
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10115. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10116. if ${lt_cv_dlopen_self+:} false; then :
  10117. $as_echo_n "(cached) " >&6
  10118. else
  10119. if test yes = "$cross_compiling"; then :
  10120. lt_cv_dlopen_self=cross
  10121. else
  10122. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10123. lt_status=$lt_dlunknown
  10124. cat > conftest.$ac_ext <<_LT_EOF
  10125. #line $LINENO "configure"
  10126. #include "confdefs.h"
  10127. #if HAVE_DLFCN_H
  10128. #include <dlfcn.h>
  10129. #endif
  10130. #include <stdio.h>
  10131. #ifdef RTLD_GLOBAL
  10132. # define LT_DLGLOBAL RTLD_GLOBAL
  10133. #else
  10134. # ifdef DL_GLOBAL
  10135. # define LT_DLGLOBAL DL_GLOBAL
  10136. # else
  10137. # define LT_DLGLOBAL 0
  10138. # endif
  10139. #endif
  10140. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10141. find out it does not work in some platform. */
  10142. #ifndef LT_DLLAZY_OR_NOW
  10143. # ifdef RTLD_LAZY
  10144. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10145. # else
  10146. # ifdef DL_LAZY
  10147. # define LT_DLLAZY_OR_NOW DL_LAZY
  10148. # else
  10149. # ifdef RTLD_NOW
  10150. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10151. # else
  10152. # ifdef DL_NOW
  10153. # define LT_DLLAZY_OR_NOW DL_NOW
  10154. # else
  10155. # define LT_DLLAZY_OR_NOW 0
  10156. # endif
  10157. # endif
  10158. # endif
  10159. # endif
  10160. #endif
  10161. /* When -fvisibility=hidden is used, assume the code has been annotated
  10162. correspondingly for the symbols needed. */
  10163. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10164. int fnord () __attribute__((visibility("default")));
  10165. #endif
  10166. int fnord () { return 42; }
  10167. int main ()
  10168. {
  10169. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10170. int status = $lt_dlunknown;
  10171. if (self)
  10172. {
  10173. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10174. else
  10175. {
  10176. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10177. else puts (dlerror ());
  10178. }
  10179. /* dlclose (self); */
  10180. }
  10181. else
  10182. puts (dlerror ());
  10183. return status;
  10184. }
  10185. _LT_EOF
  10186. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10187. (eval $ac_link) 2>&5
  10188. ac_status=$?
  10189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10190. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10191. (./conftest; exit; ) >&5 2>/dev/null
  10192. lt_status=$?
  10193. case x$lt_status in
  10194. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10195. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10196. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10197. esac
  10198. else :
  10199. # compilation failed
  10200. lt_cv_dlopen_self=no
  10201. fi
  10202. fi
  10203. rm -fr conftest*
  10204. fi
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10206. $as_echo "$lt_cv_dlopen_self" >&6; }
  10207. if test yes = "$lt_cv_dlopen_self"; then
  10208. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10210. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10211. if ${lt_cv_dlopen_self_static+:} false; then :
  10212. $as_echo_n "(cached) " >&6
  10213. else
  10214. if test yes = "$cross_compiling"; then :
  10215. lt_cv_dlopen_self_static=cross
  10216. else
  10217. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10218. lt_status=$lt_dlunknown
  10219. cat > conftest.$ac_ext <<_LT_EOF
  10220. #line $LINENO "configure"
  10221. #include "confdefs.h"
  10222. #if HAVE_DLFCN_H
  10223. #include <dlfcn.h>
  10224. #endif
  10225. #include <stdio.h>
  10226. #ifdef RTLD_GLOBAL
  10227. # define LT_DLGLOBAL RTLD_GLOBAL
  10228. #else
  10229. # ifdef DL_GLOBAL
  10230. # define LT_DLGLOBAL DL_GLOBAL
  10231. # else
  10232. # define LT_DLGLOBAL 0
  10233. # endif
  10234. #endif
  10235. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10236. find out it does not work in some platform. */
  10237. #ifndef LT_DLLAZY_OR_NOW
  10238. # ifdef RTLD_LAZY
  10239. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10240. # else
  10241. # ifdef DL_LAZY
  10242. # define LT_DLLAZY_OR_NOW DL_LAZY
  10243. # else
  10244. # ifdef RTLD_NOW
  10245. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10246. # else
  10247. # ifdef DL_NOW
  10248. # define LT_DLLAZY_OR_NOW DL_NOW
  10249. # else
  10250. # define LT_DLLAZY_OR_NOW 0
  10251. # endif
  10252. # endif
  10253. # endif
  10254. # endif
  10255. #endif
  10256. /* When -fvisibility=hidden is used, assume the code has been annotated
  10257. correspondingly for the symbols needed. */
  10258. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10259. int fnord () __attribute__((visibility("default")));
  10260. #endif
  10261. int fnord () { return 42; }
  10262. int main ()
  10263. {
  10264. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10265. int status = $lt_dlunknown;
  10266. if (self)
  10267. {
  10268. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10269. else
  10270. {
  10271. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10272. else puts (dlerror ());
  10273. }
  10274. /* dlclose (self); */
  10275. }
  10276. else
  10277. puts (dlerror ());
  10278. return status;
  10279. }
  10280. _LT_EOF
  10281. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10282. (eval $ac_link) 2>&5
  10283. ac_status=$?
  10284. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10285. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10286. (./conftest; exit; ) >&5 2>/dev/null
  10287. lt_status=$?
  10288. case x$lt_status in
  10289. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10290. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10291. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10292. esac
  10293. else :
  10294. # compilation failed
  10295. lt_cv_dlopen_self_static=no
  10296. fi
  10297. fi
  10298. rm -fr conftest*
  10299. fi
  10300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10301. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10302. fi
  10303. CPPFLAGS=$save_CPPFLAGS
  10304. LDFLAGS=$save_LDFLAGS
  10305. LIBS=$save_LIBS
  10306. ;;
  10307. esac
  10308. case $lt_cv_dlopen_self in
  10309. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10310. *) enable_dlopen_self=unknown ;;
  10311. esac
  10312. case $lt_cv_dlopen_self_static in
  10313. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10314. *) enable_dlopen_self_static=unknown ;;
  10315. esac
  10316. fi
  10317. striplib=
  10318. old_striplib=
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10320. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10321. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10322. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10323. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10325. $as_echo "yes" >&6; }
  10326. else
  10327. # FIXME - insert some real tests, host_os isn't really good enough
  10328. case $host_os in
  10329. darwin*)
  10330. if test -n "$STRIP"; then
  10331. striplib="$STRIP -x"
  10332. old_striplib="$STRIP -S"
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10334. $as_echo "yes" >&6; }
  10335. else
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10337. $as_echo "no" >&6; }
  10338. fi
  10339. ;;
  10340. *)
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10342. $as_echo "no" >&6; }
  10343. ;;
  10344. esac
  10345. fi
  10346. # Report what library types will actually be built
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10348. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10350. $as_echo "$can_build_shared" >&6; }
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10352. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10353. test no = "$can_build_shared" && enable_shared=no
  10354. # On AIX, shared libraries and static libraries use the same namespace, and
  10355. # are all built from PIC.
  10356. case $host_os in
  10357. aix3*)
  10358. test yes = "$enable_shared" && enable_static=no
  10359. if test -n "$RANLIB"; then
  10360. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10361. postinstall_cmds='$RANLIB $lib'
  10362. fi
  10363. ;;
  10364. aix[4-9]*)
  10365. if test ia64 != "$host_cpu"; then
  10366. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10367. yes,aix,yes) ;; # shared object as lib.so file only
  10368. yes,svr4,*) ;; # shared object as lib.so archive member only
  10369. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10370. esac
  10371. fi
  10372. ;;
  10373. esac
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10375. $as_echo "$enable_shared" >&6; }
  10376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10377. $as_echo_n "checking whether to build static libraries... " >&6; }
  10378. # Make sure either enable_shared or enable_static is yes.
  10379. test yes = "$enable_shared" || enable_static=yes
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10381. $as_echo "$enable_static" >&6; }
  10382. fi
  10383. ac_ext=c
  10384. ac_cpp='$CPP $CPPFLAGS'
  10385. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10386. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10387. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10388. CC=$lt_save_CC
  10389. ac_config_commands="$ac_config_commands libtool"
  10390. # Only expand once:
  10391. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  10392. if test -n "$ac_tool_prefix"; then
  10393. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  10394. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10396. $as_echo_n "checking for $ac_word... " >&6; }
  10397. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10398. $as_echo_n "(cached) " >&6
  10399. else
  10400. case $PKG_CONFIG in
  10401. [\\/]* | ?:[\\/]*)
  10402. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10403. ;;
  10404. *)
  10405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10406. for as_dir in $PATH
  10407. do
  10408. IFS=$as_save_IFS
  10409. test -z "$as_dir" && as_dir=.
  10410. for ac_exec_ext in '' $ac_executable_extensions; do
  10411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10412. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10414. break 2
  10415. fi
  10416. done
  10417. done
  10418. IFS=$as_save_IFS
  10419. ;;
  10420. esac
  10421. fi
  10422. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10423. if test -n "$PKG_CONFIG"; then
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10425. $as_echo "$PKG_CONFIG" >&6; }
  10426. else
  10427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10428. $as_echo "no" >&6; }
  10429. fi
  10430. fi
  10431. if test -z "$ac_cv_path_PKG_CONFIG"; then
  10432. ac_pt_PKG_CONFIG=$PKG_CONFIG
  10433. # Extract the first word of "pkg-config", so it can be a program name with args.
  10434. set dummy pkg-config; ac_word=$2
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10436. $as_echo_n "checking for $ac_word... " >&6; }
  10437. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  10438. $as_echo_n "(cached) " >&6
  10439. else
  10440. case $ac_pt_PKG_CONFIG in
  10441. [\\/]* | ?:[\\/]*)
  10442. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  10443. ;;
  10444. *)
  10445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10446. for as_dir in $PATH
  10447. do
  10448. IFS=$as_save_IFS
  10449. test -z "$as_dir" && as_dir=.
  10450. for ac_exec_ext in '' $ac_executable_extensions; do
  10451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10452. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10454. break 2
  10455. fi
  10456. done
  10457. done
  10458. IFS=$as_save_IFS
  10459. ;;
  10460. esac
  10461. fi
  10462. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  10463. if test -n "$ac_pt_PKG_CONFIG"; then
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  10465. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  10466. else
  10467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10468. $as_echo "no" >&6; }
  10469. fi
  10470. if test "x$ac_pt_PKG_CONFIG" = x; then
  10471. PKG_CONFIG=""
  10472. else
  10473. case $cross_compiling:$ac_tool_warned in
  10474. yes:)
  10475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10476. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10477. ac_tool_warned=yes ;;
  10478. esac
  10479. PKG_CONFIG=$ac_pt_PKG_CONFIG
  10480. fi
  10481. else
  10482. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  10483. fi
  10484. fi
  10485. if test -n "$PKG_CONFIG"; then
  10486. _pkg_min_version=0.25
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  10488. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  10489. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  10490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10491. $as_echo "yes" >&6; }
  10492. else
  10493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10494. $as_echo "no" >&6; }
  10495. PKG_CONFIG=""
  10496. fi
  10497. fi
  10498. pkg_failed=no
  10499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
  10500. $as_echo_n "checking for zlib... " >&6; }
  10501. if test -n "$zlib_CFLAGS"; then
  10502. pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
  10503. elif test -n "$PKG_CONFIG"; then
  10504. if test -n "$PKG_CONFIG" && \
  10505. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
  10506. ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
  10507. ac_status=$?
  10508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10509. test $ac_status = 0; }; then
  10510. pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
  10511. test "x$?" != "x0" && pkg_failed=yes
  10512. else
  10513. pkg_failed=yes
  10514. fi
  10515. else
  10516. pkg_failed=untried
  10517. fi
  10518. if test -n "$zlib_LIBS"; then
  10519. pkg_cv_zlib_LIBS="$zlib_LIBS"
  10520. elif test -n "$PKG_CONFIG"; then
  10521. if test -n "$PKG_CONFIG" && \
  10522. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
  10523. ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
  10524. ac_status=$?
  10525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10526. test $ac_status = 0; }; then
  10527. pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
  10528. test "x$?" != "x0" && pkg_failed=yes
  10529. else
  10530. pkg_failed=yes
  10531. fi
  10532. else
  10533. pkg_failed=untried
  10534. fi
  10535. if test $pkg_failed = yes; then
  10536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10537. $as_echo "no" >&6; }
  10538. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10539. _pkg_short_errors_supported=yes
  10540. else
  10541. _pkg_short_errors_supported=no
  10542. fi
  10543. if test $_pkg_short_errors_supported = yes; then
  10544. zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
  10545. else
  10546. zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
  10547. fi
  10548. # Put the nasty error message in config.log where it belongs
  10549. echo "$zlib_PKG_ERRORS" >&5
  10550. as_fn_error $? "Package requirements (zlib) were not met:
  10551. $zlib_PKG_ERRORS
  10552. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  10553. installed software in a non-standard prefix.
  10554. Alternatively, you may set the environment variables zlib_CFLAGS
  10555. and zlib_LIBS to avoid the need to call pkg-config.
  10556. See the pkg-config man page for more details." "$LINENO" 5
  10557. elif test $pkg_failed = untried; then
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10559. $as_echo "no" >&6; }
  10560. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10561. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10562. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  10563. is in your PATH or set the PKG_CONFIG environment variable to the full
  10564. path to pkg-config.
  10565. Alternatively, you may set the environment variables zlib_CFLAGS
  10566. and zlib_LIBS to avoid the need to call pkg-config.
  10567. See the pkg-config man page for more details.
  10568. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  10569. See \`config.log' for more details" "$LINENO" 5; }
  10570. else
  10571. zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
  10572. zlib_LIBS=$pkg_cv_zlib_LIBS
  10573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10574. $as_echo "yes" >&6; }
  10575. fi
  10576. pkg_failed=no
  10577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
  10578. $as_echo_n "checking for jansson... " >&6; }
  10579. if test -n "$jansson_CFLAGS"; then
  10580. pkg_cv_jansson_CFLAGS="$jansson_CFLAGS"
  10581. elif test -n "$PKG_CONFIG"; then
  10582. if test -n "$PKG_CONFIG" && \
  10583. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.10\""; } >&5
  10584. ($PKG_CONFIG --exists --print-errors "jansson >= 2.10") 2>&5
  10585. ac_status=$?
  10586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10587. test $ac_status = 0; }; then
  10588. pkg_cv_jansson_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.10" 2>/dev/null`
  10589. test "x$?" != "x0" && pkg_failed=yes
  10590. else
  10591. pkg_failed=yes
  10592. fi
  10593. else
  10594. pkg_failed=untried
  10595. fi
  10596. if test -n "$jansson_LIBS"; then
  10597. pkg_cv_jansson_LIBS="$jansson_LIBS"
  10598. elif test -n "$PKG_CONFIG"; then
  10599. if test -n "$PKG_CONFIG" && \
  10600. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.10\""; } >&5
  10601. ($PKG_CONFIG --exists --print-errors "jansson >= 2.10") 2>&5
  10602. ac_status=$?
  10603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10604. test $ac_status = 0; }; then
  10605. pkg_cv_jansson_LIBS=`$PKG_CONFIG --libs "jansson >= 2.10" 2>/dev/null`
  10606. test "x$?" != "x0" && pkg_failed=yes
  10607. else
  10608. pkg_failed=yes
  10609. fi
  10610. else
  10611. pkg_failed=untried
  10612. fi
  10613. if test $pkg_failed = yes; then
  10614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10615. $as_echo "no" >&6; }
  10616. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10617. _pkg_short_errors_supported=yes
  10618. else
  10619. _pkg_short_errors_supported=no
  10620. fi
  10621. if test $_pkg_short_errors_supported = yes; then
  10622. jansson_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.10" 2>&1`
  10623. else
  10624. jansson_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.10" 2>&1`
  10625. fi
  10626. # Put the nasty error message in config.log where it belongs
  10627. echo "$jansson_PKG_ERRORS" >&5
  10628. as_fn_error $? "Package requirements (jansson >= 2.10) were not met:
  10629. $jansson_PKG_ERRORS
  10630. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  10631. installed software in a non-standard prefix.
  10632. Alternatively, you may set the environment variables jansson_CFLAGS
  10633. and jansson_LIBS to avoid the need to call pkg-config.
  10634. See the pkg-config man page for more details." "$LINENO" 5
  10635. elif test $pkg_failed = untried; then
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10637. $as_echo "no" >&6; }
  10638. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10639. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10640. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  10641. is in your PATH or set the PKG_CONFIG environment variable to the full
  10642. path to pkg-config.
  10643. Alternatively, you may set the environment variables jansson_CFLAGS
  10644. and jansson_LIBS to avoid the need to call pkg-config.
  10645. See the pkg-config man page for more details.
  10646. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  10647. See \`config.log' for more details" "$LINENO" 5; }
  10648. else
  10649. jansson_CFLAGS=$pkg_cv_jansson_CFLAGS
  10650. jansson_LIBS=$pkg_cv_jansson_LIBS
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10652. $as_echo "yes" >&6; }
  10653. fi
  10654. pkg_failed=no
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypto" >&5
  10656. $as_echo_n "checking for libcrypto... " >&6; }
  10657. if test -n "$libcrypto_CFLAGS"; then
  10658. pkg_cv_libcrypto_CFLAGS="$libcrypto_CFLAGS"
  10659. elif test -n "$PKG_CONFIG"; then
  10660. if test -n "$PKG_CONFIG" && \
  10661. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.2\""; } >&5
  10662. ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.2") 2>&5
  10663. ac_status=$?
  10664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10665. test $ac_status = 0; }; then
  10666. pkg_cv_libcrypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.0.2" 2>/dev/null`
  10667. test "x$?" != "x0" && pkg_failed=yes
  10668. else
  10669. pkg_failed=yes
  10670. fi
  10671. else
  10672. pkg_failed=untried
  10673. fi
  10674. if test -n "$libcrypto_LIBS"; then
  10675. pkg_cv_libcrypto_LIBS="$libcrypto_LIBS"
  10676. elif test -n "$PKG_CONFIG"; then
  10677. if test -n "$PKG_CONFIG" && \
  10678. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.2\""; } >&5
  10679. ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.2") 2>&5
  10680. ac_status=$?
  10681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10682. test $ac_status = 0; }; then
  10683. pkg_cv_libcrypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.0.2" 2>/dev/null`
  10684. test "x$?" != "x0" && pkg_failed=yes
  10685. else
  10686. pkg_failed=yes
  10687. fi
  10688. else
  10689. pkg_failed=untried
  10690. fi
  10691. if test $pkg_failed = yes; then
  10692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10693. $as_echo "no" >&6; }
  10694. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10695. _pkg_short_errors_supported=yes
  10696. else
  10697. _pkg_short_errors_supported=no
  10698. fi
  10699. if test $_pkg_short_errors_supported = yes; then
  10700. libcrypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.0.2" 2>&1`
  10701. else
  10702. libcrypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.0.2" 2>&1`
  10703. fi
  10704. # Put the nasty error message in config.log where it belongs
  10705. echo "$libcrypto_PKG_ERRORS" >&5
  10706. as_fn_error $? "Package requirements (libcrypto >= 1.0.2) were not met:
  10707. $libcrypto_PKG_ERRORS
  10708. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  10709. installed software in a non-standard prefix.
  10710. Alternatively, you may set the environment variables libcrypto_CFLAGS
  10711. and libcrypto_LIBS to avoid the need to call pkg-config.
  10712. See the pkg-config man page for more details." "$LINENO" 5
  10713. elif test $pkg_failed = untried; then
  10714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10715. $as_echo "no" >&6; }
  10716. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10717. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10718. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  10719. is in your PATH or set the PKG_CONFIG environment variable to the full
  10720. path to pkg-config.
  10721. Alternatively, you may set the environment variables libcrypto_CFLAGS
  10722. and libcrypto_LIBS to avoid the need to call pkg-config.
  10723. See the pkg-config man page for more details.
  10724. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  10725. See \`config.log' for more details" "$LINENO" 5; }
  10726. else
  10727. libcrypto_CFLAGS=$pkg_cv_libcrypto_CFLAGS
  10728. libcrypto_LIBS=$pkg_cv_libcrypto_LIBS
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10730. $as_echo "yes" >&6; }
  10731. fi
  10732. OPENMP_CFLAGS=
  10733. # Check whether --enable-openmp was given.
  10734. if test "${enable_openmp+set}" = set; then :
  10735. enableval=$enable_openmp;
  10736. fi
  10737. if test "$enable_openmp" != no; then
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
  10739. $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
  10740. if ${ac_cv_prog_c_openmp+:} false; then :
  10741. $as_echo_n "(cached) " >&6
  10742. else
  10743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10744. /* end confdefs.h. */
  10745. #ifndef _OPENMP
  10746. choke me
  10747. #endif
  10748. #include <omp.h>
  10749. int main () { return omp_get_num_threads (); }
  10750. _ACEOF
  10751. if ac_fn_c_try_link "$LINENO"; then :
  10752. ac_cv_prog_c_openmp='none needed'
  10753. else
  10754. ac_cv_prog_c_openmp='unsupported'
  10755. for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
  10756. -Popenmp --openmp; do
  10757. ac_save_CFLAGS=$CFLAGS
  10758. CFLAGS="$CFLAGS $ac_option"
  10759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10760. /* end confdefs.h. */
  10761. #ifndef _OPENMP
  10762. choke me
  10763. #endif
  10764. #include <omp.h>
  10765. int main () { return omp_get_num_threads (); }
  10766. _ACEOF
  10767. if ac_fn_c_try_link "$LINENO"; then :
  10768. ac_cv_prog_c_openmp=$ac_option
  10769. fi
  10770. rm -f core conftest.err conftest.$ac_objext \
  10771. conftest$ac_exeext conftest.$ac_ext
  10772. CFLAGS=$ac_save_CFLAGS
  10773. if test "$ac_cv_prog_c_openmp" != unsupported; then
  10774. break
  10775. fi
  10776. done
  10777. fi
  10778. rm -f core conftest.err conftest.$ac_objext \
  10779. conftest$ac_exeext conftest.$ac_ext
  10780. fi
  10781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
  10782. $as_echo "$ac_cv_prog_c_openmp" >&6; }
  10783. case $ac_cv_prog_c_openmp in #(
  10784. "none needed" | unsupported)
  10785. ;; #(
  10786. *)
  10787. OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
  10788. esac
  10789. fi
  10790. JOSE_CFLAGS="\
  10791. -Wall \
  10792. -Wextra \
  10793. -Werror \
  10794. -Wstrict-aliasing \
  10795. -Wchar-subscripts \
  10796. -Wformat-security \
  10797. -Wmissing-declarations \
  10798. -Wmissing-prototypes \
  10799. -Wnested-externs \
  10800. -Wpointer-arith \
  10801. -Wshadow \
  10802. -Wsign-compare \
  10803. -Wstrict-prototypes \
  10804. -Wtype-limits \
  10805. -Wunused-function \
  10806. -Wno-missing-field-initializers \
  10807. -Wno-unused-command-line-argument \
  10808. -Wno-unused-parameter \
  10809. -Wno-unknown-pragmas \
  10810. "
  10811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker script support" >&5
  10812. $as_echo_n "checking for linker script support... " >&6; }
  10813. LDVS=`$LD --help < /dev/null 2>/dev/null | grep version-script`
  10814. if test "$LDVS"; then
  10815. have_ld_version_script=yes
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10817. $as_echo "yes" >&6; }
  10818. else
  10819. have_ld_version_script=no
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10821. $as_echo "no" >&6; }
  10822. fi
  10823. if test "$have_ld_version_script" = "yes"; then
  10824. HAVE_LD_VERSION_SCRIPT_TRUE=
  10825. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  10826. else
  10827. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  10828. HAVE_LD_VERSION_SCRIPT_FALSE=
  10829. fi
  10830. ac_config_files="$ac_config_files jose/Makefile lib/Makefile cmd/Makefile tests/Makefile doc/Makefile Makefile jose/jose.h jose.pc"
  10831. cat >confcache <<\_ACEOF
  10832. # This file is a shell script that caches the results of configure
  10833. # tests run on this system so they can be shared between configure
  10834. # scripts and configure runs, see configure's option --config-cache.
  10835. # It is not useful on other systems. If it contains results you don't
  10836. # want to keep, you may remove or edit it.
  10837. #
  10838. # config.status only pays attention to the cache file if you give it
  10839. # the --recheck option to rerun configure.
  10840. #
  10841. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10842. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10843. # following values.
  10844. _ACEOF
  10845. # The following way of writing the cache mishandles newlines in values,
  10846. # but we know of no workaround that is simple, portable, and efficient.
  10847. # So, we kill variables containing newlines.
  10848. # Ultrix sh set writes to stderr and can't be redirected directly,
  10849. # and sets the high bit in the cache file unless we assign to the vars.
  10850. (
  10851. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10852. eval ac_val=\$$ac_var
  10853. case $ac_val in #(
  10854. *${as_nl}*)
  10855. case $ac_var in #(
  10856. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10857. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10858. esac
  10859. case $ac_var in #(
  10860. _ | IFS | as_nl) ;; #(
  10861. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10862. *) { eval $ac_var=; unset $ac_var;} ;;
  10863. esac ;;
  10864. esac
  10865. done
  10866. (set) 2>&1 |
  10867. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10868. *${as_nl}ac_space=\ *)
  10869. # `set' does not quote correctly, so add quotes: double-quote
  10870. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10871. sed -n \
  10872. "s/'/'\\\\''/g;
  10873. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10874. ;; #(
  10875. *)
  10876. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10877. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10878. ;;
  10879. esac |
  10880. sort
  10881. ) |
  10882. sed '
  10883. /^ac_cv_env_/b end
  10884. t clear
  10885. :clear
  10886. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10887. t end
  10888. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10889. :end' >>confcache
  10890. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10891. if test -w "$cache_file"; then
  10892. if test "x$cache_file" != "x/dev/null"; then
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10894. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10895. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10896. cat confcache >"$cache_file"
  10897. else
  10898. case $cache_file in #(
  10899. */* | ?:*)
  10900. mv -f confcache "$cache_file"$$ &&
  10901. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10902. *)
  10903. mv -f confcache "$cache_file" ;;
  10904. esac
  10905. fi
  10906. fi
  10907. else
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10909. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10910. fi
  10911. fi
  10912. rm -f confcache
  10913. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10914. # Let make expand exec_prefix.
  10915. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10916. # Transform confdefs.h into DEFS.
  10917. # Protect against shell expansion while executing Makefile rules.
  10918. # Protect against Makefile macro expansion.
  10919. #
  10920. # If the first sed substitution is executed (which looks for macros that
  10921. # take arguments), then branch to the quote section. Otherwise,
  10922. # look for a macro that doesn't take arguments.
  10923. ac_script='
  10924. :mline
  10925. /\\$/{
  10926. N
  10927. s,\\\n,,
  10928. b mline
  10929. }
  10930. t clear
  10931. :clear
  10932. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  10933. t quote
  10934. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  10935. t quote
  10936. b any
  10937. :quote
  10938. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  10939. s/\[/\\&/g
  10940. s/\]/\\&/g
  10941. s/\$/$$/g
  10942. H
  10943. :any
  10944. ${
  10945. g
  10946. s/^\n//
  10947. s/\n/ /g
  10948. p
  10949. }
  10950. '
  10951. DEFS=`sed -n "$ac_script" confdefs.h`
  10952. ac_libobjs=
  10953. ac_ltlibobjs=
  10954. U=
  10955. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10956. # 1. Remove the extension, and $U if already installed.
  10957. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10958. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10959. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10960. # will be set to the directory where LIBOBJS objects are built.
  10961. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10962. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10963. done
  10964. LIBOBJS=$ac_libobjs
  10965. LTLIBOBJS=$ac_ltlibobjs
  10966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10967. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10968. if test -n "$am_sleep_pid"; then
  10969. # Hide warnings about reused PIDs.
  10970. wait $am_sleep_pid 2>/dev/null
  10971. fi
  10972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10973. $as_echo "done" >&6; }
  10974. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10975. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10976. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10977. fi
  10978. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10979. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10980. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10981. fi
  10982. if test -n "$EXEEXT"; then
  10983. am__EXEEXT_TRUE=
  10984. am__EXEEXT_FALSE='#'
  10985. else
  10986. am__EXEEXT_TRUE='#'
  10987. am__EXEEXT_FALSE=
  10988. fi
  10989. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  10990. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  10991. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10992. fi
  10993. : "${CONFIG_STATUS=./config.status}"
  10994. ac_write_fail=0
  10995. ac_clean_files_save=$ac_clean_files
  10996. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10997. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10998. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10999. as_write_fail=0
  11000. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11001. #! $SHELL
  11002. # Generated by $as_me.
  11003. # Run this file to recreate the current configuration.
  11004. # Compiler output produced by configure, useful for debugging
  11005. # configure, is in config.log if it exists.
  11006. debug=false
  11007. ac_cs_recheck=false
  11008. ac_cs_silent=false
  11009. SHELL=\${CONFIG_SHELL-$SHELL}
  11010. export SHELL
  11011. _ASEOF
  11012. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11013. ## -------------------- ##
  11014. ## M4sh Initialization. ##
  11015. ## -------------------- ##
  11016. # Be more Bourne compatible
  11017. DUALCASE=1; export DUALCASE # for MKS sh
  11018. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11019. emulate sh
  11020. NULLCMD=:
  11021. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11022. # is contrary to our usage. Disable this feature.
  11023. alias -g '${1+"$@"}'='"$@"'
  11024. setopt NO_GLOB_SUBST
  11025. else
  11026. case `(set -o) 2>/dev/null` in #(
  11027. *posix*) :
  11028. set -o posix ;; #(
  11029. *) :
  11030. ;;
  11031. esac
  11032. fi
  11033. as_nl='
  11034. '
  11035. export as_nl
  11036. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11037. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11038. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11039. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11040. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11041. # but without wasting forks for bash or zsh.
  11042. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11043. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11044. as_echo='print -r --'
  11045. as_echo_n='print -rn --'
  11046. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11047. as_echo='printf %s\n'
  11048. as_echo_n='printf %s'
  11049. else
  11050. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11051. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11052. as_echo_n='/usr/ucb/echo -n'
  11053. else
  11054. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11055. as_echo_n_body='eval
  11056. arg=$1;
  11057. case $arg in #(
  11058. *"$as_nl"*)
  11059. expr "X$arg" : "X\\(.*\\)$as_nl";
  11060. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11061. esac;
  11062. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11063. '
  11064. export as_echo_n_body
  11065. as_echo_n='sh -c $as_echo_n_body as_echo'
  11066. fi
  11067. export as_echo_body
  11068. as_echo='sh -c $as_echo_body as_echo'
  11069. fi
  11070. # The user is always right.
  11071. if test "${PATH_SEPARATOR+set}" != set; then
  11072. PATH_SEPARATOR=:
  11073. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11074. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11075. PATH_SEPARATOR=';'
  11076. }
  11077. fi
  11078. # IFS
  11079. # We need space, tab and new line, in precisely that order. Quoting is
  11080. # there to prevent editors from complaining about space-tab.
  11081. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11082. # splitting by setting IFS to empty value.)
  11083. IFS=" "" $as_nl"
  11084. # Find who we are. Look in the path if we contain no directory separator.
  11085. as_myself=
  11086. case $0 in #((
  11087. *[\\/]* ) as_myself=$0 ;;
  11088. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11089. for as_dir in $PATH
  11090. do
  11091. IFS=$as_save_IFS
  11092. test -z "$as_dir" && as_dir=.
  11093. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11094. done
  11095. IFS=$as_save_IFS
  11096. ;;
  11097. esac
  11098. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11099. # in which case we are not to be found in the path.
  11100. if test "x$as_myself" = x; then
  11101. as_myself=$0
  11102. fi
  11103. if test ! -f "$as_myself"; then
  11104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11105. exit 1
  11106. fi
  11107. # Unset variables that we do not need and which cause bugs (e.g. in
  11108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11109. # suppresses any "Segmentation fault" message there. '((' could
  11110. # trigger a bug in pdksh 5.2.14.
  11111. for as_var in BASH_ENV ENV MAIL MAILPATH
  11112. do eval test x\${$as_var+set} = xset \
  11113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11114. done
  11115. PS1='$ '
  11116. PS2='> '
  11117. PS4='+ '
  11118. # NLS nuisances.
  11119. LC_ALL=C
  11120. export LC_ALL
  11121. LANGUAGE=C
  11122. export LANGUAGE
  11123. # CDPATH.
  11124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11125. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11126. # ----------------------------------------
  11127. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11128. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11129. # script with STATUS, using 1 if that was 0.
  11130. as_fn_error ()
  11131. {
  11132. as_status=$1; test $as_status -eq 0 && as_status=1
  11133. if test "$4"; then
  11134. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11135. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11136. fi
  11137. $as_echo "$as_me: error: $2" >&2
  11138. as_fn_exit $as_status
  11139. } # as_fn_error
  11140. # as_fn_set_status STATUS
  11141. # -----------------------
  11142. # Set $? to STATUS, without forking.
  11143. as_fn_set_status ()
  11144. {
  11145. return $1
  11146. } # as_fn_set_status
  11147. # as_fn_exit STATUS
  11148. # -----------------
  11149. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11150. as_fn_exit ()
  11151. {
  11152. set +e
  11153. as_fn_set_status $1
  11154. exit $1
  11155. } # as_fn_exit
  11156. # as_fn_unset VAR
  11157. # ---------------
  11158. # Portably unset VAR.
  11159. as_fn_unset ()
  11160. {
  11161. { eval $1=; unset $1;}
  11162. }
  11163. as_unset=as_fn_unset
  11164. # as_fn_append VAR VALUE
  11165. # ----------------------
  11166. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11167. # advantage of any shell optimizations that allow amortized linear growth over
  11168. # repeated appends, instead of the typical quadratic growth present in naive
  11169. # implementations.
  11170. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11171. eval 'as_fn_append ()
  11172. {
  11173. eval $1+=\$2
  11174. }'
  11175. else
  11176. as_fn_append ()
  11177. {
  11178. eval $1=\$$1\$2
  11179. }
  11180. fi # as_fn_append
  11181. # as_fn_arith ARG...
  11182. # ------------------
  11183. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11184. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11185. # must be portable across $(()) and expr.
  11186. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11187. eval 'as_fn_arith ()
  11188. {
  11189. as_val=$(( $* ))
  11190. }'
  11191. else
  11192. as_fn_arith ()
  11193. {
  11194. as_val=`expr "$@" || test $? -eq 1`
  11195. }
  11196. fi # as_fn_arith
  11197. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11198. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11199. as_expr=expr
  11200. else
  11201. as_expr=false
  11202. fi
  11203. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11204. as_basename=basename
  11205. else
  11206. as_basename=false
  11207. fi
  11208. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11209. as_dirname=dirname
  11210. else
  11211. as_dirname=false
  11212. fi
  11213. as_me=`$as_basename -- "$0" ||
  11214. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11215. X"$0" : 'X\(//\)$' \| \
  11216. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11217. $as_echo X/"$0" |
  11218. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11219. s//\1/
  11220. q
  11221. }
  11222. /^X\/\(\/\/\)$/{
  11223. s//\1/
  11224. q
  11225. }
  11226. /^X\/\(\/\).*/{
  11227. s//\1/
  11228. q
  11229. }
  11230. s/.*/./; q'`
  11231. # Avoid depending upon Character Ranges.
  11232. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11233. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11234. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11235. as_cr_digits='0123456789'
  11236. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11237. ECHO_C= ECHO_N= ECHO_T=
  11238. case `echo -n x` in #(((((
  11239. -n*)
  11240. case `echo 'xy\c'` in
  11241. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11242. xy) ECHO_C='\c';;
  11243. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11244. ECHO_T=' ';;
  11245. esac;;
  11246. *)
  11247. ECHO_N='-n';;
  11248. esac
  11249. rm -f conf$$ conf$$.exe conf$$.file
  11250. if test -d conf$$.dir; then
  11251. rm -f conf$$.dir/conf$$.file
  11252. else
  11253. rm -f conf$$.dir
  11254. mkdir conf$$.dir 2>/dev/null
  11255. fi
  11256. if (echo >conf$$.file) 2>/dev/null; then
  11257. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11258. as_ln_s='ln -s'
  11259. # ... but there are two gotchas:
  11260. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11261. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11262. # In both cases, we have to default to `cp -pR'.
  11263. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11264. as_ln_s='cp -pR'
  11265. elif ln conf$$.file conf$$ 2>/dev/null; then
  11266. as_ln_s=ln
  11267. else
  11268. as_ln_s='cp -pR'
  11269. fi
  11270. else
  11271. as_ln_s='cp -pR'
  11272. fi
  11273. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11274. rmdir conf$$.dir 2>/dev/null
  11275. # as_fn_mkdir_p
  11276. # -------------
  11277. # Create "$as_dir" as a directory, including parents if necessary.
  11278. as_fn_mkdir_p ()
  11279. {
  11280. case $as_dir in #(
  11281. -*) as_dir=./$as_dir;;
  11282. esac
  11283. test -d "$as_dir" || eval $as_mkdir_p || {
  11284. as_dirs=
  11285. while :; do
  11286. case $as_dir in #(
  11287. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11288. *) as_qdir=$as_dir;;
  11289. esac
  11290. as_dirs="'$as_qdir' $as_dirs"
  11291. as_dir=`$as_dirname -- "$as_dir" ||
  11292. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11293. X"$as_dir" : 'X\(//\)[^/]' \| \
  11294. X"$as_dir" : 'X\(//\)$' \| \
  11295. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11296. $as_echo X"$as_dir" |
  11297. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11298. s//\1/
  11299. q
  11300. }
  11301. /^X\(\/\/\)[^/].*/{
  11302. s//\1/
  11303. q
  11304. }
  11305. /^X\(\/\/\)$/{
  11306. s//\1/
  11307. q
  11308. }
  11309. /^X\(\/\).*/{
  11310. s//\1/
  11311. q
  11312. }
  11313. s/.*/./; q'`
  11314. test -d "$as_dir" && break
  11315. done
  11316. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11317. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11318. } # as_fn_mkdir_p
  11319. if mkdir -p . 2>/dev/null; then
  11320. as_mkdir_p='mkdir -p "$as_dir"'
  11321. else
  11322. test -d ./-p && rmdir ./-p
  11323. as_mkdir_p=false
  11324. fi
  11325. # as_fn_executable_p FILE
  11326. # -----------------------
  11327. # Test if FILE is an executable regular file.
  11328. as_fn_executable_p ()
  11329. {
  11330. test -f "$1" && test -x "$1"
  11331. } # as_fn_executable_p
  11332. as_test_x='test -x'
  11333. as_executable_p=as_fn_executable_p
  11334. # Sed expression to map a string onto a valid CPP name.
  11335. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11336. # Sed expression to map a string onto a valid variable name.
  11337. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11338. exec 6>&1
  11339. ## ----------------------------------- ##
  11340. ## Main body of $CONFIG_STATUS script. ##
  11341. ## ----------------------------------- ##
  11342. _ASEOF
  11343. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11344. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11345. # Save the log message, to keep $0 and so on meaningful, and to
  11346. # report actual input values of CONFIG_FILES etc. instead of their
  11347. # values after options handling.
  11348. ac_log="
  11349. This file was extended by jose $as_me 10, which was
  11350. generated by GNU Autoconf 2.69. Invocation command line was
  11351. CONFIG_FILES = $CONFIG_FILES
  11352. CONFIG_HEADERS = $CONFIG_HEADERS
  11353. CONFIG_LINKS = $CONFIG_LINKS
  11354. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11355. $ $0 $@
  11356. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11357. "
  11358. _ACEOF
  11359. case $ac_config_files in *"
  11360. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11361. esac
  11362. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11363. # Files that config.status was made for.
  11364. config_files="$ac_config_files"
  11365. config_commands="$ac_config_commands"
  11366. _ACEOF
  11367. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11368. ac_cs_usage="\
  11369. \`$as_me' instantiates files and other configuration actions
  11370. from templates according to the current configuration. Unless the files
  11371. and actions are specified as TAGs, all are instantiated by default.
  11372. Usage: $0 [OPTION]... [TAG]...
  11373. -h, --help print this help, then exit
  11374. -V, --version print version number and configuration settings, then exit
  11375. --config print configuration, then exit
  11376. -q, --quiet, --silent
  11377. do not print progress messages
  11378. -d, --debug don't remove temporary files
  11379. --recheck update $as_me by reconfiguring in the same conditions
  11380. --file=FILE[:TEMPLATE]
  11381. instantiate the configuration file FILE
  11382. Configuration files:
  11383. $config_files
  11384. Configuration commands:
  11385. $config_commands
  11386. Report bugs to the package provider."
  11387. _ACEOF
  11388. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11389. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11390. ac_cs_version="\\
  11391. jose config.status 10
  11392. configured by $0, generated by GNU Autoconf 2.69,
  11393. with options \\"\$ac_cs_config\\"
  11394. Copyright (C) 2012 Free Software Foundation, Inc.
  11395. This config.status script is free software; the Free Software Foundation
  11396. gives unlimited permission to copy, distribute and modify it."
  11397. ac_pwd='$ac_pwd'
  11398. srcdir='$srcdir'
  11399. INSTALL='$INSTALL'
  11400. MKDIR_P='$MKDIR_P'
  11401. AWK='$AWK'
  11402. test -n "\$AWK" || AWK=awk
  11403. _ACEOF
  11404. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11405. # The default lists apply if the user does not specify any file.
  11406. ac_need_defaults=:
  11407. while test $# != 0
  11408. do
  11409. case $1 in
  11410. --*=?*)
  11411. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11412. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11413. ac_shift=:
  11414. ;;
  11415. --*=)
  11416. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11417. ac_optarg=
  11418. ac_shift=:
  11419. ;;
  11420. *)
  11421. ac_option=$1
  11422. ac_optarg=$2
  11423. ac_shift=shift
  11424. ;;
  11425. esac
  11426. case $ac_option in
  11427. # Handling of the options.
  11428. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11429. ac_cs_recheck=: ;;
  11430. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11431. $as_echo "$ac_cs_version"; exit ;;
  11432. --config | --confi | --conf | --con | --co | --c )
  11433. $as_echo "$ac_cs_config"; exit ;;
  11434. --debug | --debu | --deb | --de | --d | -d )
  11435. debug=: ;;
  11436. --file | --fil | --fi | --f )
  11437. $ac_shift
  11438. case $ac_optarg in
  11439. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11440. '') as_fn_error $? "missing file argument" ;;
  11441. esac
  11442. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11443. ac_need_defaults=false;;
  11444. --he | --h | --help | --hel | -h )
  11445. $as_echo "$ac_cs_usage"; exit ;;
  11446. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11447. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11448. ac_cs_silent=: ;;
  11449. # This is an error.
  11450. -*) as_fn_error $? "unrecognized option: \`$1'
  11451. Try \`$0 --help' for more information." ;;
  11452. *) as_fn_append ac_config_targets " $1"
  11453. ac_need_defaults=false ;;
  11454. esac
  11455. shift
  11456. done
  11457. ac_configure_extra_args=
  11458. if $ac_cs_silent; then
  11459. exec 6>/dev/null
  11460. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11461. fi
  11462. _ACEOF
  11463. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11464. if \$ac_cs_recheck; then
  11465. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11466. shift
  11467. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11468. CONFIG_SHELL='$SHELL'
  11469. export CONFIG_SHELL
  11470. exec "\$@"
  11471. fi
  11472. _ACEOF
  11473. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11474. exec 5>>config.log
  11475. {
  11476. echo
  11477. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11478. ## Running $as_me. ##
  11479. _ASBOX
  11480. $as_echo "$ac_log"
  11481. } >&5
  11482. _ACEOF
  11483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11484. #
  11485. # INIT-COMMANDS
  11486. #
  11487. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11488. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11489. # if CDPATH is set.
  11490. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11491. sed_quote_subst='$sed_quote_subst'
  11492. double_quote_subst='$double_quote_subst'
  11493. delay_variable_subst='$delay_variable_subst'
  11494. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11495. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11496. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11497. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11498. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11499. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11500. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  11501. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11502. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11503. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11504. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11505. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11506. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11507. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11508. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11509. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11510. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11511. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11512. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11513. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11514. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11515. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11516. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11517. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11518. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11519. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11520. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11521. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11522. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11523. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11524. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11525. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11526. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11527. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11528. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11529. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11530. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11531. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11532. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11533. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11534. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11535. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11536. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11537. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11538. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11539. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11540. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11541. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11542. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11543. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11544. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11545. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11546. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11547. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11548. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11549. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11550. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  11551. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11552. 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"`'
  11553. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  11554. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11555. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11556. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  11557. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11558. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11559. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11560. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11561. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11562. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11563. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11564. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11565. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11566. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11567. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11568. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11569. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11570. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11571. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11572. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11573. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11574. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11575. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11576. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11577. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11578. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11579. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11580. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11581. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11582. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11583. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11584. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11585. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11586. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11587. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11588. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11589. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11590. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11591. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11592. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11593. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11594. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11595. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11596. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11597. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11598. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11599. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11600. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11601. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11602. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11603. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11604. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11605. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11606. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11607. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11608. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11609. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11610. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11611. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11612. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11613. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11614. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11615. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11616. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11617. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11618. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11619. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11620. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11621. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  11622. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  11623. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11624. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11625. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11626. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11627. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11628. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11629. LTCC='$LTCC'
  11630. LTCFLAGS='$LTCFLAGS'
  11631. compiler='$compiler_DEFAULT'
  11632. # A function that is used when there is no print builtin or printf.
  11633. func_fallback_echo ()
  11634. {
  11635. eval 'cat <<_LTECHO_EOF
  11636. \$1
  11637. _LTECHO_EOF'
  11638. }
  11639. # Quote evaled strings.
  11640. for var in SHELL \
  11641. ECHO \
  11642. PATH_SEPARATOR \
  11643. SED \
  11644. GREP \
  11645. EGREP \
  11646. FGREP \
  11647. LD \
  11648. NM \
  11649. LN_S \
  11650. lt_SP2NL \
  11651. lt_NL2SP \
  11652. reload_flag \
  11653. OBJDUMP \
  11654. deplibs_check_method \
  11655. file_magic_cmd \
  11656. file_magic_glob \
  11657. want_nocaseglob \
  11658. DLLTOOL \
  11659. sharedlib_from_linklib_cmd \
  11660. AR \
  11661. AR_FLAGS \
  11662. archiver_list_spec \
  11663. STRIP \
  11664. RANLIB \
  11665. CC \
  11666. CFLAGS \
  11667. compiler \
  11668. lt_cv_sys_global_symbol_pipe \
  11669. lt_cv_sys_global_symbol_to_cdecl \
  11670. lt_cv_sys_global_symbol_to_import \
  11671. lt_cv_sys_global_symbol_to_c_name_address \
  11672. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11673. lt_cv_nm_interface \
  11674. nm_file_list_spec \
  11675. lt_cv_truncate_bin \
  11676. lt_prog_compiler_no_builtin_flag \
  11677. lt_prog_compiler_pic \
  11678. lt_prog_compiler_wl \
  11679. lt_prog_compiler_static \
  11680. lt_cv_prog_compiler_c_o \
  11681. need_locks \
  11682. MANIFEST_TOOL \
  11683. DSYMUTIL \
  11684. NMEDIT \
  11685. LIPO \
  11686. OTOOL \
  11687. OTOOL64 \
  11688. shrext_cmds \
  11689. export_dynamic_flag_spec \
  11690. whole_archive_flag_spec \
  11691. compiler_needs_object \
  11692. with_gnu_ld \
  11693. allow_undefined_flag \
  11694. no_undefined_flag \
  11695. hardcode_libdir_flag_spec \
  11696. hardcode_libdir_separator \
  11697. exclude_expsyms \
  11698. include_expsyms \
  11699. file_list_spec \
  11700. variables_saved_for_relink \
  11701. libname_spec \
  11702. library_names_spec \
  11703. soname_spec \
  11704. install_override_mode \
  11705. finish_eval \
  11706. old_striplib \
  11707. striplib; do
  11708. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11709. *[\\\\\\\`\\"\\\$]*)
  11710. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11711. ;;
  11712. *)
  11713. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11714. ;;
  11715. esac
  11716. done
  11717. # Double-quote double-evaled strings.
  11718. for var in reload_cmds \
  11719. old_postinstall_cmds \
  11720. old_postuninstall_cmds \
  11721. old_archive_cmds \
  11722. extract_expsyms_cmds \
  11723. old_archive_from_new_cmds \
  11724. old_archive_from_expsyms_cmds \
  11725. archive_cmds \
  11726. archive_expsym_cmds \
  11727. module_cmds \
  11728. module_expsym_cmds \
  11729. export_symbols_cmds \
  11730. prelink_cmds \
  11731. postlink_cmds \
  11732. postinstall_cmds \
  11733. postuninstall_cmds \
  11734. finish_cmds \
  11735. sys_lib_search_path_spec \
  11736. configure_time_dlsearch_path \
  11737. configure_time_lt_sys_library_path; do
  11738. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11739. *[\\\\\\\`\\"\\\$]*)
  11740. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11741. ;;
  11742. *)
  11743. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11744. ;;
  11745. esac
  11746. done
  11747. ac_aux_dir='$ac_aux_dir'
  11748. # See if we are running on zsh, and set the options that allow our
  11749. # commands through without removal of \ escapes INIT.
  11750. if test -n "\${ZSH_VERSION+set}"; then
  11751. setopt NO_GLOB_SUBST
  11752. fi
  11753. PACKAGE='$PACKAGE'
  11754. VERSION='$VERSION'
  11755. RM='$RM'
  11756. ofile='$ofile'
  11757. _ACEOF
  11758. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11759. # Handling of arguments.
  11760. for ac_config_target in $ac_config_targets
  11761. do
  11762. case $ac_config_target in
  11763. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11764. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11765. "jose/Makefile") CONFIG_FILES="$CONFIG_FILES jose/Makefile" ;;
  11766. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  11767. "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
  11768. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  11769. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11770. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11771. "jose/jose.h") CONFIG_FILES="$CONFIG_FILES jose/jose.h" ;;
  11772. "jose.pc") CONFIG_FILES="$CONFIG_FILES jose.pc" ;;
  11773. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11774. esac
  11775. done
  11776. # If the user did not use the arguments to specify the items to instantiate,
  11777. # then the envvar interface is used. Set only those that are not.
  11778. # We use the long form for the default assignment because of an extremely
  11779. # bizarre bug on SunOS 4.1.3.
  11780. if $ac_need_defaults; then
  11781. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11782. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11783. fi
  11784. # Have a temporary directory for convenience. Make it in the build tree
  11785. # simply because there is no reason against having it here, and in addition,
  11786. # creating and moving files from /tmp can sometimes cause problems.
  11787. # Hook for its removal unless debugging.
  11788. # Note that there is a small window in which the directory will not be cleaned:
  11789. # after its creation but before its name has been assigned to `$tmp'.
  11790. $debug ||
  11791. {
  11792. tmp= ac_tmp=
  11793. trap 'exit_status=$?
  11794. : "${ac_tmp:=$tmp}"
  11795. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11796. ' 0
  11797. trap 'as_fn_exit 1' 1 2 13 15
  11798. }
  11799. # Create a (secure) tmp directory for tmp files.
  11800. {
  11801. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11802. test -d "$tmp"
  11803. } ||
  11804. {
  11805. tmp=./conf$$-$RANDOM
  11806. (umask 077 && mkdir "$tmp")
  11807. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11808. ac_tmp=$tmp
  11809. # Set up the scripts for CONFIG_FILES section.
  11810. # No need to generate them if there are no CONFIG_FILES.
  11811. # This happens for instance with `./config.status config.h'.
  11812. if test -n "$CONFIG_FILES"; then
  11813. ac_cr=`echo X | tr X '\015'`
  11814. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11815. # But we know of no other shell where ac_cr would be empty at this
  11816. # point, so we can use a bashism as a fallback.
  11817. if test "x$ac_cr" = x; then
  11818. eval ac_cr=\$\'\\r\'
  11819. fi
  11820. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11821. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11822. ac_cs_awk_cr='\\r'
  11823. else
  11824. ac_cs_awk_cr=$ac_cr
  11825. fi
  11826. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11827. _ACEOF
  11828. {
  11829. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11830. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11831. echo "_ACEOF"
  11832. } >conf$$subs.sh ||
  11833. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11834. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11835. ac_delim='%!_!# '
  11836. for ac_last_try in false false false false false :; do
  11837. . ./conf$$subs.sh ||
  11838. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11839. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11840. if test $ac_delim_n = $ac_delim_num; then
  11841. break
  11842. elif $ac_last_try; then
  11843. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11844. else
  11845. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11846. fi
  11847. done
  11848. rm -f conf$$subs.sh
  11849. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11850. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11851. _ACEOF
  11852. sed -n '
  11853. h
  11854. s/^/S["/; s/!.*/"]=/
  11855. p
  11856. g
  11857. s/^[^!]*!//
  11858. :repl
  11859. t repl
  11860. s/'"$ac_delim"'$//
  11861. t delim
  11862. :nl
  11863. h
  11864. s/\(.\{148\}\)..*/\1/
  11865. t more1
  11866. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11867. p
  11868. n
  11869. b repl
  11870. :more1
  11871. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11872. p
  11873. g
  11874. s/.\{148\}//
  11875. t nl
  11876. :delim
  11877. h
  11878. s/\(.\{148\}\)..*/\1/
  11879. t more2
  11880. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11881. p
  11882. b
  11883. :more2
  11884. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11885. p
  11886. g
  11887. s/.\{148\}//
  11888. t delim
  11889. ' <conf$$subs.awk | sed '
  11890. /^[^""]/{
  11891. N
  11892. s/\n//
  11893. }
  11894. ' >>$CONFIG_STATUS || ac_write_fail=1
  11895. rm -f conf$$subs.awk
  11896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11897. _ACAWK
  11898. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11899. for (key in S) S_is_set[key] = 1
  11900. FS = ""
  11901. }
  11902. {
  11903. line = $ 0
  11904. nfields = split(line, field, "@")
  11905. substed = 0
  11906. len = length(field[1])
  11907. for (i = 2; i < nfields; i++) {
  11908. key = field[i]
  11909. keylen = length(key)
  11910. if (S_is_set[key]) {
  11911. value = S[key]
  11912. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11913. len += length(value) + length(field[++i])
  11914. substed = 1
  11915. } else
  11916. len += 1 + keylen
  11917. }
  11918. print line
  11919. }
  11920. _ACAWK
  11921. _ACEOF
  11922. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11923. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11924. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11925. else
  11926. cat
  11927. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11928. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11929. _ACEOF
  11930. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11931. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11932. # trailing colons and then remove the whole line if VPATH becomes empty
  11933. # (actually we leave an empty line to preserve line numbers).
  11934. if test "x$srcdir" = x.; then
  11935. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11936. h
  11937. s///
  11938. s/^/:/
  11939. s/[ ]*$/:/
  11940. s/:\$(srcdir):/:/g
  11941. s/:\${srcdir}:/:/g
  11942. s/:@srcdir@:/:/g
  11943. s/^:*//
  11944. s/:*$//
  11945. x
  11946. s/\(=[ ]*\).*/\1/
  11947. G
  11948. s/\n//
  11949. s/^[^=]*=[ ]*$//
  11950. }'
  11951. fi
  11952. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11953. fi # test -n "$CONFIG_FILES"
  11954. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  11955. shift
  11956. for ac_tag
  11957. do
  11958. case $ac_tag in
  11959. :[FHLC]) ac_mode=$ac_tag; continue;;
  11960. esac
  11961. case $ac_mode$ac_tag in
  11962. :[FHL]*:*);;
  11963. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11964. :[FH]-) ac_tag=-:-;;
  11965. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11966. esac
  11967. ac_save_IFS=$IFS
  11968. IFS=:
  11969. set x $ac_tag
  11970. IFS=$ac_save_IFS
  11971. shift
  11972. ac_file=$1
  11973. shift
  11974. case $ac_mode in
  11975. :L) ac_source=$1;;
  11976. :[FH])
  11977. ac_file_inputs=
  11978. for ac_f
  11979. do
  11980. case $ac_f in
  11981. -) ac_f="$ac_tmp/stdin";;
  11982. *) # Look for the file first in the build tree, then in the source tree
  11983. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11984. # because $ac_f cannot contain `:'.
  11985. test -f "$ac_f" ||
  11986. case $ac_f in
  11987. [\\/$]*) false;;
  11988. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11989. esac ||
  11990. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11991. esac
  11992. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11993. as_fn_append ac_file_inputs " '$ac_f'"
  11994. done
  11995. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11996. # use $as_me), people would be surprised to read:
  11997. # /* config.h. Generated by config.status. */
  11998. configure_input='Generated from '`
  11999. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12000. `' by configure.'
  12001. if test x"$ac_file" != x-; then
  12002. configure_input="$ac_file. $configure_input"
  12003. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12004. $as_echo "$as_me: creating $ac_file" >&6;}
  12005. fi
  12006. # Neutralize special characters interpreted by sed in replacement strings.
  12007. case $configure_input in #(
  12008. *\&* | *\|* | *\\* )
  12009. ac_sed_conf_input=`$as_echo "$configure_input" |
  12010. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12011. *) ac_sed_conf_input=$configure_input;;
  12012. esac
  12013. case $ac_tag in
  12014. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12015. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12016. esac
  12017. ;;
  12018. esac
  12019. ac_dir=`$as_dirname -- "$ac_file" ||
  12020. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12021. X"$ac_file" : 'X\(//\)[^/]' \| \
  12022. X"$ac_file" : 'X\(//\)$' \| \
  12023. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12024. $as_echo X"$ac_file" |
  12025. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12026. s//\1/
  12027. q
  12028. }
  12029. /^X\(\/\/\)[^/].*/{
  12030. s//\1/
  12031. q
  12032. }
  12033. /^X\(\/\/\)$/{
  12034. s//\1/
  12035. q
  12036. }
  12037. /^X\(\/\).*/{
  12038. s//\1/
  12039. q
  12040. }
  12041. s/.*/./; q'`
  12042. as_dir="$ac_dir"; as_fn_mkdir_p
  12043. ac_builddir=.
  12044. case "$ac_dir" in
  12045. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12046. *)
  12047. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12048. # A ".." for each directory in $ac_dir_suffix.
  12049. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12050. case $ac_top_builddir_sub in
  12051. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12052. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12053. esac ;;
  12054. esac
  12055. ac_abs_top_builddir=$ac_pwd
  12056. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12057. # for backward compatibility:
  12058. ac_top_builddir=$ac_top_build_prefix
  12059. case $srcdir in
  12060. .) # We are building in place.
  12061. ac_srcdir=.
  12062. ac_top_srcdir=$ac_top_builddir_sub
  12063. ac_abs_top_srcdir=$ac_pwd ;;
  12064. [\\/]* | ?:[\\/]* ) # Absolute name.
  12065. ac_srcdir=$srcdir$ac_dir_suffix;
  12066. ac_top_srcdir=$srcdir
  12067. ac_abs_top_srcdir=$srcdir ;;
  12068. *) # Relative name.
  12069. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12070. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12071. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12072. esac
  12073. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12074. case $ac_mode in
  12075. :F)
  12076. #
  12077. # CONFIG_FILE
  12078. #
  12079. case $INSTALL in
  12080. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12081. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12082. esac
  12083. ac_MKDIR_P=$MKDIR_P
  12084. case $MKDIR_P in
  12085. [\\/$]* | ?:[\\/]* ) ;;
  12086. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12087. esac
  12088. _ACEOF
  12089. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12090. # If the template does not know about datarootdir, expand it.
  12091. # FIXME: This hack should be removed a few years after 2.60.
  12092. ac_datarootdir_hack=; ac_datarootdir_seen=
  12093. ac_sed_dataroot='
  12094. /datarootdir/ {
  12095. p
  12096. q
  12097. }
  12098. /@datadir@/p
  12099. /@docdir@/p
  12100. /@infodir@/p
  12101. /@localedir@/p
  12102. /@mandir@/p'
  12103. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12104. *datarootdir*) ac_datarootdir_seen=yes;;
  12105. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12107. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12108. _ACEOF
  12109. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12110. ac_datarootdir_hack='
  12111. s&@datadir@&$datadir&g
  12112. s&@docdir@&$docdir&g
  12113. s&@infodir@&$infodir&g
  12114. s&@localedir@&$localedir&g
  12115. s&@mandir@&$mandir&g
  12116. s&\\\${datarootdir}&$datarootdir&g' ;;
  12117. esac
  12118. _ACEOF
  12119. # Neutralize VPATH when `$srcdir' = `.'.
  12120. # Shell code in configure.ac might set extrasub.
  12121. # FIXME: do we really want to maintain this feature?
  12122. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12123. ac_sed_extra="$ac_vpsub
  12124. $extrasub
  12125. _ACEOF
  12126. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12127. :t
  12128. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12129. s|@configure_input@|$ac_sed_conf_input|;t t
  12130. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12131. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12132. s&@srcdir@&$ac_srcdir&;t t
  12133. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12134. s&@top_srcdir@&$ac_top_srcdir&;t t
  12135. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12136. s&@builddir@&$ac_builddir&;t t
  12137. s&@abs_builddir@&$ac_abs_builddir&;t t
  12138. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12139. s&@INSTALL@&$ac_INSTALL&;t t
  12140. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12141. $ac_datarootdir_hack
  12142. "
  12143. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12144. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12145. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12146. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12147. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12148. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12150. which seems to be undefined. Please make sure it is defined" >&5
  12151. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12152. which seems to be undefined. Please make sure it is defined" >&2;}
  12153. rm -f "$ac_tmp/stdin"
  12154. case $ac_file in
  12155. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12156. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12157. esac \
  12158. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12159. ;;
  12160. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12161. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12162. ;;
  12163. esac
  12164. case $ac_file$ac_mode in
  12165. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12166. # Older Autoconf quotes --file arguments for eval, but not when files
  12167. # are listed without --file. Let's play safe and only enable the eval
  12168. # if we detect the quoting.
  12169. case $CONFIG_FILES in
  12170. *\'*) eval set x "$CONFIG_FILES" ;;
  12171. *) set x $CONFIG_FILES ;;
  12172. esac
  12173. shift
  12174. for mf
  12175. do
  12176. # Strip MF so we end up with the name of the file.
  12177. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12178. # Check whether this is an Automake generated Makefile or not.
  12179. # We used to match only the files named 'Makefile.in', but
  12180. # some people rename them; so instead we look at the file content.
  12181. # Grep'ing the first line is not enough: some people post-process
  12182. # each Makefile.in and add a new line on top of each file to say so.
  12183. # Grep'ing the whole file is not good either: AIX grep has a line
  12184. # limit of 2048, but all sed's we know have understand at least 4000.
  12185. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12186. dirpart=`$as_dirname -- "$mf" ||
  12187. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12188. X"$mf" : 'X\(//\)[^/]' \| \
  12189. X"$mf" : 'X\(//\)$' \| \
  12190. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12191. $as_echo X"$mf" |
  12192. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12193. s//\1/
  12194. q
  12195. }
  12196. /^X\(\/\/\)[^/].*/{
  12197. s//\1/
  12198. q
  12199. }
  12200. /^X\(\/\/\)$/{
  12201. s//\1/
  12202. q
  12203. }
  12204. /^X\(\/\).*/{
  12205. s//\1/
  12206. q
  12207. }
  12208. s/.*/./; q'`
  12209. else
  12210. continue
  12211. fi
  12212. # Extract the definition of DEPDIR, am__include, and am__quote
  12213. # from the Makefile without running 'make'.
  12214. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12215. test -z "$DEPDIR" && continue
  12216. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12217. test -z "$am__include" && continue
  12218. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12219. # Find all dependency output files, they are included files with
  12220. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12221. # simplest approach to changing $(DEPDIR) to its actual value in the
  12222. # expansion.
  12223. for file in `sed -n "
  12224. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12225. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12226. # Make sure the directory exists.
  12227. test -f "$dirpart/$file" && continue
  12228. fdir=`$as_dirname -- "$file" ||
  12229. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12230. X"$file" : 'X\(//\)[^/]' \| \
  12231. X"$file" : 'X\(//\)$' \| \
  12232. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12233. $as_echo X"$file" |
  12234. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12235. s//\1/
  12236. q
  12237. }
  12238. /^X\(\/\/\)[^/].*/{
  12239. s//\1/
  12240. q
  12241. }
  12242. /^X\(\/\/\)$/{
  12243. s//\1/
  12244. q
  12245. }
  12246. /^X\(\/\).*/{
  12247. s//\1/
  12248. q
  12249. }
  12250. s/.*/./; q'`
  12251. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12252. # echo "creating $dirpart/$file"
  12253. echo '# dummy' > "$dirpart/$file"
  12254. done
  12255. done
  12256. }
  12257. ;;
  12258. "libtool":C)
  12259. # See if we are running on zsh, and set the options that allow our
  12260. # commands through without removal of \ escapes.
  12261. if test -n "${ZSH_VERSION+set}"; then
  12262. setopt NO_GLOB_SUBST
  12263. fi
  12264. cfgfile=${ofile}T
  12265. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12266. $RM "$cfgfile"
  12267. cat <<_LT_EOF >> "$cfgfile"
  12268. #! $SHELL
  12269. # Generated automatically by $as_me ($PACKAGE) $VERSION
  12270. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12271. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12272. # Provide generalized library-building support services.
  12273. # Written by Gordon Matzigkeit, 1996
  12274. # Copyright (C) 2014 Free Software Foundation, Inc.
  12275. # This is free software; see the source for copying conditions. There is NO
  12276. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12277. # GNU Libtool is free software; you can redistribute it and/or modify
  12278. # it under the terms of the GNU General Public License as published by
  12279. # the Free Software Foundation; either version 2 of of the License, or
  12280. # (at your option) any later version.
  12281. #
  12282. # As a special exception to the GNU General Public License, if you
  12283. # distribute this file as part of a program or library that is built
  12284. # using GNU Libtool, you may include this file under the same
  12285. # distribution terms that you use for the rest of that program.
  12286. #
  12287. # GNU Libtool is distributed in the hope that it will be useful, but
  12288. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12289. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12290. # GNU General Public License for more details.
  12291. #
  12292. # You should have received a copy of the GNU General Public License
  12293. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  12294. # The names of the tagged configurations supported by this script.
  12295. available_tags=''
  12296. # Configured defaults for sys_lib_dlsearch_path munging.
  12297. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  12298. # ### BEGIN LIBTOOL CONFIG
  12299. # Which release of libtool.m4 was used?
  12300. macro_version=$macro_version
  12301. macro_revision=$macro_revision
  12302. # Whether or not to build static libraries.
  12303. build_old_libs=$enable_static
  12304. # Whether or not to build shared libraries.
  12305. build_libtool_libs=$enable_shared
  12306. # What type of objects to build.
  12307. pic_mode=$pic_mode
  12308. # Whether or not to optimize for fast installation.
  12309. fast_install=$enable_fast_install
  12310. # Shared archive member basename,for filename based shared library versioning on AIX.
  12311. shared_archive_member_spec=$shared_archive_member_spec
  12312. # Shell to use when invoking shell scripts.
  12313. SHELL=$lt_SHELL
  12314. # An echo program that protects backslashes.
  12315. ECHO=$lt_ECHO
  12316. # The PATH separator for the build system.
  12317. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12318. # The host system.
  12319. host_alias=$host_alias
  12320. host=$host
  12321. host_os=$host_os
  12322. # The build system.
  12323. build_alias=$build_alias
  12324. build=$build
  12325. build_os=$build_os
  12326. # A sed program that does not truncate output.
  12327. SED=$lt_SED
  12328. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12329. Xsed="\$SED -e 1s/^X//"
  12330. # A grep program that handles long lines.
  12331. GREP=$lt_GREP
  12332. # An ERE matcher.
  12333. EGREP=$lt_EGREP
  12334. # A literal string matcher.
  12335. FGREP=$lt_FGREP
  12336. # A BSD- or MS-compatible name lister.
  12337. NM=$lt_NM
  12338. # Whether we need soft or hard links.
  12339. LN_S=$lt_LN_S
  12340. # What is the maximum length of a command?
  12341. max_cmd_len=$max_cmd_len
  12342. # Object file suffix (normally "o").
  12343. objext=$ac_objext
  12344. # Executable file suffix (normally "").
  12345. exeext=$exeext
  12346. # whether the shell understands "unset".
  12347. lt_unset=$lt_unset
  12348. # turn spaces into newlines.
  12349. SP2NL=$lt_lt_SP2NL
  12350. # turn newlines into spaces.
  12351. NL2SP=$lt_lt_NL2SP
  12352. # convert \$build file names to \$host format.
  12353. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12354. # convert \$build files to toolchain format.
  12355. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12356. # An object symbol dumper.
  12357. OBJDUMP=$lt_OBJDUMP
  12358. # Method to check whether dependent libraries are shared objects.
  12359. deplibs_check_method=$lt_deplibs_check_method
  12360. # Command to use when deplibs_check_method = "file_magic".
  12361. file_magic_cmd=$lt_file_magic_cmd
  12362. # How to find potential files when deplibs_check_method = "file_magic".
  12363. file_magic_glob=$lt_file_magic_glob
  12364. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12365. want_nocaseglob=$lt_want_nocaseglob
  12366. # DLL creation program.
  12367. DLLTOOL=$lt_DLLTOOL
  12368. # Command to associate shared and link libraries.
  12369. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12370. # The archiver.
  12371. AR=$lt_AR
  12372. # Flags to create an archive.
  12373. AR_FLAGS=$lt_AR_FLAGS
  12374. # How to feed a file listing to the archiver.
  12375. archiver_list_spec=$lt_archiver_list_spec
  12376. # A symbol stripping program.
  12377. STRIP=$lt_STRIP
  12378. # Commands used to install an old-style archive.
  12379. RANLIB=$lt_RANLIB
  12380. old_postinstall_cmds=$lt_old_postinstall_cmds
  12381. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12382. # Whether to use a lock for old archive extraction.
  12383. lock_old_archive_extraction=$lock_old_archive_extraction
  12384. # A C compiler.
  12385. LTCC=$lt_CC
  12386. # LTCC compiler flags.
  12387. LTCFLAGS=$lt_CFLAGS
  12388. # Take the output of nm and produce a listing of raw symbols and C names.
  12389. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12390. # Transform the output of nm in a proper C declaration.
  12391. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12392. # Transform the output of nm into a list of symbols to manually relocate.
  12393. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  12394. # Transform the output of nm in a C name address pair.
  12395. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12396. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12397. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12398. # The name lister interface.
  12399. nm_interface=$lt_lt_cv_nm_interface
  12400. # Specify filename containing input files for \$NM.
  12401. nm_file_list_spec=$lt_nm_file_list_spec
  12402. # The root where to search for dependent libraries,and where our libraries should be installed.
  12403. lt_sysroot=$lt_sysroot
  12404. # Command to truncate a binary pipe.
  12405. lt_truncate_bin=$lt_lt_cv_truncate_bin
  12406. # The name of the directory that contains temporary libtool files.
  12407. objdir=$objdir
  12408. # Used to examine libraries when file_magic_cmd begins with "file".
  12409. MAGIC_CMD=$MAGIC_CMD
  12410. # Must we lock files when doing compilation?
  12411. need_locks=$lt_need_locks
  12412. # Manifest tool.
  12413. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12414. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12415. DSYMUTIL=$lt_DSYMUTIL
  12416. # Tool to change global to local symbols on Mac OS X.
  12417. NMEDIT=$lt_NMEDIT
  12418. # Tool to manipulate fat objects and archives on Mac OS X.
  12419. LIPO=$lt_LIPO
  12420. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12421. OTOOL=$lt_OTOOL
  12422. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12423. OTOOL64=$lt_OTOOL64
  12424. # Old archive suffix (normally "a").
  12425. libext=$libext
  12426. # Shared library suffix (normally ".so").
  12427. shrext_cmds=$lt_shrext_cmds
  12428. # The commands to extract the exported symbol list from a shared archive.
  12429. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12430. # Variables whose values should be saved in libtool wrapper scripts and
  12431. # restored at link time.
  12432. variables_saved_for_relink=$lt_variables_saved_for_relink
  12433. # Do we need the "lib" prefix for modules?
  12434. need_lib_prefix=$need_lib_prefix
  12435. # Do we need a version for libraries?
  12436. need_version=$need_version
  12437. # Library versioning type.
  12438. version_type=$version_type
  12439. # Shared library runtime path variable.
  12440. runpath_var=$runpath_var
  12441. # Shared library path variable.
  12442. shlibpath_var=$shlibpath_var
  12443. # Is shlibpath searched before the hard-coded library search path?
  12444. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12445. # Format of library name prefix.
  12446. libname_spec=$lt_libname_spec
  12447. # List of archive names. First name is the real one, the rest are links.
  12448. # The last name is the one that the linker finds with -lNAME
  12449. library_names_spec=$lt_library_names_spec
  12450. # The coded name of the library, if different from the real name.
  12451. soname_spec=$lt_soname_spec
  12452. # Permission mode override for installation of shared libraries.
  12453. install_override_mode=$lt_install_override_mode
  12454. # Command to use after installation of a shared archive.
  12455. postinstall_cmds=$lt_postinstall_cmds
  12456. # Command to use after uninstallation of a shared archive.
  12457. postuninstall_cmds=$lt_postuninstall_cmds
  12458. # Commands used to finish a libtool library installation in a directory.
  12459. finish_cmds=$lt_finish_cmds
  12460. # As "finish_cmds", except a single script fragment to be evaled but
  12461. # not shown.
  12462. finish_eval=$lt_finish_eval
  12463. # Whether we should hardcode library paths into libraries.
  12464. hardcode_into_libs=$hardcode_into_libs
  12465. # Compile-time system search path for libraries.
  12466. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12467. # Detected run-time system search path for libraries.
  12468. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  12469. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  12470. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  12471. # Whether dlopen is supported.
  12472. dlopen_support=$enable_dlopen
  12473. # Whether dlopen of programs is supported.
  12474. dlopen_self=$enable_dlopen_self
  12475. # Whether dlopen of statically linked programs is supported.
  12476. dlopen_self_static=$enable_dlopen_self_static
  12477. # Commands to strip libraries.
  12478. old_striplib=$lt_old_striplib
  12479. striplib=$lt_striplib
  12480. # The linker used to build libraries.
  12481. LD=$lt_LD
  12482. # How to create reloadable object files.
  12483. reload_flag=$lt_reload_flag
  12484. reload_cmds=$lt_reload_cmds
  12485. # Commands used to build an old-style archive.
  12486. old_archive_cmds=$lt_old_archive_cmds
  12487. # A language specific compiler.
  12488. CC=$lt_compiler
  12489. # Is the compiler the GNU compiler?
  12490. with_gcc=$GCC
  12491. # Compiler flag to turn off builtin functions.
  12492. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12493. # Additional compiler flags for building library objects.
  12494. pic_flag=$lt_lt_prog_compiler_pic
  12495. # How to pass a linker flag through the compiler.
  12496. wl=$lt_lt_prog_compiler_wl
  12497. # Compiler flag to prevent dynamic linking.
  12498. link_static_flag=$lt_lt_prog_compiler_static
  12499. # Does compiler simultaneously support -c and -o options?
  12500. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12501. # Whether or not to add -lc for building shared libraries.
  12502. build_libtool_need_lc=$archive_cmds_need_lc
  12503. # Whether or not to disallow shared libs when runtime libs are static.
  12504. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12505. # Compiler flag to allow reflexive dlopens.
  12506. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12507. # Compiler flag to generate shared objects directly from archives.
  12508. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12509. # Whether the compiler copes with passing no objects directly.
  12510. compiler_needs_object=$lt_compiler_needs_object
  12511. # Create an old-style archive from a shared archive.
  12512. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12513. # Create a temporary old-style archive to link instead of a shared archive.
  12514. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12515. # Commands used to build a shared archive.
  12516. archive_cmds=$lt_archive_cmds
  12517. archive_expsym_cmds=$lt_archive_expsym_cmds
  12518. # Commands used to build a loadable module if different from building
  12519. # a shared archive.
  12520. module_cmds=$lt_module_cmds
  12521. module_expsym_cmds=$lt_module_expsym_cmds
  12522. # Whether we are building with GNU ld or not.
  12523. with_gnu_ld=$lt_with_gnu_ld
  12524. # Flag that allows shared libraries with undefined symbols to be built.
  12525. allow_undefined_flag=$lt_allow_undefined_flag
  12526. # Flag that enforces no undefined symbols.
  12527. no_undefined_flag=$lt_no_undefined_flag
  12528. # Flag to hardcode \$libdir into a binary during linking.
  12529. # This must work even if \$libdir does not exist
  12530. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12531. # Whether we need a single "-rpath" flag with a separated argument.
  12532. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12533. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12534. # DIR into the resulting binary.
  12535. hardcode_direct=$hardcode_direct
  12536. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12537. # DIR into the resulting binary and the resulting library dependency is
  12538. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  12539. # library is relocated.
  12540. hardcode_direct_absolute=$hardcode_direct_absolute
  12541. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12542. # into the resulting binary.
  12543. hardcode_minus_L=$hardcode_minus_L
  12544. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12545. # into the resulting binary.
  12546. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12547. # Set to "yes" if building a shared library automatically hardcodes DIR
  12548. # into the library and all subsequent libraries and executables linked
  12549. # against it.
  12550. hardcode_automatic=$hardcode_automatic
  12551. # Set to yes if linker adds runtime paths of dependent libraries
  12552. # to runtime path list.
  12553. inherit_rpath=$inherit_rpath
  12554. # Whether libtool must link a program against all its dependency libraries.
  12555. link_all_deplibs=$link_all_deplibs
  12556. # Set to "yes" if exported symbols are required.
  12557. always_export_symbols=$always_export_symbols
  12558. # The commands to list exported symbols.
  12559. export_symbols_cmds=$lt_export_symbols_cmds
  12560. # Symbols that should not be listed in the preloaded symbols.
  12561. exclude_expsyms=$lt_exclude_expsyms
  12562. # Symbols that must always be exported.
  12563. include_expsyms=$lt_include_expsyms
  12564. # Commands necessary for linking programs (against libraries) with templates.
  12565. prelink_cmds=$lt_prelink_cmds
  12566. # Commands necessary for finishing linking programs.
  12567. postlink_cmds=$lt_postlink_cmds
  12568. # Specify filename containing input files.
  12569. file_list_spec=$lt_file_list_spec
  12570. # How to hardcode a shared library path into an executable.
  12571. hardcode_action=$hardcode_action
  12572. # ### END LIBTOOL CONFIG
  12573. _LT_EOF
  12574. cat <<'_LT_EOF' >> "$cfgfile"
  12575. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  12576. # func_munge_path_list VARIABLE PATH
  12577. # -----------------------------------
  12578. # VARIABLE is name of variable containing _space_ separated list of
  12579. # directories to be munged by the contents of PATH, which is string
  12580. # having a format:
  12581. # "DIR[:DIR]:"
  12582. # string "DIR[ DIR]" will be prepended to VARIABLE
  12583. # ":DIR[:DIR]"
  12584. # string "DIR[ DIR]" will be appended to VARIABLE
  12585. # "DIRP[:DIRP]::[DIRA:]DIRA"
  12586. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  12587. # "DIRA[ DIRA]" will be appended to VARIABLE
  12588. # "DIR[:DIR]"
  12589. # VARIABLE will be replaced by "DIR[ DIR]"
  12590. func_munge_path_list ()
  12591. {
  12592. case x$2 in
  12593. x)
  12594. ;;
  12595. *:)
  12596. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  12597. ;;
  12598. x:*)
  12599. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  12600. ;;
  12601. *::*)
  12602. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  12603. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  12604. ;;
  12605. *)
  12606. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  12607. ;;
  12608. esac
  12609. }
  12610. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  12611. func_cc_basename ()
  12612. {
  12613. for cc_temp in $*""; do
  12614. case $cc_temp in
  12615. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12616. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12617. \-*) ;;
  12618. *) break;;
  12619. esac
  12620. done
  12621. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  12622. }
  12623. # ### END FUNCTIONS SHARED WITH CONFIGURE
  12624. _LT_EOF
  12625. case $host_os in
  12626. aix3*)
  12627. cat <<\_LT_EOF >> "$cfgfile"
  12628. # AIX sometimes has problems with the GCC collect2 program. For some
  12629. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12630. # vanish in a puff of smoke.
  12631. if test set != "${COLLECT_NAMES+set}"; then
  12632. COLLECT_NAMES=
  12633. export COLLECT_NAMES
  12634. fi
  12635. _LT_EOF
  12636. ;;
  12637. esac
  12638. ltmain=$ac_aux_dir/ltmain.sh
  12639. # We use sed instead of cat because bash on DJGPP gets confused if
  12640. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12641. # text mode, it properly converts lines to CR/LF. This bash problem
  12642. # is reportedly fixed, but why not run on old versions too?
  12643. sed '$q' "$ltmain" >> "$cfgfile" \
  12644. || (rm -f "$cfgfile"; exit 1)
  12645. mv -f "$cfgfile" "$ofile" ||
  12646. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12647. chmod +x "$ofile"
  12648. ;;
  12649. esac
  12650. done # for ac_tag
  12651. as_fn_exit 0
  12652. _ACEOF
  12653. ac_clean_files=$ac_clean_files_save
  12654. test $ac_write_fail = 0 ||
  12655. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12656. # configure is writing to config.log, and then calls config.status.
  12657. # config.status does its own redirection, appending to config.log.
  12658. # Unfortunately, on DOS this fails, as config.log is still kept open
  12659. # by configure, so config.status won't be able to write to it; its
  12660. # output is simply discarded. So we exec the FD to /dev/null,
  12661. # effectively closing config.log, so it can be properly (re)opened and
  12662. # appended to by config.status. When coming back to configure, we
  12663. # need to make the FD available again.
  12664. if test "$no_create" != yes; then
  12665. ac_cs_success=:
  12666. ac_config_status_args=
  12667. test "$silent" = yes &&
  12668. ac_config_status_args="$ac_config_status_args --quiet"
  12669. exec 5>/dev/null
  12670. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12671. exec 5>>config.log
  12672. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12673. # would make configure fail if this is the last instruction.
  12674. $ac_cs_success || as_fn_exit 1
  12675. fi
  12676. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12678. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12679. fi