output.0 595 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.69 for libsodium 1.0.15.
  4. @%:@
  5. @%:@ Report bugs to <https://github.com/jedisct1/libsodium/issues>.
  6. @%:@
  7. @%:@
  8. @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. @%:@
  10. @%:@
  11. @%:@ This configure script is free software; the Free Software Foundation
  12. @%:@ gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in @%:@(
  27. *posix*) :
  28. set -o posix ;; @%:@(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in @%:@(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in @%:@((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in @%:@ ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in @%:@(
  160. *posix*) :
  161. set -o posix ;; @%:@(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in @%:@(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in @%:@ ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: https://github.com/jedisct1/libsodium/issues about your
  260. $0: system, including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. @%:@ as_fn_unset VAR
  277. @%:@ ---------------
  278. @%:@ Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. @%:@ as_fn_set_status STATUS
  285. @%:@ -----------------------
  286. @%:@ Set @S|@? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } @%:@ as_fn_set_status
  291. @%:@ as_fn_exit STATUS
  292. @%:@ -----------------
  293. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } @%:@ as_fn_exit
  300. @%:@ as_fn_mkdir_p
  301. @%:@ -------------
  302. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } @%:@ as_fn_mkdir_p
  344. @%:@ as_fn_executable_p FILE
  345. @%:@ -----------------------
  346. @%:@ Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } @%:@ as_fn_executable_p
  351. @%:@ as_fn_append VAR VALUE
  352. @%:@ ----------------------
  353. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  354. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  355. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  356. @%:@ implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. @%:@ as_fn_arith ARG...
  369. @%:@ ------------------
  370. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  371. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  372. @%:@ must be portable across @S|@(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. @%:@ ----------------------------------------
  386. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. @%:@ script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } @%:@ as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in @%:@(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIB@&t@OBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libsodium'
  542. PACKAGE_TARNAME='libsodium'
  543. PACKAGE_VERSION='1.0.15'
  544. PACKAGE_STRING='libsodium 1.0.15'
  545. PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
  546. PACKAGE_URL='https://github.com/jedisct1/libsodium'
  547. ac_unique_file="src/libsodium/sodium/version.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIB@&t@OBJS
  587. HAVE_LD_OUTPUT_DEF_FALSE
  588. HAVE_LD_OUTPUT_DEF_TRUE
  589. AS
  590. NATIVECLIENT_FALSE
  591. NATIVECLIENT_TRUE
  592. EMSCRIPTEN_FALSE
  593. EMSCRIPTEN_TRUE
  594. TEST_LDFLAGS
  595. LIBTOOL_EXTRA_FLAGS
  596. HAVE_CPUID_V
  597. HAVE_TI_MODE_V
  598. HAVE_TI_MODE_FALSE
  599. HAVE_TI_MODE_TRUE
  600. HAVE_AVX_ASM_V
  601. HAVE_AVX_ASM_FALSE
  602. HAVE_AVX_ASM_TRUE
  603. HAVE_AMD64_ASM_V
  604. HAVE_AMD64_ASM_FALSE
  605. HAVE_AMD64_ASM_TRUE
  606. CFLAGS_PCLMUL
  607. CFLAGS_AESNI
  608. CFLAGS_AVX512F
  609. CFLAGS_AVX2
  610. CFLAGS_AVX
  611. CFLAGS_SSE41
  612. CFLAGS_SSSE3
  613. CFLAGS_SSE3
  614. CFLAGS_SSE2
  615. CFLAGS_MMX
  616. LIBTOOL_DEPS
  617. LT_SYS_LIBRARY_PATH
  618. OTOOL64
  619. OTOOL
  620. LIPO
  621. NMEDIT
  622. DSYMUTIL
  623. MANIFEST_TOOL
  624. RANLIB
  625. ac_ct_AR
  626. AR
  627. DLLTOOL
  628. OBJDUMP
  629. LN_S
  630. NM
  631. ac_ct_DUMPBIN
  632. DUMPBIN
  633. LD
  634. FGREP
  635. LIBTOOL
  636. CWFLAGS
  637. am__fastdepCCAS_FALSE
  638. am__fastdepCCAS_TRUE
  639. CCASDEPMODE
  640. CCASFLAGS
  641. CCAS
  642. VALGRIND_CHECK_RULES
  643. valgrind_enabled_tools
  644. valgrind_tools
  645. ENABLE_VALGRIND_sgcheck
  646. ENABLE_VALGRIND_drd
  647. ENABLE_VALGRIND_helgrind
  648. ENABLE_VALGRIND_memcheck
  649. VALGRIND_ENABLED
  650. VALGRIND_ENABLED_FALSE
  651. VALGRIND_ENABLED_TRUE
  652. VALGRIND
  653. SAFECODE_HOME
  654. PTHREAD_CFLAGS
  655. PTHREAD_LIBS
  656. PTHREAD_CC
  657. ax_pthread_config
  658. EGREP
  659. GREP
  660. CPP
  661. SED
  662. SODIUM_LIBRARY_MINIMAL_DEF
  663. MINIMAL_FALSE
  664. MINIMAL_TRUE
  665. am__fastdepCC_FALSE
  666. am__fastdepCC_TRUE
  667. CCDEPMODE
  668. am__quote
  669. am__include
  670. DEPDIR
  671. OBJEXT
  672. EXEEXT
  673. ac_ct_CC
  674. CPPFLAGS
  675. LDFLAGS
  676. CFLAGS
  677. CC
  678. DLL_VERSION
  679. SODIUM_LIBRARY_VERSION
  680. SODIUM_LIBRARY_VERSION_MINOR
  681. SODIUM_LIBRARY_VERSION_MAJOR
  682. ISODATE
  683. am__nodep
  684. AMDEPBACKSLASH
  685. AMDEP_FALSE
  686. AMDEP_TRUE
  687. MAINT
  688. MAINTAINER_MODE_FALSE
  689. MAINTAINER_MODE_TRUE
  690. AM_BACKSLASH
  691. AM_DEFAULT_VERBOSITY
  692. AM_DEFAULT_V
  693. AM_V
  694. am__untar
  695. am__tar
  696. AMTAR
  697. am__leading_dot
  698. SET_MAKE
  699. AWK
  700. mkdir_p
  701. MKDIR_P
  702. INSTALL_STRIP_PROGRAM
  703. STRIP
  704. install_sh
  705. MAKEINFO
  706. AUTOHEADER
  707. AUTOMAKE
  708. AUTOCONF
  709. ACLOCAL
  710. VERSION
  711. PACKAGE
  712. CYGPATH_W
  713. am__isrc
  714. INSTALL_DATA
  715. INSTALL_SCRIPT
  716. INSTALL_PROGRAM
  717. host_os
  718. host_vendor
  719. host_cpu
  720. host
  721. build_os
  722. build_vendor
  723. build_cpu
  724. build
  725. target_alias
  726. host_alias
  727. build_alias
  728. LIBS
  729. ECHO_T
  730. ECHO_N
  731. ECHO_C
  732. DEFS
  733. mandir
  734. localedir
  735. libdir
  736. psdir
  737. pdfdir
  738. dvidir
  739. htmldir
  740. infodir
  741. docdir
  742. oldincludedir
  743. includedir
  744. runstatedir
  745. localstatedir
  746. sharedstatedir
  747. sysconfdir
  748. datadir
  749. datarootdir
  750. libexecdir
  751. sbindir
  752. bindir
  753. program_transform_name
  754. prefix
  755. exec_prefix
  756. PACKAGE_URL
  757. PACKAGE_BUGREPORT
  758. PACKAGE_STRING
  759. PACKAGE_VERSION
  760. PACKAGE_TARNAME
  761. PACKAGE_NAME
  762. PATH_SEPARATOR
  763. SHELL'
  764. ac_subst_files=''
  765. ac_user_opts='
  766. enable_option_checking
  767. enable_silent_rules
  768. enable_maintainer_mode
  769. enable_dependency_tracking
  770. enable_ssp
  771. enable_asm
  772. enable_pie
  773. enable_blocking_random
  774. enable_minimal
  775. with_pthreads
  776. with_safecode
  777. enable_debug
  778. enable_opt
  779. enable_valgrind
  780. enable_valgrind_memcheck
  781. enable_valgrind_helgrind
  782. enable_valgrind_drd
  783. enable_valgrind_sgcheck
  784. enable_soname_versions
  785. enable_shared
  786. enable_static
  787. with_pic
  788. enable_fast_install
  789. with_aix_soname
  790. with_gnu_ld
  791. with_sysroot
  792. enable_libtool_lock
  793. '
  794. ac_precious_vars='build_alias
  795. host_alias
  796. target_alias
  797. CC
  798. CFLAGS
  799. LDFLAGS
  800. LIBS
  801. CPPFLAGS
  802. CPP
  803. SAFECODE_HOME
  804. CCAS
  805. CCASFLAGS
  806. CWFLAGS
  807. LT_SYS_LIBRARY_PATH
  808. AR'
  809. # Initialize some variables set by options.
  810. ac_init_help=
  811. ac_init_version=false
  812. ac_unrecognized_opts=
  813. ac_unrecognized_sep=
  814. # The variables have the same names as the options, with
  815. # dashes changed to underlines.
  816. cache_file=/dev/null
  817. exec_prefix=NONE
  818. no_create=
  819. no_recursion=
  820. prefix=NONE
  821. program_prefix=NONE
  822. program_suffix=NONE
  823. program_transform_name=s,x,x,
  824. silent=
  825. site=
  826. srcdir=
  827. verbose=
  828. x_includes=NONE
  829. x_libraries=NONE
  830. # Installation directory options.
  831. # These are left unexpanded so users can "make install exec_prefix=/foo"
  832. # and all the variables that are supposed to be based on exec_prefix
  833. # by default will actually change.
  834. # Use braces instead of parens because sh, perl, etc. also accept them.
  835. # (The list follows the same order as the GNU Coding Standards.)
  836. bindir='${exec_prefix}/bin'
  837. sbindir='${exec_prefix}/sbin'
  838. libexecdir='${exec_prefix}/libexec'
  839. datarootdir='${prefix}/share'
  840. datadir='${datarootdir}'
  841. sysconfdir='${prefix}/etc'
  842. sharedstatedir='${prefix}/com'
  843. localstatedir='${prefix}/var'
  844. runstatedir='${localstatedir}/run'
  845. includedir='${prefix}/include'
  846. oldincludedir='/usr/include'
  847. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  848. infodir='${datarootdir}/info'
  849. htmldir='${docdir}'
  850. dvidir='${docdir}'
  851. pdfdir='${docdir}'
  852. psdir='${docdir}'
  853. libdir='${exec_prefix}/lib'
  854. localedir='${datarootdir}/locale'
  855. mandir='${datarootdir}/man'
  856. ac_prev=
  857. ac_dashdash=
  858. for ac_option
  859. do
  860. # If the previous option needs an argument, assign it.
  861. if test -n "$ac_prev"; then
  862. eval $ac_prev=\$ac_option
  863. ac_prev=
  864. continue
  865. fi
  866. case $ac_option in
  867. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  868. *=) ac_optarg= ;;
  869. *) ac_optarg=yes ;;
  870. esac
  871. # Accept the important Cygnus configure options, so we can diagnose typos.
  872. case $ac_dashdash$ac_option in
  873. --)
  874. ac_dashdash=yes ;;
  875. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  876. ac_prev=bindir ;;
  877. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  878. bindir=$ac_optarg ;;
  879. -build | --build | --buil | --bui | --bu)
  880. ac_prev=build_alias ;;
  881. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  882. build_alias=$ac_optarg ;;
  883. -cache-file | --cache-file | --cache-fil | --cache-fi \
  884. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  885. ac_prev=cache_file ;;
  886. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  887. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  888. cache_file=$ac_optarg ;;
  889. --config-cache | -C)
  890. cache_file=config.cache ;;
  891. -datadir | --datadir | --datadi | --datad)
  892. ac_prev=datadir ;;
  893. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  894. datadir=$ac_optarg ;;
  895. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  896. | --dataroo | --dataro | --datar)
  897. ac_prev=datarootdir ;;
  898. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  899. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  900. datarootdir=$ac_optarg ;;
  901. -disable-* | --disable-*)
  902. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  903. # Reject names that are not valid shell variable names.
  904. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  905. as_fn_error $? "invalid feature name: $ac_useropt"
  906. ac_useropt_orig=$ac_useropt
  907. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  908. case $ac_user_opts in
  909. *"
  910. "enable_$ac_useropt"
  911. "*) ;;
  912. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  913. ac_unrecognized_sep=', ';;
  914. esac
  915. eval enable_$ac_useropt=no ;;
  916. -docdir | --docdir | --docdi | --doc | --do)
  917. ac_prev=docdir ;;
  918. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  919. docdir=$ac_optarg ;;
  920. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  921. ac_prev=dvidir ;;
  922. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  923. dvidir=$ac_optarg ;;
  924. -enable-* | --enable-*)
  925. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  926. # Reject names that are not valid shell variable names.
  927. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  928. as_fn_error $? "invalid feature name: $ac_useropt"
  929. ac_useropt_orig=$ac_useropt
  930. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  931. case $ac_user_opts in
  932. *"
  933. "enable_$ac_useropt"
  934. "*) ;;
  935. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  936. ac_unrecognized_sep=', ';;
  937. esac
  938. eval enable_$ac_useropt=\$ac_optarg ;;
  939. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  940. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  941. | --exec | --exe | --ex)
  942. ac_prev=exec_prefix ;;
  943. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  944. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  945. | --exec=* | --exe=* | --ex=*)
  946. exec_prefix=$ac_optarg ;;
  947. -gas | --gas | --ga | --g)
  948. # Obsolete; use --with-gas.
  949. with_gas=yes ;;
  950. -help | --help | --hel | --he | -h)
  951. ac_init_help=long ;;
  952. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  953. ac_init_help=recursive ;;
  954. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  955. ac_init_help=short ;;
  956. -host | --host | --hos | --ho)
  957. ac_prev=host_alias ;;
  958. -host=* | --host=* | --hos=* | --ho=*)
  959. host_alias=$ac_optarg ;;
  960. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  961. ac_prev=htmldir ;;
  962. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  963. | --ht=*)
  964. htmldir=$ac_optarg ;;
  965. -includedir | --includedir | --includedi | --included | --include \
  966. | --includ | --inclu | --incl | --inc)
  967. ac_prev=includedir ;;
  968. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  969. | --includ=* | --inclu=* | --incl=* | --inc=*)
  970. includedir=$ac_optarg ;;
  971. -infodir | --infodir | --infodi | --infod | --info | --inf)
  972. ac_prev=infodir ;;
  973. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  974. infodir=$ac_optarg ;;
  975. -libdir | --libdir | --libdi | --libd)
  976. ac_prev=libdir ;;
  977. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  978. libdir=$ac_optarg ;;
  979. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  980. | --libexe | --libex | --libe)
  981. ac_prev=libexecdir ;;
  982. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  983. | --libexe=* | --libex=* | --libe=*)
  984. libexecdir=$ac_optarg ;;
  985. -localedir | --localedir | --localedi | --localed | --locale)
  986. ac_prev=localedir ;;
  987. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  988. localedir=$ac_optarg ;;
  989. -localstatedir | --localstatedir | --localstatedi | --localstated \
  990. | --localstate | --localstat | --localsta | --localst | --locals)
  991. ac_prev=localstatedir ;;
  992. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  993. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  994. localstatedir=$ac_optarg ;;
  995. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  996. ac_prev=mandir ;;
  997. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  998. mandir=$ac_optarg ;;
  999. -nfp | --nfp | --nf)
  1000. # Obsolete; use --without-fp.
  1001. with_fp=no ;;
  1002. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1003. | --no-cr | --no-c | -n)
  1004. no_create=yes ;;
  1005. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1006. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1007. no_recursion=yes ;;
  1008. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1009. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1010. | --oldin | --oldi | --old | --ol | --o)
  1011. ac_prev=oldincludedir ;;
  1012. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1013. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1014. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1015. oldincludedir=$ac_optarg ;;
  1016. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1017. ac_prev=prefix ;;
  1018. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1019. prefix=$ac_optarg ;;
  1020. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1021. | --program-pre | --program-pr | --program-p)
  1022. ac_prev=program_prefix ;;
  1023. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1024. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1025. program_prefix=$ac_optarg ;;
  1026. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1027. | --program-suf | --program-su | --program-s)
  1028. ac_prev=program_suffix ;;
  1029. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1030. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1031. program_suffix=$ac_optarg ;;
  1032. -program-transform-name | --program-transform-name \
  1033. | --program-transform-nam | --program-transform-na \
  1034. | --program-transform-n | --program-transform- \
  1035. | --program-transform | --program-transfor \
  1036. | --program-transfo | --program-transf \
  1037. | --program-trans | --program-tran \
  1038. | --progr-tra | --program-tr | --program-t)
  1039. ac_prev=program_transform_name ;;
  1040. -program-transform-name=* | --program-transform-name=* \
  1041. | --program-transform-nam=* | --program-transform-na=* \
  1042. | --program-transform-n=* | --program-transform-=* \
  1043. | --program-transform=* | --program-transfor=* \
  1044. | --program-transfo=* | --program-transf=* \
  1045. | --program-trans=* | --program-tran=* \
  1046. | --progr-tra=* | --program-tr=* | --program-t=*)
  1047. program_transform_name=$ac_optarg ;;
  1048. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1049. ac_prev=pdfdir ;;
  1050. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1051. pdfdir=$ac_optarg ;;
  1052. -psdir | --psdir | --psdi | --psd | --ps)
  1053. ac_prev=psdir ;;
  1054. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1055. psdir=$ac_optarg ;;
  1056. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1057. | -silent | --silent | --silen | --sile | --sil)
  1058. silent=yes ;;
  1059. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1060. | --runstate | --runstat | --runsta | --runst | --runs \
  1061. | --run | --ru | --r)
  1062. ac_prev=runstatedir ;;
  1063. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1064. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1065. | --run=* | --ru=* | --r=*)
  1066. runstatedir=$ac_optarg ;;
  1067. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1068. ac_prev=sbindir ;;
  1069. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1070. | --sbi=* | --sb=*)
  1071. sbindir=$ac_optarg ;;
  1072. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1073. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1074. | --sharedst | --shareds | --shared | --share | --shar \
  1075. | --sha | --sh)
  1076. ac_prev=sharedstatedir ;;
  1077. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1078. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1079. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1080. | --sha=* | --sh=*)
  1081. sharedstatedir=$ac_optarg ;;
  1082. -site | --site | --sit)
  1083. ac_prev=site ;;
  1084. -site=* | --site=* | --sit=*)
  1085. site=$ac_optarg ;;
  1086. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1087. ac_prev=srcdir ;;
  1088. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1089. srcdir=$ac_optarg ;;
  1090. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1091. | --syscon | --sysco | --sysc | --sys | --sy)
  1092. ac_prev=sysconfdir ;;
  1093. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1094. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1095. sysconfdir=$ac_optarg ;;
  1096. -target | --target | --targe | --targ | --tar | --ta | --t)
  1097. ac_prev=target_alias ;;
  1098. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1099. target_alias=$ac_optarg ;;
  1100. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1101. verbose=yes ;;
  1102. -version | --version | --versio | --versi | --vers | -V)
  1103. ac_init_version=: ;;
  1104. -with-* | --with-*)
  1105. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1106. # Reject names that are not valid shell variable names.
  1107. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1108. as_fn_error $? "invalid package name: $ac_useropt"
  1109. ac_useropt_orig=$ac_useropt
  1110. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1111. case $ac_user_opts in
  1112. *"
  1113. "with_$ac_useropt"
  1114. "*) ;;
  1115. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1116. ac_unrecognized_sep=', ';;
  1117. esac
  1118. eval with_$ac_useropt=\$ac_optarg ;;
  1119. -without-* | --without-*)
  1120. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1121. # Reject names that are not valid shell variable names.
  1122. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1123. as_fn_error $? "invalid package name: $ac_useropt"
  1124. ac_useropt_orig=$ac_useropt
  1125. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1126. case $ac_user_opts in
  1127. *"
  1128. "with_$ac_useropt"
  1129. "*) ;;
  1130. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1131. ac_unrecognized_sep=', ';;
  1132. esac
  1133. eval with_$ac_useropt=no ;;
  1134. --x)
  1135. # Obsolete; use --with-x.
  1136. with_x=yes ;;
  1137. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1138. | --x-incl | --x-inc | --x-in | --x-i)
  1139. ac_prev=x_includes ;;
  1140. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1141. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1142. x_includes=$ac_optarg ;;
  1143. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1144. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1145. ac_prev=x_libraries ;;
  1146. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1147. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1148. x_libraries=$ac_optarg ;;
  1149. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1150. Try \`$0 --help' for more information"
  1151. ;;
  1152. *=*)
  1153. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1154. # Reject names that are not valid shell variable names.
  1155. case $ac_envvar in #(
  1156. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1157. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1158. esac
  1159. eval $ac_envvar=\$ac_optarg
  1160. export $ac_envvar ;;
  1161. *)
  1162. # FIXME: should be removed in autoconf 3.0.
  1163. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1164. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1165. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1166. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1167. ;;
  1168. esac
  1169. done
  1170. if test -n "$ac_prev"; then
  1171. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1172. as_fn_error $? "missing argument to $ac_option"
  1173. fi
  1174. if test -n "$ac_unrecognized_opts"; then
  1175. case $enable_option_checking in
  1176. no) ;;
  1177. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1178. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1179. esac
  1180. fi
  1181. # Check all directory arguments for consistency.
  1182. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1183. datadir sysconfdir sharedstatedir localstatedir includedir \
  1184. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1185. libdir localedir mandir runstatedir
  1186. do
  1187. eval ac_val=\$$ac_var
  1188. # Remove trailing slashes.
  1189. case $ac_val in
  1190. */ )
  1191. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1192. eval $ac_var=\$ac_val;;
  1193. esac
  1194. # Be sure to have absolute directory names.
  1195. case $ac_val in
  1196. [\\/$]* | ?:[\\/]* ) continue;;
  1197. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1198. esac
  1199. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1200. done
  1201. # There might be people who depend on the old broken behavior: `$host'
  1202. # used to hold the argument of --host etc.
  1203. # FIXME: To remove some day.
  1204. build=$build_alias
  1205. host=$host_alias
  1206. target=$target_alias
  1207. # FIXME: To remove some day.
  1208. if test "x$host_alias" != x; then
  1209. if test "x$build_alias" = x; then
  1210. cross_compiling=maybe
  1211. elif test "x$build_alias" != "x$host_alias"; then
  1212. cross_compiling=yes
  1213. fi
  1214. fi
  1215. ac_tool_prefix=
  1216. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1217. test "$silent" = yes && exec 6>/dev/null
  1218. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1219. ac_ls_di=`ls -di .` &&
  1220. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1221. as_fn_error $? "working directory cannot be determined"
  1222. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1223. as_fn_error $? "pwd does not report name of working directory"
  1224. # Find the source files, if location was not specified.
  1225. if test -z "$srcdir"; then
  1226. ac_srcdir_defaulted=yes
  1227. # Try the directory containing this script, then the parent directory.
  1228. ac_confdir=`$as_dirname -- "$as_myself" ||
  1229. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1230. X"$as_myself" : 'X\(//\)[^/]' \| \
  1231. X"$as_myself" : 'X\(//\)$' \| \
  1232. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1233. $as_echo X"$as_myself" |
  1234. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1235. s//\1/
  1236. q
  1237. }
  1238. /^X\(\/\/\)[^/].*/{
  1239. s//\1/
  1240. q
  1241. }
  1242. /^X\(\/\/\)$/{
  1243. s//\1/
  1244. q
  1245. }
  1246. /^X\(\/\).*/{
  1247. s//\1/
  1248. q
  1249. }
  1250. s/.*/./; q'`
  1251. srcdir=$ac_confdir
  1252. if test ! -r "$srcdir/$ac_unique_file"; then
  1253. srcdir=..
  1254. fi
  1255. else
  1256. ac_srcdir_defaulted=no
  1257. fi
  1258. if test ! -r "$srcdir/$ac_unique_file"; then
  1259. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1260. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1261. fi
  1262. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1263. ac_abs_confdir=`(
  1264. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1265. pwd)`
  1266. # When building in place, set srcdir=.
  1267. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1268. srcdir=.
  1269. fi
  1270. # Remove unnecessary trailing slashes from srcdir.
  1271. # Double slashes in file names in object file debugging info
  1272. # mess up M-x gdb in Emacs.
  1273. case $srcdir in
  1274. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1275. esac
  1276. for ac_var in $ac_precious_vars; do
  1277. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1278. eval ac_env_${ac_var}_value=\$${ac_var}
  1279. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1280. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1281. done
  1282. #
  1283. # Report the --help message.
  1284. #
  1285. if test "$ac_init_help" = "long"; then
  1286. # Omit some internal or obsolete options to make the list less imposing.
  1287. # This message is too long to be a string in the A/UX 3.1 sh.
  1288. cat <<_ACEOF
  1289. \`configure' configures libsodium 1.0.15 to adapt to many kinds of systems.
  1290. Usage: $0 [OPTION]... [VAR=VALUE]...
  1291. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1292. VAR=VALUE. See below for descriptions of some of the useful variables.
  1293. Defaults for the options are specified in brackets.
  1294. Configuration:
  1295. -h, --help display this help and exit
  1296. --help=short display options specific to this package
  1297. --help=recursive display the short help of all the included packages
  1298. -V, --version display version information and exit
  1299. -q, --quiet, --silent do not print \`checking ...' messages
  1300. --cache-file=FILE cache test results in FILE [disabled]
  1301. -C, --config-cache alias for \`--cache-file=config.cache'
  1302. -n, --no-create do not create output files
  1303. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1304. Installation directories:
  1305. --prefix=PREFIX install architecture-independent files in PREFIX
  1306. @<:@@S|@ac_default_prefix@:>@
  1307. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1308. @<:@PREFIX@:>@
  1309. By default, \`make install' will install all the files in
  1310. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1311. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1312. for instance \`--prefix=\$HOME'.
  1313. For better control, use the options below.
  1314. Fine tuning of the installation directories:
  1315. --bindir=DIR user executables [EPREFIX/bin]
  1316. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1317. --libexecdir=DIR program executables [EPREFIX/libexec]
  1318. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1319. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1320. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1321. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1322. --libdir=DIR object code libraries [EPREFIX/lib]
  1323. --includedir=DIR C header files [PREFIX/include]
  1324. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1325. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1326. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1327. --infodir=DIR info documentation [DATAROOTDIR/info]
  1328. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1329. --mandir=DIR man documentation [DATAROOTDIR/man]
  1330. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libsodium@:>@
  1331. --htmldir=DIR html documentation [DOCDIR]
  1332. --dvidir=DIR dvi documentation [DOCDIR]
  1333. --pdfdir=DIR pdf documentation [DOCDIR]
  1334. --psdir=DIR ps documentation [DOCDIR]
  1335. _ACEOF
  1336. cat <<\_ACEOF
  1337. Program names:
  1338. --program-prefix=PREFIX prepend PREFIX to installed program names
  1339. --program-suffix=SUFFIX append SUFFIX to installed program names
  1340. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1341. System types:
  1342. --build=BUILD configure for building on BUILD [guessed]
  1343. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1344. _ACEOF
  1345. fi
  1346. if test -n "$ac_init_help"; then
  1347. case $ac_init_help in
  1348. short | recursive ) echo "Configuration of libsodium 1.0.15:";;
  1349. esac
  1350. cat <<\_ACEOF
  1351. Optional Features:
  1352. --disable-option-checking ignore unrecognized --enable/--with options
  1353. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1354. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1355. --enable-silent-rules less verbose build output (undo: "make V=1")
  1356. --disable-silent-rules verbose build output (undo: "make V=0")
  1357. --enable-maintainer-mode
  1358. enable make rules and dependencies not useful (and
  1359. sometimes confusing) to the casual installer
  1360. --enable-dependency-tracking
  1361. do not reject slow dependency extractors
  1362. --disable-dependency-tracking
  1363. speeds up one-time build
  1364. --disable-ssp Do not compile with -fstack-protector
  1365. --disable-asm Do not compile assembly code -- This disables all
  1366. (including non-assembly) platform-specific
  1367. optimizations on Unix systems
  1368. --disable-pie Do not produce position independent executables
  1369. --enable-blocking-random
  1370. Enable this switch only if /dev/urandom is totally
  1371. broken on the target platform
  1372. --enable-minimal Only compile the minimum set of functions required
  1373. for the high-level API
  1374. --enable-debug For maintainers only - please do not use
  1375. --enable-opt Optimize for the native CPU - The resulting library
  1376. will be faster but not portable
  1377. --enable-valgrind Whether to enable Valgrind on the unit tests
  1378. (requires GNU make)
  1379. --disable-valgrind-memcheck
  1380. Whether to skip memcheck during the Valgrind tests
  1381. --disable-valgrind-helgrind
  1382. Whether to skip helgrind during the Valgrind tests
  1383. --disable-valgrind-drd Whether to skip drd during the Valgrind tests
  1384. --disable-valgrind-sgcheck
  1385. Whether to skip sgcheck during the Valgrind tests
  1386. --enable-soname-versions
  1387. enable soname versions (must be disabled for
  1388. Android) (default: enabled)
  1389. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1390. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1391. --enable-fast-install@<:@=PKGS@:>@
  1392. optimize for fast installation @<:@default=yes@:>@
  1393. --disable-libtool-lock avoid locking (might break parallel builds)
  1394. Optional Packages:
  1395. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1396. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1397. --with-pthreads use pthreads library, or --without-pthreads to
  1398. disable threading support.
  1399. --with-safecode For maintainers only - please do not use
  1400. --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
  1401. both@:>@
  1402. --with-aix-soname=aix|svr4|both
  1403. shared library versioning (aka "SONAME") variant to
  1404. provide on AIX, @<:@default=aix@:>@.
  1405. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1406. --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the
  1407. compiler's sysroot if not specified).
  1408. Some influential environment variables:
  1409. CC C compiler command
  1410. CFLAGS C compiler flags
  1411. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1412. nonstandard directory <lib dir>
  1413. LIBS libraries to pass to the linker, e.g. -l<library>
  1414. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1415. you have headers in a nonstandard directory <include dir>
  1416. CPP C preprocessor
  1417. SAFECODE_HOME
  1418. set to the safecode base directory
  1419. CCAS assembler compiler command (defaults to CC)
  1420. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1421. CWFLAGS define to compilation flags for generating extra warnings
  1422. LT_SYS_LIBRARY_PATH
  1423. User-defined run-time library search path.
  1424. AR path to the ar utility
  1425. Use these variables to override the choices made by `configure' or to help
  1426. it to find libraries and programs with nonstandard names/locations.
  1427. Report bugs to <https://github.com/jedisct1/libsodium/issues>.
  1428. libsodium home page: <https://github.com/jedisct1/libsodium>.
  1429. _ACEOF
  1430. ac_status=$?
  1431. fi
  1432. if test "$ac_init_help" = "recursive"; then
  1433. # If there are subdirs, report their specific --help.
  1434. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1435. test -d "$ac_dir" ||
  1436. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1437. continue
  1438. ac_builddir=.
  1439. case "$ac_dir" in
  1440. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1441. *)
  1442. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1443. # A ".." for each directory in $ac_dir_suffix.
  1444. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1445. case $ac_top_builddir_sub in
  1446. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1447. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1448. esac ;;
  1449. esac
  1450. ac_abs_top_builddir=$ac_pwd
  1451. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1452. # for backward compatibility:
  1453. ac_top_builddir=$ac_top_build_prefix
  1454. case $srcdir in
  1455. .) # We are building in place.
  1456. ac_srcdir=.
  1457. ac_top_srcdir=$ac_top_builddir_sub
  1458. ac_abs_top_srcdir=$ac_pwd ;;
  1459. [\\/]* | ?:[\\/]* ) # Absolute name.
  1460. ac_srcdir=$srcdir$ac_dir_suffix;
  1461. ac_top_srcdir=$srcdir
  1462. ac_abs_top_srcdir=$srcdir ;;
  1463. *) # Relative name.
  1464. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1465. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1466. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1467. esac
  1468. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1469. cd "$ac_dir" || { ac_status=$?; continue; }
  1470. # Check for guested configure.
  1471. if test -f "$ac_srcdir/configure.gnu"; then
  1472. echo &&
  1473. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1474. elif test -f "$ac_srcdir/configure"; then
  1475. echo &&
  1476. $SHELL "$ac_srcdir/configure" --help=recursive
  1477. else
  1478. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1479. fi || ac_status=$?
  1480. cd "$ac_pwd" || { ac_status=$?; break; }
  1481. done
  1482. fi
  1483. test -n "$ac_init_help" && exit $ac_status
  1484. if $ac_init_version; then
  1485. cat <<\_ACEOF
  1486. libsodium configure 1.0.15
  1487. generated by GNU Autoconf 2.69
  1488. Copyright (C) 2012 Free Software Foundation, Inc.
  1489. This configure script is free software; the Free Software Foundation
  1490. gives unlimited permission to copy, distribute and modify it.
  1491. _ACEOF
  1492. exit
  1493. fi
  1494. ## ------------------------ ##
  1495. ## Autoconf initialization. ##
  1496. ## ------------------------ ##
  1497. @%:@ ac_fn_c_try_compile LINENO
  1498. @%:@ --------------------------
  1499. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1500. ac_fn_c_try_compile ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. rm -f conftest.$ac_objext
  1504. if { { ac_try="$ac_compile"
  1505. case "(($ac_try" in
  1506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1507. *) ac_try_echo=$ac_try;;
  1508. esac
  1509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1510. $as_echo "$ac_try_echo"; } >&5
  1511. (eval "$ac_compile") 2>conftest.err
  1512. ac_status=$?
  1513. if test -s conftest.err; then
  1514. grep -v '^ *+' conftest.err >conftest.er1
  1515. cat conftest.er1 >&5
  1516. mv -f conftest.er1 conftest.err
  1517. fi
  1518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1519. test $ac_status = 0; } && {
  1520. test -z "$ac_c_werror_flag" ||
  1521. test ! -s conftest.err
  1522. } && test -s conftest.$ac_objext; then :
  1523. ac_retval=0
  1524. else
  1525. $as_echo "$as_me: failed program was:" >&5
  1526. sed 's/^/| /' conftest.$ac_ext >&5
  1527. ac_retval=1
  1528. fi
  1529. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1530. as_fn_set_status $ac_retval
  1531. } @%:@ ac_fn_c_try_compile
  1532. @%:@ ac_fn_c_try_link LINENO
  1533. @%:@ -----------------------
  1534. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1535. ac_fn_c_try_link ()
  1536. {
  1537. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1538. rm -f conftest.$ac_objext conftest$ac_exeext
  1539. if { { ac_try="$ac_link"
  1540. case "(($ac_try" in
  1541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1542. *) ac_try_echo=$ac_try;;
  1543. esac
  1544. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1545. $as_echo "$ac_try_echo"; } >&5
  1546. (eval "$ac_link") 2>conftest.err
  1547. ac_status=$?
  1548. if test -s conftest.err; then
  1549. grep -v '^ *+' conftest.err >conftest.er1
  1550. cat conftest.er1 >&5
  1551. mv -f conftest.er1 conftest.err
  1552. fi
  1553. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1554. test $ac_status = 0; } && {
  1555. test -z "$ac_c_werror_flag" ||
  1556. test ! -s conftest.err
  1557. } && test -s conftest$ac_exeext && {
  1558. test "$cross_compiling" = yes ||
  1559. test -x conftest$ac_exeext
  1560. }; then :
  1561. ac_retval=0
  1562. else
  1563. $as_echo "$as_me: failed program was:" >&5
  1564. sed 's/^/| /' conftest.$ac_ext >&5
  1565. ac_retval=1
  1566. fi
  1567. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1568. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1569. # interfere with the next link command; also delete a directory that is
  1570. # left behind by Apple's compiler. We do this before executing the actions.
  1571. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1572. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1573. as_fn_set_status $ac_retval
  1574. } @%:@ ac_fn_c_try_link
  1575. @%:@ ac_fn_c_try_cpp LINENO
  1576. @%:@ ----------------------
  1577. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1578. ac_fn_c_try_cpp ()
  1579. {
  1580. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1581. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1582. case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1589. ac_status=$?
  1590. if test -s conftest.err; then
  1591. grep -v '^ *+' conftest.err >conftest.er1
  1592. cat conftest.er1 >&5
  1593. mv -f conftest.er1 conftest.err
  1594. fi
  1595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1596. test $ac_status = 0; } > conftest.i && {
  1597. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1598. test ! -s conftest.err
  1599. }; then :
  1600. ac_retval=0
  1601. else
  1602. $as_echo "$as_me: failed program was:" >&5
  1603. sed 's/^/| /' conftest.$ac_ext >&5
  1604. ac_retval=1
  1605. fi
  1606. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1607. as_fn_set_status $ac_retval
  1608. } @%:@ ac_fn_c_try_cpp
  1609. @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1610. @%:@ -------------------------------------------------------
  1611. @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1612. @%:@ the include files in INCLUDES and setting the cache variable VAR
  1613. @%:@ accordingly.
  1614. ac_fn_c_check_header_mongrel ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. if eval \${$3+:} false; then :
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1619. $as_echo_n "checking for $2... " >&6; }
  1620. if eval \${$3+:} false; then :
  1621. $as_echo_n "(cached) " >&6
  1622. fi
  1623. eval ac_res=\$$3
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1625. $as_echo "$ac_res" >&6; }
  1626. else
  1627. # Is the header compilable?
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1629. $as_echo_n "checking $2 usability... " >&6; }
  1630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1631. /* end confdefs.h. */
  1632. $4
  1633. @%:@include <$2>
  1634. _ACEOF
  1635. if ac_fn_c_try_compile "$LINENO"; then :
  1636. ac_header_compiler=yes
  1637. else
  1638. ac_header_compiler=no
  1639. fi
  1640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1642. $as_echo "$ac_header_compiler" >&6; }
  1643. # Is the header present?
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1645. $as_echo_n "checking $2 presence... " >&6; }
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. @%:@include <$2>
  1649. _ACEOF
  1650. if ac_fn_c_try_cpp "$LINENO"; then :
  1651. ac_header_preproc=yes
  1652. else
  1653. ac_header_preproc=no
  1654. fi
  1655. rm -f conftest.err conftest.i conftest.$ac_ext
  1656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1657. $as_echo "$ac_header_preproc" >&6; }
  1658. # So? What about this header?
  1659. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1660. yes:no: )
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1662. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1664. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1665. ;;
  1666. no:yes:* )
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1668. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1670. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1672. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1674. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1676. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1677. ( $as_echo "## ----------------------------------------------------------- ##
  1678. ## Report this to https://github.com/jedisct1/libsodium/issues ##
  1679. ## ----------------------------------------------------------- ##"
  1680. ) | sed "s/^/$as_me: WARNING: /" >&2
  1681. ;;
  1682. esac
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1684. $as_echo_n "checking for $2... " >&6; }
  1685. if eval \${$3+:} false; then :
  1686. $as_echo_n "(cached) " >&6
  1687. else
  1688. eval "$3=\$ac_header_compiler"
  1689. fi
  1690. eval ac_res=\$$3
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1692. $as_echo "$ac_res" >&6; }
  1693. fi
  1694. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1695. } @%:@ ac_fn_c_check_header_mongrel
  1696. @%:@ ac_fn_c_try_run LINENO
  1697. @%:@ ----------------------
  1698. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1699. @%:@ that executables *can* be run.
  1700. ac_fn_c_try_run ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. if { { ac_try="$ac_link"
  1704. case "(($ac_try" in
  1705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1706. *) ac_try_echo=$ac_try;;
  1707. esac
  1708. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1709. $as_echo "$ac_try_echo"; } >&5
  1710. (eval "$ac_link") 2>&5
  1711. ac_status=$?
  1712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1713. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1714. { { case "(($ac_try" in
  1715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1716. *) ac_try_echo=$ac_try;;
  1717. esac
  1718. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1719. $as_echo "$ac_try_echo"; } >&5
  1720. (eval "$ac_try") 2>&5
  1721. ac_status=$?
  1722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1723. test $ac_status = 0; }; }; then :
  1724. ac_retval=0
  1725. else
  1726. $as_echo "$as_me: program exited with status $ac_status" >&5
  1727. $as_echo "$as_me: failed program was:" >&5
  1728. sed 's/^/| /' conftest.$ac_ext >&5
  1729. ac_retval=$ac_status
  1730. fi
  1731. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1732. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1733. as_fn_set_status $ac_retval
  1734. } @%:@ ac_fn_c_try_run
  1735. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1736. @%:@ -------------------------------------------------------
  1737. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1738. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1739. ac_fn_c_check_header_compile ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1743. $as_echo_n "checking for $2... " >&6; }
  1744. if eval \${$3+:} false; then :
  1745. $as_echo_n "(cached) " >&6
  1746. else
  1747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1748. /* end confdefs.h. */
  1749. $4
  1750. @%:@include <$2>
  1751. _ACEOF
  1752. if ac_fn_c_try_compile "$LINENO"; then :
  1753. eval "$3=yes"
  1754. else
  1755. eval "$3=no"
  1756. fi
  1757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1758. fi
  1759. eval ac_res=\$$3
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1761. $as_echo "$ac_res" >&6; }
  1762. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1763. } @%:@ ac_fn_c_check_header_compile
  1764. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1765. @%:@ ----------------------------------
  1766. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1767. ac_fn_c_check_func ()
  1768. {
  1769. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1771. $as_echo_n "checking for $2... " >&6; }
  1772. if eval \${$3+:} false; then :
  1773. $as_echo_n "(cached) " >&6
  1774. else
  1775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1776. /* end confdefs.h. */
  1777. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1778. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1779. #define $2 innocuous_$2
  1780. /* System header to define __stub macros and hopefully few prototypes,
  1781. which can conflict with char $2 (); below.
  1782. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1783. <limits.h> exists even on freestanding compilers. */
  1784. #ifdef __STDC__
  1785. # include <limits.h>
  1786. #else
  1787. # include <assert.h>
  1788. #endif
  1789. #undef $2
  1790. /* Override any GCC internal prototype to avoid an error.
  1791. Use char because int might match the return type of a GCC
  1792. builtin and then its argument prototype would still apply. */
  1793. #ifdef __cplusplus
  1794. extern "C"
  1795. #endif
  1796. char $2 ();
  1797. /* The GNU C library defines this for functions which it implements
  1798. to always fail with ENOSYS. Some functions are actually named
  1799. something starting with __ and the normal name is an alias. */
  1800. #if defined __stub_$2 || defined __stub___$2
  1801. choke me
  1802. #endif
  1803. int
  1804. main ()
  1805. {
  1806. return $2 ();
  1807. ;
  1808. return 0;
  1809. }
  1810. _ACEOF
  1811. if ac_fn_c_try_link "$LINENO"; then :
  1812. eval "$3=yes"
  1813. else
  1814. eval "$3=no"
  1815. fi
  1816. rm -f core conftest.err conftest.$ac_objext \
  1817. conftest$ac_exeext conftest.$ac_ext
  1818. fi
  1819. eval ac_res=\$$3
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1821. $as_echo "$ac_res" >&6; }
  1822. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1823. } @%:@ ac_fn_c_check_func
  1824. cat >config.log <<_ACEOF
  1825. This file contains any messages produced by compilers while
  1826. running configure, to aid debugging if configure makes a mistake.
  1827. It was created by libsodium $as_me 1.0.15, which was
  1828. generated by GNU Autoconf 2.69. Invocation command line was
  1829. $ $0 $@
  1830. _ACEOF
  1831. exec 5>>config.log
  1832. {
  1833. cat <<_ASUNAME
  1834. ## --------- ##
  1835. ## Platform. ##
  1836. ## --------- ##
  1837. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1838. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1839. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1840. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1841. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1842. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1843. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1844. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1845. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1846. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1847. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1848. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1849. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1850. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1851. _ASUNAME
  1852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1853. for as_dir in $PATH
  1854. do
  1855. IFS=$as_save_IFS
  1856. test -z "$as_dir" && as_dir=.
  1857. $as_echo "PATH: $as_dir"
  1858. done
  1859. IFS=$as_save_IFS
  1860. } >&5
  1861. cat >&5 <<_ACEOF
  1862. ## ----------- ##
  1863. ## Core tests. ##
  1864. ## ----------- ##
  1865. _ACEOF
  1866. # Keep a trace of the command line.
  1867. # Strip out --no-create and --no-recursion so they do not pile up.
  1868. # Strip out --silent because we don't want to record it for future runs.
  1869. # Also quote any args containing shell meta-characters.
  1870. # Make two passes to allow for proper duplicate-argument suppression.
  1871. ac_configure_args=
  1872. ac_configure_args0=
  1873. ac_configure_args1=
  1874. ac_must_keep_next=false
  1875. for ac_pass in 1 2
  1876. do
  1877. for ac_arg
  1878. do
  1879. case $ac_arg in
  1880. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1881. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1882. | -silent | --silent | --silen | --sile | --sil)
  1883. continue ;;
  1884. *\'*)
  1885. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1886. esac
  1887. case $ac_pass in
  1888. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1889. 2)
  1890. as_fn_append ac_configure_args1 " '$ac_arg'"
  1891. if test $ac_must_keep_next = true; then
  1892. ac_must_keep_next=false # Got value, back to normal.
  1893. else
  1894. case $ac_arg in
  1895. *=* | --config-cache | -C | -disable-* | --disable-* \
  1896. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1897. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1898. | -with-* | --with-* | -without-* | --without-* | --x)
  1899. case "$ac_configure_args0 " in
  1900. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1901. esac
  1902. ;;
  1903. -* ) ac_must_keep_next=true ;;
  1904. esac
  1905. fi
  1906. as_fn_append ac_configure_args " '$ac_arg'"
  1907. ;;
  1908. esac
  1909. done
  1910. done
  1911. { ac_configure_args0=; unset ac_configure_args0;}
  1912. { ac_configure_args1=; unset ac_configure_args1;}
  1913. # When interrupted or exit'd, cleanup temporary files, and complete
  1914. # config.log. We remove comments because anyway the quotes in there
  1915. # would cause problems or look ugly.
  1916. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1917. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1918. trap 'exit_status=$?
  1919. # Save into config.log some information that might help in debugging.
  1920. {
  1921. echo
  1922. $as_echo "## ---------------- ##
  1923. ## Cache variables. ##
  1924. ## ---------------- ##"
  1925. echo
  1926. # The following way of writing the cache mishandles newlines in values,
  1927. (
  1928. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1929. eval ac_val=\$$ac_var
  1930. case $ac_val in #(
  1931. *${as_nl}*)
  1932. case $ac_var in #(
  1933. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1934. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1935. esac
  1936. case $ac_var in #(
  1937. _ | IFS | as_nl) ;; #(
  1938. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1939. *) { eval $ac_var=; unset $ac_var;} ;;
  1940. esac ;;
  1941. esac
  1942. done
  1943. (set) 2>&1 |
  1944. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1945. *${as_nl}ac_space=\ *)
  1946. sed -n \
  1947. "s/'\''/'\''\\\\'\'''\''/g;
  1948. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1949. ;; #(
  1950. *)
  1951. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1952. ;;
  1953. esac |
  1954. sort
  1955. )
  1956. echo
  1957. $as_echo "## ----------------- ##
  1958. ## Output variables. ##
  1959. ## ----------------- ##"
  1960. echo
  1961. for ac_var in $ac_subst_vars
  1962. do
  1963. eval ac_val=\$$ac_var
  1964. case $ac_val in
  1965. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1966. esac
  1967. $as_echo "$ac_var='\''$ac_val'\''"
  1968. done | sort
  1969. echo
  1970. if test -n "$ac_subst_files"; then
  1971. $as_echo "## ------------------- ##
  1972. ## File substitutions. ##
  1973. ## ------------------- ##"
  1974. echo
  1975. for ac_var in $ac_subst_files
  1976. do
  1977. eval ac_val=\$$ac_var
  1978. case $ac_val in
  1979. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1980. esac
  1981. $as_echo "$ac_var='\''$ac_val'\''"
  1982. done | sort
  1983. echo
  1984. fi
  1985. if test -s confdefs.h; then
  1986. $as_echo "## ----------- ##
  1987. ## confdefs.h. ##
  1988. ## ----------- ##"
  1989. echo
  1990. cat confdefs.h
  1991. echo
  1992. fi
  1993. test "$ac_signal" != 0 &&
  1994. $as_echo "$as_me: caught signal $ac_signal"
  1995. $as_echo "$as_me: exit $exit_status"
  1996. } >&5
  1997. rm -f core *.core core.conftest.* &&
  1998. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1999. exit $exit_status
  2000. ' 0
  2001. for ac_signal in 1 2 13 15; do
  2002. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2003. done
  2004. ac_signal=0
  2005. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2006. rm -f -r conftest* confdefs.h
  2007. $as_echo "/* confdefs.h */" > confdefs.h
  2008. # Predefined preprocessor variables.
  2009. cat >>confdefs.h <<_ACEOF
  2010. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  2011. _ACEOF
  2012. cat >>confdefs.h <<_ACEOF
  2013. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2014. _ACEOF
  2015. cat >>confdefs.h <<_ACEOF
  2016. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  2017. _ACEOF
  2018. cat >>confdefs.h <<_ACEOF
  2019. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  2020. _ACEOF
  2021. cat >>confdefs.h <<_ACEOF
  2022. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2023. _ACEOF
  2024. cat >>confdefs.h <<_ACEOF
  2025. @%:@define PACKAGE_URL "$PACKAGE_URL"
  2026. _ACEOF
  2027. # Let the site file select an alternate cache file if it wants to.
  2028. # Prefer an explicitly selected file to automatically selected ones.
  2029. ac_site_file1=NONE
  2030. ac_site_file2=NONE
  2031. if test -n "$CONFIG_SITE"; then
  2032. # We do not want a PATH search for config.site.
  2033. case $CONFIG_SITE in @%:@((
  2034. -*) ac_site_file1=./$CONFIG_SITE;;
  2035. */*) ac_site_file1=$CONFIG_SITE;;
  2036. *) ac_site_file1=./$CONFIG_SITE;;
  2037. esac
  2038. elif test "x$prefix" != xNONE; then
  2039. ac_site_file1=$prefix/share/config.site
  2040. ac_site_file2=$prefix/etc/config.site
  2041. else
  2042. ac_site_file1=$ac_default_prefix/share/config.site
  2043. ac_site_file2=$ac_default_prefix/etc/config.site
  2044. fi
  2045. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2046. do
  2047. test "x$ac_site_file" = xNONE && continue
  2048. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2050. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2051. sed 's/^/| /' "$ac_site_file" >&5
  2052. . "$ac_site_file" \
  2053. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2054. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2055. as_fn_error $? "failed to load site script $ac_site_file
  2056. See \`config.log' for more details" "$LINENO" 5; }
  2057. fi
  2058. done
  2059. if test -r "$cache_file"; then
  2060. # Some versions of bash will fail to source /dev/null (special files
  2061. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2062. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2064. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2065. case $cache_file in
  2066. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2067. *) . "./$cache_file";;
  2068. esac
  2069. fi
  2070. else
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2072. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2073. >$cache_file
  2074. fi
  2075. # Check that the precious variables saved in the cache have kept the same
  2076. # value.
  2077. ac_cache_corrupted=false
  2078. for ac_var in $ac_precious_vars; do
  2079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2080. eval ac_new_set=\$ac_env_${ac_var}_set
  2081. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2082. eval ac_new_val=\$ac_env_${ac_var}_value
  2083. case $ac_old_set,$ac_new_set in
  2084. set,)
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2086. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2087. ac_cache_corrupted=: ;;
  2088. ,set)
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2090. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2091. ac_cache_corrupted=: ;;
  2092. ,);;
  2093. *)
  2094. if test "x$ac_old_val" != "x$ac_new_val"; then
  2095. # differences in whitespace do not lead to failure.
  2096. ac_old_val_w=`echo x $ac_old_val`
  2097. ac_new_val_w=`echo x $ac_new_val`
  2098. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2100. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2101. ac_cache_corrupted=:
  2102. else
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2104. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2105. eval $ac_var=\$ac_old_val
  2106. fi
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2108. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2110. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2111. fi;;
  2112. esac
  2113. # Pass precious variables to config.status.
  2114. if test "$ac_new_set" = set; then
  2115. case $ac_new_val in
  2116. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2117. *) ac_arg=$ac_var=$ac_new_val ;;
  2118. esac
  2119. case " $ac_configure_args " in
  2120. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2121. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2122. esac
  2123. fi
  2124. done
  2125. if $ac_cache_corrupted; then
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2127. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2129. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2130. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2131. fi
  2132. ## -------------------- ##
  2133. ## Main body of script. ##
  2134. ## -------------------- ##
  2135. ac_ext=c
  2136. ac_cpp='$CPP $CPPFLAGS'
  2137. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2138. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2139. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2140. ac_aux_dir=
  2141. for ac_dir in build-aux "$srcdir"/build-aux; do
  2142. if test -f "$ac_dir/install-sh"; then
  2143. ac_aux_dir=$ac_dir
  2144. ac_install_sh="$ac_aux_dir/install-sh -c"
  2145. break
  2146. elif test -f "$ac_dir/install.sh"; then
  2147. ac_aux_dir=$ac_dir
  2148. ac_install_sh="$ac_aux_dir/install.sh -c"
  2149. break
  2150. elif test -f "$ac_dir/shtool"; then
  2151. ac_aux_dir=$ac_dir
  2152. ac_install_sh="$ac_aux_dir/shtool install -c"
  2153. break
  2154. fi
  2155. done
  2156. if test -z "$ac_aux_dir"; then
  2157. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  2158. fi
  2159. # These three variables are undocumented and unsupported,
  2160. # and are intended to be withdrawn in a future Autoconf release.
  2161. # They can cause serious problems if a builder's source tree is in a directory
  2162. # whose full name contains unusual characters.
  2163. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2164. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2165. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2166. # Make sure we can run config.sub.
  2167. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2168. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2170. $as_echo_n "checking build system type... " >&6; }
  2171. if ${ac_cv_build+:} false; then :
  2172. $as_echo_n "(cached) " >&6
  2173. else
  2174. ac_build_alias=$build_alias
  2175. test "x$ac_build_alias" = x &&
  2176. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2177. test "x$ac_build_alias" = x &&
  2178. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2179. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2180. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2181. fi
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2183. $as_echo "$ac_cv_build" >&6; }
  2184. case $ac_cv_build in
  2185. *-*-*) ;;
  2186. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2187. esac
  2188. build=$ac_cv_build
  2189. ac_save_IFS=$IFS; IFS='-'
  2190. set x $ac_cv_build
  2191. shift
  2192. build_cpu=$1
  2193. build_vendor=$2
  2194. shift; shift
  2195. # Remember, the first character of IFS is used to create $*,
  2196. # except with old shells:
  2197. build_os=$*
  2198. IFS=$ac_save_IFS
  2199. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2201. $as_echo_n "checking host system type... " >&6; }
  2202. if ${ac_cv_host+:} false; then :
  2203. $as_echo_n "(cached) " >&6
  2204. else
  2205. if test "x$host_alias" = x; then
  2206. ac_cv_host=$ac_cv_build
  2207. else
  2208. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2209. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2210. fi
  2211. fi
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2213. $as_echo "$ac_cv_host" >&6; }
  2214. case $ac_cv_host in
  2215. *-*-*) ;;
  2216. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2217. esac
  2218. host=$ac_cv_host
  2219. ac_save_IFS=$IFS; IFS='-'
  2220. set x $ac_cv_host
  2221. shift
  2222. host_cpu=$1
  2223. host_vendor=$2
  2224. shift; shift
  2225. # Remember, the first character of IFS is used to create $*,
  2226. # except with old shells:
  2227. host_os=$*
  2228. IFS=$ac_save_IFS
  2229. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2230. am__api_version='1.15'
  2231. # Find a good install program. We prefer a C program (faster),
  2232. # so one script is as good as another. But avoid the broken or
  2233. # incompatible versions:
  2234. # SysV /etc/install, /usr/sbin/install
  2235. # SunOS /usr/etc/install
  2236. # IRIX /sbin/install
  2237. # AIX /bin/install
  2238. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2239. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2240. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2241. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2242. # OS/2's system install, which has a completely different semantic
  2243. # ./install, which can be erroneously created by make from ./install.sh.
  2244. # Reject install programs that cannot install multiple files.
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2246. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2247. if test -z "$INSTALL"; then
  2248. if ${ac_cv_path_install+:} false; then :
  2249. $as_echo_n "(cached) " >&6
  2250. else
  2251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2252. for as_dir in $PATH
  2253. do
  2254. IFS=$as_save_IFS
  2255. test -z "$as_dir" && as_dir=.
  2256. # Account for people who put trailing slashes in PATH elements.
  2257. case $as_dir/ in @%:@((
  2258. ./ | .// | /[cC]/* | \
  2259. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2260. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2261. /usr/ucb/* ) ;;
  2262. *)
  2263. # OSF1 and SCO ODT 3.0 have their own names for install.
  2264. # Don't use installbsd from OSF since it installs stuff as root
  2265. # by default.
  2266. for ac_prog in ginstall scoinst install; do
  2267. for ac_exec_ext in '' $ac_executable_extensions; do
  2268. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2269. if test $ac_prog = install &&
  2270. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2271. # AIX install. It has an incompatible calling convention.
  2272. :
  2273. elif test $ac_prog = install &&
  2274. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2275. # program-specific install script used by HP pwplus--don't use.
  2276. :
  2277. else
  2278. rm -rf conftest.one conftest.two conftest.dir
  2279. echo one > conftest.one
  2280. echo two > conftest.two
  2281. mkdir conftest.dir
  2282. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2283. test -s conftest.one && test -s conftest.two &&
  2284. test -s conftest.dir/conftest.one &&
  2285. test -s conftest.dir/conftest.two
  2286. then
  2287. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2288. break 3
  2289. fi
  2290. fi
  2291. fi
  2292. done
  2293. done
  2294. ;;
  2295. esac
  2296. done
  2297. IFS=$as_save_IFS
  2298. rm -rf conftest.one conftest.two conftest.dir
  2299. fi
  2300. if test "${ac_cv_path_install+set}" = set; then
  2301. INSTALL=$ac_cv_path_install
  2302. else
  2303. # As a last resort, use the slow shell script. Don't cache a
  2304. # value for INSTALL within a source directory, because that will
  2305. # break other packages using the cache if that directory is
  2306. # removed, or if the value is a relative name.
  2307. INSTALL=$ac_install_sh
  2308. fi
  2309. fi
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2311. $as_echo "$INSTALL" >&6; }
  2312. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2313. # It thinks the first close brace ends the variable substitution.
  2314. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2315. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2316. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2318. $as_echo_n "checking whether build environment is sane... " >&6; }
  2319. # Reject unsafe characters in $srcdir or the absolute working directory
  2320. # name. Accept space and tab only in the latter.
  2321. am_lf='
  2322. '
  2323. case `pwd` in
  2324. *[\\\"\#\$\&\'\`$am_lf]*)
  2325. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2326. esac
  2327. case $srcdir in
  2328. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2329. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2330. esac
  2331. # Do 'set' in a subshell so we don't clobber the current shell's
  2332. # arguments. Must try -L first in case configure is actually a
  2333. # symlink; some systems play weird games with the mod time of symlinks
  2334. # (eg FreeBSD returns the mod time of the symlink's containing
  2335. # directory).
  2336. if (
  2337. am_has_slept=no
  2338. for am_try in 1 2; do
  2339. echo "timestamp, slept: $am_has_slept" > conftest.file
  2340. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2341. if test "$*" = "X"; then
  2342. # -L didn't work.
  2343. set X `ls -t "$srcdir/configure" conftest.file`
  2344. fi
  2345. if test "$*" != "X $srcdir/configure conftest.file" \
  2346. && test "$*" != "X conftest.file $srcdir/configure"; then
  2347. # If neither matched, then we have a broken ls. This can happen
  2348. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2349. # broken ls alias from the environment. This has actually
  2350. # happened. Such a system could not be considered "sane".
  2351. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2352. alias in your environment" "$LINENO" 5
  2353. fi
  2354. if test "$2" = conftest.file || test $am_try -eq 2; then
  2355. break
  2356. fi
  2357. # Just in case.
  2358. sleep 1
  2359. am_has_slept=yes
  2360. done
  2361. test "$2" = conftest.file
  2362. )
  2363. then
  2364. # Ok.
  2365. :
  2366. else
  2367. as_fn_error $? "newly created file is older than distributed files!
  2368. Check your system clock" "$LINENO" 5
  2369. fi
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2371. $as_echo "yes" >&6; }
  2372. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2373. # generated files are strictly newer.
  2374. am_sleep_pid=
  2375. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2376. ( sleep 1 ) &
  2377. am_sleep_pid=$!
  2378. fi
  2379. rm -f conftest.file
  2380. test "$program_prefix" != NONE &&
  2381. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2382. # Use a double $ so make ignores it.
  2383. test "$program_suffix" != NONE &&
  2384. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2385. # Double any \ or $.
  2386. # By default was `s,x,x', remove it if useless.
  2387. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2388. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2389. # Expand $ac_aux_dir to an absolute path.
  2390. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2391. if test x"${MISSING+set}" != xset; then
  2392. case $am_aux_dir in
  2393. *\ * | *\ *)
  2394. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2395. *)
  2396. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2397. esac
  2398. fi
  2399. # Use eval to expand $SHELL
  2400. if eval "$MISSING --is-lightweight"; then
  2401. am_missing_run="$MISSING "
  2402. else
  2403. am_missing_run=
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2405. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2406. fi
  2407. if test x"${install_sh+set}" != xset; then
  2408. case $am_aux_dir in
  2409. *\ * | *\ *)
  2410. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2411. *)
  2412. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2413. esac
  2414. fi
  2415. # Installed binaries are usually stripped using 'strip' when the user
  2416. # run "make install-strip". However 'strip' might not be the right
  2417. # tool to use in cross-compilation environments, therefore Automake
  2418. # will honor the 'STRIP' environment variable to overrule this program.
  2419. if test "$cross_compiling" != no; then
  2420. if test -n "$ac_tool_prefix"; then
  2421. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2422. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2424. $as_echo_n "checking for $ac_word... " >&6; }
  2425. if ${ac_cv_prog_STRIP+:} false; then :
  2426. $as_echo_n "(cached) " >&6
  2427. else
  2428. if test -n "$STRIP"; then
  2429. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2430. else
  2431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2432. for as_dir in $PATH
  2433. do
  2434. IFS=$as_save_IFS
  2435. test -z "$as_dir" && as_dir=.
  2436. for ac_exec_ext in '' $ac_executable_extensions; do
  2437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2438. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2440. break 2
  2441. fi
  2442. done
  2443. done
  2444. IFS=$as_save_IFS
  2445. fi
  2446. fi
  2447. STRIP=$ac_cv_prog_STRIP
  2448. if test -n "$STRIP"; then
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2450. $as_echo "$STRIP" >&6; }
  2451. else
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2453. $as_echo "no" >&6; }
  2454. fi
  2455. fi
  2456. if test -z "$ac_cv_prog_STRIP"; then
  2457. ac_ct_STRIP=$STRIP
  2458. # Extract the first word of "strip", so it can be a program name with args.
  2459. set dummy strip; ac_word=$2
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2461. $as_echo_n "checking for $ac_word... " >&6; }
  2462. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2463. $as_echo_n "(cached) " >&6
  2464. else
  2465. if test -n "$ac_ct_STRIP"; then
  2466. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2467. else
  2468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2469. for as_dir in $PATH
  2470. do
  2471. IFS=$as_save_IFS
  2472. test -z "$as_dir" && as_dir=.
  2473. for ac_exec_ext in '' $ac_executable_extensions; do
  2474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2475. ac_cv_prog_ac_ct_STRIP="strip"
  2476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2477. break 2
  2478. fi
  2479. done
  2480. done
  2481. IFS=$as_save_IFS
  2482. fi
  2483. fi
  2484. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2485. if test -n "$ac_ct_STRIP"; then
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2487. $as_echo "$ac_ct_STRIP" >&6; }
  2488. else
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2490. $as_echo "no" >&6; }
  2491. fi
  2492. if test "x$ac_ct_STRIP" = x; then
  2493. STRIP=":"
  2494. else
  2495. case $cross_compiling:$ac_tool_warned in
  2496. yes:)
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2498. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2499. ac_tool_warned=yes ;;
  2500. esac
  2501. STRIP=$ac_ct_STRIP
  2502. fi
  2503. else
  2504. STRIP="$ac_cv_prog_STRIP"
  2505. fi
  2506. fi
  2507. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2509. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2510. if test -z "$MKDIR_P"; then
  2511. if ${ac_cv_path_mkdir+:} false; then :
  2512. $as_echo_n "(cached) " >&6
  2513. else
  2514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2515. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2516. do
  2517. IFS=$as_save_IFS
  2518. test -z "$as_dir" && as_dir=.
  2519. for ac_prog in mkdir gmkdir; do
  2520. for ac_exec_ext in '' $ac_executable_extensions; do
  2521. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2522. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2523. 'mkdir (GNU coreutils) '* | \
  2524. 'mkdir (coreutils) '* | \
  2525. 'mkdir (fileutils) '4.1*)
  2526. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2527. break 3;;
  2528. esac
  2529. done
  2530. done
  2531. done
  2532. IFS=$as_save_IFS
  2533. fi
  2534. test -d ./--version && rmdir ./--version
  2535. if test "${ac_cv_path_mkdir+set}" = set; then
  2536. MKDIR_P="$ac_cv_path_mkdir -p"
  2537. else
  2538. # As a last resort, use the slow shell script. Don't cache a
  2539. # value for MKDIR_P within a source directory, because that will
  2540. # break other packages using the cache if that directory is
  2541. # removed, or if the value is a relative name.
  2542. MKDIR_P="$ac_install_sh -d"
  2543. fi
  2544. fi
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2546. $as_echo "$MKDIR_P" >&6; }
  2547. for ac_prog in gawk mawk nawk awk
  2548. do
  2549. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2550. set dummy $ac_prog; ac_word=$2
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2552. $as_echo_n "checking for $ac_word... " >&6; }
  2553. if ${ac_cv_prog_AWK+:} false; then :
  2554. $as_echo_n "(cached) " >&6
  2555. else
  2556. if test -n "$AWK"; then
  2557. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2558. else
  2559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2560. for as_dir in $PATH
  2561. do
  2562. IFS=$as_save_IFS
  2563. test -z "$as_dir" && as_dir=.
  2564. for ac_exec_ext in '' $ac_executable_extensions; do
  2565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2566. ac_cv_prog_AWK="$ac_prog"
  2567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2568. break 2
  2569. fi
  2570. done
  2571. done
  2572. IFS=$as_save_IFS
  2573. fi
  2574. fi
  2575. AWK=$ac_cv_prog_AWK
  2576. if test -n "$AWK"; then
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2578. $as_echo "$AWK" >&6; }
  2579. else
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2581. $as_echo "no" >&6; }
  2582. fi
  2583. test -n "$AWK" && break
  2584. done
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2586. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2587. set x ${MAKE-make}
  2588. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2589. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2590. $as_echo_n "(cached) " >&6
  2591. else
  2592. cat >conftest.make <<\_ACEOF
  2593. SHELL = /bin/sh
  2594. all:
  2595. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2596. _ACEOF
  2597. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2598. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2599. *@@@%%%=?*=@@@%%%*)
  2600. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2601. *)
  2602. eval ac_cv_prog_make_${ac_make}_set=no;;
  2603. esac
  2604. rm -f conftest.make
  2605. fi
  2606. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2608. $as_echo "yes" >&6; }
  2609. SET_MAKE=
  2610. else
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2612. $as_echo "no" >&6; }
  2613. SET_MAKE="MAKE=${MAKE-make}"
  2614. fi
  2615. rm -rf .tst 2>/dev/null
  2616. mkdir .tst 2>/dev/null
  2617. if test -d .tst; then
  2618. am__leading_dot=.
  2619. else
  2620. am__leading_dot=_
  2621. fi
  2622. rmdir .tst 2>/dev/null
  2623. @%:@ Check whether --enable-silent-rules was given.
  2624. if test "${enable_silent_rules+set}" = set; then :
  2625. enableval=$enable_silent_rules;
  2626. fi
  2627. case $enable_silent_rules in @%:@ (((
  2628. yes) AM_DEFAULT_VERBOSITY=0;;
  2629. no) AM_DEFAULT_VERBOSITY=1;;
  2630. *) AM_DEFAULT_VERBOSITY=1;;
  2631. esac
  2632. am_make=${MAKE-make}
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2634. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2635. if ${am_cv_make_support_nested_variables+:} false; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. if $as_echo 'TRUE=$(BAR$(V))
  2639. BAR0=false
  2640. BAR1=true
  2641. V=1
  2642. am__doit:
  2643. @$(TRUE)
  2644. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2645. am_cv_make_support_nested_variables=yes
  2646. else
  2647. am_cv_make_support_nested_variables=no
  2648. fi
  2649. fi
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2651. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2652. if test $am_cv_make_support_nested_variables = yes; then
  2653. AM_V='$(V)'
  2654. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2655. else
  2656. AM_V=$AM_DEFAULT_VERBOSITY
  2657. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2658. fi
  2659. AM_BACKSLASH='\'
  2660. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2661. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2662. # is not polluted with repeated "-I."
  2663. am__isrc=' -I$(srcdir)'
  2664. # test to see if srcdir already configured
  2665. if test -f $srcdir/config.status; then
  2666. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2667. fi
  2668. fi
  2669. # test whether we have cygpath
  2670. if test -z "$CYGPATH_W"; then
  2671. if (cygpath --version) >/dev/null 2>/dev/null; then
  2672. CYGPATH_W='cygpath -w'
  2673. else
  2674. CYGPATH_W=echo
  2675. fi
  2676. fi
  2677. # Define the identity of the package.
  2678. PACKAGE='libsodium'
  2679. VERSION='1.0.15'
  2680. cat >>confdefs.h <<_ACEOF
  2681. @%:@define PACKAGE "$PACKAGE"
  2682. _ACEOF
  2683. cat >>confdefs.h <<_ACEOF
  2684. @%:@define VERSION "$VERSION"
  2685. _ACEOF
  2686. # Some tools Automake needs.
  2687. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2688. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2689. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2690. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2691. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2692. # For better backward compatibility. To be removed once Automake 1.9.x
  2693. # dies out for good. For more background, see:
  2694. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2695. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2696. mkdir_p='$(MKDIR_P)'
  2697. # We need awk for the "check" target (and possibly the TAP driver). The
  2698. # system "awk" is bad on some platforms.
  2699. # Always define AMTAR for backward compatibility. Yes, it's still used
  2700. # in the wild :-( We should find a proper way to deprecate it ...
  2701. AMTAR='$${TAR-tar}'
  2702. # We'll loop over all known methods to create a tar archive until one works.
  2703. _am_tools='gnutar plaintar pax cpio none'
  2704. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  2705. # There is notably a 21 bits limit for the UID and the GID. In fact,
  2706. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  2707. # and bug#13588).
  2708. am_max_uid=2097151 # 2^21 - 1
  2709. am_max_gid=$am_max_uid
  2710. # The $UID and $GID variables are not portable, so we need to resort
  2711. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  2712. # below are definitely unexpected, so allow the users to see them
  2713. # (that is, avoid stderr redirection).
  2714. am_uid=`id -u || echo unknown`
  2715. am_gid=`id -g || echo unknown`
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  2717. $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  2718. if test $am_uid -le $am_max_uid; then
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2720. $as_echo "yes" >&6; }
  2721. else
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2723. $as_echo "no" >&6; }
  2724. _am_tools=none
  2725. fi
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  2727. $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  2728. if test $am_gid -le $am_max_gid; then
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2730. $as_echo "yes" >&6; }
  2731. else
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2733. $as_echo "no" >&6; }
  2734. _am_tools=none
  2735. fi
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  2737. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  2738. # Go ahead even if we have the value already cached. We do so because we
  2739. # need to set the values for the 'am__tar' and 'am__untar' variables.
  2740. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  2741. for _am_tool in $_am_tools; do
  2742. case $_am_tool in
  2743. gnutar)
  2744. for _am_tar in tar gnutar gtar; do
  2745. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  2746. ($_am_tar --version) >&5 2>&5
  2747. ac_status=$?
  2748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2749. (exit $ac_status); } && break
  2750. done
  2751. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  2752. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  2753. am__untar="$_am_tar -xf -"
  2754. ;;
  2755. plaintar)
  2756. # Must skip GNU tar: if it does not support --format= it doesn't create
  2757. # ustar tarball either.
  2758. (tar --version) >/dev/null 2>&1 && continue
  2759. am__tar='tar chf - "$$tardir"'
  2760. am__tar_='tar chf - "$tardir"'
  2761. am__untar='tar xf -'
  2762. ;;
  2763. pax)
  2764. am__tar='pax -L -x ustar -w "$$tardir"'
  2765. am__tar_='pax -L -x ustar -w "$tardir"'
  2766. am__untar='pax -r'
  2767. ;;
  2768. cpio)
  2769. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  2770. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  2771. am__untar='cpio -i -H ustar -d'
  2772. ;;
  2773. none)
  2774. am__tar=false
  2775. am__tar_=false
  2776. am__untar=false
  2777. ;;
  2778. esac
  2779. # If the value was cached, stop now. We just wanted to have am__tar
  2780. # and am__untar set.
  2781. test -n "${am_cv_prog_tar_ustar}" && break
  2782. # tar/untar a dummy directory, and stop if the command works.
  2783. rm -rf conftest.dir
  2784. mkdir conftest.dir
  2785. echo GrepMe > conftest.dir/file
  2786. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  2787. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  2788. ac_status=$?
  2789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2790. (exit $ac_status); }
  2791. rm -rf conftest.dir
  2792. if test -s conftest.tar; then
  2793. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  2794. ($am__untar <conftest.tar) >&5 2>&5
  2795. ac_status=$?
  2796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2797. (exit $ac_status); }
  2798. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  2799. (cat conftest.dir/file) >&5 2>&5
  2800. ac_status=$?
  2801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2802. (exit $ac_status); }
  2803. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  2804. fi
  2805. done
  2806. rm -rf conftest.dir
  2807. if ${am_cv_prog_tar_ustar+:} false; then :
  2808. $as_echo_n "(cached) " >&6
  2809. else
  2810. am_cv_prog_tar_ustar=$_am_tool
  2811. fi
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  2813. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  2814. # POSIX will say in a future version that running "rm -f" with no argument
  2815. # is OK; and we want to be able to make that assumption in our Makefile
  2816. # recipes. So use an aggressive probe to check that the usage we want is
  2817. # actually supported "in the wild" to an acceptable degree.
  2818. # See automake bug#10828.
  2819. # To make any issue more visible, cause the running configure to be aborted
  2820. # by default if the 'rm' program in use doesn't match our expectations; the
  2821. # user can still override this though.
  2822. if rm -f && rm -fr && rm -rf; then : OK; else
  2823. cat >&2 <<'END'
  2824. Oops!
  2825. Your 'rm' program seems unable to run without file operands specified
  2826. on the command line, even when the '-f' option is present. This is contrary
  2827. to the behaviour of most rm programs out there, and not conforming with
  2828. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2829. Please tell bug-automake@gnu.org about your system, including the value
  2830. of your $PATH and any error possibly output before this message. This
  2831. can help us improve future automake versions.
  2832. END
  2833. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2834. echo 'Configuration will proceed anyway, since you have set the' >&2
  2835. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2836. echo >&2
  2837. else
  2838. cat >&2 <<'END'
  2839. Aborting the configuration process, to ensure you take notice of the issue.
  2840. You can download and install GNU coreutils to get an 'rm' implementation
  2841. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2842. If you want to complete the configuration process using your problematic
  2843. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2844. to "yes", and re-run configure.
  2845. END
  2846. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2847. fi
  2848. fi
  2849. @%:@ Check whether --enable-silent-rules was given.
  2850. if test "${enable_silent_rules+set}" = set; then :
  2851. enableval=$enable_silent_rules;
  2852. fi
  2853. case $enable_silent_rules in @%:@ (((
  2854. yes) AM_DEFAULT_VERBOSITY=0;;
  2855. no) AM_DEFAULT_VERBOSITY=1;;
  2856. *) AM_DEFAULT_VERBOSITY=0;;
  2857. esac
  2858. am_make=${MAKE-make}
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2860. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2861. if ${am_cv_make_support_nested_variables+:} false; then :
  2862. $as_echo_n "(cached) " >&6
  2863. else
  2864. if $as_echo 'TRUE=$(BAR$(V))
  2865. BAR0=false
  2866. BAR1=true
  2867. V=1
  2868. am__doit:
  2869. @$(TRUE)
  2870. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2871. am_cv_make_support_nested_variables=yes
  2872. else
  2873. am_cv_make_support_nested_variables=no
  2874. fi
  2875. fi
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2877. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2878. if test $am_cv_make_support_nested_variables = yes; then
  2879. AM_V='$(V)'
  2880. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2881. else
  2882. AM_V=$AM_DEFAULT_VERBOSITY
  2883. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2884. fi
  2885. AM_BACKSLASH='\'
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2887. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2888. @%:@ Check whether --enable-maintainer-mode was given.
  2889. if test "${enable_maintainer_mode+set}" = set; then :
  2890. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2891. else
  2892. USE_MAINTAINER_MODE=no
  2893. fi
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2895. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2896. if test $USE_MAINTAINER_MODE = yes; then
  2897. MAINTAINER_MODE_TRUE=
  2898. MAINTAINER_MODE_FALSE='#'
  2899. else
  2900. MAINTAINER_MODE_TRUE='#'
  2901. MAINTAINER_MODE_FALSE=
  2902. fi
  2903. MAINT=$MAINTAINER_MODE_TRUE
  2904. @%:@ Check whether --enable-dependency-tracking was given.
  2905. if test "${enable_dependency_tracking+set}" = set; then :
  2906. enableval=$enable_dependency_tracking;
  2907. fi
  2908. if test "x$enable_dependency_tracking" != xno; then
  2909. am_depcomp="$ac_aux_dir/depcomp"
  2910. AMDEPBACKSLASH='\'
  2911. am__nodep='_no'
  2912. fi
  2913. if test "x$enable_dependency_tracking" != xno; then
  2914. AMDEP_TRUE=
  2915. AMDEP_FALSE='#'
  2916. else
  2917. AMDEP_TRUE='#'
  2918. AMDEP_FALSE=
  2919. fi
  2920. ISODATE=`date +%Y-%m-%d`
  2921. SODIUM_LIBRARY_VERSION_MAJOR=10
  2922. SODIUM_LIBRARY_VERSION_MINOR=0
  2923. DLL_VERSION=8
  2924. SODIUM_LIBRARY_VERSION=23:0:0
  2925. # | | |
  2926. # +------+ | +---+
  2927. # | | |
  2928. # current:revision:age
  2929. # | | |
  2930. # | | +- increment if interfaces have been added
  2931. # | | set to zero if interfaces have been removed
  2932. # | | or changed
  2933. # | +- increment if source code has changed
  2934. # | set to zero if current is incremented
  2935. # +- increment if interfaces have been added, removed or changed
  2936. LX_CFLAGS=${CFLAGS-NONE}
  2937. if pwd | fgrep ' ' > /dev/null 2>&1; then :
  2938. as_fn_error $? "The build directory contains whitespaces - This can cause tests/installation to fail due to limitations of some libtool versions" "$LINENO" 5
  2939. fi
  2940. @%:@ Check whether --enable-ssp was given.
  2941. if test "${enable_ssp+set}" = set; then :
  2942. enableval=$enable_ssp;
  2943. if test "x$enableval" = "xno"; then :
  2944. enable_ssp="no"
  2945. else
  2946. enable_ssp="yes"
  2947. fi
  2948. else
  2949. enable_ssp="yes"
  2950. fi
  2951. @%:@ Check whether --enable-asm was given.
  2952. if test "${enable_asm+set}" = set; then :
  2953. enableval=$enable_asm;
  2954. if test "x$enableval" = "xno"; then :
  2955. enable_asm="no"
  2956. else
  2957. enable_asm="yes"
  2958. fi
  2959. else
  2960. enable_asm="yes"
  2961. fi
  2962. DEPDIR="${am__leading_dot}deps"
  2963. ac_config_commands="$ac_config_commands depfiles"
  2964. am_make=${MAKE-make}
  2965. cat > confinc << 'END'
  2966. am__doit:
  2967. @echo this is the am__doit target
  2968. .PHONY: am__doit
  2969. END
  2970. # If we don't find an include directive, just comment out the code.
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2972. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2973. am__include="#"
  2974. am__quote=
  2975. _am_result=none
  2976. # First try GNU make style include.
  2977. echo "include confinc" > confmf
  2978. # Ignore all kinds of additional output from 'make'.
  2979. case `$am_make -s -f confmf 2> /dev/null` in #(
  2980. *the\ am__doit\ target*)
  2981. am__include=include
  2982. am__quote=
  2983. _am_result=GNU
  2984. ;;
  2985. esac
  2986. # Now try BSD make style include.
  2987. if test "$am__include" = "#"; then
  2988. echo '.include "confinc"' > confmf
  2989. case `$am_make -s -f confmf 2> /dev/null` in #(
  2990. *the\ am__doit\ target*)
  2991. am__include=.include
  2992. am__quote="\""
  2993. _am_result=BSD
  2994. ;;
  2995. esac
  2996. fi
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2998. $as_echo "$_am_result" >&6; }
  2999. rm -f confinc confmf
  3000. ac_ext=c
  3001. ac_cpp='$CPP $CPPFLAGS'
  3002. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3003. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3004. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3005. if test -n "$ac_tool_prefix"; then
  3006. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3007. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3009. $as_echo_n "checking for $ac_word... " >&6; }
  3010. if ${ac_cv_prog_CC+:} false; then :
  3011. $as_echo_n "(cached) " >&6
  3012. else
  3013. if test -n "$CC"; then
  3014. ac_cv_prog_CC="$CC" # Let the user override the test.
  3015. else
  3016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3017. for as_dir in $PATH
  3018. do
  3019. IFS=$as_save_IFS
  3020. test -z "$as_dir" && as_dir=.
  3021. for ac_exec_ext in '' $ac_executable_extensions; do
  3022. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3023. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3024. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3025. break 2
  3026. fi
  3027. done
  3028. done
  3029. IFS=$as_save_IFS
  3030. fi
  3031. fi
  3032. CC=$ac_cv_prog_CC
  3033. if test -n "$CC"; then
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3035. $as_echo "$CC" >&6; }
  3036. else
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3038. $as_echo "no" >&6; }
  3039. fi
  3040. fi
  3041. if test -z "$ac_cv_prog_CC"; then
  3042. ac_ct_CC=$CC
  3043. # Extract the first word of "gcc", so it can be a program name with args.
  3044. set dummy gcc; ac_word=$2
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3046. $as_echo_n "checking for $ac_word... " >&6; }
  3047. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3048. $as_echo_n "(cached) " >&6
  3049. else
  3050. if test -n "$ac_ct_CC"; then
  3051. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3052. else
  3053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3054. for as_dir in $PATH
  3055. do
  3056. IFS=$as_save_IFS
  3057. test -z "$as_dir" && as_dir=.
  3058. for ac_exec_ext in '' $ac_executable_extensions; do
  3059. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3060. ac_cv_prog_ac_ct_CC="gcc"
  3061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3062. break 2
  3063. fi
  3064. done
  3065. done
  3066. IFS=$as_save_IFS
  3067. fi
  3068. fi
  3069. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3070. if test -n "$ac_ct_CC"; then
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3072. $as_echo "$ac_ct_CC" >&6; }
  3073. else
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3075. $as_echo "no" >&6; }
  3076. fi
  3077. if test "x$ac_ct_CC" = x; then
  3078. CC=""
  3079. else
  3080. case $cross_compiling:$ac_tool_warned in
  3081. yes:)
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3083. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3084. ac_tool_warned=yes ;;
  3085. esac
  3086. CC=$ac_ct_CC
  3087. fi
  3088. else
  3089. CC="$ac_cv_prog_CC"
  3090. fi
  3091. if test -z "$CC"; then
  3092. if test -n "$ac_tool_prefix"; then
  3093. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3094. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3096. $as_echo_n "checking for $ac_word... " >&6; }
  3097. if ${ac_cv_prog_CC+:} false; then :
  3098. $as_echo_n "(cached) " >&6
  3099. else
  3100. if test -n "$CC"; then
  3101. ac_cv_prog_CC="$CC" # Let the user override the test.
  3102. else
  3103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3104. for as_dir in $PATH
  3105. do
  3106. IFS=$as_save_IFS
  3107. test -z "$as_dir" && as_dir=.
  3108. for ac_exec_ext in '' $ac_executable_extensions; do
  3109. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3110. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3111. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3112. break 2
  3113. fi
  3114. done
  3115. done
  3116. IFS=$as_save_IFS
  3117. fi
  3118. fi
  3119. CC=$ac_cv_prog_CC
  3120. if test -n "$CC"; then
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3122. $as_echo "$CC" >&6; }
  3123. else
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3125. $as_echo "no" >&6; }
  3126. fi
  3127. fi
  3128. fi
  3129. if test -z "$CC"; then
  3130. # Extract the first word of "cc", so it can be a program name with args.
  3131. set dummy cc; ac_word=$2
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3133. $as_echo_n "checking for $ac_word... " >&6; }
  3134. if ${ac_cv_prog_CC+:} false; then :
  3135. $as_echo_n "(cached) " >&6
  3136. else
  3137. if test -n "$CC"; then
  3138. ac_cv_prog_CC="$CC" # Let the user override the test.
  3139. else
  3140. ac_prog_rejected=no
  3141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3142. for as_dir in $PATH
  3143. do
  3144. IFS=$as_save_IFS
  3145. test -z "$as_dir" && as_dir=.
  3146. for ac_exec_ext in '' $ac_executable_extensions; do
  3147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3148. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3149. ac_prog_rejected=yes
  3150. continue
  3151. fi
  3152. ac_cv_prog_CC="cc"
  3153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3154. break 2
  3155. fi
  3156. done
  3157. done
  3158. IFS=$as_save_IFS
  3159. if test $ac_prog_rejected = yes; then
  3160. # We found a bogon in the path, so make sure we never use it.
  3161. set dummy $ac_cv_prog_CC
  3162. shift
  3163. if test $@%:@ != 0; then
  3164. # We chose a different compiler from the bogus one.
  3165. # However, it has the same basename, so the bogon will be chosen
  3166. # first if we set CC to just the basename; use the full file name.
  3167. shift
  3168. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3169. fi
  3170. fi
  3171. fi
  3172. fi
  3173. CC=$ac_cv_prog_CC
  3174. if test -n "$CC"; then
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3176. $as_echo "$CC" >&6; }
  3177. else
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3179. $as_echo "no" >&6; }
  3180. fi
  3181. fi
  3182. if test -z "$CC"; then
  3183. if test -n "$ac_tool_prefix"; then
  3184. for ac_prog in cl.exe
  3185. do
  3186. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3187. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3189. $as_echo_n "checking for $ac_word... " >&6; }
  3190. if ${ac_cv_prog_CC+:} false; then :
  3191. $as_echo_n "(cached) " >&6
  3192. else
  3193. if test -n "$CC"; then
  3194. ac_cv_prog_CC="$CC" # Let the user override the test.
  3195. else
  3196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3197. for as_dir in $PATH
  3198. do
  3199. IFS=$as_save_IFS
  3200. test -z "$as_dir" && as_dir=.
  3201. for ac_exec_ext in '' $ac_executable_extensions; do
  3202. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3203. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3204. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3205. break 2
  3206. fi
  3207. done
  3208. done
  3209. IFS=$as_save_IFS
  3210. fi
  3211. fi
  3212. CC=$ac_cv_prog_CC
  3213. if test -n "$CC"; then
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3215. $as_echo "$CC" >&6; }
  3216. else
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3218. $as_echo "no" >&6; }
  3219. fi
  3220. test -n "$CC" && break
  3221. done
  3222. fi
  3223. if test -z "$CC"; then
  3224. ac_ct_CC=$CC
  3225. for ac_prog in cl.exe
  3226. do
  3227. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3228. set dummy $ac_prog; ac_word=$2
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3230. $as_echo_n "checking for $ac_word... " >&6; }
  3231. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3232. $as_echo_n "(cached) " >&6
  3233. else
  3234. if test -n "$ac_ct_CC"; then
  3235. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3236. else
  3237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3238. for as_dir in $PATH
  3239. do
  3240. IFS=$as_save_IFS
  3241. test -z "$as_dir" && as_dir=.
  3242. for ac_exec_ext in '' $ac_executable_extensions; do
  3243. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3244. ac_cv_prog_ac_ct_CC="$ac_prog"
  3245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3246. break 2
  3247. fi
  3248. done
  3249. done
  3250. IFS=$as_save_IFS
  3251. fi
  3252. fi
  3253. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3254. if test -n "$ac_ct_CC"; then
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3256. $as_echo "$ac_ct_CC" >&6; }
  3257. else
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3259. $as_echo "no" >&6; }
  3260. fi
  3261. test -n "$ac_ct_CC" && break
  3262. done
  3263. if test "x$ac_ct_CC" = x; then
  3264. CC=""
  3265. else
  3266. case $cross_compiling:$ac_tool_warned in
  3267. yes:)
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3269. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3270. ac_tool_warned=yes ;;
  3271. esac
  3272. CC=$ac_ct_CC
  3273. fi
  3274. fi
  3275. fi
  3276. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3277. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3278. as_fn_error $? "no acceptable C compiler found in \$PATH
  3279. See \`config.log' for more details" "$LINENO" 5; }
  3280. # Provide some information about the compiler.
  3281. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3282. set X $ac_compile
  3283. ac_compiler=$2
  3284. for ac_option in --version -v -V -qversion; do
  3285. { { ac_try="$ac_compiler $ac_option >&5"
  3286. case "(($ac_try" in
  3287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3288. *) ac_try_echo=$ac_try;;
  3289. esac
  3290. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3291. $as_echo "$ac_try_echo"; } >&5
  3292. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3293. ac_status=$?
  3294. if test -s conftest.err; then
  3295. sed '10a\
  3296. ... rest of stderr output deleted ...
  3297. 10q' conftest.err >conftest.er1
  3298. cat conftest.er1 >&5
  3299. fi
  3300. rm -f conftest.er1 conftest.err
  3301. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3302. test $ac_status = 0; }
  3303. done
  3304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3305. /* end confdefs.h. */
  3306. int
  3307. main ()
  3308. {
  3309. ;
  3310. return 0;
  3311. }
  3312. _ACEOF
  3313. ac_clean_files_save=$ac_clean_files
  3314. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3315. # Try to create an executable without -o first, disregard a.out.
  3316. # It will help us diagnose broken compilers, and finding out an intuition
  3317. # of exeext.
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3319. $as_echo_n "checking whether the C compiler works... " >&6; }
  3320. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3321. # The possible output files:
  3322. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3323. ac_rmfiles=
  3324. for ac_file in $ac_files
  3325. do
  3326. case $ac_file in
  3327. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3328. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3329. esac
  3330. done
  3331. rm -f $ac_rmfiles
  3332. if { { ac_try="$ac_link_default"
  3333. case "(($ac_try" in
  3334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3335. *) ac_try_echo=$ac_try;;
  3336. esac
  3337. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3338. $as_echo "$ac_try_echo"; } >&5
  3339. (eval "$ac_link_default") 2>&5
  3340. ac_status=$?
  3341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3342. test $ac_status = 0; }; then :
  3343. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3344. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3345. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3346. # so that the user can short-circuit this test for compilers unknown to
  3347. # Autoconf.
  3348. for ac_file in $ac_files ''
  3349. do
  3350. test -f "$ac_file" || continue
  3351. case $ac_file in
  3352. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3353. ;;
  3354. [ab].out )
  3355. # We found the default executable, but exeext='' is most
  3356. # certainly right.
  3357. break;;
  3358. *.* )
  3359. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3360. then :; else
  3361. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3362. fi
  3363. # We set ac_cv_exeext here because the later test for it is not
  3364. # safe: cross compilers may not add the suffix if given an `-o'
  3365. # argument, so we may need to know it at that point already.
  3366. # Even if this section looks crufty: it has the advantage of
  3367. # actually working.
  3368. break;;
  3369. * )
  3370. break;;
  3371. esac
  3372. done
  3373. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3374. else
  3375. ac_file=''
  3376. fi
  3377. if test -z "$ac_file"; then :
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3379. $as_echo "no" >&6; }
  3380. $as_echo "$as_me: failed program was:" >&5
  3381. sed 's/^/| /' conftest.$ac_ext >&5
  3382. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3383. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3384. as_fn_error 77 "C compiler cannot create executables
  3385. See \`config.log' for more details" "$LINENO" 5; }
  3386. else
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3388. $as_echo "yes" >&6; }
  3389. fi
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3391. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3393. $as_echo "$ac_file" >&6; }
  3394. ac_exeext=$ac_cv_exeext
  3395. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3396. ac_clean_files=$ac_clean_files_save
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3398. $as_echo_n "checking for suffix of executables... " >&6; }
  3399. if { { ac_try="$ac_link"
  3400. case "(($ac_try" in
  3401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3402. *) ac_try_echo=$ac_try;;
  3403. esac
  3404. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3405. $as_echo "$ac_try_echo"; } >&5
  3406. (eval "$ac_link") 2>&5
  3407. ac_status=$?
  3408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3409. test $ac_status = 0; }; then :
  3410. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3411. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3412. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3413. # `rm'.
  3414. for ac_file in conftest.exe conftest conftest.*; do
  3415. test -f "$ac_file" || continue
  3416. case $ac_file in
  3417. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3418. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3419. break;;
  3420. * ) break;;
  3421. esac
  3422. done
  3423. else
  3424. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3425. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3426. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3427. See \`config.log' for more details" "$LINENO" 5; }
  3428. fi
  3429. rm -f conftest conftest$ac_cv_exeext
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3431. $as_echo "$ac_cv_exeext" >&6; }
  3432. rm -f conftest.$ac_ext
  3433. EXEEXT=$ac_cv_exeext
  3434. ac_exeext=$EXEEXT
  3435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3436. /* end confdefs.h. */
  3437. @%:@include <stdio.h>
  3438. int
  3439. main ()
  3440. {
  3441. FILE *f = fopen ("conftest.out", "w");
  3442. return ferror (f) || fclose (f) != 0;
  3443. ;
  3444. return 0;
  3445. }
  3446. _ACEOF
  3447. ac_clean_files="$ac_clean_files conftest.out"
  3448. # Check that the compiler produces executables we can run. If not, either
  3449. # the compiler is broken, or we cross compile.
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3451. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3452. if test "$cross_compiling" != yes; then
  3453. { { ac_try="$ac_link"
  3454. case "(($ac_try" in
  3455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3456. *) ac_try_echo=$ac_try;;
  3457. esac
  3458. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3459. $as_echo "$ac_try_echo"; } >&5
  3460. (eval "$ac_link") 2>&5
  3461. ac_status=$?
  3462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3463. test $ac_status = 0; }
  3464. if { ac_try='./conftest$ac_cv_exeext'
  3465. { { case "(($ac_try" in
  3466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3467. *) ac_try_echo=$ac_try;;
  3468. esac
  3469. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3470. $as_echo "$ac_try_echo"; } >&5
  3471. (eval "$ac_try") 2>&5
  3472. ac_status=$?
  3473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3474. test $ac_status = 0; }; }; then
  3475. cross_compiling=no
  3476. else
  3477. if test "$cross_compiling" = maybe; then
  3478. cross_compiling=yes
  3479. else
  3480. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3481. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3482. as_fn_error $? "cannot run C compiled programs.
  3483. If you meant to cross compile, use \`--host'.
  3484. See \`config.log' for more details" "$LINENO" 5; }
  3485. fi
  3486. fi
  3487. fi
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3489. $as_echo "$cross_compiling" >&6; }
  3490. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3491. ac_clean_files=$ac_clean_files_save
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3493. $as_echo_n "checking for suffix of object files... " >&6; }
  3494. if ${ac_cv_objext+:} false; then :
  3495. $as_echo_n "(cached) " >&6
  3496. else
  3497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3498. /* end confdefs.h. */
  3499. int
  3500. main ()
  3501. {
  3502. ;
  3503. return 0;
  3504. }
  3505. _ACEOF
  3506. rm -f conftest.o conftest.obj
  3507. if { { ac_try="$ac_compile"
  3508. case "(($ac_try" in
  3509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3510. *) ac_try_echo=$ac_try;;
  3511. esac
  3512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3513. $as_echo "$ac_try_echo"; } >&5
  3514. (eval "$ac_compile") 2>&5
  3515. ac_status=$?
  3516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3517. test $ac_status = 0; }; then :
  3518. for ac_file in conftest.o conftest.obj conftest.*; do
  3519. test -f "$ac_file" || continue;
  3520. case $ac_file in
  3521. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3522. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3523. break;;
  3524. esac
  3525. done
  3526. else
  3527. $as_echo "$as_me: failed program was:" >&5
  3528. sed 's/^/| /' conftest.$ac_ext >&5
  3529. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3530. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3531. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3532. See \`config.log' for more details" "$LINENO" 5; }
  3533. fi
  3534. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3535. fi
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3537. $as_echo "$ac_cv_objext" >&6; }
  3538. OBJEXT=$ac_cv_objext
  3539. ac_objext=$OBJEXT
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3541. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3542. if ${ac_cv_c_compiler_gnu+:} false; then :
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3546. /* end confdefs.h. */
  3547. int
  3548. main ()
  3549. {
  3550. #ifndef __GNUC__
  3551. choke me
  3552. #endif
  3553. ;
  3554. return 0;
  3555. }
  3556. _ACEOF
  3557. if ac_fn_c_try_compile "$LINENO"; then :
  3558. ac_compiler_gnu=yes
  3559. else
  3560. ac_compiler_gnu=no
  3561. fi
  3562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3563. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3564. fi
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3566. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3567. if test $ac_compiler_gnu = yes; then
  3568. GCC=yes
  3569. else
  3570. GCC=
  3571. fi
  3572. ac_test_CFLAGS=${CFLAGS+set}
  3573. ac_save_CFLAGS=$CFLAGS
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3575. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3576. if ${ac_cv_prog_cc_g+:} false; then :
  3577. $as_echo_n "(cached) " >&6
  3578. else
  3579. ac_save_c_werror_flag=$ac_c_werror_flag
  3580. ac_c_werror_flag=yes
  3581. ac_cv_prog_cc_g=no
  3582. CFLAGS="-g"
  3583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3584. /* end confdefs.h. */
  3585. int
  3586. main ()
  3587. {
  3588. ;
  3589. return 0;
  3590. }
  3591. _ACEOF
  3592. if ac_fn_c_try_compile "$LINENO"; then :
  3593. ac_cv_prog_cc_g=yes
  3594. else
  3595. CFLAGS=""
  3596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3597. /* end confdefs.h. */
  3598. int
  3599. main ()
  3600. {
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. if ac_fn_c_try_compile "$LINENO"; then :
  3606. else
  3607. ac_c_werror_flag=$ac_save_c_werror_flag
  3608. CFLAGS="-g"
  3609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3610. /* end confdefs.h. */
  3611. int
  3612. main ()
  3613. {
  3614. ;
  3615. return 0;
  3616. }
  3617. _ACEOF
  3618. if ac_fn_c_try_compile "$LINENO"; then :
  3619. ac_cv_prog_cc_g=yes
  3620. fi
  3621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3622. fi
  3623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3624. fi
  3625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3626. ac_c_werror_flag=$ac_save_c_werror_flag
  3627. fi
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3629. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3630. if test "$ac_test_CFLAGS" = set; then
  3631. CFLAGS=$ac_save_CFLAGS
  3632. elif test $ac_cv_prog_cc_g = yes; then
  3633. if test "$GCC" = yes; then
  3634. CFLAGS="-g -O2"
  3635. else
  3636. CFLAGS="-g"
  3637. fi
  3638. else
  3639. if test "$GCC" = yes; then
  3640. CFLAGS="-O2"
  3641. else
  3642. CFLAGS=
  3643. fi
  3644. fi
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3646. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3647. if ${ac_cv_prog_cc_c89+:} false; then :
  3648. $as_echo_n "(cached) " >&6
  3649. else
  3650. ac_cv_prog_cc_c89=no
  3651. ac_save_CC=$CC
  3652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3653. /* end confdefs.h. */
  3654. #include <stdarg.h>
  3655. #include <stdio.h>
  3656. struct stat;
  3657. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3658. struct buf { int x; };
  3659. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3660. static char *e (p, i)
  3661. char **p;
  3662. int i;
  3663. {
  3664. return p[i];
  3665. }
  3666. static char *f (char * (*g) (char **, int), char **p, ...)
  3667. {
  3668. char *s;
  3669. va_list v;
  3670. va_start (v,p);
  3671. s = g (p, va_arg (v,int));
  3672. va_end (v);
  3673. return s;
  3674. }
  3675. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3676. function prototypes and stuff, but not '\xHH' hex character constants.
  3677. These don't provoke an error unfortunately, instead are silently treated
  3678. as 'x'. The following induces an error, until -std is added to get
  3679. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3680. array size at least. It's necessary to write '\x00'==0 to get something
  3681. that's true only with -std. */
  3682. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3683. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3684. inside strings and character constants. */
  3685. #define FOO(x) 'x'
  3686. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3687. int test (int i, double x);
  3688. struct s1 {int (*f) (int a);};
  3689. struct s2 {int (*f) (double a);};
  3690. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3691. int argc;
  3692. char **argv;
  3693. int
  3694. main ()
  3695. {
  3696. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3697. ;
  3698. return 0;
  3699. }
  3700. _ACEOF
  3701. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3702. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3703. do
  3704. CC="$ac_save_CC $ac_arg"
  3705. if ac_fn_c_try_compile "$LINENO"; then :
  3706. ac_cv_prog_cc_c89=$ac_arg
  3707. fi
  3708. rm -f core conftest.err conftest.$ac_objext
  3709. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3710. done
  3711. rm -f conftest.$ac_ext
  3712. CC=$ac_save_CC
  3713. fi
  3714. # AC_CACHE_VAL
  3715. case "x$ac_cv_prog_cc_c89" in
  3716. x)
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3718. $as_echo "none needed" >&6; } ;;
  3719. xno)
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3721. $as_echo "unsupported" >&6; } ;;
  3722. *)
  3723. CC="$CC $ac_cv_prog_cc_c89"
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3725. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3726. esac
  3727. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3728. fi
  3729. ac_ext=c
  3730. ac_cpp='$CPP $CPPFLAGS'
  3731. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3732. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3733. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3734. ac_ext=c
  3735. ac_cpp='$CPP $CPPFLAGS'
  3736. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3737. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3738. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3740. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3741. if ${am_cv_prog_cc_c_o+:} false; then :
  3742. $as_echo_n "(cached) " >&6
  3743. else
  3744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3745. /* end confdefs.h. */
  3746. int
  3747. main ()
  3748. {
  3749. ;
  3750. return 0;
  3751. }
  3752. _ACEOF
  3753. # Make sure it works both with $CC and with simple cc.
  3754. # Following AC_PROG_CC_C_O, we do the test twice because some
  3755. # compilers refuse to overwrite an existing .o file with -o,
  3756. # though they will create one.
  3757. am_cv_prog_cc_c_o=yes
  3758. for am_i in 1 2; do
  3759. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3760. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3761. ac_status=$?
  3762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3763. (exit $ac_status); } \
  3764. && test -f conftest2.$ac_objext; then
  3765. : OK
  3766. else
  3767. am_cv_prog_cc_c_o=no
  3768. break
  3769. fi
  3770. done
  3771. rm -f core conftest*
  3772. unset am_i
  3773. fi
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3775. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3776. if test "$am_cv_prog_cc_c_o" != yes; then
  3777. # Losing compiler, so override with the script.
  3778. # FIXME: It is wrong to rewrite CC.
  3779. # But if we don't then we get into trouble of one sort or another.
  3780. # A longer-term fix would be to have automake use am__CC in this case,
  3781. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3782. CC="$am_aux_dir/compile $CC"
  3783. fi
  3784. ac_ext=c
  3785. ac_cpp='$CPP $CPPFLAGS'
  3786. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3787. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3788. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3789. depcc="$CC" am_compiler_list=
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3791. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3792. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3796. # We make a subdir and do the tests there. Otherwise we can end up
  3797. # making bogus files that we don't know about and never remove. For
  3798. # instance it was reported that on HP-UX the gcc test will end up
  3799. # making a dummy file named 'D' -- because '-MD' means "put the output
  3800. # in D".
  3801. rm -rf conftest.dir
  3802. mkdir conftest.dir
  3803. # Copy depcomp to subdir because otherwise we won't find it if we're
  3804. # using a relative directory.
  3805. cp "$am_depcomp" conftest.dir
  3806. cd conftest.dir
  3807. # We will build objects and dependencies in a subdirectory because
  3808. # it helps to detect inapplicable dependency modes. For instance
  3809. # both Tru64's cc and ICC support -MD to output dependencies as a
  3810. # side effect of compilation, but ICC will put the dependencies in
  3811. # the current directory while Tru64 will put them in the object
  3812. # directory.
  3813. mkdir sub
  3814. am_cv_CC_dependencies_compiler_type=none
  3815. if test "$am_compiler_list" = ""; then
  3816. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3817. fi
  3818. am__universal=false
  3819. case " $depcc " in #(
  3820. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3821. esac
  3822. for depmode in $am_compiler_list; do
  3823. # Setup a source with many dependencies, because some compilers
  3824. # like to wrap large dependency lists on column 80 (with \), and
  3825. # we should not choose a depcomp mode which is confused by this.
  3826. #
  3827. # We need to recreate these files for each test, as the compiler may
  3828. # overwrite some of them when testing with obscure command lines.
  3829. # This happens at least with the AIX C compiler.
  3830. : > sub/conftest.c
  3831. for i in 1 2 3 4 5 6; do
  3832. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3833. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3834. # Solaris 10 /bin/sh.
  3835. echo '/* dummy */' > sub/conftst$i.h
  3836. done
  3837. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3838. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3839. # mode. It turns out that the SunPro C++ compiler does not properly
  3840. # handle '-M -o', and we need to detect this. Also, some Intel
  3841. # versions had trouble with output in subdirs.
  3842. am__obj=sub/conftest.${OBJEXT-o}
  3843. am__minus_obj="-o $am__obj"
  3844. case $depmode in
  3845. gcc)
  3846. # This depmode causes a compiler race in universal mode.
  3847. test "$am__universal" = false || continue
  3848. ;;
  3849. nosideeffect)
  3850. # After this tag, mechanisms are not by side-effect, so they'll
  3851. # only be used when explicitly requested.
  3852. if test "x$enable_dependency_tracking" = xyes; then
  3853. continue
  3854. else
  3855. break
  3856. fi
  3857. ;;
  3858. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3859. # This compiler won't grok '-c -o', but also, the minuso test has
  3860. # not run yet. These depmodes are late enough in the game, and
  3861. # so weak that their functioning should not be impacted.
  3862. am__obj=conftest.${OBJEXT-o}
  3863. am__minus_obj=
  3864. ;;
  3865. none) break ;;
  3866. esac
  3867. if depmode=$depmode \
  3868. source=sub/conftest.c object=$am__obj \
  3869. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3870. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3871. >/dev/null 2>conftest.err &&
  3872. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3873. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3874. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3875. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3876. # icc doesn't choke on unknown options, it will just issue warnings
  3877. # or remarks (even with -Werror). So we grep stderr for any message
  3878. # that says an option was ignored or not supported.
  3879. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3880. # icc: Command line warning: ignoring option '-M'; no argument required
  3881. # The diagnosis changed in icc 8.0:
  3882. # icc: Command line remark: option '-MP' not supported
  3883. if (grep 'ignoring option' conftest.err ||
  3884. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3885. am_cv_CC_dependencies_compiler_type=$depmode
  3886. break
  3887. fi
  3888. fi
  3889. done
  3890. cd ..
  3891. rm -rf conftest.dir
  3892. else
  3893. am_cv_CC_dependencies_compiler_type=none
  3894. fi
  3895. fi
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3897. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3898. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3899. if
  3900. test "x$enable_dependency_tracking" != xno \
  3901. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3902. am__fastdepCC_TRUE=
  3903. am__fastdepCC_FALSE='#'
  3904. else
  3905. am__fastdepCC_TRUE='#'
  3906. am__fastdepCC_FALSE=
  3907. fi
  3908. if test "x$EMSCRIPTEN" != "x"; then :
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -s ASSERTIONS=0" >&5
  3910. $as_echo_n "checking whether C compiler accepts -s ASSERTIONS=0... " >&6; }
  3911. if ${ax_cv_check_cflags___s_ASSERTIONS_0+:} false; then :
  3912. $as_echo_n "(cached) " >&6
  3913. else
  3914. ax_check_save_flags=$CFLAGS
  3915. CFLAGS="$CFLAGS -s ASSERTIONS=0"
  3916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3917. /* end confdefs.h. */
  3918. #include <time.h>
  3919. int
  3920. main ()
  3921. {
  3922. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  3923. ;
  3924. return 0;
  3925. }
  3926. _ACEOF
  3927. if ac_fn_c_try_link "$LINENO"; then :
  3928. ax_cv_check_cflags___s_ASSERTIONS_0=yes
  3929. else
  3930. ax_cv_check_cflags___s_ASSERTIONS_0=no
  3931. fi
  3932. rm -f core conftest.err conftest.$ac_objext \
  3933. conftest$ac_exeext conftest.$ac_ext
  3934. CFLAGS=$ax_check_save_flags
  3935. fi
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___s_ASSERTIONS_0" >&5
  3937. $as_echo "$ax_cv_check_cflags___s_ASSERTIONS_0" >&6; }
  3938. if test "x$ax_cv_check_cflags___s_ASSERTIONS_0" = xyes; then :
  3939. enable_asm="no"
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to JavaScript - asm implementations disabled" >&5
  3941. $as_echo "$as_me: WARNING: compiling to JavaScript - asm implementations disabled" >&2;}
  3942. else
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EMSCRIPTEN environment variable defined, but emcc doesn't appear to be used - Assuming compilation to native code" >&5
  3944. $as_echo "$as_me: WARNING: EMSCRIPTEN environment variable defined, but emcc doesn't appear to be used - Assuming compilation to native code" >&2;}
  3945. CFLAGS="$CFLAGS -U__EMSCRIPTEN__"
  3946. unset EMSCRIPTEN
  3947. fi
  3948. fi
  3949. if test "$host_os" = "nacl" -o "$host_os" = "pnacl"; then :
  3950. enable_asm="no"
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to Native Client - asm implementations disabled" >&5
  3952. $as_echo "$as_me: WARNING: compiling to Native Client - asm implementations disabled" >&2;}
  3953. fi
  3954. @%:@ Check whether --enable-pie was given.
  3955. if test "${enable_pie+set}" = set; then :
  3956. enableval=$enable_pie; enable_pie=$enableval
  3957. else
  3958. enable_pie="maybe"
  3959. fi
  3960. case $host_os in @%:@(
  3961. mingw*|cygwin*|msys) :
  3962. enable_pie="no" ;; @%:@(
  3963. *) :
  3964. ;;
  3965. esac
  3966. @%:@ Check whether --enable-blocking-random was given.
  3967. if test "${enable_blocking_random+set}" = set; then :
  3968. enableval=$enable_blocking_random;
  3969. if test "x$enableval" = "xyes"; then :
  3970. $as_echo "@%:@define USE_BLOCKING_RANDOM 1" >>confdefs.h
  3971. fi
  3972. fi
  3973. @%:@ Check whether --enable-minimal was given.
  3974. if test "${enable_minimal+set}" = set; then :
  3975. enableval=$enable_minimal;
  3976. if test "x$enableval" = "xyes"; then :
  3977. enable_minimal="yes"
  3978. SODIUM_LIBRARY_MINIMAL_DEF="#define SODIUM_LIBRARY_MINIMAL 1"
  3979. $as_echo "@%:@define MINIMAL 1" >>confdefs.h
  3980. else
  3981. enable_minimal="no"
  3982. fi
  3983. else
  3984. enable_minimal="no"
  3985. fi
  3986. if test x$enable_minimal = xyes; then
  3987. MINIMAL_TRUE=
  3988. MINIMAL_FALSE='#'
  3989. else
  3990. MINIMAL_TRUE='#'
  3991. MINIMAL_FALSE=
  3992. fi
  3993. @%:@ Check whether --with-pthreads was given.
  3994. if test "${with_pthreads+set}" = set; then :
  3995. withval=$with_pthreads;
  3996. else
  3997. withval="yes"
  3998. fi
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4000. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4001. if ${ac_cv_path_SED+:} false; then :
  4002. $as_echo_n "(cached) " >&6
  4003. else
  4004. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4005. for ac_i in 1 2 3 4 5 6 7; do
  4006. ac_script="$ac_script$as_nl$ac_script"
  4007. done
  4008. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4009. { ac_script=; unset ac_script;}
  4010. if test -z "$SED"; then
  4011. ac_path_SED_found=false
  4012. # Loop through the user's path and test for each of PROGNAME-LIST
  4013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4014. for as_dir in $PATH
  4015. do
  4016. IFS=$as_save_IFS
  4017. test -z "$as_dir" && as_dir=.
  4018. for ac_prog in sed gsed; do
  4019. for ac_exec_ext in '' $ac_executable_extensions; do
  4020. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4021. as_fn_executable_p "$ac_path_SED" || continue
  4022. # Check for GNU ac_path_SED and select it if it is found.
  4023. # Check for GNU $ac_path_SED
  4024. case `"$ac_path_SED" --version 2>&1` in
  4025. *GNU*)
  4026. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4027. *)
  4028. ac_count=0
  4029. $as_echo_n 0123456789 >"conftest.in"
  4030. while :
  4031. do
  4032. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4033. mv "conftest.tmp" "conftest.in"
  4034. cp "conftest.in" "conftest.nl"
  4035. $as_echo '' >> "conftest.nl"
  4036. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4037. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4038. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4039. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4040. # Best one so far, save it but keep looking for a better one
  4041. ac_cv_path_SED="$ac_path_SED"
  4042. ac_path_SED_max=$ac_count
  4043. fi
  4044. # 10*(2^10) chars as input seems more than enough
  4045. test $ac_count -gt 10 && break
  4046. done
  4047. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4048. esac
  4049. $ac_path_SED_found && break 3
  4050. done
  4051. done
  4052. done
  4053. IFS=$as_save_IFS
  4054. if test -z "$ac_cv_path_SED"; then
  4055. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4056. fi
  4057. else
  4058. ac_cv_path_SED=$SED
  4059. fi
  4060. fi
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4062. $as_echo "$ac_cv_path_SED" >&6; }
  4063. SED="$ac_cv_path_SED"
  4064. rm -f conftest.sed
  4065. ac_ext=c
  4066. ac_cpp='$CPP $CPPFLAGS'
  4067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4071. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4072. # On Suns, sometimes $CPP names a directory.
  4073. if test -n "$CPP" && test -d "$CPP"; then
  4074. CPP=
  4075. fi
  4076. if test -z "$CPP"; then
  4077. if ${ac_cv_prog_CPP+:} false; then :
  4078. $as_echo_n "(cached) " >&6
  4079. else
  4080. # Double quotes because CPP needs to be expanded
  4081. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4082. do
  4083. ac_preproc_ok=false
  4084. for ac_c_preproc_warn_flag in '' yes
  4085. do
  4086. # Use a header file that comes with gcc, so configuring glibc
  4087. # with a fresh cross-compiler works.
  4088. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4089. # <limits.h> exists even on freestanding compilers.
  4090. # On the NeXT, cc -E runs the code through the compiler's parser,
  4091. # not just through cpp. "Syntax error" is here to catch this case.
  4092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4093. /* end confdefs.h. */
  4094. @%:@ifdef __STDC__
  4095. @%:@ include <limits.h>
  4096. @%:@else
  4097. @%:@ include <assert.h>
  4098. @%:@endif
  4099. Syntax error
  4100. _ACEOF
  4101. if ac_fn_c_try_cpp "$LINENO"; then :
  4102. else
  4103. # Broken: fails on valid input.
  4104. continue
  4105. fi
  4106. rm -f conftest.err conftest.i conftest.$ac_ext
  4107. # OK, works on sane cases. Now check whether nonexistent headers
  4108. # can be detected and how.
  4109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4110. /* end confdefs.h. */
  4111. @%:@include <ac_nonexistent.h>
  4112. _ACEOF
  4113. if ac_fn_c_try_cpp "$LINENO"; then :
  4114. # Broken: success on invalid input.
  4115. continue
  4116. else
  4117. # Passes both tests.
  4118. ac_preproc_ok=:
  4119. break
  4120. fi
  4121. rm -f conftest.err conftest.i conftest.$ac_ext
  4122. done
  4123. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4124. rm -f conftest.i conftest.err conftest.$ac_ext
  4125. if $ac_preproc_ok; then :
  4126. break
  4127. fi
  4128. done
  4129. ac_cv_prog_CPP=$CPP
  4130. fi
  4131. CPP=$ac_cv_prog_CPP
  4132. else
  4133. ac_cv_prog_CPP=$CPP
  4134. fi
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4136. $as_echo "$CPP" >&6; }
  4137. ac_preproc_ok=false
  4138. for ac_c_preproc_warn_flag in '' yes
  4139. do
  4140. # Use a header file that comes with gcc, so configuring glibc
  4141. # with a fresh cross-compiler works.
  4142. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4143. # <limits.h> exists even on freestanding compilers.
  4144. # On the NeXT, cc -E runs the code through the compiler's parser,
  4145. # not just through cpp. "Syntax error" is here to catch this case.
  4146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4147. /* end confdefs.h. */
  4148. @%:@ifdef __STDC__
  4149. @%:@ include <limits.h>
  4150. @%:@else
  4151. @%:@ include <assert.h>
  4152. @%:@endif
  4153. Syntax error
  4154. _ACEOF
  4155. if ac_fn_c_try_cpp "$LINENO"; then :
  4156. else
  4157. # Broken: fails on valid input.
  4158. continue
  4159. fi
  4160. rm -f conftest.err conftest.i conftest.$ac_ext
  4161. # OK, works on sane cases. Now check whether nonexistent headers
  4162. # can be detected and how.
  4163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4164. /* end confdefs.h. */
  4165. @%:@include <ac_nonexistent.h>
  4166. _ACEOF
  4167. if ac_fn_c_try_cpp "$LINENO"; then :
  4168. # Broken: success on invalid input.
  4169. continue
  4170. else
  4171. # Passes both tests.
  4172. ac_preproc_ok=:
  4173. break
  4174. fi
  4175. rm -f conftest.err conftest.i conftest.$ac_ext
  4176. done
  4177. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4178. rm -f conftest.i conftest.err conftest.$ac_ext
  4179. if $ac_preproc_ok; then :
  4180. else
  4181. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4182. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4183. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4184. See \`config.log' for more details" "$LINENO" 5; }
  4185. fi
  4186. ac_ext=c
  4187. ac_cpp='$CPP $CPPFLAGS'
  4188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4192. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4193. if ${ac_cv_path_GREP+:} false; then :
  4194. $as_echo_n "(cached) " >&6
  4195. else
  4196. if test -z "$GREP"; then
  4197. ac_path_GREP_found=false
  4198. # Loop through the user's path and test for each of PROGNAME-LIST
  4199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4200. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4201. do
  4202. IFS=$as_save_IFS
  4203. test -z "$as_dir" && as_dir=.
  4204. for ac_prog in grep ggrep; do
  4205. for ac_exec_ext in '' $ac_executable_extensions; do
  4206. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4207. as_fn_executable_p "$ac_path_GREP" || continue
  4208. # Check for GNU ac_path_GREP and select it if it is found.
  4209. # Check for GNU $ac_path_GREP
  4210. case `"$ac_path_GREP" --version 2>&1` in
  4211. *GNU*)
  4212. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4213. *)
  4214. ac_count=0
  4215. $as_echo_n 0123456789 >"conftest.in"
  4216. while :
  4217. do
  4218. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4219. mv "conftest.tmp" "conftest.in"
  4220. cp "conftest.in" "conftest.nl"
  4221. $as_echo 'GREP' >> "conftest.nl"
  4222. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4223. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4224. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4225. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4226. # Best one so far, save it but keep looking for a better one
  4227. ac_cv_path_GREP="$ac_path_GREP"
  4228. ac_path_GREP_max=$ac_count
  4229. fi
  4230. # 10*(2^10) chars as input seems more than enough
  4231. test $ac_count -gt 10 && break
  4232. done
  4233. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4234. esac
  4235. $ac_path_GREP_found && break 3
  4236. done
  4237. done
  4238. done
  4239. IFS=$as_save_IFS
  4240. if test -z "$ac_cv_path_GREP"; then
  4241. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4242. fi
  4243. else
  4244. ac_cv_path_GREP=$GREP
  4245. fi
  4246. fi
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4248. $as_echo "$ac_cv_path_GREP" >&6; }
  4249. GREP="$ac_cv_path_GREP"
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4251. $as_echo_n "checking for egrep... " >&6; }
  4252. if ${ac_cv_path_EGREP+:} false; then :
  4253. $as_echo_n "(cached) " >&6
  4254. else
  4255. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4256. then ac_cv_path_EGREP="$GREP -E"
  4257. else
  4258. if test -z "$EGREP"; then
  4259. ac_path_EGREP_found=false
  4260. # Loop through the user's path and test for each of PROGNAME-LIST
  4261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4262. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4263. do
  4264. IFS=$as_save_IFS
  4265. test -z "$as_dir" && as_dir=.
  4266. for ac_prog in egrep; do
  4267. for ac_exec_ext in '' $ac_executable_extensions; do
  4268. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4269. as_fn_executable_p "$ac_path_EGREP" || continue
  4270. # Check for GNU ac_path_EGREP and select it if it is found.
  4271. # Check for GNU $ac_path_EGREP
  4272. case `"$ac_path_EGREP" --version 2>&1` in
  4273. *GNU*)
  4274. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4275. *)
  4276. ac_count=0
  4277. $as_echo_n 0123456789 >"conftest.in"
  4278. while :
  4279. do
  4280. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4281. mv "conftest.tmp" "conftest.in"
  4282. cp "conftest.in" "conftest.nl"
  4283. $as_echo 'EGREP' >> "conftest.nl"
  4284. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4285. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4286. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4287. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4288. # Best one so far, save it but keep looking for a better one
  4289. ac_cv_path_EGREP="$ac_path_EGREP"
  4290. ac_path_EGREP_max=$ac_count
  4291. fi
  4292. # 10*(2^10) chars as input seems more than enough
  4293. test $ac_count -gt 10 && break
  4294. done
  4295. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4296. esac
  4297. $ac_path_EGREP_found && break 3
  4298. done
  4299. done
  4300. done
  4301. IFS=$as_save_IFS
  4302. if test -z "$ac_cv_path_EGREP"; then
  4303. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4304. fi
  4305. else
  4306. ac_cv_path_EGREP=$EGREP
  4307. fi
  4308. fi
  4309. fi
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4311. $as_echo "$ac_cv_path_EGREP" >&6; }
  4312. EGREP="$ac_cv_path_EGREP"
  4313. if test "x$withval" = "xyes"; then :
  4314. ac_ext=c
  4315. ac_cpp='$CPP $CPPFLAGS'
  4316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4319. ax_pthread_ok=no
  4320. # We used to check for pthread.h first, but this fails if pthread.h
  4321. # requires special compiler flags (e.g. on Tru64 or Sequent).
  4322. # It gets checked for in the link test anyway.
  4323. # First of all, check if the user has set any of the PTHREAD_LIBS,
  4324. # etcetera environment variables, and if threads linking works using
  4325. # them:
  4326. if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
  4327. ax_pthread_save_CC="$CC"
  4328. ax_pthread_save_CFLAGS="$CFLAGS"
  4329. ax_pthread_save_LIBS="$LIBS"
  4330. if test "x$PTHREAD_CC" != "x"; then :
  4331. CC="$PTHREAD_CC"
  4332. fi
  4333. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  4334. LIBS="$PTHREAD_LIBS $LIBS"
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
  4336. $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
  4337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4338. /* end confdefs.h. */
  4339. /* Override any GCC internal prototype to avoid an error.
  4340. Use char because int might match the return type of a GCC
  4341. builtin and then its argument prototype would still apply. */
  4342. #ifdef __cplusplus
  4343. extern "C"
  4344. #endif
  4345. char pthread_join ();
  4346. int
  4347. main ()
  4348. {
  4349. return pthread_join ();
  4350. ;
  4351. return 0;
  4352. }
  4353. _ACEOF
  4354. if ac_fn_c_try_link "$LINENO"; then :
  4355. ax_pthread_ok=yes
  4356. fi
  4357. rm -f core conftest.err conftest.$ac_objext \
  4358. conftest$ac_exeext conftest.$ac_ext
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  4360. $as_echo "$ax_pthread_ok" >&6; }
  4361. if test "x$ax_pthread_ok" = "xno"; then
  4362. PTHREAD_LIBS=""
  4363. PTHREAD_CFLAGS=""
  4364. fi
  4365. CC="$ax_pthread_save_CC"
  4366. CFLAGS="$ax_pthread_save_CFLAGS"
  4367. LIBS="$ax_pthread_save_LIBS"
  4368. fi
  4369. # We must check for the threads library under a number of different
  4370. # names; the ordering is very important because some systems
  4371. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  4372. # libraries is broken (non-POSIX).
  4373. # Create a list of thread flags to try. Items starting with a "-" are
  4374. # C compiler flags, and other items are library names, except for "none"
  4375. # which indicates that we try without any flags at all, and "pthread-config"
  4376. # which is a program returning the flags for the Pth emulation library.
  4377. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  4378. # The ordering *is* (sometimes) important. Some notes on the
  4379. # individual items follow:
  4380. # pthreads: AIX (must check this before -lpthread)
  4381. # none: in case threads are in libc; should be tried before -Kthread and
  4382. # other compiler flags to prevent continual compiler warnings
  4383. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  4384. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
  4385. # (Note: HP C rejects this with "bad form for `-t' option")
  4386. # -pthreads: Solaris/gcc (Note: HP C also rejects)
  4387. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  4388. # doesn't hurt to check since this sometimes defines pthreads and
  4389. # -D_REENTRANT too), HP C (must be checked before -lpthread, which
  4390. # is present but should not be used directly; and before -mthreads,
  4391. # because the compiler interprets this as "-mt" + "-hreads")
  4392. # -mthreads: Mingw32/gcc, Lynx/gcc
  4393. # pthread: Linux, etcetera
  4394. # --thread-safe: KAI C++
  4395. # pthread-config: use pthread-config program (for GNU Pth library)
  4396. case $host_os in
  4397. freebsd*)
  4398. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  4399. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  4400. ax_pthread_flags="-kthread lthread $ax_pthread_flags"
  4401. ;;
  4402. hpux*)
  4403. # From the cc(1) man page: "[-mt] Sets various -D flags to enable
  4404. # multi-threading and also sets -lpthread."
  4405. ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
  4406. ;;
  4407. openedition*)
  4408. # IBM z/OS requires a feature-test macro to be defined in order to
  4409. # enable POSIX threads at all, so give the user a hint if this is
  4410. # not set. (We don't define these ourselves, as they can affect
  4411. # other portions of the system API in unpredictable ways.)
  4412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4413. /* end confdefs.h. */
  4414. # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
  4415. AX_PTHREAD_ZOS_MISSING
  4416. # endif
  4417. _ACEOF
  4418. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4419. $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
  4421. $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
  4422. fi
  4423. rm -f conftest*
  4424. ;;
  4425. solaris*)
  4426. # On Solaris (at least, for some versions), libc contains stubbed
  4427. # (non-functional) versions of the pthreads routines, so link-based
  4428. # tests will erroneously succeed. (N.B.: The stubs are missing
  4429. # pthread_cleanup_push, or rather a function called by this macro,
  4430. # so we could check for that, but who knows whether they'll stub
  4431. # that too in a future libc.) So we'll check first for the
  4432. # standard Solaris way of linking pthreads (-mt -lpthread).
  4433. ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
  4434. ;;
  4435. esac
  4436. # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
  4437. if test "x$GCC" = "xyes"; then :
  4438. ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
  4439. fi
  4440. # The presence of a feature test macro requesting re-entrant function
  4441. # definitions is, on some systems, a strong hint that pthreads support is
  4442. # correctly enabled
  4443. case $host_os in
  4444. darwin* | hpux* | linux* | osf* | solaris*)
  4445. ax_pthread_check_macro="_REENTRANT"
  4446. ;;
  4447. aix*)
  4448. ax_pthread_check_macro="_THREAD_SAFE"
  4449. ;;
  4450. *)
  4451. ax_pthread_check_macro="--"
  4452. ;;
  4453. esac
  4454. if test "x$ax_pthread_check_macro" = "x--"; then :
  4455. ax_pthread_check_cond=0
  4456. else
  4457. ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
  4458. fi
  4459. # Are we compiling with Clang?
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
  4461. $as_echo_n "checking whether $CC is Clang... " >&6; }
  4462. if ${ax_cv_PTHREAD_CLANG+:} false; then :
  4463. $as_echo_n "(cached) " >&6
  4464. else
  4465. ax_cv_PTHREAD_CLANG=no
  4466. # Note that Autoconf sets GCC=yes for Clang as well as GCC
  4467. if test "x$GCC" = "xyes"; then
  4468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4469. /* end confdefs.h. */
  4470. /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
  4471. # if defined(__clang__) && defined(__llvm__)
  4472. AX_PTHREAD_CC_IS_CLANG
  4473. # endif
  4474. _ACEOF
  4475. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4476. $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
  4477. ax_cv_PTHREAD_CLANG=yes
  4478. fi
  4479. rm -f conftest*
  4480. fi
  4481. fi
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
  4483. $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
  4484. ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
  4485. ax_pthread_clang_warning=no
  4486. # Clang needs special handling, because older versions handle the -pthread
  4487. # option in a rather... idiosyncratic way
  4488. if test "x$ax_pthread_clang" = "xyes"; then
  4489. # Clang takes -pthread; it has never supported any other flag
  4490. # (Note 1: This will need to be revisited if a system that Clang
  4491. # supports has POSIX threads in a separate library. This tends not
  4492. # to be the way of modern systems, but it's conceivable.)
  4493. # (Note 2: On some systems, notably Darwin, -pthread is not needed
  4494. # to get POSIX threads support; the API is always present and
  4495. # active. We could reasonably leave PTHREAD_CFLAGS empty. But
  4496. # -pthread does define _REENTRANT, and while the Darwin headers
  4497. # ignore this macro, third-party headers might not.)
  4498. PTHREAD_CFLAGS="-pthread"
  4499. PTHREAD_LIBS=
  4500. ax_pthread_ok=yes
  4501. # However, older versions of Clang make a point of warning the user
  4502. # that, in an invocation where only linking and no compilation is
  4503. # taking place, the -pthread option has no effect ("argument unused
  4504. # during compilation"). They expect -pthread to be passed in only
  4505. # when source code is being compiled.
  4506. #
  4507. # Problem is, this is at odds with the way Automake and most other
  4508. # C build frameworks function, which is that the same flags used in
  4509. # compilation (CFLAGS) are also used in linking. Many systems
  4510. # supported by AX_PTHREAD require exactly this for POSIX threads
  4511. # support, and in fact it is often not straightforward to specify a
  4512. # flag that is used only in the compilation phase and not in
  4513. # linking. Such a scenario is extremely rare in practice.
  4514. #
  4515. # Even though use of the -pthread flag in linking would only print
  4516. # a warning, this can be a nuisance for well-run software projects
  4517. # that build with -Werror. So if the active version of Clang has
  4518. # this misfeature, we search for an option to squash it.
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
  4520. $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
  4521. if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
  4522. $as_echo_n "(cached) " >&6
  4523. else
  4524. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
  4525. # Create an alternate version of $ac_link that compiles and
  4526. # links in two steps (.c -> .o, .o -> exe) instead of one
  4527. # (.c -> exe), because the warning occurs only in the second
  4528. # step
  4529. ax_pthread_save_ac_link="$ac_link"
  4530. ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
  4531. ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
  4532. ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
  4533. ax_pthread_save_CFLAGS="$CFLAGS"
  4534. for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
  4535. if test "x$ax_pthread_try" = "xunknown"; then :
  4536. break
  4537. fi
  4538. CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
  4539. ac_link="$ax_pthread_save_ac_link"
  4540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4541. /* end confdefs.h. */
  4542. int main(void){return 0;}
  4543. _ACEOF
  4544. if ac_fn_c_try_link "$LINENO"; then :
  4545. ac_link="$ax_pthread_2step_ac_link"
  4546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4547. /* end confdefs.h. */
  4548. int main(void){return 0;}
  4549. _ACEOF
  4550. if ac_fn_c_try_link "$LINENO"; then :
  4551. break
  4552. fi
  4553. rm -f core conftest.err conftest.$ac_objext \
  4554. conftest$ac_exeext conftest.$ac_ext
  4555. fi
  4556. rm -f core conftest.err conftest.$ac_objext \
  4557. conftest$ac_exeext conftest.$ac_ext
  4558. done
  4559. ac_link="$ax_pthread_save_ac_link"
  4560. CFLAGS="$ax_pthread_save_CFLAGS"
  4561. if test "x$ax_pthread_try" = "x"; then :
  4562. ax_pthread_try=no
  4563. fi
  4564. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
  4565. fi
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
  4567. $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
  4568. case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
  4569. no | unknown) ;;
  4570. *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
  4571. esac
  4572. fi # $ax_pthread_clang = yes
  4573. if test "x$ax_pthread_ok" = "xno"; then
  4574. for ax_pthread_try_flag in $ax_pthread_flags; do
  4575. case $ax_pthread_try_flag in
  4576. none)
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  4578. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  4579. ;;
  4580. -mt,pthread)
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
  4582. $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
  4583. PTHREAD_CFLAGS="-mt"
  4584. PTHREAD_LIBS="-lpthread"
  4585. ;;
  4586. -*)
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
  4588. $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
  4589. PTHREAD_CFLAGS="$ax_pthread_try_flag"
  4590. ;;
  4591. pthread-config)
  4592. # Extract the first word of "pthread-config", so it can be a program name with args.
  4593. set dummy pthread-config; ac_word=$2
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4595. $as_echo_n "checking for $ac_word... " >&6; }
  4596. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. if test -n "$ax_pthread_config"; then
  4600. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  4601. else
  4602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. test -z "$as_dir" && as_dir=.
  4607. for ac_exec_ext in '' $ac_executable_extensions; do
  4608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4609. ac_cv_prog_ax_pthread_config="yes"
  4610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4611. break 2
  4612. fi
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  4617. fi
  4618. fi
  4619. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  4620. if test -n "$ax_pthread_config"; then
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  4622. $as_echo "$ax_pthread_config" >&6; }
  4623. else
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4625. $as_echo "no" >&6; }
  4626. fi
  4627. if test "x$ax_pthread_config" = "xno"; then :
  4628. continue
  4629. fi
  4630. PTHREAD_CFLAGS="`pthread-config --cflags`"
  4631. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  4632. ;;
  4633. *)
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
  4635. $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
  4636. PTHREAD_LIBS="-l$ax_pthread_try_flag"
  4637. ;;
  4638. esac
  4639. ax_pthread_save_CFLAGS="$CFLAGS"
  4640. ax_pthread_save_LIBS="$LIBS"
  4641. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  4642. LIBS="$PTHREAD_LIBS $LIBS"
  4643. # Check for various functions. We must include pthread.h,
  4644. # since some functions may be macros. (On the Sequent, we
  4645. # need a special flag -Kthread to make this header compile.)
  4646. # We check for pthread_join because it is in -lpthread on IRIX
  4647. # while pthread_create is in libc. We check for pthread_attr_init
  4648. # due to DEC craziness with -lpthreads. We check for
  4649. # pthread_cleanup_push because it is one of the few pthread
  4650. # functions on Solaris that doesn't have a non-functional libc stub.
  4651. # We try pthread_create on general principles.
  4652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4653. /* end confdefs.h. */
  4654. #include <pthread.h>
  4655. # if $ax_pthread_check_cond
  4656. # error "$ax_pthread_check_macro must be defined"
  4657. # endif
  4658. static void routine(void *a) { a = 0; }
  4659. static void *start_routine(void *a) { return a; }
  4660. int
  4661. main ()
  4662. {
  4663. pthread_t th; pthread_attr_t attr;
  4664. pthread_create(&th, 0, start_routine, 0);
  4665. pthread_join(th, 0);
  4666. pthread_attr_init(&attr);
  4667. pthread_cleanup_push(routine, 0);
  4668. pthread_cleanup_pop(0) /* ; */
  4669. ;
  4670. return 0;
  4671. }
  4672. _ACEOF
  4673. if ac_fn_c_try_link "$LINENO"; then :
  4674. ax_pthread_ok=yes
  4675. fi
  4676. rm -f core conftest.err conftest.$ac_objext \
  4677. conftest$ac_exeext conftest.$ac_ext
  4678. CFLAGS="$ax_pthread_save_CFLAGS"
  4679. LIBS="$ax_pthread_save_LIBS"
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  4681. $as_echo "$ax_pthread_ok" >&6; }
  4682. if test "x$ax_pthread_ok" = "xyes"; then :
  4683. break
  4684. fi
  4685. PTHREAD_LIBS=""
  4686. PTHREAD_CFLAGS=""
  4687. done
  4688. fi
  4689. # Various other checks:
  4690. if test "x$ax_pthread_ok" = "xyes"; then
  4691. ax_pthread_save_CFLAGS="$CFLAGS"
  4692. ax_pthread_save_LIBS="$LIBS"
  4693. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  4694. LIBS="$PTHREAD_LIBS $LIBS"
  4695. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  4697. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  4698. if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
  4699. $as_echo_n "(cached) " >&6
  4700. else
  4701. ax_cv_PTHREAD_JOINABLE_ATTR=unknown
  4702. for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  4703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4704. /* end confdefs.h. */
  4705. #include <pthread.h>
  4706. int
  4707. main ()
  4708. {
  4709. int attr = $ax_pthread_attr; return attr /* ; */
  4710. ;
  4711. return 0;
  4712. }
  4713. _ACEOF
  4714. if ac_fn_c_try_link "$LINENO"; then :
  4715. ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
  4716. fi
  4717. rm -f core conftest.err conftest.$ac_objext \
  4718. conftest$ac_exeext conftest.$ac_ext
  4719. done
  4720. fi
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
  4722. $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
  4723. if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
  4724. test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
  4725. test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
  4726. cat >>confdefs.h <<_ACEOF
  4727. @%:@define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
  4728. _ACEOF
  4729. ax_pthread_joinable_attr_defined=yes
  4730. fi
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
  4732. $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
  4733. if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
  4734. $as_echo_n "(cached) " >&6
  4735. else
  4736. ax_cv_PTHREAD_SPECIAL_FLAGS=no
  4737. case $host_os in
  4738. solaris*)
  4739. ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
  4740. ;;
  4741. esac
  4742. fi
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
  4744. $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
  4745. if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
  4746. test "x$ax_pthread_special_flags_added" != "xyes"; then :
  4747. PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
  4748. ax_pthread_special_flags_added=yes
  4749. fi
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  4751. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  4752. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  4753. $as_echo_n "(cached) " >&6
  4754. else
  4755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4756. /* end confdefs.h. */
  4757. #include <pthread.h>
  4758. int
  4759. main ()
  4760. {
  4761. int i = PTHREAD_PRIO_INHERIT;
  4762. ;
  4763. return 0;
  4764. }
  4765. _ACEOF
  4766. if ac_fn_c_try_link "$LINENO"; then :
  4767. ax_cv_PTHREAD_PRIO_INHERIT=yes
  4768. else
  4769. ax_cv_PTHREAD_PRIO_INHERIT=no
  4770. fi
  4771. rm -f core conftest.err conftest.$ac_objext \
  4772. conftest$ac_exeext conftest.$ac_ext
  4773. fi
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  4775. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  4776. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
  4777. test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
  4778. $as_echo "@%:@define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  4779. ax_pthread_prio_inherit_defined=yes
  4780. fi
  4781. CFLAGS="$ax_pthread_save_CFLAGS"
  4782. LIBS="$ax_pthread_save_LIBS"
  4783. # More AIX lossage: compile with *_r variant
  4784. if test "x$GCC" != "xyes"; then
  4785. case $host_os in
  4786. aix*)
  4787. case "x/$CC" in @%:@(
  4788. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  4789. #handle absolute path differently from PATH based program lookup
  4790. case "x$CC" in @%:@(
  4791. x/*) :
  4792. if as_fn_executable_p ${CC}_r; then :
  4793. PTHREAD_CC="${CC}_r"
  4794. fi ;; @%:@(
  4795. *) :
  4796. for ac_prog in ${CC}_r
  4797. do
  4798. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4799. set dummy $ac_prog; ac_word=$2
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4801. $as_echo_n "checking for $ac_word... " >&6; }
  4802. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  4803. $as_echo_n "(cached) " >&6
  4804. else
  4805. if test -n "$PTHREAD_CC"; then
  4806. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  4807. else
  4808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4809. for as_dir in $PATH
  4810. do
  4811. IFS=$as_save_IFS
  4812. test -z "$as_dir" && as_dir=.
  4813. for ac_exec_ext in '' $ac_executable_extensions; do
  4814. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4815. ac_cv_prog_PTHREAD_CC="$ac_prog"
  4816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4817. break 2
  4818. fi
  4819. done
  4820. done
  4821. IFS=$as_save_IFS
  4822. fi
  4823. fi
  4824. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  4825. if test -n "$PTHREAD_CC"; then
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  4827. $as_echo "$PTHREAD_CC" >&6; }
  4828. else
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4830. $as_echo "no" >&6; }
  4831. fi
  4832. test -n "$PTHREAD_CC" && break
  4833. done
  4834. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  4835. ;;
  4836. esac ;; @%:@(
  4837. *) :
  4838. ;;
  4839. esac
  4840. ;;
  4841. esac
  4842. fi
  4843. fi
  4844. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  4845. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  4846. if test "x$ax_pthread_ok" = "xyes"; then
  4847. $as_echo "@%:@define HAVE_PTHREAD 1" >>confdefs.h
  4848. LIBS="$PTHREAD_LIBS $LIBS"
  4849. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  4850. CC="$PTHREAD_CC"
  4851. :
  4852. else
  4853. ax_pthread_ok=no
  4854. fi
  4855. ac_ext=c
  4856. ac_cpp='$CPP $CPPFLAGS'
  4857. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4858. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4859. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4860. fi
  4861. @%:@ Check whether --with-safecode was given.
  4862. if test "${with_safecode+set}" = set; then :
  4863. withval=$with_safecode; if test "x$withval" = "xyes"; then :
  4864. : ${SAFECODE_HOME:=/opt/safecode}
  4865. LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
  4866. LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
  4867. CFLAGS="$CFLAGS -fmemsafety"
  4868. fi
  4869. fi
  4870. @%:@ Check whether --enable-debug was given.
  4871. if test "${enable_debug+set}" = set; then :
  4872. enableval=$enable_debug;
  4873. if test "x$enableval" = "xyes"; then :
  4874. if test "x$LX_CFLAGS" = "xNONE"; then :
  4875. nxflags=""
  4876. for flag in `echo $CFLAGS`; do
  4877. case $flag in @%:@(
  4878. -O*) :
  4879. ;; @%:@(
  4880. -g*) :
  4881. ;; @%:@(
  4882. *) :
  4883. as_fn_append nxflags " $flag" ;; @%:@(
  4884. *) :
  4885. ;;
  4886. esac
  4887. done
  4888. CFLAGS="$nxflags -O0 -g3"
  4889. fi
  4890. CPPFLAGS="$CPPFLAGS -DDEBUG=1 -UFORTIFY_SOURCE"
  4891. fi
  4892. fi
  4893. @%:@ Check whether --enable-opt was given.
  4894. if test "${enable_opt+set}" = set; then :
  4895. enableval=$enable_opt;
  4896. if test "x$enableval" = "xyes"; then :
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Ofast" >&5
  4898. $as_echo_n "checking whether C compiler accepts -Ofast... " >&6; }
  4899. if ${ax_cv_check_cflags___Ofast+:} false; then :
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. ax_check_save_flags=$CFLAGS
  4903. CFLAGS="$CFLAGS -Ofast"
  4904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4905. /* end confdefs.h. */
  4906. #include <time.h>
  4907. int
  4908. main ()
  4909. {
  4910. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  4911. ;
  4912. return 0;
  4913. }
  4914. _ACEOF
  4915. if ac_fn_c_try_link "$LINENO"; then :
  4916. ax_cv_check_cflags___Ofast=yes
  4917. else
  4918. ax_cv_check_cflags___Ofast=no
  4919. fi
  4920. rm -f core conftest.err conftest.$ac_objext \
  4921. conftest$ac_exeext conftest.$ac_ext
  4922. CFLAGS=$ax_check_save_flags
  4923. fi
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Ofast" >&5
  4925. $as_echo "$ax_cv_check_cflags___Ofast" >&6; }
  4926. if test "x$ax_cv_check_cflags___Ofast" = xyes; then :
  4927. CFLAGS="$CFLAGS -Ofast"
  4928. else
  4929. :
  4930. fi
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=native" >&5
  4932. $as_echo_n "checking whether C compiler accepts -march=native... " >&6; }
  4933. if ${ax_cv_check_cflags___march_native+:} false; then :
  4934. $as_echo_n "(cached) " >&6
  4935. else
  4936. ax_check_save_flags=$CFLAGS
  4937. CFLAGS="$CFLAGS -march=native"
  4938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4939. /* end confdefs.h. */
  4940. #include <time.h>
  4941. int
  4942. main ()
  4943. {
  4944. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  4945. ;
  4946. return 0;
  4947. }
  4948. _ACEOF
  4949. if ac_fn_c_try_link "$LINENO"; then :
  4950. ax_cv_check_cflags___march_native=yes
  4951. else
  4952. ax_cv_check_cflags___march_native=no
  4953. fi
  4954. rm -f core conftest.err conftest.$ac_objext \
  4955. conftest$ac_exeext conftest.$ac_ext
  4956. CFLAGS=$ax_check_save_flags
  4957. fi
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___march_native" >&5
  4959. $as_echo "$ax_cv_check_cflags___march_native" >&6; }
  4960. if test "x$ax_cv_check_cflags___march_native" = xyes; then :
  4961. CFLAGS="$CFLAGS -march=native"
  4962. else
  4963. :
  4964. fi
  4965. fi
  4966. fi
  4967. @%:@ Check whether --enable-valgrind was given.
  4968. if test "${enable_valgrind+set}" = set; then :
  4969. enableval=$enable_valgrind; enable_valgrind=$enableval
  4970. else
  4971. enable_valgrind=no
  4972. fi
  4973. if test "$enable_valgrind" != "no"; then :
  4974. # Check for Valgrind.
  4975. # Extract the first word of "valgrind", so it can be a program name with args.
  4976. set dummy valgrind; ac_word=$2
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4978. $as_echo_n "checking for $ac_word... " >&6; }
  4979. if ${ac_cv_prog_VALGRIND+:} false; then :
  4980. $as_echo_n "(cached) " >&6
  4981. else
  4982. if test -n "$VALGRIND"; then
  4983. ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
  4984. else
  4985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4986. for as_dir in $PATH
  4987. do
  4988. IFS=$as_save_IFS
  4989. test -z "$as_dir" && as_dir=.
  4990. for ac_exec_ext in '' $ac_executable_extensions; do
  4991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4992. ac_cv_prog_VALGRIND="valgrind"
  4993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4994. break 2
  4995. fi
  4996. done
  4997. done
  4998. IFS=$as_save_IFS
  4999. fi
  5000. fi
  5001. VALGRIND=$ac_cv_prog_VALGRIND
  5002. if test -n "$VALGRIND"; then
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
  5004. $as_echo "$VALGRIND" >&6; }
  5005. else
  5006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5007. $as_echo "no" >&6; }
  5008. fi
  5009. if test "$VALGRIND" = ""; then :
  5010. if test "$enable_valgrind" = "yes"; then :
  5011. as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5
  5012. else
  5013. enable_valgrind=no
  5014. fi
  5015. else
  5016. enable_valgrind=yes
  5017. fi
  5018. fi
  5019. if test "$enable_valgrind" = "yes"; then
  5020. VALGRIND_ENABLED_TRUE=
  5021. VALGRIND_ENABLED_FALSE='#'
  5022. else
  5023. VALGRIND_ENABLED_TRUE='#'
  5024. VALGRIND_ENABLED_FALSE=
  5025. fi
  5026. VALGRIND_ENABLED=$enable_valgrind
  5027. # Check for Valgrind tools we care about.
  5028. valgrind_enabled_tools=
  5029. @%:@ Check whether --enable-valgrind-memcheck was given.
  5030. if test "${enable_valgrind_memcheck+set}" = set; then :
  5031. enableval=$enable_valgrind_memcheck; enable_valgrind_memcheck=$enableval
  5032. else
  5033. enable_valgrind_memcheck=
  5034. fi
  5035. if test "$enable_valgrind" = "no"; then :
  5036. enable_valgrind_memcheck=no
  5037. elif test "$enable_valgrind_memcheck" != "no"; then :
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5
  5039. $as_echo_n "checking for Valgrind tool memcheck... " >&6; }
  5040. if ${ax_cv_valgrind_tool_memcheck+:} false; then :
  5041. $as_echo_n "(cached) " >&6
  5042. else
  5043. ax_cv_valgrind_tool_memcheck=no
  5044. if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`; then :
  5045. ax_cv_valgrind_tool_memcheck=yes
  5046. fi
  5047. fi
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5
  5049. $as_echo "$ax_cv_valgrind_tool_memcheck" >&6; }
  5050. if test "$ax_cv_valgrind_tool_memcheck" = "no"; then :
  5051. if test "$enable_valgrind_memcheck" = "yes"; then :
  5052. as_fn_error $? "Valgrind does not support memcheck; reconfigure with --disable-valgrind-memcheck" "$LINENO" 5
  5053. else
  5054. enable_valgrind_memcheck=no
  5055. fi
  5056. else
  5057. enable_valgrind_memcheck=yes
  5058. fi
  5059. fi
  5060. if test "$enable_valgrind_memcheck" = "yes"; then :
  5061. valgrind_enabled_tools="$valgrind_enabled_tools memcheck"
  5062. fi
  5063. ENABLE_VALGRIND_memcheck=$enable_valgrind_memcheck
  5064. @%:@ Check whether --enable-valgrind-helgrind was given.
  5065. if test "${enable_valgrind_helgrind+set}" = set; then :
  5066. enableval=$enable_valgrind_helgrind; enable_valgrind_helgrind=$enableval
  5067. else
  5068. enable_valgrind_helgrind=
  5069. fi
  5070. if test "$enable_valgrind" = "no"; then :
  5071. enable_valgrind_helgrind=no
  5072. elif test "$enable_valgrind_helgrind" != "no"; then :
  5073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5
  5074. $as_echo_n "checking for Valgrind tool helgrind... " >&6; }
  5075. if ${ax_cv_valgrind_tool_helgrind+:} false; then :
  5076. $as_echo_n "(cached) " >&6
  5077. else
  5078. ax_cv_valgrind_tool_helgrind=no
  5079. if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`; then :
  5080. ax_cv_valgrind_tool_helgrind=yes
  5081. fi
  5082. fi
  5083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5
  5084. $as_echo "$ax_cv_valgrind_tool_helgrind" >&6; }
  5085. if test "$ax_cv_valgrind_tool_helgrind" = "no"; then :
  5086. if test "$enable_valgrind_helgrind" = "yes"; then :
  5087. as_fn_error $? "Valgrind does not support helgrind; reconfigure with --disable-valgrind-helgrind" "$LINENO" 5
  5088. else
  5089. enable_valgrind_helgrind=no
  5090. fi
  5091. else
  5092. enable_valgrind_helgrind=yes
  5093. fi
  5094. fi
  5095. if test "$enable_valgrind_helgrind" = "yes"; then :
  5096. valgrind_enabled_tools="$valgrind_enabled_tools helgrind"
  5097. fi
  5098. ENABLE_VALGRIND_helgrind=$enable_valgrind_helgrind
  5099. @%:@ Check whether --enable-valgrind-drd was given.
  5100. if test "${enable_valgrind_drd+set}" = set; then :
  5101. enableval=$enable_valgrind_drd; enable_valgrind_drd=$enableval
  5102. else
  5103. enable_valgrind_drd=
  5104. fi
  5105. if test "$enable_valgrind" = "no"; then :
  5106. enable_valgrind_drd=no
  5107. elif test "$enable_valgrind_drd" != "no"; then :
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5
  5109. $as_echo_n "checking for Valgrind tool drd... " >&6; }
  5110. if ${ax_cv_valgrind_tool_drd+:} false; then :
  5111. $as_echo_n "(cached) " >&6
  5112. else
  5113. ax_cv_valgrind_tool_drd=no
  5114. if `$VALGRIND --tool=drd --help >/dev/null 2>&1`; then :
  5115. ax_cv_valgrind_tool_drd=yes
  5116. fi
  5117. fi
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5
  5119. $as_echo "$ax_cv_valgrind_tool_drd" >&6; }
  5120. if test "$ax_cv_valgrind_tool_drd" = "no"; then :
  5121. if test "$enable_valgrind_drd" = "yes"; then :
  5122. as_fn_error $? "Valgrind does not support drd; reconfigure with --disable-valgrind-drd" "$LINENO" 5
  5123. else
  5124. enable_valgrind_drd=no
  5125. fi
  5126. else
  5127. enable_valgrind_drd=yes
  5128. fi
  5129. fi
  5130. if test "$enable_valgrind_drd" = "yes"; then :
  5131. valgrind_enabled_tools="$valgrind_enabled_tools drd"
  5132. fi
  5133. ENABLE_VALGRIND_drd=$enable_valgrind_drd
  5134. @%:@ Check whether --enable-valgrind-sgcheck was given.
  5135. if test "${enable_valgrind_sgcheck+set}" = set; then :
  5136. enableval=$enable_valgrind_sgcheck; enable_valgrind_sgcheck=$enableval
  5137. else
  5138. enable_valgrind_sgcheck=
  5139. fi
  5140. if test "$enable_valgrind" = "no"; then :
  5141. enable_valgrind_sgcheck=no
  5142. elif test "$enable_valgrind_sgcheck" != "no"; then :
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool sgcheck" >&5
  5144. $as_echo_n "checking for Valgrind tool sgcheck... " >&6; }
  5145. if ${ax_cv_valgrind_tool_sgcheck+:} false; then :
  5146. $as_echo_n "(cached) " >&6
  5147. else
  5148. ax_cv_valgrind_tool_sgcheck=no
  5149. if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`; then :
  5150. ax_cv_valgrind_tool_sgcheck=yes
  5151. fi
  5152. fi
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_sgcheck" >&5
  5154. $as_echo "$ax_cv_valgrind_tool_sgcheck" >&6; }
  5155. if test "$ax_cv_valgrind_tool_sgcheck" = "no"; then :
  5156. if test "$enable_valgrind_sgcheck" = "yes"; then :
  5157. as_fn_error $? "Valgrind does not support sgcheck; reconfigure with --disable-valgrind-sgcheck" "$LINENO" 5
  5158. else
  5159. enable_valgrind_sgcheck=no
  5160. fi
  5161. else
  5162. enable_valgrind_sgcheck=yes
  5163. fi
  5164. fi
  5165. if test "$enable_valgrind_sgcheck" = "yes"; then :
  5166. valgrind_enabled_tools="$valgrind_enabled_tools sgcheck"
  5167. fi
  5168. ENABLE_VALGRIND_sgcheck=$enable_valgrind_sgcheck
  5169. valgrind_tools="memcheck helgrind drd sgcheck"
  5170. valgrind_enabled_tools=$valgrind_enabled_tools
  5171. VALGRIND_CHECK_RULES='
  5172. # Valgrind check
  5173. #
  5174. # Optional:
  5175. # - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions
  5176. # files to load. (Default: empty)
  5177. # - VALGRIND_FLAGS: General flags to pass to all Valgrind tools.
  5178. # (Default: --num-callers=30)
  5179. # - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of:
  5180. # memcheck, helgrind, drd, sgcheck). (Default: various)
  5181. # Optional variables
  5182. VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES))
  5183. VALGRIND_FLAGS ?= --num-callers=30
  5184. VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no
  5185. VALGRIND_helgrind_FLAGS ?= --history-level=approx
  5186. VALGRIND_drd_FLAGS ?=
  5187. VALGRIND_sgcheck_FLAGS ?=
  5188. # Internal use
  5189. valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools)))
  5190. valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS)
  5191. valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS)
  5192. valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS)
  5193. valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS)
  5194. valgrind_quiet = $(valgrind_quiet_$(V))
  5195. valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY))
  5196. valgrind_quiet_0 = --quiet
  5197. valgrind_v_use = $(valgrind_v_use_$(V))
  5198. valgrind_v_use_ = $(valgrind_v_use_$(AM_DEFAULT_VERBOSITY))
  5199. valgrind_v_use_0 = @echo " USE " $(patsubst check-valgrind-%,%,$''@):;
  5200. # Support running with and without libtool.
  5201. ifneq ($(LIBTOOL),)
  5202. valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute
  5203. else
  5204. valgrind_lt =
  5205. endif
  5206. # Use recursive makes in order to ignore errors during check
  5207. check-valgrind:
  5208. ifeq ($(VALGRIND_ENABLED),yes)
  5209. $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k \
  5210. $(foreach tool, $(valgrind_enabled_tools), check-valgrind-$(tool))
  5211. else
  5212. @echo "Need to use GNU make and reconfigure with --enable-valgrind"
  5213. endif
  5214. # Valgrind running
  5215. VALGRIND_TESTS_ENVIRONMENT = \
  5216. $(TESTS_ENVIRONMENT) \
  5217. env VALGRIND=$(VALGRIND) \
  5218. G_SLICE=always-malloc,debug-blocks \
  5219. G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly
  5220. VALGRIND_LOG_COMPILER = \
  5221. $(valgrind_lt) \
  5222. $(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS)
  5223. define valgrind_tool_rule =
  5224. check-valgrind-$(1):
  5225. ifeq ($$(VALGRIND_ENABLED)-$$(ENABLE_VALGRIND_$(1)),yes-yes)
  5226. $$(valgrind_v_use)$$(MAKE) check-TESTS \
  5227. TESTS_ENVIRONMENT="$$(VALGRIND_TESTS_ENVIRONMENT)" \
  5228. LOG_COMPILER="$$(VALGRIND_LOG_COMPILER)" \
  5229. LOG_FLAGS="$$(valgrind_$(1)_flags)" \
  5230. TEST_SUITE_LOG=test-suite-$(1).log
  5231. else ifeq ($$(VALGRIND_ENABLED),yes)
  5232. @echo "Need to reconfigure with --enable-valgrind-$(1)"
  5233. else
  5234. @echo "Need to reconfigure with --enable-valgrind"
  5235. endif
  5236. endef
  5237. $(foreach tool,$(valgrind_tools),$(eval $(call valgrind_tool_rule,$(tool))))
  5238. A''M_DISTCHECK_CONFIGURE_FLAGS ?=
  5239. A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind
  5240. MOSTLYCLEANFILES ?=
  5241. MOSTLYCLEANFILES += $(valgrind_log_files)
  5242. .PHONY: check-valgrind $(add-prefix check-valgrind-,$(valgrind_tools))
  5243. '
  5244. if test "$enable_valgrind" != "yes"; then :
  5245. VALGRIND_CHECK_RULES='
  5246. check-valgrind:
  5247. @echo "Need to use GNU make and reconfigure with --enable-valgrind"'
  5248. fi
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  5250. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  5251. if ${ac_cv_prog_cc_c99+:} false; then :
  5252. $as_echo_n "(cached) " >&6
  5253. else
  5254. ac_cv_prog_cc_c99=no
  5255. ac_save_CC=$CC
  5256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5257. /* end confdefs.h. */
  5258. #include <stdarg.h>
  5259. #include <stdbool.h>
  5260. #include <stdlib.h>
  5261. #include <wchar.h>
  5262. #include <stdio.h>
  5263. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  5264. #define debug(...) fprintf (stderr, __VA_ARGS__)
  5265. #define showlist(...) puts (#__VA_ARGS__)
  5266. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  5267. static void
  5268. test_varargs_macros (void)
  5269. {
  5270. int x = 1234;
  5271. int y = 5678;
  5272. debug ("Flag");
  5273. debug ("X = %d\n", x);
  5274. showlist (The first, second, and third items.);
  5275. report (x>y, "x is %d but y is %d", x, y);
  5276. }
  5277. // Check long long types.
  5278. #define BIG64 18446744073709551615ull
  5279. #define BIG32 4294967295ul
  5280. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  5281. #if !BIG_OK
  5282. your preprocessor is broken;
  5283. #endif
  5284. #if BIG_OK
  5285. #else
  5286. your preprocessor is broken;
  5287. #endif
  5288. static long long int bignum = -9223372036854775807LL;
  5289. static unsigned long long int ubignum = BIG64;
  5290. struct incomplete_array
  5291. {
  5292. int datasize;
  5293. double data[];
  5294. };
  5295. struct named_init {
  5296. int number;
  5297. const wchar_t *name;
  5298. double average;
  5299. };
  5300. typedef const char *ccp;
  5301. static inline int
  5302. test_restrict (ccp restrict text)
  5303. {
  5304. // See if C++-style comments work.
  5305. // Iterate through items via the restricted pointer.
  5306. // Also check for declarations in for loops.
  5307. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  5308. continue;
  5309. return 0;
  5310. }
  5311. // Check varargs and va_copy.
  5312. static void
  5313. test_varargs (const char *format, ...)
  5314. {
  5315. va_list args;
  5316. va_start (args, format);
  5317. va_list args_copy;
  5318. va_copy (args_copy, args);
  5319. const char *str;
  5320. int number;
  5321. float fnumber;
  5322. while (*format)
  5323. {
  5324. switch (*format++)
  5325. {
  5326. case 's': // string
  5327. str = va_arg (args_copy, const char *);
  5328. break;
  5329. case 'd': // int
  5330. number = va_arg (args_copy, int);
  5331. break;
  5332. case 'f': // float
  5333. fnumber = va_arg (args_copy, double);
  5334. break;
  5335. default:
  5336. break;
  5337. }
  5338. }
  5339. va_end (args_copy);
  5340. va_end (args);
  5341. }
  5342. int
  5343. main ()
  5344. {
  5345. // Check bool.
  5346. _Bool success = false;
  5347. // Check restrict.
  5348. if (test_restrict ("String literal") == 0)
  5349. success = true;
  5350. char *restrict newvar = "Another string";
  5351. // Check varargs.
  5352. test_varargs ("s, d' f .", "string", 65, 34.234);
  5353. test_varargs_macros ();
  5354. // Check flexible array members.
  5355. struct incomplete_array *ia =
  5356. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  5357. ia->datasize = 10;
  5358. for (int i = 0; i < ia->datasize; ++i)
  5359. ia->data[i] = i * 1.234;
  5360. // Check named initializers.
  5361. struct named_init ni = {
  5362. .number = 34,
  5363. .name = L"Test wide string",
  5364. .average = 543.34343,
  5365. };
  5366. ni.number = 58;
  5367. int dynamic_array[ni.number];
  5368. dynamic_array[ni.number - 1] = 543;
  5369. // work around unused variable warnings
  5370. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  5371. || dynamic_array[ni.number - 1] != 543);
  5372. ;
  5373. return 0;
  5374. }
  5375. _ACEOF
  5376. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  5377. do
  5378. CC="$ac_save_CC $ac_arg"
  5379. if ac_fn_c_try_compile "$LINENO"; then :
  5380. ac_cv_prog_cc_c99=$ac_arg
  5381. fi
  5382. rm -f core conftest.err conftest.$ac_objext
  5383. test "x$ac_cv_prog_cc_c99" != "xno" && break
  5384. done
  5385. rm -f conftest.$ac_ext
  5386. CC=$ac_save_CC
  5387. fi
  5388. # AC_CACHE_VAL
  5389. case "x$ac_cv_prog_cc_c99" in
  5390. x)
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5392. $as_echo "none needed" >&6; } ;;
  5393. xno)
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5395. $as_echo "unsupported" >&6; } ;;
  5396. *)
  5397. CC="$CC $ac_cv_prog_cc_c99"
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  5399. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  5400. esac
  5401. if test "x$ac_cv_prog_cc_c99" != xno; then :
  5402. fi
  5403. # By default we simply use the C compiler to build assembly code.
  5404. test "${CCAS+set}" = set || CCAS=$CC
  5405. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5406. depcc="$CCAS" am_compiler_list=
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5408. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5409. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  5410. $as_echo_n "(cached) " >&6
  5411. else
  5412. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5413. # We make a subdir and do the tests there. Otherwise we can end up
  5414. # making bogus files that we don't know about and never remove. For
  5415. # instance it was reported that on HP-UX the gcc test will end up
  5416. # making a dummy file named 'D' -- because '-MD' means "put the output
  5417. # in D".
  5418. rm -rf conftest.dir
  5419. mkdir conftest.dir
  5420. # Copy depcomp to subdir because otherwise we won't find it if we're
  5421. # using a relative directory.
  5422. cp "$am_depcomp" conftest.dir
  5423. cd conftest.dir
  5424. # We will build objects and dependencies in a subdirectory because
  5425. # it helps to detect inapplicable dependency modes. For instance
  5426. # both Tru64's cc and ICC support -MD to output dependencies as a
  5427. # side effect of compilation, but ICC will put the dependencies in
  5428. # the current directory while Tru64 will put them in the object
  5429. # directory.
  5430. mkdir sub
  5431. am_cv_CCAS_dependencies_compiler_type=none
  5432. if test "$am_compiler_list" = ""; then
  5433. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5434. fi
  5435. am__universal=false
  5436. for depmode in $am_compiler_list; do
  5437. # Setup a source with many dependencies, because some compilers
  5438. # like to wrap large dependency lists on column 80 (with \), and
  5439. # we should not choose a depcomp mode which is confused by this.
  5440. #
  5441. # We need to recreate these files for each test, as the compiler may
  5442. # overwrite some of them when testing with obscure command lines.
  5443. # This happens at least with the AIX C compiler.
  5444. : > sub/conftest.c
  5445. for i in 1 2 3 4 5 6; do
  5446. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5447. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5448. # Solaris 10 /bin/sh.
  5449. echo '/* dummy */' > sub/conftst$i.h
  5450. done
  5451. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5452. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5453. # mode. It turns out that the SunPro C++ compiler does not properly
  5454. # handle '-M -o', and we need to detect this. Also, some Intel
  5455. # versions had trouble with output in subdirs.
  5456. am__obj=sub/conftest.${OBJEXT-o}
  5457. am__minus_obj="-o $am__obj"
  5458. case $depmode in
  5459. gcc)
  5460. # This depmode causes a compiler race in universal mode.
  5461. test "$am__universal" = false || continue
  5462. ;;
  5463. nosideeffect)
  5464. # After this tag, mechanisms are not by side-effect, so they'll
  5465. # only be used when explicitly requested.
  5466. if test "x$enable_dependency_tracking" = xyes; then
  5467. continue
  5468. else
  5469. break
  5470. fi
  5471. ;;
  5472. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5473. # This compiler won't grok '-c -o', but also, the minuso test has
  5474. # not run yet. These depmodes are late enough in the game, and
  5475. # so weak that their functioning should not be impacted.
  5476. am__obj=conftest.${OBJEXT-o}
  5477. am__minus_obj=
  5478. ;;
  5479. none) break ;;
  5480. esac
  5481. if depmode=$depmode \
  5482. source=sub/conftest.c object=$am__obj \
  5483. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5484. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5485. >/dev/null 2>conftest.err &&
  5486. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5487. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5488. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5489. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5490. # icc doesn't choke on unknown options, it will just issue warnings
  5491. # or remarks (even with -Werror). So we grep stderr for any message
  5492. # that says an option was ignored or not supported.
  5493. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5494. # icc: Command line warning: ignoring option '-M'; no argument required
  5495. # The diagnosis changed in icc 8.0:
  5496. # icc: Command line remark: option '-MP' not supported
  5497. if (grep 'ignoring option' conftest.err ||
  5498. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5499. am_cv_CCAS_dependencies_compiler_type=$depmode
  5500. break
  5501. fi
  5502. fi
  5503. done
  5504. cd ..
  5505. rm -rf conftest.dir
  5506. else
  5507. am_cv_CCAS_dependencies_compiler_type=none
  5508. fi
  5509. fi
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  5511. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  5512. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  5513. if
  5514. test "x$enable_dependency_tracking" != xno \
  5515. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  5516. am__fastdepCCAS_TRUE=
  5517. am__fastdepCCAS_FALSE='#'
  5518. else
  5519. am__fastdepCCAS_TRUE='#'
  5520. am__fastdepCCAS_FALSE=
  5521. fi
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5523. $as_echo_n "checking for ANSI C header files... " >&6; }
  5524. if ${ac_cv_header_stdc+:} false; then :
  5525. $as_echo_n "(cached) " >&6
  5526. else
  5527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5528. /* end confdefs.h. */
  5529. #include <stdlib.h>
  5530. #include <stdarg.h>
  5531. #include <string.h>
  5532. #include <float.h>
  5533. int
  5534. main ()
  5535. {
  5536. ;
  5537. return 0;
  5538. }
  5539. _ACEOF
  5540. if ac_fn_c_try_compile "$LINENO"; then :
  5541. ac_cv_header_stdc=yes
  5542. else
  5543. ac_cv_header_stdc=no
  5544. fi
  5545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5546. if test $ac_cv_header_stdc = yes; then
  5547. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5549. /* end confdefs.h. */
  5550. #include <string.h>
  5551. _ACEOF
  5552. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5553. $EGREP "memchr" >/dev/null 2>&1; then :
  5554. else
  5555. ac_cv_header_stdc=no
  5556. fi
  5557. rm -f conftest*
  5558. fi
  5559. if test $ac_cv_header_stdc = yes; then
  5560. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5562. /* end confdefs.h. */
  5563. #include <stdlib.h>
  5564. _ACEOF
  5565. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5566. $EGREP "free" >/dev/null 2>&1; then :
  5567. else
  5568. ac_cv_header_stdc=no
  5569. fi
  5570. rm -f conftest*
  5571. fi
  5572. if test $ac_cv_header_stdc = yes; then
  5573. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5574. if test "$cross_compiling" = yes; then :
  5575. :
  5576. else
  5577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5578. /* end confdefs.h. */
  5579. #include <ctype.h>
  5580. #include <stdlib.h>
  5581. #if ((' ' & 0x0FF) == 0x020)
  5582. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5583. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5584. #else
  5585. # define ISLOWER(c) \
  5586. (('a' <= (c) && (c) <= 'i') \
  5587. || ('j' <= (c) && (c) <= 'r') \
  5588. || ('s' <= (c) && (c) <= 'z'))
  5589. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5590. #endif
  5591. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5592. int
  5593. main ()
  5594. {
  5595. int i;
  5596. for (i = 0; i < 256; i++)
  5597. if (XOR (islower (i), ISLOWER (i))
  5598. || toupper (i) != TOUPPER (i))
  5599. return 2;
  5600. return 0;
  5601. }
  5602. _ACEOF
  5603. if ac_fn_c_try_run "$LINENO"; then :
  5604. else
  5605. ac_cv_header_stdc=no
  5606. fi
  5607. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5608. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5609. fi
  5610. fi
  5611. fi
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5613. $as_echo "$ac_cv_header_stdc" >&6; }
  5614. if test $ac_cv_header_stdc = yes; then
  5615. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  5616. fi
  5617. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5618. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5619. inttypes.h stdint.h unistd.h
  5620. do :
  5621. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5622. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5623. "
  5624. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5625. cat >>confdefs.h <<_ACEOF
  5626. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5627. _ACEOF
  5628. fi
  5629. done
  5630. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5631. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  5632. MINIX=yes
  5633. else
  5634. MINIX=
  5635. fi
  5636. if test "$MINIX" = yes; then
  5637. $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
  5638. $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
  5639. $as_echo "@%:@define _MINIX 1" >>confdefs.h
  5640. fi
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5642. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5643. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  5644. $as_echo_n "(cached) " >&6
  5645. else
  5646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5647. /* end confdefs.h. */
  5648. # define __EXTENSIONS__ 1
  5649. $ac_includes_default
  5650. int
  5651. main ()
  5652. {
  5653. ;
  5654. return 0;
  5655. }
  5656. _ACEOF
  5657. if ac_fn_c_try_compile "$LINENO"; then :
  5658. ac_cv_safe_to_define___extensions__=yes
  5659. else
  5660. ac_cv_safe_to_define___extensions__=no
  5661. fi
  5662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5663. fi
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5665. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5666. test $ac_cv_safe_to_define___extensions__ = yes &&
  5667. $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
  5668. $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
  5669. $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
  5670. $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5671. $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __native_client__ defined" >&5
  5673. $as_echo_n "checking for __native_client__ defined... " >&6; }
  5674. if ${ac_cv_defined___native_client__+:} false; then :
  5675. $as_echo_n "(cached) " >&6
  5676. else
  5677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5678. /* end confdefs.h. */
  5679. int
  5680. main ()
  5681. {
  5682. #ifdef __native_client__
  5683. int ok;
  5684. #else
  5685. choke me
  5686. #endif
  5687. ;
  5688. return 0;
  5689. }
  5690. _ACEOF
  5691. if ac_fn_c_try_compile "$LINENO"; then :
  5692. ac_cv_defined___native_client__=yes
  5693. else
  5694. ac_cv_defined___native_client__=no
  5695. fi
  5696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5697. fi
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___native_client__" >&5
  5699. $as_echo "$ac_cv_defined___native_client__" >&6; }
  5700. if test $ac_cv_defined___native_client__ != "no"; then :
  5701. NATIVECLIENT="yes"
  5702. fi
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE defined" >&5
  5704. $as_echo_n "checking for _FORTIFY_SOURCE defined... " >&6; }
  5705. if ${ac_cv_defined__FORTIFY_SOURCE+:} false; then :
  5706. $as_echo_n "(cached) " >&6
  5707. else
  5708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5709. /* end confdefs.h. */
  5710. int
  5711. main ()
  5712. {
  5713. #ifdef _FORTIFY_SOURCE
  5714. int ok;
  5715. #else
  5716. choke me
  5717. #endif
  5718. ;
  5719. return 0;
  5720. }
  5721. _ACEOF
  5722. if ac_fn_c_try_compile "$LINENO"; then :
  5723. ac_cv_defined__FORTIFY_SOURCE=yes
  5724. else
  5725. ac_cv_defined__FORTIFY_SOURCE=no
  5726. fi
  5727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5728. fi
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__FORTIFY_SOURCE" >&5
  5730. $as_echo "$ac_cv_defined__FORTIFY_SOURCE" >&6; }
  5731. if test $ac_cv_defined__FORTIFY_SOURCE != "no"; then :
  5732. else
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
  5734. $as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
  5735. if ${ax_cv_check_cflags___D_FORTIFY_SOURCE_2+:} false; then :
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. ax_check_save_flags=$CFLAGS
  5739. CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
  5740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5741. /* end confdefs.h. */
  5742. #include <time.h>
  5743. int
  5744. main ()
  5745. {
  5746. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  5747. ;
  5748. return 0;
  5749. }
  5750. _ACEOF
  5751. if ac_fn_c_try_link "$LINENO"; then :
  5752. ax_cv_check_cflags___D_FORTIFY_SOURCE_2=yes
  5753. else
  5754. ax_cv_check_cflags___D_FORTIFY_SOURCE_2=no
  5755. fi
  5756. rm -f core conftest.err conftest.$ac_objext \
  5757. conftest$ac_exeext conftest.$ac_ext
  5758. CFLAGS=$ax_check_save_flags
  5759. fi
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&5
  5761. $as_echo "$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&6; }
  5762. if test "x$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" = xyes; then :
  5763. CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
  5764. else
  5765. :
  5766. fi
  5767. fi
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
  5769. $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
  5770. if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
  5771. $as_echo_n "(cached) " >&6
  5772. else
  5773. ax_check_save_flags=$CFLAGS
  5774. CFLAGS="$CFLAGS -fvisibility=hidden"
  5775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5776. /* end confdefs.h. */
  5777. #include <time.h>
  5778. int
  5779. main ()
  5780. {
  5781. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  5782. ;
  5783. return 0;
  5784. }
  5785. _ACEOF
  5786. if ac_fn_c_try_link "$LINENO"; then :
  5787. ax_cv_check_cflags___fvisibility_hidden=yes
  5788. else
  5789. ax_cv_check_cflags___fvisibility_hidden=no
  5790. fi
  5791. rm -f core conftest.err conftest.$ac_objext \
  5792. conftest$ac_exeext conftest.$ac_ext
  5793. CFLAGS=$ax_check_save_flags
  5794. fi
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
  5796. $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
  5797. if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
  5798. CFLAGS="$CFLAGS -fvisibility=hidden"
  5799. else
  5800. :
  5801. fi
  5802. case $host_os in @%:@(
  5803. cygwin*|mingw*|msys|pw32*|cegcc*) :
  5804. ;; @%:@(
  5805. *) :
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
  5807. $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
  5808. if ${ax_cv_check_cflags___fPIC+:} false; then :
  5809. $as_echo_n "(cached) " >&6
  5810. else
  5811. ax_check_save_flags=$CFLAGS
  5812. CFLAGS="$CFLAGS -fPIC"
  5813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5814. /* end confdefs.h. */
  5815. #include <time.h>
  5816. int
  5817. main ()
  5818. {
  5819. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  5820. ;
  5821. return 0;
  5822. }
  5823. _ACEOF
  5824. if ac_fn_c_try_link "$LINENO"; then :
  5825. ax_cv_check_cflags___fPIC=yes
  5826. else
  5827. ax_cv_check_cflags___fPIC=no
  5828. fi
  5829. rm -f core conftest.err conftest.$ac_objext \
  5830. conftest$ac_exeext conftest.$ac_ext
  5831. CFLAGS=$ax_check_save_flags
  5832. fi
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
  5834. $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
  5835. if test "x$ax_cv_check_cflags___fPIC" = xyes; then :
  5836. CFLAGS="$CFLAGS -fPIC"
  5837. else
  5838. :
  5839. fi
  5840. ;;
  5841. esac
  5842. if test "$enable_pie" != "no"; then :
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
  5844. $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
  5845. if ${ax_cv_check_cflags___fPIE+:} false; then :
  5846. $as_echo_n "(cached) " >&6
  5847. else
  5848. ax_check_save_flags=$CFLAGS
  5849. CFLAGS="$CFLAGS -fPIE"
  5850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5851. /* end confdefs.h. */
  5852. #include <time.h>
  5853. int
  5854. main ()
  5855. {
  5856. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  5857. ;
  5858. return 0;
  5859. }
  5860. _ACEOF
  5861. if ac_fn_c_try_link "$LINENO"; then :
  5862. ax_cv_check_cflags___fPIE=yes
  5863. else
  5864. ax_cv_check_cflags___fPIE=no
  5865. fi
  5866. rm -f core conftest.err conftest.$ac_objext \
  5867. conftest$ac_exeext conftest.$ac_ext
  5868. CFLAGS=$ax_check_save_flags
  5869. fi
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
  5871. $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
  5872. if test "x$ax_cv_check_cflags___fPIE" = xyes; then :
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
  5874. $as_echo_n "checking whether the linker accepts -pie... " >&6; }
  5875. if ${ax_cv_check_ldflags___pie+:} false; then :
  5876. $as_echo_n "(cached) " >&6
  5877. else
  5878. ax_check_save_flags=$LDFLAGS
  5879. LDFLAGS="$LDFLAGS -pie"
  5880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5881. /* end confdefs.h. */
  5882. #include <time.h>
  5883. int
  5884. main ()
  5885. {
  5886. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  5887. ;
  5888. return 0;
  5889. }
  5890. _ACEOF
  5891. if ac_fn_c_try_link "$LINENO"; then :
  5892. ax_cv_check_ldflags___pie=yes
  5893. else
  5894. ax_cv_check_ldflags___pie=no
  5895. fi
  5896. rm -f core conftest.err conftest.$ac_objext \
  5897. conftest$ac_exeext conftest.$ac_ext
  5898. LDFLAGS=$ax_check_save_flags
  5899. fi
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
  5901. $as_echo "$ax_cv_check_ldflags___pie" >&6; }
  5902. if test "x$ax_cv_check_ldflags___pie" = xyes; then :
  5903. CFLAGS="$CFLAGS -fPIE"
  5904. LDFLAGS="$LDFLAGS -pie"
  5905. else
  5906. :
  5907. fi
  5908. else
  5909. :
  5910. fi
  5911. fi
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
  5913. $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
  5914. if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
  5915. $as_echo_n "(cached) " >&6
  5916. else
  5917. ax_check_save_flags=$CFLAGS
  5918. CFLAGS="$CFLAGS -fno-strict-aliasing"
  5919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5920. /* end confdefs.h. */
  5921. #include <time.h>
  5922. int
  5923. main ()
  5924. {
  5925. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  5926. ;
  5927. return 0;
  5928. }
  5929. _ACEOF
  5930. if ac_fn_c_try_link "$LINENO"; then :
  5931. ax_cv_check_cflags___fno_strict_aliasing=yes
  5932. else
  5933. ax_cv_check_cflags___fno_strict_aliasing=no
  5934. fi
  5935. rm -f core conftest.err conftest.$ac_objext \
  5936. conftest$ac_exeext conftest.$ac_ext
  5937. CFLAGS=$ax_check_save_flags
  5938. fi
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
  5940. $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
  5941. if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
  5942. CFLAGS="$CFLAGS -fno-strict-aliasing"
  5943. else
  5944. :
  5945. fi
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
  5947. $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
  5948. if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
  5949. $as_echo_n "(cached) " >&6
  5950. else
  5951. ax_check_save_flags=$CFLAGS
  5952. CFLAGS="$CFLAGS -fno-strict-overflow"
  5953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5954. /* end confdefs.h. */
  5955. #include <time.h>
  5956. int
  5957. main ()
  5958. {
  5959. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  5960. ;
  5961. return 0;
  5962. }
  5963. _ACEOF
  5964. if ac_fn_c_try_link "$LINENO"; then :
  5965. ax_cv_check_cflags___fno_strict_overflow=yes
  5966. else
  5967. ax_cv_check_cflags___fno_strict_overflow=no
  5968. fi
  5969. rm -f core conftest.err conftest.$ac_objext \
  5970. conftest$ac_exeext conftest.$ac_ext
  5971. CFLAGS=$ax_check_save_flags
  5972. fi
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
  5974. $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
  5975. if test "x$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
  5976. CFLAGS="$CFLAGS -fno-strict-overflow"
  5977. else
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
  5979. $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
  5980. if ${ax_cv_check_cflags___fwrapv+:} false; then :
  5981. $as_echo_n "(cached) " >&6
  5982. else
  5983. ax_check_save_flags=$CFLAGS
  5984. CFLAGS="$CFLAGS -fwrapv"
  5985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5986. /* end confdefs.h. */
  5987. #include <time.h>
  5988. int
  5989. main ()
  5990. {
  5991. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  5992. ;
  5993. return 0;
  5994. }
  5995. _ACEOF
  5996. if ac_fn_c_try_link "$LINENO"; then :
  5997. ax_cv_check_cflags___fwrapv=yes
  5998. else
  5999. ax_cv_check_cflags___fwrapv=no
  6000. fi
  6001. rm -f core conftest.err conftest.$ac_objext \
  6002. conftest$ac_exeext conftest.$ac_ext
  6003. CFLAGS=$ax_check_save_flags
  6004. fi
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
  6006. $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
  6007. if test "x$ax_cv_check_cflags___fwrapv" = xyes; then :
  6008. CFLAGS="$CFLAGS -fwrapv"
  6009. else
  6010. :
  6011. fi
  6012. fi
  6013. if test "$GCC" = "yes" ; then :
  6014. case $host_cpu in @%:@(
  6015. i?86|amd64|x86_64) :
  6016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6017. /* end confdefs.h. */
  6018. #if !defined(__clang__) && defined(__GNUC__) && ((__GNUC__ << 8) | __GNUC_MINOR__) < 0x403
  6019. # error old gcc
  6020. #endif
  6021. int main(void) { return 0; }
  6022. _ACEOF
  6023. if ac_fn_c_try_compile "$LINENO"; then :
  6024. else
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flax-vector-conversions" >&5
  6026. $as_echo_n "checking whether C compiler accepts -flax-vector-conversions... " >&6; }
  6027. if ${ax_cv_check_cflags___flax_vector_conversions+:} false; then :
  6028. $as_echo_n "(cached) " >&6
  6029. else
  6030. ax_check_save_flags=$CFLAGS
  6031. CFLAGS="$CFLAGS -flax-vector-conversions"
  6032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6033. /* end confdefs.h. */
  6034. #include <time.h>
  6035. int
  6036. main ()
  6037. {
  6038. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6039. ;
  6040. return 0;
  6041. }
  6042. _ACEOF
  6043. if ac_fn_c_try_link "$LINENO"; then :
  6044. ax_cv_check_cflags___flax_vector_conversions=yes
  6045. else
  6046. ax_cv_check_cflags___flax_vector_conversions=no
  6047. fi
  6048. rm -f core conftest.err conftest.$ac_objext \
  6049. conftest$ac_exeext conftest.$ac_ext
  6050. CFLAGS=$ax_check_save_flags
  6051. fi
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flax_vector_conversions" >&5
  6053. $as_echo "$ax_cv_check_cflags___flax_vector_conversions" >&6; }
  6054. if test "x$ax_cv_check_cflags___flax_vector_conversions" = xyes; then :
  6055. CFLAGS="$CFLAGS -flax-vector-conversions"
  6056. else
  6057. :
  6058. fi
  6059. fi
  6060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6061. ;; @%:@(
  6062. *) :
  6063. ;;
  6064. esac
  6065. fi
  6066. LIBTOOL_OLD_FLAGS="$LIBTOOL_EXTRA_FLAGS"
  6067. LIBTOOL_EXTRA_FLAGS="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
  6068. @%:@ Check whether --enable-soname-versions was given.
  6069. if test "${enable_soname_versions+set}" = set; then :
  6070. enableval=$enable_soname_versions;
  6071. if test "x$enableval" = "xno"; then :
  6072. LIBTOOL_EXTRA_FLAGS="$LIBTOOL_OLD_FLAGS -avoid-version"
  6073. fi
  6074. fi
  6075. case $host_os in @%:@(
  6076. cygwin*|mingw*|msys|pw32*|cegcc*) :
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
  6078. $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
  6079. if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false; then :
  6080. $as_echo_n "(cached) " >&6
  6081. else
  6082. ax_check_save_flags=$LDFLAGS
  6083. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  6084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6085. /* end confdefs.h. */
  6086. #include <time.h>
  6087. int
  6088. main ()
  6089. {
  6090. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6091. ;
  6092. return 0;
  6093. }
  6094. _ACEOF
  6095. if ac_fn_c_try_link "$LINENO"; then :
  6096. ax_cv_check_ldflags___Wl___dynamicbase=yes
  6097. else
  6098. ax_cv_check_ldflags___Wl___dynamicbase=no
  6099. fi
  6100. rm -f core conftest.err conftest.$ac_objext \
  6101. conftest$ac_exeext conftest.$ac_ext
  6102. LDFLAGS=$ax_check_save_flags
  6103. fi
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
  6105. $as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
  6106. if test "x$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
  6107. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  6108. else
  6109. :
  6110. fi
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--high-entropy-va" >&5
  6112. $as_echo_n "checking whether the linker accepts -Wl,--high-entropy-va... " >&6; }
  6113. if ${ax_cv_check_ldflags___Wl___high_entropy_va+:} false; then :
  6114. $as_echo_n "(cached) " >&6
  6115. else
  6116. ax_check_save_flags=$LDFLAGS
  6117. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  6118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6119. /* end confdefs.h. */
  6120. #include <time.h>
  6121. int
  6122. main ()
  6123. {
  6124. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6125. ;
  6126. return 0;
  6127. }
  6128. _ACEOF
  6129. if ac_fn_c_try_link "$LINENO"; then :
  6130. ax_cv_check_ldflags___Wl___high_entropy_va=yes
  6131. else
  6132. ax_cv_check_ldflags___Wl___high_entropy_va=no
  6133. fi
  6134. rm -f core conftest.err conftest.$ac_objext \
  6135. conftest$ac_exeext conftest.$ac_ext
  6136. LDFLAGS=$ax_check_save_flags
  6137. fi
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___high_entropy_va" >&5
  6139. $as_echo "$ax_cv_check_ldflags___Wl___high_entropy_va" >&6; }
  6140. if test "x$ax_cv_check_ldflags___Wl___high_entropy_va" = xyes; then :
  6141. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  6142. else
  6143. :
  6144. fi
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
  6146. $as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
  6147. if ${ax_cv_check_ldflags___Wl___nxcompat+:} false; then :
  6148. $as_echo_n "(cached) " >&6
  6149. else
  6150. ax_check_save_flags=$LDFLAGS
  6151. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  6152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6153. /* end confdefs.h. */
  6154. #include <time.h>
  6155. int
  6156. main ()
  6157. {
  6158. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6159. ;
  6160. return 0;
  6161. }
  6162. _ACEOF
  6163. if ac_fn_c_try_link "$LINENO"; then :
  6164. ax_cv_check_ldflags___Wl___nxcompat=yes
  6165. else
  6166. ax_cv_check_ldflags___Wl___nxcompat=no
  6167. fi
  6168. rm -f core conftest.err conftest.$ac_objext \
  6169. conftest$ac_exeext conftest.$ac_ext
  6170. LDFLAGS=$ax_check_save_flags
  6171. fi
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
  6173. $as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
  6174. if test "x$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
  6175. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  6176. else
  6177. :
  6178. fi
  6179. ;; @%:@(
  6180. *) :
  6181. ;;
  6182. esac
  6183. case $host_os in @%:@(
  6184. cygwin*|mingw*|msys|pw32*|cegcc*) :
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-asynchronous-unwind-tables" >&5
  6186. $as_echo_n "checking whether C compiler accepts -fno-asynchronous-unwind-tables... " >&6; }
  6187. if ${ax_cv_check_cflags___fno_asynchronous_unwind_tables+:} false; then :
  6188. $as_echo_n "(cached) " >&6
  6189. else
  6190. ax_check_save_flags=$CFLAGS
  6191. CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"
  6192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6193. /* end confdefs.h. */
  6194. #include <time.h>
  6195. int
  6196. main ()
  6197. {
  6198. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6199. ;
  6200. return 0;
  6201. }
  6202. _ACEOF
  6203. if ac_fn_c_try_link "$LINENO"; then :
  6204. ax_cv_check_cflags___fno_asynchronous_unwind_tables=yes
  6205. else
  6206. ax_cv_check_cflags___fno_asynchronous_unwind_tables=no
  6207. fi
  6208. rm -f core conftest.err conftest.$ac_objext \
  6209. conftest$ac_exeext conftest.$ac_ext
  6210. CFLAGS=$ax_check_save_flags
  6211. fi
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_asynchronous_unwind_tables" >&5
  6213. $as_echo "$ax_cv_check_cflags___fno_asynchronous_unwind_tables" >&6; }
  6214. if test "x$ax_cv_check_cflags___fno_asynchronous_unwind_tables" = xyes; then :
  6215. CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"
  6216. else
  6217. :
  6218. fi
  6219. ;; @%:@(
  6220. *) :
  6221. ;;
  6222. esac
  6223. if test "x$enable_ssp" != "xno"; then :
  6224. case $host_os in @%:@(
  6225. cygwin*|mingw*|msys|pw32*|cegcc*) :
  6226. ;; @%:@(
  6227. *) :
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
  6229. $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
  6230. if ${ax_cv_check_cflags___fstack_protector+:} false; then :
  6231. $as_echo_n "(cached) " >&6
  6232. else
  6233. ax_check_save_flags=$CFLAGS
  6234. CFLAGS="$CFLAGS -fstack-protector"
  6235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6236. /* end confdefs.h. */
  6237. #include <time.h>
  6238. int
  6239. main ()
  6240. {
  6241. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6242. ;
  6243. return 0;
  6244. }
  6245. _ACEOF
  6246. if ac_fn_c_try_link "$LINENO"; then :
  6247. ax_cv_check_cflags___fstack_protector=yes
  6248. else
  6249. ax_cv_check_cflags___fstack_protector=no
  6250. fi
  6251. rm -f core conftest.err conftest.$ac_objext \
  6252. conftest$ac_exeext conftest.$ac_ext
  6253. CFLAGS=$ax_check_save_flags
  6254. fi
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
  6256. $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
  6257. if test "x$ax_cv_check_cflags___fstack_protector" = xyes; then :
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
  6259. $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
  6260. if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
  6261. $as_echo_n "(cached) " >&6
  6262. else
  6263. ax_check_save_flags=$LDFLAGS
  6264. LDFLAGS="$LDFLAGS -fstack-protector"
  6265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6266. /* end confdefs.h. */
  6267. #include <time.h>
  6268. int
  6269. main ()
  6270. {
  6271. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6272. ;
  6273. return 0;
  6274. }
  6275. _ACEOF
  6276. if ac_fn_c_try_link "$LINENO"; then :
  6277. ax_cv_check_ldflags___fstack_protector=yes
  6278. else
  6279. ax_cv_check_ldflags___fstack_protector=no
  6280. fi
  6281. rm -f core conftest.err conftest.$ac_objext \
  6282. conftest$ac_exeext conftest.$ac_ext
  6283. LDFLAGS=$ax_check_save_flags
  6284. fi
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
  6286. $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
  6287. if test "x$ax_cv_check_ldflags___fstack_protector" = xyes; then :
  6288. CFLAGS="$CFLAGS -fstack-protector"
  6289. else
  6290. :
  6291. fi
  6292. else
  6293. :
  6294. fi
  6295. ;; @%:@(
  6296. *) :
  6297. ;;
  6298. esac
  6299. fi
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
  6301. $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
  6302. if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
  6303. $as_echo_n "(cached) " >&6
  6304. else
  6305. ax_check_save_flags=$CFLAGS
  6306. CFLAGS="$CFLAGS -Wwrite-strings"
  6307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6308. /* end confdefs.h. */
  6309. #include <time.h>
  6310. int
  6311. main ()
  6312. {
  6313. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6314. ;
  6315. return 0;
  6316. }
  6317. _ACEOF
  6318. if ac_fn_c_try_link "$LINENO"; then :
  6319. ax_cv_check_cflags___Wwrite_strings=yes
  6320. else
  6321. ax_cv_check_cflags___Wwrite_strings=no
  6322. fi
  6323. rm -f core conftest.err conftest.$ac_objext \
  6324. conftest$ac_exeext conftest.$ac_ext
  6325. CFLAGS=$ax_check_save_flags
  6326. fi
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
  6328. $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
  6329. if test "x$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
  6330. CFLAGS="$CFLAGS -Wwrite-strings"
  6331. else
  6332. :
  6333. fi
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
  6335. $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
  6336. if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
  6337. $as_echo_n "(cached) " >&6
  6338. else
  6339. ax_check_save_flags=$CFLAGS
  6340. CFLAGS="$CFLAGS -Wdiv-by-zero"
  6341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6342. /* end confdefs.h. */
  6343. #include <time.h>
  6344. int
  6345. main ()
  6346. {
  6347. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6348. ;
  6349. return 0;
  6350. }
  6351. _ACEOF
  6352. if ac_fn_c_try_link "$LINENO"; then :
  6353. ax_cv_check_cflags___Wdiv_by_zero=yes
  6354. else
  6355. ax_cv_check_cflags___Wdiv_by_zero=no
  6356. fi
  6357. rm -f core conftest.err conftest.$ac_objext \
  6358. conftest$ac_exeext conftest.$ac_ext
  6359. CFLAGS=$ax_check_save_flags
  6360. fi
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
  6362. $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
  6363. if test "x$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
  6364. CFLAGS="$CFLAGS -Wdiv-by-zero"
  6365. else
  6366. :
  6367. fi
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
  6369. $as_echo_n "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
  6370. if ${ax_cv_check_cflags___Wsometimes_uninitialized+:} false; then :
  6371. $as_echo_n "(cached) " >&6
  6372. else
  6373. ax_check_save_flags=$CFLAGS
  6374. CFLAGS="$CFLAGS -Wsometimes-uninitialized"
  6375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6376. /* end confdefs.h. */
  6377. #include <time.h>
  6378. int
  6379. main ()
  6380. {
  6381. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6382. ;
  6383. return 0;
  6384. }
  6385. _ACEOF
  6386. if ac_fn_c_try_link "$LINENO"; then :
  6387. ax_cv_check_cflags___Wsometimes_uninitialized=yes
  6388. else
  6389. ax_cv_check_cflags___Wsometimes_uninitialized=no
  6390. fi
  6391. rm -f core conftest.err conftest.$ac_objext \
  6392. conftest$ac_exeext conftest.$ac_ext
  6393. CFLAGS=$ax_check_save_flags
  6394. fi
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
  6396. $as_echo "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
  6397. if test "x$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes; then :
  6398. CFLAGS="$CFLAGS -Wsometimes-uninitialized"
  6399. else
  6400. :
  6401. fi
  6402. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wall" | $as_tr_sh`
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wall" >&5
  6404. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wall... " >&6; }
  6405. if eval \${$as_CACHEVAR+:} false; then :
  6406. $as_echo_n "(cached) " >&6
  6407. else
  6408. ax_check_save_flags=$CFLAGS
  6409. CFLAGS="$CFLAGS $CWFLAGS -Wall"
  6410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6411. /* end confdefs.h. */
  6412. #include <time.h>
  6413. int
  6414. main ()
  6415. {
  6416. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6417. ;
  6418. return 0;
  6419. }
  6420. _ACEOF
  6421. if ac_fn_c_try_link "$LINENO"; then :
  6422. eval "$as_CACHEVAR=yes"
  6423. else
  6424. eval "$as_CACHEVAR=no"
  6425. fi
  6426. rm -f core conftest.err conftest.$ac_objext \
  6427. conftest$ac_exeext conftest.$ac_ext
  6428. CFLAGS=$ax_check_save_flags
  6429. fi
  6430. eval ac_res=\$$as_CACHEVAR
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6432. $as_echo "$ac_res" >&6; }
  6433. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6434. CWFLAGS="$CWFLAGS -Wall"
  6435. else
  6436. :
  6437. fi
  6438. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wextra" | $as_tr_sh`
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wextra" >&5
  6440. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wextra... " >&6; }
  6441. if eval \${$as_CACHEVAR+:} false; then :
  6442. $as_echo_n "(cached) " >&6
  6443. else
  6444. ax_check_save_flags=$CFLAGS
  6445. CFLAGS="$CFLAGS $CWFLAGS -Wextra"
  6446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6447. /* end confdefs.h. */
  6448. #include <time.h>
  6449. int
  6450. main ()
  6451. {
  6452. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6453. ;
  6454. return 0;
  6455. }
  6456. _ACEOF
  6457. if ac_fn_c_try_link "$LINENO"; then :
  6458. eval "$as_CACHEVAR=yes"
  6459. else
  6460. eval "$as_CACHEVAR=no"
  6461. fi
  6462. rm -f core conftest.err conftest.$ac_objext \
  6463. conftest$ac_exeext conftest.$ac_ext
  6464. CFLAGS=$ax_check_save_flags
  6465. fi
  6466. eval ac_res=\$$as_CACHEVAR
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6468. $as_echo "$ac_res" >&6; }
  6469. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6470. CWFLAGS="$CWFLAGS -Wextra"
  6471. else
  6472. :
  6473. fi
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
  6475. $as_echo_n "checking for clang... " >&6; }
  6476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6477. /* end confdefs.h. */
  6478. int
  6479. main ()
  6480. {
  6481. #ifndef __clang__
  6482. #error Not clang
  6483. #endif
  6484. ;
  6485. return 0;
  6486. }
  6487. _ACEOF
  6488. if ac_fn_c_try_compile "$LINENO"; then :
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6490. $as_echo "yes" >&6; }
  6491. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
  6493. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
  6494. if eval \${$as_CACHEVAR+:} false; then :
  6495. $as_echo_n "(cached) " >&6
  6496. else
  6497. ax_check_save_flags=$CFLAGS
  6498. CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-warning-option"
  6499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6500. /* end confdefs.h. */
  6501. #include <time.h>
  6502. int
  6503. main ()
  6504. {
  6505. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6506. ;
  6507. return 0;
  6508. }
  6509. _ACEOF
  6510. if ac_fn_c_try_link "$LINENO"; then :
  6511. eval "$as_CACHEVAR=yes"
  6512. else
  6513. eval "$as_CACHEVAR=no"
  6514. fi
  6515. rm -f core conftest.err conftest.$ac_objext \
  6516. conftest$ac_exeext conftest.$ac_ext
  6517. CFLAGS=$ax_check_save_flags
  6518. fi
  6519. eval ac_res=\$$as_CACHEVAR
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6521. $as_echo "$ac_res" >&6; }
  6522. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6523. CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
  6524. else
  6525. :
  6526. fi
  6527. else
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6529. $as_echo "no" >&6; }
  6530. fi
  6531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6532. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
  6534. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
  6535. if eval \${$as_CACHEVAR+:} false; then :
  6536. $as_echo_n "(cached) " >&6
  6537. else
  6538. ax_check_save_flags=$CFLAGS
  6539. CFLAGS="$CFLAGS $CWFLAGS -Wbad-function-cast"
  6540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6541. /* end confdefs.h. */
  6542. #include <time.h>
  6543. int
  6544. main ()
  6545. {
  6546. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6547. ;
  6548. return 0;
  6549. }
  6550. _ACEOF
  6551. if ac_fn_c_try_link "$LINENO"; then :
  6552. eval "$as_CACHEVAR=yes"
  6553. else
  6554. eval "$as_CACHEVAR=no"
  6555. fi
  6556. rm -f core conftest.err conftest.$ac_objext \
  6557. conftest$ac_exeext conftest.$ac_ext
  6558. CFLAGS=$ax_check_save_flags
  6559. fi
  6560. eval ac_res=\$$as_CACHEVAR
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6562. $as_echo "$ac_res" >&6; }
  6563. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6564. CWFLAGS="$CWFLAGS -Wbad-function-cast"
  6565. else
  6566. :
  6567. fi
  6568. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-align" | $as_tr_sh`
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-align" >&5
  6570. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-align... " >&6; }
  6571. if eval \${$as_CACHEVAR+:} false; then :
  6572. $as_echo_n "(cached) " >&6
  6573. else
  6574. ax_check_save_flags=$CFLAGS
  6575. CFLAGS="$CFLAGS $CWFLAGS -Wcast-align"
  6576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6577. /* end confdefs.h. */
  6578. #include <time.h>
  6579. int
  6580. main ()
  6581. {
  6582. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6583. ;
  6584. return 0;
  6585. }
  6586. _ACEOF
  6587. if ac_fn_c_try_link "$LINENO"; then :
  6588. eval "$as_CACHEVAR=yes"
  6589. else
  6590. eval "$as_CACHEVAR=no"
  6591. fi
  6592. rm -f core conftest.err conftest.$ac_objext \
  6593. conftest$ac_exeext conftest.$ac_ext
  6594. CFLAGS=$ax_check_save_flags
  6595. fi
  6596. eval ac_res=\$$as_CACHEVAR
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6598. $as_echo "$ac_res" >&6; }
  6599. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6600. CWFLAGS="$CWFLAGS -Wcast-align"
  6601. else
  6602. :
  6603. fi
  6604. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
  6606. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
  6607. if eval \${$as_CACHEVAR+:} false; then :
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. ax_check_save_flags=$CFLAGS
  6611. CFLAGS="$CFLAGS $CWFLAGS -Wcast-qual"
  6612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6613. /* end confdefs.h. */
  6614. #include <time.h>
  6615. int
  6616. main ()
  6617. {
  6618. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6619. ;
  6620. return 0;
  6621. }
  6622. _ACEOF
  6623. if ac_fn_c_try_link "$LINENO"; then :
  6624. eval "$as_CACHEVAR=yes"
  6625. else
  6626. eval "$as_CACHEVAR=no"
  6627. fi
  6628. rm -f core conftest.err conftest.$ac_objext \
  6629. conftest$ac_exeext conftest.$ac_ext
  6630. CFLAGS=$ax_check_save_flags
  6631. fi
  6632. eval ac_res=\$$as_CACHEVAR
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6634. $as_echo "$ac_res" >&6; }
  6635. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6636. CWFLAGS="$CWFLAGS -Wcast-qual"
  6637. else
  6638. :
  6639. fi
  6640. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wduplicated-cond" | $as_tr_sh`
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-cond" >&5
  6642. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wduplicated-cond... " >&6; }
  6643. if eval \${$as_CACHEVAR+:} false; then :
  6644. $as_echo_n "(cached) " >&6
  6645. else
  6646. ax_check_save_flags=$CFLAGS
  6647. CFLAGS="$CFLAGS $CWFLAGS -Wduplicated-cond"
  6648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6649. /* end confdefs.h. */
  6650. #include <time.h>
  6651. int
  6652. main ()
  6653. {
  6654. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6655. ;
  6656. return 0;
  6657. }
  6658. _ACEOF
  6659. if ac_fn_c_try_link "$LINENO"; then :
  6660. eval "$as_CACHEVAR=yes"
  6661. else
  6662. eval "$as_CACHEVAR=no"
  6663. fi
  6664. rm -f core conftest.err conftest.$ac_objext \
  6665. conftest$ac_exeext conftest.$ac_ext
  6666. CFLAGS=$ax_check_save_flags
  6667. fi
  6668. eval ac_res=\$$as_CACHEVAR
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6670. $as_echo "$ac_res" >&6; }
  6671. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6672. CWFLAGS="$CWFLAGS -Wduplicated-cond"
  6673. else
  6674. :
  6675. fi
  6676. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
  6678. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
  6679. if eval \${$as_CACHEVAR+:} false; then :
  6680. $as_echo_n "(cached) " >&6
  6681. else
  6682. ax_check_save_flags=$CFLAGS
  6683. CFLAGS="$CFLAGS $CWFLAGS -Wfloat-equal"
  6684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6685. /* end confdefs.h. */
  6686. #include <time.h>
  6687. int
  6688. main ()
  6689. {
  6690. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6691. ;
  6692. return 0;
  6693. }
  6694. _ACEOF
  6695. if ac_fn_c_try_link "$LINENO"; then :
  6696. eval "$as_CACHEVAR=yes"
  6697. else
  6698. eval "$as_CACHEVAR=no"
  6699. fi
  6700. rm -f core conftest.err conftest.$ac_objext \
  6701. conftest$ac_exeext conftest.$ac_ext
  6702. CFLAGS=$ax_check_save_flags
  6703. fi
  6704. eval ac_res=\$$as_CACHEVAR
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6706. $as_echo "$ac_res" >&6; }
  6707. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6708. CWFLAGS="$CWFLAGS -Wfloat-equal"
  6709. else
  6710. :
  6711. fi
  6712. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
  6714. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
  6715. if eval \${$as_CACHEVAR+:} false; then :
  6716. $as_echo_n "(cached) " >&6
  6717. else
  6718. ax_check_save_flags=$CFLAGS
  6719. CFLAGS="$CFLAGS $CWFLAGS -Wformat=2"
  6720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6721. /* end confdefs.h. */
  6722. #include <time.h>
  6723. int
  6724. main ()
  6725. {
  6726. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6727. ;
  6728. return 0;
  6729. }
  6730. _ACEOF
  6731. if ac_fn_c_try_link "$LINENO"; then :
  6732. eval "$as_CACHEVAR=yes"
  6733. else
  6734. eval "$as_CACHEVAR=no"
  6735. fi
  6736. rm -f core conftest.err conftest.$ac_objext \
  6737. conftest$ac_exeext conftest.$ac_ext
  6738. CFLAGS=$ax_check_save_flags
  6739. fi
  6740. eval ac_res=\$$as_CACHEVAR
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6742. $as_echo "$ac_res" >&6; }
  6743. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6744. CWFLAGS="$CWFLAGS -Wformat=2"
  6745. else
  6746. :
  6747. fi
  6748. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
  6750. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
  6751. if eval \${$as_CACHEVAR+:} false; then :
  6752. $as_echo_n "(cached) " >&6
  6753. else
  6754. ax_check_save_flags=$CFLAGS
  6755. CFLAGS="$CFLAGS $CWFLAGS -Wmissing-declarations"
  6756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6757. /* end confdefs.h. */
  6758. #include <time.h>
  6759. int
  6760. main ()
  6761. {
  6762. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6763. ;
  6764. return 0;
  6765. }
  6766. _ACEOF
  6767. if ac_fn_c_try_link "$LINENO"; then :
  6768. eval "$as_CACHEVAR=yes"
  6769. else
  6770. eval "$as_CACHEVAR=no"
  6771. fi
  6772. rm -f core conftest.err conftest.$ac_objext \
  6773. conftest$ac_exeext conftest.$ac_ext
  6774. CFLAGS=$ax_check_save_flags
  6775. fi
  6776. eval ac_res=\$$as_CACHEVAR
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6778. $as_echo "$ac_res" >&6; }
  6779. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6780. CWFLAGS="$CWFLAGS -Wmissing-declarations"
  6781. else
  6782. :
  6783. fi
  6784. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
  6786. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
  6787. if eval \${$as_CACHEVAR+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. ax_check_save_flags=$CFLAGS
  6791. CFLAGS="$CFLAGS $CWFLAGS -Wmissing-prototypes"
  6792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6793. /* end confdefs.h. */
  6794. #include <time.h>
  6795. int
  6796. main ()
  6797. {
  6798. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6799. ;
  6800. return 0;
  6801. }
  6802. _ACEOF
  6803. if ac_fn_c_try_link "$LINENO"; then :
  6804. eval "$as_CACHEVAR=yes"
  6805. else
  6806. eval "$as_CACHEVAR=no"
  6807. fi
  6808. rm -f core conftest.err conftest.$ac_objext \
  6809. conftest$ac_exeext conftest.$ac_ext
  6810. CFLAGS=$ax_check_save_flags
  6811. fi
  6812. eval ac_res=\$$as_CACHEVAR
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6814. $as_echo "$ac_res" >&6; }
  6815. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6816. CWFLAGS="$CWFLAGS -Wmissing-prototypes"
  6817. else
  6818. :
  6819. fi
  6820. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnested-externs" | $as_tr_sh`
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnested-externs" >&5
  6822. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnested-externs... " >&6; }
  6823. if eval \${$as_CACHEVAR+:} false; then :
  6824. $as_echo_n "(cached) " >&6
  6825. else
  6826. ax_check_save_flags=$CFLAGS
  6827. CFLAGS="$CFLAGS $CWFLAGS -Wnested-externs"
  6828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6829. /* end confdefs.h. */
  6830. #include <time.h>
  6831. int
  6832. main ()
  6833. {
  6834. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6835. ;
  6836. return 0;
  6837. }
  6838. _ACEOF
  6839. if ac_fn_c_try_link "$LINENO"; then :
  6840. eval "$as_CACHEVAR=yes"
  6841. else
  6842. eval "$as_CACHEVAR=no"
  6843. fi
  6844. rm -f core conftest.err conftest.$ac_objext \
  6845. conftest$ac_exeext conftest.$ac_ext
  6846. CFLAGS=$ax_check_save_flags
  6847. fi
  6848. eval ac_res=\$$as_CACHEVAR
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6850. $as_echo "$ac_res" >&6; }
  6851. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6852. CWFLAGS="$CWFLAGS -Wnested-externs"
  6853. else
  6854. :
  6855. fi
  6856. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-type-limits" | $as_tr_sh`
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-type-limits" >&5
  6858. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-type-limits... " >&6; }
  6859. if eval \${$as_CACHEVAR+:} false; then :
  6860. $as_echo_n "(cached) " >&6
  6861. else
  6862. ax_check_save_flags=$CFLAGS
  6863. CFLAGS="$CFLAGS $CWFLAGS -Wno-type-limits"
  6864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6865. /* end confdefs.h. */
  6866. #include <time.h>
  6867. int
  6868. main ()
  6869. {
  6870. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6871. ;
  6872. return 0;
  6873. }
  6874. _ACEOF
  6875. if ac_fn_c_try_link "$LINENO"; then :
  6876. eval "$as_CACHEVAR=yes"
  6877. else
  6878. eval "$as_CACHEVAR=no"
  6879. fi
  6880. rm -f core conftest.err conftest.$ac_objext \
  6881. conftest$ac_exeext conftest.$ac_ext
  6882. CFLAGS=$ax_check_save_flags
  6883. fi
  6884. eval ac_res=\$$as_CACHEVAR
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6886. $as_echo "$ac_res" >&6; }
  6887. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6888. CWFLAGS="$CWFLAGS -Wno-type-limits"
  6889. else
  6890. :
  6891. fi
  6892. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-pragmas" | $as_tr_sh`
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas" >&5
  6894. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas... " >&6; }
  6895. if eval \${$as_CACHEVAR+:} false; then :
  6896. $as_echo_n "(cached) " >&6
  6897. else
  6898. ax_check_save_flags=$CFLAGS
  6899. CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-pragmas"
  6900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6901. /* end confdefs.h. */
  6902. #include <time.h>
  6903. int
  6904. main ()
  6905. {
  6906. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6907. ;
  6908. return 0;
  6909. }
  6910. _ACEOF
  6911. if ac_fn_c_try_link "$LINENO"; then :
  6912. eval "$as_CACHEVAR=yes"
  6913. else
  6914. eval "$as_CACHEVAR=no"
  6915. fi
  6916. rm -f core conftest.err conftest.$ac_objext \
  6917. conftest$ac_exeext conftest.$ac_ext
  6918. CFLAGS=$ax_check_save_flags
  6919. fi
  6920. eval ac_res=\$$as_CACHEVAR
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6922. $as_echo "$ac_res" >&6; }
  6923. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6924. CWFLAGS="$CWFLAGS -Wno-unknown-pragmas"
  6925. else
  6926. :
  6927. fi
  6928. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
  6930. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
  6931. if eval \${$as_CACHEVAR+:} false; then :
  6932. $as_echo_n "(cached) " >&6
  6933. else
  6934. ax_check_save_flags=$CFLAGS
  6935. CFLAGS="$CFLAGS $CWFLAGS -Wnormalized=id"
  6936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6937. /* end confdefs.h. */
  6938. #include <time.h>
  6939. int
  6940. main ()
  6941. {
  6942. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6943. ;
  6944. return 0;
  6945. }
  6946. _ACEOF
  6947. if ac_fn_c_try_link "$LINENO"; then :
  6948. eval "$as_CACHEVAR=yes"
  6949. else
  6950. eval "$as_CACHEVAR=no"
  6951. fi
  6952. rm -f core conftest.err conftest.$ac_objext \
  6953. conftest$ac_exeext conftest.$ac_ext
  6954. CFLAGS=$ax_check_save_flags
  6955. fi
  6956. eval ac_res=\$$as_CACHEVAR
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6958. $as_echo "$ac_res" >&6; }
  6959. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6960. CWFLAGS="$CWFLAGS -Wnormalized=id"
  6961. else
  6962. :
  6963. fi
  6964. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnull-dereference" | $as_tr_sh`
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnull-dereference" >&5
  6966. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnull-dereference... " >&6; }
  6967. if eval \${$as_CACHEVAR+:} false; then :
  6968. $as_echo_n "(cached) " >&6
  6969. else
  6970. ax_check_save_flags=$CFLAGS
  6971. CFLAGS="$CFLAGS $CWFLAGS -Wnull-dereference"
  6972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6973. /* end confdefs.h. */
  6974. #include <time.h>
  6975. int
  6976. main ()
  6977. {
  6978. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  6979. ;
  6980. return 0;
  6981. }
  6982. _ACEOF
  6983. if ac_fn_c_try_link "$LINENO"; then :
  6984. eval "$as_CACHEVAR=yes"
  6985. else
  6986. eval "$as_CACHEVAR=no"
  6987. fi
  6988. rm -f core conftest.err conftest.$ac_objext \
  6989. conftest$ac_exeext conftest.$ac_ext
  6990. CFLAGS=$ax_check_save_flags
  6991. fi
  6992. eval ac_res=\$$as_CACHEVAR
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6994. $as_echo "$ac_res" >&6; }
  6995. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6996. CWFLAGS="$CWFLAGS -Wnull-dereference"
  6997. else
  6998. :
  6999. fi
  7000. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wold-style-declaration" | $as_tr_sh`
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wold-style-declaration" >&5
  7002. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wold-style-declaration... " >&6; }
  7003. if eval \${$as_CACHEVAR+:} false; then :
  7004. $as_echo_n "(cached) " >&6
  7005. else
  7006. ax_check_save_flags=$CFLAGS
  7007. CFLAGS="$CFLAGS $CWFLAGS -Wold-style-declaration"
  7008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7009. /* end confdefs.h. */
  7010. #include <time.h>
  7011. int
  7012. main ()
  7013. {
  7014. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  7015. ;
  7016. return 0;
  7017. }
  7018. _ACEOF
  7019. if ac_fn_c_try_link "$LINENO"; then :
  7020. eval "$as_CACHEVAR=yes"
  7021. else
  7022. eval "$as_CACHEVAR=no"
  7023. fi
  7024. rm -f core conftest.err conftest.$ac_objext \
  7025. conftest$ac_exeext conftest.$ac_ext
  7026. CFLAGS=$ax_check_save_flags
  7027. fi
  7028. eval ac_res=\$$as_CACHEVAR
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7030. $as_echo "$ac_res" >&6; }
  7031. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  7032. CWFLAGS="$CWFLAGS -Wold-style-declaration"
  7033. else
  7034. :
  7035. fi
  7036. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
  7038. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
  7039. if eval \${$as_CACHEVAR+:} false; then :
  7040. $as_echo_n "(cached) " >&6
  7041. else
  7042. ax_check_save_flags=$CFLAGS
  7043. CFLAGS="$CFLAGS $CWFLAGS -Wpointer-arith"
  7044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7045. /* end confdefs.h. */
  7046. #include <time.h>
  7047. int
  7048. main ()
  7049. {
  7050. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  7051. ;
  7052. return 0;
  7053. }
  7054. _ACEOF
  7055. if ac_fn_c_try_link "$LINENO"; then :
  7056. eval "$as_CACHEVAR=yes"
  7057. else
  7058. eval "$as_CACHEVAR=no"
  7059. fi
  7060. rm -f core conftest.err conftest.$ac_objext \
  7061. conftest$ac_exeext conftest.$ac_ext
  7062. CFLAGS=$ax_check_save_flags
  7063. fi
  7064. eval ac_res=\$$as_CACHEVAR
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7066. $as_echo "$ac_res" >&6; }
  7067. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  7068. CWFLAGS="$CWFLAGS -Wpointer-arith"
  7069. else
  7070. :
  7071. fi
  7072. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
  7074. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
  7075. if eval \${$as_CACHEVAR+:} false; then :
  7076. $as_echo_n "(cached) " >&6
  7077. else
  7078. ax_check_save_flags=$CFLAGS
  7079. CFLAGS="$CFLAGS $CWFLAGS -Wredundant-decls"
  7080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7081. /* end confdefs.h. */
  7082. #include <time.h>
  7083. int
  7084. main ()
  7085. {
  7086. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  7087. ;
  7088. return 0;
  7089. }
  7090. _ACEOF
  7091. if ac_fn_c_try_link "$LINENO"; then :
  7092. eval "$as_CACHEVAR=yes"
  7093. else
  7094. eval "$as_CACHEVAR=no"
  7095. fi
  7096. rm -f core conftest.err conftest.$ac_objext \
  7097. conftest$ac_exeext conftest.$ac_ext
  7098. CFLAGS=$ax_check_save_flags
  7099. fi
  7100. eval ac_res=\$$as_CACHEVAR
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7102. $as_echo "$ac_res" >&6; }
  7103. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  7104. CWFLAGS="$CWFLAGS -Wredundant-decls"
  7105. else
  7106. :
  7107. fi
  7108. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wshorten-64-to-32" | $as_tr_sh`
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32" >&5
  7110. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32... " >&6; }
  7111. if eval \${$as_CACHEVAR+:} false; then :
  7112. $as_echo_n "(cached) " >&6
  7113. else
  7114. ax_check_save_flags=$CFLAGS
  7115. CFLAGS="$CFLAGS $CWFLAGS -Wshorten-64-to-32"
  7116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7117. /* end confdefs.h. */
  7118. #include <time.h>
  7119. int
  7120. main ()
  7121. {
  7122. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  7123. ;
  7124. return 0;
  7125. }
  7126. _ACEOF
  7127. if ac_fn_c_try_link "$LINENO"; then :
  7128. eval "$as_CACHEVAR=yes"
  7129. else
  7130. eval "$as_CACHEVAR=no"
  7131. fi
  7132. rm -f core conftest.err conftest.$ac_objext \
  7133. conftest$ac_exeext conftest.$ac_ext
  7134. CFLAGS=$ax_check_save_flags
  7135. fi
  7136. eval ac_res=\$$as_CACHEVAR
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7138. $as_echo "$ac_res" >&6; }
  7139. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  7140. CWFLAGS="$CWFLAGS -Wshorten-64-to-32"
  7141. else
  7142. :
  7143. fi
  7144. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
  7146. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
  7147. if eval \${$as_CACHEVAR+:} false; then :
  7148. $as_echo_n "(cached) " >&6
  7149. else
  7150. ax_check_save_flags=$CFLAGS
  7151. CFLAGS="$CFLAGS $CWFLAGS -Wstrict-prototypes"
  7152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7153. /* end confdefs.h. */
  7154. #include <time.h>
  7155. int
  7156. main ()
  7157. {
  7158. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  7159. ;
  7160. return 0;
  7161. }
  7162. _ACEOF
  7163. if ac_fn_c_try_link "$LINENO"; then :
  7164. eval "$as_CACHEVAR=yes"
  7165. else
  7166. eval "$as_CACHEVAR=no"
  7167. fi
  7168. rm -f core conftest.err conftest.$ac_objext \
  7169. conftest$ac_exeext conftest.$ac_ext
  7170. CFLAGS=$ax_check_save_flags
  7171. fi
  7172. eval ac_res=\$$as_CACHEVAR
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7174. $as_echo "$ac_res" >&6; }
  7175. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  7176. CWFLAGS="$CWFLAGS -Wstrict-prototypes"
  7177. else
  7178. :
  7179. fi
  7180. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
  7182. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
  7183. if eval \${$as_CACHEVAR+:} false; then :
  7184. $as_echo_n "(cached) " >&6
  7185. else
  7186. ax_check_save_flags=$CFLAGS
  7187. CFLAGS="$CFLAGS $CWFLAGS -Wswitch-enum"
  7188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7189. /* end confdefs.h. */
  7190. #include <time.h>
  7191. int
  7192. main ()
  7193. {
  7194. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  7195. ;
  7196. return 0;
  7197. }
  7198. _ACEOF
  7199. if ac_fn_c_try_link "$LINENO"; then :
  7200. eval "$as_CACHEVAR=yes"
  7201. else
  7202. eval "$as_CACHEVAR=no"
  7203. fi
  7204. rm -f core conftest.err conftest.$ac_objext \
  7205. conftest$ac_exeext conftest.$ac_ext
  7206. CFLAGS=$ax_check_save_flags
  7207. fi
  7208. eval ac_res=\$$as_CACHEVAR
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7210. $as_echo "$ac_res" >&6; }
  7211. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  7212. CWFLAGS="$CWFLAGS -Wswitch-enum"
  7213. else
  7214. :
  7215. fi
  7216. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
  7218. $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
  7219. if eval \${$as_CACHEVAR+:} false; then :
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. ax_check_save_flags=$CFLAGS
  7223. CFLAGS="$CFLAGS $CWFLAGS -Wvariable-decl"
  7224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7225. /* end confdefs.h. */
  7226. #include <time.h>
  7227. int
  7228. main ()
  7229. {
  7230. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  7231. ;
  7232. return 0;
  7233. }
  7234. _ACEOF
  7235. if ac_fn_c_try_link "$LINENO"; then :
  7236. eval "$as_CACHEVAR=yes"
  7237. else
  7238. eval "$as_CACHEVAR=no"
  7239. fi
  7240. rm -f core conftest.err conftest.$ac_objext \
  7241. conftest$ac_exeext conftest.$ac_ext
  7242. CFLAGS=$ax_check_save_flags
  7243. fi
  7244. eval ac_res=\$$as_CACHEVAR
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7246. $as_echo "$ac_res" >&6; }
  7247. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  7248. CWFLAGS="$CWFLAGS -Wvariable-decl"
  7249. else
  7250. :
  7251. fi
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
  7253. $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
  7254. if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
  7255. $as_echo_n "(cached) " >&6
  7256. else
  7257. ax_check_save_flags=$LDFLAGS
  7258. LDFLAGS="$LDFLAGS -Wl,-z,relro"
  7259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7260. /* end confdefs.h. */
  7261. #include <time.h>
  7262. int
  7263. main ()
  7264. {
  7265. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  7266. ;
  7267. return 0;
  7268. }
  7269. _ACEOF
  7270. if ac_fn_c_try_link "$LINENO"; then :
  7271. ax_cv_check_ldflags___Wl__z_relro=yes
  7272. else
  7273. ax_cv_check_ldflags___Wl__z_relro=no
  7274. fi
  7275. rm -f core conftest.err conftest.$ac_objext \
  7276. conftest$ac_exeext conftest.$ac_ext
  7277. LDFLAGS=$ax_check_save_flags
  7278. fi
  7279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
  7280. $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
  7281. if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
  7282. LDFLAGS="$LDFLAGS -Wl,-z,relro"
  7283. else
  7284. :
  7285. fi
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
  7287. $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
  7288. if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
  7289. $as_echo_n "(cached) " >&6
  7290. else
  7291. ax_check_save_flags=$LDFLAGS
  7292. LDFLAGS="$LDFLAGS -Wl,-z,now"
  7293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7294. /* end confdefs.h. */
  7295. #include <time.h>
  7296. int
  7297. main ()
  7298. {
  7299. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  7300. ;
  7301. return 0;
  7302. }
  7303. _ACEOF
  7304. if ac_fn_c_try_link "$LINENO"; then :
  7305. ax_cv_check_ldflags___Wl__z_now=yes
  7306. else
  7307. ax_cv_check_ldflags___Wl__z_now=no
  7308. fi
  7309. rm -f core conftest.err conftest.$ac_objext \
  7310. conftest$ac_exeext conftest.$ac_ext
  7311. LDFLAGS=$ax_check_save_flags
  7312. fi
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
  7314. $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
  7315. if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
  7316. LDFLAGS="$LDFLAGS -Wl,-z,now"
  7317. else
  7318. :
  7319. fi
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
  7321. $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
  7322. if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
  7323. $as_echo_n "(cached) " >&6
  7324. else
  7325. ax_check_save_flags=$LDFLAGS
  7326. LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
  7327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7328. /* end confdefs.h. */
  7329. #include <time.h>
  7330. int
  7331. main ()
  7332. {
  7333. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  7334. ;
  7335. return 0;
  7336. }
  7337. _ACEOF
  7338. if ac_fn_c_try_link "$LINENO"; then :
  7339. ax_cv_check_ldflags___Wl__z_noexecstack=yes
  7340. else
  7341. ax_cv_check_ldflags___Wl__z_noexecstack=no
  7342. fi
  7343. rm -f core conftest.err conftest.$ac_objext \
  7344. conftest$ac_exeext conftest.$ac_ext
  7345. LDFLAGS=$ax_check_save_flags
  7346. fi
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
  7348. $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
  7349. if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
  7350. LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
  7351. else
  7352. :
  7353. fi
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a broken clang + AVX512 combination" >&5
  7355. $as_echo_n "checking for a broken clang + AVX512 combination... " >&6; }
  7356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7357. /* end confdefs.h. */
  7358. int
  7359. main ()
  7360. {
  7361. #if !(defined(__AVX512F__) && defined(__clang__) && __clang_major__ < 4)
  7362. #error Not a broken clang + AVX512 combination
  7363. #endif
  7364. ;
  7365. return 0;
  7366. }
  7367. _ACEOF
  7368. if ac_fn_c_try_compile "$LINENO"; then :
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - disabling AVX512 optimizations" >&5
  7370. $as_echo "yes - disabling AVX512 optimizations" >&6; }
  7371. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -mno-avx512f" | $as_tr_sh`
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -mno-avx512f" >&5
  7373. $as_echo_n "checking whether C compiler accepts $CFLAGS -mno-avx512f... " >&6; }
  7374. if eval \${$as_CACHEVAR+:} false; then :
  7375. $as_echo_n "(cached) " >&6
  7376. else
  7377. ax_check_save_flags=$CFLAGS
  7378. CFLAGS="$CFLAGS $CFLAGS -mno-avx512f"
  7379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7380. /* end confdefs.h. */
  7381. #include <time.h>
  7382. int
  7383. main ()
  7384. {
  7385. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  7386. ;
  7387. return 0;
  7388. }
  7389. _ACEOF
  7390. if ac_fn_c_try_link "$LINENO"; then :
  7391. eval "$as_CACHEVAR=yes"
  7392. else
  7393. eval "$as_CACHEVAR=no"
  7394. fi
  7395. rm -f core conftest.err conftest.$ac_objext \
  7396. conftest$ac_exeext conftest.$ac_ext
  7397. CFLAGS=$ax_check_save_flags
  7398. fi
  7399. eval ac_res=\$$as_CACHEVAR
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7401. $as_echo "$ac_res" >&6; }
  7402. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  7403. CFLAGS="$CFLAGS -mno-avx512f"
  7404. else
  7405. :
  7406. fi
  7407. else
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7409. $as_echo "no" >&6; }
  7410. fi
  7411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether segmentation violations can be caught when using the C compiler" >&5
  7413. $as_echo_n "checking whether segmentation violations can be caught when using the C compiler... " >&6; }
  7414. if ${ax_cv_check_cCATCHABLE_SEGV+:} false; then :
  7415. $as_echo_n "(cached) " >&6
  7416. else
  7417. if test "$cross_compiling" = yes; then :
  7418. ax_cv_check_cCATCHABLE_SEGV=unknown
  7419. else
  7420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7421. /* end confdefs.h. */
  7422. #include <signal.h>
  7423. #include <stdlib.h>
  7424. static void sig(int _) { exit(0); }
  7425. int
  7426. main ()
  7427. {
  7428. volatile unsigned char * volatile x = (volatile unsigned char *) malloc(8);
  7429. size_t i;
  7430. signal(SIGSEGV, sig);
  7431. signal(SIGBUS, sig);
  7432. #if !defined(__SANITIZE_ADDRESS__) && !defined(__EMSCRIPTEN__)
  7433. for (i = 0; i < 10000000; i += 1024) { x[-i] = x[i] = (unsigned char) i; }
  7434. #endif
  7435. free((void *) x);
  7436. exit(1)
  7437. ;
  7438. return 0;
  7439. }
  7440. _ACEOF
  7441. if ac_fn_c_try_run "$LINENO"; then :
  7442. ax_cv_check_cCATCHABLE_SEGV=yes
  7443. else
  7444. ax_cv_check_cCATCHABLE_SEGV=no
  7445. fi
  7446. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7447. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7448. fi
  7449. fi
  7450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cCATCHABLE_SEGV" >&5
  7451. $as_echo "$ax_cv_check_cCATCHABLE_SEGV" >&6; }
  7452. if test "x$ax_cv_check_cCATCHABLE_SEGV" = xyes; then :
  7453. $as_echo "@%:@define HAVE_CATCHABLE_SEGV 1" >>confdefs.h
  7454. else
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On this platform, segmentation violations cannot be caught using signal handlers. This is expected if you enabled a tool such as Address Sanitizer (-fsanitize=address), but be aware that using Address Sanitizer may also significantly reduce performance." >&5
  7456. $as_echo "$as_me: WARNING: On this platform, segmentation violations cannot be caught using signal handlers. This is expected if you enabled a tool such as Address Sanitizer (-fsanitize=address), but be aware that using Address Sanitizer may also significantly reduce performance." >&2;}
  7457. fi
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SIGABRT can be caught when using the C compiler" >&5
  7459. $as_echo_n "checking whether SIGABRT can be caught when using the C compiler... " >&6; }
  7460. if ${ax_cv_check_cCATCHABLE_ABRT+:} false; then :
  7461. $as_echo_n "(cached) " >&6
  7462. else
  7463. if test "$cross_compiling" = yes; then :
  7464. ax_cv_check_cCATCHABLE_ABRT=unknown
  7465. else
  7466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7467. /* end confdefs.h. */
  7468. #include <signal.h>
  7469. #include <stdlib.h>
  7470. #ifndef SIGABRT
  7471. # error SIGABRT is not defined
  7472. #endif
  7473. static void sigabrt_handler_3(int _)
  7474. {
  7475. exit(0);
  7476. }
  7477. static void sigabrt_handler_2(int _)
  7478. {
  7479. signal(SIGABRT, sigabrt_handler_3);
  7480. abort();
  7481. exit(1);
  7482. }
  7483. static void sigabrt_handler_1(int _)
  7484. {
  7485. signal(SIGABRT, sigabrt_handler_2);
  7486. abort();
  7487. exit(1);
  7488. }
  7489. int
  7490. main ()
  7491. {
  7492. signal(SIGABRT, sigabrt_handler_1);
  7493. abort();
  7494. exit(1);
  7495. ;
  7496. return 0;
  7497. }
  7498. _ACEOF
  7499. if ac_fn_c_try_run "$LINENO"; then :
  7500. ax_cv_check_cCATCHABLE_ABRT=yes
  7501. else
  7502. ax_cv_check_cCATCHABLE_ABRT=no
  7503. fi
  7504. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7505. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7506. fi
  7507. fi
  7508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cCATCHABLE_ABRT" >&5
  7509. $as_echo "$ax_cv_check_cCATCHABLE_ABRT" >&6; }
  7510. if test "x$ax_cv_check_cCATCHABLE_ABRT" = xyes; then :
  7511. $as_echo "@%:@define HAVE_CATCHABLE_ABRT 1" >>confdefs.h
  7512. else
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On this platform, SIGABRT cannot be caught using signal handlers." >&5
  7514. $as_echo "$as_me: WARNING: On this platform, SIGABRT cannot be caught using signal handlers." >&2;}
  7515. fi
  7516. case `pwd` in
  7517. *\ * | *\ *)
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  7519. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  7520. esac
  7521. macro_version='2.4.6'
  7522. macro_revision='2.4.6'
  7523. ltmain=$ac_aux_dir/ltmain.sh
  7524. # Backslashify metacharacters that are still active within
  7525. # double-quoted strings.
  7526. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7527. # Same as above, but do not quote variable references.
  7528. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7529. # Sed substitution to delay expansion of an escaped shell variable in a
  7530. # double_quote_subst'ed string.
  7531. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7532. # Sed substitution to delay expansion of an escaped single quote.
  7533. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7534. # Sed substitution to avoid accidental globbing in evaled expressions
  7535. no_glob_subst='s/\*/\\\*/g'
  7536. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7537. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  7538. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  7539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  7540. $as_echo_n "checking how to print strings... " >&6; }
  7541. # Test print first, because it will be a builtin if present.
  7542. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  7543. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  7544. ECHO='print -r --'
  7545. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  7546. ECHO='printf %s\n'
  7547. else
  7548. # Use this function as a fallback that always works.
  7549. func_fallback_echo ()
  7550. {
  7551. eval 'cat <<_LTECHO_EOF
  7552. $1
  7553. _LTECHO_EOF'
  7554. }
  7555. ECHO='func_fallback_echo'
  7556. fi
  7557. # func_echo_all arg...
  7558. # Invoke $ECHO with all args, space-separated.
  7559. func_echo_all ()
  7560. {
  7561. $ECHO ""
  7562. }
  7563. case $ECHO in
  7564. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  7565. $as_echo "printf" >&6; } ;;
  7566. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  7567. $as_echo "print -r" >&6; } ;;
  7568. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  7569. $as_echo "cat" >&6; } ;;
  7570. esac
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  7572. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  7573. if ${ac_cv_path_SED+:} false; then :
  7574. $as_echo_n "(cached) " >&6
  7575. else
  7576. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7577. for ac_i in 1 2 3 4 5 6 7; do
  7578. ac_script="$ac_script$as_nl$ac_script"
  7579. done
  7580. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  7581. { ac_script=; unset ac_script;}
  7582. if test -z "$SED"; then
  7583. ac_path_SED_found=false
  7584. # Loop through the user's path and test for each of PROGNAME-LIST
  7585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7586. for as_dir in $PATH
  7587. do
  7588. IFS=$as_save_IFS
  7589. test -z "$as_dir" && as_dir=.
  7590. for ac_prog in sed gsed; do
  7591. for ac_exec_ext in '' $ac_executable_extensions; do
  7592. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  7593. as_fn_executable_p "$ac_path_SED" || continue
  7594. # Check for GNU ac_path_SED and select it if it is found.
  7595. # Check for GNU $ac_path_SED
  7596. case `"$ac_path_SED" --version 2>&1` in
  7597. *GNU*)
  7598. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7599. *)
  7600. ac_count=0
  7601. $as_echo_n 0123456789 >"conftest.in"
  7602. while :
  7603. do
  7604. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7605. mv "conftest.tmp" "conftest.in"
  7606. cp "conftest.in" "conftest.nl"
  7607. $as_echo '' >> "conftest.nl"
  7608. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7609. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7610. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7611. if test $ac_count -gt ${ac_path_SED_max-0}; then
  7612. # Best one so far, save it but keep looking for a better one
  7613. ac_cv_path_SED="$ac_path_SED"
  7614. ac_path_SED_max=$ac_count
  7615. fi
  7616. # 10*(2^10) chars as input seems more than enough
  7617. test $ac_count -gt 10 && break
  7618. done
  7619. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7620. esac
  7621. $ac_path_SED_found && break 3
  7622. done
  7623. done
  7624. done
  7625. IFS=$as_save_IFS
  7626. if test -z "$ac_cv_path_SED"; then
  7627. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  7628. fi
  7629. else
  7630. ac_cv_path_SED=$SED
  7631. fi
  7632. fi
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  7634. $as_echo "$ac_cv_path_SED" >&6; }
  7635. SED="$ac_cv_path_SED"
  7636. rm -f conftest.sed
  7637. test -z "$SED" && SED=sed
  7638. Xsed="$SED -e 1s/^X//"
  7639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  7640. $as_echo_n "checking for fgrep... " >&6; }
  7641. if ${ac_cv_path_FGREP+:} false; then :
  7642. $as_echo_n "(cached) " >&6
  7643. else
  7644. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  7645. then ac_cv_path_FGREP="$GREP -F"
  7646. else
  7647. if test -z "$FGREP"; then
  7648. ac_path_FGREP_found=false
  7649. # Loop through the user's path and test for each of PROGNAME-LIST
  7650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7651. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7652. do
  7653. IFS=$as_save_IFS
  7654. test -z "$as_dir" && as_dir=.
  7655. for ac_prog in fgrep; do
  7656. for ac_exec_ext in '' $ac_executable_extensions; do
  7657. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  7658. as_fn_executable_p "$ac_path_FGREP" || continue
  7659. # Check for GNU ac_path_FGREP and select it if it is found.
  7660. # Check for GNU $ac_path_FGREP
  7661. case `"$ac_path_FGREP" --version 2>&1` in
  7662. *GNU*)
  7663. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  7664. *)
  7665. ac_count=0
  7666. $as_echo_n 0123456789 >"conftest.in"
  7667. while :
  7668. do
  7669. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7670. mv "conftest.tmp" "conftest.in"
  7671. cp "conftest.in" "conftest.nl"
  7672. $as_echo 'FGREP' >> "conftest.nl"
  7673. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7674. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7675. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7676. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  7677. # Best one so far, save it but keep looking for a better one
  7678. ac_cv_path_FGREP="$ac_path_FGREP"
  7679. ac_path_FGREP_max=$ac_count
  7680. fi
  7681. # 10*(2^10) chars as input seems more than enough
  7682. test $ac_count -gt 10 && break
  7683. done
  7684. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7685. esac
  7686. $ac_path_FGREP_found && break 3
  7687. done
  7688. done
  7689. done
  7690. IFS=$as_save_IFS
  7691. if test -z "$ac_cv_path_FGREP"; then
  7692. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  7693. fi
  7694. else
  7695. ac_cv_path_FGREP=$FGREP
  7696. fi
  7697. fi
  7698. fi
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  7700. $as_echo "$ac_cv_path_FGREP" >&6; }
  7701. FGREP="$ac_cv_path_FGREP"
  7702. test -z "$GREP" && GREP=grep
  7703. @%:@ Check whether --with-gnu-ld was given.
  7704. if test "${with_gnu_ld+set}" = set; then :
  7705. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  7706. else
  7707. with_gnu_ld=no
  7708. fi
  7709. ac_prog=ld
  7710. if test yes = "$GCC"; then
  7711. # Check if gcc -print-prog-name=ld gives a path.
  7712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  7713. $as_echo_n "checking for ld used by $CC... " >&6; }
  7714. case $host in
  7715. *-*-mingw*)
  7716. # gcc leaves a trailing carriage return, which upsets mingw
  7717. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7718. *)
  7719. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7720. esac
  7721. case $ac_prog in
  7722. # Accept absolute paths.
  7723. [\\/]* | ?:[\\/]*)
  7724. re_direlt='/[^/][^/]*/\.\./'
  7725. # Canonicalize the pathname of ld
  7726. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  7727. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  7728. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  7729. done
  7730. test -z "$LD" && LD=$ac_prog
  7731. ;;
  7732. "")
  7733. # If it fails, then pretend we aren't using GCC.
  7734. ac_prog=ld
  7735. ;;
  7736. *)
  7737. # If it is relative, then search for the first ld in PATH.
  7738. with_gnu_ld=unknown
  7739. ;;
  7740. esac
  7741. elif test yes = "$with_gnu_ld"; then
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7743. $as_echo_n "checking for GNU ld... " >&6; }
  7744. else
  7745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7746. $as_echo_n "checking for non-GNU ld... " >&6; }
  7747. fi
  7748. if ${lt_cv_path_LD+:} false; then :
  7749. $as_echo_n "(cached) " >&6
  7750. else
  7751. if test -z "$LD"; then
  7752. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7753. for ac_dir in $PATH; do
  7754. IFS=$lt_save_ifs
  7755. test -z "$ac_dir" && ac_dir=.
  7756. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7757. lt_cv_path_LD=$ac_dir/$ac_prog
  7758. # Check to see if the program is GNU ld. I'd rather use --version,
  7759. # but apparently some variants of GNU ld only accept -v.
  7760. # Break only if it was the GNU/non-GNU ld that we prefer.
  7761. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7762. *GNU* | *'with BFD'*)
  7763. test no != "$with_gnu_ld" && break
  7764. ;;
  7765. *)
  7766. test yes != "$with_gnu_ld" && break
  7767. ;;
  7768. esac
  7769. fi
  7770. done
  7771. IFS=$lt_save_ifs
  7772. else
  7773. lt_cv_path_LD=$LD # Let the user override the test with a path.
  7774. fi
  7775. fi
  7776. LD=$lt_cv_path_LD
  7777. if test -n "$LD"; then
  7778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7779. $as_echo "$LD" >&6; }
  7780. else
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7782. $as_echo "no" >&6; }
  7783. fi
  7784. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  7785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7786. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  7787. if ${lt_cv_prog_gnu_ld+:} false; then :
  7788. $as_echo_n "(cached) " >&6
  7789. else
  7790. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7791. case `$LD -v 2>&1 </dev/null` in
  7792. *GNU* | *'with BFD'*)
  7793. lt_cv_prog_gnu_ld=yes
  7794. ;;
  7795. *)
  7796. lt_cv_prog_gnu_ld=no
  7797. ;;
  7798. esac
  7799. fi
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  7801. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  7802. with_gnu_ld=$lt_cv_prog_gnu_ld
  7803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  7804. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7805. if ${lt_cv_path_NM+:} false; then :
  7806. $as_echo_n "(cached) " >&6
  7807. else
  7808. if test -n "$NM"; then
  7809. # Let the user override the test.
  7810. lt_cv_path_NM=$NM
  7811. else
  7812. lt_nm_to_check=${ac_tool_prefix}nm
  7813. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7814. lt_nm_to_check="$lt_nm_to_check nm"
  7815. fi
  7816. for lt_tmp_nm in $lt_nm_to_check; do
  7817. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7818. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7819. IFS=$lt_save_ifs
  7820. test -z "$ac_dir" && ac_dir=.
  7821. tmp_nm=$ac_dir/$lt_tmp_nm
  7822. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  7823. # Check to see if the nm accepts a BSD-compat flag.
  7824. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  7825. # nm: unknown option "B" ignored
  7826. # Tru64's nm complains that /dev/null is an invalid object file
  7827. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  7828. case $build_os in
  7829. mingw*) lt_bad_file=conftest.nm/nofile ;;
  7830. *) lt_bad_file=/dev/null ;;
  7831. esac
  7832. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  7833. *$lt_bad_file* | *'Invalid file or object type'*)
  7834. lt_cv_path_NM="$tmp_nm -B"
  7835. break 2
  7836. ;;
  7837. *)
  7838. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7839. */dev/null*)
  7840. lt_cv_path_NM="$tmp_nm -p"
  7841. break 2
  7842. ;;
  7843. *)
  7844. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7845. continue # so that we can try to find one that supports BSD flags
  7846. ;;
  7847. esac
  7848. ;;
  7849. esac
  7850. fi
  7851. done
  7852. IFS=$lt_save_ifs
  7853. done
  7854. : ${lt_cv_path_NM=no}
  7855. fi
  7856. fi
  7857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7858. $as_echo "$lt_cv_path_NM" >&6; }
  7859. if test no != "$lt_cv_path_NM"; then
  7860. NM=$lt_cv_path_NM
  7861. else
  7862. # Didn't find any BSD compatible name lister, look for dumpbin.
  7863. if test -n "$DUMPBIN"; then :
  7864. # Let the user override the test.
  7865. else
  7866. if test -n "$ac_tool_prefix"; then
  7867. for ac_prog in dumpbin "link -dump"
  7868. do
  7869. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7870. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7872. $as_echo_n "checking for $ac_word... " >&6; }
  7873. if ${ac_cv_prog_DUMPBIN+:} false; then :
  7874. $as_echo_n "(cached) " >&6
  7875. else
  7876. if test -n "$DUMPBIN"; then
  7877. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  7878. else
  7879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7880. for as_dir in $PATH
  7881. do
  7882. IFS=$as_save_IFS
  7883. test -z "$as_dir" && as_dir=.
  7884. for ac_exec_ext in '' $ac_executable_extensions; do
  7885. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7886. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  7887. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7888. break 2
  7889. fi
  7890. done
  7891. done
  7892. IFS=$as_save_IFS
  7893. fi
  7894. fi
  7895. DUMPBIN=$ac_cv_prog_DUMPBIN
  7896. if test -n "$DUMPBIN"; then
  7897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  7898. $as_echo "$DUMPBIN" >&6; }
  7899. else
  7900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7901. $as_echo "no" >&6; }
  7902. fi
  7903. test -n "$DUMPBIN" && break
  7904. done
  7905. fi
  7906. if test -z "$DUMPBIN"; then
  7907. ac_ct_DUMPBIN=$DUMPBIN
  7908. for ac_prog in dumpbin "link -dump"
  7909. do
  7910. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7911. set dummy $ac_prog; ac_word=$2
  7912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7913. $as_echo_n "checking for $ac_word... " >&6; }
  7914. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  7915. $as_echo_n "(cached) " >&6
  7916. else
  7917. if test -n "$ac_ct_DUMPBIN"; then
  7918. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7919. else
  7920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7921. for as_dir in $PATH
  7922. do
  7923. IFS=$as_save_IFS
  7924. test -z "$as_dir" && as_dir=.
  7925. for ac_exec_ext in '' $ac_executable_extensions; do
  7926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7927. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7929. break 2
  7930. fi
  7931. done
  7932. done
  7933. IFS=$as_save_IFS
  7934. fi
  7935. fi
  7936. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7937. if test -n "$ac_ct_DUMPBIN"; then
  7938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  7939. $as_echo "$ac_ct_DUMPBIN" >&6; }
  7940. else
  7941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7942. $as_echo "no" >&6; }
  7943. fi
  7944. test -n "$ac_ct_DUMPBIN" && break
  7945. done
  7946. if test "x$ac_ct_DUMPBIN" = x; then
  7947. DUMPBIN=":"
  7948. else
  7949. case $cross_compiling:$ac_tool_warned in
  7950. yes:)
  7951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7953. ac_tool_warned=yes ;;
  7954. esac
  7955. DUMPBIN=$ac_ct_DUMPBIN
  7956. fi
  7957. fi
  7958. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  7959. *COFF*)
  7960. DUMPBIN="$DUMPBIN -symbols -headers"
  7961. ;;
  7962. *)
  7963. DUMPBIN=:
  7964. ;;
  7965. esac
  7966. fi
  7967. if test : != "$DUMPBIN"; then
  7968. NM=$DUMPBIN
  7969. fi
  7970. fi
  7971. test -z "$NM" && NM=nm
  7972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  7973. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  7974. if ${lt_cv_nm_interface+:} false; then :
  7975. $as_echo_n "(cached) " >&6
  7976. else
  7977. lt_cv_nm_interface="BSD nm"
  7978. echo "int some_variable = 0;" > conftest.$ac_ext
  7979. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  7980. (eval "$ac_compile" 2>conftest.err)
  7981. cat conftest.err >&5
  7982. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7983. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7984. cat conftest.err >&5
  7985. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  7986. cat conftest.out >&5
  7987. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7988. lt_cv_nm_interface="MS dumpbin"
  7989. fi
  7990. rm -f conftest*
  7991. fi
  7992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  7993. $as_echo "$lt_cv_nm_interface" >&6; }
  7994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7995. $as_echo_n "checking whether ln -s works... " >&6; }
  7996. LN_S=$as_ln_s
  7997. if test "$LN_S" = "ln -s"; then
  7998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7999. $as_echo "yes" >&6; }
  8000. else
  8001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  8002. $as_echo "no, using $LN_S" >&6; }
  8003. fi
  8004. # find the maximum length of command line arguments
  8005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  8006. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  8007. if ${lt_cv_sys_max_cmd_len+:} false; then :
  8008. $as_echo_n "(cached) " >&6
  8009. else
  8010. i=0
  8011. teststring=ABCD
  8012. case $build_os in
  8013. msdosdjgpp*)
  8014. # On DJGPP, this test can blow up pretty badly due to problems in libc
  8015. # (any single argument exceeding 2000 bytes causes a buffer overrun
  8016. # during glob expansion). Even if it were fixed, the result of this
  8017. # check would be larger than it should be.
  8018. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  8019. ;;
  8020. gnu*)
  8021. # Under GNU Hurd, this test is not required because there is
  8022. # no limit to the length of command line arguments.
  8023. # Libtool will interpret -1 as no limit whatsoever
  8024. lt_cv_sys_max_cmd_len=-1;
  8025. ;;
  8026. cygwin* | mingw* | cegcc*)
  8027. # On Win9x/ME, this test blows up -- it succeeds, but takes
  8028. # about 5 minutes as the teststring grows exponentially.
  8029. # Worse, since 9x/ME are not pre-emptively multitasking,
  8030. # you end up with a "frozen" computer, even though with patience
  8031. # the test eventually succeeds (with a max line length of 256k).
  8032. # Instead, let's just punt: use the minimum linelength reported by
  8033. # all of the supported platforms: 8192 (on NT/2K/XP).
  8034. lt_cv_sys_max_cmd_len=8192;
  8035. ;;
  8036. mint*)
  8037. # On MiNT this can take a long time and run out of memory.
  8038. lt_cv_sys_max_cmd_len=8192;
  8039. ;;
  8040. amigaos*)
  8041. # On AmigaOS with pdksh, this test takes hours, literally.
  8042. # So we just punt and use a minimum line length of 8192.
  8043. lt_cv_sys_max_cmd_len=8192;
  8044. ;;
  8045. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  8046. # This has been around since 386BSD, at least. Likely further.
  8047. if test -x /sbin/sysctl; then
  8048. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  8049. elif test -x /usr/sbin/sysctl; then
  8050. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  8051. else
  8052. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  8053. fi
  8054. # And add a safety zone
  8055. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  8056. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  8057. ;;
  8058. interix*)
  8059. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  8060. lt_cv_sys_max_cmd_len=196608
  8061. ;;
  8062. os2*)
  8063. # The test takes a long time on OS/2.
  8064. lt_cv_sys_max_cmd_len=8192
  8065. ;;
  8066. osf*)
  8067. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  8068. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  8069. # nice to cause kernel panics so lets avoid the loop below.
  8070. # First set a reasonable default.
  8071. lt_cv_sys_max_cmd_len=16384
  8072. #
  8073. if test -x /sbin/sysconfig; then
  8074. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  8075. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  8076. esac
  8077. fi
  8078. ;;
  8079. sco3.2v5*)
  8080. lt_cv_sys_max_cmd_len=102400
  8081. ;;
  8082. sysv5* | sco5v6* | sysv4.2uw2*)
  8083. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  8084. if test -n "$kargmax"; then
  8085. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  8086. else
  8087. lt_cv_sys_max_cmd_len=32768
  8088. fi
  8089. ;;
  8090. *)
  8091. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  8092. if test -n "$lt_cv_sys_max_cmd_len" && \
  8093. test undefined != "$lt_cv_sys_max_cmd_len"; then
  8094. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  8095. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  8096. else
  8097. # Make teststring a little bigger before we do anything with it.
  8098. # a 1K string should be a reasonable start.
  8099. for i in 1 2 3 4 5 6 7 8; do
  8100. teststring=$teststring$teststring
  8101. done
  8102. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  8103. # If test is not a shell built-in, we'll probably end up computing a
  8104. # maximum length that is only half of the actual maximum length, but
  8105. # we can't tell.
  8106. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  8107. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  8108. test 17 != "$i" # 1/2 MB should be enough
  8109. do
  8110. i=`expr $i + 1`
  8111. teststring=$teststring$teststring
  8112. done
  8113. # Only check the string length outside the loop.
  8114. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  8115. teststring=
  8116. # Add a significant safety factor because C++ compilers can tack on
  8117. # massive amounts of additional arguments before passing them to the
  8118. # linker. It appears as though 1/2 is a usable value.
  8119. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  8120. fi
  8121. ;;
  8122. esac
  8123. fi
  8124. if test -n "$lt_cv_sys_max_cmd_len"; then
  8125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  8126. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  8127. else
  8128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  8129. $as_echo "none" >&6; }
  8130. fi
  8131. max_cmd_len=$lt_cv_sys_max_cmd_len
  8132. : ${CP="cp -f"}
  8133. : ${MV="mv -f"}
  8134. : ${RM="rm -f"}
  8135. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8136. lt_unset=unset
  8137. else
  8138. lt_unset=false
  8139. fi
  8140. # test EBCDIC or ASCII
  8141. case `echo X|tr X '\101'` in
  8142. A) # ASCII based system
  8143. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  8144. lt_SP2NL='tr \040 \012'
  8145. lt_NL2SP='tr \015\012 \040\040'
  8146. ;;
  8147. *) # EBCDIC based system
  8148. lt_SP2NL='tr \100 \n'
  8149. lt_NL2SP='tr \r\n \100\100'
  8150. ;;
  8151. esac
  8152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  8153. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  8154. if ${lt_cv_to_host_file_cmd+:} false; then :
  8155. $as_echo_n "(cached) " >&6
  8156. else
  8157. case $host in
  8158. *-*-mingw* )
  8159. case $build in
  8160. *-*-mingw* ) # actually msys
  8161. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  8162. ;;
  8163. *-*-cygwin* )
  8164. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  8165. ;;
  8166. * ) # otherwise, assume *nix
  8167. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  8168. ;;
  8169. esac
  8170. ;;
  8171. *-*-cygwin* )
  8172. case $build in
  8173. *-*-mingw* ) # actually msys
  8174. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  8175. ;;
  8176. *-*-cygwin* )
  8177. lt_cv_to_host_file_cmd=func_convert_file_noop
  8178. ;;
  8179. * ) # otherwise, assume *nix
  8180. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  8181. ;;
  8182. esac
  8183. ;;
  8184. * ) # unhandled hosts (and "normal" native builds)
  8185. lt_cv_to_host_file_cmd=func_convert_file_noop
  8186. ;;
  8187. esac
  8188. fi
  8189. to_host_file_cmd=$lt_cv_to_host_file_cmd
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  8191. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  8192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  8193. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  8194. if ${lt_cv_to_tool_file_cmd+:} false; then :
  8195. $as_echo_n "(cached) " >&6
  8196. else
  8197. #assume ordinary cross tools, or native build.
  8198. lt_cv_to_tool_file_cmd=func_convert_file_noop
  8199. case $host in
  8200. *-*-mingw* )
  8201. case $build in
  8202. *-*-mingw* ) # actually msys
  8203. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  8204. ;;
  8205. esac
  8206. ;;
  8207. esac
  8208. fi
  8209. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  8211. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  8212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  8213. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  8214. if ${lt_cv_ld_reload_flag+:} false; then :
  8215. $as_echo_n "(cached) " >&6
  8216. else
  8217. lt_cv_ld_reload_flag='-r'
  8218. fi
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  8220. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  8221. reload_flag=$lt_cv_ld_reload_flag
  8222. case $reload_flag in
  8223. "" | " "*) ;;
  8224. *) reload_flag=" $reload_flag" ;;
  8225. esac
  8226. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  8227. case $host_os in
  8228. cygwin* | mingw* | pw32* | cegcc*)
  8229. if test yes != "$GCC"; then
  8230. reload_cmds=false
  8231. fi
  8232. ;;
  8233. darwin*)
  8234. if test yes = "$GCC"; then
  8235. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  8236. else
  8237. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  8238. fi
  8239. ;;
  8240. esac
  8241. if test -n "$ac_tool_prefix"; then
  8242. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8243. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8245. $as_echo_n "checking for $ac_word... " >&6; }
  8246. if ${ac_cv_prog_OBJDUMP+:} false; then :
  8247. $as_echo_n "(cached) " >&6
  8248. else
  8249. if test -n "$OBJDUMP"; then
  8250. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8251. else
  8252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8253. for as_dir in $PATH
  8254. do
  8255. IFS=$as_save_IFS
  8256. test -z "$as_dir" && as_dir=.
  8257. for ac_exec_ext in '' $ac_executable_extensions; do
  8258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8259. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8261. break 2
  8262. fi
  8263. done
  8264. done
  8265. IFS=$as_save_IFS
  8266. fi
  8267. fi
  8268. OBJDUMP=$ac_cv_prog_OBJDUMP
  8269. if test -n "$OBJDUMP"; then
  8270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8271. $as_echo "$OBJDUMP" >&6; }
  8272. else
  8273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8274. $as_echo "no" >&6; }
  8275. fi
  8276. fi
  8277. if test -z "$ac_cv_prog_OBJDUMP"; then
  8278. ac_ct_OBJDUMP=$OBJDUMP
  8279. # Extract the first word of "objdump", so it can be a program name with args.
  8280. set dummy objdump; ac_word=$2
  8281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8282. $as_echo_n "checking for $ac_word... " >&6; }
  8283. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  8284. $as_echo_n "(cached) " >&6
  8285. else
  8286. if test -n "$ac_ct_OBJDUMP"; then
  8287. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8288. else
  8289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8290. for as_dir in $PATH
  8291. do
  8292. IFS=$as_save_IFS
  8293. test -z "$as_dir" && as_dir=.
  8294. for ac_exec_ext in '' $ac_executable_extensions; do
  8295. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8296. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8298. break 2
  8299. fi
  8300. done
  8301. done
  8302. IFS=$as_save_IFS
  8303. fi
  8304. fi
  8305. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8306. if test -n "$ac_ct_OBJDUMP"; then
  8307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8308. $as_echo "$ac_ct_OBJDUMP" >&6; }
  8309. else
  8310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8311. $as_echo "no" >&6; }
  8312. fi
  8313. if test "x$ac_ct_OBJDUMP" = x; then
  8314. OBJDUMP="false"
  8315. else
  8316. case $cross_compiling:$ac_tool_warned in
  8317. yes:)
  8318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8319. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8320. ac_tool_warned=yes ;;
  8321. esac
  8322. OBJDUMP=$ac_ct_OBJDUMP
  8323. fi
  8324. else
  8325. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8326. fi
  8327. test -z "$OBJDUMP" && OBJDUMP=objdump
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  8329. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  8330. if ${lt_cv_deplibs_check_method+:} false; then :
  8331. $as_echo_n "(cached) " >&6
  8332. else
  8333. lt_cv_file_magic_cmd='$MAGIC_CMD'
  8334. lt_cv_file_magic_test_file=
  8335. lt_cv_deplibs_check_method='unknown'
  8336. # Need to set the preceding variable on all platforms that support
  8337. # interlibrary dependencies.
  8338. # 'none' -- dependencies not supported.
  8339. # 'unknown' -- same as none, but documents that we really don't know.
  8340. # 'pass_all' -- all dependencies passed with no checks.
  8341. # 'test_compile' -- check by making test program.
  8342. # 'file_magic [[regex]]' -- check by looking for files in library path
  8343. # that responds to the $file_magic_cmd with a given extended regex.
  8344. # If you have 'file' or equivalent on your system and you're not sure
  8345. # whether 'pass_all' will *always* work, you probably want this one.
  8346. case $host_os in
  8347. aix[4-9]*)
  8348. lt_cv_deplibs_check_method=pass_all
  8349. ;;
  8350. beos*)
  8351. lt_cv_deplibs_check_method=pass_all
  8352. ;;
  8353. bsdi[45]*)
  8354. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  8355. lt_cv_file_magic_cmd='/usr/bin/file -L'
  8356. lt_cv_file_magic_test_file=/shlib/libc.so
  8357. ;;
  8358. cygwin*)
  8359. # func_win32_libid is a shell function defined in ltmain.sh
  8360. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  8361. lt_cv_file_magic_cmd='func_win32_libid'
  8362. ;;
  8363. mingw* | pw32*)
  8364. # Base MSYS/MinGW do not provide the 'file' command needed by
  8365. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  8366. # unless we find 'file', for example because we are cross-compiling.
  8367. if ( file / ) >/dev/null 2>&1; then
  8368. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  8369. lt_cv_file_magic_cmd='func_win32_libid'
  8370. else
  8371. # Keep this pattern in sync with the one in func_win32_libid.
  8372. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  8373. lt_cv_file_magic_cmd='$OBJDUMP -f'
  8374. fi
  8375. ;;
  8376. cegcc*)
  8377. # use the weaker test based on 'objdump'. See mingw*.
  8378. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  8379. lt_cv_file_magic_cmd='$OBJDUMP -f'
  8380. ;;
  8381. darwin* | rhapsody*)
  8382. lt_cv_deplibs_check_method=pass_all
  8383. ;;
  8384. freebsd* | dragonfly*)
  8385. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  8386. case $host_cpu in
  8387. i*86 )
  8388. # Not sure whether the presence of OpenBSD here was a mistake.
  8389. # Let's accept both of them until this is cleared up.
  8390. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  8391. lt_cv_file_magic_cmd=/usr/bin/file
  8392. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  8393. ;;
  8394. esac
  8395. else
  8396. lt_cv_deplibs_check_method=pass_all
  8397. fi
  8398. ;;
  8399. haiku*)
  8400. lt_cv_deplibs_check_method=pass_all
  8401. ;;
  8402. hpux10.20* | hpux11*)
  8403. lt_cv_file_magic_cmd=/usr/bin/file
  8404. case $host_cpu in
  8405. ia64*)
  8406. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  8407. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  8408. ;;
  8409. hppa*64*)
  8410. 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]'
  8411. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  8412. ;;
  8413. *)
  8414. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  8415. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  8416. ;;
  8417. esac
  8418. ;;
  8419. interix[3-9]*)
  8420. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  8421. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  8422. ;;
  8423. irix5* | irix6* | nonstopux*)
  8424. case $LD in
  8425. *-32|*"-32 ") libmagic=32-bit;;
  8426. *-n32|*"-n32 ") libmagic=N32;;
  8427. *-64|*"-64 ") libmagic=64-bit;;
  8428. *) libmagic=never-match;;
  8429. esac
  8430. lt_cv_deplibs_check_method=pass_all
  8431. ;;
  8432. # This must be glibc/ELF.
  8433. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8434. lt_cv_deplibs_check_method=pass_all
  8435. ;;
  8436. netbsd* | netbsdelf*-gnu)
  8437. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  8438. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8439. else
  8440. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  8441. fi
  8442. ;;
  8443. newos6*)
  8444. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  8445. lt_cv_file_magic_cmd=/usr/bin/file
  8446. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  8447. ;;
  8448. *nto* | *qnx*)
  8449. lt_cv_deplibs_check_method=pass_all
  8450. ;;
  8451. openbsd* | bitrig*)
  8452. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8453. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  8454. else
  8455. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8456. fi
  8457. ;;
  8458. osf3* | osf4* | osf5*)
  8459. lt_cv_deplibs_check_method=pass_all
  8460. ;;
  8461. rdos*)
  8462. lt_cv_deplibs_check_method=pass_all
  8463. ;;
  8464. solaris*)
  8465. lt_cv_deplibs_check_method=pass_all
  8466. ;;
  8467. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8468. lt_cv_deplibs_check_method=pass_all
  8469. ;;
  8470. sysv4 | sysv4.3*)
  8471. case $host_vendor in
  8472. motorola)
  8473. 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]'
  8474. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  8475. ;;
  8476. ncr)
  8477. lt_cv_deplibs_check_method=pass_all
  8478. ;;
  8479. sequent)
  8480. lt_cv_file_magic_cmd='/bin/file'
  8481. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  8482. ;;
  8483. sni)
  8484. lt_cv_file_magic_cmd='/bin/file'
  8485. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  8486. lt_cv_file_magic_test_file=/lib/libc.so
  8487. ;;
  8488. siemens)
  8489. lt_cv_deplibs_check_method=pass_all
  8490. ;;
  8491. pc)
  8492. lt_cv_deplibs_check_method=pass_all
  8493. ;;
  8494. esac
  8495. ;;
  8496. tpf*)
  8497. lt_cv_deplibs_check_method=pass_all
  8498. ;;
  8499. os2*)
  8500. lt_cv_deplibs_check_method=pass_all
  8501. ;;
  8502. esac
  8503. fi
  8504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  8505. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  8506. file_magic_glob=
  8507. want_nocaseglob=no
  8508. if test "$build" = "$host"; then
  8509. case $host_os in
  8510. mingw* | pw32*)
  8511. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  8512. want_nocaseglob=yes
  8513. else
  8514. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  8515. fi
  8516. ;;
  8517. esac
  8518. fi
  8519. file_magic_cmd=$lt_cv_file_magic_cmd
  8520. deplibs_check_method=$lt_cv_deplibs_check_method
  8521. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  8522. if test -n "$ac_tool_prefix"; then
  8523. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8524. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8526. $as_echo_n "checking for $ac_word... " >&6; }
  8527. if ${ac_cv_prog_DLLTOOL+:} false; then :
  8528. $as_echo_n "(cached) " >&6
  8529. else
  8530. if test -n "$DLLTOOL"; then
  8531. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8532. else
  8533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8534. for as_dir in $PATH
  8535. do
  8536. IFS=$as_save_IFS
  8537. test -z "$as_dir" && as_dir=.
  8538. for ac_exec_ext in '' $ac_executable_extensions; do
  8539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8540. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8542. break 2
  8543. fi
  8544. done
  8545. done
  8546. IFS=$as_save_IFS
  8547. fi
  8548. fi
  8549. DLLTOOL=$ac_cv_prog_DLLTOOL
  8550. if test -n "$DLLTOOL"; then
  8551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8552. $as_echo "$DLLTOOL" >&6; }
  8553. else
  8554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8555. $as_echo "no" >&6; }
  8556. fi
  8557. fi
  8558. if test -z "$ac_cv_prog_DLLTOOL"; then
  8559. ac_ct_DLLTOOL=$DLLTOOL
  8560. # Extract the first word of "dlltool", so it can be a program name with args.
  8561. set dummy dlltool; ac_word=$2
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8563. $as_echo_n "checking for $ac_word... " >&6; }
  8564. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  8565. $as_echo_n "(cached) " >&6
  8566. else
  8567. if test -n "$ac_ct_DLLTOOL"; then
  8568. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8569. else
  8570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8571. for as_dir in $PATH
  8572. do
  8573. IFS=$as_save_IFS
  8574. test -z "$as_dir" && as_dir=.
  8575. for ac_exec_ext in '' $ac_executable_extensions; do
  8576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8577. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8579. break 2
  8580. fi
  8581. done
  8582. done
  8583. IFS=$as_save_IFS
  8584. fi
  8585. fi
  8586. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8587. if test -n "$ac_ct_DLLTOOL"; then
  8588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8589. $as_echo "$ac_ct_DLLTOOL" >&6; }
  8590. else
  8591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8592. $as_echo "no" >&6; }
  8593. fi
  8594. if test "x$ac_ct_DLLTOOL" = x; then
  8595. DLLTOOL="false"
  8596. else
  8597. case $cross_compiling:$ac_tool_warned in
  8598. yes:)
  8599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8600. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8601. ac_tool_warned=yes ;;
  8602. esac
  8603. DLLTOOL=$ac_ct_DLLTOOL
  8604. fi
  8605. else
  8606. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8607. fi
  8608. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  8610. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  8611. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  8612. $as_echo_n "(cached) " >&6
  8613. else
  8614. lt_cv_sharedlib_from_linklib_cmd='unknown'
  8615. case $host_os in
  8616. cygwin* | mingw* | pw32* | cegcc*)
  8617. # two different shell functions defined in ltmain.sh;
  8618. # decide which one to use based on capabilities of $DLLTOOL
  8619. case `$DLLTOOL --help 2>&1` in
  8620. *--identify-strict*)
  8621. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  8622. ;;
  8623. *)
  8624. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  8625. ;;
  8626. esac
  8627. ;;
  8628. *)
  8629. # fallback: assume linklib IS sharedlib
  8630. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  8631. ;;
  8632. esac
  8633. fi
  8634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  8635. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  8636. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  8637. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  8638. if test -n "$ac_tool_prefix"; then
  8639. for ac_prog in ar
  8640. do
  8641. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8642. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8644. $as_echo_n "checking for $ac_word... " >&6; }
  8645. if ${ac_cv_prog_AR+:} false; then :
  8646. $as_echo_n "(cached) " >&6
  8647. else
  8648. if test -n "$AR"; then
  8649. ac_cv_prog_AR="$AR" # Let the user override the test.
  8650. else
  8651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8652. for as_dir in $PATH
  8653. do
  8654. IFS=$as_save_IFS
  8655. test -z "$as_dir" && as_dir=.
  8656. for ac_exec_ext in '' $ac_executable_extensions; do
  8657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8658. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  8659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8660. break 2
  8661. fi
  8662. done
  8663. done
  8664. IFS=$as_save_IFS
  8665. fi
  8666. fi
  8667. AR=$ac_cv_prog_AR
  8668. if test -n "$AR"; then
  8669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  8670. $as_echo "$AR" >&6; }
  8671. else
  8672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8673. $as_echo "no" >&6; }
  8674. fi
  8675. test -n "$AR" && break
  8676. done
  8677. fi
  8678. if test -z "$AR"; then
  8679. ac_ct_AR=$AR
  8680. for ac_prog in ar
  8681. do
  8682. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8683. set dummy $ac_prog; ac_word=$2
  8684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8685. $as_echo_n "checking for $ac_word... " >&6; }
  8686. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  8687. $as_echo_n "(cached) " >&6
  8688. else
  8689. if test -n "$ac_ct_AR"; then
  8690. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8691. else
  8692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8693. for as_dir in $PATH
  8694. do
  8695. IFS=$as_save_IFS
  8696. test -z "$as_dir" && as_dir=.
  8697. for ac_exec_ext in '' $ac_executable_extensions; do
  8698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8699. ac_cv_prog_ac_ct_AR="$ac_prog"
  8700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8701. break 2
  8702. fi
  8703. done
  8704. done
  8705. IFS=$as_save_IFS
  8706. fi
  8707. fi
  8708. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8709. if test -n "$ac_ct_AR"; then
  8710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8711. $as_echo "$ac_ct_AR" >&6; }
  8712. else
  8713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8714. $as_echo "no" >&6; }
  8715. fi
  8716. test -n "$ac_ct_AR" && break
  8717. done
  8718. if test "x$ac_ct_AR" = x; then
  8719. AR="false"
  8720. else
  8721. case $cross_compiling:$ac_tool_warned in
  8722. yes:)
  8723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8724. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8725. ac_tool_warned=yes ;;
  8726. esac
  8727. AR=$ac_ct_AR
  8728. fi
  8729. fi
  8730. : ${AR=ar}
  8731. : ${AR_FLAGS=cru}
  8732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  8733. $as_echo_n "checking for archiver @FILE support... " >&6; }
  8734. if ${lt_cv_ar_at_file+:} false; then :
  8735. $as_echo_n "(cached) " >&6
  8736. else
  8737. lt_cv_ar_at_file=no
  8738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8739. /* end confdefs.h. */
  8740. int
  8741. main ()
  8742. {
  8743. ;
  8744. return 0;
  8745. }
  8746. _ACEOF
  8747. if ac_fn_c_try_compile "$LINENO"; then :
  8748. echo conftest.$ac_objext > conftest.lst
  8749. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  8750. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8751. (eval $lt_ar_try) 2>&5
  8752. ac_status=$?
  8753. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8754. test $ac_status = 0; }
  8755. if test 0 -eq "$ac_status"; then
  8756. # Ensure the archiver fails upon bogus file names.
  8757. rm -f conftest.$ac_objext libconftest.a
  8758. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8759. (eval $lt_ar_try) 2>&5
  8760. ac_status=$?
  8761. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8762. test $ac_status = 0; }
  8763. if test 0 -ne "$ac_status"; then
  8764. lt_cv_ar_at_file=@
  8765. fi
  8766. fi
  8767. rm -f conftest.* libconftest.a
  8768. fi
  8769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8770. fi
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  8772. $as_echo "$lt_cv_ar_at_file" >&6; }
  8773. if test no = "$lt_cv_ar_at_file"; then
  8774. archiver_list_spec=
  8775. else
  8776. archiver_list_spec=$lt_cv_ar_at_file
  8777. fi
  8778. if test -n "$ac_tool_prefix"; then
  8779. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8780. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8782. $as_echo_n "checking for $ac_word... " >&6; }
  8783. if ${ac_cv_prog_STRIP+:} false; then :
  8784. $as_echo_n "(cached) " >&6
  8785. else
  8786. if test -n "$STRIP"; then
  8787. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8788. else
  8789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8790. for as_dir in $PATH
  8791. do
  8792. IFS=$as_save_IFS
  8793. test -z "$as_dir" && as_dir=.
  8794. for ac_exec_ext in '' $ac_executable_extensions; do
  8795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8796. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8798. break 2
  8799. fi
  8800. done
  8801. done
  8802. IFS=$as_save_IFS
  8803. fi
  8804. fi
  8805. STRIP=$ac_cv_prog_STRIP
  8806. if test -n "$STRIP"; then
  8807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8808. $as_echo "$STRIP" >&6; }
  8809. else
  8810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8811. $as_echo "no" >&6; }
  8812. fi
  8813. fi
  8814. if test -z "$ac_cv_prog_STRIP"; then
  8815. ac_ct_STRIP=$STRIP
  8816. # Extract the first word of "strip", so it can be a program name with args.
  8817. set dummy strip; ac_word=$2
  8818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8819. $as_echo_n "checking for $ac_word... " >&6; }
  8820. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  8821. $as_echo_n "(cached) " >&6
  8822. else
  8823. if test -n "$ac_ct_STRIP"; then
  8824. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8825. else
  8826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8827. for as_dir in $PATH
  8828. do
  8829. IFS=$as_save_IFS
  8830. test -z "$as_dir" && as_dir=.
  8831. for ac_exec_ext in '' $ac_executable_extensions; do
  8832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8833. ac_cv_prog_ac_ct_STRIP="strip"
  8834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8835. break 2
  8836. fi
  8837. done
  8838. done
  8839. IFS=$as_save_IFS
  8840. fi
  8841. fi
  8842. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8843. if test -n "$ac_ct_STRIP"; then
  8844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8845. $as_echo "$ac_ct_STRIP" >&6; }
  8846. else
  8847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8848. $as_echo "no" >&6; }
  8849. fi
  8850. if test "x$ac_ct_STRIP" = x; then
  8851. STRIP=":"
  8852. else
  8853. case $cross_compiling:$ac_tool_warned in
  8854. yes:)
  8855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8856. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8857. ac_tool_warned=yes ;;
  8858. esac
  8859. STRIP=$ac_ct_STRIP
  8860. fi
  8861. else
  8862. STRIP="$ac_cv_prog_STRIP"
  8863. fi
  8864. test -z "$STRIP" && STRIP=:
  8865. if test -n "$ac_tool_prefix"; then
  8866. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8867. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8869. $as_echo_n "checking for $ac_word... " >&6; }
  8870. if ${ac_cv_prog_RANLIB+:} false; then :
  8871. $as_echo_n "(cached) " >&6
  8872. else
  8873. if test -n "$RANLIB"; then
  8874. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8875. else
  8876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8877. for as_dir in $PATH
  8878. do
  8879. IFS=$as_save_IFS
  8880. test -z "$as_dir" && as_dir=.
  8881. for ac_exec_ext in '' $ac_executable_extensions; do
  8882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8883. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8885. break 2
  8886. fi
  8887. done
  8888. done
  8889. IFS=$as_save_IFS
  8890. fi
  8891. fi
  8892. RANLIB=$ac_cv_prog_RANLIB
  8893. if test -n "$RANLIB"; then
  8894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8895. $as_echo "$RANLIB" >&6; }
  8896. else
  8897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8898. $as_echo "no" >&6; }
  8899. fi
  8900. fi
  8901. if test -z "$ac_cv_prog_RANLIB"; then
  8902. ac_ct_RANLIB=$RANLIB
  8903. # Extract the first word of "ranlib", so it can be a program name with args.
  8904. set dummy ranlib; ac_word=$2
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8906. $as_echo_n "checking for $ac_word... " >&6; }
  8907. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  8908. $as_echo_n "(cached) " >&6
  8909. else
  8910. if test -n "$ac_ct_RANLIB"; then
  8911. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8912. else
  8913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8914. for as_dir in $PATH
  8915. do
  8916. IFS=$as_save_IFS
  8917. test -z "$as_dir" && as_dir=.
  8918. for ac_exec_ext in '' $ac_executable_extensions; do
  8919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8920. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8922. break 2
  8923. fi
  8924. done
  8925. done
  8926. IFS=$as_save_IFS
  8927. fi
  8928. fi
  8929. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8930. if test -n "$ac_ct_RANLIB"; then
  8931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8932. $as_echo "$ac_ct_RANLIB" >&6; }
  8933. else
  8934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8935. $as_echo "no" >&6; }
  8936. fi
  8937. if test "x$ac_ct_RANLIB" = x; then
  8938. RANLIB=":"
  8939. else
  8940. case $cross_compiling:$ac_tool_warned in
  8941. yes:)
  8942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8944. ac_tool_warned=yes ;;
  8945. esac
  8946. RANLIB=$ac_ct_RANLIB
  8947. fi
  8948. else
  8949. RANLIB="$ac_cv_prog_RANLIB"
  8950. fi
  8951. test -z "$RANLIB" && RANLIB=:
  8952. # Determine commands to create old-style static archives.
  8953. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8954. old_postinstall_cmds='chmod 644 $oldlib'
  8955. old_postuninstall_cmds=
  8956. if test -n "$RANLIB"; then
  8957. case $host_os in
  8958. bitrig* | openbsd*)
  8959. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  8960. ;;
  8961. *)
  8962. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  8963. ;;
  8964. esac
  8965. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  8966. fi
  8967. case $host_os in
  8968. darwin*)
  8969. lock_old_archive_extraction=yes ;;
  8970. *)
  8971. lock_old_archive_extraction=no ;;
  8972. esac
  8973. # If no C compiler was specified, use CC.
  8974. LTCC=${LTCC-"$CC"}
  8975. # If no C compiler flags were specified, use CFLAGS.
  8976. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8977. # Allow CC to be a program name with arguments.
  8978. compiler=$CC
  8979. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8981. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8982. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  8983. $as_echo_n "(cached) " >&6
  8984. else
  8985. # These are sane defaults that work on at least a few old systems.
  8986. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8987. # Character class describing NM global symbol codes.
  8988. symcode='[BCDEGRST]'
  8989. # Regexp to match symbols that can be accessed directly from C.
  8990. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8991. # Define system-specific variables.
  8992. case $host_os in
  8993. aix*)
  8994. symcode='[BCDT]'
  8995. ;;
  8996. cygwin* | mingw* | pw32* | cegcc*)
  8997. symcode='[ABCDGISTW]'
  8998. ;;
  8999. hpux*)
  9000. if test ia64 = "$host_cpu"; then
  9001. symcode='[ABCDEGRST]'
  9002. fi
  9003. ;;
  9004. irix* | nonstopux*)
  9005. symcode='[BCDEGRST]'
  9006. ;;
  9007. osf*)
  9008. symcode='[BCDEGQRST]'
  9009. ;;
  9010. solaris*)
  9011. symcode='[BDRT]'
  9012. ;;
  9013. sco3.2v5*)
  9014. symcode='[DT]'
  9015. ;;
  9016. sysv4.2uw2*)
  9017. symcode='[DT]'
  9018. ;;
  9019. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  9020. symcode='[ABDT]'
  9021. ;;
  9022. sysv4)
  9023. symcode='[DFNSTU]'
  9024. ;;
  9025. esac
  9026. # If we're using GNU nm, then use its standard symbol codes.
  9027. case `$NM -V 2>&1` in
  9028. *GNU* | *'with BFD'*)
  9029. symcode='[ABCDGIRSTW]' ;;
  9030. esac
  9031. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  9032. # Gets list of data symbols to import.
  9033. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  9034. # Adjust the below global symbol transforms to fixup imported variables.
  9035. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  9036. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  9037. lt_c_name_lib_hook="\
  9038. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  9039. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  9040. else
  9041. # Disable hooks by default.
  9042. lt_cv_sys_global_symbol_to_import=
  9043. lt_cdecl_hook=
  9044. lt_c_name_hook=
  9045. lt_c_name_lib_hook=
  9046. fi
  9047. # Transform an extracted symbol line into a proper C declaration.
  9048. # Some systems (esp. on ia64) link data and code symbols differently,
  9049. # so use this general approach.
  9050. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  9051. $lt_cdecl_hook\
  9052. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  9053. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  9054. # Transform an extracted symbol line into symbol name and symbol address
  9055. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  9056. $lt_c_name_hook\
  9057. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  9058. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  9059. # Transform an extracted symbol line into symbol name with lib prefix and
  9060. # symbol address.
  9061. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  9062. $lt_c_name_lib_hook\
  9063. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  9064. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  9065. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  9066. # Handle CRLF in mingw tool chain
  9067. opt_cr=
  9068. case $build_os in
  9069. mingw*)
  9070. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  9071. ;;
  9072. esac
  9073. # Try without a prefix underscore, then with it.
  9074. for ac_symprfx in "" "_"; do
  9075. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  9076. symxfrm="\\1 $ac_symprfx\\2 \\2"
  9077. # Write the raw and C identifiers.
  9078. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  9079. # Fake it for dumpbin and say T for any non-static function,
  9080. # D for any global variable and I for any imported variable.
  9081. # Also find C++ and __fastcall symbols from MSVC++,
  9082. # which start with @ or ?.
  9083. lt_cv_sys_global_symbol_pipe="$AWK '"\
  9084. " {last_section=section; section=\$ 3};"\
  9085. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  9086. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  9087. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  9088. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  9089. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  9090. " \$ 0!~/External *\|/{next};"\
  9091. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  9092. " {if(hide[section]) next};"\
  9093. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  9094. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  9095. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  9096. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  9097. " ' prfx=^$ac_symprfx"
  9098. else
  9099. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  9100. fi
  9101. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  9102. # Check to see that the pipe works correctly.
  9103. pipe_works=no
  9104. rm -f conftest*
  9105. cat > conftest.$ac_ext <<_LT_EOF
  9106. #ifdef __cplusplus
  9107. extern "C" {
  9108. #endif
  9109. char nm_test_var;
  9110. void nm_test_func(void);
  9111. void nm_test_func(void){}
  9112. #ifdef __cplusplus
  9113. }
  9114. #endif
  9115. int main(){nm_test_var='a';nm_test_func();return(0);}
  9116. _LT_EOF
  9117. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9118. (eval $ac_compile) 2>&5
  9119. ac_status=$?
  9120. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9121. test $ac_status = 0; }; then
  9122. # Now try to grab the symbols.
  9123. nlist=conftest.nm
  9124. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  9125. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  9126. ac_status=$?
  9127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9128. test $ac_status = 0; } && test -s "$nlist"; then
  9129. # Try sorting and uniquifying the output.
  9130. if sort "$nlist" | uniq > "$nlist"T; then
  9131. mv -f "$nlist"T "$nlist"
  9132. else
  9133. rm -f "$nlist"T
  9134. fi
  9135. # Make sure that we snagged all the symbols we need.
  9136. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  9137. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  9138. cat <<_LT_EOF > conftest.$ac_ext
  9139. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  9140. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  9141. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  9142. relocations are performed -- see ld's documentation on pseudo-relocs. */
  9143. # define LT@&t@_DLSYM_CONST
  9144. #elif defined __osf__
  9145. /* This system does not cope well with relocations in const data. */
  9146. # define LT@&t@_DLSYM_CONST
  9147. #else
  9148. # define LT@&t@_DLSYM_CONST const
  9149. #endif
  9150. #ifdef __cplusplus
  9151. extern "C" {
  9152. #endif
  9153. _LT_EOF
  9154. # Now generate the symbol file.
  9155. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  9156. cat <<_LT_EOF >> conftest.$ac_ext
  9157. /* The mapping between symbol names and symbols. */
  9158. LT@&t@_DLSYM_CONST struct {
  9159. const char *name;
  9160. void *address;
  9161. }
  9162. lt__PROGRAM__LTX_preloaded_symbols[] =
  9163. {
  9164. { "@PROGRAM@", (void *) 0 },
  9165. _LT_EOF
  9166. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  9167. cat <<\_LT_EOF >> conftest.$ac_ext
  9168. {0, (void *) 0}
  9169. };
  9170. /* This works around a problem in FreeBSD linker */
  9171. #ifdef FREEBSD_WORKAROUND
  9172. static const void *lt_preloaded_setup() {
  9173. return lt__PROGRAM__LTX_preloaded_symbols;
  9174. }
  9175. #endif
  9176. #ifdef __cplusplus
  9177. }
  9178. #endif
  9179. _LT_EOF
  9180. # Now try linking the two files.
  9181. mv conftest.$ac_objext conftstm.$ac_objext
  9182. lt_globsym_save_LIBS=$LIBS
  9183. lt_globsym_save_CFLAGS=$CFLAGS
  9184. LIBS=conftstm.$ac_objext
  9185. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  9186. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9187. (eval $ac_link) 2>&5
  9188. ac_status=$?
  9189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9190. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  9191. pipe_works=yes
  9192. fi
  9193. LIBS=$lt_globsym_save_LIBS
  9194. CFLAGS=$lt_globsym_save_CFLAGS
  9195. else
  9196. echo "cannot find nm_test_func in $nlist" >&5
  9197. fi
  9198. else
  9199. echo "cannot find nm_test_var in $nlist" >&5
  9200. fi
  9201. else
  9202. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  9203. fi
  9204. else
  9205. echo "$progname: failed program was:" >&5
  9206. cat conftest.$ac_ext >&5
  9207. fi
  9208. rm -rf conftest* conftst*
  9209. # Do not use the global_symbol_pipe unless it works.
  9210. if test yes = "$pipe_works"; then
  9211. break
  9212. else
  9213. lt_cv_sys_global_symbol_pipe=
  9214. fi
  9215. done
  9216. fi
  9217. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  9218. lt_cv_sys_global_symbol_to_cdecl=
  9219. fi
  9220. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  9222. $as_echo "failed" >&6; }
  9223. else
  9224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  9225. $as_echo "ok" >&6; }
  9226. fi
  9227. # Response file support.
  9228. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  9229. nm_file_list_spec='@'
  9230. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  9231. nm_file_list_spec='@'
  9232. fi
  9233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  9234. $as_echo_n "checking for sysroot... " >&6; }
  9235. @%:@ Check whether --with-sysroot was given.
  9236. if test "${with_sysroot+set}" = set; then :
  9237. withval=$with_sysroot;
  9238. else
  9239. with_sysroot=no
  9240. fi
  9241. lt_sysroot=
  9242. case $with_sysroot in #(
  9243. yes)
  9244. if test yes = "$GCC"; then
  9245. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  9246. fi
  9247. ;; #(
  9248. /*)
  9249. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  9250. ;; #(
  9251. no|'')
  9252. ;; #(
  9253. *)
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  9255. $as_echo "$with_sysroot" >&6; }
  9256. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  9257. ;;
  9258. esac
  9259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  9260. $as_echo "${lt_sysroot:-no}" >&6; }
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  9262. $as_echo_n "checking for a working dd... " >&6; }
  9263. if ${ac_cv_path_lt_DD+:} false; then :
  9264. $as_echo_n "(cached) " >&6
  9265. else
  9266. printf 0123456789abcdef0123456789abcdef >conftest.i
  9267. cat conftest.i conftest.i >conftest2.i
  9268. : ${lt_DD:=$DD}
  9269. if test -z "$lt_DD"; then
  9270. ac_path_lt_DD_found=false
  9271. # Loop through the user's path and test for each of PROGNAME-LIST
  9272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9273. for as_dir in $PATH
  9274. do
  9275. IFS=$as_save_IFS
  9276. test -z "$as_dir" && as_dir=.
  9277. for ac_prog in dd; do
  9278. for ac_exec_ext in '' $ac_executable_extensions; do
  9279. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  9280. as_fn_executable_p "$ac_path_lt_DD" || continue
  9281. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  9282. cmp -s conftest.i conftest.out \
  9283. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  9284. fi
  9285. $ac_path_lt_DD_found && break 3
  9286. done
  9287. done
  9288. done
  9289. IFS=$as_save_IFS
  9290. if test -z "$ac_cv_path_lt_DD"; then
  9291. :
  9292. fi
  9293. else
  9294. ac_cv_path_lt_DD=$lt_DD
  9295. fi
  9296. rm -f conftest.i conftest2.i conftest.out
  9297. fi
  9298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  9299. $as_echo "$ac_cv_path_lt_DD" >&6; }
  9300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  9301. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  9302. if ${lt_cv_truncate_bin+:} false; then :
  9303. $as_echo_n "(cached) " >&6
  9304. else
  9305. printf 0123456789abcdef0123456789abcdef >conftest.i
  9306. cat conftest.i conftest.i >conftest2.i
  9307. lt_cv_truncate_bin=
  9308. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  9309. cmp -s conftest.i conftest.out \
  9310. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  9311. fi
  9312. rm -f conftest.i conftest2.i conftest.out
  9313. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  9314. fi
  9315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  9316. $as_echo "$lt_cv_truncate_bin" >&6; }
  9317. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  9318. func_cc_basename ()
  9319. {
  9320. for cc_temp in @S|@*""; do
  9321. case $cc_temp in
  9322. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9323. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9324. \-*) ;;
  9325. *) break;;
  9326. esac
  9327. done
  9328. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9329. }
  9330. @%:@ Check whether --enable-libtool-lock was given.
  9331. if test "${enable_libtool_lock+set}" = set; then :
  9332. enableval=$enable_libtool_lock;
  9333. fi
  9334. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  9335. # Some flags need to be propagated to the compiler or linker for good
  9336. # libtool support.
  9337. case $host in
  9338. ia64-*-hpux*)
  9339. # Find out what ABI is being produced by ac_compile, and set mode
  9340. # options accordingly.
  9341. echo 'int i;' > conftest.$ac_ext
  9342. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9343. (eval $ac_compile) 2>&5
  9344. ac_status=$?
  9345. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9346. test $ac_status = 0; }; then
  9347. case `/usr/bin/file conftest.$ac_objext` in
  9348. *ELF-32*)
  9349. HPUX_IA64_MODE=32
  9350. ;;
  9351. *ELF-64*)
  9352. HPUX_IA64_MODE=64
  9353. ;;
  9354. esac
  9355. fi
  9356. rm -rf conftest*
  9357. ;;
  9358. *-*-irix6*)
  9359. # Find out what ABI is being produced by ac_compile, and set linker
  9360. # options accordingly.
  9361. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  9362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9363. (eval $ac_compile) 2>&5
  9364. ac_status=$?
  9365. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9366. test $ac_status = 0; }; then
  9367. if test yes = "$lt_cv_prog_gnu_ld"; then
  9368. case `/usr/bin/file conftest.$ac_objext` in
  9369. *32-bit*)
  9370. LD="${LD-ld} -melf32bsmip"
  9371. ;;
  9372. *N32*)
  9373. LD="${LD-ld} -melf32bmipn32"
  9374. ;;
  9375. *64-bit*)
  9376. LD="${LD-ld} -melf64bmip"
  9377. ;;
  9378. esac
  9379. else
  9380. case `/usr/bin/file conftest.$ac_objext` in
  9381. *32-bit*)
  9382. LD="${LD-ld} -32"
  9383. ;;
  9384. *N32*)
  9385. LD="${LD-ld} -n32"
  9386. ;;
  9387. *64-bit*)
  9388. LD="${LD-ld} -64"
  9389. ;;
  9390. esac
  9391. fi
  9392. fi
  9393. rm -rf conftest*
  9394. ;;
  9395. mips64*-*linux*)
  9396. # Find out what ABI is being produced by ac_compile, and set linker
  9397. # options accordingly.
  9398. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  9399. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9400. (eval $ac_compile) 2>&5
  9401. ac_status=$?
  9402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9403. test $ac_status = 0; }; then
  9404. emul=elf
  9405. case `/usr/bin/file conftest.$ac_objext` in
  9406. *32-bit*)
  9407. emul="${emul}32"
  9408. ;;
  9409. *64-bit*)
  9410. emul="${emul}64"
  9411. ;;
  9412. esac
  9413. case `/usr/bin/file conftest.$ac_objext` in
  9414. *MSB*)
  9415. emul="${emul}btsmip"
  9416. ;;
  9417. *LSB*)
  9418. emul="${emul}ltsmip"
  9419. ;;
  9420. esac
  9421. case `/usr/bin/file conftest.$ac_objext` in
  9422. *N32*)
  9423. emul="${emul}n32"
  9424. ;;
  9425. esac
  9426. LD="${LD-ld} -m $emul"
  9427. fi
  9428. rm -rf conftest*
  9429. ;;
  9430. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  9431. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  9432. # Find out what ABI is being produced by ac_compile, and set linker
  9433. # options accordingly. Note that the listed cases only cover the
  9434. # situations where additional linker options are needed (such as when
  9435. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  9436. # vice versa); the common cases where no linker options are needed do
  9437. # not appear in the list.
  9438. echo 'int i;' > conftest.$ac_ext
  9439. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9440. (eval $ac_compile) 2>&5
  9441. ac_status=$?
  9442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9443. test $ac_status = 0; }; then
  9444. case `/usr/bin/file conftest.o` in
  9445. *32-bit*)
  9446. case $host in
  9447. x86_64-*kfreebsd*-gnu)
  9448. LD="${LD-ld} -m elf_i386_fbsd"
  9449. ;;
  9450. x86_64-*linux*)
  9451. case `/usr/bin/file conftest.o` in
  9452. *x86-64*)
  9453. LD="${LD-ld} -m elf32_x86_64"
  9454. ;;
  9455. *)
  9456. LD="${LD-ld} -m elf_i386"
  9457. ;;
  9458. esac
  9459. ;;
  9460. powerpc64le-*linux*)
  9461. LD="${LD-ld} -m elf32lppclinux"
  9462. ;;
  9463. powerpc64-*linux*)
  9464. LD="${LD-ld} -m elf32ppclinux"
  9465. ;;
  9466. s390x-*linux*)
  9467. LD="${LD-ld} -m elf_s390"
  9468. ;;
  9469. sparc64-*linux*)
  9470. LD="${LD-ld} -m elf32_sparc"
  9471. ;;
  9472. esac
  9473. ;;
  9474. *64-bit*)
  9475. case $host in
  9476. x86_64-*kfreebsd*-gnu)
  9477. LD="${LD-ld} -m elf_x86_64_fbsd"
  9478. ;;
  9479. x86_64-*linux*)
  9480. LD="${LD-ld} -m elf_x86_64"
  9481. ;;
  9482. powerpcle-*linux*)
  9483. LD="${LD-ld} -m elf64lppc"
  9484. ;;
  9485. powerpc-*linux*)
  9486. LD="${LD-ld} -m elf64ppc"
  9487. ;;
  9488. s390*-*linux*|s390*-*tpf*)
  9489. LD="${LD-ld} -m elf64_s390"
  9490. ;;
  9491. sparc*-*linux*)
  9492. LD="${LD-ld} -m elf64_sparc"
  9493. ;;
  9494. esac
  9495. ;;
  9496. esac
  9497. fi
  9498. rm -rf conftest*
  9499. ;;
  9500. *-*-sco3.2v5*)
  9501. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  9502. SAVE_CFLAGS=$CFLAGS
  9503. CFLAGS="$CFLAGS -belf"
  9504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  9505. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  9506. if ${lt_cv_cc_needs_belf+:} false; then :
  9507. $as_echo_n "(cached) " >&6
  9508. else
  9509. ac_ext=c
  9510. ac_cpp='$CPP $CPPFLAGS'
  9511. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9512. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9513. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9515. /* end confdefs.h. */
  9516. int
  9517. main ()
  9518. {
  9519. ;
  9520. return 0;
  9521. }
  9522. _ACEOF
  9523. if ac_fn_c_try_link "$LINENO"; then :
  9524. lt_cv_cc_needs_belf=yes
  9525. else
  9526. lt_cv_cc_needs_belf=no
  9527. fi
  9528. rm -f core conftest.err conftest.$ac_objext \
  9529. conftest$ac_exeext conftest.$ac_ext
  9530. ac_ext=c
  9531. ac_cpp='$CPP $CPPFLAGS'
  9532. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9533. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9534. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9535. fi
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  9537. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  9538. if test yes != "$lt_cv_cc_needs_belf"; then
  9539. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  9540. CFLAGS=$SAVE_CFLAGS
  9541. fi
  9542. ;;
  9543. *-*solaris*)
  9544. # Find out what ABI is being produced by ac_compile, and set linker
  9545. # options accordingly.
  9546. echo 'int i;' > conftest.$ac_ext
  9547. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9548. (eval $ac_compile) 2>&5
  9549. ac_status=$?
  9550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9551. test $ac_status = 0; }; then
  9552. case `/usr/bin/file conftest.o` in
  9553. *64-bit*)
  9554. case $lt_cv_prog_gnu_ld in
  9555. yes*)
  9556. case $host in
  9557. i?86-*-solaris*|x86_64-*-solaris*)
  9558. LD="${LD-ld} -m elf_x86_64"
  9559. ;;
  9560. sparc*-*-solaris*)
  9561. LD="${LD-ld} -m elf64_sparc"
  9562. ;;
  9563. esac
  9564. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  9565. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  9566. LD=${LD-ld}_sol2
  9567. fi
  9568. ;;
  9569. *)
  9570. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  9571. LD="${LD-ld} -64"
  9572. fi
  9573. ;;
  9574. esac
  9575. ;;
  9576. esac
  9577. fi
  9578. rm -rf conftest*
  9579. ;;
  9580. esac
  9581. need_locks=$enable_libtool_lock
  9582. if test -n "$ac_tool_prefix"; then
  9583. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  9584. set dummy ${ac_tool_prefix}mt; ac_word=$2
  9585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9586. $as_echo_n "checking for $ac_word... " >&6; }
  9587. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  9588. $as_echo_n "(cached) " >&6
  9589. else
  9590. if test -n "$MANIFEST_TOOL"; then
  9591. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  9592. else
  9593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9594. for as_dir in $PATH
  9595. do
  9596. IFS=$as_save_IFS
  9597. test -z "$as_dir" && as_dir=.
  9598. for ac_exec_ext in '' $ac_executable_extensions; do
  9599. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9600. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  9601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9602. break 2
  9603. fi
  9604. done
  9605. done
  9606. IFS=$as_save_IFS
  9607. fi
  9608. fi
  9609. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  9610. if test -n "$MANIFEST_TOOL"; then
  9611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  9612. $as_echo "$MANIFEST_TOOL" >&6; }
  9613. else
  9614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9615. $as_echo "no" >&6; }
  9616. fi
  9617. fi
  9618. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  9619. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  9620. # Extract the first word of "mt", so it can be a program name with args.
  9621. set dummy mt; ac_word=$2
  9622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9623. $as_echo_n "checking for $ac_word... " >&6; }
  9624. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  9625. $as_echo_n "(cached) " >&6
  9626. else
  9627. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9628. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  9629. else
  9630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9631. for as_dir in $PATH
  9632. do
  9633. IFS=$as_save_IFS
  9634. test -z "$as_dir" && as_dir=.
  9635. for ac_exec_ext in '' $ac_executable_extensions; do
  9636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9637. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  9638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9639. break 2
  9640. fi
  9641. done
  9642. done
  9643. IFS=$as_save_IFS
  9644. fi
  9645. fi
  9646. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  9647. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  9649. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  9650. else
  9651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9652. $as_echo "no" >&6; }
  9653. fi
  9654. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  9655. MANIFEST_TOOL=":"
  9656. else
  9657. case $cross_compiling:$ac_tool_warned in
  9658. yes:)
  9659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9660. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9661. ac_tool_warned=yes ;;
  9662. esac
  9663. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  9664. fi
  9665. else
  9666. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  9667. fi
  9668. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  9669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  9670. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  9671. if ${lt_cv_path_mainfest_tool+:} false; then :
  9672. $as_echo_n "(cached) " >&6
  9673. else
  9674. lt_cv_path_mainfest_tool=no
  9675. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  9676. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  9677. cat conftest.err >&5
  9678. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  9679. lt_cv_path_mainfest_tool=yes
  9680. fi
  9681. rm -f conftest*
  9682. fi
  9683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  9684. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  9685. if test yes != "$lt_cv_path_mainfest_tool"; then
  9686. MANIFEST_TOOL=:
  9687. fi
  9688. case $host_os in
  9689. rhapsody* | darwin*)
  9690. if test -n "$ac_tool_prefix"; then
  9691. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  9692. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9694. $as_echo_n "checking for $ac_word... " >&6; }
  9695. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  9696. $as_echo_n "(cached) " >&6
  9697. else
  9698. if test -n "$DSYMUTIL"; then
  9699. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  9700. else
  9701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9702. for as_dir in $PATH
  9703. do
  9704. IFS=$as_save_IFS
  9705. test -z "$as_dir" && as_dir=.
  9706. for ac_exec_ext in '' $ac_executable_extensions; do
  9707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9708. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  9709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9710. break 2
  9711. fi
  9712. done
  9713. done
  9714. IFS=$as_save_IFS
  9715. fi
  9716. fi
  9717. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9718. if test -n "$DSYMUTIL"; then
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  9720. $as_echo "$DSYMUTIL" >&6; }
  9721. else
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9723. $as_echo "no" >&6; }
  9724. fi
  9725. fi
  9726. if test -z "$ac_cv_prog_DSYMUTIL"; then
  9727. ac_ct_DSYMUTIL=$DSYMUTIL
  9728. # Extract the first word of "dsymutil", so it can be a program name with args.
  9729. set dummy dsymutil; ac_word=$2
  9730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9731. $as_echo_n "checking for $ac_word... " >&6; }
  9732. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  9733. $as_echo_n "(cached) " >&6
  9734. else
  9735. if test -n "$ac_ct_DSYMUTIL"; then
  9736. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  9737. else
  9738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9739. for as_dir in $PATH
  9740. do
  9741. IFS=$as_save_IFS
  9742. test -z "$as_dir" && as_dir=.
  9743. for ac_exec_ext in '' $ac_executable_extensions; do
  9744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9745. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  9746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9747. break 2
  9748. fi
  9749. done
  9750. done
  9751. IFS=$as_save_IFS
  9752. fi
  9753. fi
  9754. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  9755. if test -n "$ac_ct_DSYMUTIL"; then
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  9757. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  9758. else
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9760. $as_echo "no" >&6; }
  9761. fi
  9762. if test "x$ac_ct_DSYMUTIL" = x; then
  9763. DSYMUTIL=":"
  9764. else
  9765. case $cross_compiling:$ac_tool_warned in
  9766. yes:)
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9769. ac_tool_warned=yes ;;
  9770. esac
  9771. DSYMUTIL=$ac_ct_DSYMUTIL
  9772. fi
  9773. else
  9774. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  9775. fi
  9776. if test -n "$ac_tool_prefix"; then
  9777. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  9778. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  9779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9780. $as_echo_n "checking for $ac_word... " >&6; }
  9781. if ${ac_cv_prog_NMEDIT+:} false; then :
  9782. $as_echo_n "(cached) " >&6
  9783. else
  9784. if test -n "$NMEDIT"; then
  9785. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  9786. else
  9787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9788. for as_dir in $PATH
  9789. do
  9790. IFS=$as_save_IFS
  9791. test -z "$as_dir" && as_dir=.
  9792. for ac_exec_ext in '' $ac_executable_extensions; do
  9793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9794. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  9795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9796. break 2
  9797. fi
  9798. done
  9799. done
  9800. IFS=$as_save_IFS
  9801. fi
  9802. fi
  9803. NMEDIT=$ac_cv_prog_NMEDIT
  9804. if test -n "$NMEDIT"; then
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  9806. $as_echo "$NMEDIT" >&6; }
  9807. else
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9809. $as_echo "no" >&6; }
  9810. fi
  9811. fi
  9812. if test -z "$ac_cv_prog_NMEDIT"; then
  9813. ac_ct_NMEDIT=$NMEDIT
  9814. # Extract the first word of "nmedit", so it can be a program name with args.
  9815. set dummy nmedit; ac_word=$2
  9816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9817. $as_echo_n "checking for $ac_word... " >&6; }
  9818. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  9819. $as_echo_n "(cached) " >&6
  9820. else
  9821. if test -n "$ac_ct_NMEDIT"; then
  9822. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  9823. else
  9824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9825. for as_dir in $PATH
  9826. do
  9827. IFS=$as_save_IFS
  9828. test -z "$as_dir" && as_dir=.
  9829. for ac_exec_ext in '' $ac_executable_extensions; do
  9830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9831. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  9832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9833. break 2
  9834. fi
  9835. done
  9836. done
  9837. IFS=$as_save_IFS
  9838. fi
  9839. fi
  9840. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  9841. if test -n "$ac_ct_NMEDIT"; then
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  9843. $as_echo "$ac_ct_NMEDIT" >&6; }
  9844. else
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9846. $as_echo "no" >&6; }
  9847. fi
  9848. if test "x$ac_ct_NMEDIT" = x; then
  9849. NMEDIT=":"
  9850. else
  9851. case $cross_compiling:$ac_tool_warned in
  9852. yes:)
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9855. ac_tool_warned=yes ;;
  9856. esac
  9857. NMEDIT=$ac_ct_NMEDIT
  9858. fi
  9859. else
  9860. NMEDIT="$ac_cv_prog_NMEDIT"
  9861. fi
  9862. if test -n "$ac_tool_prefix"; then
  9863. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  9864. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9866. $as_echo_n "checking for $ac_word... " >&6; }
  9867. if ${ac_cv_prog_LIPO+:} false; then :
  9868. $as_echo_n "(cached) " >&6
  9869. else
  9870. if test -n "$LIPO"; then
  9871. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  9872. else
  9873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9874. for as_dir in $PATH
  9875. do
  9876. IFS=$as_save_IFS
  9877. test -z "$as_dir" && as_dir=.
  9878. for ac_exec_ext in '' $ac_executable_extensions; do
  9879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9880. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  9881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9882. break 2
  9883. fi
  9884. done
  9885. done
  9886. IFS=$as_save_IFS
  9887. fi
  9888. fi
  9889. LIPO=$ac_cv_prog_LIPO
  9890. if test -n "$LIPO"; then
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  9892. $as_echo "$LIPO" >&6; }
  9893. else
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9895. $as_echo "no" >&6; }
  9896. fi
  9897. fi
  9898. if test -z "$ac_cv_prog_LIPO"; then
  9899. ac_ct_LIPO=$LIPO
  9900. # Extract the first word of "lipo", so it can be a program name with args.
  9901. set dummy lipo; ac_word=$2
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9903. $as_echo_n "checking for $ac_word... " >&6; }
  9904. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  9905. $as_echo_n "(cached) " >&6
  9906. else
  9907. if test -n "$ac_ct_LIPO"; then
  9908. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  9909. else
  9910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9911. for as_dir in $PATH
  9912. do
  9913. IFS=$as_save_IFS
  9914. test -z "$as_dir" && as_dir=.
  9915. for ac_exec_ext in '' $ac_executable_extensions; do
  9916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9917. ac_cv_prog_ac_ct_LIPO="lipo"
  9918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9919. break 2
  9920. fi
  9921. done
  9922. done
  9923. IFS=$as_save_IFS
  9924. fi
  9925. fi
  9926. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  9927. if test -n "$ac_ct_LIPO"; then
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  9929. $as_echo "$ac_ct_LIPO" >&6; }
  9930. else
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9932. $as_echo "no" >&6; }
  9933. fi
  9934. if test "x$ac_ct_LIPO" = x; then
  9935. LIPO=":"
  9936. else
  9937. case $cross_compiling:$ac_tool_warned in
  9938. yes:)
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9940. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9941. ac_tool_warned=yes ;;
  9942. esac
  9943. LIPO=$ac_ct_LIPO
  9944. fi
  9945. else
  9946. LIPO="$ac_cv_prog_LIPO"
  9947. fi
  9948. if test -n "$ac_tool_prefix"; then
  9949. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  9950. set dummy ${ac_tool_prefix}otool; ac_word=$2
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9952. $as_echo_n "checking for $ac_word... " >&6; }
  9953. if ${ac_cv_prog_OTOOL+:} false; then :
  9954. $as_echo_n "(cached) " >&6
  9955. else
  9956. if test -n "$OTOOL"; then
  9957. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  9958. else
  9959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9960. for as_dir in $PATH
  9961. do
  9962. IFS=$as_save_IFS
  9963. test -z "$as_dir" && as_dir=.
  9964. for ac_exec_ext in '' $ac_executable_extensions; do
  9965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9966. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  9967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9968. break 2
  9969. fi
  9970. done
  9971. done
  9972. IFS=$as_save_IFS
  9973. fi
  9974. fi
  9975. OTOOL=$ac_cv_prog_OTOOL
  9976. if test -n "$OTOOL"; then
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  9978. $as_echo "$OTOOL" >&6; }
  9979. else
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9981. $as_echo "no" >&6; }
  9982. fi
  9983. fi
  9984. if test -z "$ac_cv_prog_OTOOL"; then
  9985. ac_ct_OTOOL=$OTOOL
  9986. # Extract the first word of "otool", so it can be a program name with args.
  9987. set dummy otool; ac_word=$2
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9989. $as_echo_n "checking for $ac_word... " >&6; }
  9990. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  9991. $as_echo_n "(cached) " >&6
  9992. else
  9993. if test -n "$ac_ct_OTOOL"; then
  9994. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  9995. else
  9996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9997. for as_dir in $PATH
  9998. do
  9999. IFS=$as_save_IFS
  10000. test -z "$as_dir" && as_dir=.
  10001. for ac_exec_ext in '' $ac_executable_extensions; do
  10002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10003. ac_cv_prog_ac_ct_OTOOL="otool"
  10004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10005. break 2
  10006. fi
  10007. done
  10008. done
  10009. IFS=$as_save_IFS
  10010. fi
  10011. fi
  10012. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  10013. if test -n "$ac_ct_OTOOL"; then
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  10015. $as_echo "$ac_ct_OTOOL" >&6; }
  10016. else
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10018. $as_echo "no" >&6; }
  10019. fi
  10020. if test "x$ac_ct_OTOOL" = x; then
  10021. OTOOL=":"
  10022. else
  10023. case $cross_compiling:$ac_tool_warned in
  10024. yes:)
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10027. ac_tool_warned=yes ;;
  10028. esac
  10029. OTOOL=$ac_ct_OTOOL
  10030. fi
  10031. else
  10032. OTOOL="$ac_cv_prog_OTOOL"
  10033. fi
  10034. if test -n "$ac_tool_prefix"; then
  10035. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  10036. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10038. $as_echo_n "checking for $ac_word... " >&6; }
  10039. if ${ac_cv_prog_OTOOL64+:} false; then :
  10040. $as_echo_n "(cached) " >&6
  10041. else
  10042. if test -n "$OTOOL64"; then
  10043. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  10044. else
  10045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10046. for as_dir in $PATH
  10047. do
  10048. IFS=$as_save_IFS
  10049. test -z "$as_dir" && as_dir=.
  10050. for ac_exec_ext in '' $ac_executable_extensions; do
  10051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10052. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  10053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10054. break 2
  10055. fi
  10056. done
  10057. done
  10058. IFS=$as_save_IFS
  10059. fi
  10060. fi
  10061. OTOOL64=$ac_cv_prog_OTOOL64
  10062. if test -n "$OTOOL64"; then
  10063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  10064. $as_echo "$OTOOL64" >&6; }
  10065. else
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10067. $as_echo "no" >&6; }
  10068. fi
  10069. fi
  10070. if test -z "$ac_cv_prog_OTOOL64"; then
  10071. ac_ct_OTOOL64=$OTOOL64
  10072. # Extract the first word of "otool64", so it can be a program name with args.
  10073. set dummy otool64; ac_word=$2
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10075. $as_echo_n "checking for $ac_word... " >&6; }
  10076. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  10077. $as_echo_n "(cached) " >&6
  10078. else
  10079. if test -n "$ac_ct_OTOOL64"; then
  10080. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  10081. else
  10082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10083. for as_dir in $PATH
  10084. do
  10085. IFS=$as_save_IFS
  10086. test -z "$as_dir" && as_dir=.
  10087. for ac_exec_ext in '' $ac_executable_extensions; do
  10088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10089. ac_cv_prog_ac_ct_OTOOL64="otool64"
  10090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10091. break 2
  10092. fi
  10093. done
  10094. done
  10095. IFS=$as_save_IFS
  10096. fi
  10097. fi
  10098. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  10099. if test -n "$ac_ct_OTOOL64"; then
  10100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  10101. $as_echo "$ac_ct_OTOOL64" >&6; }
  10102. else
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10104. $as_echo "no" >&6; }
  10105. fi
  10106. if test "x$ac_ct_OTOOL64" = x; then
  10107. OTOOL64=":"
  10108. else
  10109. case $cross_compiling:$ac_tool_warned in
  10110. yes:)
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10113. ac_tool_warned=yes ;;
  10114. esac
  10115. OTOOL64=$ac_ct_OTOOL64
  10116. fi
  10117. else
  10118. OTOOL64="$ac_cv_prog_OTOOL64"
  10119. fi
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  10121. $as_echo_n "checking for -single_module linker flag... " >&6; }
  10122. if ${lt_cv_apple_cc_single_mod+:} false; then :
  10123. $as_echo_n "(cached) " >&6
  10124. else
  10125. lt_cv_apple_cc_single_mod=no
  10126. if test -z "$LT_MULTI_MODULE"; then
  10127. # By default we will add the -single_module flag. You can override
  10128. # by either setting the environment variable LT_MULTI_MODULE
  10129. # non-empty at configure time, or by adding -multi_module to the
  10130. # link flags.
  10131. rm -rf libconftest.dylib*
  10132. echo "int foo(void){return 1;}" > conftest.c
  10133. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  10134. -dynamiclib -Wl,-single_module conftest.c" >&5
  10135. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  10136. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  10137. _lt_result=$?
  10138. # If there is a non-empty error log, and "single_module"
  10139. # appears in it, assume the flag caused a linker warning
  10140. if test -s conftest.err && $GREP single_module conftest.err; then
  10141. cat conftest.err >&5
  10142. # Otherwise, if the output was created with a 0 exit code from
  10143. # the compiler, it worked.
  10144. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  10145. lt_cv_apple_cc_single_mod=yes
  10146. else
  10147. cat conftest.err >&5
  10148. fi
  10149. rm -rf libconftest.dylib*
  10150. rm -f conftest.*
  10151. fi
  10152. fi
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  10154. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  10156. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  10157. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  10158. $as_echo_n "(cached) " >&6
  10159. else
  10160. lt_cv_ld_exported_symbols_list=no
  10161. save_LDFLAGS=$LDFLAGS
  10162. echo "_main" > conftest.sym
  10163. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  10164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10165. /* end confdefs.h. */
  10166. int
  10167. main ()
  10168. {
  10169. ;
  10170. return 0;
  10171. }
  10172. _ACEOF
  10173. if ac_fn_c_try_link "$LINENO"; then :
  10174. lt_cv_ld_exported_symbols_list=yes
  10175. else
  10176. lt_cv_ld_exported_symbols_list=no
  10177. fi
  10178. rm -f core conftest.err conftest.$ac_objext \
  10179. conftest$ac_exeext conftest.$ac_ext
  10180. LDFLAGS=$save_LDFLAGS
  10181. fi
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  10183. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  10185. $as_echo_n "checking for -force_load linker flag... " >&6; }
  10186. if ${lt_cv_ld_force_load+:} false; then :
  10187. $as_echo_n "(cached) " >&6
  10188. else
  10189. lt_cv_ld_force_load=no
  10190. cat > conftest.c << _LT_EOF
  10191. int forced_loaded() { return 2;}
  10192. _LT_EOF
  10193. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  10194. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  10195. echo "$AR cru libconftest.a conftest.o" >&5
  10196. $AR cru libconftest.a conftest.o 2>&5
  10197. echo "$RANLIB libconftest.a" >&5
  10198. $RANLIB libconftest.a 2>&5
  10199. cat > conftest.c << _LT_EOF
  10200. int main() { return 0;}
  10201. _LT_EOF
  10202. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  10203. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  10204. _lt_result=$?
  10205. if test -s conftest.err && $GREP force_load conftest.err; then
  10206. cat conftest.err >&5
  10207. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  10208. lt_cv_ld_force_load=yes
  10209. else
  10210. cat conftest.err >&5
  10211. fi
  10212. rm -f conftest.err libconftest.a conftest conftest.c
  10213. rm -rf conftest.dSYM
  10214. fi
  10215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  10216. $as_echo "$lt_cv_ld_force_load" >&6; }
  10217. case $host_os in
  10218. rhapsody* | darwin1.[012])
  10219. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  10220. darwin1.*)
  10221. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  10222. darwin*) # darwin 5.x on
  10223. # if running on 10.5 or later, the deployment target defaults
  10224. # to the OS version, if on x86, and 10.4, the deployment
  10225. # target defaults to 10.4. Don't you love it?
  10226. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  10227. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  10228. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  10229. 10.[012][,.]*)
  10230. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  10231. 10.*)
  10232. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  10233. esac
  10234. ;;
  10235. esac
  10236. if test yes = "$lt_cv_apple_cc_single_mod"; then
  10237. _lt_dar_single_mod='$single_module'
  10238. fi
  10239. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  10240. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  10241. else
  10242. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  10243. fi
  10244. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  10245. _lt_dsymutil='~$DSYMUTIL $lib || :'
  10246. else
  10247. _lt_dsymutil=
  10248. fi
  10249. ;;
  10250. esac
  10251. # func_munge_path_list VARIABLE PATH
  10252. # -----------------------------------
  10253. # VARIABLE is name of variable containing _space_ separated list of
  10254. # directories to be munged by the contents of PATH, which is string
  10255. # having a format:
  10256. # "DIR[:DIR]:"
  10257. # string "DIR[ DIR]" will be prepended to VARIABLE
  10258. # ":DIR[:DIR]"
  10259. # string "DIR[ DIR]" will be appended to VARIABLE
  10260. # "DIRP[:DIRP]::[DIRA:]DIRA"
  10261. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  10262. # "DIRA[ DIRA]" will be appended to VARIABLE
  10263. # "DIR[:DIR]"
  10264. # VARIABLE will be replaced by "DIR[ DIR]"
  10265. func_munge_path_list ()
  10266. {
  10267. case x@S|@2 in
  10268. x)
  10269. ;;
  10270. *:)
  10271. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
  10272. ;;
  10273. x:*)
  10274. eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
  10275. ;;
  10276. *::*)
  10277. eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  10278. eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
  10279. ;;
  10280. *)
  10281. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
  10282. ;;
  10283. esac
  10284. }
  10285. for ac_header in dlfcn.h
  10286. do :
  10287. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  10288. "
  10289. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  10290. cat >>confdefs.h <<_ACEOF
  10291. @%:@define HAVE_DLFCN_H 1
  10292. _ACEOF
  10293. fi
  10294. done
  10295. # Set options
  10296. enable_dlopen=no
  10297. enable_win32_dll=no
  10298. @%:@ Check whether --enable-shared was given.
  10299. if test "${enable_shared+set}" = set; then :
  10300. enableval=$enable_shared; p=${PACKAGE-default}
  10301. case $enableval in
  10302. yes) enable_shared=yes ;;
  10303. no) enable_shared=no ;;
  10304. *)
  10305. enable_shared=no
  10306. # Look at the argument we got. We use all the common list separators.
  10307. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10308. for pkg in $enableval; do
  10309. IFS=$lt_save_ifs
  10310. if test "X$pkg" = "X$p"; then
  10311. enable_shared=yes
  10312. fi
  10313. done
  10314. IFS=$lt_save_ifs
  10315. ;;
  10316. esac
  10317. else
  10318. enable_shared=yes
  10319. fi
  10320. @%:@ Check whether --enable-static was given.
  10321. if test "${enable_static+set}" = set; then :
  10322. enableval=$enable_static; p=${PACKAGE-default}
  10323. case $enableval in
  10324. yes) enable_static=yes ;;
  10325. no) enable_static=no ;;
  10326. *)
  10327. enable_static=no
  10328. # Look at the argument we got. We use all the common list separators.
  10329. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10330. for pkg in $enableval; do
  10331. IFS=$lt_save_ifs
  10332. if test "X$pkg" = "X$p"; then
  10333. enable_static=yes
  10334. fi
  10335. done
  10336. IFS=$lt_save_ifs
  10337. ;;
  10338. esac
  10339. else
  10340. enable_static=yes
  10341. fi
  10342. @%:@ Check whether --with-pic was given.
  10343. if test "${with_pic+set}" = set; then :
  10344. withval=$with_pic; lt_p=${PACKAGE-default}
  10345. case $withval in
  10346. yes|no) pic_mode=$withval ;;
  10347. *)
  10348. pic_mode=default
  10349. # Look at the argument we got. We use all the common list separators.
  10350. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10351. for lt_pkg in $withval; do
  10352. IFS=$lt_save_ifs
  10353. if test "X$lt_pkg" = "X$lt_p"; then
  10354. pic_mode=yes
  10355. fi
  10356. done
  10357. IFS=$lt_save_ifs
  10358. ;;
  10359. esac
  10360. else
  10361. pic_mode=default
  10362. fi
  10363. @%:@ Check whether --enable-fast-install was given.
  10364. if test "${enable_fast_install+set}" = set; then :
  10365. enableval=$enable_fast_install; p=${PACKAGE-default}
  10366. case $enableval in
  10367. yes) enable_fast_install=yes ;;
  10368. no) enable_fast_install=no ;;
  10369. *)
  10370. enable_fast_install=no
  10371. # Look at the argument we got. We use all the common list separators.
  10372. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10373. for pkg in $enableval; do
  10374. IFS=$lt_save_ifs
  10375. if test "X$pkg" = "X$p"; then
  10376. enable_fast_install=yes
  10377. fi
  10378. done
  10379. IFS=$lt_save_ifs
  10380. ;;
  10381. esac
  10382. else
  10383. enable_fast_install=yes
  10384. fi
  10385. shared_archive_member_spec=
  10386. case $host,$enable_shared in
  10387. power*-*-aix[5-9]*,yes)
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  10389. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  10390. @%:@ Check whether --with-aix-soname was given.
  10391. if test "${with_aix_soname+set}" = set; then :
  10392. withval=$with_aix_soname; case $withval in
  10393. aix|svr4|both)
  10394. ;;
  10395. *)
  10396. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  10397. ;;
  10398. esac
  10399. lt_cv_with_aix_soname=$with_aix_soname
  10400. else
  10401. if ${lt_cv_with_aix_soname+:} false; then :
  10402. $as_echo_n "(cached) " >&6
  10403. else
  10404. lt_cv_with_aix_soname=aix
  10405. fi
  10406. with_aix_soname=$lt_cv_with_aix_soname
  10407. fi
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  10409. $as_echo "$with_aix_soname" >&6; }
  10410. if test aix != "$with_aix_soname"; then
  10411. # For the AIX way of multilib, we name the shared archive member
  10412. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  10413. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  10414. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  10415. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  10416. if test 64 = "${OBJECT_MODE-32}"; then
  10417. shared_archive_member_spec=shr_64
  10418. else
  10419. shared_archive_member_spec=shr
  10420. fi
  10421. fi
  10422. ;;
  10423. *)
  10424. with_aix_soname=aix
  10425. ;;
  10426. esac
  10427. # This can be used to rebuild libtool when needed
  10428. LIBTOOL_DEPS=$ltmain
  10429. # Always use our own libtool.
  10430. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  10431. test -z "$LN_S" && LN_S="ln -s"
  10432. if test -n "${ZSH_VERSION+set}"; then
  10433. setopt NO_GLOB_SUBST
  10434. fi
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  10436. $as_echo_n "checking for objdir... " >&6; }
  10437. if ${lt_cv_objdir+:} false; then :
  10438. $as_echo_n "(cached) " >&6
  10439. else
  10440. rm -f .libs 2>/dev/null
  10441. mkdir .libs 2>/dev/null
  10442. if test -d .libs; then
  10443. lt_cv_objdir=.libs
  10444. else
  10445. # MS-DOS does not allow filenames that begin with a dot.
  10446. lt_cv_objdir=_libs
  10447. fi
  10448. rmdir .libs 2>/dev/null
  10449. fi
  10450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  10451. $as_echo "$lt_cv_objdir" >&6; }
  10452. objdir=$lt_cv_objdir
  10453. cat >>confdefs.h <<_ACEOF
  10454. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  10455. _ACEOF
  10456. case $host_os in
  10457. aix3*)
  10458. # AIX sometimes has problems with the GCC collect2 program. For some
  10459. # reason, if we set the COLLECT_NAMES environment variable, the problems
  10460. # vanish in a puff of smoke.
  10461. if test set != "${COLLECT_NAMES+set}"; then
  10462. COLLECT_NAMES=
  10463. export COLLECT_NAMES
  10464. fi
  10465. ;;
  10466. esac
  10467. # Global variables:
  10468. ofile=libtool
  10469. can_build_shared=yes
  10470. # All known linkers require a '.a' archive for static linking (except MSVC,
  10471. # which needs '.lib').
  10472. libext=a
  10473. with_gnu_ld=$lt_cv_prog_gnu_ld
  10474. old_CC=$CC
  10475. old_CFLAGS=$CFLAGS
  10476. # Set sane defaults for various variables
  10477. test -z "$CC" && CC=cc
  10478. test -z "$LTCC" && LTCC=$CC
  10479. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  10480. test -z "$LD" && LD=ld
  10481. test -z "$ac_objext" && ac_objext=o
  10482. func_cc_basename $compiler
  10483. cc_basename=$func_cc_basename_result
  10484. # Only perform the check for file, if the check method requires it
  10485. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  10486. case $deplibs_check_method in
  10487. file_magic*)
  10488. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  10490. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  10491. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  10492. $as_echo_n "(cached) " >&6
  10493. else
  10494. case $MAGIC_CMD in
  10495. [\\/*] | ?:[\\/]*)
  10496. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  10497. ;;
  10498. *)
  10499. lt_save_MAGIC_CMD=$MAGIC_CMD
  10500. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  10501. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10502. for ac_dir in $ac_dummy; do
  10503. IFS=$lt_save_ifs
  10504. test -z "$ac_dir" && ac_dir=.
  10505. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  10506. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  10507. if test -n "$file_magic_test_file"; then
  10508. case $deplibs_check_method in
  10509. "file_magic "*)
  10510. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10511. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10512. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10513. $EGREP "$file_magic_regex" > /dev/null; then
  10514. :
  10515. else
  10516. cat <<_LT_EOF 1>&2
  10517. *** Warning: the command libtool uses to detect shared libraries,
  10518. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10519. *** The result is that libtool may fail to recognize shared libraries
  10520. *** as such. This will affect the creation of libtool libraries that
  10521. *** depend on shared libraries, but programs linked with such libtool
  10522. *** libraries will work regardless of this problem. Nevertheless, you
  10523. *** may want to report the problem to your system manager and/or to
  10524. *** bug-libtool@gnu.org
  10525. _LT_EOF
  10526. fi ;;
  10527. esac
  10528. fi
  10529. break
  10530. fi
  10531. done
  10532. IFS=$lt_save_ifs
  10533. MAGIC_CMD=$lt_save_MAGIC_CMD
  10534. ;;
  10535. esac
  10536. fi
  10537. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10538. if test -n "$MAGIC_CMD"; then
  10539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10540. $as_echo "$MAGIC_CMD" >&6; }
  10541. else
  10542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10543. $as_echo "no" >&6; }
  10544. fi
  10545. if test -z "$lt_cv_path_MAGIC_CMD"; then
  10546. if test -n "$ac_tool_prefix"; then
  10547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  10548. $as_echo_n "checking for file... " >&6; }
  10549. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  10550. $as_echo_n "(cached) " >&6
  10551. else
  10552. case $MAGIC_CMD in
  10553. [\\/*] | ?:[\\/]*)
  10554. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  10555. ;;
  10556. *)
  10557. lt_save_MAGIC_CMD=$MAGIC_CMD
  10558. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  10559. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10560. for ac_dir in $ac_dummy; do
  10561. IFS=$lt_save_ifs
  10562. test -z "$ac_dir" && ac_dir=.
  10563. if test -f "$ac_dir/file"; then
  10564. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  10565. if test -n "$file_magic_test_file"; then
  10566. case $deplibs_check_method in
  10567. "file_magic "*)
  10568. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10569. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10570. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10571. $EGREP "$file_magic_regex" > /dev/null; then
  10572. :
  10573. else
  10574. cat <<_LT_EOF 1>&2
  10575. *** Warning: the command libtool uses to detect shared libraries,
  10576. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10577. *** The result is that libtool may fail to recognize shared libraries
  10578. *** as such. This will affect the creation of libtool libraries that
  10579. *** depend on shared libraries, but programs linked with such libtool
  10580. *** libraries will work regardless of this problem. Nevertheless, you
  10581. *** may want to report the problem to your system manager and/or to
  10582. *** bug-libtool@gnu.org
  10583. _LT_EOF
  10584. fi ;;
  10585. esac
  10586. fi
  10587. break
  10588. fi
  10589. done
  10590. IFS=$lt_save_ifs
  10591. MAGIC_CMD=$lt_save_MAGIC_CMD
  10592. ;;
  10593. esac
  10594. fi
  10595. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10596. if test -n "$MAGIC_CMD"; then
  10597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10598. $as_echo "$MAGIC_CMD" >&6; }
  10599. else
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10601. $as_echo "no" >&6; }
  10602. fi
  10603. else
  10604. MAGIC_CMD=:
  10605. fi
  10606. fi
  10607. fi
  10608. ;;
  10609. esac
  10610. # Use C for the default configuration in the libtool script
  10611. lt_save_CC=$CC
  10612. ac_ext=c
  10613. ac_cpp='$CPP $CPPFLAGS'
  10614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10617. # Source file extension for C test sources.
  10618. ac_ext=c
  10619. # Object file extension for compiled C test sources.
  10620. objext=o
  10621. objext=$objext
  10622. # Code to be used in simple compile tests
  10623. lt_simple_compile_test_code="int some_variable = 0;"
  10624. # Code to be used in simple link tests
  10625. lt_simple_link_test_code='int main(){return(0);}'
  10626. # If no C compiler was specified, use CC.
  10627. LTCC=${LTCC-"$CC"}
  10628. # If no C compiler flags were specified, use CFLAGS.
  10629. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10630. # Allow CC to be a program name with arguments.
  10631. compiler=$CC
  10632. # Save the default compiler, since it gets overwritten when the other
  10633. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  10634. compiler_DEFAULT=$CC
  10635. # save warnings/boilerplate of simple test code
  10636. ac_outfile=conftest.$ac_objext
  10637. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10638. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10639. _lt_compiler_boilerplate=`cat conftest.err`
  10640. $RM conftest*
  10641. ac_outfile=conftest.$ac_objext
  10642. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10643. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10644. _lt_linker_boilerplate=`cat conftest.err`
  10645. $RM -r conftest*
  10646. ## CAVEAT EMPTOR:
  10647. ## There is no encapsulation within the following macros, do not change
  10648. ## the running order or otherwise move them around unless you know exactly
  10649. ## what you are doing...
  10650. if test -n "$compiler"; then
  10651. lt_prog_compiler_no_builtin_flag=
  10652. if test yes = "$GCC"; then
  10653. case $cc_basename in
  10654. nvcc*)
  10655. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  10656. *)
  10657. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  10658. esac
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10660. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10661. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  10662. $as_echo_n "(cached) " >&6
  10663. else
  10664. lt_cv_prog_compiler_rtti_exceptions=no
  10665. ac_outfile=conftest.$ac_objext
  10666. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10667. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  10668. # Insert the option either (1) after the last *FLAGS variable, or
  10669. # (2) before a word containing "conftest.", or (3) at the end.
  10670. # Note that $ac_compile itself does not contain backslashes and begins
  10671. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10672. # The option is referenced via a variable to avoid confusing sed.
  10673. lt_compile=`echo "$ac_compile" | $SED \
  10674. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10675. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10676. -e 's:$: $lt_compiler_flag:'`
  10677. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10678. (eval "$lt_compile" 2>conftest.err)
  10679. ac_status=$?
  10680. cat conftest.err >&5
  10681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10682. if (exit $ac_status) && test -s "$ac_outfile"; then
  10683. # The compiler can only warn and ignore the option if not recognized
  10684. # So say no if there are warnings other than the usual output.
  10685. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10686. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10687. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10688. lt_cv_prog_compiler_rtti_exceptions=yes
  10689. fi
  10690. fi
  10691. $RM conftest*
  10692. fi
  10693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10694. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10695. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  10696. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  10697. else
  10698. :
  10699. fi
  10700. fi
  10701. lt_prog_compiler_wl=
  10702. lt_prog_compiler_pic=
  10703. lt_prog_compiler_static=
  10704. if test yes = "$GCC"; then
  10705. lt_prog_compiler_wl='-Wl,'
  10706. lt_prog_compiler_static='-static'
  10707. case $host_os in
  10708. aix*)
  10709. # All AIX code is PIC.
  10710. if test ia64 = "$host_cpu"; then
  10711. # AIX 5 now supports IA64 processor
  10712. lt_prog_compiler_static='-Bstatic'
  10713. fi
  10714. lt_prog_compiler_pic='-fPIC'
  10715. ;;
  10716. amigaos*)
  10717. case $host_cpu in
  10718. powerpc)
  10719. # see comment about AmigaOS4 .so support
  10720. lt_prog_compiler_pic='-fPIC'
  10721. ;;
  10722. m68k)
  10723. # FIXME: we need at least 68020 code to build shared libraries, but
  10724. # adding the '-m68020' flag to GCC prevents building anything better,
  10725. # like '-m68040'.
  10726. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  10727. ;;
  10728. esac
  10729. ;;
  10730. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10731. # PIC is the default for these OSes.
  10732. ;;
  10733. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10734. # This hack is so that the source file can tell whether it is being
  10735. # built for inclusion in a dll (and should export symbols for example).
  10736. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10737. # (--disable-auto-import) libraries
  10738. lt_prog_compiler_pic='-DDLL_EXPORT'
  10739. case $host_os in
  10740. os2*)
  10741. lt_prog_compiler_static='$wl-static'
  10742. ;;
  10743. esac
  10744. ;;
  10745. darwin* | rhapsody*)
  10746. # PIC is the default on this platform
  10747. # Common symbols not allowed in MH_DYLIB files
  10748. lt_prog_compiler_pic='-fno-common'
  10749. ;;
  10750. haiku*)
  10751. # PIC is the default for Haiku.
  10752. # The "-static" flag exists, but is broken.
  10753. lt_prog_compiler_static=
  10754. ;;
  10755. hpux*)
  10756. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10757. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10758. # sets the default TLS model and affects inlining.
  10759. case $host_cpu in
  10760. hppa*64*)
  10761. # +Z the default
  10762. ;;
  10763. *)
  10764. lt_prog_compiler_pic='-fPIC'
  10765. ;;
  10766. esac
  10767. ;;
  10768. interix[3-9]*)
  10769. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10770. # Instead, we relocate shared libraries at runtime.
  10771. ;;
  10772. msdosdjgpp*)
  10773. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10774. # on systems that don't support them.
  10775. lt_prog_compiler_can_build_shared=no
  10776. enable_shared=no
  10777. ;;
  10778. *nto* | *qnx*)
  10779. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10780. # it will coredump.
  10781. lt_prog_compiler_pic='-fPIC -shared'
  10782. ;;
  10783. sysv4*MP*)
  10784. if test -d /usr/nec; then
  10785. lt_prog_compiler_pic=-Kconform_pic
  10786. fi
  10787. ;;
  10788. *)
  10789. lt_prog_compiler_pic='-fPIC'
  10790. ;;
  10791. esac
  10792. case $cc_basename in
  10793. nvcc*) # Cuda Compiler Driver 2.2
  10794. lt_prog_compiler_wl='-Xlinker '
  10795. if test -n "$lt_prog_compiler_pic"; then
  10796. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  10797. fi
  10798. ;;
  10799. esac
  10800. else
  10801. # PORTME Check for flag to pass linker flags through the system compiler.
  10802. case $host_os in
  10803. aix*)
  10804. lt_prog_compiler_wl='-Wl,'
  10805. if test ia64 = "$host_cpu"; then
  10806. # AIX 5 now supports IA64 processor
  10807. lt_prog_compiler_static='-Bstatic'
  10808. else
  10809. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  10810. fi
  10811. ;;
  10812. darwin* | rhapsody*)
  10813. # PIC is the default on this platform
  10814. # Common symbols not allowed in MH_DYLIB files
  10815. lt_prog_compiler_pic='-fno-common'
  10816. case $cc_basename in
  10817. nagfor*)
  10818. # NAG Fortran compiler
  10819. lt_prog_compiler_wl='-Wl,-Wl,,'
  10820. lt_prog_compiler_pic='-PIC'
  10821. lt_prog_compiler_static='-Bstatic'
  10822. ;;
  10823. esac
  10824. ;;
  10825. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10826. # This hack is so that the source file can tell whether it is being
  10827. # built for inclusion in a dll (and should export symbols for example).
  10828. lt_prog_compiler_pic='-DDLL_EXPORT'
  10829. case $host_os in
  10830. os2*)
  10831. lt_prog_compiler_static='$wl-static'
  10832. ;;
  10833. esac
  10834. ;;
  10835. hpux9* | hpux10* | hpux11*)
  10836. lt_prog_compiler_wl='-Wl,'
  10837. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10838. # not for PA HP-UX.
  10839. case $host_cpu in
  10840. hppa*64*|ia64*)
  10841. # +Z the default
  10842. ;;
  10843. *)
  10844. lt_prog_compiler_pic='+Z'
  10845. ;;
  10846. esac
  10847. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10848. lt_prog_compiler_static='$wl-a ${wl}archive'
  10849. ;;
  10850. irix5* | irix6* | nonstopux*)
  10851. lt_prog_compiler_wl='-Wl,'
  10852. # PIC (with -KPIC) is the default.
  10853. lt_prog_compiler_static='-non_shared'
  10854. ;;
  10855. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10856. case $cc_basename in
  10857. # old Intel for x86_64, which still supported -KPIC.
  10858. ecc*)
  10859. lt_prog_compiler_wl='-Wl,'
  10860. lt_prog_compiler_pic='-KPIC'
  10861. lt_prog_compiler_static='-static'
  10862. ;;
  10863. # icc used to be incompatible with GCC.
  10864. # ICC 10 doesn't accept -KPIC any more.
  10865. icc* | ifort*)
  10866. lt_prog_compiler_wl='-Wl,'
  10867. lt_prog_compiler_pic='-fPIC'
  10868. lt_prog_compiler_static='-static'
  10869. ;;
  10870. # Lahey Fortran 8.1.
  10871. lf95*)
  10872. lt_prog_compiler_wl='-Wl,'
  10873. lt_prog_compiler_pic='--shared'
  10874. lt_prog_compiler_static='--static'
  10875. ;;
  10876. nagfor*)
  10877. # NAG Fortran compiler
  10878. lt_prog_compiler_wl='-Wl,-Wl,,'
  10879. lt_prog_compiler_pic='-PIC'
  10880. lt_prog_compiler_static='-Bstatic'
  10881. ;;
  10882. tcc*)
  10883. # Fabrice Bellard et al's Tiny C Compiler
  10884. lt_prog_compiler_wl='-Wl,'
  10885. lt_prog_compiler_pic='-fPIC'
  10886. lt_prog_compiler_static='-static'
  10887. ;;
  10888. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10889. # Portland Group compilers (*not* the Pentium gcc compiler,
  10890. # which looks to be a dead project)
  10891. lt_prog_compiler_wl='-Wl,'
  10892. lt_prog_compiler_pic='-fpic'
  10893. lt_prog_compiler_static='-Bstatic'
  10894. ;;
  10895. ccc*)
  10896. lt_prog_compiler_wl='-Wl,'
  10897. # All Alpha code is PIC.
  10898. lt_prog_compiler_static='-non_shared'
  10899. ;;
  10900. xl* | bgxl* | bgf* | mpixl*)
  10901. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10902. lt_prog_compiler_wl='-Wl,'
  10903. lt_prog_compiler_pic='-qpic'
  10904. lt_prog_compiler_static='-qstaticlink'
  10905. ;;
  10906. *)
  10907. case `$CC -V 2>&1 | sed 5q` in
  10908. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  10909. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10910. lt_prog_compiler_pic='-KPIC'
  10911. lt_prog_compiler_static='-Bstatic'
  10912. lt_prog_compiler_wl=''
  10913. ;;
  10914. *Sun\ F* | *Sun*Fortran*)
  10915. lt_prog_compiler_pic='-KPIC'
  10916. lt_prog_compiler_static='-Bstatic'
  10917. lt_prog_compiler_wl='-Qoption ld '
  10918. ;;
  10919. *Sun\ C*)
  10920. # Sun C 5.9
  10921. lt_prog_compiler_pic='-KPIC'
  10922. lt_prog_compiler_static='-Bstatic'
  10923. lt_prog_compiler_wl='-Wl,'
  10924. ;;
  10925. *Intel*\ [CF]*Compiler*)
  10926. lt_prog_compiler_wl='-Wl,'
  10927. lt_prog_compiler_pic='-fPIC'
  10928. lt_prog_compiler_static='-static'
  10929. ;;
  10930. *Portland\ Group*)
  10931. lt_prog_compiler_wl='-Wl,'
  10932. lt_prog_compiler_pic='-fpic'
  10933. lt_prog_compiler_static='-Bstatic'
  10934. ;;
  10935. esac
  10936. ;;
  10937. esac
  10938. ;;
  10939. newsos6)
  10940. lt_prog_compiler_pic='-KPIC'
  10941. lt_prog_compiler_static='-Bstatic'
  10942. ;;
  10943. *nto* | *qnx*)
  10944. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10945. # it will coredump.
  10946. lt_prog_compiler_pic='-fPIC -shared'
  10947. ;;
  10948. osf3* | osf4* | osf5*)
  10949. lt_prog_compiler_wl='-Wl,'
  10950. # All OSF/1 code is PIC.
  10951. lt_prog_compiler_static='-non_shared'
  10952. ;;
  10953. rdos*)
  10954. lt_prog_compiler_static='-non_shared'
  10955. ;;
  10956. solaris*)
  10957. lt_prog_compiler_pic='-KPIC'
  10958. lt_prog_compiler_static='-Bstatic'
  10959. case $cc_basename in
  10960. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  10961. lt_prog_compiler_wl='-Qoption ld ';;
  10962. *)
  10963. lt_prog_compiler_wl='-Wl,';;
  10964. esac
  10965. ;;
  10966. sunos4*)
  10967. lt_prog_compiler_wl='-Qoption ld '
  10968. lt_prog_compiler_pic='-PIC'
  10969. lt_prog_compiler_static='-Bstatic'
  10970. ;;
  10971. sysv4 | sysv4.2uw2* | sysv4.3*)
  10972. lt_prog_compiler_wl='-Wl,'
  10973. lt_prog_compiler_pic='-KPIC'
  10974. lt_prog_compiler_static='-Bstatic'
  10975. ;;
  10976. sysv4*MP*)
  10977. if test -d /usr/nec; then
  10978. lt_prog_compiler_pic='-Kconform_pic'
  10979. lt_prog_compiler_static='-Bstatic'
  10980. fi
  10981. ;;
  10982. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10983. lt_prog_compiler_wl='-Wl,'
  10984. lt_prog_compiler_pic='-KPIC'
  10985. lt_prog_compiler_static='-Bstatic'
  10986. ;;
  10987. unicos*)
  10988. lt_prog_compiler_wl='-Wl,'
  10989. lt_prog_compiler_can_build_shared=no
  10990. ;;
  10991. uts4*)
  10992. lt_prog_compiler_pic='-pic'
  10993. lt_prog_compiler_static='-Bstatic'
  10994. ;;
  10995. *)
  10996. lt_prog_compiler_can_build_shared=no
  10997. ;;
  10998. esac
  10999. fi
  11000. case $host_os in
  11001. # For platforms that do not support PIC, -DPIC is meaningless:
  11002. *djgpp*)
  11003. lt_prog_compiler_pic=
  11004. ;;
  11005. *)
  11006. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  11007. ;;
  11008. esac
  11009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11010. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11011. if ${lt_cv_prog_compiler_pic+:} false; then :
  11012. $as_echo_n "(cached) " >&6
  11013. else
  11014. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  11015. fi
  11016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  11017. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  11018. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  11019. #
  11020. # Check to make sure the PIC flag actually works.
  11021. #
  11022. if test -n "$lt_prog_compiler_pic"; then
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  11024. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  11025. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  11026. $as_echo_n "(cached) " >&6
  11027. else
  11028. lt_cv_prog_compiler_pic_works=no
  11029. ac_outfile=conftest.$ac_objext
  11030. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11031. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment
  11032. # Insert the option either (1) after the last *FLAGS variable, or
  11033. # (2) before a word containing "conftest.", or (3) at the end.
  11034. # Note that $ac_compile itself does not contain backslashes and begins
  11035. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11036. # The option is referenced via a variable to avoid confusing sed.
  11037. lt_compile=`echo "$ac_compile" | $SED \
  11038. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11039. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11040. -e 's:$: $lt_compiler_flag:'`
  11041. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11042. (eval "$lt_compile" 2>conftest.err)
  11043. ac_status=$?
  11044. cat conftest.err >&5
  11045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11046. if (exit $ac_status) && test -s "$ac_outfile"; then
  11047. # The compiler can only warn and ignore the option if not recognized
  11048. # So say no if there are warnings other than the usual output.
  11049. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11050. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11051. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11052. lt_cv_prog_compiler_pic_works=yes
  11053. fi
  11054. fi
  11055. $RM conftest*
  11056. fi
  11057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  11058. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  11059. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  11060. case $lt_prog_compiler_pic in
  11061. "" | " "*) ;;
  11062. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  11063. esac
  11064. else
  11065. lt_prog_compiler_pic=
  11066. lt_prog_compiler_can_build_shared=no
  11067. fi
  11068. fi
  11069. #
  11070. # Check to make sure the static flag actually works.
  11071. #
  11072. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  11073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11074. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11075. if ${lt_cv_prog_compiler_static_works+:} false; then :
  11076. $as_echo_n "(cached) " >&6
  11077. else
  11078. lt_cv_prog_compiler_static_works=no
  11079. save_LDFLAGS=$LDFLAGS
  11080. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11081. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11082. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11083. # The linker can only warn and ignore the option if not recognized
  11084. # So say no if there are warnings
  11085. if test -s conftest.err; then
  11086. # Append any errors to the config.log.
  11087. cat conftest.err 1>&5
  11088. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11089. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11090. if diff conftest.exp conftest.er2 >/dev/null; then
  11091. lt_cv_prog_compiler_static_works=yes
  11092. fi
  11093. else
  11094. lt_cv_prog_compiler_static_works=yes
  11095. fi
  11096. fi
  11097. $RM -r conftest*
  11098. LDFLAGS=$save_LDFLAGS
  11099. fi
  11100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  11101. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  11102. if test yes = "$lt_cv_prog_compiler_static_works"; then
  11103. :
  11104. else
  11105. lt_prog_compiler_static=
  11106. fi
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11108. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11109. if ${lt_cv_prog_compiler_c_o+:} false; then :
  11110. $as_echo_n "(cached) " >&6
  11111. else
  11112. lt_cv_prog_compiler_c_o=no
  11113. $RM -r conftest 2>/dev/null
  11114. mkdir conftest
  11115. cd conftest
  11116. mkdir out
  11117. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11118. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11119. # Insert the option either (1) after the last *FLAGS variable, or
  11120. # (2) before a word containing "conftest.", or (3) at the end.
  11121. # Note that $ac_compile itself does not contain backslashes and begins
  11122. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11123. lt_compile=`echo "$ac_compile" | $SED \
  11124. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11125. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11126. -e 's:$: $lt_compiler_flag:'`
  11127. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11128. (eval "$lt_compile" 2>out/conftest.err)
  11129. ac_status=$?
  11130. cat out/conftest.err >&5
  11131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11132. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11133. then
  11134. # The compiler can only warn and ignore the option if not recognized
  11135. # So say no if there are warnings
  11136. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11137. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11138. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11139. lt_cv_prog_compiler_c_o=yes
  11140. fi
  11141. fi
  11142. chmod u+w . 2>&5
  11143. $RM conftest*
  11144. # SGI C++ compiler will create directory out/ii_files/ for
  11145. # template instantiation
  11146. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11147. $RM out/* && rmdir out
  11148. cd ..
  11149. $RM -r conftest
  11150. $RM conftest*
  11151. fi
  11152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11153. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  11154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11155. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11156. if ${lt_cv_prog_compiler_c_o+:} false; then :
  11157. $as_echo_n "(cached) " >&6
  11158. else
  11159. lt_cv_prog_compiler_c_o=no
  11160. $RM -r conftest 2>/dev/null
  11161. mkdir conftest
  11162. cd conftest
  11163. mkdir out
  11164. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11165. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11166. # Insert the option either (1) after the last *FLAGS variable, or
  11167. # (2) before a word containing "conftest.", or (3) at the end.
  11168. # Note that $ac_compile itself does not contain backslashes and begins
  11169. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11170. lt_compile=`echo "$ac_compile" | $SED \
  11171. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11172. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11173. -e 's:$: $lt_compiler_flag:'`
  11174. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11175. (eval "$lt_compile" 2>out/conftest.err)
  11176. ac_status=$?
  11177. cat out/conftest.err >&5
  11178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11179. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11180. then
  11181. # The compiler can only warn and ignore the option if not recognized
  11182. # So say no if there are warnings
  11183. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11184. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11185. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11186. lt_cv_prog_compiler_c_o=yes
  11187. fi
  11188. fi
  11189. chmod u+w . 2>&5
  11190. $RM conftest*
  11191. # SGI C++ compiler will create directory out/ii_files/ for
  11192. # template instantiation
  11193. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11194. $RM out/* && rmdir out
  11195. cd ..
  11196. $RM -r conftest
  11197. $RM conftest*
  11198. fi
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11200. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  11201. hard_links=nottested
  11202. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  11203. # do not overwrite the value of need_locks provided by the user
  11204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11205. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11206. hard_links=yes
  11207. $RM conftest*
  11208. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11209. touch conftest.a
  11210. ln conftest.a conftest.b 2>&5 || hard_links=no
  11211. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11213. $as_echo "$hard_links" >&6; }
  11214. if test no = "$hard_links"; then
  11215. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  11216. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  11217. need_locks=warn
  11218. fi
  11219. else
  11220. need_locks=no
  11221. fi
  11222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11223. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11224. runpath_var=
  11225. allow_undefined_flag=
  11226. always_export_symbols=no
  11227. archive_cmds=
  11228. archive_expsym_cmds=
  11229. compiler_needs_object=no
  11230. enable_shared_with_static_runtimes=no
  11231. export_dynamic_flag_spec=
  11232. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11233. hardcode_automatic=no
  11234. hardcode_direct=no
  11235. hardcode_direct_absolute=no
  11236. hardcode_libdir_flag_spec=
  11237. hardcode_libdir_separator=
  11238. hardcode_minus_L=no
  11239. hardcode_shlibpath_var=unsupported
  11240. inherit_rpath=no
  11241. link_all_deplibs=unknown
  11242. module_cmds=
  11243. module_expsym_cmds=
  11244. old_archive_from_new_cmds=
  11245. old_archive_from_expsyms_cmds=
  11246. thread_safe_flag_spec=
  11247. whole_archive_flag_spec=
  11248. # include_expsyms should be a list of space-separated symbols to be *always*
  11249. # included in the symbol list
  11250. include_expsyms=
  11251. # exclude_expsyms can be an extended regexp of symbols to exclude
  11252. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  11253. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  11254. # as well as any symbol that contains 'd'.
  11255. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11256. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11257. # platforms (ab)use it in PIC code, but their linkers get confused if
  11258. # the symbol is explicitly referenced. Since portable code cannot
  11259. # rely on this symbol name, it's probably fine to never include it in
  11260. # preloaded symbol tables.
  11261. # Exclude shared library initialization/finalization symbols.
  11262. extract_expsyms_cmds=
  11263. case $host_os in
  11264. cygwin* | mingw* | pw32* | cegcc*)
  11265. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11266. # When not using gcc, we currently assume that we are using
  11267. # Microsoft Visual C++.
  11268. if test yes != "$GCC"; then
  11269. with_gnu_ld=no
  11270. fi
  11271. ;;
  11272. interix*)
  11273. # we just hope/assume this is gcc and not c89 (= MSVC++)
  11274. with_gnu_ld=yes
  11275. ;;
  11276. openbsd* | bitrig*)
  11277. with_gnu_ld=no
  11278. ;;
  11279. linux* | k*bsd*-gnu | gnu*)
  11280. link_all_deplibs=no
  11281. ;;
  11282. esac
  11283. ld_shlibs=yes
  11284. # On some targets, GNU ld is compatible enough with the native linker
  11285. # that we're better off using the native interface for both.
  11286. lt_use_gnu_ld_interface=no
  11287. if test yes = "$with_gnu_ld"; then
  11288. case $host_os in
  11289. aix*)
  11290. # The AIX port of GNU ld has always aspired to compatibility
  11291. # with the native linker. However, as the warning in the GNU ld
  11292. # block says, versions before 2.19.5* couldn't really create working
  11293. # shared libraries, regardless of the interface used.
  11294. case `$LD -v 2>&1` in
  11295. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  11296. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  11297. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  11298. *)
  11299. lt_use_gnu_ld_interface=yes
  11300. ;;
  11301. esac
  11302. ;;
  11303. *)
  11304. lt_use_gnu_ld_interface=yes
  11305. ;;
  11306. esac
  11307. fi
  11308. if test yes = "$lt_use_gnu_ld_interface"; then
  11309. # If archive_cmds runs LD, not CC, wlarc should be empty
  11310. wlarc='$wl'
  11311. # Set some defaults for GNU ld with shared library support. These
  11312. # are reset later if shared libraries are not supported. Putting them
  11313. # here allows them to be overridden if necessary.
  11314. runpath_var=LD_RUN_PATH
  11315. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11316. export_dynamic_flag_spec='$wl--export-dynamic'
  11317. # ancient GNU ld didn't support --whole-archive et. al.
  11318. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  11319. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11320. else
  11321. whole_archive_flag_spec=
  11322. fi
  11323. supports_anon_versioning=no
  11324. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  11325. *GNU\ gold*) supports_anon_versioning=yes ;;
  11326. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11327. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11328. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11329. *\ 2.11.*) ;; # other 2.11 versions
  11330. *) supports_anon_versioning=yes ;;
  11331. esac
  11332. # See if GNU ld supports shared libraries.
  11333. case $host_os in
  11334. aix[3-9]*)
  11335. # On AIX/PPC, the GNU linker is very broken
  11336. if test ia64 != "$host_cpu"; then
  11337. ld_shlibs=no
  11338. cat <<_LT_EOF 1>&2
  11339. *** Warning: the GNU linker, at least up to release 2.19, is reported
  11340. *** to be unable to reliably create shared libraries on AIX.
  11341. *** Therefore, libtool is disabling shared libraries support. If you
  11342. *** really care for shared libraries, you may want to install binutils
  11343. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  11344. *** You will then need to restart the configuration process.
  11345. _LT_EOF
  11346. fi
  11347. ;;
  11348. amigaos*)
  11349. case $host_cpu in
  11350. powerpc)
  11351. # see comment about AmigaOS4 .so support
  11352. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11353. archive_expsym_cmds=''
  11354. ;;
  11355. m68k)
  11356. 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)'
  11357. hardcode_libdir_flag_spec='-L$libdir'
  11358. hardcode_minus_L=yes
  11359. ;;
  11360. esac
  11361. ;;
  11362. beos*)
  11363. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11364. allow_undefined_flag=unsupported
  11365. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11366. # support --undefined. This deserves some investigation. FIXME
  11367. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11368. else
  11369. ld_shlibs=no
  11370. fi
  11371. ;;
  11372. cygwin* | mingw* | pw32* | cegcc*)
  11373. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  11374. # as there is no search path for DLLs.
  11375. hardcode_libdir_flag_spec='-L$libdir'
  11376. export_dynamic_flag_spec='$wl--export-all-symbols'
  11377. allow_undefined_flag=unsupported
  11378. always_export_symbols=no
  11379. enable_shared_with_static_runtimes=yes
  11380. 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'
  11381. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  11382. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11383. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11384. # If the export-symbols file already is a .def file, use it as
  11385. # is; otherwise, prepend EXPORTS...
  11386. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11387. cp $export_symbols $output_objdir/$soname.def;
  11388. else
  11389. echo EXPORTS > $output_objdir/$soname.def;
  11390. cat $export_symbols >> $output_objdir/$soname.def;
  11391. fi~
  11392. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11393. else
  11394. ld_shlibs=no
  11395. fi
  11396. ;;
  11397. haiku*)
  11398. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11399. link_all_deplibs=yes
  11400. ;;
  11401. os2*)
  11402. hardcode_libdir_flag_spec='-L$libdir'
  11403. hardcode_minus_L=yes
  11404. allow_undefined_flag=unsupported
  11405. shrext_cmds=.dll
  11406. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11407. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11408. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11409. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11410. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11411. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11412. emximp -o $lib $output_objdir/$libname.def'
  11413. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11414. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11415. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11416. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11417. prefix_cmds="$SED"~
  11418. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11419. prefix_cmds="$prefix_cmds -e 1d";
  11420. fi~
  11421. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11422. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11423. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11424. emximp -o $lib $output_objdir/$libname.def'
  11425. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11426. enable_shared_with_static_runtimes=yes
  11427. ;;
  11428. interix[3-9]*)
  11429. hardcode_direct=no
  11430. hardcode_shlibpath_var=no
  11431. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11432. export_dynamic_flag_spec='$wl-E'
  11433. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11434. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11435. # default) and relocated if they conflict, which is a slow very memory
  11436. # consuming and fragmenting process. To avoid this, we pick a random,
  11437. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11438. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11439. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11440. 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'
  11441. ;;
  11442. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  11443. tmp_diet=no
  11444. if test linux-dietlibc = "$host_os"; then
  11445. case $cc_basename in
  11446. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  11447. esac
  11448. fi
  11449. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  11450. && test no = "$tmp_diet"
  11451. then
  11452. tmp_addflag=' $pic_flag'
  11453. tmp_sharedflag='-shared'
  11454. case $cc_basename,$host_cpu in
  11455. pgcc*) # Portland Group C compiler
  11456. 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'
  11457. tmp_addflag=' $pic_flag'
  11458. ;;
  11459. pgf77* | pgf90* | pgf95* | pgfortran*)
  11460. # Portland Group f77 and f90 compilers
  11461. 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'
  11462. tmp_addflag=' $pic_flag -Mnomain' ;;
  11463. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11464. tmp_addflag=' -i_dynamic' ;;
  11465. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11466. tmp_addflag=' -i_dynamic -nofor_main' ;;
  11467. ifc* | ifort*) # Intel Fortran compiler
  11468. tmp_addflag=' -nofor_main' ;;
  11469. lf95*) # Lahey Fortran 8.1
  11470. whole_archive_flag_spec=
  11471. tmp_sharedflag='--shared' ;;
  11472. nagfor*) # NAGFOR 5.3
  11473. tmp_sharedflag='-Wl,-shared' ;;
  11474. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  11475. tmp_sharedflag='-qmkshrobj'
  11476. tmp_addflag= ;;
  11477. nvcc*) # Cuda Compiler Driver 2.2
  11478. 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'
  11479. compiler_needs_object=yes
  11480. ;;
  11481. esac
  11482. case `$CC -V 2>&1 | sed 5q` in
  11483. *Sun\ C*) # Sun C 5.9
  11484. 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'
  11485. compiler_needs_object=yes
  11486. tmp_sharedflag='-G' ;;
  11487. *Sun\ F*) # Sun Fortran 8.3
  11488. tmp_sharedflag='-G' ;;
  11489. esac
  11490. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11491. if test yes = "$supports_anon_versioning"; then
  11492. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  11493. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11494. echo "local: *; };" >> $output_objdir/$libname.ver~
  11495. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  11496. fi
  11497. case $cc_basename in
  11498. tcc*)
  11499. export_dynamic_flag_spec='-rdynamic'
  11500. ;;
  11501. xlf* | bgf* | bgxlf* | mpixlf*)
  11502. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  11503. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  11504. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11505. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  11506. if test yes = "$supports_anon_versioning"; then
  11507. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  11508. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11509. echo "local: *; };" >> $output_objdir/$libname.ver~
  11510. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  11511. fi
  11512. ;;
  11513. esac
  11514. else
  11515. ld_shlibs=no
  11516. fi
  11517. ;;
  11518. netbsd* | netbsdelf*-gnu)
  11519. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11520. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11521. wlarc=
  11522. else
  11523. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11524. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11525. fi
  11526. ;;
  11527. solaris*)
  11528. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  11529. ld_shlibs=no
  11530. cat <<_LT_EOF 1>&2
  11531. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11532. *** create shared libraries on Solaris systems. Therefore, libtool
  11533. *** is disabling shared libraries support. We urge you to upgrade GNU
  11534. *** binutils to release 2.9.1 or newer. Another option is to modify
  11535. *** your PATH or compiler configuration so that the native linker is
  11536. *** used, and then restart.
  11537. _LT_EOF
  11538. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11539. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11540. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11541. else
  11542. ld_shlibs=no
  11543. fi
  11544. ;;
  11545. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11546. case `$LD -v 2>&1` in
  11547. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11548. ld_shlibs=no
  11549. cat <<_LT_EOF 1>&2
  11550. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  11551. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11552. *** is disabling shared libraries support. We urge you to upgrade GNU
  11553. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11554. *** your PATH or compiler configuration so that the native linker is
  11555. *** used, and then restart.
  11556. _LT_EOF
  11557. ;;
  11558. *)
  11559. # For security reasons, it is highly recommended that you always
  11560. # use absolute paths for naming shared libraries, and exclude the
  11561. # DT_RUNPATH tag from executables and libraries. But doing so
  11562. # requires that you compile everything twice, which is a pain.
  11563. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11564. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11565. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11566. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11567. else
  11568. ld_shlibs=no
  11569. fi
  11570. ;;
  11571. esac
  11572. ;;
  11573. sunos4*)
  11574. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11575. wlarc=
  11576. hardcode_direct=yes
  11577. hardcode_shlibpath_var=no
  11578. ;;
  11579. *)
  11580. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11581. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11582. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11583. else
  11584. ld_shlibs=no
  11585. fi
  11586. ;;
  11587. esac
  11588. if test no = "$ld_shlibs"; then
  11589. runpath_var=
  11590. hardcode_libdir_flag_spec=
  11591. export_dynamic_flag_spec=
  11592. whole_archive_flag_spec=
  11593. fi
  11594. else
  11595. # PORTME fill in a description of your system's linker (not GNU ld)
  11596. case $host_os in
  11597. aix3*)
  11598. allow_undefined_flag=unsupported
  11599. always_export_symbols=yes
  11600. 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'
  11601. # Note: this linker hardcodes the directories in LIBPATH if there
  11602. # are no directories specified by -L.
  11603. hardcode_minus_L=yes
  11604. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  11605. # Neither direct hardcoding nor static linking is supported with a
  11606. # broken collect2.
  11607. hardcode_direct=unsupported
  11608. fi
  11609. ;;
  11610. aix[4-9]*)
  11611. if test ia64 = "$host_cpu"; then
  11612. # On IA64, the linker does run time linking by default, so we don't
  11613. # have to do anything special.
  11614. aix_use_runtimelinking=no
  11615. exp_sym_flag='-Bexport'
  11616. no_entry_flag=
  11617. else
  11618. # If we're using GNU nm, then we don't want the "-C" option.
  11619. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  11620. # Without the "-l" option, or with the "-B" option, AIX nm treats
  11621. # weak defined symbols like other global defined symbols, whereas
  11622. # GNU nm marks them as "W".
  11623. # While the 'weak' keyword is ignored in the Export File, we need
  11624. # it in the Import File for the 'aix-soname' feature, so we have
  11625. # to replace the "-B" option with "-P" for AIX nm.
  11626. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11627. 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'
  11628. else
  11629. 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'
  11630. fi
  11631. aix_use_runtimelinking=no
  11632. # Test if we are trying to use run time linking or normal
  11633. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11634. # have runtime linking enabled, and use it for executables.
  11635. # For shared libraries, we enable/disable runtime linking
  11636. # depending on the kind of the shared library created -
  11637. # when "with_aix_soname,aix_use_runtimelinking" is:
  11638. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11639. # "aix,yes" lib.so shared, rtl:yes, for executables
  11640. # lib.a static archive
  11641. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11642. # lib.a(lib.so.V) shared, rtl:no, for executables
  11643. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11644. # lib.a(lib.so.V) shared, rtl:no
  11645. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11646. # lib.a static archive
  11647. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11648. for ld_flag in $LDFLAGS; do
  11649. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  11650. aix_use_runtimelinking=yes
  11651. break
  11652. fi
  11653. done
  11654. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11655. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11656. # so we don't have lib.a shared libs to link our executables.
  11657. # We have to force runtime linking in this case.
  11658. aix_use_runtimelinking=yes
  11659. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11660. fi
  11661. ;;
  11662. esac
  11663. exp_sym_flag='-bexport'
  11664. no_entry_flag='-bnoentry'
  11665. fi
  11666. # When large executables or shared objects are built, AIX ld can
  11667. # have problems creating the table of contents. If linking a library
  11668. # or program results in "error TOC overflow" add -mminimal-toc to
  11669. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11670. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11671. archive_cmds=''
  11672. hardcode_direct=yes
  11673. hardcode_direct_absolute=yes
  11674. hardcode_libdir_separator=':'
  11675. link_all_deplibs=yes
  11676. file_list_spec='$wl-f,'
  11677. case $with_aix_soname,$aix_use_runtimelinking in
  11678. aix,*) ;; # traditional, no import file
  11679. svr4,* | *,yes) # use import file
  11680. # The Import File defines what to hardcode.
  11681. hardcode_direct=no
  11682. hardcode_direct_absolute=no
  11683. ;;
  11684. esac
  11685. if test yes = "$GCC"; then
  11686. case $host_os in aix4.[012]|aix4.[012].*)
  11687. # We only want to do this on AIX 4.2 and lower, the check
  11688. # below for broken collect2 doesn't work under 4.3+
  11689. collect2name=`$CC -print-prog-name=collect2`
  11690. if test -f "$collect2name" &&
  11691. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11692. then
  11693. # We have reworked collect2
  11694. :
  11695. else
  11696. # We have old collect2
  11697. hardcode_direct=unsupported
  11698. # It fails to find uninstalled libraries when the uninstalled
  11699. # path is not listed in the libpath. Setting hardcode_minus_L
  11700. # to unsupported forces relinking
  11701. hardcode_minus_L=yes
  11702. hardcode_libdir_flag_spec='-L$libdir'
  11703. hardcode_libdir_separator=
  11704. fi
  11705. ;;
  11706. esac
  11707. shared_flag='-shared'
  11708. if test yes = "$aix_use_runtimelinking"; then
  11709. shared_flag="$shared_flag "'$wl-G'
  11710. fi
  11711. # Need to ensure runtime linking is disabled for the traditional
  11712. # shared library, or the linker may eventually find shared libraries
  11713. # /with/ Import File - we do not want to mix them.
  11714. shared_flag_aix='-shared'
  11715. shared_flag_svr4='-shared $wl-G'
  11716. else
  11717. # not using gcc
  11718. if test ia64 = "$host_cpu"; then
  11719. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11720. # chokes on -Wl,-G. The following line is correct:
  11721. shared_flag='-G'
  11722. else
  11723. if test yes = "$aix_use_runtimelinking"; then
  11724. shared_flag='$wl-G'
  11725. else
  11726. shared_flag='$wl-bM:SRE'
  11727. fi
  11728. shared_flag_aix='$wl-bM:SRE'
  11729. shared_flag_svr4='$wl-G'
  11730. fi
  11731. fi
  11732. export_dynamic_flag_spec='$wl-bexpall'
  11733. # It seems that -bexpall does not export symbols beginning with
  11734. # underscore (_), so it is better to generate a list of symbols to export.
  11735. always_export_symbols=yes
  11736. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11737. # Warning - without using the other runtime loading flags (-brtl),
  11738. # -berok will link without error, but may produce a broken library.
  11739. allow_undefined_flag='-berok'
  11740. # Determine the default libpath from the value encoded in an
  11741. # empty executable.
  11742. if test set = "${lt_cv_aix_libpath+set}"; then
  11743. aix_libpath=$lt_cv_aix_libpath
  11744. else
  11745. if ${lt_cv_aix_libpath_+:} false; then :
  11746. $as_echo_n "(cached) " >&6
  11747. else
  11748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11749. /* end confdefs.h. */
  11750. int
  11751. main ()
  11752. {
  11753. ;
  11754. return 0;
  11755. }
  11756. _ACEOF
  11757. if ac_fn_c_try_link "$LINENO"; then :
  11758. lt_aix_libpath_sed='
  11759. /Import File Strings/,/^$/ {
  11760. /^0/ {
  11761. s/^0 *\([^ ]*\) *$/\1/
  11762. p
  11763. }
  11764. }'
  11765. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11766. # Check for a 64-bit object if we didn't find anything.
  11767. if test -z "$lt_cv_aix_libpath_"; then
  11768. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11769. fi
  11770. fi
  11771. rm -f core conftest.err conftest.$ac_objext \
  11772. conftest$ac_exeext conftest.$ac_ext
  11773. if test -z "$lt_cv_aix_libpath_"; then
  11774. lt_cv_aix_libpath_=/usr/lib:/lib
  11775. fi
  11776. fi
  11777. aix_libpath=$lt_cv_aix_libpath_
  11778. fi
  11779. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  11780. 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
  11781. else
  11782. if test ia64 = "$host_cpu"; then
  11783. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  11784. allow_undefined_flag="-z nodefs"
  11785. 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"
  11786. else
  11787. # Determine the default libpath from the value encoded in an
  11788. # empty executable.
  11789. if test set = "${lt_cv_aix_libpath+set}"; then
  11790. aix_libpath=$lt_cv_aix_libpath
  11791. else
  11792. if ${lt_cv_aix_libpath_+:} false; then :
  11793. $as_echo_n "(cached) " >&6
  11794. else
  11795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11796. /* end confdefs.h. */
  11797. int
  11798. main ()
  11799. {
  11800. ;
  11801. return 0;
  11802. }
  11803. _ACEOF
  11804. if ac_fn_c_try_link "$LINENO"; then :
  11805. lt_aix_libpath_sed='
  11806. /Import File Strings/,/^$/ {
  11807. /^0/ {
  11808. s/^0 *\([^ ]*\) *$/\1/
  11809. p
  11810. }
  11811. }'
  11812. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11813. # Check for a 64-bit object if we didn't find anything.
  11814. if test -z "$lt_cv_aix_libpath_"; then
  11815. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11816. fi
  11817. fi
  11818. rm -f core conftest.err conftest.$ac_objext \
  11819. conftest$ac_exeext conftest.$ac_ext
  11820. if test -z "$lt_cv_aix_libpath_"; then
  11821. lt_cv_aix_libpath_=/usr/lib:/lib
  11822. fi
  11823. fi
  11824. aix_libpath=$lt_cv_aix_libpath_
  11825. fi
  11826. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  11827. # Warning - without using the other run time loading flags,
  11828. # -berok will link without error, but may produce a broken library.
  11829. no_undefined_flag=' $wl-bernotok'
  11830. allow_undefined_flag=' $wl-berok'
  11831. if test yes = "$with_gnu_ld"; then
  11832. # We only use this code for GNU lds that support --whole-archive.
  11833. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  11834. else
  11835. # Exported symbols can be pulled into shared objects from archives
  11836. whole_archive_flag_spec='$convenience'
  11837. fi
  11838. archive_cmds_need_lc=yes
  11839. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11840. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11841. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11842. if test svr4 != "$with_aix_soname"; then
  11843. # This is similar to how AIX traditionally builds its shared libraries.
  11844. 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'
  11845. fi
  11846. if test aix != "$with_aix_soname"; then
  11847. 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'
  11848. else
  11849. # used by -dlpreopen to get the symbols
  11850. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11851. fi
  11852. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  11853. fi
  11854. fi
  11855. ;;
  11856. amigaos*)
  11857. case $host_cpu in
  11858. powerpc)
  11859. # see comment about AmigaOS4 .so support
  11860. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11861. archive_expsym_cmds=''
  11862. ;;
  11863. m68k)
  11864. 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)'
  11865. hardcode_libdir_flag_spec='-L$libdir'
  11866. hardcode_minus_L=yes
  11867. ;;
  11868. esac
  11869. ;;
  11870. bsdi[45]*)
  11871. export_dynamic_flag_spec=-rdynamic
  11872. ;;
  11873. cygwin* | mingw* | pw32* | cegcc*)
  11874. # When not using gcc, we currently assume that we are using
  11875. # Microsoft Visual C++.
  11876. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11877. # no search path for DLLs.
  11878. case $cc_basename in
  11879. cl*)
  11880. # Native MSVC
  11881. hardcode_libdir_flag_spec=' '
  11882. allow_undefined_flag=unsupported
  11883. always_export_symbols=yes
  11884. file_list_spec='@'
  11885. # Tell ltmain to make .lib files, not .a files.
  11886. libext=lib
  11887. # Tell ltmain to make .dll files, not .so files.
  11888. shrext_cmds=.dll
  11889. # FIXME: Setting linknames here is a bad hack.
  11890. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11891. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11892. cp "$export_symbols" "$output_objdir/$soname.def";
  11893. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11894. else
  11895. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11896. fi~
  11897. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11898. linknames='
  11899. # The linker will not automatically build a static lib if we build a DLL.
  11900. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  11901. enable_shared_with_static_runtimes=yes
  11902. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  11903. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11904. # Don't use ranlib
  11905. old_postinstall_cmds='chmod 644 $oldlib'
  11906. postlink_cmds='lt_outputfile="@OUTPUT@"~
  11907. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11908. case $lt_outputfile in
  11909. *.exe|*.EXE) ;;
  11910. *)
  11911. lt_outputfile=$lt_outputfile.exe
  11912. lt_tool_outputfile=$lt_tool_outputfile.exe
  11913. ;;
  11914. esac~
  11915. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11916. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11917. $RM "$lt_outputfile.manifest";
  11918. fi'
  11919. ;;
  11920. *)
  11921. # Assume MSVC wrapper
  11922. hardcode_libdir_flag_spec=' '
  11923. allow_undefined_flag=unsupported
  11924. # Tell ltmain to make .lib files, not .a files.
  11925. libext=lib
  11926. # Tell ltmain to make .dll files, not .so files.
  11927. shrext_cmds=.dll
  11928. # FIXME: Setting linknames here is a bad hack.
  11929. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11930. # The linker will automatically build a .lib file if we build a DLL.
  11931. old_archive_from_new_cmds='true'
  11932. # FIXME: Should let the user specify the lib program.
  11933. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11934. enable_shared_with_static_runtimes=yes
  11935. ;;
  11936. esac
  11937. ;;
  11938. darwin* | rhapsody*)
  11939. archive_cmds_need_lc=no
  11940. hardcode_direct=no
  11941. hardcode_automatic=yes
  11942. hardcode_shlibpath_var=unsupported
  11943. if test yes = "$lt_cv_ld_force_load"; then
  11944. 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\"`'
  11945. else
  11946. whole_archive_flag_spec=''
  11947. fi
  11948. link_all_deplibs=yes
  11949. allow_undefined_flag=$_lt_dar_allow_undefined
  11950. case $cc_basename in
  11951. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11952. *) _lt_dar_can_shared=$GCC ;;
  11953. esac
  11954. if test yes = "$_lt_dar_can_shared"; then
  11955. output_verbose_link_cmd=func_echo_all
  11956. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  11957. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11958. 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"
  11959. 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"
  11960. else
  11961. ld_shlibs=no
  11962. fi
  11963. ;;
  11964. dgux*)
  11965. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11966. hardcode_libdir_flag_spec='-L$libdir'
  11967. hardcode_shlibpath_var=no
  11968. ;;
  11969. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11970. # support. Future versions do this automatically, but an explicit c++rt0.o
  11971. # does not break anything, and helps significantly (at the cost of a little
  11972. # extra space).
  11973. freebsd2.2*)
  11974. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11975. hardcode_libdir_flag_spec='-R$libdir'
  11976. hardcode_direct=yes
  11977. hardcode_shlibpath_var=no
  11978. ;;
  11979. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11980. freebsd2.*)
  11981. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11982. hardcode_direct=yes
  11983. hardcode_minus_L=yes
  11984. hardcode_shlibpath_var=no
  11985. ;;
  11986. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11987. freebsd* | dragonfly*)
  11988. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11989. hardcode_libdir_flag_spec='-R$libdir'
  11990. hardcode_direct=yes
  11991. hardcode_shlibpath_var=no
  11992. ;;
  11993. hpux9*)
  11994. if test yes = "$GCC"; then
  11995. 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'
  11996. else
  11997. 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'
  11998. fi
  11999. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12000. hardcode_libdir_separator=:
  12001. hardcode_direct=yes
  12002. # hardcode_minus_L: Not really in the search PATH,
  12003. # but as the default location of the library.
  12004. hardcode_minus_L=yes
  12005. export_dynamic_flag_spec='$wl-E'
  12006. ;;
  12007. hpux10*)
  12008. if test yes,no = "$GCC,$with_gnu_ld"; then
  12009. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12010. else
  12011. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12012. fi
  12013. if test no = "$with_gnu_ld"; then
  12014. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12015. hardcode_libdir_separator=:
  12016. hardcode_direct=yes
  12017. hardcode_direct_absolute=yes
  12018. export_dynamic_flag_spec='$wl-E'
  12019. # hardcode_minus_L: Not really in the search PATH,
  12020. # but as the default location of the library.
  12021. hardcode_minus_L=yes
  12022. fi
  12023. ;;
  12024. hpux11*)
  12025. if test yes,no = "$GCC,$with_gnu_ld"; then
  12026. case $host_cpu in
  12027. hppa*64*)
  12028. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12029. ;;
  12030. ia64*)
  12031. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12032. ;;
  12033. *)
  12034. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12035. ;;
  12036. esac
  12037. else
  12038. case $host_cpu in
  12039. hppa*64*)
  12040. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12041. ;;
  12042. ia64*)
  12043. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12044. ;;
  12045. *)
  12046. # Older versions of the 11.00 compiler do not understand -b yet
  12047. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  12048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  12049. $as_echo_n "checking if $CC understands -b... " >&6; }
  12050. if ${lt_cv_prog_compiler__b+:} false; then :
  12051. $as_echo_n "(cached) " >&6
  12052. else
  12053. lt_cv_prog_compiler__b=no
  12054. save_LDFLAGS=$LDFLAGS
  12055. LDFLAGS="$LDFLAGS -b"
  12056. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12057. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12058. # The linker can only warn and ignore the option if not recognized
  12059. # So say no if there are warnings
  12060. if test -s conftest.err; then
  12061. # Append any errors to the config.log.
  12062. cat conftest.err 1>&5
  12063. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12064. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12065. if diff conftest.exp conftest.er2 >/dev/null; then
  12066. lt_cv_prog_compiler__b=yes
  12067. fi
  12068. else
  12069. lt_cv_prog_compiler__b=yes
  12070. fi
  12071. fi
  12072. $RM -r conftest*
  12073. LDFLAGS=$save_LDFLAGS
  12074. fi
  12075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  12076. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  12077. if test yes = "$lt_cv_prog_compiler__b"; then
  12078. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12079. else
  12080. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12081. fi
  12082. ;;
  12083. esac
  12084. fi
  12085. if test no = "$with_gnu_ld"; then
  12086. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12087. hardcode_libdir_separator=:
  12088. case $host_cpu in
  12089. hppa*64*|ia64*)
  12090. hardcode_direct=no
  12091. hardcode_shlibpath_var=no
  12092. ;;
  12093. *)
  12094. hardcode_direct=yes
  12095. hardcode_direct_absolute=yes
  12096. export_dynamic_flag_spec='$wl-E'
  12097. # hardcode_minus_L: Not really in the search PATH,
  12098. # but as the default location of the library.
  12099. hardcode_minus_L=yes
  12100. ;;
  12101. esac
  12102. fi
  12103. ;;
  12104. irix5* | irix6* | nonstopux*)
  12105. if test yes = "$GCC"; then
  12106. 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'
  12107. # Try to use the -exported_symbol ld option, if it does not
  12108. # work, assume that -exports_file does not work either and
  12109. # implicitly export all symbols.
  12110. # This should be the same for all languages, so no per-tag cache variable.
  12111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  12112. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  12113. if ${lt_cv_irix_exported_symbol+:} false; then :
  12114. $as_echo_n "(cached) " >&6
  12115. else
  12116. save_LDFLAGS=$LDFLAGS
  12117. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  12118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12119. /* end confdefs.h. */
  12120. int foo (void) { return 0; }
  12121. _ACEOF
  12122. if ac_fn_c_try_link "$LINENO"; then :
  12123. lt_cv_irix_exported_symbol=yes
  12124. else
  12125. lt_cv_irix_exported_symbol=no
  12126. fi
  12127. rm -f core conftest.err conftest.$ac_objext \
  12128. conftest$ac_exeext conftest.$ac_ext
  12129. LDFLAGS=$save_LDFLAGS
  12130. fi
  12131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  12132. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  12133. if test yes = "$lt_cv_irix_exported_symbol"; then
  12134. 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'
  12135. fi
  12136. link_all_deplibs=no
  12137. else
  12138. 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'
  12139. 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'
  12140. fi
  12141. archive_cmds_need_lc='no'
  12142. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12143. hardcode_libdir_separator=:
  12144. inherit_rpath=yes
  12145. link_all_deplibs=yes
  12146. ;;
  12147. linux*)
  12148. case $cc_basename in
  12149. tcc*)
  12150. # Fabrice Bellard et al's Tiny C Compiler
  12151. ld_shlibs=yes
  12152. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12153. ;;
  12154. esac
  12155. ;;
  12156. netbsd* | netbsdelf*-gnu)
  12157. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12158. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12159. else
  12160. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12161. fi
  12162. hardcode_libdir_flag_spec='-R$libdir'
  12163. hardcode_direct=yes
  12164. hardcode_shlibpath_var=no
  12165. ;;
  12166. newsos6)
  12167. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12168. hardcode_direct=yes
  12169. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12170. hardcode_libdir_separator=:
  12171. hardcode_shlibpath_var=no
  12172. ;;
  12173. *nto* | *qnx*)
  12174. ;;
  12175. openbsd* | bitrig*)
  12176. if test -f /usr/libexec/ld.so; then
  12177. hardcode_direct=yes
  12178. hardcode_shlibpath_var=no
  12179. hardcode_direct_absolute=yes
  12180. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  12181. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12182. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  12183. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12184. export_dynamic_flag_spec='$wl-E'
  12185. else
  12186. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12187. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12188. fi
  12189. else
  12190. ld_shlibs=no
  12191. fi
  12192. ;;
  12193. os2*)
  12194. hardcode_libdir_flag_spec='-L$libdir'
  12195. hardcode_minus_L=yes
  12196. allow_undefined_flag=unsupported
  12197. shrext_cmds=.dll
  12198. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12199. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12200. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12201. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12202. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12203. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12204. emximp -o $lib $output_objdir/$libname.def'
  12205. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12206. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12207. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12208. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12209. prefix_cmds="$SED"~
  12210. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12211. prefix_cmds="$prefix_cmds -e 1d";
  12212. fi~
  12213. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12214. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12215. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12216. emximp -o $lib $output_objdir/$libname.def'
  12217. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12218. enable_shared_with_static_runtimes=yes
  12219. ;;
  12220. osf3*)
  12221. if test yes = "$GCC"; then
  12222. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  12223. 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'
  12224. else
  12225. allow_undefined_flag=' -expect_unresolved \*'
  12226. 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'
  12227. fi
  12228. archive_cmds_need_lc='no'
  12229. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12230. hardcode_libdir_separator=:
  12231. ;;
  12232. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12233. if test yes = "$GCC"; then
  12234. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  12235. 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'
  12236. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12237. else
  12238. allow_undefined_flag=' -expect_unresolved \*'
  12239. 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'
  12240. 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~
  12241. $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'
  12242. # Both c and cxx compiler support -rpath directly
  12243. hardcode_libdir_flag_spec='-rpath $libdir'
  12244. fi
  12245. archive_cmds_need_lc='no'
  12246. hardcode_libdir_separator=:
  12247. ;;
  12248. solaris*)
  12249. no_undefined_flag=' -z defs'
  12250. if test yes = "$GCC"; then
  12251. wlarc='$wl'
  12252. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12253. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12254. $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'
  12255. else
  12256. case `$CC -V 2>&1` in
  12257. *"Compilers 5.0"*)
  12258. wlarc=''
  12259. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12260. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12261. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  12262. ;;
  12263. *)
  12264. wlarc='$wl'
  12265. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12266. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12267. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  12268. ;;
  12269. esac
  12270. fi
  12271. hardcode_libdir_flag_spec='-R$libdir'
  12272. hardcode_shlibpath_var=no
  12273. case $host_os in
  12274. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12275. *)
  12276. # The compiler driver will combine and reorder linker options,
  12277. # but understands '-z linker_flag'. GCC discards it without '$wl',
  12278. # but is careful enough not to reorder.
  12279. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12280. if test yes = "$GCC"; then
  12281. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12282. else
  12283. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  12284. fi
  12285. ;;
  12286. esac
  12287. link_all_deplibs=yes
  12288. ;;
  12289. sunos4*)
  12290. if test sequent = "$host_vendor"; then
  12291. # Use $CC to link under sequent, because it throws in some extra .o
  12292. # files that make .init and .fini sections work.
  12293. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12294. else
  12295. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12296. fi
  12297. hardcode_libdir_flag_spec='-L$libdir'
  12298. hardcode_direct=yes
  12299. hardcode_minus_L=yes
  12300. hardcode_shlibpath_var=no
  12301. ;;
  12302. sysv4)
  12303. case $host_vendor in
  12304. sni)
  12305. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12306. hardcode_direct=yes # is this really true???
  12307. ;;
  12308. siemens)
  12309. ## LD is ld it makes a PLAMLIB
  12310. ## CC just makes a GrossModule.
  12311. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12312. reload_cmds='$CC -r -o $output$reload_objs'
  12313. hardcode_direct=no
  12314. ;;
  12315. motorola)
  12316. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12317. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  12318. ;;
  12319. esac
  12320. runpath_var='LD_RUN_PATH'
  12321. hardcode_shlibpath_var=no
  12322. ;;
  12323. sysv4.3*)
  12324. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12325. hardcode_shlibpath_var=no
  12326. export_dynamic_flag_spec='-Bexport'
  12327. ;;
  12328. sysv4*MP*)
  12329. if test -d /usr/nec; then
  12330. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12331. hardcode_shlibpath_var=no
  12332. runpath_var=LD_RUN_PATH
  12333. hardcode_runpath_var=yes
  12334. ld_shlibs=yes
  12335. fi
  12336. ;;
  12337. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12338. no_undefined_flag='$wl-z,text'
  12339. archive_cmds_need_lc=no
  12340. hardcode_shlibpath_var=no
  12341. runpath_var='LD_RUN_PATH'
  12342. if test yes = "$GCC"; then
  12343. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12344. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12345. else
  12346. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12347. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12348. fi
  12349. ;;
  12350. sysv5* | sco3.2v5* | sco5v6*)
  12351. # Note: We CANNOT use -z defs as we might desire, because we do not
  12352. # link with -lc, and that would cause any symbols used from libc to
  12353. # always be unresolved, which means just about no library would
  12354. # ever link correctly. If we're not using GNU ld we use -z text
  12355. # though, which does catch some bad symbols but isn't as heavy-handed
  12356. # as -z defs.
  12357. no_undefined_flag='$wl-z,text'
  12358. allow_undefined_flag='$wl-z,nodefs'
  12359. archive_cmds_need_lc=no
  12360. hardcode_shlibpath_var=no
  12361. hardcode_libdir_flag_spec='$wl-R,$libdir'
  12362. hardcode_libdir_separator=':'
  12363. link_all_deplibs=yes
  12364. export_dynamic_flag_spec='$wl-Bexport'
  12365. runpath_var='LD_RUN_PATH'
  12366. if test yes = "$GCC"; then
  12367. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12368. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12369. else
  12370. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12371. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12372. fi
  12373. ;;
  12374. uts4*)
  12375. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12376. hardcode_libdir_flag_spec='-L$libdir'
  12377. hardcode_shlibpath_var=no
  12378. ;;
  12379. *)
  12380. ld_shlibs=no
  12381. ;;
  12382. esac
  12383. if test sni = "$host_vendor"; then
  12384. case $host in
  12385. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12386. export_dynamic_flag_spec='$wl-Blargedynsym'
  12387. ;;
  12388. esac
  12389. fi
  12390. fi
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  12392. $as_echo "$ld_shlibs" >&6; }
  12393. test no = "$ld_shlibs" && can_build_shared=no
  12394. with_gnu_ld=$with_gnu_ld
  12395. #
  12396. # Do we need to explicitly link libc?
  12397. #
  12398. case "x$archive_cmds_need_lc" in
  12399. x|xyes)
  12400. # Assume -lc should be added
  12401. archive_cmds_need_lc=yes
  12402. if test yes,yes = "$GCC,$enable_shared"; then
  12403. case $archive_cmds in
  12404. *'~'*)
  12405. # FIXME: we may have to deal with multi-command sequences.
  12406. ;;
  12407. '$CC '*)
  12408. # Test whether the compiler implicitly links with -lc since on some
  12409. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12410. # to ld, don't add -lc before -lgcc.
  12411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12412. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12413. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  12414. $as_echo_n "(cached) " >&6
  12415. else
  12416. $RM conftest*
  12417. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12418. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12419. (eval $ac_compile) 2>&5
  12420. ac_status=$?
  12421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12422. test $ac_status = 0; } 2>conftest.err; then
  12423. soname=conftest
  12424. lib=conftest
  12425. libobjs=conftest.$ac_objext
  12426. deplibs=
  12427. wl=$lt_prog_compiler_wl
  12428. pic_flag=$lt_prog_compiler_pic
  12429. compiler_flags=-v
  12430. linker_flags=-v
  12431. verstring=
  12432. output_objdir=.
  12433. libname=conftest
  12434. lt_save_allow_undefined_flag=$allow_undefined_flag
  12435. allow_undefined_flag=
  12436. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12437. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12438. ac_status=$?
  12439. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12440. test $ac_status = 0; }
  12441. then
  12442. lt_cv_archive_cmds_need_lc=no
  12443. else
  12444. lt_cv_archive_cmds_need_lc=yes
  12445. fi
  12446. allow_undefined_flag=$lt_save_allow_undefined_flag
  12447. else
  12448. cat conftest.err 1>&5
  12449. fi
  12450. $RM conftest*
  12451. fi
  12452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  12453. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  12454. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  12455. ;;
  12456. esac
  12457. fi
  12458. ;;
  12459. esac
  12460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12461. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12462. if test yes = "$GCC"; then
  12463. case $host_os in
  12464. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  12465. *) lt_awk_arg='/^libraries:/' ;;
  12466. esac
  12467. case $host_os in
  12468. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  12469. *) lt_sed_strip_eq='s|=/|/|g' ;;
  12470. esac
  12471. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  12472. case $lt_search_path_spec in
  12473. *\;*)
  12474. # if the path contains ";" then we assume it to be the separator
  12475. # otherwise default to the standard path separator (i.e. ":") - it is
  12476. # assumed that no part of a normal pathname contains ";" but that should
  12477. # okay in the real world where ";" in dirpaths is itself problematic.
  12478. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  12479. ;;
  12480. *)
  12481. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  12482. ;;
  12483. esac
  12484. # Ok, now we have the path, separated by spaces, we can step through it
  12485. # and add multilib dir if necessary...
  12486. lt_tmp_lt_search_path_spec=
  12487. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  12488. # ...but if some path component already ends with the multilib dir we assume
  12489. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  12490. case "$lt_multi_os_dir; $lt_search_path_spec " in
  12491. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  12492. lt_multi_os_dir=
  12493. ;;
  12494. esac
  12495. for lt_sys_path in $lt_search_path_spec; do
  12496. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  12497. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  12498. elif test -n "$lt_multi_os_dir"; then
  12499. test -d "$lt_sys_path" && \
  12500. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  12501. fi
  12502. done
  12503. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  12504. BEGIN {RS = " "; FS = "/|\n";} {
  12505. lt_foo = "";
  12506. lt_count = 0;
  12507. for (lt_i = NF; lt_i > 0; lt_i--) {
  12508. if ($lt_i != "" && $lt_i != ".") {
  12509. if ($lt_i == "..") {
  12510. lt_count++;
  12511. } else {
  12512. if (lt_count == 0) {
  12513. lt_foo = "/" $lt_i lt_foo;
  12514. } else {
  12515. lt_count--;
  12516. }
  12517. }
  12518. }
  12519. }
  12520. if (lt_foo != "") { lt_freq[lt_foo]++; }
  12521. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  12522. }'`
  12523. # AWK program above erroneously prepends '/' to C:/dos/paths
  12524. # for these hosts.
  12525. case $host_os in
  12526. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  12527. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  12528. esac
  12529. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  12530. else
  12531. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12532. fi
  12533. library_names_spec=
  12534. libname_spec='lib$name'
  12535. soname_spec=
  12536. shrext_cmds=.so
  12537. postinstall_cmds=
  12538. postuninstall_cmds=
  12539. finish_cmds=
  12540. finish_eval=
  12541. shlibpath_var=
  12542. shlibpath_overrides_runpath=unknown
  12543. version_type=none
  12544. dynamic_linker="$host_os ld.so"
  12545. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12546. need_lib_prefix=unknown
  12547. hardcode_into_libs=no
  12548. # when you set need_version to no, make sure it does not cause -set_version
  12549. # flags to be left without arguments
  12550. need_version=unknown
  12551. case $host_os in
  12552. aix3*)
  12553. version_type=linux # correct to gnu/linux during the next big refactor
  12554. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  12555. shlibpath_var=LIBPATH
  12556. # AIX 3 has no versioning support, so we append a major version to the name.
  12557. soname_spec='$libname$release$shared_ext$major'
  12558. ;;
  12559. aix[4-9]*)
  12560. version_type=linux # correct to gnu/linux during the next big refactor
  12561. need_lib_prefix=no
  12562. need_version=no
  12563. hardcode_into_libs=yes
  12564. if test ia64 = "$host_cpu"; then
  12565. # AIX 5 supports IA64
  12566. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  12567. shlibpath_var=LD_LIBRARY_PATH
  12568. else
  12569. # With GCC up to 2.95.x, collect2 would create an import file
  12570. # for dependence libraries. The import file would start with
  12571. # the line '#! .'. This would cause the generated library to
  12572. # depend on '.', always an invalid library. This was fixed in
  12573. # development snapshots of GCC prior to 3.0.
  12574. case $host_os in
  12575. aix4 | aix4.[01] | aix4.[01].*)
  12576. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12577. echo ' yes '
  12578. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  12579. :
  12580. else
  12581. can_build_shared=no
  12582. fi
  12583. ;;
  12584. esac
  12585. # Using Import Files as archive members, it is possible to support
  12586. # filename-based versioning of shared library archives on AIX. While
  12587. # this would work for both with and without runtime linking, it will
  12588. # prevent static linking of such archives. So we do filename-based
  12589. # shared library versioning with .so extension only, which is used
  12590. # when both runtime linking and shared linking is enabled.
  12591. # Unfortunately, runtime linking may impact performance, so we do
  12592. # not want this to be the default eventually. Also, we use the
  12593. # versioned .so libs for executables only if there is the -brtl
  12594. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  12595. # To allow for filename-based versioning support, we need to create
  12596. # libNAME.so.V as an archive file, containing:
  12597. # *) an Import File, referring to the versioned filename of the
  12598. # archive as well as the shared archive member, telling the
  12599. # bitwidth (32 or 64) of that shared object, and providing the
  12600. # list of exported symbols of that shared object, eventually
  12601. # decorated with the 'weak' keyword
  12602. # *) the shared object with the F_LOADONLY flag set, to really avoid
  12603. # it being seen by the linker.
  12604. # At run time we better use the real file rather than another symlink,
  12605. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  12606. case $with_aix_soname,$aix_use_runtimelinking in
  12607. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  12608. # soname into executable. Probably we can add versioning support to
  12609. # collect2, so additional links can be useful in future.
  12610. aix,yes) # traditional libtool
  12611. dynamic_linker='AIX unversionable lib.so'
  12612. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12613. # instead of lib<name>.a to let people know that these are not
  12614. # typical AIX shared libraries.
  12615. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12616. ;;
  12617. aix,no) # traditional AIX only
  12618. dynamic_linker='AIX lib.a(lib.so.V)'
  12619. # We preserve .a as extension for shared libraries through AIX4.2
  12620. # and later when we are not doing run time linking.
  12621. library_names_spec='$libname$release.a $libname.a'
  12622. soname_spec='$libname$release$shared_ext$major'
  12623. ;;
  12624. svr4,*) # full svr4 only
  12625. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  12626. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12627. # We do not specify a path in Import Files, so LIBPATH fires.
  12628. shlibpath_overrides_runpath=yes
  12629. ;;
  12630. *,yes) # both, prefer svr4
  12631. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  12632. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12633. # unpreferred sharedlib libNAME.a needs extra handling
  12634. 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"'
  12635. 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"'
  12636. # We do not specify a path in Import Files, so LIBPATH fires.
  12637. shlibpath_overrides_runpath=yes
  12638. ;;
  12639. *,no) # both, prefer aix
  12640. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  12641. library_names_spec='$libname$release.a $libname.a'
  12642. soname_spec='$libname$release$shared_ext$major'
  12643. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  12644. 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)'
  12645. 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"'
  12646. ;;
  12647. esac
  12648. shlibpath_var=LIBPATH
  12649. fi
  12650. ;;
  12651. amigaos*)
  12652. case $host_cpu in
  12653. powerpc)
  12654. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12655. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12656. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12657. ;;
  12658. m68k)
  12659. library_names_spec='$libname.ixlibrary $libname.a'
  12660. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12661. 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'
  12662. ;;
  12663. esac
  12664. ;;
  12665. beos*)
  12666. library_names_spec='$libname$shared_ext'
  12667. dynamic_linker="$host_os ld.so"
  12668. shlibpath_var=LIBRARY_PATH
  12669. ;;
  12670. bsdi[45]*)
  12671. version_type=linux # correct to gnu/linux during the next big refactor
  12672. need_version=no
  12673. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12674. soname_spec='$libname$release$shared_ext$major'
  12675. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12676. shlibpath_var=LD_LIBRARY_PATH
  12677. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12678. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12679. # the default ld.so.conf also contains /usr/contrib/lib and
  12680. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12681. # libtool to hard-code these into programs
  12682. ;;
  12683. cygwin* | mingw* | pw32* | cegcc*)
  12684. version_type=windows
  12685. shrext_cmds=.dll
  12686. need_version=no
  12687. need_lib_prefix=no
  12688. case $GCC,$cc_basename in
  12689. yes,*)
  12690. # gcc
  12691. library_names_spec='$libname.dll.a'
  12692. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12693. postinstall_cmds='base_file=`basename \$file`~
  12694. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12695. dldir=$destdir/`dirname \$dlpath`~
  12696. test -d \$dldir || mkdir -p \$dldir~
  12697. $install_prog $dir/$dlname \$dldir/$dlname~
  12698. chmod a+x \$dldir/$dlname~
  12699. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12700. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12701. fi'
  12702. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12703. dlpath=$dir/\$dldll~
  12704. $RM \$dlpath'
  12705. shlibpath_overrides_runpath=yes
  12706. case $host_os in
  12707. cygwin*)
  12708. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12709. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12710. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  12711. ;;
  12712. mingw* | cegcc*)
  12713. # MinGW DLLs use traditional 'lib' prefix
  12714. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12715. ;;
  12716. pw32*)
  12717. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12718. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12719. ;;
  12720. esac
  12721. dynamic_linker='Win32 ld.exe'
  12722. ;;
  12723. *,cl*)
  12724. # Native MSVC
  12725. libname_spec='$name'
  12726. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12727. library_names_spec='$libname.dll.lib'
  12728. case $build_os in
  12729. mingw*)
  12730. sys_lib_search_path_spec=
  12731. lt_save_ifs=$IFS
  12732. IFS=';'
  12733. for lt_path in $LIB
  12734. do
  12735. IFS=$lt_save_ifs
  12736. # Let DOS variable expansion print the short 8.3 style file name.
  12737. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12738. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12739. done
  12740. IFS=$lt_save_ifs
  12741. # Convert to MSYS style.
  12742. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12743. ;;
  12744. cygwin*)
  12745. # Convert to unix form, then to dos form, then back to unix form
  12746. # but this time dos style (no spaces!) so that the unix form looks
  12747. # like /cygdrive/c/PROGRA~1:/cygdr...
  12748. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12749. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12750. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12751. ;;
  12752. *)
  12753. sys_lib_search_path_spec=$LIB
  12754. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12755. # It is most probably a Windows format PATH.
  12756. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12757. else
  12758. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12759. fi
  12760. # FIXME: find the short name or the path components, as spaces are
  12761. # common. (e.g. "Program Files" -> "PROGRA~1")
  12762. ;;
  12763. esac
  12764. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12765. postinstall_cmds='base_file=`basename \$file`~
  12766. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12767. dldir=$destdir/`dirname \$dlpath`~
  12768. test -d \$dldir || mkdir -p \$dldir~
  12769. $install_prog $dir/$dlname \$dldir/$dlname'
  12770. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12771. dlpath=$dir/\$dldll~
  12772. $RM \$dlpath'
  12773. shlibpath_overrides_runpath=yes
  12774. dynamic_linker='Win32 link.exe'
  12775. ;;
  12776. *)
  12777. # Assume MSVC wrapper
  12778. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  12779. dynamic_linker='Win32 ld.exe'
  12780. ;;
  12781. esac
  12782. # FIXME: first we should search . and the directory the executable is in
  12783. shlibpath_var=PATH
  12784. ;;
  12785. darwin* | rhapsody*)
  12786. dynamic_linker="$host_os dyld"
  12787. version_type=darwin
  12788. need_lib_prefix=no
  12789. need_version=no
  12790. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  12791. soname_spec='$libname$release$major$shared_ext'
  12792. shlibpath_overrides_runpath=yes
  12793. shlibpath_var=DYLD_LIBRARY_PATH
  12794. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12795. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  12796. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12797. ;;
  12798. dgux*)
  12799. version_type=linux # correct to gnu/linux during the next big refactor
  12800. need_lib_prefix=no
  12801. need_version=no
  12802. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12803. soname_spec='$libname$release$shared_ext$major'
  12804. shlibpath_var=LD_LIBRARY_PATH
  12805. ;;
  12806. freebsd* | dragonfly*)
  12807. # DragonFly does not have aout. When/if they implement a new
  12808. # versioning mechanism, adjust this.
  12809. if test -x /usr/bin/objformat; then
  12810. objformat=`/usr/bin/objformat`
  12811. else
  12812. case $host_os in
  12813. freebsd[23].*) objformat=aout ;;
  12814. *) objformat=elf ;;
  12815. esac
  12816. fi
  12817. version_type=freebsd-$objformat
  12818. case $version_type in
  12819. freebsd-elf*)
  12820. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12821. soname_spec='$libname$release$shared_ext$major'
  12822. need_version=no
  12823. need_lib_prefix=no
  12824. ;;
  12825. freebsd-*)
  12826. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12827. need_version=yes
  12828. ;;
  12829. esac
  12830. shlibpath_var=LD_LIBRARY_PATH
  12831. case $host_os in
  12832. freebsd2.*)
  12833. shlibpath_overrides_runpath=yes
  12834. ;;
  12835. freebsd3.[01]* | freebsdelf3.[01]*)
  12836. shlibpath_overrides_runpath=yes
  12837. hardcode_into_libs=yes
  12838. ;;
  12839. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12840. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12841. shlibpath_overrides_runpath=no
  12842. hardcode_into_libs=yes
  12843. ;;
  12844. *) # from 4.6 on, and DragonFly
  12845. shlibpath_overrides_runpath=yes
  12846. hardcode_into_libs=yes
  12847. ;;
  12848. esac
  12849. ;;
  12850. haiku*)
  12851. version_type=linux # correct to gnu/linux during the next big refactor
  12852. need_lib_prefix=no
  12853. need_version=no
  12854. dynamic_linker="$host_os runtime_loader"
  12855. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12856. soname_spec='$libname$release$shared_ext$major'
  12857. shlibpath_var=LIBRARY_PATH
  12858. shlibpath_overrides_runpath=no
  12859. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12860. hardcode_into_libs=yes
  12861. ;;
  12862. hpux9* | hpux10* | hpux11*)
  12863. # Give a soname corresponding to the major version so that dld.sl refuses to
  12864. # link against other versions.
  12865. version_type=sunos
  12866. need_lib_prefix=no
  12867. need_version=no
  12868. case $host_cpu in
  12869. ia64*)
  12870. shrext_cmds='.so'
  12871. hardcode_into_libs=yes
  12872. dynamic_linker="$host_os dld.so"
  12873. shlibpath_var=LD_LIBRARY_PATH
  12874. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12875. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12876. soname_spec='$libname$release$shared_ext$major'
  12877. if test 32 = "$HPUX_IA64_MODE"; then
  12878. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12879. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  12880. else
  12881. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12882. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  12883. fi
  12884. ;;
  12885. hppa*64*)
  12886. shrext_cmds='.sl'
  12887. hardcode_into_libs=yes
  12888. dynamic_linker="$host_os dld.sl"
  12889. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12890. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12891. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12892. soname_spec='$libname$release$shared_ext$major'
  12893. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12894. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12895. ;;
  12896. *)
  12897. shrext_cmds='.sl'
  12898. dynamic_linker="$host_os dld.sl"
  12899. shlibpath_var=SHLIB_PATH
  12900. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12901. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12902. soname_spec='$libname$release$shared_ext$major'
  12903. ;;
  12904. esac
  12905. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12906. postinstall_cmds='chmod 555 $lib'
  12907. # or fails outright, so override atomically:
  12908. install_override_mode=555
  12909. ;;
  12910. interix[3-9]*)
  12911. version_type=linux # correct to gnu/linux during the next big refactor
  12912. need_lib_prefix=no
  12913. need_version=no
  12914. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12915. soname_spec='$libname$release$shared_ext$major'
  12916. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12917. shlibpath_var=LD_LIBRARY_PATH
  12918. shlibpath_overrides_runpath=no
  12919. hardcode_into_libs=yes
  12920. ;;
  12921. irix5* | irix6* | nonstopux*)
  12922. case $host_os in
  12923. nonstopux*) version_type=nonstopux ;;
  12924. *)
  12925. if test yes = "$lt_cv_prog_gnu_ld"; then
  12926. version_type=linux # correct to gnu/linux during the next big refactor
  12927. else
  12928. version_type=irix
  12929. fi ;;
  12930. esac
  12931. need_lib_prefix=no
  12932. need_version=no
  12933. soname_spec='$libname$release$shared_ext$major'
  12934. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  12935. case $host_os in
  12936. irix5* | nonstopux*)
  12937. libsuff= shlibsuff=
  12938. ;;
  12939. *)
  12940. case $LD in # libtool.m4 will add one of these switches to LD
  12941. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12942. libsuff= shlibsuff= libmagic=32-bit;;
  12943. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12944. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12945. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12946. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12947. *) libsuff= shlibsuff= libmagic=never-match;;
  12948. esac
  12949. ;;
  12950. esac
  12951. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12952. shlibpath_overrides_runpath=no
  12953. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  12954. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  12955. hardcode_into_libs=yes
  12956. ;;
  12957. # No shared lib support for Linux oldld, aout, or coff.
  12958. linux*oldld* | linux*aout* | linux*coff*)
  12959. dynamic_linker=no
  12960. ;;
  12961. linux*android*)
  12962. version_type=none # Android doesn't support versioned libraries.
  12963. need_lib_prefix=no
  12964. need_version=no
  12965. library_names_spec='$libname$release$shared_ext'
  12966. soname_spec='$libname$release$shared_ext'
  12967. finish_cmds=
  12968. shlibpath_var=LD_LIBRARY_PATH
  12969. shlibpath_overrides_runpath=yes
  12970. # This implies no fast_install, which is unacceptable.
  12971. # Some rework will be needed to allow for fast_install
  12972. # before this can be enabled.
  12973. hardcode_into_libs=yes
  12974. dynamic_linker='Android linker'
  12975. # Don't embed -rpath directories since the linker doesn't support them.
  12976. hardcode_libdir_flag_spec='-L$libdir'
  12977. ;;
  12978. # This must be glibc/ELF.
  12979. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12980. version_type=linux # correct to gnu/linux during the next big refactor
  12981. need_lib_prefix=no
  12982. need_version=no
  12983. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12984. soname_spec='$libname$release$shared_ext$major'
  12985. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12986. shlibpath_var=LD_LIBRARY_PATH
  12987. shlibpath_overrides_runpath=no
  12988. # Some binutils ld are patched to set DT_RUNPATH
  12989. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12990. $as_echo_n "(cached) " >&6
  12991. else
  12992. lt_cv_shlibpath_overrides_runpath=no
  12993. save_LDFLAGS=$LDFLAGS
  12994. save_libdir=$libdir
  12995. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  12996. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  12997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12998. /* end confdefs.h. */
  12999. int
  13000. main ()
  13001. {
  13002. ;
  13003. return 0;
  13004. }
  13005. _ACEOF
  13006. if ac_fn_c_try_link "$LINENO"; then :
  13007. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13008. lt_cv_shlibpath_overrides_runpath=yes
  13009. fi
  13010. fi
  13011. rm -f core conftest.err conftest.$ac_objext \
  13012. conftest$ac_exeext conftest.$ac_ext
  13013. LDFLAGS=$save_LDFLAGS
  13014. libdir=$save_libdir
  13015. fi
  13016. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13017. # This implies no fast_install, which is unacceptable.
  13018. # Some rework will be needed to allow for fast_install
  13019. # before this can be enabled.
  13020. hardcode_into_libs=yes
  13021. # Ideally, we could use ldconfig to report *all* directores which are
  13022. # searched for libraries, however this is still not possible. Aside from not
  13023. # being certain /sbin/ldconfig is available, command
  13024. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13025. # even though it is searched at run-time. Try to do the best guess by
  13026. # appending ld.so.conf contents (and includes) to the search path.
  13027. if test -f /etc/ld.so.conf; then
  13028. 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' ' '`
  13029. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13030. fi
  13031. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13032. # powerpc, because MkLinux only supported shared libraries with the
  13033. # GNU dynamic linker. Since this was broken with cross compilers,
  13034. # most powerpc-linux boxes support dynamic linking these days and
  13035. # people can always --disable-shared, the test was removed, and we
  13036. # assume the GNU/Linux dynamic linker is in use.
  13037. dynamic_linker='GNU/Linux ld.so'
  13038. ;;
  13039. netbsdelf*-gnu)
  13040. version_type=linux
  13041. need_lib_prefix=no
  13042. need_version=no
  13043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13044. soname_spec='${libname}${release}${shared_ext}$major'
  13045. shlibpath_var=LD_LIBRARY_PATH
  13046. shlibpath_overrides_runpath=no
  13047. hardcode_into_libs=yes
  13048. dynamic_linker='NetBSD ld.elf_so'
  13049. ;;
  13050. netbsd*)
  13051. version_type=sunos
  13052. need_lib_prefix=no
  13053. need_version=no
  13054. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13055. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13056. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13057. dynamic_linker='NetBSD (a.out) ld.so'
  13058. else
  13059. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13060. soname_spec='$libname$release$shared_ext$major'
  13061. dynamic_linker='NetBSD ld.elf_so'
  13062. fi
  13063. shlibpath_var=LD_LIBRARY_PATH
  13064. shlibpath_overrides_runpath=yes
  13065. hardcode_into_libs=yes
  13066. ;;
  13067. newsos6)
  13068. version_type=linux # correct to gnu/linux during the next big refactor
  13069. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13070. shlibpath_var=LD_LIBRARY_PATH
  13071. shlibpath_overrides_runpath=yes
  13072. ;;
  13073. *nto* | *qnx*)
  13074. version_type=qnx
  13075. need_lib_prefix=no
  13076. need_version=no
  13077. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13078. soname_spec='$libname$release$shared_ext$major'
  13079. shlibpath_var=LD_LIBRARY_PATH
  13080. shlibpath_overrides_runpath=no
  13081. hardcode_into_libs=yes
  13082. dynamic_linker='ldqnx.so'
  13083. ;;
  13084. openbsd* | bitrig*)
  13085. version_type=sunos
  13086. sys_lib_dlsearch_path_spec=/usr/lib
  13087. need_lib_prefix=no
  13088. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13089. need_version=no
  13090. else
  13091. need_version=yes
  13092. fi
  13093. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13094. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13095. shlibpath_var=LD_LIBRARY_PATH
  13096. shlibpath_overrides_runpath=yes
  13097. ;;
  13098. os2*)
  13099. libname_spec='$name'
  13100. version_type=windows
  13101. shrext_cmds=.dll
  13102. need_version=no
  13103. need_lib_prefix=no
  13104. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13105. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13106. v=$($ECHO $release$versuffix | tr -d .-);
  13107. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13108. $ECHO $n$v`$shared_ext'
  13109. library_names_spec='${libname}_dll.$libext'
  13110. dynamic_linker='OS/2 ld.exe'
  13111. shlibpath_var=BEGINLIBPATH
  13112. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13113. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13114. postinstall_cmds='base_file=`basename \$file`~
  13115. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13116. dldir=$destdir/`dirname \$dlpath`~
  13117. test -d \$dldir || mkdir -p \$dldir~
  13118. $install_prog $dir/$dlname \$dldir/$dlname~
  13119. chmod a+x \$dldir/$dlname~
  13120. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13121. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13122. fi'
  13123. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13124. dlpath=$dir/\$dldll~
  13125. $RM \$dlpath'
  13126. ;;
  13127. osf3* | osf4* | osf5*)
  13128. version_type=osf
  13129. need_lib_prefix=no
  13130. need_version=no
  13131. soname_spec='$libname$release$shared_ext$major'
  13132. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13133. shlibpath_var=LD_LIBRARY_PATH
  13134. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13135. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13136. ;;
  13137. rdos*)
  13138. dynamic_linker=no
  13139. ;;
  13140. solaris*)
  13141. version_type=linux # correct to gnu/linux during the next big refactor
  13142. need_lib_prefix=no
  13143. need_version=no
  13144. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13145. soname_spec='$libname$release$shared_ext$major'
  13146. shlibpath_var=LD_LIBRARY_PATH
  13147. shlibpath_overrides_runpath=yes
  13148. hardcode_into_libs=yes
  13149. # ldd complains unless libraries are executable
  13150. postinstall_cmds='chmod +x $lib'
  13151. ;;
  13152. sunos4*)
  13153. version_type=sunos
  13154. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13155. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13156. shlibpath_var=LD_LIBRARY_PATH
  13157. shlibpath_overrides_runpath=yes
  13158. if test yes = "$with_gnu_ld"; then
  13159. need_lib_prefix=no
  13160. fi
  13161. need_version=yes
  13162. ;;
  13163. sysv4 | sysv4.3*)
  13164. version_type=linux # correct to gnu/linux during the next big refactor
  13165. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13166. soname_spec='$libname$release$shared_ext$major'
  13167. shlibpath_var=LD_LIBRARY_PATH
  13168. case $host_vendor in
  13169. sni)
  13170. shlibpath_overrides_runpath=no
  13171. need_lib_prefix=no
  13172. runpath_var=LD_RUN_PATH
  13173. ;;
  13174. siemens)
  13175. need_lib_prefix=no
  13176. ;;
  13177. motorola)
  13178. need_lib_prefix=no
  13179. need_version=no
  13180. shlibpath_overrides_runpath=no
  13181. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13182. ;;
  13183. esac
  13184. ;;
  13185. sysv4*MP*)
  13186. if test -d /usr/nec; then
  13187. version_type=linux # correct to gnu/linux during the next big refactor
  13188. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  13189. soname_spec='$libname$shared_ext.$major'
  13190. shlibpath_var=LD_LIBRARY_PATH
  13191. fi
  13192. ;;
  13193. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13194. version_type=sco
  13195. need_lib_prefix=no
  13196. need_version=no
  13197. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  13198. soname_spec='$libname$release$shared_ext$major'
  13199. shlibpath_var=LD_LIBRARY_PATH
  13200. shlibpath_overrides_runpath=yes
  13201. hardcode_into_libs=yes
  13202. if test yes = "$with_gnu_ld"; then
  13203. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13204. else
  13205. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13206. case $host_os in
  13207. sco3.2v5*)
  13208. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13209. ;;
  13210. esac
  13211. fi
  13212. sys_lib_dlsearch_path_spec='/usr/lib'
  13213. ;;
  13214. tpf*)
  13215. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13216. version_type=linux # correct to gnu/linux during the next big refactor
  13217. need_lib_prefix=no
  13218. need_version=no
  13219. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13220. shlibpath_var=LD_LIBRARY_PATH
  13221. shlibpath_overrides_runpath=no
  13222. hardcode_into_libs=yes
  13223. ;;
  13224. uts4*)
  13225. version_type=linux # correct to gnu/linux during the next big refactor
  13226. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13227. soname_spec='$libname$release$shared_ext$major'
  13228. shlibpath_var=LD_LIBRARY_PATH
  13229. ;;
  13230. *)
  13231. dynamic_linker=no
  13232. ;;
  13233. esac
  13234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13235. $as_echo "$dynamic_linker" >&6; }
  13236. test no = "$dynamic_linker" && can_build_shared=no
  13237. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13238. if test yes = "$GCC"; then
  13239. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13240. fi
  13241. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  13242. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  13243. fi
  13244. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  13245. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  13246. fi
  13247. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  13248. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  13249. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  13250. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  13251. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  13252. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  13253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13254. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13255. hardcode_action=
  13256. if test -n "$hardcode_libdir_flag_spec" ||
  13257. test -n "$runpath_var" ||
  13258. test yes = "$hardcode_automatic"; then
  13259. # We can hardcode non-existent directories.
  13260. if test no != "$hardcode_direct" &&
  13261. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13262. # have to relink, otherwise we might link with an installed library
  13263. # when we should be linking with a yet-to-be-installed one
  13264. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  13265. test no != "$hardcode_minus_L"; then
  13266. # Linking always hardcodes the temporary library directory.
  13267. hardcode_action=relink
  13268. else
  13269. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13270. hardcode_action=immediate
  13271. fi
  13272. else
  13273. # We cannot hardcode anything, or else we can only hardcode existing
  13274. # directories.
  13275. hardcode_action=unsupported
  13276. fi
  13277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  13278. $as_echo "$hardcode_action" >&6; }
  13279. if test relink = "$hardcode_action" ||
  13280. test yes = "$inherit_rpath"; then
  13281. # Fast installation is not supported
  13282. enable_fast_install=no
  13283. elif test yes = "$shlibpath_overrides_runpath" ||
  13284. test no = "$enable_shared"; then
  13285. # Fast installation is not necessary
  13286. enable_fast_install=needless
  13287. fi
  13288. if test yes != "$enable_dlopen"; then
  13289. enable_dlopen=unknown
  13290. enable_dlopen_self=unknown
  13291. enable_dlopen_self_static=unknown
  13292. else
  13293. lt_cv_dlopen=no
  13294. lt_cv_dlopen_libs=
  13295. case $host_os in
  13296. beos*)
  13297. lt_cv_dlopen=load_add_on
  13298. lt_cv_dlopen_libs=
  13299. lt_cv_dlopen_self=yes
  13300. ;;
  13301. mingw* | pw32* | cegcc*)
  13302. lt_cv_dlopen=LoadLibrary
  13303. lt_cv_dlopen_libs=
  13304. ;;
  13305. cygwin*)
  13306. lt_cv_dlopen=dlopen
  13307. lt_cv_dlopen_libs=
  13308. ;;
  13309. darwin*)
  13310. # if libdl is installed we need to link against it
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  13312. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  13313. if ${ac_cv_lib_dl_dlopen+:} false; then :
  13314. $as_echo_n "(cached) " >&6
  13315. else
  13316. ac_check_lib_save_LIBS=$LIBS
  13317. LIBS="-ldl $LIBS"
  13318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13319. /* end confdefs.h. */
  13320. /* Override any GCC internal prototype to avoid an error.
  13321. Use char because int might match the return type of a GCC
  13322. builtin and then its argument prototype would still apply. */
  13323. #ifdef __cplusplus
  13324. extern "C"
  13325. #endif
  13326. char dlopen ();
  13327. int
  13328. main ()
  13329. {
  13330. return dlopen ();
  13331. ;
  13332. return 0;
  13333. }
  13334. _ACEOF
  13335. if ac_fn_c_try_link "$LINENO"; then :
  13336. ac_cv_lib_dl_dlopen=yes
  13337. else
  13338. ac_cv_lib_dl_dlopen=no
  13339. fi
  13340. rm -f core conftest.err conftest.$ac_objext \
  13341. conftest$ac_exeext conftest.$ac_ext
  13342. LIBS=$ac_check_lib_save_LIBS
  13343. fi
  13344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  13345. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  13346. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  13347. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  13348. else
  13349. lt_cv_dlopen=dyld
  13350. lt_cv_dlopen_libs=
  13351. lt_cv_dlopen_self=yes
  13352. fi
  13353. ;;
  13354. tpf*)
  13355. # Don't try to run any link tests for TPF. We know it's impossible
  13356. # because TPF is a cross-compiler, and we know how we open DSOs.
  13357. lt_cv_dlopen=dlopen
  13358. lt_cv_dlopen_libs=
  13359. lt_cv_dlopen_self=no
  13360. ;;
  13361. *)
  13362. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  13363. if test "x$ac_cv_func_shl_load" = xyes; then :
  13364. lt_cv_dlopen=shl_load
  13365. else
  13366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  13367. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  13368. if ${ac_cv_lib_dld_shl_load+:} false; then :
  13369. $as_echo_n "(cached) " >&6
  13370. else
  13371. ac_check_lib_save_LIBS=$LIBS
  13372. LIBS="-ldld $LIBS"
  13373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13374. /* end confdefs.h. */
  13375. /* Override any GCC internal prototype to avoid an error.
  13376. Use char because int might match the return type of a GCC
  13377. builtin and then its argument prototype would still apply. */
  13378. #ifdef __cplusplus
  13379. extern "C"
  13380. #endif
  13381. char shl_load ();
  13382. int
  13383. main ()
  13384. {
  13385. return shl_load ();
  13386. ;
  13387. return 0;
  13388. }
  13389. _ACEOF
  13390. if ac_fn_c_try_link "$LINENO"; then :
  13391. ac_cv_lib_dld_shl_load=yes
  13392. else
  13393. ac_cv_lib_dld_shl_load=no
  13394. fi
  13395. rm -f core conftest.err conftest.$ac_objext \
  13396. conftest$ac_exeext conftest.$ac_ext
  13397. LIBS=$ac_check_lib_save_LIBS
  13398. fi
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  13400. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  13401. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  13402. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  13403. else
  13404. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  13405. if test "x$ac_cv_func_dlopen" = xyes; then :
  13406. lt_cv_dlopen=dlopen
  13407. else
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  13409. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  13410. if ${ac_cv_lib_dl_dlopen+:} false; then :
  13411. $as_echo_n "(cached) " >&6
  13412. else
  13413. ac_check_lib_save_LIBS=$LIBS
  13414. LIBS="-ldl $LIBS"
  13415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13416. /* end confdefs.h. */
  13417. /* Override any GCC internal prototype to avoid an error.
  13418. Use char because int might match the return type of a GCC
  13419. builtin and then its argument prototype would still apply. */
  13420. #ifdef __cplusplus
  13421. extern "C"
  13422. #endif
  13423. char dlopen ();
  13424. int
  13425. main ()
  13426. {
  13427. return dlopen ();
  13428. ;
  13429. return 0;
  13430. }
  13431. _ACEOF
  13432. if ac_fn_c_try_link "$LINENO"; then :
  13433. ac_cv_lib_dl_dlopen=yes
  13434. else
  13435. ac_cv_lib_dl_dlopen=no
  13436. fi
  13437. rm -f core conftest.err conftest.$ac_objext \
  13438. conftest$ac_exeext conftest.$ac_ext
  13439. LIBS=$ac_check_lib_save_LIBS
  13440. fi
  13441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  13442. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  13443. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  13444. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  13445. else
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  13447. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  13448. if ${ac_cv_lib_svld_dlopen+:} false; then :
  13449. $as_echo_n "(cached) " >&6
  13450. else
  13451. ac_check_lib_save_LIBS=$LIBS
  13452. LIBS="-lsvld $LIBS"
  13453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13454. /* end confdefs.h. */
  13455. /* Override any GCC internal prototype to avoid an error.
  13456. Use char because int might match the return type of a GCC
  13457. builtin and then its argument prototype would still apply. */
  13458. #ifdef __cplusplus
  13459. extern "C"
  13460. #endif
  13461. char dlopen ();
  13462. int
  13463. main ()
  13464. {
  13465. return dlopen ();
  13466. ;
  13467. return 0;
  13468. }
  13469. _ACEOF
  13470. if ac_fn_c_try_link "$LINENO"; then :
  13471. ac_cv_lib_svld_dlopen=yes
  13472. else
  13473. ac_cv_lib_svld_dlopen=no
  13474. fi
  13475. rm -f core conftest.err conftest.$ac_objext \
  13476. conftest$ac_exeext conftest.$ac_ext
  13477. LIBS=$ac_check_lib_save_LIBS
  13478. fi
  13479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  13480. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  13481. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  13482. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  13483. else
  13484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  13485. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  13486. if ${ac_cv_lib_dld_dld_link+:} false; then :
  13487. $as_echo_n "(cached) " >&6
  13488. else
  13489. ac_check_lib_save_LIBS=$LIBS
  13490. LIBS="-ldld $LIBS"
  13491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13492. /* end confdefs.h. */
  13493. /* Override any GCC internal prototype to avoid an error.
  13494. Use char because int might match the return type of a GCC
  13495. builtin and then its argument prototype would still apply. */
  13496. #ifdef __cplusplus
  13497. extern "C"
  13498. #endif
  13499. char dld_link ();
  13500. int
  13501. main ()
  13502. {
  13503. return dld_link ();
  13504. ;
  13505. return 0;
  13506. }
  13507. _ACEOF
  13508. if ac_fn_c_try_link "$LINENO"; then :
  13509. ac_cv_lib_dld_dld_link=yes
  13510. else
  13511. ac_cv_lib_dld_dld_link=no
  13512. fi
  13513. rm -f core conftest.err conftest.$ac_objext \
  13514. conftest$ac_exeext conftest.$ac_ext
  13515. LIBS=$ac_check_lib_save_LIBS
  13516. fi
  13517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  13518. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  13519. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  13520. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  13521. fi
  13522. fi
  13523. fi
  13524. fi
  13525. fi
  13526. fi
  13527. ;;
  13528. esac
  13529. if test no = "$lt_cv_dlopen"; then
  13530. enable_dlopen=no
  13531. else
  13532. enable_dlopen=yes
  13533. fi
  13534. case $lt_cv_dlopen in
  13535. dlopen)
  13536. save_CPPFLAGS=$CPPFLAGS
  13537. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  13538. save_LDFLAGS=$LDFLAGS
  13539. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  13540. save_LIBS=$LIBS
  13541. LIBS="$lt_cv_dlopen_libs $LIBS"
  13542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  13543. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  13544. if ${lt_cv_dlopen_self+:} false; then :
  13545. $as_echo_n "(cached) " >&6
  13546. else
  13547. if test yes = "$cross_compiling"; then :
  13548. lt_cv_dlopen_self=cross
  13549. else
  13550. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13551. lt_status=$lt_dlunknown
  13552. cat > conftest.$ac_ext <<_LT_EOF
  13553. #line $LINENO "configure"
  13554. #include "confdefs.h"
  13555. #if HAVE_DLFCN_H
  13556. #include <dlfcn.h>
  13557. #endif
  13558. #include <stdio.h>
  13559. #ifdef RTLD_GLOBAL
  13560. # define LT_DLGLOBAL RTLD_GLOBAL
  13561. #else
  13562. # ifdef DL_GLOBAL
  13563. # define LT_DLGLOBAL DL_GLOBAL
  13564. # else
  13565. # define LT_DLGLOBAL 0
  13566. # endif
  13567. #endif
  13568. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13569. find out it does not work in some platform. */
  13570. #ifndef LT_DLLAZY_OR_NOW
  13571. # ifdef RTLD_LAZY
  13572. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13573. # else
  13574. # ifdef DL_LAZY
  13575. # define LT_DLLAZY_OR_NOW DL_LAZY
  13576. # else
  13577. # ifdef RTLD_NOW
  13578. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13579. # else
  13580. # ifdef DL_NOW
  13581. # define LT_DLLAZY_OR_NOW DL_NOW
  13582. # else
  13583. # define LT_DLLAZY_OR_NOW 0
  13584. # endif
  13585. # endif
  13586. # endif
  13587. # endif
  13588. #endif
  13589. /* When -fvisibility=hidden is used, assume the code has been annotated
  13590. correspondingly for the symbols needed. */
  13591. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13592. int fnord () __attribute__((visibility("default")));
  13593. #endif
  13594. int fnord () { return 42; }
  13595. int main ()
  13596. {
  13597. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13598. int status = $lt_dlunknown;
  13599. if (self)
  13600. {
  13601. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13602. else
  13603. {
  13604. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13605. else puts (dlerror ());
  13606. }
  13607. /* dlclose (self); */
  13608. }
  13609. else
  13610. puts (dlerror ());
  13611. return status;
  13612. }
  13613. _LT_EOF
  13614. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13615. (eval $ac_link) 2>&5
  13616. ac_status=$?
  13617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13618. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13619. (./conftest; exit; ) >&5 2>/dev/null
  13620. lt_status=$?
  13621. case x$lt_status in
  13622. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  13623. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  13624. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  13625. esac
  13626. else :
  13627. # compilation failed
  13628. lt_cv_dlopen_self=no
  13629. fi
  13630. fi
  13631. rm -fr conftest*
  13632. fi
  13633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  13634. $as_echo "$lt_cv_dlopen_self" >&6; }
  13635. if test yes = "$lt_cv_dlopen_self"; then
  13636. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  13637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  13638. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  13639. if ${lt_cv_dlopen_self_static+:} false; then :
  13640. $as_echo_n "(cached) " >&6
  13641. else
  13642. if test yes = "$cross_compiling"; then :
  13643. lt_cv_dlopen_self_static=cross
  13644. else
  13645. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13646. lt_status=$lt_dlunknown
  13647. cat > conftest.$ac_ext <<_LT_EOF
  13648. #line $LINENO "configure"
  13649. #include "confdefs.h"
  13650. #if HAVE_DLFCN_H
  13651. #include <dlfcn.h>
  13652. #endif
  13653. #include <stdio.h>
  13654. #ifdef RTLD_GLOBAL
  13655. # define LT_DLGLOBAL RTLD_GLOBAL
  13656. #else
  13657. # ifdef DL_GLOBAL
  13658. # define LT_DLGLOBAL DL_GLOBAL
  13659. # else
  13660. # define LT_DLGLOBAL 0
  13661. # endif
  13662. #endif
  13663. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13664. find out it does not work in some platform. */
  13665. #ifndef LT_DLLAZY_OR_NOW
  13666. # ifdef RTLD_LAZY
  13667. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13668. # else
  13669. # ifdef DL_LAZY
  13670. # define LT_DLLAZY_OR_NOW DL_LAZY
  13671. # else
  13672. # ifdef RTLD_NOW
  13673. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13674. # else
  13675. # ifdef DL_NOW
  13676. # define LT_DLLAZY_OR_NOW DL_NOW
  13677. # else
  13678. # define LT_DLLAZY_OR_NOW 0
  13679. # endif
  13680. # endif
  13681. # endif
  13682. # endif
  13683. #endif
  13684. /* When -fvisibility=hidden is used, assume the code has been annotated
  13685. correspondingly for the symbols needed. */
  13686. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13687. int fnord () __attribute__((visibility("default")));
  13688. #endif
  13689. int fnord () { return 42; }
  13690. int main ()
  13691. {
  13692. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13693. int status = $lt_dlunknown;
  13694. if (self)
  13695. {
  13696. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13697. else
  13698. {
  13699. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13700. else puts (dlerror ());
  13701. }
  13702. /* dlclose (self); */
  13703. }
  13704. else
  13705. puts (dlerror ());
  13706. return status;
  13707. }
  13708. _LT_EOF
  13709. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13710. (eval $ac_link) 2>&5
  13711. ac_status=$?
  13712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13713. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13714. (./conftest; exit; ) >&5 2>/dev/null
  13715. lt_status=$?
  13716. case x$lt_status in
  13717. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  13718. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  13719. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  13720. esac
  13721. else :
  13722. # compilation failed
  13723. lt_cv_dlopen_self_static=no
  13724. fi
  13725. fi
  13726. rm -fr conftest*
  13727. fi
  13728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  13729. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  13730. fi
  13731. CPPFLAGS=$save_CPPFLAGS
  13732. LDFLAGS=$save_LDFLAGS
  13733. LIBS=$save_LIBS
  13734. ;;
  13735. esac
  13736. case $lt_cv_dlopen_self in
  13737. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  13738. *) enable_dlopen_self=unknown ;;
  13739. esac
  13740. case $lt_cv_dlopen_self_static in
  13741. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  13742. *) enable_dlopen_self_static=unknown ;;
  13743. esac
  13744. fi
  13745. striplib=
  13746. old_striplib=
  13747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  13748. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  13749. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  13750. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13751. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13753. $as_echo "yes" >&6; }
  13754. else
  13755. # FIXME - insert some real tests, host_os isn't really good enough
  13756. case $host_os in
  13757. darwin*)
  13758. if test -n "$STRIP"; then
  13759. striplib="$STRIP -x"
  13760. old_striplib="$STRIP -S"
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13762. $as_echo "yes" >&6; }
  13763. else
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13765. $as_echo "no" >&6; }
  13766. fi
  13767. ;;
  13768. *)
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13770. $as_echo "no" >&6; }
  13771. ;;
  13772. esac
  13773. fi
  13774. # Report what library types will actually be built
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  13776. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  13778. $as_echo "$can_build_shared" >&6; }
  13779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  13780. $as_echo_n "checking whether to build shared libraries... " >&6; }
  13781. test no = "$can_build_shared" && enable_shared=no
  13782. # On AIX, shared libraries and static libraries use the same namespace, and
  13783. # are all built from PIC.
  13784. case $host_os in
  13785. aix3*)
  13786. test yes = "$enable_shared" && enable_static=no
  13787. if test -n "$RANLIB"; then
  13788. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13789. postinstall_cmds='$RANLIB $lib'
  13790. fi
  13791. ;;
  13792. aix[4-9]*)
  13793. if test ia64 != "$host_cpu"; then
  13794. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  13795. yes,aix,yes) ;; # shared object as lib.so file only
  13796. yes,svr4,*) ;; # shared object as lib.so archive member only
  13797. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  13798. esac
  13799. fi
  13800. ;;
  13801. esac
  13802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  13803. $as_echo "$enable_shared" >&6; }
  13804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  13805. $as_echo_n "checking whether to build static libraries... " >&6; }
  13806. # Make sure either enable_shared or enable_static is yes.
  13807. test yes = "$enable_shared" || enable_static=yes
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  13809. $as_echo "$enable_static" >&6; }
  13810. fi
  13811. ac_ext=c
  13812. ac_cpp='$CPP $CPPFLAGS'
  13813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13816. CC=$lt_save_CC
  13817. ac_config_commands="$ac_config_commands libtool"
  13818. # Only expand once:
  13819. if test -n "$ac_tool_prefix"; then
  13820. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  13821. set dummy ${ac_tool_prefix}ar; ac_word=$2
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13823. $as_echo_n "checking for $ac_word... " >&6; }
  13824. if ${ac_cv_prog_AR+:} false; then :
  13825. $as_echo_n "(cached) " >&6
  13826. else
  13827. if test -n "$AR"; then
  13828. ac_cv_prog_AR="$AR" # Let the user override the test.
  13829. else
  13830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13831. for as_dir in $PATH
  13832. do
  13833. IFS=$as_save_IFS
  13834. test -z "$as_dir" && as_dir=.
  13835. for ac_exec_ext in '' $ac_executable_extensions; do
  13836. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13837. ac_cv_prog_AR="${ac_tool_prefix}ar"
  13838. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13839. break 2
  13840. fi
  13841. done
  13842. done
  13843. IFS=$as_save_IFS
  13844. fi
  13845. fi
  13846. AR=$ac_cv_prog_AR
  13847. if test -n "$AR"; then
  13848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  13849. $as_echo "$AR" >&6; }
  13850. else
  13851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13852. $as_echo "no" >&6; }
  13853. fi
  13854. fi
  13855. if test -z "$ac_cv_prog_AR"; then
  13856. ac_ct_AR=$AR
  13857. # Extract the first word of "ar", so it can be a program name with args.
  13858. set dummy ar; ac_word=$2
  13859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13860. $as_echo_n "checking for $ac_word... " >&6; }
  13861. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  13862. $as_echo_n "(cached) " >&6
  13863. else
  13864. if test -n "$ac_ct_AR"; then
  13865. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  13866. else
  13867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13868. for as_dir in $PATH
  13869. do
  13870. IFS=$as_save_IFS
  13871. test -z "$as_dir" && as_dir=.
  13872. for ac_exec_ext in '' $ac_executable_extensions; do
  13873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13874. ac_cv_prog_ac_ct_AR="ar"
  13875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13876. break 2
  13877. fi
  13878. done
  13879. done
  13880. IFS=$as_save_IFS
  13881. fi
  13882. fi
  13883. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  13884. if test -n "$ac_ct_AR"; then
  13885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  13886. $as_echo "$ac_ct_AR" >&6; }
  13887. else
  13888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13889. $as_echo "no" >&6; }
  13890. fi
  13891. if test "x$ac_ct_AR" = x; then
  13892. AR="ar"
  13893. else
  13894. case $cross_compiling:$ac_tool_warned in
  13895. yes:)
  13896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13897. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13898. ac_tool_warned=yes ;;
  13899. esac
  13900. AR=$ac_ct_AR
  13901. fi
  13902. else
  13903. AR="$ac_cv_prog_AR"
  13904. fi
  13905. if test "x$EMSCRIPTEN" = "x" -a "$host_os" != "pnacl"; then :
  13906. oldcflags="$CFLAGS"
  13907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
  13908. $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
  13909. if ${ax_cv_check_cflags___mmmx+:} false; then :
  13910. $as_echo_n "(cached) " >&6
  13911. else
  13912. ax_check_save_flags=$CFLAGS
  13913. CFLAGS="$CFLAGS -mmmx"
  13914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13915. /* end confdefs.h. */
  13916. #include <time.h>
  13917. int
  13918. main ()
  13919. {
  13920. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  13921. ;
  13922. return 0;
  13923. }
  13924. _ACEOF
  13925. if ac_fn_c_try_link "$LINENO"; then :
  13926. ax_cv_check_cflags___mmmx=yes
  13927. else
  13928. ax_cv_check_cflags___mmmx=no
  13929. fi
  13930. rm -f core conftest.err conftest.$ac_objext \
  13931. conftest$ac_exeext conftest.$ac_ext
  13932. CFLAGS=$ax_check_save_flags
  13933. fi
  13934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
  13935. $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
  13936. if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
  13937. CFLAGS="$CFLAGS -mmmx"
  13938. else
  13939. :
  13940. fi
  13941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMX instructions set" >&5
  13942. $as_echo_n "checking for MMX instructions set... " >&6; }
  13943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13944. /* end confdefs.h. */
  13945. #pragma GCC target("mmx")
  13946. #include <mmintrin.h>
  13947. int
  13948. main ()
  13949. {
  13950. __m64 x = _mm_setzero_si64();
  13951. ;
  13952. return 0;
  13953. }
  13954. _ACEOF
  13955. if ac_fn_c_try_compile "$LINENO"; then :
  13956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13957. $as_echo "yes" >&6; }
  13958. $as_echo "@%:@define HAVE_MMINTRIN_H 1" >>confdefs.h
  13959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
  13960. $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
  13961. if ${ax_cv_check_cflags___mmmx+:} false; then :
  13962. $as_echo_n "(cached) " >&6
  13963. else
  13964. ax_check_save_flags=$CFLAGS
  13965. CFLAGS="$CFLAGS -mmmx"
  13966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13967. /* end confdefs.h. */
  13968. #include <time.h>
  13969. int
  13970. main ()
  13971. {
  13972. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  13973. ;
  13974. return 0;
  13975. }
  13976. _ACEOF
  13977. if ac_fn_c_try_link "$LINENO"; then :
  13978. ax_cv_check_cflags___mmmx=yes
  13979. else
  13980. ax_cv_check_cflags___mmmx=no
  13981. fi
  13982. rm -f core conftest.err conftest.$ac_objext \
  13983. conftest$ac_exeext conftest.$ac_ext
  13984. CFLAGS=$ax_check_save_flags
  13985. fi
  13986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
  13987. $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
  13988. if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
  13989. CFLAGS_MMX="-mmmx"
  13990. else
  13991. :
  13992. fi
  13993. else
  13994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13995. $as_echo "no" >&6; }
  13996. fi
  13997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13998. CFLAGS="$oldcflags"
  13999. oldcflags="$CFLAGS"
  14000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
  14001. $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
  14002. if ${ax_cv_check_cflags___msse2+:} false; then :
  14003. $as_echo_n "(cached) " >&6
  14004. else
  14005. ax_check_save_flags=$CFLAGS
  14006. CFLAGS="$CFLAGS -msse2"
  14007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14008. /* end confdefs.h. */
  14009. #include <time.h>
  14010. int
  14011. main ()
  14012. {
  14013. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14014. ;
  14015. return 0;
  14016. }
  14017. _ACEOF
  14018. if ac_fn_c_try_link "$LINENO"; then :
  14019. ax_cv_check_cflags___msse2=yes
  14020. else
  14021. ax_cv_check_cflags___msse2=no
  14022. fi
  14023. rm -f core conftest.err conftest.$ac_objext \
  14024. conftest$ac_exeext conftest.$ac_ext
  14025. CFLAGS=$ax_check_save_flags
  14026. fi
  14027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
  14028. $as_echo "$ax_cv_check_cflags___msse2" >&6; }
  14029. if test "x$ax_cv_check_cflags___msse2" = xyes; then :
  14030. CFLAGS="$CFLAGS -msse2"
  14031. else
  14032. :
  14033. fi
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2 instructions set" >&5
  14035. $as_echo_n "checking for SSE2 instructions set... " >&6; }
  14036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14037. /* end confdefs.h. */
  14038. #pragma GCC target("sse2")
  14039. #ifndef __SSE2__
  14040. # define __SSE2__
  14041. #endif
  14042. #include <emmintrin.h>
  14043. int
  14044. main ()
  14045. {
  14046. __m128d x = _mm_setzero_pd();
  14047. __m128i z = _mm_srli_epi64(_mm_setzero_si128(), 26);
  14048. ;
  14049. return 0;
  14050. }
  14051. _ACEOF
  14052. if ac_fn_c_try_compile "$LINENO"; then :
  14053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14054. $as_echo "yes" >&6; }
  14055. $as_echo "@%:@define HAVE_EMMINTRIN_H 1" >>confdefs.h
  14056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
  14057. $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
  14058. if ${ax_cv_check_cflags___msse2+:} false; then :
  14059. $as_echo_n "(cached) " >&6
  14060. else
  14061. ax_check_save_flags=$CFLAGS
  14062. CFLAGS="$CFLAGS -msse2"
  14063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14064. /* end confdefs.h. */
  14065. #include <time.h>
  14066. int
  14067. main ()
  14068. {
  14069. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14070. ;
  14071. return 0;
  14072. }
  14073. _ACEOF
  14074. if ac_fn_c_try_link "$LINENO"; then :
  14075. ax_cv_check_cflags___msse2=yes
  14076. else
  14077. ax_cv_check_cflags___msse2=no
  14078. fi
  14079. rm -f core conftest.err conftest.$ac_objext \
  14080. conftest$ac_exeext conftest.$ac_ext
  14081. CFLAGS=$ax_check_save_flags
  14082. fi
  14083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
  14084. $as_echo "$ax_cv_check_cflags___msse2" >&6; }
  14085. if test "x$ax_cv_check_cflags___msse2" = xyes; then :
  14086. CFLAGS_SSE2="-msse2"
  14087. else
  14088. :
  14089. fi
  14090. else
  14091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14092. $as_echo "no" >&6; }
  14093. fi
  14094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14095. CFLAGS="$oldcflags"
  14096. oldcflags="$CFLAGS"
  14097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
  14098. $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
  14099. if ${ax_cv_check_cflags___msse3+:} false; then :
  14100. $as_echo_n "(cached) " >&6
  14101. else
  14102. ax_check_save_flags=$CFLAGS
  14103. CFLAGS="$CFLAGS -msse3"
  14104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14105. /* end confdefs.h. */
  14106. #include <time.h>
  14107. int
  14108. main ()
  14109. {
  14110. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14111. ;
  14112. return 0;
  14113. }
  14114. _ACEOF
  14115. if ac_fn_c_try_link "$LINENO"; then :
  14116. ax_cv_check_cflags___msse3=yes
  14117. else
  14118. ax_cv_check_cflags___msse3=no
  14119. fi
  14120. rm -f core conftest.err conftest.$ac_objext \
  14121. conftest$ac_exeext conftest.$ac_ext
  14122. CFLAGS=$ax_check_save_flags
  14123. fi
  14124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
  14125. $as_echo "$ax_cv_check_cflags___msse3" >&6; }
  14126. if test "x$ax_cv_check_cflags___msse3" = xyes; then :
  14127. CFLAGS="$CFLAGS -msse3"
  14128. else
  14129. :
  14130. fi
  14131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 instructions set" >&5
  14132. $as_echo_n "checking for SSE3 instructions set... " >&6; }
  14133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14134. /* end confdefs.h. */
  14135. #pragma GCC target("sse3")
  14136. #include <pmmintrin.h>
  14137. int
  14138. main ()
  14139. {
  14140. __m128 x = _mm_addsub_ps(_mm_cvtpd_ps(_mm_setzero_pd()),
  14141. _mm_cvtpd_ps(_mm_setzero_pd()));
  14142. ;
  14143. return 0;
  14144. }
  14145. _ACEOF
  14146. if ac_fn_c_try_compile "$LINENO"; then :
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14148. $as_echo "yes" >&6; }
  14149. $as_echo "@%:@define HAVE_PMMINTRIN_H 1" >>confdefs.h
  14150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
  14151. $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
  14152. if ${ax_cv_check_cflags___msse3+:} false; then :
  14153. $as_echo_n "(cached) " >&6
  14154. else
  14155. ax_check_save_flags=$CFLAGS
  14156. CFLAGS="$CFLAGS -msse3"
  14157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14158. /* end confdefs.h. */
  14159. #include <time.h>
  14160. int
  14161. main ()
  14162. {
  14163. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14164. ;
  14165. return 0;
  14166. }
  14167. _ACEOF
  14168. if ac_fn_c_try_link "$LINENO"; then :
  14169. ax_cv_check_cflags___msse3=yes
  14170. else
  14171. ax_cv_check_cflags___msse3=no
  14172. fi
  14173. rm -f core conftest.err conftest.$ac_objext \
  14174. conftest$ac_exeext conftest.$ac_ext
  14175. CFLAGS=$ax_check_save_flags
  14176. fi
  14177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
  14178. $as_echo "$ax_cv_check_cflags___msse3" >&6; }
  14179. if test "x$ax_cv_check_cflags___msse3" = xyes; then :
  14180. CFLAGS_SSE3="-msse3"
  14181. else
  14182. :
  14183. fi
  14184. else
  14185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14186. $as_echo "no" >&6; }
  14187. fi
  14188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14189. CFLAGS="$oldcflags"
  14190. oldcflags="$CFLAGS"
  14191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
  14192. $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
  14193. if ${ax_cv_check_cflags___mssse3+:} false; then :
  14194. $as_echo_n "(cached) " >&6
  14195. else
  14196. ax_check_save_flags=$CFLAGS
  14197. CFLAGS="$CFLAGS -mssse3"
  14198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14199. /* end confdefs.h. */
  14200. #include <time.h>
  14201. int
  14202. main ()
  14203. {
  14204. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14205. ;
  14206. return 0;
  14207. }
  14208. _ACEOF
  14209. if ac_fn_c_try_link "$LINENO"; then :
  14210. ax_cv_check_cflags___mssse3=yes
  14211. else
  14212. ax_cv_check_cflags___mssse3=no
  14213. fi
  14214. rm -f core conftest.err conftest.$ac_objext \
  14215. conftest$ac_exeext conftest.$ac_ext
  14216. CFLAGS=$ax_check_save_flags
  14217. fi
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
  14219. $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
  14220. if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
  14221. CFLAGS="$CFLAGS -mssse3"
  14222. else
  14223. :
  14224. fi
  14225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSSE3 instructions set" >&5
  14226. $as_echo_n "checking for SSSE3 instructions set... " >&6; }
  14227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14228. /* end confdefs.h. */
  14229. #pragma GCC target("ssse3")
  14230. #include <tmmintrin.h>
  14231. int
  14232. main ()
  14233. {
  14234. __m64 x = _mm_abs_pi32(_m_from_int(0));
  14235. ;
  14236. return 0;
  14237. }
  14238. _ACEOF
  14239. if ac_fn_c_try_compile "$LINENO"; then :
  14240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14241. $as_echo "yes" >&6; }
  14242. $as_echo "@%:@define HAVE_TMMINTRIN_H 1" >>confdefs.h
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
  14244. $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
  14245. if ${ax_cv_check_cflags___mssse3+:} false; then :
  14246. $as_echo_n "(cached) " >&6
  14247. else
  14248. ax_check_save_flags=$CFLAGS
  14249. CFLAGS="$CFLAGS -mssse3"
  14250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14251. /* end confdefs.h. */
  14252. #include <time.h>
  14253. int
  14254. main ()
  14255. {
  14256. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14257. ;
  14258. return 0;
  14259. }
  14260. _ACEOF
  14261. if ac_fn_c_try_link "$LINENO"; then :
  14262. ax_cv_check_cflags___mssse3=yes
  14263. else
  14264. ax_cv_check_cflags___mssse3=no
  14265. fi
  14266. rm -f core conftest.err conftest.$ac_objext \
  14267. conftest$ac_exeext conftest.$ac_ext
  14268. CFLAGS=$ax_check_save_flags
  14269. fi
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
  14271. $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
  14272. if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
  14273. CFLAGS_SSSE3="-mssse3"
  14274. else
  14275. :
  14276. fi
  14277. else
  14278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14279. $as_echo "no" >&6; }
  14280. fi
  14281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14282. CFLAGS="$oldcflags"
  14283. oldcflags="$CFLAGS"
  14284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
  14285. $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
  14286. if ${ax_cv_check_cflags___msse4_1+:} false; then :
  14287. $as_echo_n "(cached) " >&6
  14288. else
  14289. ax_check_save_flags=$CFLAGS
  14290. CFLAGS="$CFLAGS -msse4.1"
  14291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14292. /* end confdefs.h. */
  14293. #include <time.h>
  14294. int
  14295. main ()
  14296. {
  14297. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14298. ;
  14299. return 0;
  14300. }
  14301. _ACEOF
  14302. if ac_fn_c_try_link "$LINENO"; then :
  14303. ax_cv_check_cflags___msse4_1=yes
  14304. else
  14305. ax_cv_check_cflags___msse4_1=no
  14306. fi
  14307. rm -f core conftest.err conftest.$ac_objext \
  14308. conftest$ac_exeext conftest.$ac_ext
  14309. CFLAGS=$ax_check_save_flags
  14310. fi
  14311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
  14312. $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
  14313. if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
  14314. CFLAGS="$CFLAGS -msse4.1"
  14315. else
  14316. :
  14317. fi
  14318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1 instructions set" >&5
  14319. $as_echo_n "checking for SSE4.1 instructions set... " >&6; }
  14320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14321. /* end confdefs.h. */
  14322. #pragma GCC target("sse4.1")
  14323. #include <smmintrin.h>
  14324. int
  14325. main ()
  14326. {
  14327. __m128i x = _mm_minpos_epu16(_mm_setzero_si128());
  14328. ;
  14329. return 0;
  14330. }
  14331. _ACEOF
  14332. if ac_fn_c_try_compile "$LINENO"; then :
  14333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14334. $as_echo "yes" >&6; }
  14335. $as_echo "@%:@define HAVE_SMMINTRIN_H 1" >>confdefs.h
  14336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
  14337. $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
  14338. if ${ax_cv_check_cflags___msse4_1+:} false; then :
  14339. $as_echo_n "(cached) " >&6
  14340. else
  14341. ax_check_save_flags=$CFLAGS
  14342. CFLAGS="$CFLAGS -msse4.1"
  14343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14344. /* end confdefs.h. */
  14345. #include <time.h>
  14346. int
  14347. main ()
  14348. {
  14349. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14350. ;
  14351. return 0;
  14352. }
  14353. _ACEOF
  14354. if ac_fn_c_try_link "$LINENO"; then :
  14355. ax_cv_check_cflags___msse4_1=yes
  14356. else
  14357. ax_cv_check_cflags___msse4_1=no
  14358. fi
  14359. rm -f core conftest.err conftest.$ac_objext \
  14360. conftest$ac_exeext conftest.$ac_ext
  14361. CFLAGS=$ax_check_save_flags
  14362. fi
  14363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
  14364. $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
  14365. if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
  14366. CFLAGS_SSE41="-msse4.1"
  14367. else
  14368. :
  14369. fi
  14370. else
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14372. $as_echo "no" >&6; }
  14373. fi
  14374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14375. CFLAGS="$oldcflags"
  14376. oldcflags="$CFLAGS"
  14377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
  14378. $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
  14379. if ${ax_cv_check_cflags___mavx+:} false; then :
  14380. $as_echo_n "(cached) " >&6
  14381. else
  14382. ax_check_save_flags=$CFLAGS
  14383. CFLAGS="$CFLAGS -mavx"
  14384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14385. /* end confdefs.h. */
  14386. #include <time.h>
  14387. int
  14388. main ()
  14389. {
  14390. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14391. ;
  14392. return 0;
  14393. }
  14394. _ACEOF
  14395. if ac_fn_c_try_link "$LINENO"; then :
  14396. ax_cv_check_cflags___mavx=yes
  14397. else
  14398. ax_cv_check_cflags___mavx=no
  14399. fi
  14400. rm -f core conftest.err conftest.$ac_objext \
  14401. conftest$ac_exeext conftest.$ac_ext
  14402. CFLAGS=$ax_check_save_flags
  14403. fi
  14404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
  14405. $as_echo "$ax_cv_check_cflags___mavx" >&6; }
  14406. if test "x$ax_cv_check_cflags___mavx" = xyes; then :
  14407. CFLAGS="$CFLAGS -mavx"
  14408. else
  14409. :
  14410. fi
  14411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX instructions set" >&5
  14412. $as_echo_n "checking for AVX instructions set... " >&6; }
  14413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14414. /* end confdefs.h. */
  14415. #ifdef __native_client__
  14416. # error NativeClient detected - Avoiding AVX opcodes
  14417. #endif
  14418. #pragma GCC target("avx")
  14419. #include <immintrin.h>
  14420. int
  14421. main ()
  14422. {
  14423. _mm256_zeroall();
  14424. ;
  14425. return 0;
  14426. }
  14427. _ACEOF
  14428. if ac_fn_c_try_compile "$LINENO"; then :
  14429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14430. $as_echo "yes" >&6; }
  14431. $as_echo "@%:@define HAVE_AVXINTRIN_H 1" >>confdefs.h
  14432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
  14433. $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
  14434. if ${ax_cv_check_cflags___mavx+:} false; then :
  14435. $as_echo_n "(cached) " >&6
  14436. else
  14437. ax_check_save_flags=$CFLAGS
  14438. CFLAGS="$CFLAGS -mavx"
  14439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14440. /* end confdefs.h. */
  14441. #include <time.h>
  14442. int
  14443. main ()
  14444. {
  14445. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14446. ;
  14447. return 0;
  14448. }
  14449. _ACEOF
  14450. if ac_fn_c_try_link "$LINENO"; then :
  14451. ax_cv_check_cflags___mavx=yes
  14452. else
  14453. ax_cv_check_cflags___mavx=no
  14454. fi
  14455. rm -f core conftest.err conftest.$ac_objext \
  14456. conftest$ac_exeext conftest.$ac_ext
  14457. CFLAGS=$ax_check_save_flags
  14458. fi
  14459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
  14460. $as_echo "$ax_cv_check_cflags___mavx" >&6; }
  14461. if test "x$ax_cv_check_cflags___mavx" = xyes; then :
  14462. CFLAGS_AVX="-mavx"
  14463. else
  14464. :
  14465. fi
  14466. else
  14467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14468. $as_echo "no" >&6; }
  14469. fi
  14470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14471. CFLAGS="$oldcflags"
  14472. oldcflags="$CFLAGS"
  14473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
  14474. $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
  14475. if ${ax_cv_check_cflags___mavx2+:} false; then :
  14476. $as_echo_n "(cached) " >&6
  14477. else
  14478. ax_check_save_flags=$CFLAGS
  14479. CFLAGS="$CFLAGS -mavx2"
  14480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14481. /* end confdefs.h. */
  14482. #include <time.h>
  14483. int
  14484. main ()
  14485. {
  14486. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14487. ;
  14488. return 0;
  14489. }
  14490. _ACEOF
  14491. if ac_fn_c_try_link "$LINENO"; then :
  14492. ax_cv_check_cflags___mavx2=yes
  14493. else
  14494. ax_cv_check_cflags___mavx2=no
  14495. fi
  14496. rm -f core conftest.err conftest.$ac_objext \
  14497. conftest$ac_exeext conftest.$ac_ext
  14498. CFLAGS=$ax_check_save_flags
  14499. fi
  14500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
  14501. $as_echo "$ax_cv_check_cflags___mavx2" >&6; }
  14502. if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
  14503. CFLAGS="$CFLAGS -mavx2"
  14504. else
  14505. :
  14506. fi
  14507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX2 instructions set" >&5
  14508. $as_echo_n "checking for AVX2 instructions set... " >&6; }
  14509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14510. /* end confdefs.h. */
  14511. #ifdef __native_client__
  14512. # error NativeClient detected - Avoiding AVX2 opcodes
  14513. #endif
  14514. #pragma GCC target("avx2")
  14515. #include <immintrin.h>
  14516. int
  14517. main ()
  14518. {
  14519. __m256 x = _mm256_set1_ps(3.14);
  14520. __m256 y = _mm256_permutevar8x32_ps(x, _mm256_set1_epi32(42));
  14521. return _mm256_movemask_ps(_mm256_cmp_ps(x, y, _CMP_NEQ_OQ));
  14522. ;
  14523. return 0;
  14524. }
  14525. _ACEOF
  14526. if ac_fn_c_try_compile "$LINENO"; then :
  14527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14528. $as_echo "yes" >&6; }
  14529. $as_echo "@%:@define HAVE_AVX2INTRIN_H 1" >>confdefs.h
  14530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
  14531. $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
  14532. if ${ax_cv_check_cflags___mavx2+:} false; then :
  14533. $as_echo_n "(cached) " >&6
  14534. else
  14535. ax_check_save_flags=$CFLAGS
  14536. CFLAGS="$CFLAGS -mavx2"
  14537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14538. /* end confdefs.h. */
  14539. #include <time.h>
  14540. int
  14541. main ()
  14542. {
  14543. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14544. ;
  14545. return 0;
  14546. }
  14547. _ACEOF
  14548. if ac_fn_c_try_link "$LINENO"; then :
  14549. ax_cv_check_cflags___mavx2=yes
  14550. else
  14551. ax_cv_check_cflags___mavx2=no
  14552. fi
  14553. rm -f core conftest.err conftest.$ac_objext \
  14554. conftest$ac_exeext conftest.$ac_ext
  14555. CFLAGS=$ax_check_save_flags
  14556. fi
  14557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
  14558. $as_echo "$ax_cv_check_cflags___mavx2" >&6; }
  14559. if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
  14560. CFLAGS_AVX2="-mavx2"
  14561. else
  14562. :
  14563. fi
  14564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _mm256_broadcastsi128_si256 is correctly defined" >&5
  14565. $as_echo_n "checking if _mm256_broadcastsi128_si256 is correctly defined... " >&6; }
  14566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14567. /* end confdefs.h. */
  14568. #ifdef __native_client__
  14569. # error NativeClient detected - Avoiding AVX2 opcodes
  14570. #endif
  14571. #pragma GCC target("avx2")
  14572. #include <immintrin.h>
  14573. int
  14574. main ()
  14575. {
  14576. __m256i y = _mm256_broadcastsi128_si256(_mm_setzero_si128());
  14577. ;
  14578. return 0;
  14579. }
  14580. _ACEOF
  14581. if ac_fn_c_try_compile "$LINENO"; then :
  14582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14583. $as_echo "yes" >&6; }
  14584. else
  14585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14586. $as_echo "no" >&6; }
  14587. $as_echo "@%:@define _mm256_broadcastsi128_si256 _mm_broadcastsi128_si256" >>confdefs.h
  14588. fi
  14589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14590. else
  14591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14592. $as_echo "no" >&6; }
  14593. fi
  14594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14595. CFLAGS="$oldcflags"
  14596. oldcflags="$CFLAGS"
  14597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
  14598. $as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
  14599. if ${ax_cv_check_cflags___mavx512f+:} false; then :
  14600. $as_echo_n "(cached) " >&6
  14601. else
  14602. ax_check_save_flags=$CFLAGS
  14603. CFLAGS="$CFLAGS -mavx512f"
  14604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14605. /* end confdefs.h. */
  14606. #include <time.h>
  14607. int
  14608. main ()
  14609. {
  14610. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14611. ;
  14612. return 0;
  14613. }
  14614. _ACEOF
  14615. if ac_fn_c_try_link "$LINENO"; then :
  14616. ax_cv_check_cflags___mavx512f=yes
  14617. else
  14618. ax_cv_check_cflags___mavx512f=no
  14619. fi
  14620. rm -f core conftest.err conftest.$ac_objext \
  14621. conftest$ac_exeext conftest.$ac_ext
  14622. CFLAGS=$ax_check_save_flags
  14623. fi
  14624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx512f" >&5
  14625. $as_echo "$ax_cv_check_cflags___mavx512f" >&6; }
  14626. if test "x$ax_cv_check_cflags___mavx512f" = xyes; then :
  14627. CFLAGS="$CFLAGS -mavx512f"
  14628. else
  14629. :
  14630. fi
  14631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512F instructions set" >&5
  14632. $as_echo_n "checking for AVX512F instructions set... " >&6; }
  14633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14634. /* end confdefs.h. */
  14635. #ifdef __native_client__
  14636. # error NativeClient detected - Avoiding AVX512F opcodes
  14637. #endif
  14638. #pragma GCC target("avx512f")
  14639. #include <immintrin.h>
  14640. int
  14641. main ()
  14642. {
  14643. __m512i x = _mm512_setzero_epi32();
  14644. __m512i y = _mm512_permutexvar_epi64(_mm512_setr_epi64(0, 1, 4, 5, 2, 3, 6, 7), x);
  14645. ;
  14646. return 0;
  14647. }
  14648. _ACEOF
  14649. if ac_fn_c_try_compile "$LINENO"; then :
  14650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14651. $as_echo "yes" >&6; }
  14652. $as_echo "@%:@define HAVE_AVX512FINTRIN_H 1" >>confdefs.h
  14653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
  14654. $as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
  14655. if ${ax_cv_check_cflags___mavx512f+:} false; then :
  14656. $as_echo_n "(cached) " >&6
  14657. else
  14658. ax_check_save_flags=$CFLAGS
  14659. CFLAGS="$CFLAGS -mavx512f"
  14660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14661. /* end confdefs.h. */
  14662. #include <time.h>
  14663. int
  14664. main ()
  14665. {
  14666. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14667. ;
  14668. return 0;
  14669. }
  14670. _ACEOF
  14671. if ac_fn_c_try_link "$LINENO"; then :
  14672. ax_cv_check_cflags___mavx512f=yes
  14673. else
  14674. ax_cv_check_cflags___mavx512f=no
  14675. fi
  14676. rm -f core conftest.err conftest.$ac_objext \
  14677. conftest$ac_exeext conftest.$ac_ext
  14678. CFLAGS=$ax_check_save_flags
  14679. fi
  14680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx512f" >&5
  14681. $as_echo "$ax_cv_check_cflags___mavx512f" >&6; }
  14682. if test "x$ax_cv_check_cflags___mavx512f" = xyes; then :
  14683. CFLAGS_AVX512F="-mavx512f"
  14684. else
  14685. :
  14686. fi
  14687. else
  14688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14689. $as_echo "no" >&6; }
  14690. fi
  14691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14692. CFLAGS="$oldcflags"
  14693. oldcflags="$CFLAGS"
  14694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
  14695. $as_echo_n "checking whether C compiler accepts -maes... " >&6; }
  14696. if ${ax_cv_check_cflags___maes+:} false; then :
  14697. $as_echo_n "(cached) " >&6
  14698. else
  14699. ax_check_save_flags=$CFLAGS
  14700. CFLAGS="$CFLAGS -maes"
  14701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14702. /* end confdefs.h. */
  14703. #include <time.h>
  14704. int
  14705. main ()
  14706. {
  14707. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14708. ;
  14709. return 0;
  14710. }
  14711. _ACEOF
  14712. if ac_fn_c_try_link "$LINENO"; then :
  14713. ax_cv_check_cflags___maes=yes
  14714. else
  14715. ax_cv_check_cflags___maes=no
  14716. fi
  14717. rm -f core conftest.err conftest.$ac_objext \
  14718. conftest$ac_exeext conftest.$ac_ext
  14719. CFLAGS=$ax_check_save_flags
  14720. fi
  14721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
  14722. $as_echo "$ax_cv_check_cflags___maes" >&6; }
  14723. if test "x$ax_cv_check_cflags___maes" = xyes; then :
  14724. CFLAGS="$CFLAGS -maes"
  14725. else
  14726. :
  14727. fi
  14728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
  14729. $as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
  14730. if ${ax_cv_check_cflags___mpclmul+:} false; then :
  14731. $as_echo_n "(cached) " >&6
  14732. else
  14733. ax_check_save_flags=$CFLAGS
  14734. CFLAGS="$CFLAGS -mpclmul"
  14735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14736. /* end confdefs.h. */
  14737. #include <time.h>
  14738. int
  14739. main ()
  14740. {
  14741. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14742. ;
  14743. return 0;
  14744. }
  14745. _ACEOF
  14746. if ac_fn_c_try_link "$LINENO"; then :
  14747. ax_cv_check_cflags___mpclmul=yes
  14748. else
  14749. ax_cv_check_cflags___mpclmul=no
  14750. fi
  14751. rm -f core conftest.err conftest.$ac_objext \
  14752. conftest$ac_exeext conftest.$ac_ext
  14753. CFLAGS=$ax_check_save_flags
  14754. fi
  14755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
  14756. $as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
  14757. if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
  14758. CFLAGS="$CFLAGS -mpclmul"
  14759. else
  14760. :
  14761. fi
  14762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AESNI instructions set and PCLMULQDQ" >&5
  14763. $as_echo_n "checking for AESNI instructions set and PCLMULQDQ... " >&6; }
  14764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14765. /* end confdefs.h. */
  14766. #ifdef __native_client__
  14767. # error NativeClient detected - Avoiding AESNI opcodes
  14768. #endif
  14769. #pragma GCC target("aes")
  14770. #pragma GCC target("pclmul")
  14771. #include <wmmintrin.h>
  14772. int
  14773. main ()
  14774. {
  14775. __m128i x = _mm_aesimc_si128(_mm_setzero_si128());
  14776. __m128i y = _mm_clmulepi64_si128(_mm_setzero_si128(), _mm_setzero_si128(), 0);
  14777. ;
  14778. return 0;
  14779. }
  14780. _ACEOF
  14781. if ac_fn_c_try_compile "$LINENO"; then :
  14782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14783. $as_echo "yes" >&6; }
  14784. $as_echo "@%:@define HAVE_WMMINTRIN_H 1" >>confdefs.h
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
  14786. $as_echo_n "checking whether C compiler accepts -maes... " >&6; }
  14787. if ${ax_cv_check_cflags___maes+:} false; then :
  14788. $as_echo_n "(cached) " >&6
  14789. else
  14790. ax_check_save_flags=$CFLAGS
  14791. CFLAGS="$CFLAGS -maes"
  14792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14793. /* end confdefs.h. */
  14794. #include <time.h>
  14795. int
  14796. main ()
  14797. {
  14798. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14799. ;
  14800. return 0;
  14801. }
  14802. _ACEOF
  14803. if ac_fn_c_try_link "$LINENO"; then :
  14804. ax_cv_check_cflags___maes=yes
  14805. else
  14806. ax_cv_check_cflags___maes=no
  14807. fi
  14808. rm -f core conftest.err conftest.$ac_objext \
  14809. conftest$ac_exeext conftest.$ac_ext
  14810. CFLAGS=$ax_check_save_flags
  14811. fi
  14812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
  14813. $as_echo "$ax_cv_check_cflags___maes" >&6; }
  14814. if test "x$ax_cv_check_cflags___maes" = xyes; then :
  14815. CFLAGS_AESNI="-maes"
  14816. else
  14817. :
  14818. fi
  14819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
  14820. $as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
  14821. if ${ax_cv_check_cflags___mpclmul+:} false; then :
  14822. $as_echo_n "(cached) " >&6
  14823. else
  14824. ax_check_save_flags=$CFLAGS
  14825. CFLAGS="$CFLAGS -mpclmul"
  14826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14827. /* end confdefs.h. */
  14828. #include <time.h>
  14829. int
  14830. main ()
  14831. {
  14832. time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
  14833. ;
  14834. return 0;
  14835. }
  14836. _ACEOF
  14837. if ac_fn_c_try_link "$LINENO"; then :
  14838. ax_cv_check_cflags___mpclmul=yes
  14839. else
  14840. ax_cv_check_cflags___mpclmul=no
  14841. fi
  14842. rm -f core conftest.err conftest.$ac_objext \
  14843. conftest$ac_exeext conftest.$ac_ext
  14844. CFLAGS=$ax_check_save_flags
  14845. fi
  14846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
  14847. $as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
  14848. if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
  14849. CFLAGS_PCLMUL="-mpclmul"
  14850. else
  14851. :
  14852. fi
  14853. else
  14854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14855. $as_echo "no" >&6; }
  14856. fi
  14857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14858. CFLAGS="$oldcflags"
  14859. fi
  14860. for ac_header in sys/mman.h intrin.h
  14861. do :
  14862. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14863. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14864. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14865. cat >>confdefs.h <<_ACEOF
  14866. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14867. _ACEOF
  14868. fi
  14869. done
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _xgetbv() is available" >&5
  14871. $as_echo_n "checking if _xgetbv() is available... " >&6; }
  14872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14873. /* end confdefs.h. */
  14874. #include <intrin.h>
  14875. int
  14876. main ()
  14877. {
  14878. (void) _xgetbv(0)
  14879. ;
  14880. return 0;
  14881. }
  14882. _ACEOF
  14883. if ac_fn_c_try_link "$LINENO"; then :
  14884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14885. $as_echo "yes" >&6; }
  14886. $as_echo "@%:@define HAVE__XGETBV 1" >>confdefs.h
  14887. else
  14888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14889. $as_echo "no" >&6; }
  14890. fi
  14891. rm -f core conftest.err conftest.$ac_objext \
  14892. conftest$ac_exeext conftest.$ac_ext
  14893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14894. $as_echo_n "checking for inline... " >&6; }
  14895. if ${ac_cv_c_inline+:} false; then :
  14896. $as_echo_n "(cached) " >&6
  14897. else
  14898. ac_cv_c_inline=no
  14899. for ac_kw in inline __inline__ __inline; do
  14900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14901. /* end confdefs.h. */
  14902. #ifndef __cplusplus
  14903. typedef int foo_t;
  14904. static $ac_kw foo_t static_foo () {return 0; }
  14905. $ac_kw foo_t foo () {return 0; }
  14906. #endif
  14907. _ACEOF
  14908. if ac_fn_c_try_compile "$LINENO"; then :
  14909. ac_cv_c_inline=$ac_kw
  14910. fi
  14911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14912. test "$ac_cv_c_inline" != no && break
  14913. done
  14914. fi
  14915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14916. $as_echo "$ac_cv_c_inline" >&6; }
  14917. case $ac_cv_c_inline in
  14918. inline | yes) ;;
  14919. *)
  14920. case $ac_cv_c_inline in
  14921. no) ac_val=;;
  14922. *) ac_val=$ac_cv_c_inline;;
  14923. esac
  14924. cat >>confdefs.h <<_ACEOF
  14925. #ifndef __cplusplus
  14926. #define inline $ac_val
  14927. #endif
  14928. _ACEOF
  14929. ;;
  14930. esac
  14931. case $host_cpu in @%:@(
  14932. i?86|amd64|x86_64) :
  14933. ac_cv_c_bigendian=no
  14934. ;; @%:@(
  14935. *) :
  14936. ;;
  14937. esac
  14938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  14939. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  14940. if ${ac_cv_c_bigendian+:} false; then :
  14941. $as_echo_n "(cached) " >&6
  14942. else
  14943. ac_cv_c_bigendian=unknown
  14944. # See if we're dealing with a universal compiler.
  14945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14946. /* end confdefs.h. */
  14947. #ifndef __APPLE_CC__
  14948. not a universal capable compiler
  14949. #endif
  14950. typedef int dummy;
  14951. _ACEOF
  14952. if ac_fn_c_try_compile "$LINENO"; then :
  14953. # Check for potential -arch flags. It is not universal unless
  14954. # there are at least two -arch flags with different values.
  14955. ac_arch=
  14956. ac_prev=
  14957. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  14958. if test -n "$ac_prev"; then
  14959. case $ac_word in
  14960. i?86 | x86_64 | ppc | ppc64)
  14961. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  14962. ac_arch=$ac_word
  14963. else
  14964. ac_cv_c_bigendian=universal
  14965. break
  14966. fi
  14967. ;;
  14968. esac
  14969. ac_prev=
  14970. elif test "x$ac_word" = "x-arch"; then
  14971. ac_prev=arch
  14972. fi
  14973. done
  14974. fi
  14975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14976. if test $ac_cv_c_bigendian = unknown; then
  14977. # See if sys/param.h defines the BYTE_ORDER macro.
  14978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14979. /* end confdefs.h. */
  14980. #include <sys/types.h>
  14981. #include <sys/param.h>
  14982. int
  14983. main ()
  14984. {
  14985. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  14986. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  14987. && LITTLE_ENDIAN)
  14988. bogus endian macros
  14989. #endif
  14990. ;
  14991. return 0;
  14992. }
  14993. _ACEOF
  14994. if ac_fn_c_try_compile "$LINENO"; then :
  14995. # It does; now see whether it defined to BIG_ENDIAN or not.
  14996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14997. /* end confdefs.h. */
  14998. #include <sys/types.h>
  14999. #include <sys/param.h>
  15000. int
  15001. main ()
  15002. {
  15003. #if BYTE_ORDER != BIG_ENDIAN
  15004. not big endian
  15005. #endif
  15006. ;
  15007. return 0;
  15008. }
  15009. _ACEOF
  15010. if ac_fn_c_try_compile "$LINENO"; then :
  15011. ac_cv_c_bigendian=yes
  15012. else
  15013. ac_cv_c_bigendian=no
  15014. fi
  15015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15016. fi
  15017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15018. fi
  15019. if test $ac_cv_c_bigendian = unknown; then
  15020. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  15021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15022. /* end confdefs.h. */
  15023. #include <limits.h>
  15024. int
  15025. main ()
  15026. {
  15027. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  15028. bogus endian macros
  15029. #endif
  15030. ;
  15031. return 0;
  15032. }
  15033. _ACEOF
  15034. if ac_fn_c_try_compile "$LINENO"; then :
  15035. # It does; now see whether it defined to _BIG_ENDIAN or not.
  15036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15037. /* end confdefs.h. */
  15038. #include <limits.h>
  15039. int
  15040. main ()
  15041. {
  15042. #ifndef _BIG_ENDIAN
  15043. not big endian
  15044. #endif
  15045. ;
  15046. return 0;
  15047. }
  15048. _ACEOF
  15049. if ac_fn_c_try_compile "$LINENO"; then :
  15050. ac_cv_c_bigendian=yes
  15051. else
  15052. ac_cv_c_bigendian=no
  15053. fi
  15054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15055. fi
  15056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15057. fi
  15058. if test $ac_cv_c_bigendian = unknown; then
  15059. # Compile a test program.
  15060. if test "$cross_compiling" = yes; then :
  15061. # Try to guess by grepping values from an object file.
  15062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15063. /* end confdefs.h. */
  15064. short int ascii_mm[] =
  15065. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  15066. short int ascii_ii[] =
  15067. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  15068. int use_ascii (int i) {
  15069. return ascii_mm[i] + ascii_ii[i];
  15070. }
  15071. short int ebcdic_ii[] =
  15072. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  15073. short int ebcdic_mm[] =
  15074. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  15075. int use_ebcdic (int i) {
  15076. return ebcdic_mm[i] + ebcdic_ii[i];
  15077. }
  15078. extern int foo;
  15079. int
  15080. main ()
  15081. {
  15082. return use_ascii (foo) == use_ebcdic (foo);
  15083. ;
  15084. return 0;
  15085. }
  15086. _ACEOF
  15087. if ac_fn_c_try_compile "$LINENO"; then :
  15088. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  15089. ac_cv_c_bigendian=yes
  15090. fi
  15091. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  15092. if test "$ac_cv_c_bigendian" = unknown; then
  15093. ac_cv_c_bigendian=no
  15094. else
  15095. # finding both strings is unlikely to happen, but who knows?
  15096. ac_cv_c_bigendian=unknown
  15097. fi
  15098. fi
  15099. fi
  15100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15101. else
  15102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15103. /* end confdefs.h. */
  15104. $ac_includes_default
  15105. int
  15106. main ()
  15107. {
  15108. /* Are we little or big endian? From Harbison&Steele. */
  15109. union
  15110. {
  15111. long int l;
  15112. char c[sizeof (long int)];
  15113. } u;
  15114. u.l = 1;
  15115. return u.c[sizeof (long int) - 1] == 1;
  15116. ;
  15117. return 0;
  15118. }
  15119. _ACEOF
  15120. if ac_fn_c_try_run "$LINENO"; then :
  15121. ac_cv_c_bigendian=no
  15122. else
  15123. ac_cv_c_bigendian=yes
  15124. fi
  15125. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15126. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15127. fi
  15128. fi
  15129. fi
  15130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  15131. $as_echo "$ac_cv_c_bigendian" >&6; }
  15132. case $ac_cv_c_bigendian in #(
  15133. yes)
  15134. $as_echo "@%:@define NATIVE_BIG_ENDIAN 1" >>confdefs.h
  15135. ;; #(
  15136. no)
  15137. $as_echo "@%:@define NATIVE_LITTLE_ENDIAN 1" >>confdefs.h
  15138. ;; #(
  15139. universal)
  15140. as_fn_error $? "universal endianness is not supported - compile separately and use lipo(1)" "$LINENO" 5
  15141. ;; #(
  15142. *)
  15143. as_fn_error $? "unknown endianness" "$LINENO" 5 ;;
  15144. esac
  15145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __STDC_LIMIT_MACROS is required" >&5
  15146. $as_echo_n "checking whether __STDC_LIMIT_MACROS is required... " >&6; }
  15147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15148. /* end confdefs.h. */
  15149. #include <limits.h>
  15150. #include <stdint.h>
  15151. int
  15152. main ()
  15153. {
  15154. (void) SIZE_MAX;
  15155. (void) UINT64_MAX;
  15156. ;
  15157. return 0;
  15158. }
  15159. _ACEOF
  15160. if ac_fn_c_try_compile "$LINENO"; then :
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15162. $as_echo "no" >&6; }
  15163. else
  15164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15165. $as_echo "yes" >&6; }
  15166. CPPFLAGS="$CPPFLAGS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
  15167. fi
  15168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15169. HAVE_AMD64_ASM_V=0
  15170. if test "$enable_asm" != "no"; then :
  15171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use x86_64 asm code" >&5
  15172. $as_echo_n "checking whether we can use x86_64 asm code... " >&6; }
  15173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15174. /* end confdefs.h. */
  15175. int
  15176. main ()
  15177. {
  15178. #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
  15179. # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
  15180. # error Windows x86_64 calling conventions are not supported yet
  15181. # endif
  15182. /* neat */
  15183. #else
  15184. # error !x86_64
  15185. #endif
  15186. unsigned char i = 0, o = 0, t;
  15187. __asm__ __volatile__ ("pxor %%xmm12, %%xmm6 \n"
  15188. "movb (%[i]), %[t] \n"
  15189. "addb %[t], (%[o]) \n"
  15190. : [t] "=&r"(t)
  15191. : [o] "D"(&o), [i] "S"(&i)
  15192. : "memory", "flags", "cc");
  15193. ;
  15194. return 0;
  15195. }
  15196. _ACEOF
  15197. if ac_fn_c_try_compile "$LINENO"; then :
  15198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15199. $as_echo "yes" >&6; }
  15200. $as_echo "@%:@define HAVE_AMD64_ASM 1" >>confdefs.h
  15201. HAVE_AMD64_ASM_V=1
  15202. else
  15203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15204. $as_echo "no" >&6; }
  15205. fi
  15206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15207. fi
  15208. if test $HAVE_AMD64_ASM_V = 1; then
  15209. HAVE_AMD64_ASM_TRUE=
  15210. HAVE_AMD64_ASM_FALSE='#'
  15211. else
  15212. HAVE_AMD64_ASM_TRUE='#'
  15213. HAVE_AMD64_ASM_FALSE=
  15214. fi
  15215. HAVE_AVX_ASM_V=0
  15216. if test "$enable_asm" != "no"; then :
  15217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can assemble AVX opcodes" >&5
  15218. $as_echo_n "checking whether we can assemble AVX opcodes... " >&6; }
  15219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15220. /* end confdefs.h. */
  15221. int
  15222. main ()
  15223. {
  15224. #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
  15225. # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
  15226. # error Windows x86_64 calling conventions are not supported yet
  15227. # endif
  15228. /* neat */
  15229. #else
  15230. # error !x86_64
  15231. #endif
  15232. __asm__ __volatile__ ("vpunpcklqdq %xmm0,%xmm13,%xmm0");
  15233. ;
  15234. return 0;
  15235. }
  15236. _ACEOF
  15237. if ac_fn_c_try_compile "$LINENO"; then :
  15238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15239. $as_echo "yes" >&6; }
  15240. $as_echo "@%:@define HAVE_AVX_ASM 1" >>confdefs.h
  15241. HAVE_AVX_ASM_V=1
  15242. else
  15243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15244. $as_echo "no" >&6; }
  15245. fi
  15246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15247. fi
  15248. if test $HAVE_AVX_ASM_V = 1; then
  15249. HAVE_AVX_ASM_TRUE=
  15250. HAVE_AVX_ASM_FALSE='#'
  15251. else
  15252. HAVE_AVX_ASM_TRUE='#'
  15253. HAVE_AVX_ASM_FALSE=
  15254. fi
  15255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit arithmetic" >&5
  15256. $as_echo_n "checking for 128-bit arithmetic... " >&6; }
  15257. HAVE_TI_MODE_V=0
  15258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15259. /* end confdefs.h. */
  15260. #if !defined(__GNUC__) && !defined(__SIZEOF_INT128__)
  15261. # error mode(TI) is a gcc extension, and __int128 is not available
  15262. #endif
  15263. #if defined(__clang__) && !defined(__x86_64__)
  15264. # error clang does not properly handle the 128-bit type on 32-bit systems
  15265. #endif
  15266. #ifndef NATIVE_LITTLE_ENDIAN
  15267. # error libsodium currently expects a little endian CPU for the 128-bit type
  15268. #endif
  15269. #ifdef __EMSCRIPTEN__
  15270. # error emscripten currently supports only shift operations on integers \
  15271. # larger than 64 bits
  15272. #endif
  15273. #include <stddef.h>
  15274. #include <stdint.h>
  15275. #if defined(__SIZEOF_INT128__)
  15276. typedef unsigned __int128 uint128_t;
  15277. #else
  15278. typedef unsigned uint128_t __attribute__((mode(TI)));
  15279. #endif
  15280. void fcontract(uint128_t *t) {
  15281. *t += 0x8000000000000 - 1;
  15282. }
  15283. int
  15284. main ()
  15285. {
  15286. (void) fcontract;
  15287. ;
  15288. return 0;
  15289. }
  15290. _ACEOF
  15291. if ac_fn_c_try_compile "$LINENO"; then :
  15292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15293. $as_echo "yes" >&6; }
  15294. $as_echo "@%:@define HAVE_TI_MODE 1" >>confdefs.h
  15295. HAVE_TI_MODE_V=1
  15296. else
  15297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15298. $as_echo "no" >&6; }
  15299. fi
  15300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15301. if test $HAVE_TI_MODE_V = 1; then
  15302. HAVE_TI_MODE_TRUE=
  15303. HAVE_TI_MODE_FALSE='#'
  15304. else
  15305. HAVE_TI_MODE_TRUE='#'
  15306. HAVE_TI_MODE_FALSE=
  15307. fi
  15308. HAVE_CPUID_V=0
  15309. if test "$enable_asm" != "no" -o "$host_alias" = "x86_64-nacl"; then :
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpuid instruction" >&5
  15311. $as_echo_n "checking for cpuid instruction... " >&6; }
  15312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15313. /* end confdefs.h. */
  15314. int
  15315. main ()
  15316. {
  15317. unsigned int cpu_info[4];
  15318. __asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" :
  15319. "=a" (cpu_info[0]), "=&r" (cpu_info[1]),
  15320. "=c" (cpu_info[2]), "=d" (cpu_info[3]) :
  15321. "0" (0U), "2" (0U));
  15322. ;
  15323. return 0;
  15324. }
  15325. _ACEOF
  15326. if ac_fn_c_try_compile "$LINENO"; then :
  15327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15328. $as_echo "yes" >&6; }
  15329. $as_echo "@%:@define HAVE_CPUID 1" >>confdefs.h
  15330. HAVE_CPUID_V=1
  15331. else
  15332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15333. $as_echo "no" >&6; }
  15334. fi
  15335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15336. fi
  15337. asm_hide_symbol="unsupported"
  15338. if test "$enable_asm" != "no" -o "$host_os" = "nacl"; then :
  15339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .private_extern asm directive is supported" >&5
  15340. $as_echo_n "checking if the .private_extern asm directive is supported... " >&6; }
  15341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15342. /* end confdefs.h. */
  15343. int
  15344. main ()
  15345. {
  15346. __asm__ __volatile__ (".private_extern dummy_symbol \n"
  15347. ".private_extern _dummy_symbol \n"
  15348. ".globl dummy_symbol \n"
  15349. ".globl _dummy_symbol \n"
  15350. "dummy_symbol: \n"
  15351. "_dummy_symbol: \n"
  15352. " nop \n"
  15353. );
  15354. ;
  15355. return 0;
  15356. }
  15357. _ACEOF
  15358. if ac_fn_c_try_link "$LINENO"; then :
  15359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15360. $as_echo "yes" >&6; }
  15361. asm_hide_symbol=".private_extern"
  15362. else
  15363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15364. $as_echo "no" >&6; }
  15365. fi
  15366. rm -f core conftest.err conftest.$ac_objext \
  15367. conftest$ac_exeext conftest.$ac_ext
  15368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .hidden asm directive is supported" >&5
  15369. $as_echo_n "checking if the .hidden asm directive is supported... " >&6; }
  15370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15371. /* end confdefs.h. */
  15372. int
  15373. main ()
  15374. {
  15375. __asm__ __volatile__ (".hidden dummy_symbol \n"
  15376. ".hidden _dummy_symbol \n"
  15377. ".globl dummy_symbol \n"
  15378. ".globl _dummy_symbol \n"
  15379. "dummy_symbol: \n"
  15380. "_dummy_symbol: \n"
  15381. " nop \n"
  15382. );
  15383. ;
  15384. return 0;
  15385. }
  15386. _ACEOF
  15387. if ac_fn_c_try_link "$LINENO"; then :
  15388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15389. $as_echo "yes" >&6; }
  15390. if test "$asm_hide_symbol" = "unsupported"; then :
  15391. asm_hide_symbol=".hidden"
  15392. else
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: unable to reliably tag symbols as private" >&5
  15394. $as_echo "$as_me: unable to reliably tag symbols as private" >&6;}
  15395. asm_hide_symbol="unsupported"
  15396. fi
  15397. else
  15398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15399. $as_echo "no" >&6; }
  15400. fi
  15401. rm -f core conftest.err conftest.$ac_objext \
  15402. conftest$ac_exeext conftest.$ac_ext
  15403. if test "$asm_hide_symbol" != "unsupported"; then :
  15404. cat >>confdefs.h <<_ACEOF
  15405. @%:@define ASM_HIDE_SYMBOL $asm_hide_symbol
  15406. _ACEOF
  15407. fi
  15408. fi
  15409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if weak symbols are supported" >&5
  15410. $as_echo_n "checking if weak symbols are supported... " >&6; }
  15411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15412. /* end confdefs.h. */
  15413. #if !defined(__ELF__) && !defined(__APPLE_CC__)
  15414. # error Support for weak symbols may not be available
  15415. #endif
  15416. __attribute__((weak)) void __dummy(void *x) { }
  15417. void f(void *x) { __dummy(x); }
  15418. int
  15419. main ()
  15420. {
  15421. ;
  15422. return 0;
  15423. }
  15424. _ACEOF
  15425. if ac_fn_c_try_link "$LINENO"; then :
  15426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15427. $as_echo "yes" >&6; }
  15428. $as_echo "@%:@define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
  15429. else
  15430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15431. $as_echo "no" >&6; }
  15432. fi
  15433. rm -f core conftest.err conftest.$ac_objext \
  15434. conftest$ac_exeext conftest.$ac_ext
  15435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if data alignment is required" >&5
  15436. $as_echo_n "checking if data alignment is required... " >&6; }
  15437. aligned_access_required=yes
  15438. case $host_cpu in @%:@(
  15439. i?86|amd64|x86_64|powerpc*|s390*) :
  15440. aligned_access_required=no ;; @%:@(
  15441. arm*) :
  15442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15443. /* end confdefs.h. */
  15444. #ifndef __ARM_FEATURE_UNALIGNED
  15445. # error data alignment is required
  15446. #endif
  15447. int
  15448. main ()
  15449. {
  15450. ;
  15451. return 0;
  15452. }
  15453. _ACEOF
  15454. if ac_fn_c_try_compile "$LINENO"; then :
  15455. aligned_access_required=no
  15456. fi
  15457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15458. ;; @%:@(
  15459. *) :
  15460. ;;
  15461. esac
  15462. if test "x$aligned_access_required" = "xyes"; then :
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15464. $as_echo "yes" >&6; }
  15465. else
  15466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15467. $as_echo "no" >&6; }
  15468. $as_echo "@%:@define CPU_UNALIGNED_ACCESS 1" >>confdefs.h
  15469. fi
  15470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if atomic operations are supported" >&5
  15471. $as_echo_n "checking if atomic operations are supported... " >&6; }
  15472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15473. /* end confdefs.h. */
  15474. int
  15475. main ()
  15476. {
  15477. static volatile int _sodium_lock;
  15478. __sync_lock_test_and_set(&_sodium_lock, 1);
  15479. __sync_lock_release(&_sodium_lock);
  15480. ;
  15481. return 0;
  15482. }
  15483. _ACEOF
  15484. if ac_fn_c_try_link "$LINENO"; then :
  15485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15486. $as_echo "yes" >&6; }
  15487. $as_echo "@%:@define HAVE_ATOMIC_OPS 1" >>confdefs.h
  15488. else
  15489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15490. $as_echo "no" >&6; }
  15491. fi
  15492. rm -f core conftest.err conftest.$ac_objext \
  15493. conftest$ac_exeext conftest.$ac_ext
  15494. if test "x$EMSCRIPTEN" = "x"; then :
  15495. for ac_func in arc4random arc4random_buf
  15496. do :
  15497. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15498. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15499. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15500. cat >>confdefs.h <<_ACEOF
  15501. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15502. _ACEOF
  15503. fi
  15504. done
  15505. for ac_func in mmap mlock madvise mprotect memset_s explicit_bzero nanosleep
  15506. do :
  15507. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15508. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15509. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15510. cat >>confdefs.h <<_ACEOF
  15511. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15512. _ACEOF
  15513. fi
  15514. done
  15515. fi
  15516. for ac_func in posix_memalign getpid
  15517. do :
  15518. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15519. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15520. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15521. cat >>confdefs.h <<_ACEOF
  15522. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15523. _ACEOF
  15524. fi
  15525. done
  15526. TEST_LDFLAGS=''
  15527. if test "x$EMSCRIPTEN" != "x"; then :
  15528. EXEEXT=.js
  15529. TEST_LDFLAGS='--memory-init-file 0 --pre-js pre.js.inc -s RESERVED_FUNCTION_POINTERS=8'
  15530. fi
  15531. if test "x$EMSCRIPTEN" != "x"; then
  15532. EMSCRIPTEN_TRUE=
  15533. EMSCRIPTEN_FALSE='#'
  15534. else
  15535. EMSCRIPTEN_TRUE='#'
  15536. EMSCRIPTEN_FALSE=
  15537. fi
  15538. if test "x$NATIVECLIENT" != "x"; then
  15539. NATIVECLIENT_TRUE=
  15540. NATIVECLIENT_FALSE='#'
  15541. else
  15542. NATIVECLIENT_TRUE='#'
  15543. NATIVECLIENT_FALSE=
  15544. fi
  15545. $as_echo "@%:@define CONFIGURED 1" >>confdefs.h
  15546. enable_win32_dll=yes
  15547. case $host in
  15548. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  15549. if test -n "$ac_tool_prefix"; then
  15550. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  15551. set dummy ${ac_tool_prefix}as; ac_word=$2
  15552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15553. $as_echo_n "checking for $ac_word... " >&6; }
  15554. if ${ac_cv_prog_AS+:} false; then :
  15555. $as_echo_n "(cached) " >&6
  15556. else
  15557. if test -n "$AS"; then
  15558. ac_cv_prog_AS="$AS" # Let the user override the test.
  15559. else
  15560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15561. for as_dir in $PATH
  15562. do
  15563. IFS=$as_save_IFS
  15564. test -z "$as_dir" && as_dir=.
  15565. for ac_exec_ext in '' $ac_executable_extensions; do
  15566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15567. ac_cv_prog_AS="${ac_tool_prefix}as"
  15568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15569. break 2
  15570. fi
  15571. done
  15572. done
  15573. IFS=$as_save_IFS
  15574. fi
  15575. fi
  15576. AS=$ac_cv_prog_AS
  15577. if test -n "$AS"; then
  15578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  15579. $as_echo "$AS" >&6; }
  15580. else
  15581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15582. $as_echo "no" >&6; }
  15583. fi
  15584. fi
  15585. if test -z "$ac_cv_prog_AS"; then
  15586. ac_ct_AS=$AS
  15587. # Extract the first word of "as", so it can be a program name with args.
  15588. set dummy as; ac_word=$2
  15589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15590. $as_echo_n "checking for $ac_word... " >&6; }
  15591. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  15592. $as_echo_n "(cached) " >&6
  15593. else
  15594. if test -n "$ac_ct_AS"; then
  15595. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  15596. else
  15597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15598. for as_dir in $PATH
  15599. do
  15600. IFS=$as_save_IFS
  15601. test -z "$as_dir" && as_dir=.
  15602. for ac_exec_ext in '' $ac_executable_extensions; do
  15603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15604. ac_cv_prog_ac_ct_AS="as"
  15605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15606. break 2
  15607. fi
  15608. done
  15609. done
  15610. IFS=$as_save_IFS
  15611. fi
  15612. fi
  15613. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  15614. if test -n "$ac_ct_AS"; then
  15615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  15616. $as_echo "$ac_ct_AS" >&6; }
  15617. else
  15618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15619. $as_echo "no" >&6; }
  15620. fi
  15621. if test "x$ac_ct_AS" = x; then
  15622. AS="false"
  15623. else
  15624. case $cross_compiling:$ac_tool_warned in
  15625. yes:)
  15626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15628. ac_tool_warned=yes ;;
  15629. esac
  15630. AS=$ac_ct_AS
  15631. fi
  15632. else
  15633. AS="$ac_cv_prog_AS"
  15634. fi
  15635. if test -n "$ac_tool_prefix"; then
  15636. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  15637. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  15638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15639. $as_echo_n "checking for $ac_word... " >&6; }
  15640. if ${ac_cv_prog_DLLTOOL+:} false; then :
  15641. $as_echo_n "(cached) " >&6
  15642. else
  15643. if test -n "$DLLTOOL"; then
  15644. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  15645. else
  15646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15647. for as_dir in $PATH
  15648. do
  15649. IFS=$as_save_IFS
  15650. test -z "$as_dir" && as_dir=.
  15651. for ac_exec_ext in '' $ac_executable_extensions; do
  15652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15653. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  15654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15655. break 2
  15656. fi
  15657. done
  15658. done
  15659. IFS=$as_save_IFS
  15660. fi
  15661. fi
  15662. DLLTOOL=$ac_cv_prog_DLLTOOL
  15663. if test -n "$DLLTOOL"; then
  15664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  15665. $as_echo "$DLLTOOL" >&6; }
  15666. else
  15667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15668. $as_echo "no" >&6; }
  15669. fi
  15670. fi
  15671. if test -z "$ac_cv_prog_DLLTOOL"; then
  15672. ac_ct_DLLTOOL=$DLLTOOL
  15673. # Extract the first word of "dlltool", so it can be a program name with args.
  15674. set dummy dlltool; ac_word=$2
  15675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15676. $as_echo_n "checking for $ac_word... " >&6; }
  15677. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  15678. $as_echo_n "(cached) " >&6
  15679. else
  15680. if test -n "$ac_ct_DLLTOOL"; then
  15681. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  15682. else
  15683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15684. for as_dir in $PATH
  15685. do
  15686. IFS=$as_save_IFS
  15687. test -z "$as_dir" && as_dir=.
  15688. for ac_exec_ext in '' $ac_executable_extensions; do
  15689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15690. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  15691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15692. break 2
  15693. fi
  15694. done
  15695. done
  15696. IFS=$as_save_IFS
  15697. fi
  15698. fi
  15699. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  15700. if test -n "$ac_ct_DLLTOOL"; then
  15701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  15702. $as_echo "$ac_ct_DLLTOOL" >&6; }
  15703. else
  15704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15705. $as_echo "no" >&6; }
  15706. fi
  15707. if test "x$ac_ct_DLLTOOL" = x; then
  15708. DLLTOOL="false"
  15709. else
  15710. case $cross_compiling:$ac_tool_warned in
  15711. yes:)
  15712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15714. ac_tool_warned=yes ;;
  15715. esac
  15716. DLLTOOL=$ac_ct_DLLTOOL
  15717. fi
  15718. else
  15719. DLLTOOL="$ac_cv_prog_DLLTOOL"
  15720. fi
  15721. if test -n "$ac_tool_prefix"; then
  15722. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  15723. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  15724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15725. $as_echo_n "checking for $ac_word... " >&6; }
  15726. if ${ac_cv_prog_OBJDUMP+:} false; then :
  15727. $as_echo_n "(cached) " >&6
  15728. else
  15729. if test -n "$OBJDUMP"; then
  15730. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  15731. else
  15732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15733. for as_dir in $PATH
  15734. do
  15735. IFS=$as_save_IFS
  15736. test -z "$as_dir" && as_dir=.
  15737. for ac_exec_ext in '' $ac_executable_extensions; do
  15738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15739. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  15740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15741. break 2
  15742. fi
  15743. done
  15744. done
  15745. IFS=$as_save_IFS
  15746. fi
  15747. fi
  15748. OBJDUMP=$ac_cv_prog_OBJDUMP
  15749. if test -n "$OBJDUMP"; then
  15750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  15751. $as_echo "$OBJDUMP" >&6; }
  15752. else
  15753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15754. $as_echo "no" >&6; }
  15755. fi
  15756. fi
  15757. if test -z "$ac_cv_prog_OBJDUMP"; then
  15758. ac_ct_OBJDUMP=$OBJDUMP
  15759. # Extract the first word of "objdump", so it can be a program name with args.
  15760. set dummy objdump; ac_word=$2
  15761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15762. $as_echo_n "checking for $ac_word... " >&6; }
  15763. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  15764. $as_echo_n "(cached) " >&6
  15765. else
  15766. if test -n "$ac_ct_OBJDUMP"; then
  15767. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  15768. else
  15769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15770. for as_dir in $PATH
  15771. do
  15772. IFS=$as_save_IFS
  15773. test -z "$as_dir" && as_dir=.
  15774. for ac_exec_ext in '' $ac_executable_extensions; do
  15775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15776. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  15777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15778. break 2
  15779. fi
  15780. done
  15781. done
  15782. IFS=$as_save_IFS
  15783. fi
  15784. fi
  15785. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  15786. if test -n "$ac_ct_OBJDUMP"; then
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  15788. $as_echo "$ac_ct_OBJDUMP" >&6; }
  15789. else
  15790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15791. $as_echo "no" >&6; }
  15792. fi
  15793. if test "x$ac_ct_OBJDUMP" = x; then
  15794. OBJDUMP="false"
  15795. else
  15796. case $cross_compiling:$ac_tool_warned in
  15797. yes:)
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15799. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15800. ac_tool_warned=yes ;;
  15801. esac
  15802. OBJDUMP=$ac_ct_OBJDUMP
  15803. fi
  15804. else
  15805. OBJDUMP="$ac_cv_prog_OBJDUMP"
  15806. fi
  15807. ;;
  15808. esac
  15809. test -z "$AS" && AS=as
  15810. test -z "$DLLTOOL" && DLLTOOL=dlltool
  15811. test -z "$OBJDUMP" && OBJDUMP=objdump
  15812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
  15813. $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
  15814. if ${gl_cv_ld_output_def+:} false; then :
  15815. $as_echo_n "(cached) " >&6
  15816. else
  15817. if test "$enable_shared" = no; then
  15818. gl_cv_ld_output_def="not needed, shared libraries are disabled"
  15819. else
  15820. gl_ldflags_save=$LDFLAGS
  15821. LDFLAGS="-Wl,--output-def,conftest.def"
  15822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15823. /* end confdefs.h. */
  15824. int
  15825. main ()
  15826. {
  15827. ;
  15828. return 0;
  15829. }
  15830. _ACEOF
  15831. if ac_fn_c_try_link "$LINENO"; then :
  15832. gl_cv_ld_output_def=yes
  15833. else
  15834. gl_cv_ld_output_def=no
  15835. fi
  15836. rm -f core conftest.err conftest.$ac_objext \
  15837. conftest$ac_exeext conftest.$ac_ext
  15838. rm -f conftest.def
  15839. LDFLAGS="$gl_ldflags_save"
  15840. fi
  15841. fi
  15842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
  15843. $as_echo "$gl_cv_ld_output_def" >&6; }
  15844. if test "x$gl_cv_ld_output_def" = "xyes"; then
  15845. HAVE_LD_OUTPUT_DEF_TRUE=
  15846. HAVE_LD_OUTPUT_DEF_FALSE='#'
  15847. else
  15848. HAVE_LD_OUTPUT_DEF_TRUE='#'
  15849. HAVE_LD_OUTPUT_DEF_FALSE=
  15850. fi
  15851. ac_config_files="$ac_config_files Makefile builds/Makefile contrib/Makefile dist-build/Makefile libsodium.pc libsodium-uninstalled.pc msvc-scripts/Makefile src/Makefile src/libsodium/Makefile src/libsodium/include/Makefile src/libsodium/include/sodium/version.h test/default/Makefile test/Makefile"
  15852. cat >confcache <<\_ACEOF
  15853. # This file is a shell script that caches the results of configure
  15854. # tests run on this system so they can be shared between configure
  15855. # scripts and configure runs, see configure's option --config-cache.
  15856. # It is not useful on other systems. If it contains results you don't
  15857. # want to keep, you may remove or edit it.
  15858. #
  15859. # config.status only pays attention to the cache file if you give it
  15860. # the --recheck option to rerun configure.
  15861. #
  15862. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15863. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15864. # following values.
  15865. _ACEOF
  15866. # The following way of writing the cache mishandles newlines in values,
  15867. # but we know of no workaround that is simple, portable, and efficient.
  15868. # So, we kill variables containing newlines.
  15869. # Ultrix sh set writes to stderr and can't be redirected directly,
  15870. # and sets the high bit in the cache file unless we assign to the vars.
  15871. (
  15872. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15873. eval ac_val=\$$ac_var
  15874. case $ac_val in #(
  15875. *${as_nl}*)
  15876. case $ac_var in #(
  15877. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15878. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15879. esac
  15880. case $ac_var in #(
  15881. _ | IFS | as_nl) ;; #(
  15882. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15883. *) { eval $ac_var=; unset $ac_var;} ;;
  15884. esac ;;
  15885. esac
  15886. done
  15887. (set) 2>&1 |
  15888. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15889. *${as_nl}ac_space=\ *)
  15890. # `set' does not quote correctly, so add quotes: double-quote
  15891. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15892. sed -n \
  15893. "s/'/'\\\\''/g;
  15894. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15895. ;; #(
  15896. *)
  15897. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15898. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15899. ;;
  15900. esac |
  15901. sort
  15902. ) |
  15903. sed '
  15904. /^ac_cv_env_/b end
  15905. t clear
  15906. :clear
  15907. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15908. t end
  15909. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15910. :end' >>confcache
  15911. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15912. if test -w "$cache_file"; then
  15913. if test "x$cache_file" != "x/dev/null"; then
  15914. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15915. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15916. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15917. cat confcache >"$cache_file"
  15918. else
  15919. case $cache_file in #(
  15920. */* | ?:*)
  15921. mv -f confcache "$cache_file"$$ &&
  15922. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15923. *)
  15924. mv -f confcache "$cache_file" ;;
  15925. esac
  15926. fi
  15927. fi
  15928. else
  15929. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15930. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15931. fi
  15932. fi
  15933. rm -f confcache
  15934. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15935. # Let make expand exec_prefix.
  15936. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15937. # Transform confdefs.h into DEFS.
  15938. # Protect against shell expansion while executing Makefile rules.
  15939. # Protect against Makefile macro expansion.
  15940. #
  15941. # If the first sed substitution is executed (which looks for macros that
  15942. # take arguments), then branch to the quote section. Otherwise,
  15943. # look for a macro that doesn't take arguments.
  15944. ac_script='
  15945. :mline
  15946. /\\$/{
  15947. N
  15948. s,\\\n,,
  15949. b mline
  15950. }
  15951. t clear
  15952. :clear
  15953. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  15954. t quote
  15955. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  15956. t quote
  15957. b any
  15958. :quote
  15959. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  15960. s/\[/\\&/g
  15961. s/\]/\\&/g
  15962. s/\$/$$/g
  15963. H
  15964. :any
  15965. ${
  15966. g
  15967. s/^\n//
  15968. s/\n/ /g
  15969. p
  15970. }
  15971. '
  15972. DEFS=`sed -n "$ac_script" confdefs.h`
  15973. ac_libobjs=
  15974. ac_ltlibobjs=
  15975. U=
  15976. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  15977. # 1. Remove the extension, and $U if already installed.
  15978. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15979. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15980. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15981. # will be set to the directory where LIBOBJS objects are built.
  15982. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15983. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15984. done
  15985. LIB@&t@OBJS=$ac_libobjs
  15986. LTLIBOBJS=$ac_ltlibobjs
  15987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15988. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15989. if test -n "$am_sleep_pid"; then
  15990. # Hide warnings about reused PIDs.
  15991. wait $am_sleep_pid 2>/dev/null
  15992. fi
  15993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15994. $as_echo "done" >&6; }
  15995. if test -n "$EXEEXT"; then
  15996. am__EXEEXT_TRUE=
  15997. am__EXEEXT_FALSE='#'
  15998. else
  15999. am__EXEEXT_TRUE='#'
  16000. am__EXEEXT_FALSE=
  16001. fi
  16002. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  16003. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  16004. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16005. fi
  16006. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  16007. as_fn_error $? "conditional \"AMDEP\" was never defined.
  16008. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16009. fi
  16010. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  16011. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  16012. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16013. fi
  16014. if test -z "${MINIMAL_TRUE}" && test -z "${MINIMAL_FALSE}"; then
  16015. as_fn_error $? "conditional \"MINIMAL\" was never defined.
  16016. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16017. fi
  16018. if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then
  16019. as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined.
  16020. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16021. fi
  16022. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  16023. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  16024. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16025. fi
  16026. if test -z "${HAVE_AMD64_ASM_TRUE}" && test -z "${HAVE_AMD64_ASM_FALSE}"; then
  16027. as_fn_error $? "conditional \"HAVE_AMD64_ASM\" was never defined.
  16028. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16029. fi
  16030. if test -z "${HAVE_AVX_ASM_TRUE}" && test -z "${HAVE_AVX_ASM_FALSE}"; then
  16031. as_fn_error $? "conditional \"HAVE_AVX_ASM\" was never defined.
  16032. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16033. fi
  16034. if test -z "${HAVE_TI_MODE_TRUE}" && test -z "${HAVE_TI_MODE_FALSE}"; then
  16035. as_fn_error $? "conditional \"HAVE_TI_MODE\" was never defined.
  16036. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16037. fi
  16038. if test -z "${EMSCRIPTEN_TRUE}" && test -z "${EMSCRIPTEN_FALSE}"; then
  16039. as_fn_error $? "conditional \"EMSCRIPTEN\" was never defined.
  16040. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16041. fi
  16042. if test -z "${NATIVECLIENT_TRUE}" && test -z "${NATIVECLIENT_FALSE}"; then
  16043. as_fn_error $? "conditional \"NATIVECLIENT\" was never defined.
  16044. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16045. fi
  16046. if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
  16047. as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
  16048. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16049. fi
  16050. : "${CONFIG_STATUS=./config.status}"
  16051. ac_write_fail=0
  16052. ac_clean_files_save=$ac_clean_files
  16053. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  16054. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  16055. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  16056. as_write_fail=0
  16057. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  16058. #! $SHELL
  16059. # Generated by $as_me.
  16060. # Run this file to recreate the current configuration.
  16061. # Compiler output produced by configure, useful for debugging
  16062. # configure, is in config.log if it exists.
  16063. debug=false
  16064. ac_cs_recheck=false
  16065. ac_cs_silent=false
  16066. SHELL=\${CONFIG_SHELL-$SHELL}
  16067. export SHELL
  16068. _ASEOF
  16069. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  16070. ## -------------------- ##
  16071. ## M4sh Initialization. ##
  16072. ## -------------------- ##
  16073. # Be more Bourne compatible
  16074. DUALCASE=1; export DUALCASE # for MKS sh
  16075. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16076. emulate sh
  16077. NULLCMD=:
  16078. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16079. # is contrary to our usage. Disable this feature.
  16080. alias -g '${1+"$@"}'='"$@"'
  16081. setopt NO_GLOB_SUBST
  16082. else
  16083. case `(set -o) 2>/dev/null` in @%:@(
  16084. *posix*) :
  16085. set -o posix ;; @%:@(
  16086. *) :
  16087. ;;
  16088. esac
  16089. fi
  16090. as_nl='
  16091. '
  16092. export as_nl
  16093. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  16094. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  16095. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  16096. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  16097. # Prefer a ksh shell builtin over an external printf program on Solaris,
  16098. # but without wasting forks for bash or zsh.
  16099. if test -z "$BASH_VERSION$ZSH_VERSION" \
  16100. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  16101. as_echo='print -r --'
  16102. as_echo_n='print -rn --'
  16103. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  16104. as_echo='printf %s\n'
  16105. as_echo_n='printf %s'
  16106. else
  16107. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  16108. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  16109. as_echo_n='/usr/ucb/echo -n'
  16110. else
  16111. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  16112. as_echo_n_body='eval
  16113. arg=$1;
  16114. case $arg in @%:@(
  16115. *"$as_nl"*)
  16116. expr "X$arg" : "X\\(.*\\)$as_nl";
  16117. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  16118. esac;
  16119. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  16120. '
  16121. export as_echo_n_body
  16122. as_echo_n='sh -c $as_echo_n_body as_echo'
  16123. fi
  16124. export as_echo_body
  16125. as_echo='sh -c $as_echo_body as_echo'
  16126. fi
  16127. # The user is always right.
  16128. if test "${PATH_SEPARATOR+set}" != set; then
  16129. PATH_SEPARATOR=:
  16130. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  16131. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  16132. PATH_SEPARATOR=';'
  16133. }
  16134. fi
  16135. # IFS
  16136. # We need space, tab and new line, in precisely that order. Quoting is
  16137. # there to prevent editors from complaining about space-tab.
  16138. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16139. # splitting by setting IFS to empty value.)
  16140. IFS=" "" $as_nl"
  16141. # Find who we are. Look in the path if we contain no directory separator.
  16142. as_myself=
  16143. case $0 in @%:@((
  16144. *[\\/]* ) as_myself=$0 ;;
  16145. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16146. for as_dir in $PATH
  16147. do
  16148. IFS=$as_save_IFS
  16149. test -z "$as_dir" && as_dir=.
  16150. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16151. done
  16152. IFS=$as_save_IFS
  16153. ;;
  16154. esac
  16155. # We did not find ourselves, most probably we were run as `sh COMMAND'
  16156. # in which case we are not to be found in the path.
  16157. if test "x$as_myself" = x; then
  16158. as_myself=$0
  16159. fi
  16160. if test ! -f "$as_myself"; then
  16161. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16162. exit 1
  16163. fi
  16164. # Unset variables that we do not need and which cause bugs (e.g. in
  16165. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  16166. # suppresses any "Segmentation fault" message there. '((' could
  16167. # trigger a bug in pdksh 5.2.14.
  16168. for as_var in BASH_ENV ENV MAIL MAILPATH
  16169. do eval test x\${$as_var+set} = xset \
  16170. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  16171. done
  16172. PS1='$ '
  16173. PS2='> '
  16174. PS4='+ '
  16175. # NLS nuisances.
  16176. LC_ALL=C
  16177. export LC_ALL
  16178. LANGUAGE=C
  16179. export LANGUAGE
  16180. # CDPATH.
  16181. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16182. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  16183. @%:@ ----------------------------------------
  16184. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16185. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16186. @%:@ script with STATUS, using 1 if that was 0.
  16187. as_fn_error ()
  16188. {
  16189. as_status=$1; test $as_status -eq 0 && as_status=1
  16190. if test "$4"; then
  16191. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16192. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  16193. fi
  16194. $as_echo "$as_me: error: $2" >&2
  16195. as_fn_exit $as_status
  16196. } @%:@ as_fn_error
  16197. @%:@ as_fn_set_status STATUS
  16198. @%:@ -----------------------
  16199. @%:@ Set @S|@? to STATUS, without forking.
  16200. as_fn_set_status ()
  16201. {
  16202. return $1
  16203. } @%:@ as_fn_set_status
  16204. @%:@ as_fn_exit STATUS
  16205. @%:@ -----------------
  16206. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16207. as_fn_exit ()
  16208. {
  16209. set +e
  16210. as_fn_set_status $1
  16211. exit $1
  16212. } @%:@ as_fn_exit
  16213. @%:@ as_fn_unset VAR
  16214. @%:@ ---------------
  16215. @%:@ Portably unset VAR.
  16216. as_fn_unset ()
  16217. {
  16218. { eval $1=; unset $1;}
  16219. }
  16220. as_unset=as_fn_unset
  16221. @%:@ as_fn_append VAR VALUE
  16222. @%:@ ----------------------
  16223. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  16224. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  16225. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  16226. @%:@ implementations.
  16227. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16228. eval 'as_fn_append ()
  16229. {
  16230. eval $1+=\$2
  16231. }'
  16232. else
  16233. as_fn_append ()
  16234. {
  16235. eval $1=\$$1\$2
  16236. }
  16237. fi # as_fn_append
  16238. @%:@ as_fn_arith ARG...
  16239. @%:@ ------------------
  16240. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  16241. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  16242. @%:@ must be portable across @S|@(()) and expr.
  16243. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16244. eval 'as_fn_arith ()
  16245. {
  16246. as_val=$(( $* ))
  16247. }'
  16248. else
  16249. as_fn_arith ()
  16250. {
  16251. as_val=`expr "$@" || test $? -eq 1`
  16252. }
  16253. fi # as_fn_arith
  16254. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16255. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16256. as_expr=expr
  16257. else
  16258. as_expr=false
  16259. fi
  16260. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16261. as_basename=basename
  16262. else
  16263. as_basename=false
  16264. fi
  16265. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16266. as_dirname=dirname
  16267. else
  16268. as_dirname=false
  16269. fi
  16270. as_me=`$as_basename -- "$0" ||
  16271. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16272. X"$0" : 'X\(//\)$' \| \
  16273. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16274. $as_echo X/"$0" |
  16275. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16276. s//\1/
  16277. q
  16278. }
  16279. /^X\/\(\/\/\)$/{
  16280. s//\1/
  16281. q
  16282. }
  16283. /^X\/\(\/\).*/{
  16284. s//\1/
  16285. q
  16286. }
  16287. s/.*/./; q'`
  16288. # Avoid depending upon Character Ranges.
  16289. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16290. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16291. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16292. as_cr_digits='0123456789'
  16293. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16294. ECHO_C= ECHO_N= ECHO_T=
  16295. case `echo -n x` in @%:@(((((
  16296. -n*)
  16297. case `echo 'xy\c'` in
  16298. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16299. xy) ECHO_C='\c';;
  16300. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16301. ECHO_T=' ';;
  16302. esac;;
  16303. *)
  16304. ECHO_N='-n';;
  16305. esac
  16306. rm -f conf$$ conf$$.exe conf$$.file
  16307. if test -d conf$$.dir; then
  16308. rm -f conf$$.dir/conf$$.file
  16309. else
  16310. rm -f conf$$.dir
  16311. mkdir conf$$.dir 2>/dev/null
  16312. fi
  16313. if (echo >conf$$.file) 2>/dev/null; then
  16314. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16315. as_ln_s='ln -s'
  16316. # ... but there are two gotchas:
  16317. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16318. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16319. # In both cases, we have to default to `cp -pR'.
  16320. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16321. as_ln_s='cp -pR'
  16322. elif ln conf$$.file conf$$ 2>/dev/null; then
  16323. as_ln_s=ln
  16324. else
  16325. as_ln_s='cp -pR'
  16326. fi
  16327. else
  16328. as_ln_s='cp -pR'
  16329. fi
  16330. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16331. rmdir conf$$.dir 2>/dev/null
  16332. @%:@ as_fn_mkdir_p
  16333. @%:@ -------------
  16334. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  16335. as_fn_mkdir_p ()
  16336. {
  16337. case $as_dir in #(
  16338. -*) as_dir=./$as_dir;;
  16339. esac
  16340. test -d "$as_dir" || eval $as_mkdir_p || {
  16341. as_dirs=
  16342. while :; do
  16343. case $as_dir in #(
  16344. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16345. *) as_qdir=$as_dir;;
  16346. esac
  16347. as_dirs="'$as_qdir' $as_dirs"
  16348. as_dir=`$as_dirname -- "$as_dir" ||
  16349. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16350. X"$as_dir" : 'X\(//\)[^/]' \| \
  16351. X"$as_dir" : 'X\(//\)$' \| \
  16352. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16353. $as_echo X"$as_dir" |
  16354. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16355. s//\1/
  16356. q
  16357. }
  16358. /^X\(\/\/\)[^/].*/{
  16359. s//\1/
  16360. q
  16361. }
  16362. /^X\(\/\/\)$/{
  16363. s//\1/
  16364. q
  16365. }
  16366. /^X\(\/\).*/{
  16367. s//\1/
  16368. q
  16369. }
  16370. s/.*/./; q'`
  16371. test -d "$as_dir" && break
  16372. done
  16373. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16374. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  16375. } @%:@ as_fn_mkdir_p
  16376. if mkdir -p . 2>/dev/null; then
  16377. as_mkdir_p='mkdir -p "$as_dir"'
  16378. else
  16379. test -d ./-p && rmdir ./-p
  16380. as_mkdir_p=false
  16381. fi
  16382. @%:@ as_fn_executable_p FILE
  16383. @%:@ -----------------------
  16384. @%:@ Test if FILE is an executable regular file.
  16385. as_fn_executable_p ()
  16386. {
  16387. test -f "$1" && test -x "$1"
  16388. } @%:@ as_fn_executable_p
  16389. as_test_x='test -x'
  16390. as_executable_p=as_fn_executable_p
  16391. # Sed expression to map a string onto a valid CPP name.
  16392. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16393. # Sed expression to map a string onto a valid variable name.
  16394. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16395. exec 6>&1
  16396. ## ----------------------------------- ##
  16397. ## Main body of $CONFIG_STATUS script. ##
  16398. ## ----------------------------------- ##
  16399. _ASEOF
  16400. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  16401. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16402. # Save the log message, to keep $0 and so on meaningful, and to
  16403. # report actual input values of CONFIG_FILES etc. instead of their
  16404. # values after options handling.
  16405. ac_log="
  16406. This file was extended by libsodium $as_me 1.0.15, which was
  16407. generated by GNU Autoconf 2.69. Invocation command line was
  16408. CONFIG_FILES = $CONFIG_FILES
  16409. CONFIG_HEADERS = $CONFIG_HEADERS
  16410. CONFIG_LINKS = $CONFIG_LINKS
  16411. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16412. $ $0 $@
  16413. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16414. "
  16415. _ACEOF
  16416. case $ac_config_files in *"
  16417. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16418. esac
  16419. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16420. # Files that config.status was made for.
  16421. config_files="$ac_config_files"
  16422. config_commands="$ac_config_commands"
  16423. _ACEOF
  16424. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16425. ac_cs_usage="\
  16426. \`$as_me' instantiates files and other configuration actions
  16427. from templates according to the current configuration. Unless the files
  16428. and actions are specified as TAGs, all are instantiated by default.
  16429. Usage: $0 [OPTION]... [TAG]...
  16430. -h, --help print this help, then exit
  16431. -V, --version print version number and configuration settings, then exit
  16432. --config print configuration, then exit
  16433. -q, --quiet, --silent
  16434. do not print progress messages
  16435. -d, --debug don't remove temporary files
  16436. --recheck update $as_me by reconfiguring in the same conditions
  16437. --file=FILE[:TEMPLATE]
  16438. instantiate the configuration file FILE
  16439. Configuration files:
  16440. $config_files
  16441. Configuration commands:
  16442. $config_commands
  16443. Report bugs to <https://github.com/jedisct1/libsodium/issues>.
  16444. libsodium home page: <https://github.com/jedisct1/libsodium>."
  16445. _ACEOF
  16446. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16447. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  16448. ac_cs_version="\\
  16449. libsodium config.status 1.0.15
  16450. configured by $0, generated by GNU Autoconf 2.69,
  16451. with options \\"\$ac_cs_config\\"
  16452. Copyright (C) 2012 Free Software Foundation, Inc.
  16453. This config.status script is free software; the Free Software Foundation
  16454. gives unlimited permission to copy, distribute and modify it."
  16455. ac_pwd='$ac_pwd'
  16456. srcdir='$srcdir'
  16457. INSTALL='$INSTALL'
  16458. MKDIR_P='$MKDIR_P'
  16459. AWK='$AWK'
  16460. test -n "\$AWK" || AWK=awk
  16461. _ACEOF
  16462. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16463. # The default lists apply if the user does not specify any file.
  16464. ac_need_defaults=:
  16465. while test $# != 0
  16466. do
  16467. case $1 in
  16468. --*=?*)
  16469. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16470. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16471. ac_shift=:
  16472. ;;
  16473. --*=)
  16474. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16475. ac_optarg=
  16476. ac_shift=:
  16477. ;;
  16478. *)
  16479. ac_option=$1
  16480. ac_optarg=$2
  16481. ac_shift=shift
  16482. ;;
  16483. esac
  16484. case $ac_option in
  16485. # Handling of the options.
  16486. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16487. ac_cs_recheck=: ;;
  16488. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16489. $as_echo "$ac_cs_version"; exit ;;
  16490. --config | --confi | --conf | --con | --co | --c )
  16491. $as_echo "$ac_cs_config"; exit ;;
  16492. --debug | --debu | --deb | --de | --d | -d )
  16493. debug=: ;;
  16494. --file | --fil | --fi | --f )
  16495. $ac_shift
  16496. case $ac_optarg in
  16497. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16498. '') as_fn_error $? "missing file argument" ;;
  16499. esac
  16500. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16501. ac_need_defaults=false;;
  16502. --he | --h | --help | --hel | -h )
  16503. $as_echo "$ac_cs_usage"; exit ;;
  16504. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16505. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16506. ac_cs_silent=: ;;
  16507. # This is an error.
  16508. -*) as_fn_error $? "unrecognized option: \`$1'
  16509. Try \`$0 --help' for more information." ;;
  16510. *) as_fn_append ac_config_targets " $1"
  16511. ac_need_defaults=false ;;
  16512. esac
  16513. shift
  16514. done
  16515. ac_configure_extra_args=
  16516. if $ac_cs_silent; then
  16517. exec 6>/dev/null
  16518. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16519. fi
  16520. _ACEOF
  16521. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16522. if \$ac_cs_recheck; then
  16523. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16524. shift
  16525. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16526. CONFIG_SHELL='$SHELL'
  16527. export CONFIG_SHELL
  16528. exec "\$@"
  16529. fi
  16530. _ACEOF
  16531. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16532. exec 5>>config.log
  16533. {
  16534. echo
  16535. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  16536. @%:@@%:@ Running $as_me. @%:@@%:@
  16537. _ASBOX
  16538. $as_echo "$ac_log"
  16539. } >&5
  16540. _ACEOF
  16541. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16542. #
  16543. # INIT-COMMANDS
  16544. #
  16545. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16546. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16547. # if CDPATH is set.
  16548. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16549. sed_quote_subst='$sed_quote_subst'
  16550. double_quote_subst='$double_quote_subst'
  16551. delay_variable_subst='$delay_variable_subst'
  16552. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16553. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16554. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16555. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16556. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16557. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16558. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  16559. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16560. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16561. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16562. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16563. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16564. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16565. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16566. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16567. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16568. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16569. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16570. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16571. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16572. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16573. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16574. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16575. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16576. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16577. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16578. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16579. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16580. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16581. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16582. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16583. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16584. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16585. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16586. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16587. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16588. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16589. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16590. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16591. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16592. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16593. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16594. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16595. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16596. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16597. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16598. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16599. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16600. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16601. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16602. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16603. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16604. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16605. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16606. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16607. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16608. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  16609. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16610. 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"`'
  16611. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  16612. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16613. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16614. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  16615. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16616. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16617. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16618. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16619. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16620. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16621. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16622. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16623. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16624. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16625. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16626. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16627. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16628. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16629. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16630. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16631. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16632. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16633. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16634. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16635. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16636. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16637. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16638. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16639. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16640. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16641. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16642. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16643. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16644. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16645. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16646. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16647. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16648. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16649. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16650. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16651. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16652. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16653. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16654. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16655. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16656. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16657. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16658. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16659. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16660. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16661. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16662. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16663. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16664. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16665. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16666. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16667. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16668. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16669. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16670. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16671. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16672. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16673. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16674. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16675. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16676. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16677. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16678. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16679. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  16680. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  16681. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16682. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16683. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16684. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16685. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16686. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16687. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  16688. LTCC='$LTCC'
  16689. LTCFLAGS='$LTCFLAGS'
  16690. compiler='$compiler_DEFAULT'
  16691. # A function that is used when there is no print builtin or printf.
  16692. func_fallback_echo ()
  16693. {
  16694. eval 'cat <<_LTECHO_EOF
  16695. \$1
  16696. _LTECHO_EOF'
  16697. }
  16698. # Quote evaled strings.
  16699. for var in SHELL \
  16700. ECHO \
  16701. PATH_SEPARATOR \
  16702. SED \
  16703. GREP \
  16704. EGREP \
  16705. FGREP \
  16706. LD \
  16707. NM \
  16708. LN_S \
  16709. lt_SP2NL \
  16710. lt_NL2SP \
  16711. reload_flag \
  16712. OBJDUMP \
  16713. deplibs_check_method \
  16714. file_magic_cmd \
  16715. file_magic_glob \
  16716. want_nocaseglob \
  16717. DLLTOOL \
  16718. sharedlib_from_linklib_cmd \
  16719. AR \
  16720. AR_FLAGS \
  16721. archiver_list_spec \
  16722. STRIP \
  16723. RANLIB \
  16724. CC \
  16725. CFLAGS \
  16726. compiler \
  16727. lt_cv_sys_global_symbol_pipe \
  16728. lt_cv_sys_global_symbol_to_cdecl \
  16729. lt_cv_sys_global_symbol_to_import \
  16730. lt_cv_sys_global_symbol_to_c_name_address \
  16731. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16732. lt_cv_nm_interface \
  16733. nm_file_list_spec \
  16734. lt_cv_truncate_bin \
  16735. lt_prog_compiler_no_builtin_flag \
  16736. lt_prog_compiler_pic \
  16737. lt_prog_compiler_wl \
  16738. lt_prog_compiler_static \
  16739. lt_cv_prog_compiler_c_o \
  16740. need_locks \
  16741. MANIFEST_TOOL \
  16742. DSYMUTIL \
  16743. NMEDIT \
  16744. LIPO \
  16745. OTOOL \
  16746. OTOOL64 \
  16747. shrext_cmds \
  16748. export_dynamic_flag_spec \
  16749. whole_archive_flag_spec \
  16750. compiler_needs_object \
  16751. with_gnu_ld \
  16752. allow_undefined_flag \
  16753. no_undefined_flag \
  16754. hardcode_libdir_flag_spec \
  16755. hardcode_libdir_separator \
  16756. exclude_expsyms \
  16757. include_expsyms \
  16758. file_list_spec \
  16759. variables_saved_for_relink \
  16760. libname_spec \
  16761. library_names_spec \
  16762. soname_spec \
  16763. install_override_mode \
  16764. finish_eval \
  16765. old_striplib \
  16766. striplib \
  16767. AS; do
  16768. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16769. *[\\\\\\\`\\"\\\$]*)
  16770. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16771. ;;
  16772. *)
  16773. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16774. ;;
  16775. esac
  16776. done
  16777. # Double-quote double-evaled strings.
  16778. for var in reload_cmds \
  16779. old_postinstall_cmds \
  16780. old_postuninstall_cmds \
  16781. old_archive_cmds \
  16782. extract_expsyms_cmds \
  16783. old_archive_from_new_cmds \
  16784. old_archive_from_expsyms_cmds \
  16785. archive_cmds \
  16786. archive_expsym_cmds \
  16787. module_cmds \
  16788. module_expsym_cmds \
  16789. export_symbols_cmds \
  16790. prelink_cmds \
  16791. postlink_cmds \
  16792. postinstall_cmds \
  16793. postuninstall_cmds \
  16794. finish_cmds \
  16795. sys_lib_search_path_spec \
  16796. configure_time_dlsearch_path \
  16797. configure_time_lt_sys_library_path; do
  16798. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16799. *[\\\\\\\`\\"\\\$]*)
  16800. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16801. ;;
  16802. *)
  16803. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16804. ;;
  16805. esac
  16806. done
  16807. ac_aux_dir='$ac_aux_dir'
  16808. # See if we are running on zsh, and set the options that allow our
  16809. # commands through without removal of \ escapes INIT.
  16810. if test -n "\${ZSH_VERSION+set}"; then
  16811. setopt NO_GLOB_SUBST
  16812. fi
  16813. PACKAGE='$PACKAGE'
  16814. VERSION='$VERSION'
  16815. RM='$RM'
  16816. ofile='$ofile'
  16817. _ACEOF
  16818. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16819. # Handling of arguments.
  16820. for ac_config_target in $ac_config_targets
  16821. do
  16822. case $ac_config_target in
  16823. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16824. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16825. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16826. "builds/Makefile") CONFIG_FILES="$CONFIG_FILES builds/Makefile" ;;
  16827. "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  16828. "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
  16829. "libsodium.pc") CONFIG_FILES="$CONFIG_FILES libsodium.pc" ;;
  16830. "libsodium-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libsodium-uninstalled.pc" ;;
  16831. "msvc-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES msvc-scripts/Makefile" ;;
  16832. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  16833. "src/libsodium/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/Makefile" ;;
  16834. "src/libsodium/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/Makefile" ;;
  16835. "src/libsodium/include/sodium/version.h") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/sodium/version.h" ;;
  16836. "test/default/Makefile") CONFIG_FILES="$CONFIG_FILES test/default/Makefile" ;;
  16837. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  16838. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16839. esac
  16840. done
  16841. # If the user did not use the arguments to specify the items to instantiate,
  16842. # then the envvar interface is used. Set only those that are not.
  16843. # We use the long form for the default assignment because of an extremely
  16844. # bizarre bug on SunOS 4.1.3.
  16845. if $ac_need_defaults; then
  16846. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16847. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16848. fi
  16849. # Have a temporary directory for convenience. Make it in the build tree
  16850. # simply because there is no reason against having it here, and in addition,
  16851. # creating and moving files from /tmp can sometimes cause problems.
  16852. # Hook for its removal unless debugging.
  16853. # Note that there is a small window in which the directory will not be cleaned:
  16854. # after its creation but before its name has been assigned to `$tmp'.
  16855. $debug ||
  16856. {
  16857. tmp= ac_tmp=
  16858. trap 'exit_status=$?
  16859. : "${ac_tmp:=$tmp}"
  16860. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16861. ' 0
  16862. trap 'as_fn_exit 1' 1 2 13 15
  16863. }
  16864. # Create a (secure) tmp directory for tmp files.
  16865. {
  16866. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16867. test -d "$tmp"
  16868. } ||
  16869. {
  16870. tmp=./conf$$-$RANDOM
  16871. (umask 077 && mkdir "$tmp")
  16872. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16873. ac_tmp=$tmp
  16874. # Set up the scripts for CONFIG_FILES section.
  16875. # No need to generate them if there are no CONFIG_FILES.
  16876. # This happens for instance with `./config.status config.h'.
  16877. if test -n "$CONFIG_FILES"; then
  16878. ac_cr=`echo X | tr X '\015'`
  16879. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16880. # But we know of no other shell where ac_cr would be empty at this
  16881. # point, so we can use a bashism as a fallback.
  16882. if test "x$ac_cr" = x; then
  16883. eval ac_cr=\$\'\\r\'
  16884. fi
  16885. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16886. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16887. ac_cs_awk_cr='\\r'
  16888. else
  16889. ac_cs_awk_cr=$ac_cr
  16890. fi
  16891. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16892. _ACEOF
  16893. {
  16894. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16895. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16896. echo "_ACEOF"
  16897. } >conf$$subs.sh ||
  16898. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16899. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16900. ac_delim='%!_!# '
  16901. for ac_last_try in false false false false false :; do
  16902. . ./conf$$subs.sh ||
  16903. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16904. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16905. if test $ac_delim_n = $ac_delim_num; then
  16906. break
  16907. elif $ac_last_try; then
  16908. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16909. else
  16910. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16911. fi
  16912. done
  16913. rm -f conf$$subs.sh
  16914. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16915. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16916. _ACEOF
  16917. sed -n '
  16918. h
  16919. s/^/S["/; s/!.*/"]=/
  16920. p
  16921. g
  16922. s/^[^!]*!//
  16923. :repl
  16924. t repl
  16925. s/'"$ac_delim"'$//
  16926. t delim
  16927. :nl
  16928. h
  16929. s/\(.\{148\}\)..*/\1/
  16930. t more1
  16931. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16932. p
  16933. n
  16934. b repl
  16935. :more1
  16936. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16937. p
  16938. g
  16939. s/.\{148\}//
  16940. t nl
  16941. :delim
  16942. h
  16943. s/\(.\{148\}\)..*/\1/
  16944. t more2
  16945. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16946. p
  16947. b
  16948. :more2
  16949. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16950. p
  16951. g
  16952. s/.\{148\}//
  16953. t delim
  16954. ' <conf$$subs.awk | sed '
  16955. /^[^""]/{
  16956. N
  16957. s/\n//
  16958. }
  16959. ' >>$CONFIG_STATUS || ac_write_fail=1
  16960. rm -f conf$$subs.awk
  16961. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16962. _ACAWK
  16963. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16964. for (key in S) S_is_set[key] = 1
  16965. FS = ""
  16966. }
  16967. {
  16968. line = $ 0
  16969. nfields = split(line, field, "@")
  16970. substed = 0
  16971. len = length(field[1])
  16972. for (i = 2; i < nfields; i++) {
  16973. key = field[i]
  16974. keylen = length(key)
  16975. if (S_is_set[key]) {
  16976. value = S[key]
  16977. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16978. len += length(value) + length(field[++i])
  16979. substed = 1
  16980. } else
  16981. len += 1 + keylen
  16982. }
  16983. print line
  16984. }
  16985. _ACAWK
  16986. _ACEOF
  16987. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16988. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16989. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16990. else
  16991. cat
  16992. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16993. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16994. _ACEOF
  16995. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16996. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16997. # trailing colons and then remove the whole line if VPATH becomes empty
  16998. # (actually we leave an empty line to preserve line numbers).
  16999. if test "x$srcdir" = x.; then
  17000. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  17001. h
  17002. s///
  17003. s/^/:/
  17004. s/[ ]*$/:/
  17005. s/:\$(srcdir):/:/g
  17006. s/:\${srcdir}:/:/g
  17007. s/:@srcdir@:/:/g
  17008. s/^:*//
  17009. s/:*$//
  17010. x
  17011. s/\(=[ ]*\).*/\1/
  17012. G
  17013. s/\n//
  17014. s/^[^=]*=[ ]*$//
  17015. }'
  17016. fi
  17017. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17018. fi # test -n "$CONFIG_FILES"
  17019. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  17020. shift
  17021. for ac_tag
  17022. do
  17023. case $ac_tag in
  17024. :[FHLC]) ac_mode=$ac_tag; continue;;
  17025. esac
  17026. case $ac_mode$ac_tag in
  17027. :[FHL]*:*);;
  17028. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  17029. :[FH]-) ac_tag=-:-;;
  17030. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17031. esac
  17032. ac_save_IFS=$IFS
  17033. IFS=:
  17034. set x $ac_tag
  17035. IFS=$ac_save_IFS
  17036. shift
  17037. ac_file=$1
  17038. shift
  17039. case $ac_mode in
  17040. :L) ac_source=$1;;
  17041. :[FH])
  17042. ac_file_inputs=
  17043. for ac_f
  17044. do
  17045. case $ac_f in
  17046. -) ac_f="$ac_tmp/stdin";;
  17047. *) # Look for the file first in the build tree, then in the source tree
  17048. # (if the path is not absolute). The absolute path cannot be DOS-style,
  17049. # because $ac_f cannot contain `:'.
  17050. test -f "$ac_f" ||
  17051. case $ac_f in
  17052. [\\/$]*) false;;
  17053. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17054. esac ||
  17055. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  17056. esac
  17057. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  17058. as_fn_append ac_file_inputs " '$ac_f'"
  17059. done
  17060. # Let's still pretend it is `configure' which instantiates (i.e., don't
  17061. # use $as_me), people would be surprised to read:
  17062. # /* config.h. Generated by config.status. */
  17063. configure_input='Generated from '`
  17064. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  17065. `' by configure.'
  17066. if test x"$ac_file" != x-; then
  17067. configure_input="$ac_file. $configure_input"
  17068. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  17069. $as_echo "$as_me: creating $ac_file" >&6;}
  17070. fi
  17071. # Neutralize special characters interpreted by sed in replacement strings.
  17072. case $configure_input in #(
  17073. *\&* | *\|* | *\\* )
  17074. ac_sed_conf_input=`$as_echo "$configure_input" |
  17075. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  17076. *) ac_sed_conf_input=$configure_input;;
  17077. esac
  17078. case $ac_tag in
  17079. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  17080. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  17081. esac
  17082. ;;
  17083. esac
  17084. ac_dir=`$as_dirname -- "$ac_file" ||
  17085. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17086. X"$ac_file" : 'X\(//\)[^/]' \| \
  17087. X"$ac_file" : 'X\(//\)$' \| \
  17088. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17089. $as_echo X"$ac_file" |
  17090. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17091. s//\1/
  17092. q
  17093. }
  17094. /^X\(\/\/\)[^/].*/{
  17095. s//\1/
  17096. q
  17097. }
  17098. /^X\(\/\/\)$/{
  17099. s//\1/
  17100. q
  17101. }
  17102. /^X\(\/\).*/{
  17103. s//\1/
  17104. q
  17105. }
  17106. s/.*/./; q'`
  17107. as_dir="$ac_dir"; as_fn_mkdir_p
  17108. ac_builddir=.
  17109. case "$ac_dir" in
  17110. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17111. *)
  17112. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17113. # A ".." for each directory in $ac_dir_suffix.
  17114. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17115. case $ac_top_builddir_sub in
  17116. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17117. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17118. esac ;;
  17119. esac
  17120. ac_abs_top_builddir=$ac_pwd
  17121. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17122. # for backward compatibility:
  17123. ac_top_builddir=$ac_top_build_prefix
  17124. case $srcdir in
  17125. .) # We are building in place.
  17126. ac_srcdir=.
  17127. ac_top_srcdir=$ac_top_builddir_sub
  17128. ac_abs_top_srcdir=$ac_pwd ;;
  17129. [\\/]* | ?:[\\/]* ) # Absolute name.
  17130. ac_srcdir=$srcdir$ac_dir_suffix;
  17131. ac_top_srcdir=$srcdir
  17132. ac_abs_top_srcdir=$srcdir ;;
  17133. *) # Relative name.
  17134. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17135. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17136. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17137. esac
  17138. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17139. case $ac_mode in
  17140. :F)
  17141. #
  17142. # CONFIG_FILE
  17143. #
  17144. case $INSTALL in
  17145. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17146. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17147. esac
  17148. ac_MKDIR_P=$MKDIR_P
  17149. case $MKDIR_P in
  17150. [\\/$]* | ?:[\\/]* ) ;;
  17151. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  17152. esac
  17153. _ACEOF
  17154. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17155. # If the template does not know about datarootdir, expand it.
  17156. # FIXME: This hack should be removed a few years after 2.60.
  17157. ac_datarootdir_hack=; ac_datarootdir_seen=
  17158. ac_sed_dataroot='
  17159. /datarootdir/ {
  17160. p
  17161. q
  17162. }
  17163. /@datadir@/p
  17164. /@docdir@/p
  17165. /@infodir@/p
  17166. /@localedir@/p
  17167. /@mandir@/p'
  17168. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17169. *datarootdir*) ac_datarootdir_seen=yes;;
  17170. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17172. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17173. _ACEOF
  17174. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17175. ac_datarootdir_hack='
  17176. s&@datadir@&$datadir&g
  17177. s&@docdir@&$docdir&g
  17178. s&@infodir@&$infodir&g
  17179. s&@localedir@&$localedir&g
  17180. s&@mandir@&$mandir&g
  17181. s&\\\${datarootdir}&$datarootdir&g' ;;
  17182. esac
  17183. _ACEOF
  17184. # Neutralize VPATH when `$srcdir' = `.'.
  17185. # Shell code in configure.ac might set extrasub.
  17186. # FIXME: do we really want to maintain this feature?
  17187. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17188. ac_sed_extra="$ac_vpsub
  17189. $extrasub
  17190. _ACEOF
  17191. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17192. :t
  17193. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17194. s|@configure_input@|$ac_sed_conf_input|;t t
  17195. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17196. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17197. s&@srcdir@&$ac_srcdir&;t t
  17198. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17199. s&@top_srcdir@&$ac_top_srcdir&;t t
  17200. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17201. s&@builddir@&$ac_builddir&;t t
  17202. s&@abs_builddir@&$ac_abs_builddir&;t t
  17203. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17204. s&@INSTALL@&$ac_INSTALL&;t t
  17205. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  17206. $ac_datarootdir_hack
  17207. "
  17208. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  17209. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17210. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17211. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17212. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  17213. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17215. which seems to be undefined. Please make sure it is defined" >&5
  17216. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17217. which seems to be undefined. Please make sure it is defined" >&2;}
  17218. rm -f "$ac_tmp/stdin"
  17219. case $ac_file in
  17220. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17221. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17222. esac \
  17223. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17224. ;;
  17225. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17226. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17227. ;;
  17228. esac
  17229. case $ac_file$ac_mode in
  17230. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17231. # Older Autoconf quotes --file arguments for eval, but not when files
  17232. # are listed without --file. Let's play safe and only enable the eval
  17233. # if we detect the quoting.
  17234. case $CONFIG_FILES in
  17235. *\'*) eval set x "$CONFIG_FILES" ;;
  17236. *) set x $CONFIG_FILES ;;
  17237. esac
  17238. shift
  17239. for mf
  17240. do
  17241. # Strip MF so we end up with the name of the file.
  17242. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17243. # Check whether this is an Automake generated Makefile or not.
  17244. # We used to match only the files named 'Makefile.in', but
  17245. # some people rename them; so instead we look at the file content.
  17246. # Grep'ing the first line is not enough: some people post-process
  17247. # each Makefile.in and add a new line on top of each file to say so.
  17248. # Grep'ing the whole file is not good either: AIX grep has a line
  17249. # limit of 2048, but all sed's we know have understand at least 4000.
  17250. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  17251. dirpart=`$as_dirname -- "$mf" ||
  17252. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17253. X"$mf" : 'X\(//\)[^/]' \| \
  17254. X"$mf" : 'X\(//\)$' \| \
  17255. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17256. $as_echo X"$mf" |
  17257. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17258. s//\1/
  17259. q
  17260. }
  17261. /^X\(\/\/\)[^/].*/{
  17262. s//\1/
  17263. q
  17264. }
  17265. /^X\(\/\/\)$/{
  17266. s//\1/
  17267. q
  17268. }
  17269. /^X\(\/\).*/{
  17270. s//\1/
  17271. q
  17272. }
  17273. s/.*/./; q'`
  17274. else
  17275. continue
  17276. fi
  17277. # Extract the definition of DEPDIR, am__include, and am__quote
  17278. # from the Makefile without running 'make'.
  17279. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17280. test -z "$DEPDIR" && continue
  17281. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17282. test -z "$am__include" && continue
  17283. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17284. # Find all dependency output files, they are included files with
  17285. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17286. # simplest approach to changing $(DEPDIR) to its actual value in the
  17287. # expansion.
  17288. for file in `sed -n "
  17289. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17290. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  17291. # Make sure the directory exists.
  17292. test -f "$dirpart/$file" && continue
  17293. fdir=`$as_dirname -- "$file" ||
  17294. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17295. X"$file" : 'X\(//\)[^/]' \| \
  17296. X"$file" : 'X\(//\)$' \| \
  17297. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17298. $as_echo X"$file" |
  17299. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17300. s//\1/
  17301. q
  17302. }
  17303. /^X\(\/\/\)[^/].*/{
  17304. s//\1/
  17305. q
  17306. }
  17307. /^X\(\/\/\)$/{
  17308. s//\1/
  17309. q
  17310. }
  17311. /^X\(\/\).*/{
  17312. s//\1/
  17313. q
  17314. }
  17315. s/.*/./; q'`
  17316. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  17317. # echo "creating $dirpart/$file"
  17318. echo '# dummy' > "$dirpart/$file"
  17319. done
  17320. done
  17321. }
  17322. ;;
  17323. "libtool":C)
  17324. # See if we are running on zsh, and set the options that allow our
  17325. # commands through without removal of \ escapes.
  17326. if test -n "${ZSH_VERSION+set}"; then
  17327. setopt NO_GLOB_SUBST
  17328. fi
  17329. cfgfile=${ofile}T
  17330. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17331. $RM "$cfgfile"
  17332. cat <<_LT_EOF >> "$cfgfile"
  17333. #! $SHELL
  17334. # Generated automatically by $as_me ($PACKAGE) $VERSION
  17335. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17336. # Provide generalized library-building support services.
  17337. # Written by Gordon Matzigkeit, 1996
  17338. # Copyright (C) 2014 Free Software Foundation, Inc.
  17339. # This is free software; see the source for copying conditions. There is NO
  17340. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17341. # GNU Libtool is free software; you can redistribute it and/or modify
  17342. # it under the terms of the GNU General Public License as published by
  17343. # the Free Software Foundation; either version 2 of of the License, or
  17344. # (at your option) any later version.
  17345. #
  17346. # As a special exception to the GNU General Public License, if you
  17347. # distribute this file as part of a program or library that is built
  17348. # using GNU Libtool, you may include this file under the same
  17349. # distribution terms that you use for the rest of that program.
  17350. #
  17351. # GNU Libtool is distributed in the hope that it will be useful, but
  17352. # WITHOUT ANY WARRANTY; without even the implied warranty of
  17353. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17354. # GNU General Public License for more details.
  17355. #
  17356. # You should have received a copy of the GNU General Public License
  17357. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17358. # The names of the tagged configurations supported by this script.
  17359. available_tags=''
  17360. # Configured defaults for sys_lib_dlsearch_path munging.
  17361. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  17362. # ### BEGIN LIBTOOL CONFIG
  17363. # Which release of libtool.m4 was used?
  17364. macro_version=$macro_version
  17365. macro_revision=$macro_revision
  17366. # Whether or not to build shared libraries.
  17367. build_libtool_libs=$enable_shared
  17368. # Whether or not to build static libraries.
  17369. build_old_libs=$enable_static
  17370. # What type of objects to build.
  17371. pic_mode=$pic_mode
  17372. # Whether or not to optimize for fast installation.
  17373. fast_install=$enable_fast_install
  17374. # Shared archive member basename,for filename based shared library versioning on AIX.
  17375. shared_archive_member_spec=$shared_archive_member_spec
  17376. # Shell to use when invoking shell scripts.
  17377. SHELL=$lt_SHELL
  17378. # An echo program that protects backslashes.
  17379. ECHO=$lt_ECHO
  17380. # The PATH separator for the build system.
  17381. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17382. # The host system.
  17383. host_alias=$host_alias
  17384. host=$host
  17385. host_os=$host_os
  17386. # The build system.
  17387. build_alias=$build_alias
  17388. build=$build
  17389. build_os=$build_os
  17390. # A sed program that does not truncate output.
  17391. SED=$lt_SED
  17392. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17393. Xsed="\$SED -e 1s/^X//"
  17394. # A grep program that handles long lines.
  17395. GREP=$lt_GREP
  17396. # An ERE matcher.
  17397. EGREP=$lt_EGREP
  17398. # A literal string matcher.
  17399. FGREP=$lt_FGREP
  17400. # A BSD- or MS-compatible name lister.
  17401. NM=$lt_NM
  17402. # Whether we need soft or hard links.
  17403. LN_S=$lt_LN_S
  17404. # What is the maximum length of a command?
  17405. max_cmd_len=$max_cmd_len
  17406. # Object file suffix (normally "o").
  17407. objext=$ac_objext
  17408. # Executable file suffix (normally "").
  17409. exeext=$exeext
  17410. # whether the shell understands "unset".
  17411. lt_unset=$lt_unset
  17412. # turn spaces into newlines.
  17413. SP2NL=$lt_lt_SP2NL
  17414. # turn newlines into spaces.
  17415. NL2SP=$lt_lt_NL2SP
  17416. # convert \$build file names to \$host format.
  17417. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17418. # convert \$build files to toolchain format.
  17419. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17420. # An object symbol dumper.
  17421. OBJDUMP=$lt_OBJDUMP
  17422. # Method to check whether dependent libraries are shared objects.
  17423. deplibs_check_method=$lt_deplibs_check_method
  17424. # Command to use when deplibs_check_method = "file_magic".
  17425. file_magic_cmd=$lt_file_magic_cmd
  17426. # How to find potential files when deplibs_check_method = "file_magic".
  17427. file_magic_glob=$lt_file_magic_glob
  17428. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17429. want_nocaseglob=$lt_want_nocaseglob
  17430. # DLL creation program.
  17431. DLLTOOL=$lt_DLLTOOL
  17432. # Command to associate shared and link libraries.
  17433. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17434. # The archiver.
  17435. AR=$lt_AR
  17436. # Flags to create an archive.
  17437. AR_FLAGS=$lt_AR_FLAGS
  17438. # How to feed a file listing to the archiver.
  17439. archiver_list_spec=$lt_archiver_list_spec
  17440. # A symbol stripping program.
  17441. STRIP=$lt_STRIP
  17442. # Commands used to install an old-style archive.
  17443. RANLIB=$lt_RANLIB
  17444. old_postinstall_cmds=$lt_old_postinstall_cmds
  17445. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17446. # Whether to use a lock for old archive extraction.
  17447. lock_old_archive_extraction=$lock_old_archive_extraction
  17448. # A C compiler.
  17449. LTCC=$lt_CC
  17450. # LTCC compiler flags.
  17451. LTCFLAGS=$lt_CFLAGS
  17452. # Take the output of nm and produce a listing of raw symbols and C names.
  17453. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17454. # Transform the output of nm in a proper C declaration.
  17455. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17456. # Transform the output of nm into a list of symbols to manually relocate.
  17457. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  17458. # Transform the output of nm in a C name address pair.
  17459. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17460. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17461. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17462. # The name lister interface.
  17463. nm_interface=$lt_lt_cv_nm_interface
  17464. # Specify filename containing input files for \$NM.
  17465. nm_file_list_spec=$lt_nm_file_list_spec
  17466. # The root where to search for dependent libraries,and where our libraries should be installed.
  17467. lt_sysroot=$lt_sysroot
  17468. # Command to truncate a binary pipe.
  17469. lt_truncate_bin=$lt_lt_cv_truncate_bin
  17470. # The name of the directory that contains temporary libtool files.
  17471. objdir=$objdir
  17472. # Used to examine libraries when file_magic_cmd begins with "file".
  17473. MAGIC_CMD=$MAGIC_CMD
  17474. # Must we lock files when doing compilation?
  17475. need_locks=$lt_need_locks
  17476. # Manifest tool.
  17477. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17478. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17479. DSYMUTIL=$lt_DSYMUTIL
  17480. # Tool to change global to local symbols on Mac OS X.
  17481. NMEDIT=$lt_NMEDIT
  17482. # Tool to manipulate fat objects and archives on Mac OS X.
  17483. LIPO=$lt_LIPO
  17484. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17485. OTOOL=$lt_OTOOL
  17486. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17487. OTOOL64=$lt_OTOOL64
  17488. # Old archive suffix (normally "a").
  17489. libext=$libext
  17490. # Shared library suffix (normally ".so").
  17491. shrext_cmds=$lt_shrext_cmds
  17492. # The commands to extract the exported symbol list from a shared archive.
  17493. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17494. # Variables whose values should be saved in libtool wrapper scripts and
  17495. # restored at link time.
  17496. variables_saved_for_relink=$lt_variables_saved_for_relink
  17497. # Do we need the "lib" prefix for modules?
  17498. need_lib_prefix=$need_lib_prefix
  17499. # Do we need a version for libraries?
  17500. need_version=$need_version
  17501. # Library versioning type.
  17502. version_type=$version_type
  17503. # Shared library runtime path variable.
  17504. runpath_var=$runpath_var
  17505. # Shared library path variable.
  17506. shlibpath_var=$shlibpath_var
  17507. # Is shlibpath searched before the hard-coded library search path?
  17508. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17509. # Format of library name prefix.
  17510. libname_spec=$lt_libname_spec
  17511. # List of archive names. First name is the real one, the rest are links.
  17512. # The last name is the one that the linker finds with -lNAME
  17513. library_names_spec=$lt_library_names_spec
  17514. # The coded name of the library, if different from the real name.
  17515. soname_spec=$lt_soname_spec
  17516. # Permission mode override for installation of shared libraries.
  17517. install_override_mode=$lt_install_override_mode
  17518. # Command to use after installation of a shared archive.
  17519. postinstall_cmds=$lt_postinstall_cmds
  17520. # Command to use after uninstallation of a shared archive.
  17521. postuninstall_cmds=$lt_postuninstall_cmds
  17522. # Commands used to finish a libtool library installation in a directory.
  17523. finish_cmds=$lt_finish_cmds
  17524. # As "finish_cmds", except a single script fragment to be evaled but
  17525. # not shown.
  17526. finish_eval=$lt_finish_eval
  17527. # Whether we should hardcode library paths into libraries.
  17528. hardcode_into_libs=$hardcode_into_libs
  17529. # Compile-time system search path for libraries.
  17530. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17531. # Detected run-time system search path for libraries.
  17532. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  17533. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  17534. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  17535. # Whether dlopen is supported.
  17536. dlopen_support=$enable_dlopen
  17537. # Whether dlopen of programs is supported.
  17538. dlopen_self=$enable_dlopen_self
  17539. # Whether dlopen of statically linked programs is supported.
  17540. dlopen_self_static=$enable_dlopen_self_static
  17541. # Commands to strip libraries.
  17542. old_striplib=$lt_old_striplib
  17543. striplib=$lt_striplib
  17544. # Assembler program.
  17545. AS=$lt_AS
  17546. # The linker used to build libraries.
  17547. LD=$lt_LD
  17548. # How to create reloadable object files.
  17549. reload_flag=$lt_reload_flag
  17550. reload_cmds=$lt_reload_cmds
  17551. # Commands used to build an old-style archive.
  17552. old_archive_cmds=$lt_old_archive_cmds
  17553. # A language specific compiler.
  17554. CC=$lt_compiler
  17555. # Is the compiler the GNU compiler?
  17556. with_gcc=$GCC
  17557. # Compiler flag to turn off builtin functions.
  17558. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17559. # Additional compiler flags for building library objects.
  17560. pic_flag=$lt_lt_prog_compiler_pic
  17561. # How to pass a linker flag through the compiler.
  17562. wl=$lt_lt_prog_compiler_wl
  17563. # Compiler flag to prevent dynamic linking.
  17564. link_static_flag=$lt_lt_prog_compiler_static
  17565. # Does compiler simultaneously support -c and -o options?
  17566. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17567. # Whether or not to add -lc for building shared libraries.
  17568. build_libtool_need_lc=$archive_cmds_need_lc
  17569. # Whether or not to disallow shared libs when runtime libs are static.
  17570. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17571. # Compiler flag to allow reflexive dlopens.
  17572. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17573. # Compiler flag to generate shared objects directly from archives.
  17574. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17575. # Whether the compiler copes with passing no objects directly.
  17576. compiler_needs_object=$lt_compiler_needs_object
  17577. # Create an old-style archive from a shared archive.
  17578. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17579. # Create a temporary old-style archive to link instead of a shared archive.
  17580. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17581. # Commands used to build a shared archive.
  17582. archive_cmds=$lt_archive_cmds
  17583. archive_expsym_cmds=$lt_archive_expsym_cmds
  17584. # Commands used to build a loadable module if different from building
  17585. # a shared archive.
  17586. module_cmds=$lt_module_cmds
  17587. module_expsym_cmds=$lt_module_expsym_cmds
  17588. # Whether we are building with GNU ld or not.
  17589. with_gnu_ld=$lt_with_gnu_ld
  17590. # Flag that allows shared libraries with undefined symbols to be built.
  17591. allow_undefined_flag=$lt_allow_undefined_flag
  17592. # Flag that enforces no undefined symbols.
  17593. no_undefined_flag=$lt_no_undefined_flag
  17594. # Flag to hardcode \$libdir into a binary during linking.
  17595. # This must work even if \$libdir does not exist
  17596. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17597. # Whether we need a single "-rpath" flag with a separated argument.
  17598. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17599. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17600. # DIR into the resulting binary.
  17601. hardcode_direct=$hardcode_direct
  17602. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17603. # DIR into the resulting binary and the resulting library dependency is
  17604. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17605. # library is relocated.
  17606. hardcode_direct_absolute=$hardcode_direct_absolute
  17607. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17608. # into the resulting binary.
  17609. hardcode_minus_L=$hardcode_minus_L
  17610. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17611. # into the resulting binary.
  17612. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17613. # Set to "yes" if building a shared library automatically hardcodes DIR
  17614. # into the library and all subsequent libraries and executables linked
  17615. # against it.
  17616. hardcode_automatic=$hardcode_automatic
  17617. # Set to yes if linker adds runtime paths of dependent libraries
  17618. # to runtime path list.
  17619. inherit_rpath=$inherit_rpath
  17620. # Whether libtool must link a program against all its dependency libraries.
  17621. link_all_deplibs=$link_all_deplibs
  17622. # Set to "yes" if exported symbols are required.
  17623. always_export_symbols=$always_export_symbols
  17624. # The commands to list exported symbols.
  17625. export_symbols_cmds=$lt_export_symbols_cmds
  17626. # Symbols that should not be listed in the preloaded symbols.
  17627. exclude_expsyms=$lt_exclude_expsyms
  17628. # Symbols that must always be exported.
  17629. include_expsyms=$lt_include_expsyms
  17630. # Commands necessary for linking programs (against libraries) with templates.
  17631. prelink_cmds=$lt_prelink_cmds
  17632. # Commands necessary for finishing linking programs.
  17633. postlink_cmds=$lt_postlink_cmds
  17634. # Specify filename containing input files.
  17635. file_list_spec=$lt_file_list_spec
  17636. # How to hardcode a shared library path into an executable.
  17637. hardcode_action=$hardcode_action
  17638. # ### END LIBTOOL CONFIG
  17639. _LT_EOF
  17640. cat <<'_LT_EOF' >> "$cfgfile"
  17641. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  17642. # func_munge_path_list VARIABLE PATH
  17643. # -----------------------------------
  17644. # VARIABLE is name of variable containing _space_ separated list of
  17645. # directories to be munged by the contents of PATH, which is string
  17646. # having a format:
  17647. # "DIR[:DIR]:"
  17648. # string "DIR[ DIR]" will be prepended to VARIABLE
  17649. # ":DIR[:DIR]"
  17650. # string "DIR[ DIR]" will be appended to VARIABLE
  17651. # "DIRP[:DIRP]::[DIRA:]DIRA"
  17652. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  17653. # "DIRA[ DIRA]" will be appended to VARIABLE
  17654. # "DIR[:DIR]"
  17655. # VARIABLE will be replaced by "DIR[ DIR]"
  17656. func_munge_path_list ()
  17657. {
  17658. case x@S|@2 in
  17659. x)
  17660. ;;
  17661. *:)
  17662. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
  17663. ;;
  17664. x:*)
  17665. eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
  17666. ;;
  17667. *::*)
  17668. eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  17669. eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
  17670. ;;
  17671. *)
  17672. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
  17673. ;;
  17674. esac
  17675. }
  17676. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  17677. func_cc_basename ()
  17678. {
  17679. for cc_temp in @S|@*""; do
  17680. case $cc_temp in
  17681. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17682. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17683. \-*) ;;
  17684. *) break;;
  17685. esac
  17686. done
  17687. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  17688. }
  17689. # ### END FUNCTIONS SHARED WITH CONFIGURE
  17690. _LT_EOF
  17691. case $host_os in
  17692. aix3*)
  17693. cat <<\_LT_EOF >> "$cfgfile"
  17694. # AIX sometimes has problems with the GCC collect2 program. For some
  17695. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17696. # vanish in a puff of smoke.
  17697. if test set != "${COLLECT_NAMES+set}"; then
  17698. COLLECT_NAMES=
  17699. export COLLECT_NAMES
  17700. fi
  17701. _LT_EOF
  17702. ;;
  17703. esac
  17704. ltmain=$ac_aux_dir/ltmain.sh
  17705. # We use sed instead of cat because bash on DJGPP gets confused if
  17706. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17707. # text mode, it properly converts lines to CR/LF. This bash problem
  17708. # is reportedly fixed, but why not run on old versions too?
  17709. sed '$q' "$ltmain" >> "$cfgfile" \
  17710. || (rm -f "$cfgfile"; exit 1)
  17711. mv -f "$cfgfile" "$ofile" ||
  17712. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17713. chmod +x "$ofile"
  17714. ;;
  17715. esac
  17716. done # for ac_tag
  17717. as_fn_exit 0
  17718. _ACEOF
  17719. ac_clean_files=$ac_clean_files_save
  17720. test $ac_write_fail = 0 ||
  17721. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17722. # configure is writing to config.log, and then calls config.status.
  17723. # config.status does its own redirection, appending to config.log.
  17724. # Unfortunately, on DOS this fails, as config.log is still kept open
  17725. # by configure, so config.status won't be able to write to it; its
  17726. # output is simply discarded. So we exec the FD to /dev/null,
  17727. # effectively closing config.log, so it can be properly (re)opened and
  17728. # appended to by config.status. When coming back to configure, we
  17729. # need to make the FD available again.
  17730. if test "$no_create" != yes; then
  17731. ac_cs_success=:
  17732. ac_config_status_args=
  17733. test "$silent" = yes &&
  17734. ac_config_status_args="$ac_config_status_args --quiet"
  17735. exec 5>/dev/null
  17736. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17737. exec 5>>config.log
  17738. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17739. # would make configure fail if this is the last instruction.
  17740. $ac_cs_success || as_fn_exit 1
  17741. fi
  17742. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17744. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17745. fi