1
0

configure 853 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. PIPEWIRE_LIBS
  630. PIPEWIRE_CFLAGS
  631. ESD_LIBS
  632. ESD_CFLAGS
  633. ESD_CONFIG
  634. JACK_LIBS
  635. JACK_CFLAGS
  636. ALSA_LIBS
  637. ALSA_CFLAGS
  638. POW_LIB
  639. LIBOBJS
  640. ALLOCA
  641. LIBTOOLLINKERTAG
  642. LINKER
  643. PKG_CONFIG_LIBDIR
  644. PKG_CONFIG_PATH
  645. PKG_CONFIG
  646. SET_MAKE
  647. INSTALL_DATA
  648. INSTALL_SCRIPT
  649. INSTALL_PROGRAM
  650. CXXCPP
  651. ac_ct_CXX
  652. CXXFLAGS
  653. CXX
  654. LT_AGE
  655. LT_REVISION
  656. LT_CURRENT
  657. LT_RELEASE
  658. RC
  659. CPP
  660. OTOOL64
  661. OTOOL
  662. LIPO
  663. NMEDIT
  664. DSYMUTIL
  665. MANIFEST_TOOL
  666. AWK
  667. RANLIB
  668. STRIP
  669. ac_ct_AR
  670. AR
  671. LN_S
  672. NM
  673. ac_ct_DUMPBIN
  674. DUMPBIN
  675. LD
  676. FGREP
  677. EGREP
  678. GREP
  679. SED
  680. OBJEXT
  681. EXEEXT
  682. ac_ct_CC
  683. CPPFLAGS
  684. LDFLAGS
  685. CFLAGS
  686. CC
  687. host_os
  688. host_vendor
  689. host_cpu
  690. host
  691. build_os
  692. build_vendor
  693. build_cpu
  694. build
  695. LIBTOOL
  696. OBJDUMP
  697. DLLTOOL
  698. AS
  699. SDL_VERSION
  700. SDL_BINARY_AGE
  701. SDL_INTERFACE_AGE
  702. SDL_MICRO_VERSION
  703. SDL_MINOR_VERSION
  704. SDL_MAJOR_VERSION
  705. target_alias
  706. host_alias
  707. build_alias
  708. LIBS
  709. ECHO_T
  710. ECHO_N
  711. ECHO_C
  712. DEFS
  713. mandir
  714. localedir
  715. libdir
  716. psdir
  717. pdfdir
  718. dvidir
  719. htmldir
  720. infodir
  721. docdir
  722. oldincludedir
  723. includedir
  724. localstatedir
  725. sharedstatedir
  726. sysconfdir
  727. datadir
  728. datarootdir
  729. libexecdir
  730. sbindir
  731. bindir
  732. program_transform_name
  733. prefix
  734. exec_prefix
  735. PACKAGE_URL
  736. PACKAGE_BUGREPORT
  737. PACKAGE_STRING
  738. PACKAGE_VERSION
  739. PACKAGE_TARNAME
  740. PACKAGE_NAME
  741. PATH_SEPARATOR
  742. SHELL'
  743. ac_subst_files=''
  744. ac_user_opts='
  745. enable_option_checking
  746. enable_shared
  747. enable_static
  748. with_pic
  749. enable_fast_install
  750. with_gnu_ld
  751. with_sysroot
  752. enable_libtool_lock
  753. enable_assertions
  754. enable_dependency_tracking
  755. enable_libc
  756. enable_gcc_atomics
  757. enable_atomic
  758. enable_audio
  759. enable_video
  760. enable_render
  761. enable_events
  762. enable_joystick
  763. enable_haptic
  764. enable_sensor
  765. enable_power
  766. enable_filesystem
  767. enable_threads
  768. enable_timers
  769. enable_file
  770. enable_loadso
  771. enable_cpuinfo
  772. enable_assembly
  773. enable_ssemath
  774. enable_mmx
  775. enable_3dnow
  776. enable_sse
  777. enable_sse2
  778. enable_sse3
  779. enable_altivec
  780. enable_oss
  781. enable_alsa
  782. with_alsa_prefix
  783. with_alsa_inc_prefix
  784. enable_alsatest
  785. enable_alsa_shared
  786. enable_jack
  787. enable_jack_shared
  788. enable_esd
  789. with_esd_prefix
  790. with_esd_exec_prefix
  791. enable_esdtest
  792. enable_esd_shared
  793. enable_pipewire
  794. enable_pipewire_shared
  795. enable_pulseaudio
  796. enable_pulseaudio_shared
  797. enable_arts
  798. enable_arts_shared
  799. enable_nas
  800. enable_nas_shared
  801. enable_sndio
  802. enable_sndio_shared
  803. enable_fusionsound
  804. enable_fusionsound_shared
  805. enable_diskaudio
  806. enable_dummyaudio
  807. enable_libsamplerate
  808. enable_libsamplerate_shared
  809. enable_arm_simd
  810. enable_arm_neon
  811. enable_video_wayland
  812. enable_video_wayland_qt_touch
  813. enable_wayland_shared
  814. enable_libdecor
  815. enable_libdecor_shared
  816. enable_video_rpi
  817. enable_video_x11
  818. with_x
  819. enable_x11_shared
  820. enable_video_x11_xcursor
  821. enable_video_x11_xdbe
  822. enable_video_x11_xinerama
  823. enable_video_x11_xinput
  824. enable_video_x11_xfixes
  825. enable_video_x11_xrandr
  826. enable_video_x11_scrnsaver
  827. enable_video_x11_xshape
  828. enable_video_x11_vm
  829. enable_video_vivante
  830. enable_video_cocoa
  831. enable_video_metal
  832. enable_render_metal
  833. enable_video_directfb
  834. enable_directfb_shared
  835. enable_video_kmsdrm
  836. enable_kmsdrm_shared
  837. enable_video_dummy
  838. enable_video_opengl
  839. enable_video_opengles
  840. enable_video_opengles1
  841. enable_video_opengles2
  842. enable_video_vulkan
  843. enable_libudev
  844. enable_dbus
  845. enable_ime
  846. enable_ibus
  847. enable_fcitx
  848. enable_joystick_mfi
  849. enable_pthreads
  850. enable_pthread_sem
  851. enable_directx
  852. enable_xinput
  853. enable_wasapi
  854. enable_hidapi
  855. enable_hidapi_libusb
  856. enable_clock_gettime
  857. enable_rpath
  858. enable_backgrounding_signal
  859. enable_foregrounding_signal
  860. enable_joystick_virtual
  861. enable_render_d3d
  862. enable_sdl2_config
  863. '
  864. ac_precious_vars='build_alias
  865. host_alias
  866. target_alias
  867. CC
  868. CFLAGS
  869. LDFLAGS
  870. LIBS
  871. CPPFLAGS
  872. CPP
  873. CXX
  874. CXXFLAGS
  875. CCC
  876. CXXCPP
  877. PKG_CONFIG
  878. PKG_CONFIG_PATH
  879. PKG_CONFIG_LIBDIR
  880. JACK_CFLAGS
  881. JACK_LIBS
  882. PIPEWIRE_CFLAGS
  883. PIPEWIRE_LIBS
  884. PULSEAUDIO_CFLAGS
  885. PULSEAUDIO_LIBS
  886. FUSIONSOUND_CFLAGS
  887. FUSIONSOUND_LIBS
  888. RPI_CFLAGS
  889. RPI_LIBS
  890. XMKMF
  891. DIRECTFB_CFLAGS
  892. DIRECTFB_LIBS
  893. LIBDRM_CFLAGS
  894. LIBDRM_LIBS
  895. LIBGBM_CFLAGS
  896. LIBGBM_LIBS
  897. DBUS_CFLAGS
  898. DBUS_LIBS
  899. IBUS_CFLAGS
  900. IBUS_LIBS
  901. LIBUSB_CFLAGS
  902. LIBUSB_LIBS'
  903. # Initialize some variables set by options.
  904. ac_init_help=
  905. ac_init_version=false
  906. ac_unrecognized_opts=
  907. ac_unrecognized_sep=
  908. # The variables have the same names as the options, with
  909. # dashes changed to underlines.
  910. cache_file=/dev/null
  911. exec_prefix=NONE
  912. no_create=
  913. no_recursion=
  914. prefix=NONE
  915. program_prefix=NONE
  916. program_suffix=NONE
  917. program_transform_name=s,x,x,
  918. silent=
  919. site=
  920. srcdir=
  921. verbose=
  922. x_includes=NONE
  923. x_libraries=NONE
  924. # Installation directory options.
  925. # These are left unexpanded so users can "make install exec_prefix=/foo"
  926. # and all the variables that are supposed to be based on exec_prefix
  927. # by default will actually change.
  928. # Use braces instead of parens because sh, perl, etc. also accept them.
  929. # (The list follows the same order as the GNU Coding Standards.)
  930. bindir='${exec_prefix}/bin'
  931. sbindir='${exec_prefix}/sbin'
  932. libexecdir='${exec_prefix}/libexec'
  933. datarootdir='${prefix}/share'
  934. datadir='${datarootdir}'
  935. sysconfdir='${prefix}/etc'
  936. sharedstatedir='${prefix}/com'
  937. localstatedir='${prefix}/var'
  938. includedir='${prefix}/include'
  939. oldincludedir='/usr/include'
  940. docdir='${datarootdir}/doc/${PACKAGE}'
  941. infodir='${datarootdir}/info'
  942. htmldir='${docdir}'
  943. dvidir='${docdir}'
  944. pdfdir='${docdir}'
  945. psdir='${docdir}'
  946. libdir='${exec_prefix}/lib'
  947. localedir='${datarootdir}/locale'
  948. mandir='${datarootdir}/man'
  949. ac_prev=
  950. ac_dashdash=
  951. for ac_option
  952. do
  953. # If the previous option needs an argument, assign it.
  954. if test -n "$ac_prev"; then
  955. eval $ac_prev=\$ac_option
  956. ac_prev=
  957. continue
  958. fi
  959. case $ac_option in
  960. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  961. *=) ac_optarg= ;;
  962. *) ac_optarg=yes ;;
  963. esac
  964. # Accept the important Cygnus configure options, so we can diagnose typos.
  965. case $ac_dashdash$ac_option in
  966. --)
  967. ac_dashdash=yes ;;
  968. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  969. ac_prev=bindir ;;
  970. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  971. bindir=$ac_optarg ;;
  972. -build | --build | --buil | --bui | --bu)
  973. ac_prev=build_alias ;;
  974. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  975. build_alias=$ac_optarg ;;
  976. -cache-file | --cache-file | --cache-fil | --cache-fi \
  977. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  978. ac_prev=cache_file ;;
  979. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  980. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  981. cache_file=$ac_optarg ;;
  982. --config-cache | -C)
  983. cache_file=config.cache ;;
  984. -datadir | --datadir | --datadi | --datad)
  985. ac_prev=datadir ;;
  986. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  987. datadir=$ac_optarg ;;
  988. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  989. | --dataroo | --dataro | --datar)
  990. ac_prev=datarootdir ;;
  991. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  992. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  993. datarootdir=$ac_optarg ;;
  994. -disable-* | --disable-*)
  995. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  996. # Reject names that are not valid shell variable names.
  997. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  998. as_fn_error $? "invalid feature name: $ac_useropt"
  999. ac_useropt_orig=$ac_useropt
  1000. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1001. case $ac_user_opts in
  1002. *"
  1003. "enable_$ac_useropt"
  1004. "*) ;;
  1005. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1006. ac_unrecognized_sep=', ';;
  1007. esac
  1008. eval enable_$ac_useropt=no ;;
  1009. -docdir | --docdir | --docdi | --doc | --do)
  1010. ac_prev=docdir ;;
  1011. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1012. docdir=$ac_optarg ;;
  1013. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1014. ac_prev=dvidir ;;
  1015. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1016. dvidir=$ac_optarg ;;
  1017. -enable-* | --enable-*)
  1018. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1021. as_fn_error $? "invalid feature name: $ac_useropt"
  1022. ac_useropt_orig=$ac_useropt
  1023. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1024. case $ac_user_opts in
  1025. *"
  1026. "enable_$ac_useropt"
  1027. "*) ;;
  1028. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1029. ac_unrecognized_sep=', ';;
  1030. esac
  1031. eval enable_$ac_useropt=\$ac_optarg ;;
  1032. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1033. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1034. | --exec | --exe | --ex)
  1035. ac_prev=exec_prefix ;;
  1036. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1037. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1038. | --exec=* | --exe=* | --ex=*)
  1039. exec_prefix=$ac_optarg ;;
  1040. -gas | --gas | --ga | --g)
  1041. # Obsolete; use --with-gas.
  1042. with_gas=yes ;;
  1043. -help | --help | --hel | --he | -h)
  1044. ac_init_help=long ;;
  1045. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1046. ac_init_help=recursive ;;
  1047. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1048. ac_init_help=short ;;
  1049. -host | --host | --hos | --ho)
  1050. ac_prev=host_alias ;;
  1051. -host=* | --host=* | --hos=* | --ho=*)
  1052. host_alias=$ac_optarg ;;
  1053. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1054. ac_prev=htmldir ;;
  1055. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1056. | --ht=*)
  1057. htmldir=$ac_optarg ;;
  1058. -includedir | --includedir | --includedi | --included | --include \
  1059. | --includ | --inclu | --incl | --inc)
  1060. ac_prev=includedir ;;
  1061. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1062. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1063. includedir=$ac_optarg ;;
  1064. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1065. ac_prev=infodir ;;
  1066. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1067. infodir=$ac_optarg ;;
  1068. -libdir | --libdir | --libdi | --libd)
  1069. ac_prev=libdir ;;
  1070. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1071. libdir=$ac_optarg ;;
  1072. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1073. | --libexe | --libex | --libe)
  1074. ac_prev=libexecdir ;;
  1075. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1076. | --libexe=* | --libex=* | --libe=*)
  1077. libexecdir=$ac_optarg ;;
  1078. -localedir | --localedir | --localedi | --localed | --locale)
  1079. ac_prev=localedir ;;
  1080. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1081. localedir=$ac_optarg ;;
  1082. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1083. | --localstate | --localstat | --localsta | --localst | --locals)
  1084. ac_prev=localstatedir ;;
  1085. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1086. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1087. localstatedir=$ac_optarg ;;
  1088. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1089. ac_prev=mandir ;;
  1090. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1091. mandir=$ac_optarg ;;
  1092. -nfp | --nfp | --nf)
  1093. # Obsolete; use --without-fp.
  1094. with_fp=no ;;
  1095. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1096. | --no-cr | --no-c | -n)
  1097. no_create=yes ;;
  1098. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1099. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1100. no_recursion=yes ;;
  1101. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1102. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1103. | --oldin | --oldi | --old | --ol | --o)
  1104. ac_prev=oldincludedir ;;
  1105. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1106. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1107. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1108. oldincludedir=$ac_optarg ;;
  1109. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1110. ac_prev=prefix ;;
  1111. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1112. prefix=$ac_optarg ;;
  1113. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1114. | --program-pre | --program-pr | --program-p)
  1115. ac_prev=program_prefix ;;
  1116. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1117. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1118. program_prefix=$ac_optarg ;;
  1119. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1120. | --program-suf | --program-su | --program-s)
  1121. ac_prev=program_suffix ;;
  1122. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1123. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1124. program_suffix=$ac_optarg ;;
  1125. -program-transform-name | --program-transform-name \
  1126. | --program-transform-nam | --program-transform-na \
  1127. | --program-transform-n | --program-transform- \
  1128. | --program-transform | --program-transfor \
  1129. | --program-transfo | --program-transf \
  1130. | --program-trans | --program-tran \
  1131. | --progr-tra | --program-tr | --program-t)
  1132. ac_prev=program_transform_name ;;
  1133. -program-transform-name=* | --program-transform-name=* \
  1134. | --program-transform-nam=* | --program-transform-na=* \
  1135. | --program-transform-n=* | --program-transform-=* \
  1136. | --program-transform=* | --program-transfor=* \
  1137. | --program-transfo=* | --program-transf=* \
  1138. | --program-trans=* | --program-tran=* \
  1139. | --progr-tra=* | --program-tr=* | --program-t=*)
  1140. program_transform_name=$ac_optarg ;;
  1141. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1142. ac_prev=pdfdir ;;
  1143. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1144. pdfdir=$ac_optarg ;;
  1145. -psdir | --psdir | --psdi | --psd | --ps)
  1146. ac_prev=psdir ;;
  1147. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1148. psdir=$ac_optarg ;;
  1149. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1150. | -silent | --silent | --silen | --sile | --sil)
  1151. silent=yes ;;
  1152. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1153. ac_prev=sbindir ;;
  1154. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1155. | --sbi=* | --sb=*)
  1156. sbindir=$ac_optarg ;;
  1157. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1158. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1159. | --sharedst | --shareds | --shared | --share | --shar \
  1160. | --sha | --sh)
  1161. ac_prev=sharedstatedir ;;
  1162. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1163. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1164. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1165. | --sha=* | --sh=*)
  1166. sharedstatedir=$ac_optarg ;;
  1167. -site | --site | --sit)
  1168. ac_prev=site ;;
  1169. -site=* | --site=* | --sit=*)
  1170. site=$ac_optarg ;;
  1171. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1172. ac_prev=srcdir ;;
  1173. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1174. srcdir=$ac_optarg ;;
  1175. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1176. | --syscon | --sysco | --sysc | --sys | --sy)
  1177. ac_prev=sysconfdir ;;
  1178. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1179. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1180. sysconfdir=$ac_optarg ;;
  1181. -target | --target | --targe | --targ | --tar | --ta | --t)
  1182. ac_prev=target_alias ;;
  1183. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1184. target_alias=$ac_optarg ;;
  1185. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1186. verbose=yes ;;
  1187. -version | --version | --versio | --versi | --vers | -V)
  1188. ac_init_version=: ;;
  1189. -with-* | --with-*)
  1190. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1191. # Reject names that are not valid shell variable names.
  1192. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1193. as_fn_error $? "invalid package name: $ac_useropt"
  1194. ac_useropt_orig=$ac_useropt
  1195. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1196. case $ac_user_opts in
  1197. *"
  1198. "with_$ac_useropt"
  1199. "*) ;;
  1200. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1201. ac_unrecognized_sep=', ';;
  1202. esac
  1203. eval with_$ac_useropt=\$ac_optarg ;;
  1204. -without-* | --without-*)
  1205. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1206. # Reject names that are not valid shell variable names.
  1207. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1208. as_fn_error $? "invalid package name: $ac_useropt"
  1209. ac_useropt_orig=$ac_useropt
  1210. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1211. case $ac_user_opts in
  1212. *"
  1213. "with_$ac_useropt"
  1214. "*) ;;
  1215. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1216. ac_unrecognized_sep=', ';;
  1217. esac
  1218. eval with_$ac_useropt=no ;;
  1219. --x)
  1220. # Obsolete; use --with-x.
  1221. with_x=yes ;;
  1222. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1223. | --x-incl | --x-inc | --x-in | --x-i)
  1224. ac_prev=x_includes ;;
  1225. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1226. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1227. x_includes=$ac_optarg ;;
  1228. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1229. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1230. ac_prev=x_libraries ;;
  1231. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1232. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1233. x_libraries=$ac_optarg ;;
  1234. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1235. Try \`$0 --help' for more information"
  1236. ;;
  1237. *=*)
  1238. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1239. # Reject names that are not valid shell variable names.
  1240. case $ac_envvar in #(
  1241. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1242. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1243. esac
  1244. eval $ac_envvar=\$ac_optarg
  1245. export $ac_envvar ;;
  1246. *)
  1247. # FIXME: should be removed in autoconf 3.0.
  1248. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1249. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1250. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1251. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1252. ;;
  1253. esac
  1254. done
  1255. if test -n "$ac_prev"; then
  1256. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1257. as_fn_error $? "missing argument to $ac_option"
  1258. fi
  1259. if test -n "$ac_unrecognized_opts"; then
  1260. case $enable_option_checking in
  1261. no) ;;
  1262. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1263. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1264. esac
  1265. fi
  1266. # Check all directory arguments for consistency.
  1267. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1268. datadir sysconfdir sharedstatedir localstatedir includedir \
  1269. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1270. libdir localedir mandir
  1271. do
  1272. eval ac_val=\$$ac_var
  1273. # Remove trailing slashes.
  1274. case $ac_val in
  1275. */ )
  1276. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1277. eval $ac_var=\$ac_val;;
  1278. esac
  1279. # Be sure to have absolute directory names.
  1280. case $ac_val in
  1281. [\\/$]* | ?:[\\/]* ) continue;;
  1282. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1283. esac
  1284. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1285. done
  1286. # There might be people who depend on the old broken behavior: `$host'
  1287. # used to hold the argument of --host etc.
  1288. # FIXME: To remove some day.
  1289. build=$build_alias
  1290. host=$host_alias
  1291. target=$target_alias
  1292. # FIXME: To remove some day.
  1293. if test "x$host_alias" != x; then
  1294. if test "x$build_alias" = x; then
  1295. cross_compiling=maybe
  1296. elif test "x$build_alias" != "x$host_alias"; then
  1297. cross_compiling=yes
  1298. fi
  1299. fi
  1300. ac_tool_prefix=
  1301. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1302. test "$silent" = yes && exec 6>/dev/null
  1303. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1304. ac_ls_di=`ls -di .` &&
  1305. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1306. as_fn_error $? "working directory cannot be determined"
  1307. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1308. as_fn_error $? "pwd does not report name of working directory"
  1309. # Find the source files, if location was not specified.
  1310. if test -z "$srcdir"; then
  1311. ac_srcdir_defaulted=yes
  1312. # Try the directory containing this script, then the parent directory.
  1313. ac_confdir=`$as_dirname -- "$as_myself" ||
  1314. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1315. X"$as_myself" : 'X\(//\)[^/]' \| \
  1316. X"$as_myself" : 'X\(//\)$' \| \
  1317. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1318. $as_echo X"$as_myself" |
  1319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1320. s//\1/
  1321. q
  1322. }
  1323. /^X\(\/\/\)[^/].*/{
  1324. s//\1/
  1325. q
  1326. }
  1327. /^X\(\/\/\)$/{
  1328. s//\1/
  1329. q
  1330. }
  1331. /^X\(\/\).*/{
  1332. s//\1/
  1333. q
  1334. }
  1335. s/.*/./; q'`
  1336. srcdir=$ac_confdir
  1337. if test ! -r "$srcdir/$ac_unique_file"; then
  1338. srcdir=..
  1339. fi
  1340. else
  1341. ac_srcdir_defaulted=no
  1342. fi
  1343. if test ! -r "$srcdir/$ac_unique_file"; then
  1344. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1345. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1346. fi
  1347. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1348. ac_abs_confdir=`(
  1349. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1350. pwd)`
  1351. # When building in place, set srcdir=.
  1352. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1353. srcdir=.
  1354. fi
  1355. # Remove unnecessary trailing slashes from srcdir.
  1356. # Double slashes in file names in object file debugging info
  1357. # mess up M-x gdb in Emacs.
  1358. case $srcdir in
  1359. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1360. esac
  1361. for ac_var in $ac_precious_vars; do
  1362. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1363. eval ac_env_${ac_var}_value=\$${ac_var}
  1364. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1365. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1366. done
  1367. #
  1368. # Report the --help message.
  1369. #
  1370. if test "$ac_init_help" = "long"; then
  1371. # Omit some internal or obsolete options to make the list less imposing.
  1372. # This message is too long to be a string in the A/UX 3.1 sh.
  1373. cat <<_ACEOF
  1374. \`configure' configures this package to adapt to many kinds of systems.
  1375. Usage: $0 [OPTION]... [VAR=VALUE]...
  1376. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1377. VAR=VALUE. See below for descriptions of some of the useful variables.
  1378. Defaults for the options are specified in brackets.
  1379. Configuration:
  1380. -h, --help display this help and exit
  1381. --help=short display options specific to this package
  1382. --help=recursive display the short help of all the included packages
  1383. -V, --version display version information and exit
  1384. -q, --quiet, --silent do not print \`checking ...' messages
  1385. --cache-file=FILE cache test results in FILE [disabled]
  1386. -C, --config-cache alias for \`--cache-file=config.cache'
  1387. -n, --no-create do not create output files
  1388. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1389. Installation directories:
  1390. --prefix=PREFIX install architecture-independent files in PREFIX
  1391. [$ac_default_prefix]
  1392. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1393. [PREFIX]
  1394. By default, \`make install' will install all the files in
  1395. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1396. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1397. for instance \`--prefix=\$HOME'.
  1398. For better control, use the options below.
  1399. Fine tuning of the installation directories:
  1400. --bindir=DIR user executables [EPREFIX/bin]
  1401. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1402. --libexecdir=DIR program executables [EPREFIX/libexec]
  1403. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1404. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1405. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1406. --libdir=DIR object code libraries [EPREFIX/lib]
  1407. --includedir=DIR C header files [PREFIX/include]
  1408. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1409. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1410. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1411. --infodir=DIR info documentation [DATAROOTDIR/info]
  1412. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1413. --mandir=DIR man documentation [DATAROOTDIR/man]
  1414. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1415. --htmldir=DIR html documentation [DOCDIR]
  1416. --dvidir=DIR dvi documentation [DOCDIR]
  1417. --pdfdir=DIR pdf documentation [DOCDIR]
  1418. --psdir=DIR ps documentation [DOCDIR]
  1419. _ACEOF
  1420. cat <<\_ACEOF
  1421. X features:
  1422. --x-includes=DIR X include files are in DIR
  1423. --x-libraries=DIR X library files are in DIR
  1424. System types:
  1425. --build=BUILD configure for building on BUILD [guessed]
  1426. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1427. _ACEOF
  1428. fi
  1429. if test -n "$ac_init_help"; then
  1430. cat <<\_ACEOF
  1431. Optional Features:
  1432. --disable-option-checking ignore unrecognized --enable/--with options
  1433. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1434. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1435. --enable-shared[=PKGS] build shared libraries [default=yes]
  1436. --enable-static[=PKGS] build static libraries [default=yes]
  1437. --enable-fast-install[=PKGS]
  1438. optimize for fast installation [default=yes]
  1439. --disable-libtool-lock avoid locking (might break parallel builds)
  1440. --enable-assertions Enable internal sanity checks
  1441. (auto/disabled/release/enabled/paranoid)
  1442. [default=auto]
  1443. --enable-dependency-tracking
  1444. Use gcc -MMD -MT dependency tracking [default=yes]
  1445. --enable-libc Use the system C library [default=yes]
  1446. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1447. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1448. --enable-audio Enable the audio subsystem [default=yes]
  1449. --enable-video Enable the video subsystem [default=yes]
  1450. --enable-render Enable the render subsystem [default=yes]
  1451. --enable-events Enable the events subsystem [default=yes]
  1452. --enable-joystick Enable the joystick subsystem [default=yes]
  1453. --enable-haptic Enable the haptic (force feedback) subsystem
  1454. [default=yes]
  1455. --enable-sensor Enable the sensor subsystem [default=yes]
  1456. --enable-power Enable the power subsystem [default=yes]
  1457. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1458. --enable-threads Enable the threading subsystem [default=yes]
  1459. --enable-timers Enable the timer subsystem [default=yes]
  1460. --enable-file Enable the file subsystem [default=yes]
  1461. --enable-loadso Enable the shared object loading subsystem
  1462. [default=yes]
  1463. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1464. --enable-assembly Enable assembly routines [default=yes]
  1465. --enable-ssemath Allow GCC to use SSE floating point math
  1466. [default=maybe]
  1467. --enable-mmx use MMX assembly routines [default=yes]
  1468. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1469. --enable-sse use SSE assembly routines [default=yes]
  1470. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1471. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1472. --enable-altivec use Altivec assembly routines [default=yes]
  1473. --enable-oss support the OSS audio API [default=maybe]
  1474. --enable-alsa support the ALSA audio API [default=yes]
  1475. --disable-alsatest Do not try to compile and run a test Alsa program
  1476. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1477. --enable-jack use JACK audio [default=yes]
  1478. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1479. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1480. --disable-esdtest Do not try to compile and run a test ESD program
  1481. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1482. --enable-pipewire use Pipewire audio [default=yes]
  1483. --enable-pipewire-shared
  1484. dynamically load Pipewire support [default=yes]
  1485. --enable-pulseaudio use PulseAudio [default=yes]
  1486. --enable-pulseaudio-shared
  1487. dynamically load PulseAudio support [default=yes]
  1488. --enable-arts support the Analog Real Time Synthesizer
  1489. [default=yes]
  1490. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1491. --enable-nas support the NAS audio API [default=yes]
  1492. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1493. --enable-sndio support the sndio audio API [default=yes]
  1494. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1495. --enable-fusionsound use FusionSound audio driver [default=no]
  1496. --enable-fusionsound-shared
  1497. dynamically load fusionsound audio support
  1498. [default=yes]
  1499. --enable-diskaudio support the disk writer audio driver [default=yes]
  1500. --enable-dummyaudio support the dummy audio driver [default=yes]
  1501. --enable-libsamplerate use libsamplerate for audio rate conversion
  1502. [default=yes]
  1503. --enable-libsamplerate-shared
  1504. dynamically load libsamplerate [default=yes]
  1505. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1506. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1507. --enable-video-wayland use Wayland video driver [default=yes]
  1508. --enable-video-wayland-qt-touch
  1509. QtWayland server support for Wayland video driver
  1510. [default=yes]
  1511. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1512. --enable-libdecor use libdecor for Wayland client-side decorations
  1513. [default=yes]
  1514. --enable-libdecor-shared
  1515. dynamically load libdecor [default=yes]
  1516. --enable-video-rpi use Raspberry Pi video driver [default=yes]
  1517. --enable-video-x11 use X11 video driver [default=yes]
  1518. --enable-x11-shared dynamically load X11 support [default=maybe]
  1519. --enable-video-x11-xcursor
  1520. enable X11 Xcursor support [default=yes]
  1521. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1522. --enable-video-x11-xinerama
  1523. enable X11 Xinerama support [default=yes]
  1524. --enable-video-x11-xinput
  1525. enable X11 XInput extension for manymouse, tablets,
  1526. etc [default=yes]
  1527. --enable-video-x11-xfixes
  1528. enable X11 Xfixes support [default=yes]
  1529. --enable-video-x11-xrandr
  1530. enable X11 Xrandr extension for fullscreen
  1531. [default=yes]
  1532. --enable-video-x11-scrnsaver
  1533. enable X11 screensaver extension [default=yes]
  1534. --enable-video-x11-xshape
  1535. enable X11 XShape support [default=yes]
  1536. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1537. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1538. --enable-video-cocoa use Cocoa video driver [default=yes]
  1539. --enable-video-metal include Metal support [default=yes]
  1540. --enable-render-metal enable the Metal render driver [default=yes]
  1541. --enable-video-directfb use DirectFB video driver [default=no]
  1542. --enable-directfb-shared
  1543. dynamically load directfb support [default=yes]
  1544. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1545. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1546. --enable-video-dummy use dummy video driver [default=yes]
  1547. --enable-video-opengl include OpenGL support [default=yes]
  1548. --enable-video-opengles include OpenGL ES support [default=yes]
  1549. --enable-video-opengles1
  1550. include OpenGL ES 1.1 support [default=yes]
  1551. --enable-video-opengles2
  1552. include OpenGL ES 2.0 support [default=yes]
  1553. --enable-video-vulkan include Vulkan support [default=yes]
  1554. --enable-libudev enable libudev support [default=yes]
  1555. --enable-dbus enable D-Bus support [default=yes]
  1556. --enable-ime enable IME support [default=yes]
  1557. --enable-ibus enable IBus support [default=yes]
  1558. --enable-fcitx enable fcitx support [default=yes]
  1559. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1560. --enable-pthreads use POSIX threads for multi-threading
  1561. [default=maybe]
  1562. --enable-pthread-sem use pthread semaphores [default=maybe]
  1563. --enable-directx use DirectX for Windows audio/video [default=yes]
  1564. --enable-xinput use Xinput for Windows [default=yes]
  1565. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1566. --enable-hidapi use HIDAPI for low level joystick drivers
  1567. [default=yes]
  1568. --enable-hidapi-libusb use libusb for low level joystick drivers
  1569. [default=maybe]
  1570. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1571. UNIX [default=yes]
  1572. --enable-rpath use an rpath when linking SDL [default=yes]
  1573. --enable-backgrounding-signal
  1574. number to use for magic backgrounding signal or 'no'
  1575. [default=no]
  1576. --enable-foregrounding-signal
  1577. number to use for magic foregrounding signal or 'no'
  1578. [default=no]
  1579. --enable-joystick-virtual
  1580. enable virtual joystick APIs [default=yes]
  1581. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1582. --enable-sdl2-config Install sdl2-config [default=yes]
  1583. Optional Packages:
  1584. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1585. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1586. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1587. both]
  1588. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1589. --with-sysroot=DIR Search for dependent libraries within DIR
  1590. (or the compiler's sysroot if not specified).
  1591. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1592. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1593. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1594. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1595. --with-x use the X Window System
  1596. Some influential environment variables:
  1597. CC C compiler command
  1598. CFLAGS C compiler flags
  1599. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1600. nonstandard directory <lib dir>
  1601. LIBS libraries to pass to the linker, e.g. -l<library>
  1602. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1603. you have headers in a nonstandard directory <include dir>
  1604. CPP C preprocessor
  1605. CXX C++ compiler command
  1606. CXXFLAGS C++ compiler flags
  1607. CXXCPP C++ preprocessor
  1608. PKG_CONFIG path to pkg-config utility
  1609. PKG_CONFIG_PATH
  1610. directories to add to pkg-config's search path
  1611. PKG_CONFIG_LIBDIR
  1612. path overriding pkg-config's built-in search path
  1613. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1614. JACK_LIBS linker flags for JACK, overriding pkg-config
  1615. PIPEWIRE_CFLAGS
  1616. C compiler flags for PIPEWIRE, overriding pkg-config
  1617. PIPEWIRE_LIBS
  1618. linker flags for PIPEWIRE, overriding pkg-config
  1619. PULSEAUDIO_CFLAGS
  1620. C compiler flags for PULSEAUDIO, overriding pkg-config
  1621. PULSEAUDIO_LIBS
  1622. linker flags for PULSEAUDIO, overriding pkg-config
  1623. FUSIONSOUND_CFLAGS
  1624. C compiler flags for FUSIONSOUND, overriding pkg-config
  1625. FUSIONSOUND_LIBS
  1626. linker flags for FUSIONSOUND, overriding pkg-config
  1627. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1628. RPI_LIBS linker flags for RPI, overriding pkg-config
  1629. XMKMF Path to xmkmf, Makefile generator for X Window System
  1630. DIRECTFB_CFLAGS
  1631. C compiler flags for DIRECTFB, overriding pkg-config
  1632. DIRECTFB_LIBS
  1633. linker flags for DIRECTFB, overriding pkg-config
  1634. LIBDRM_CFLAGS
  1635. C compiler flags for LIBDRM, overriding pkg-config
  1636. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1637. LIBGBM_CFLAGS
  1638. C compiler flags for LIBGBM, overriding pkg-config
  1639. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1640. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1641. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1642. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1643. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1644. LIBUSB_CFLAGS
  1645. C compiler flags for LIBUSB, overriding pkg-config
  1646. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1647. Use these variables to override the choices made by `configure' or to help
  1648. it to find libraries and programs with nonstandard names/locations.
  1649. Report bugs to the package provider.
  1650. _ACEOF
  1651. ac_status=$?
  1652. fi
  1653. if test "$ac_init_help" = "recursive"; then
  1654. # If there are subdirs, report their specific --help.
  1655. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1656. test -d "$ac_dir" ||
  1657. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1658. continue
  1659. ac_builddir=.
  1660. case "$ac_dir" in
  1661. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1662. *)
  1663. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1664. # A ".." for each directory in $ac_dir_suffix.
  1665. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1666. case $ac_top_builddir_sub in
  1667. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1668. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1669. esac ;;
  1670. esac
  1671. ac_abs_top_builddir=$ac_pwd
  1672. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1673. # for backward compatibility:
  1674. ac_top_builddir=$ac_top_build_prefix
  1675. case $srcdir in
  1676. .) # We are building in place.
  1677. ac_srcdir=.
  1678. ac_top_srcdir=$ac_top_builddir_sub
  1679. ac_abs_top_srcdir=$ac_pwd ;;
  1680. [\\/]* | ?:[\\/]* ) # Absolute name.
  1681. ac_srcdir=$srcdir$ac_dir_suffix;
  1682. ac_top_srcdir=$srcdir
  1683. ac_abs_top_srcdir=$srcdir ;;
  1684. *) # Relative name.
  1685. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1686. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1687. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1688. esac
  1689. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1690. cd "$ac_dir" || { ac_status=$?; continue; }
  1691. # Check for guested configure.
  1692. if test -f "$ac_srcdir/configure.gnu"; then
  1693. echo &&
  1694. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1695. elif test -f "$ac_srcdir/configure"; then
  1696. echo &&
  1697. $SHELL "$ac_srcdir/configure" --help=recursive
  1698. else
  1699. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1700. fi || ac_status=$?
  1701. cd "$ac_pwd" || { ac_status=$?; break; }
  1702. done
  1703. fi
  1704. test -n "$ac_init_help" && exit $ac_status
  1705. if $ac_init_version; then
  1706. cat <<\_ACEOF
  1707. configure
  1708. generated by GNU Autoconf 2.69
  1709. Copyright (C) 2012 Free Software Foundation, Inc.
  1710. This configure script is free software; the Free Software Foundation
  1711. gives unlimited permission to copy, distribute and modify it.
  1712. _ACEOF
  1713. exit
  1714. fi
  1715. ## ------------------------ ##
  1716. ## Autoconf initialization. ##
  1717. ## ------------------------ ##
  1718. # ac_fn_c_try_compile LINENO
  1719. # --------------------------
  1720. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1721. ac_fn_c_try_compile ()
  1722. {
  1723. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1724. rm -f conftest.$ac_objext
  1725. if { { ac_try="$ac_compile"
  1726. case "(($ac_try" in
  1727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1728. *) ac_try_echo=$ac_try;;
  1729. esac
  1730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1731. $as_echo "$ac_try_echo"; } >&5
  1732. (eval "$ac_compile") 2>conftest.err
  1733. ac_status=$?
  1734. if test -s conftest.err; then
  1735. grep -v '^ *+' conftest.err >conftest.er1
  1736. cat conftest.er1 >&5
  1737. mv -f conftest.er1 conftest.err
  1738. fi
  1739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1740. test $ac_status = 0; } && {
  1741. test -z "$ac_c_werror_flag" ||
  1742. test ! -s conftest.err
  1743. } && test -s conftest.$ac_objext; then :
  1744. ac_retval=0
  1745. else
  1746. $as_echo "$as_me: failed program was:" >&5
  1747. sed 's/^/| /' conftest.$ac_ext >&5
  1748. ac_retval=1
  1749. fi
  1750. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1751. as_fn_set_status $ac_retval
  1752. } # ac_fn_c_try_compile
  1753. # ac_fn_c_try_link LINENO
  1754. # -----------------------
  1755. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1756. ac_fn_c_try_link ()
  1757. {
  1758. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1759. rm -f conftest.$ac_objext conftest$ac_exeext
  1760. if { { ac_try="$ac_link"
  1761. case "(($ac_try" in
  1762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1763. *) ac_try_echo=$ac_try;;
  1764. esac
  1765. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1766. $as_echo "$ac_try_echo"; } >&5
  1767. (eval "$ac_link") 2>conftest.err
  1768. ac_status=$?
  1769. if test -s conftest.err; then
  1770. grep -v '^ *+' conftest.err >conftest.er1
  1771. cat conftest.er1 >&5
  1772. mv -f conftest.er1 conftest.err
  1773. fi
  1774. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1775. test $ac_status = 0; } && {
  1776. test -z "$ac_c_werror_flag" ||
  1777. test ! -s conftest.err
  1778. } && test -s conftest$ac_exeext && {
  1779. test "$cross_compiling" = yes ||
  1780. test -x conftest$ac_exeext
  1781. }; then :
  1782. ac_retval=0
  1783. else
  1784. $as_echo "$as_me: failed program was:" >&5
  1785. sed 's/^/| /' conftest.$ac_ext >&5
  1786. ac_retval=1
  1787. fi
  1788. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1789. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1790. # interfere with the next link command; also delete a directory that is
  1791. # left behind by Apple's compiler. We do this before executing the actions.
  1792. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1793. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1794. as_fn_set_status $ac_retval
  1795. } # ac_fn_c_try_link
  1796. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1797. # -------------------------------------------------------
  1798. # Tests whether HEADER exists and can be compiled using the include files in
  1799. # INCLUDES, setting the cache variable VAR accordingly.
  1800. ac_fn_c_check_header_compile ()
  1801. {
  1802. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1804. $as_echo_n "checking for $2... " >&6; }
  1805. if eval \${$3+:} false; then :
  1806. $as_echo_n "(cached) " >&6
  1807. else
  1808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1809. /* end confdefs.h. */
  1810. $4
  1811. #include <$2>
  1812. _ACEOF
  1813. if ac_fn_c_try_compile "$LINENO"; then :
  1814. eval "$3=yes"
  1815. else
  1816. eval "$3=no"
  1817. fi
  1818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1819. fi
  1820. eval ac_res=\$$3
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1822. $as_echo "$ac_res" >&6; }
  1823. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1824. } # ac_fn_c_check_header_compile
  1825. # ac_fn_c_try_cpp LINENO
  1826. # ----------------------
  1827. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1828. ac_fn_c_try_cpp ()
  1829. {
  1830. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1831. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1832. case "(($ac_try" in
  1833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1834. *) ac_try_echo=$ac_try;;
  1835. esac
  1836. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1837. $as_echo "$ac_try_echo"; } >&5
  1838. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1839. ac_status=$?
  1840. if test -s conftest.err; then
  1841. grep -v '^ *+' conftest.err >conftest.er1
  1842. cat conftest.er1 >&5
  1843. mv -f conftest.er1 conftest.err
  1844. fi
  1845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1846. test $ac_status = 0; } > conftest.i && {
  1847. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1848. test ! -s conftest.err
  1849. }; then :
  1850. ac_retval=0
  1851. else
  1852. $as_echo "$as_me: failed program was:" >&5
  1853. sed 's/^/| /' conftest.$ac_ext >&5
  1854. ac_retval=1
  1855. fi
  1856. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1857. as_fn_set_status $ac_retval
  1858. } # ac_fn_c_try_cpp
  1859. # ac_fn_c_try_run LINENO
  1860. # ----------------------
  1861. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1862. # that executables *can* be run.
  1863. ac_fn_c_try_run ()
  1864. {
  1865. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1866. if { { ac_try="$ac_link"
  1867. case "(($ac_try" in
  1868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1869. *) ac_try_echo=$ac_try;;
  1870. esac
  1871. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1872. $as_echo "$ac_try_echo"; } >&5
  1873. (eval "$ac_link") 2>&5
  1874. ac_status=$?
  1875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1876. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1877. { { case "(($ac_try" in
  1878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1879. *) ac_try_echo=$ac_try;;
  1880. esac
  1881. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1882. $as_echo "$ac_try_echo"; } >&5
  1883. (eval "$ac_try") 2>&5
  1884. ac_status=$?
  1885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1886. test $ac_status = 0; }; }; then :
  1887. ac_retval=0
  1888. else
  1889. $as_echo "$as_me: program exited with status $ac_status" >&5
  1890. $as_echo "$as_me: failed program was:" >&5
  1891. sed 's/^/| /' conftest.$ac_ext >&5
  1892. ac_retval=$ac_status
  1893. fi
  1894. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1895. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1896. as_fn_set_status $ac_retval
  1897. } # ac_fn_c_try_run
  1898. # ac_fn_c_check_func LINENO FUNC VAR
  1899. # ----------------------------------
  1900. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1901. ac_fn_c_check_func ()
  1902. {
  1903. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1905. $as_echo_n "checking for $2... " >&6; }
  1906. if eval \${$3+:} false; then :
  1907. $as_echo_n "(cached) " >&6
  1908. else
  1909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1910. /* end confdefs.h. */
  1911. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1912. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1913. #define $2 innocuous_$2
  1914. /* System header to define __stub macros and hopefully few prototypes,
  1915. which can conflict with char $2 (); below.
  1916. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1917. <limits.h> exists even on freestanding compilers. */
  1918. #ifdef __STDC__
  1919. # include <limits.h>
  1920. #else
  1921. # include <assert.h>
  1922. #endif
  1923. #undef $2
  1924. /* Override any GCC internal prototype to avoid an error.
  1925. Use char because int might match the return type of a GCC
  1926. builtin and then its argument prototype would still apply. */
  1927. #ifdef __cplusplus
  1928. extern "C"
  1929. #endif
  1930. char $2 ();
  1931. /* The GNU C library defines this for functions which it implements
  1932. to always fail with ENOSYS. Some functions are actually named
  1933. something starting with __ and the normal name is an alias. */
  1934. #if defined __stub_$2 || defined __stub___$2
  1935. choke me
  1936. #endif
  1937. int
  1938. main ()
  1939. {
  1940. return $2 ();
  1941. ;
  1942. return 0;
  1943. }
  1944. _ACEOF
  1945. if ac_fn_c_try_link "$LINENO"; then :
  1946. eval "$3=yes"
  1947. else
  1948. eval "$3=no"
  1949. fi
  1950. rm -f core conftest.err conftest.$ac_objext \
  1951. conftest$ac_exeext conftest.$ac_ext
  1952. fi
  1953. eval ac_res=\$$3
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1955. $as_echo "$ac_res" >&6; }
  1956. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1957. } # ac_fn_c_check_func
  1958. # ac_fn_cxx_try_compile LINENO
  1959. # ----------------------------
  1960. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1961. ac_fn_cxx_try_compile ()
  1962. {
  1963. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1964. rm -f conftest.$ac_objext
  1965. if { { ac_try="$ac_compile"
  1966. case "(($ac_try" in
  1967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1968. *) ac_try_echo=$ac_try;;
  1969. esac
  1970. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1971. $as_echo "$ac_try_echo"; } >&5
  1972. (eval "$ac_compile") 2>conftest.err
  1973. ac_status=$?
  1974. if test -s conftest.err; then
  1975. grep -v '^ *+' conftest.err >conftest.er1
  1976. cat conftest.er1 >&5
  1977. mv -f conftest.er1 conftest.err
  1978. fi
  1979. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1980. test $ac_status = 0; } && {
  1981. test -z "$ac_cxx_werror_flag" ||
  1982. test ! -s conftest.err
  1983. } && test -s conftest.$ac_objext; then :
  1984. ac_retval=0
  1985. else
  1986. $as_echo "$as_me: failed program was:" >&5
  1987. sed 's/^/| /' conftest.$ac_ext >&5
  1988. ac_retval=1
  1989. fi
  1990. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1991. as_fn_set_status $ac_retval
  1992. } # ac_fn_cxx_try_compile
  1993. # ac_fn_cxx_try_cpp LINENO
  1994. # ------------------------
  1995. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1996. ac_fn_cxx_try_cpp ()
  1997. {
  1998. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1999. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2000. case "(($ac_try" in
  2001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2002. *) ac_try_echo=$ac_try;;
  2003. esac
  2004. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2005. $as_echo "$ac_try_echo"; } >&5
  2006. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2007. ac_status=$?
  2008. if test -s conftest.err; then
  2009. grep -v '^ *+' conftest.err >conftest.er1
  2010. cat conftest.er1 >&5
  2011. mv -f conftest.er1 conftest.err
  2012. fi
  2013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2014. test $ac_status = 0; } > conftest.i && {
  2015. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2016. test ! -s conftest.err
  2017. }; then :
  2018. ac_retval=0
  2019. else
  2020. $as_echo "$as_me: failed program was:" >&5
  2021. sed 's/^/| /' conftest.$ac_ext >&5
  2022. ac_retval=1
  2023. fi
  2024. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2025. as_fn_set_status $ac_retval
  2026. } # ac_fn_cxx_try_cpp
  2027. # ac_fn_cxx_try_link LINENO
  2028. # -------------------------
  2029. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2030. ac_fn_cxx_try_link ()
  2031. {
  2032. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2033. rm -f conftest.$ac_objext conftest$ac_exeext
  2034. if { { ac_try="$ac_link"
  2035. case "(($ac_try" in
  2036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2037. *) ac_try_echo=$ac_try;;
  2038. esac
  2039. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2040. $as_echo "$ac_try_echo"; } >&5
  2041. (eval "$ac_link") 2>conftest.err
  2042. ac_status=$?
  2043. if test -s conftest.err; then
  2044. grep -v '^ *+' conftest.err >conftest.er1
  2045. cat conftest.er1 >&5
  2046. mv -f conftest.er1 conftest.err
  2047. fi
  2048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2049. test $ac_status = 0; } && {
  2050. test -z "$ac_cxx_werror_flag" ||
  2051. test ! -s conftest.err
  2052. } && test -s conftest$ac_exeext && {
  2053. test "$cross_compiling" = yes ||
  2054. test -x conftest$ac_exeext
  2055. }; then :
  2056. ac_retval=0
  2057. else
  2058. $as_echo "$as_me: failed program was:" >&5
  2059. sed 's/^/| /' conftest.$ac_ext >&5
  2060. ac_retval=1
  2061. fi
  2062. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2063. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2064. # interfere with the next link command; also delete a directory that is
  2065. # left behind by Apple's compiler. We do this before executing the actions.
  2066. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2067. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2068. as_fn_set_status $ac_retval
  2069. } # ac_fn_cxx_try_link
  2070. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2071. # -------------------------------------------------------
  2072. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2073. # the include files in INCLUDES and setting the cache variable VAR
  2074. # accordingly.
  2075. ac_fn_c_check_header_mongrel ()
  2076. {
  2077. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2078. if eval \${$3+:} false; then :
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2080. $as_echo_n "checking for $2... " >&6; }
  2081. if eval \${$3+:} false; then :
  2082. $as_echo_n "(cached) " >&6
  2083. fi
  2084. eval ac_res=\$$3
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2086. $as_echo "$ac_res" >&6; }
  2087. else
  2088. # Is the header compilable?
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2090. $as_echo_n "checking $2 usability... " >&6; }
  2091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2092. /* end confdefs.h. */
  2093. $4
  2094. #include <$2>
  2095. _ACEOF
  2096. if ac_fn_c_try_compile "$LINENO"; then :
  2097. ac_header_compiler=yes
  2098. else
  2099. ac_header_compiler=no
  2100. fi
  2101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2103. $as_echo "$ac_header_compiler" >&6; }
  2104. # Is the header present?
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2106. $as_echo_n "checking $2 presence... " >&6; }
  2107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2108. /* end confdefs.h. */
  2109. #include <$2>
  2110. _ACEOF
  2111. if ac_fn_c_try_cpp "$LINENO"; then :
  2112. ac_header_preproc=yes
  2113. else
  2114. ac_header_preproc=no
  2115. fi
  2116. rm -f conftest.err conftest.i conftest.$ac_ext
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2118. $as_echo "$ac_header_preproc" >&6; }
  2119. # So? What about this header?
  2120. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2121. yes:no: )
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2123. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2125. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2126. ;;
  2127. no:yes:* )
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2129. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2131. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2133. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2135. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2137. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2138. ;;
  2139. esac
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2141. $as_echo_n "checking for $2... " >&6; }
  2142. if eval \${$3+:} false; then :
  2143. $as_echo_n "(cached) " >&6
  2144. else
  2145. eval "$3=\$ac_header_compiler"
  2146. fi
  2147. eval ac_res=\$$3
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2149. $as_echo "$ac_res" >&6; }
  2150. fi
  2151. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2152. } # ac_fn_c_check_header_mongrel
  2153. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2154. # -------------------------------------------
  2155. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2156. # variable VAR accordingly.
  2157. ac_fn_c_check_type ()
  2158. {
  2159. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2161. $as_echo_n "checking for $2... " >&6; }
  2162. if eval \${$3+:} false; then :
  2163. $as_echo_n "(cached) " >&6
  2164. else
  2165. eval "$3=no"
  2166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2167. /* end confdefs.h. */
  2168. $4
  2169. int
  2170. main ()
  2171. {
  2172. if (sizeof ($2))
  2173. return 0;
  2174. ;
  2175. return 0;
  2176. }
  2177. _ACEOF
  2178. if ac_fn_c_try_compile "$LINENO"; then :
  2179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2180. /* end confdefs.h. */
  2181. $4
  2182. int
  2183. main ()
  2184. {
  2185. if (sizeof (($2)))
  2186. return 0;
  2187. ;
  2188. return 0;
  2189. }
  2190. _ACEOF
  2191. if ac_fn_c_try_compile "$LINENO"; then :
  2192. else
  2193. eval "$3=yes"
  2194. fi
  2195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2196. fi
  2197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2198. fi
  2199. eval ac_res=\$$3
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2201. $as_echo "$ac_res" >&6; }
  2202. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2203. } # ac_fn_c_check_type
  2204. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2205. # ----------------------------------------------------
  2206. # Tries to find if the field MEMBER exists in type AGGR, after including
  2207. # INCLUDES, setting cache variable VAR accordingly.
  2208. ac_fn_c_check_member ()
  2209. {
  2210. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2212. $as_echo_n "checking for $2.$3... " >&6; }
  2213. if eval \${$4+:} false; then :
  2214. $as_echo_n "(cached) " >&6
  2215. else
  2216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2217. /* end confdefs.h. */
  2218. $5
  2219. int
  2220. main ()
  2221. {
  2222. static $2 ac_aggr;
  2223. if (ac_aggr.$3)
  2224. return 0;
  2225. ;
  2226. return 0;
  2227. }
  2228. _ACEOF
  2229. if ac_fn_c_try_compile "$LINENO"; then :
  2230. eval "$4=yes"
  2231. else
  2232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2233. /* end confdefs.h. */
  2234. $5
  2235. int
  2236. main ()
  2237. {
  2238. static $2 ac_aggr;
  2239. if (sizeof ac_aggr.$3)
  2240. return 0;
  2241. ;
  2242. return 0;
  2243. }
  2244. _ACEOF
  2245. if ac_fn_c_try_compile "$LINENO"; then :
  2246. eval "$4=yes"
  2247. else
  2248. eval "$4=no"
  2249. fi
  2250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2251. fi
  2252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2253. fi
  2254. eval ac_res=\$$4
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2256. $as_echo "$ac_res" >&6; }
  2257. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2258. } # ac_fn_c_check_member
  2259. cat >config.log <<_ACEOF
  2260. This file contains any messages produced by compilers while
  2261. running configure, to aid debugging if configure makes a mistake.
  2262. It was created by $as_me, which was
  2263. generated by GNU Autoconf 2.69. Invocation command line was
  2264. $ $0 $@
  2265. _ACEOF
  2266. exec 5>>config.log
  2267. {
  2268. cat <<_ASUNAME
  2269. ## --------- ##
  2270. ## Platform. ##
  2271. ## --------- ##
  2272. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2273. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2274. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2275. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2276. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2277. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2278. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2279. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2280. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2281. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2282. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2283. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2284. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2285. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2286. _ASUNAME
  2287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2288. for as_dir in $PATH
  2289. do
  2290. IFS=$as_save_IFS
  2291. test -z "$as_dir" && as_dir=.
  2292. $as_echo "PATH: $as_dir"
  2293. done
  2294. IFS=$as_save_IFS
  2295. } >&5
  2296. cat >&5 <<_ACEOF
  2297. ## ----------- ##
  2298. ## Core tests. ##
  2299. ## ----------- ##
  2300. _ACEOF
  2301. # Keep a trace of the command line.
  2302. # Strip out --no-create and --no-recursion so they do not pile up.
  2303. # Strip out --silent because we don't want to record it for future runs.
  2304. # Also quote any args containing shell meta-characters.
  2305. # Make two passes to allow for proper duplicate-argument suppression.
  2306. ac_configure_args=
  2307. ac_configure_args0=
  2308. ac_configure_args1=
  2309. ac_must_keep_next=false
  2310. for ac_pass in 1 2
  2311. do
  2312. for ac_arg
  2313. do
  2314. case $ac_arg in
  2315. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2316. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2317. | -silent | --silent | --silen | --sile | --sil)
  2318. continue ;;
  2319. *\'*)
  2320. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2321. esac
  2322. case $ac_pass in
  2323. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2324. 2)
  2325. as_fn_append ac_configure_args1 " '$ac_arg'"
  2326. if test $ac_must_keep_next = true; then
  2327. ac_must_keep_next=false # Got value, back to normal.
  2328. else
  2329. case $ac_arg in
  2330. *=* | --config-cache | -C | -disable-* | --disable-* \
  2331. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2332. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2333. | -with-* | --with-* | -without-* | --without-* | --x)
  2334. case "$ac_configure_args0 " in
  2335. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2336. esac
  2337. ;;
  2338. -* ) ac_must_keep_next=true ;;
  2339. esac
  2340. fi
  2341. as_fn_append ac_configure_args " '$ac_arg'"
  2342. ;;
  2343. esac
  2344. done
  2345. done
  2346. { ac_configure_args0=; unset ac_configure_args0;}
  2347. { ac_configure_args1=; unset ac_configure_args1;}
  2348. # When interrupted or exit'd, cleanup temporary files, and complete
  2349. # config.log. We remove comments because anyway the quotes in there
  2350. # would cause problems or look ugly.
  2351. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2352. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2353. trap 'exit_status=$?
  2354. # Save into config.log some information that might help in debugging.
  2355. {
  2356. echo
  2357. $as_echo "## ---------------- ##
  2358. ## Cache variables. ##
  2359. ## ---------------- ##"
  2360. echo
  2361. # The following way of writing the cache mishandles newlines in values,
  2362. (
  2363. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2364. eval ac_val=\$$ac_var
  2365. case $ac_val in #(
  2366. *${as_nl}*)
  2367. case $ac_var in #(
  2368. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2369. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2370. esac
  2371. case $ac_var in #(
  2372. _ | IFS | as_nl) ;; #(
  2373. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2374. *) { eval $ac_var=; unset $ac_var;} ;;
  2375. esac ;;
  2376. esac
  2377. done
  2378. (set) 2>&1 |
  2379. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2380. *${as_nl}ac_space=\ *)
  2381. sed -n \
  2382. "s/'\''/'\''\\\\'\'''\''/g;
  2383. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2384. ;; #(
  2385. *)
  2386. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2387. ;;
  2388. esac |
  2389. sort
  2390. )
  2391. echo
  2392. $as_echo "## ----------------- ##
  2393. ## Output variables. ##
  2394. ## ----------------- ##"
  2395. echo
  2396. for ac_var in $ac_subst_vars
  2397. do
  2398. eval ac_val=\$$ac_var
  2399. case $ac_val in
  2400. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2401. esac
  2402. $as_echo "$ac_var='\''$ac_val'\''"
  2403. done | sort
  2404. echo
  2405. if test -n "$ac_subst_files"; then
  2406. $as_echo "## ------------------- ##
  2407. ## File substitutions. ##
  2408. ## ------------------- ##"
  2409. echo
  2410. for ac_var in $ac_subst_files
  2411. do
  2412. eval ac_val=\$$ac_var
  2413. case $ac_val in
  2414. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2415. esac
  2416. $as_echo "$ac_var='\''$ac_val'\''"
  2417. done | sort
  2418. echo
  2419. fi
  2420. if test -s confdefs.h; then
  2421. $as_echo "## ----------- ##
  2422. ## confdefs.h. ##
  2423. ## ----------- ##"
  2424. echo
  2425. cat confdefs.h
  2426. echo
  2427. fi
  2428. test "$ac_signal" != 0 &&
  2429. $as_echo "$as_me: caught signal $ac_signal"
  2430. $as_echo "$as_me: exit $exit_status"
  2431. } >&5
  2432. rm -f core *.core core.conftest.* &&
  2433. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2434. exit $exit_status
  2435. ' 0
  2436. for ac_signal in 1 2 13 15; do
  2437. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2438. done
  2439. ac_signal=0
  2440. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2441. rm -f -r conftest* confdefs.h
  2442. $as_echo "/* confdefs.h */" > confdefs.h
  2443. # Predefined preprocessor variables.
  2444. cat >>confdefs.h <<_ACEOF
  2445. #define PACKAGE_NAME "$PACKAGE_NAME"
  2446. _ACEOF
  2447. cat >>confdefs.h <<_ACEOF
  2448. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2449. _ACEOF
  2450. cat >>confdefs.h <<_ACEOF
  2451. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2452. _ACEOF
  2453. cat >>confdefs.h <<_ACEOF
  2454. #define PACKAGE_STRING "$PACKAGE_STRING"
  2455. _ACEOF
  2456. cat >>confdefs.h <<_ACEOF
  2457. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2458. _ACEOF
  2459. cat >>confdefs.h <<_ACEOF
  2460. #define PACKAGE_URL "$PACKAGE_URL"
  2461. _ACEOF
  2462. # Let the site file select an alternate cache file if it wants to.
  2463. # Prefer an explicitly selected file to automatically selected ones.
  2464. ac_site_file1=NONE
  2465. ac_site_file2=NONE
  2466. if test -n "$CONFIG_SITE"; then
  2467. # We do not want a PATH search for config.site.
  2468. case $CONFIG_SITE in #((
  2469. -*) ac_site_file1=./$CONFIG_SITE;;
  2470. */*) ac_site_file1=$CONFIG_SITE;;
  2471. *) ac_site_file1=./$CONFIG_SITE;;
  2472. esac
  2473. elif test "x$prefix" != xNONE; then
  2474. ac_site_file1=$prefix/share/config.site
  2475. ac_site_file2=$prefix/etc/config.site
  2476. else
  2477. ac_site_file1=$ac_default_prefix/share/config.site
  2478. ac_site_file2=$ac_default_prefix/etc/config.site
  2479. fi
  2480. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2481. do
  2482. test "x$ac_site_file" = xNONE && continue
  2483. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2485. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2486. sed 's/^/| /' "$ac_site_file" >&5
  2487. . "$ac_site_file" \
  2488. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2489. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2490. as_fn_error $? "failed to load site script $ac_site_file
  2491. See \`config.log' for more details" "$LINENO" 5; }
  2492. fi
  2493. done
  2494. if test -r "$cache_file"; then
  2495. # Some versions of bash will fail to source /dev/null (special files
  2496. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2497. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2499. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2500. case $cache_file in
  2501. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2502. *) . "./$cache_file";;
  2503. esac
  2504. fi
  2505. else
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2507. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2508. >$cache_file
  2509. fi
  2510. # Check that the precious variables saved in the cache have kept the same
  2511. # value.
  2512. ac_cache_corrupted=false
  2513. for ac_var in $ac_precious_vars; do
  2514. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2515. eval ac_new_set=\$ac_env_${ac_var}_set
  2516. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2517. eval ac_new_val=\$ac_env_${ac_var}_value
  2518. case $ac_old_set,$ac_new_set in
  2519. set,)
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2521. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2522. ac_cache_corrupted=: ;;
  2523. ,set)
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2525. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2526. ac_cache_corrupted=: ;;
  2527. ,);;
  2528. *)
  2529. if test "x$ac_old_val" != "x$ac_new_val"; then
  2530. # differences in whitespace do not lead to failure.
  2531. ac_old_val_w=`echo x $ac_old_val`
  2532. ac_new_val_w=`echo x $ac_new_val`
  2533. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2535. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2536. ac_cache_corrupted=:
  2537. else
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2539. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2540. eval $ac_var=\$ac_old_val
  2541. fi
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2543. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2545. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2546. fi;;
  2547. esac
  2548. # Pass precious variables to config.status.
  2549. if test "$ac_new_set" = set; then
  2550. case $ac_new_val in
  2551. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2552. *) ac_arg=$ac_var=$ac_new_val ;;
  2553. esac
  2554. case " $ac_configure_args " in
  2555. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2556. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2557. esac
  2558. fi
  2559. done
  2560. if $ac_cache_corrupted; then
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2562. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2564. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2565. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2566. fi
  2567. ## -------------------- ##
  2568. ## Main body of script. ##
  2569. ## -------------------- ##
  2570. ac_ext=c
  2571. ac_cpp='$CPP $CPPFLAGS'
  2572. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2573. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2574. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2575. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2576. ac_aux_dir=
  2577. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2578. if test -f "$ac_dir/install-sh"; then
  2579. ac_aux_dir=$ac_dir
  2580. ac_install_sh="$ac_aux_dir/install-sh -c"
  2581. break
  2582. elif test -f "$ac_dir/install.sh"; then
  2583. ac_aux_dir=$ac_dir
  2584. ac_install_sh="$ac_aux_dir/install.sh -c"
  2585. break
  2586. elif test -f "$ac_dir/shtool"; then
  2587. ac_aux_dir=$ac_dir
  2588. ac_install_sh="$ac_aux_dir/shtool install -c"
  2589. break
  2590. fi
  2591. done
  2592. if test -z "$ac_aux_dir"; then
  2593. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2594. fi
  2595. # These three variables are undocumented and unsupported,
  2596. # and are intended to be withdrawn in a future Autoconf release.
  2597. # They can cause serious problems if a builder's source tree is in a directory
  2598. # whose full name contains unusual characters.
  2599. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2600. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2601. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2602. orig_CFLAGS="$CFLAGS"
  2603. #
  2604. # Making releases:
  2605. # Edit include/SDL_version.h and change the version, then:
  2606. # SDL_MICRO_VERSION += 1;
  2607. # SDL_INTERFACE_AGE += 1;
  2608. # SDL_BINARY_AGE += 1;
  2609. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2610. # if backwards compatibility has been broken,
  2611. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2612. #
  2613. SDL_MAJOR_VERSION=2
  2614. SDL_MINOR_VERSION=0
  2615. SDL_MICRO_VERSION=17
  2616. SDL_INTERFACE_AGE=0
  2617. SDL_BINARY_AGE=17
  2618. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2619. # libtool versioning
  2620. case `pwd` in
  2621. *\ * | *\ *)
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2623. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2624. esac
  2625. macro_version='2.4.2'
  2626. macro_revision='1.3337'
  2627. ltmain="$ac_aux_dir/ltmain.sh"
  2628. # Make sure we can run config.sub.
  2629. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2630. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2632. $as_echo_n "checking build system type... " >&6; }
  2633. if ${ac_cv_build+:} false; then :
  2634. $as_echo_n "(cached) " >&6
  2635. else
  2636. ac_build_alias=$build_alias
  2637. test "x$ac_build_alias" = x &&
  2638. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2639. test "x$ac_build_alias" = x &&
  2640. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2641. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2642. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2643. fi
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2645. $as_echo "$ac_cv_build" >&6; }
  2646. case $ac_cv_build in
  2647. *-*-*) ;;
  2648. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2649. esac
  2650. build=$ac_cv_build
  2651. ac_save_IFS=$IFS; IFS='-'
  2652. set x $ac_cv_build
  2653. shift
  2654. build_cpu=$1
  2655. build_vendor=$2
  2656. shift; shift
  2657. # Remember, the first character of IFS is used to create $*,
  2658. # except with old shells:
  2659. build_os=$*
  2660. IFS=$ac_save_IFS
  2661. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2663. $as_echo_n "checking host system type... " >&6; }
  2664. if ${ac_cv_host+:} false; then :
  2665. $as_echo_n "(cached) " >&6
  2666. else
  2667. if test "x$host_alias" = x; then
  2668. ac_cv_host=$ac_cv_build
  2669. else
  2670. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2671. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2672. fi
  2673. fi
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2675. $as_echo "$ac_cv_host" >&6; }
  2676. case $ac_cv_host in
  2677. *-*-*) ;;
  2678. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2679. esac
  2680. host=$ac_cv_host
  2681. ac_save_IFS=$IFS; IFS='-'
  2682. set x $ac_cv_host
  2683. shift
  2684. host_cpu=$1
  2685. host_vendor=$2
  2686. shift; shift
  2687. # Remember, the first character of IFS is used to create $*,
  2688. # except with old shells:
  2689. host_os=$*
  2690. IFS=$ac_save_IFS
  2691. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2692. # Backslashify metacharacters that are still active within
  2693. # double-quoted strings.
  2694. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2695. # Same as above, but do not quote variable references.
  2696. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2697. # Sed substitution to delay expansion of an escaped shell variable in a
  2698. # double_quote_subst'ed string.
  2699. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2700. # Sed substitution to delay expansion of an escaped single quote.
  2701. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2702. # Sed substitution to avoid accidental globbing in evaled expressions
  2703. no_glob_subst='s/\*/\\\*/g'
  2704. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2705. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2706. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2708. $as_echo_n "checking how to print strings... " >&6; }
  2709. # Test print first, because it will be a builtin if present.
  2710. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2711. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2712. ECHO='print -r --'
  2713. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2714. ECHO='printf %s\n'
  2715. else
  2716. # Use this function as a fallback that always works.
  2717. func_fallback_echo ()
  2718. {
  2719. eval 'cat <<_LTECHO_EOF
  2720. $1
  2721. _LTECHO_EOF'
  2722. }
  2723. ECHO='func_fallback_echo'
  2724. fi
  2725. # func_echo_all arg...
  2726. # Invoke $ECHO with all args, space-separated.
  2727. func_echo_all ()
  2728. {
  2729. $ECHO ""
  2730. }
  2731. case "$ECHO" in
  2732. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2733. $as_echo "printf" >&6; } ;;
  2734. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2735. $as_echo "print -r" >&6; } ;;
  2736. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2737. $as_echo "cat" >&6; } ;;
  2738. esac
  2739. ac_ext=c
  2740. ac_cpp='$CPP $CPPFLAGS'
  2741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2744. if test -n "$ac_tool_prefix"; then
  2745. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2746. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2748. $as_echo_n "checking for $ac_word... " >&6; }
  2749. if ${ac_cv_prog_CC+:} false; then :
  2750. $as_echo_n "(cached) " >&6
  2751. else
  2752. if test -n "$CC"; then
  2753. ac_cv_prog_CC="$CC" # Let the user override the test.
  2754. else
  2755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2756. for as_dir in $PATH
  2757. do
  2758. IFS=$as_save_IFS
  2759. test -z "$as_dir" && as_dir=.
  2760. for ac_exec_ext in '' $ac_executable_extensions; do
  2761. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2762. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2764. break 2
  2765. fi
  2766. done
  2767. done
  2768. IFS=$as_save_IFS
  2769. fi
  2770. fi
  2771. CC=$ac_cv_prog_CC
  2772. if test -n "$CC"; then
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2774. $as_echo "$CC" >&6; }
  2775. else
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2777. $as_echo "no" >&6; }
  2778. fi
  2779. fi
  2780. if test -z "$ac_cv_prog_CC"; then
  2781. ac_ct_CC=$CC
  2782. # Extract the first word of "gcc", so it can be a program name with args.
  2783. set dummy gcc; ac_word=$2
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2785. $as_echo_n "checking for $ac_word... " >&6; }
  2786. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2787. $as_echo_n "(cached) " >&6
  2788. else
  2789. if test -n "$ac_ct_CC"; then
  2790. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2791. else
  2792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2793. for as_dir in $PATH
  2794. do
  2795. IFS=$as_save_IFS
  2796. test -z "$as_dir" && as_dir=.
  2797. for ac_exec_ext in '' $ac_executable_extensions; do
  2798. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2799. ac_cv_prog_ac_ct_CC="gcc"
  2800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2801. break 2
  2802. fi
  2803. done
  2804. done
  2805. IFS=$as_save_IFS
  2806. fi
  2807. fi
  2808. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2809. if test -n "$ac_ct_CC"; then
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2811. $as_echo "$ac_ct_CC" >&6; }
  2812. else
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2814. $as_echo "no" >&6; }
  2815. fi
  2816. if test "x$ac_ct_CC" = x; then
  2817. CC=""
  2818. else
  2819. case $cross_compiling:$ac_tool_warned in
  2820. yes:)
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2822. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2823. ac_tool_warned=yes ;;
  2824. esac
  2825. CC=$ac_ct_CC
  2826. fi
  2827. else
  2828. CC="$ac_cv_prog_CC"
  2829. fi
  2830. if test -z "$CC"; then
  2831. if test -n "$ac_tool_prefix"; then
  2832. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2833. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2835. $as_echo_n "checking for $ac_word... " >&6; }
  2836. if ${ac_cv_prog_CC+:} false; then :
  2837. $as_echo_n "(cached) " >&6
  2838. else
  2839. if test -n "$CC"; then
  2840. ac_cv_prog_CC="$CC" # Let the user override the test.
  2841. else
  2842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2843. for as_dir in $PATH
  2844. do
  2845. IFS=$as_save_IFS
  2846. test -z "$as_dir" && as_dir=.
  2847. for ac_exec_ext in '' $ac_executable_extensions; do
  2848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2849. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2851. break 2
  2852. fi
  2853. done
  2854. done
  2855. IFS=$as_save_IFS
  2856. fi
  2857. fi
  2858. CC=$ac_cv_prog_CC
  2859. if test -n "$CC"; then
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2861. $as_echo "$CC" >&6; }
  2862. else
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2864. $as_echo "no" >&6; }
  2865. fi
  2866. fi
  2867. fi
  2868. if test -z "$CC"; then
  2869. # Extract the first word of "cc", so it can be a program name with args.
  2870. set dummy cc; ac_word=$2
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2872. $as_echo_n "checking for $ac_word... " >&6; }
  2873. if ${ac_cv_prog_CC+:} false; then :
  2874. $as_echo_n "(cached) " >&6
  2875. else
  2876. if test -n "$CC"; then
  2877. ac_cv_prog_CC="$CC" # Let the user override the test.
  2878. else
  2879. ac_prog_rejected=no
  2880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2881. for as_dir in $PATH
  2882. do
  2883. IFS=$as_save_IFS
  2884. test -z "$as_dir" && as_dir=.
  2885. for ac_exec_ext in '' $ac_executable_extensions; do
  2886. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2887. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2888. ac_prog_rejected=yes
  2889. continue
  2890. fi
  2891. ac_cv_prog_CC="cc"
  2892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2893. break 2
  2894. fi
  2895. done
  2896. done
  2897. IFS=$as_save_IFS
  2898. if test $ac_prog_rejected = yes; then
  2899. # We found a bogon in the path, so make sure we never use it.
  2900. set dummy $ac_cv_prog_CC
  2901. shift
  2902. if test $# != 0; then
  2903. # We chose a different compiler from the bogus one.
  2904. # However, it has the same basename, so the bogon will be chosen
  2905. # first if we set CC to just the basename; use the full file name.
  2906. shift
  2907. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2908. fi
  2909. fi
  2910. fi
  2911. fi
  2912. CC=$ac_cv_prog_CC
  2913. if test -n "$CC"; then
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2915. $as_echo "$CC" >&6; }
  2916. else
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2918. $as_echo "no" >&6; }
  2919. fi
  2920. fi
  2921. if test -z "$CC"; then
  2922. if test -n "$ac_tool_prefix"; then
  2923. for ac_prog in cl.exe
  2924. do
  2925. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2926. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2928. $as_echo_n "checking for $ac_word... " >&6; }
  2929. if ${ac_cv_prog_CC+:} false; then :
  2930. $as_echo_n "(cached) " >&6
  2931. else
  2932. if test -n "$CC"; then
  2933. ac_cv_prog_CC="$CC" # Let the user override the test.
  2934. else
  2935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2936. for as_dir in $PATH
  2937. do
  2938. IFS=$as_save_IFS
  2939. test -z "$as_dir" && as_dir=.
  2940. for ac_exec_ext in '' $ac_executable_extensions; do
  2941. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2942. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2944. break 2
  2945. fi
  2946. done
  2947. done
  2948. IFS=$as_save_IFS
  2949. fi
  2950. fi
  2951. CC=$ac_cv_prog_CC
  2952. if test -n "$CC"; then
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2954. $as_echo "$CC" >&6; }
  2955. else
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2957. $as_echo "no" >&6; }
  2958. fi
  2959. test -n "$CC" && break
  2960. done
  2961. fi
  2962. if test -z "$CC"; then
  2963. ac_ct_CC=$CC
  2964. for ac_prog in cl.exe
  2965. do
  2966. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2967. set dummy $ac_prog; ac_word=$2
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2969. $as_echo_n "checking for $ac_word... " >&6; }
  2970. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2971. $as_echo_n "(cached) " >&6
  2972. else
  2973. if test -n "$ac_ct_CC"; then
  2974. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2975. else
  2976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2977. for as_dir in $PATH
  2978. do
  2979. IFS=$as_save_IFS
  2980. test -z "$as_dir" && as_dir=.
  2981. for ac_exec_ext in '' $ac_executable_extensions; do
  2982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2983. ac_cv_prog_ac_ct_CC="$ac_prog"
  2984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2985. break 2
  2986. fi
  2987. done
  2988. done
  2989. IFS=$as_save_IFS
  2990. fi
  2991. fi
  2992. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2993. if test -n "$ac_ct_CC"; then
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2995. $as_echo "$ac_ct_CC" >&6; }
  2996. else
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2998. $as_echo "no" >&6; }
  2999. fi
  3000. test -n "$ac_ct_CC" && break
  3001. done
  3002. if test "x$ac_ct_CC" = x; then
  3003. CC=""
  3004. else
  3005. case $cross_compiling:$ac_tool_warned in
  3006. yes:)
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3008. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3009. ac_tool_warned=yes ;;
  3010. esac
  3011. CC=$ac_ct_CC
  3012. fi
  3013. fi
  3014. fi
  3015. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3016. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3017. as_fn_error $? "no acceptable C compiler found in \$PATH
  3018. See \`config.log' for more details" "$LINENO" 5; }
  3019. # Provide some information about the compiler.
  3020. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3021. set X $ac_compile
  3022. ac_compiler=$2
  3023. for ac_option in --version -v -V -qversion; do
  3024. { { ac_try="$ac_compiler $ac_option >&5"
  3025. case "(($ac_try" in
  3026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3027. *) ac_try_echo=$ac_try;;
  3028. esac
  3029. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3030. $as_echo "$ac_try_echo"; } >&5
  3031. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3032. ac_status=$?
  3033. if test -s conftest.err; then
  3034. sed '10a\
  3035. ... rest of stderr output deleted ...
  3036. 10q' conftest.err >conftest.er1
  3037. cat conftest.er1 >&5
  3038. fi
  3039. rm -f conftest.er1 conftest.err
  3040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3041. test $ac_status = 0; }
  3042. done
  3043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3044. /* end confdefs.h. */
  3045. int
  3046. main ()
  3047. {
  3048. ;
  3049. return 0;
  3050. }
  3051. _ACEOF
  3052. ac_clean_files_save=$ac_clean_files
  3053. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3054. # Try to create an executable without -o first, disregard a.out.
  3055. # It will help us diagnose broken compilers, and finding out an intuition
  3056. # of exeext.
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3058. $as_echo_n "checking whether the C compiler works... " >&6; }
  3059. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3060. # The possible output files:
  3061. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3062. ac_rmfiles=
  3063. for ac_file in $ac_files
  3064. do
  3065. case $ac_file in
  3066. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3067. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3068. esac
  3069. done
  3070. rm -f $ac_rmfiles
  3071. if { { ac_try="$ac_link_default"
  3072. case "(($ac_try" in
  3073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3074. *) ac_try_echo=$ac_try;;
  3075. esac
  3076. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3077. $as_echo "$ac_try_echo"; } >&5
  3078. (eval "$ac_link_default") 2>&5
  3079. ac_status=$?
  3080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3081. test $ac_status = 0; }; then :
  3082. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3083. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3084. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3085. # so that the user can short-circuit this test for compilers unknown to
  3086. # Autoconf.
  3087. for ac_file in $ac_files ''
  3088. do
  3089. test -f "$ac_file" || continue
  3090. case $ac_file in
  3091. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3092. ;;
  3093. [ab].out )
  3094. # We found the default executable, but exeext='' is most
  3095. # certainly right.
  3096. break;;
  3097. *.* )
  3098. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3099. then :; else
  3100. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3101. fi
  3102. # We set ac_cv_exeext here because the later test for it is not
  3103. # safe: cross compilers may not add the suffix if given an `-o'
  3104. # argument, so we may need to know it at that point already.
  3105. # Even if this section looks crufty: it has the advantage of
  3106. # actually working.
  3107. break;;
  3108. * )
  3109. break;;
  3110. esac
  3111. done
  3112. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3113. else
  3114. ac_file=''
  3115. fi
  3116. if test -z "$ac_file"; then :
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3118. $as_echo "no" >&6; }
  3119. $as_echo "$as_me: failed program was:" >&5
  3120. sed 's/^/| /' conftest.$ac_ext >&5
  3121. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3122. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3123. as_fn_error 77 "C compiler cannot create executables
  3124. See \`config.log' for more details" "$LINENO" 5; }
  3125. else
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3127. $as_echo "yes" >&6; }
  3128. fi
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3130. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3132. $as_echo "$ac_file" >&6; }
  3133. ac_exeext=$ac_cv_exeext
  3134. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3135. ac_clean_files=$ac_clean_files_save
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3137. $as_echo_n "checking for suffix of executables... " >&6; }
  3138. if { { ac_try="$ac_link"
  3139. case "(($ac_try" in
  3140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3141. *) ac_try_echo=$ac_try;;
  3142. esac
  3143. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3144. $as_echo "$ac_try_echo"; } >&5
  3145. (eval "$ac_link") 2>&5
  3146. ac_status=$?
  3147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3148. test $ac_status = 0; }; then :
  3149. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3150. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3151. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3152. # `rm'.
  3153. for ac_file in conftest.exe conftest conftest.*; do
  3154. test -f "$ac_file" || continue
  3155. case $ac_file in
  3156. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3157. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3158. break;;
  3159. * ) break;;
  3160. esac
  3161. done
  3162. else
  3163. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3164. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3165. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3166. See \`config.log' for more details" "$LINENO" 5; }
  3167. fi
  3168. rm -f conftest conftest$ac_cv_exeext
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3170. $as_echo "$ac_cv_exeext" >&6; }
  3171. rm -f conftest.$ac_ext
  3172. EXEEXT=$ac_cv_exeext
  3173. ac_exeext=$EXEEXT
  3174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3175. /* end confdefs.h. */
  3176. #include <stdio.h>
  3177. int
  3178. main ()
  3179. {
  3180. FILE *f = fopen ("conftest.out", "w");
  3181. return ferror (f) || fclose (f) != 0;
  3182. ;
  3183. return 0;
  3184. }
  3185. _ACEOF
  3186. ac_clean_files="$ac_clean_files conftest.out"
  3187. # Check that the compiler produces executables we can run. If not, either
  3188. # the compiler is broken, or we cross compile.
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3190. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3191. if test "$cross_compiling" != yes; then
  3192. { { ac_try="$ac_link"
  3193. case "(($ac_try" in
  3194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3195. *) ac_try_echo=$ac_try;;
  3196. esac
  3197. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3198. $as_echo "$ac_try_echo"; } >&5
  3199. (eval "$ac_link") 2>&5
  3200. ac_status=$?
  3201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3202. test $ac_status = 0; }
  3203. if { ac_try='./conftest$ac_cv_exeext'
  3204. { { case "(($ac_try" in
  3205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3206. *) ac_try_echo=$ac_try;;
  3207. esac
  3208. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3209. $as_echo "$ac_try_echo"; } >&5
  3210. (eval "$ac_try") 2>&5
  3211. ac_status=$?
  3212. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3213. test $ac_status = 0; }; }; then
  3214. cross_compiling=no
  3215. else
  3216. if test "$cross_compiling" = maybe; then
  3217. cross_compiling=yes
  3218. else
  3219. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3220. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3221. as_fn_error $? "cannot run C compiled programs.
  3222. If you meant to cross compile, use \`--host'.
  3223. See \`config.log' for more details" "$LINENO" 5; }
  3224. fi
  3225. fi
  3226. fi
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3228. $as_echo "$cross_compiling" >&6; }
  3229. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3230. ac_clean_files=$ac_clean_files_save
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3232. $as_echo_n "checking for suffix of object files... " >&6; }
  3233. if ${ac_cv_objext+:} false; then :
  3234. $as_echo_n "(cached) " >&6
  3235. else
  3236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3237. /* end confdefs.h. */
  3238. int
  3239. main ()
  3240. {
  3241. ;
  3242. return 0;
  3243. }
  3244. _ACEOF
  3245. rm -f conftest.o conftest.obj
  3246. if { { ac_try="$ac_compile"
  3247. case "(($ac_try" in
  3248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3249. *) ac_try_echo=$ac_try;;
  3250. esac
  3251. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3252. $as_echo "$ac_try_echo"; } >&5
  3253. (eval "$ac_compile") 2>&5
  3254. ac_status=$?
  3255. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3256. test $ac_status = 0; }; then :
  3257. for ac_file in conftest.o conftest.obj conftest.*; do
  3258. test -f "$ac_file" || continue;
  3259. case $ac_file in
  3260. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3261. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3262. break;;
  3263. esac
  3264. done
  3265. else
  3266. $as_echo "$as_me: failed program was:" >&5
  3267. sed 's/^/| /' conftest.$ac_ext >&5
  3268. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3269. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3270. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3271. See \`config.log' for more details" "$LINENO" 5; }
  3272. fi
  3273. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3274. fi
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3276. $as_echo "$ac_cv_objext" >&6; }
  3277. OBJEXT=$ac_cv_objext
  3278. ac_objext=$OBJEXT
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3280. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3281. if ${ac_cv_c_compiler_gnu+:} false; then :
  3282. $as_echo_n "(cached) " >&6
  3283. else
  3284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3285. /* end confdefs.h. */
  3286. int
  3287. main ()
  3288. {
  3289. #ifndef __GNUC__
  3290. choke me
  3291. #endif
  3292. ;
  3293. return 0;
  3294. }
  3295. _ACEOF
  3296. if ac_fn_c_try_compile "$LINENO"; then :
  3297. ac_compiler_gnu=yes
  3298. else
  3299. ac_compiler_gnu=no
  3300. fi
  3301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3302. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3303. fi
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3305. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3306. if test $ac_compiler_gnu = yes; then
  3307. GCC=yes
  3308. else
  3309. GCC=
  3310. fi
  3311. ac_test_CFLAGS=${CFLAGS+set}
  3312. ac_save_CFLAGS=$CFLAGS
  3313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3314. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3315. if ${ac_cv_prog_cc_g+:} false; then :
  3316. $as_echo_n "(cached) " >&6
  3317. else
  3318. ac_save_c_werror_flag=$ac_c_werror_flag
  3319. ac_c_werror_flag=yes
  3320. ac_cv_prog_cc_g=no
  3321. CFLAGS="-g"
  3322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3323. /* end confdefs.h. */
  3324. int
  3325. main ()
  3326. {
  3327. ;
  3328. return 0;
  3329. }
  3330. _ACEOF
  3331. if ac_fn_c_try_compile "$LINENO"; then :
  3332. ac_cv_prog_cc_g=yes
  3333. else
  3334. CFLAGS=""
  3335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3336. /* end confdefs.h. */
  3337. int
  3338. main ()
  3339. {
  3340. ;
  3341. return 0;
  3342. }
  3343. _ACEOF
  3344. if ac_fn_c_try_compile "$LINENO"; then :
  3345. else
  3346. ac_c_werror_flag=$ac_save_c_werror_flag
  3347. CFLAGS="-g"
  3348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3349. /* end confdefs.h. */
  3350. int
  3351. main ()
  3352. {
  3353. ;
  3354. return 0;
  3355. }
  3356. _ACEOF
  3357. if ac_fn_c_try_compile "$LINENO"; then :
  3358. ac_cv_prog_cc_g=yes
  3359. fi
  3360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3361. fi
  3362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3363. fi
  3364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3365. ac_c_werror_flag=$ac_save_c_werror_flag
  3366. fi
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3368. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3369. if test "$ac_test_CFLAGS" = set; then
  3370. CFLAGS=$ac_save_CFLAGS
  3371. elif test $ac_cv_prog_cc_g = yes; then
  3372. if test "$GCC" = yes; then
  3373. CFLAGS="-g -O2"
  3374. else
  3375. CFLAGS="-g"
  3376. fi
  3377. else
  3378. if test "$GCC" = yes; then
  3379. CFLAGS="-O2"
  3380. else
  3381. CFLAGS=
  3382. fi
  3383. fi
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3385. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3386. if ${ac_cv_prog_cc_c89+:} false; then :
  3387. $as_echo_n "(cached) " >&6
  3388. else
  3389. ac_cv_prog_cc_c89=no
  3390. ac_save_CC=$CC
  3391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3392. /* end confdefs.h. */
  3393. #include <stdarg.h>
  3394. #include <stdio.h>
  3395. struct stat;
  3396. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3397. struct buf { int x; };
  3398. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3399. static char *e (p, i)
  3400. char **p;
  3401. int i;
  3402. {
  3403. return p[i];
  3404. }
  3405. static char *f (char * (*g) (char **, int), char **p, ...)
  3406. {
  3407. char *s;
  3408. va_list v;
  3409. va_start (v,p);
  3410. s = g (p, va_arg (v,int));
  3411. va_end (v);
  3412. return s;
  3413. }
  3414. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3415. function prototypes and stuff, but not '\xHH' hex character constants.
  3416. These don't provoke an error unfortunately, instead are silently treated
  3417. as 'x'. The following induces an error, until -std is added to get
  3418. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3419. array size at least. It's necessary to write '\x00'==0 to get something
  3420. that's true only with -std. */
  3421. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3422. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3423. inside strings and character constants. */
  3424. #define FOO(x) 'x'
  3425. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3426. int test (int i, double x);
  3427. struct s1 {int (*f) (int a);};
  3428. struct s2 {int (*f) (double a);};
  3429. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3430. int argc;
  3431. char **argv;
  3432. int
  3433. main ()
  3434. {
  3435. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3436. ;
  3437. return 0;
  3438. }
  3439. _ACEOF
  3440. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3441. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3442. do
  3443. CC="$ac_save_CC $ac_arg"
  3444. if ac_fn_c_try_compile "$LINENO"; then :
  3445. ac_cv_prog_cc_c89=$ac_arg
  3446. fi
  3447. rm -f core conftest.err conftest.$ac_objext
  3448. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3449. done
  3450. rm -f conftest.$ac_ext
  3451. CC=$ac_save_CC
  3452. fi
  3453. # AC_CACHE_VAL
  3454. case "x$ac_cv_prog_cc_c89" in
  3455. x)
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3457. $as_echo "none needed" >&6; } ;;
  3458. xno)
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3460. $as_echo "unsupported" >&6; } ;;
  3461. *)
  3462. CC="$CC $ac_cv_prog_cc_c89"
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3464. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3465. esac
  3466. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3467. fi
  3468. ac_ext=c
  3469. ac_cpp='$CPP $CPPFLAGS'
  3470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3474. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3475. if ${ac_cv_path_SED+:} false; then :
  3476. $as_echo_n "(cached) " >&6
  3477. else
  3478. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3479. for ac_i in 1 2 3 4 5 6 7; do
  3480. ac_script="$ac_script$as_nl$ac_script"
  3481. done
  3482. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3483. { ac_script=; unset ac_script;}
  3484. if test -z "$SED"; then
  3485. ac_path_SED_found=false
  3486. # Loop through the user's path and test for each of PROGNAME-LIST
  3487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3488. for as_dir in $PATH
  3489. do
  3490. IFS=$as_save_IFS
  3491. test -z "$as_dir" && as_dir=.
  3492. for ac_prog in sed gsed; do
  3493. for ac_exec_ext in '' $ac_executable_extensions; do
  3494. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3495. as_fn_executable_p "$ac_path_SED" || continue
  3496. # Check for GNU ac_path_SED and select it if it is found.
  3497. # Check for GNU $ac_path_SED
  3498. case `"$ac_path_SED" --version 2>&1` in
  3499. *GNU*)
  3500. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3501. *)
  3502. ac_count=0
  3503. $as_echo_n 0123456789 >"conftest.in"
  3504. while :
  3505. do
  3506. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3507. mv "conftest.tmp" "conftest.in"
  3508. cp "conftest.in" "conftest.nl"
  3509. $as_echo '' >> "conftest.nl"
  3510. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3511. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3512. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3513. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3514. # Best one so far, save it but keep looking for a better one
  3515. ac_cv_path_SED="$ac_path_SED"
  3516. ac_path_SED_max=$ac_count
  3517. fi
  3518. # 10*(2^10) chars as input seems more than enough
  3519. test $ac_count -gt 10 && break
  3520. done
  3521. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3522. esac
  3523. $ac_path_SED_found && break 3
  3524. done
  3525. done
  3526. done
  3527. IFS=$as_save_IFS
  3528. if test -z "$ac_cv_path_SED"; then
  3529. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3530. fi
  3531. else
  3532. ac_cv_path_SED=$SED
  3533. fi
  3534. fi
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3536. $as_echo "$ac_cv_path_SED" >&6; }
  3537. SED="$ac_cv_path_SED"
  3538. rm -f conftest.sed
  3539. test -z "$SED" && SED=sed
  3540. Xsed="$SED -e 1s/^X//"
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3542. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3543. if ${ac_cv_path_GREP+:} false; then :
  3544. $as_echo_n "(cached) " >&6
  3545. else
  3546. if test -z "$GREP"; then
  3547. ac_path_GREP_found=false
  3548. # Loop through the user's path and test for each of PROGNAME-LIST
  3549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3550. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3551. do
  3552. IFS=$as_save_IFS
  3553. test -z "$as_dir" && as_dir=.
  3554. for ac_prog in grep ggrep; do
  3555. for ac_exec_ext in '' $ac_executable_extensions; do
  3556. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3557. as_fn_executable_p "$ac_path_GREP" || continue
  3558. # Check for GNU ac_path_GREP and select it if it is found.
  3559. # Check for GNU $ac_path_GREP
  3560. case `"$ac_path_GREP" --version 2>&1` in
  3561. *GNU*)
  3562. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3563. *)
  3564. ac_count=0
  3565. $as_echo_n 0123456789 >"conftest.in"
  3566. while :
  3567. do
  3568. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3569. mv "conftest.tmp" "conftest.in"
  3570. cp "conftest.in" "conftest.nl"
  3571. $as_echo 'GREP' >> "conftest.nl"
  3572. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3573. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3574. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3575. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3576. # Best one so far, save it but keep looking for a better one
  3577. ac_cv_path_GREP="$ac_path_GREP"
  3578. ac_path_GREP_max=$ac_count
  3579. fi
  3580. # 10*(2^10) chars as input seems more than enough
  3581. test $ac_count -gt 10 && break
  3582. done
  3583. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3584. esac
  3585. $ac_path_GREP_found && break 3
  3586. done
  3587. done
  3588. done
  3589. IFS=$as_save_IFS
  3590. if test -z "$ac_cv_path_GREP"; then
  3591. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3592. fi
  3593. else
  3594. ac_cv_path_GREP=$GREP
  3595. fi
  3596. fi
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3598. $as_echo "$ac_cv_path_GREP" >&6; }
  3599. GREP="$ac_cv_path_GREP"
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3601. $as_echo_n "checking for egrep... " >&6; }
  3602. if ${ac_cv_path_EGREP+:} false; then :
  3603. $as_echo_n "(cached) " >&6
  3604. else
  3605. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3606. then ac_cv_path_EGREP="$GREP -E"
  3607. else
  3608. if test -z "$EGREP"; then
  3609. ac_path_EGREP_found=false
  3610. # Loop through the user's path and test for each of PROGNAME-LIST
  3611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3612. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3613. do
  3614. IFS=$as_save_IFS
  3615. test -z "$as_dir" && as_dir=.
  3616. for ac_prog in egrep; do
  3617. for ac_exec_ext in '' $ac_executable_extensions; do
  3618. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3619. as_fn_executable_p "$ac_path_EGREP" || continue
  3620. # Check for GNU ac_path_EGREP and select it if it is found.
  3621. # Check for GNU $ac_path_EGREP
  3622. case `"$ac_path_EGREP" --version 2>&1` in
  3623. *GNU*)
  3624. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3625. *)
  3626. ac_count=0
  3627. $as_echo_n 0123456789 >"conftest.in"
  3628. while :
  3629. do
  3630. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3631. mv "conftest.tmp" "conftest.in"
  3632. cp "conftest.in" "conftest.nl"
  3633. $as_echo 'EGREP' >> "conftest.nl"
  3634. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3635. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3636. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3637. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3638. # Best one so far, save it but keep looking for a better one
  3639. ac_cv_path_EGREP="$ac_path_EGREP"
  3640. ac_path_EGREP_max=$ac_count
  3641. fi
  3642. # 10*(2^10) chars as input seems more than enough
  3643. test $ac_count -gt 10 && break
  3644. done
  3645. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3646. esac
  3647. $ac_path_EGREP_found && break 3
  3648. done
  3649. done
  3650. done
  3651. IFS=$as_save_IFS
  3652. if test -z "$ac_cv_path_EGREP"; then
  3653. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3654. fi
  3655. else
  3656. ac_cv_path_EGREP=$EGREP
  3657. fi
  3658. fi
  3659. fi
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3661. $as_echo "$ac_cv_path_EGREP" >&6; }
  3662. EGREP="$ac_cv_path_EGREP"
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3664. $as_echo_n "checking for fgrep... " >&6; }
  3665. if ${ac_cv_path_FGREP+:} false; then :
  3666. $as_echo_n "(cached) " >&6
  3667. else
  3668. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3669. then ac_cv_path_FGREP="$GREP -F"
  3670. else
  3671. if test -z "$FGREP"; then
  3672. ac_path_FGREP_found=false
  3673. # Loop through the user's path and test for each of PROGNAME-LIST
  3674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3675. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3676. do
  3677. IFS=$as_save_IFS
  3678. test -z "$as_dir" && as_dir=.
  3679. for ac_prog in fgrep; do
  3680. for ac_exec_ext in '' $ac_executable_extensions; do
  3681. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3682. as_fn_executable_p "$ac_path_FGREP" || continue
  3683. # Check for GNU ac_path_FGREP and select it if it is found.
  3684. # Check for GNU $ac_path_FGREP
  3685. case `"$ac_path_FGREP" --version 2>&1` in
  3686. *GNU*)
  3687. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3688. *)
  3689. ac_count=0
  3690. $as_echo_n 0123456789 >"conftest.in"
  3691. while :
  3692. do
  3693. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3694. mv "conftest.tmp" "conftest.in"
  3695. cp "conftest.in" "conftest.nl"
  3696. $as_echo 'FGREP' >> "conftest.nl"
  3697. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3698. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3699. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3700. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3701. # Best one so far, save it but keep looking for a better one
  3702. ac_cv_path_FGREP="$ac_path_FGREP"
  3703. ac_path_FGREP_max=$ac_count
  3704. fi
  3705. # 10*(2^10) chars as input seems more than enough
  3706. test $ac_count -gt 10 && break
  3707. done
  3708. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3709. esac
  3710. $ac_path_FGREP_found && break 3
  3711. done
  3712. done
  3713. done
  3714. IFS=$as_save_IFS
  3715. if test -z "$ac_cv_path_FGREP"; then
  3716. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3717. fi
  3718. else
  3719. ac_cv_path_FGREP=$FGREP
  3720. fi
  3721. fi
  3722. fi
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3724. $as_echo "$ac_cv_path_FGREP" >&6; }
  3725. FGREP="$ac_cv_path_FGREP"
  3726. test -z "$GREP" && GREP=grep
  3727. # Check whether --with-gnu-ld was given.
  3728. if test "${with_gnu_ld+set}" = set; then :
  3729. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3730. else
  3731. with_gnu_ld=no
  3732. fi
  3733. ac_prog=ld
  3734. if test "$GCC" = yes; then
  3735. # Check if gcc -print-prog-name=ld gives a path.
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3737. $as_echo_n "checking for ld used by $CC... " >&6; }
  3738. case $host in
  3739. *-*-mingw*)
  3740. # gcc leaves a trailing carriage return which upsets mingw
  3741. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3742. *)
  3743. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3744. esac
  3745. case $ac_prog in
  3746. # Accept absolute paths.
  3747. [\\/]* | ?:[\\/]*)
  3748. re_direlt='/[^/][^/]*/\.\./'
  3749. # Canonicalize the pathname of ld
  3750. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3751. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3752. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3753. done
  3754. test -z "$LD" && LD="$ac_prog"
  3755. ;;
  3756. "")
  3757. # If it fails, then pretend we aren't using GCC.
  3758. ac_prog=ld
  3759. ;;
  3760. *)
  3761. # If it is relative, then search for the first ld in PATH.
  3762. with_gnu_ld=unknown
  3763. ;;
  3764. esac
  3765. elif test "$with_gnu_ld" = yes; then
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3767. $as_echo_n "checking for GNU ld... " >&6; }
  3768. else
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3770. $as_echo_n "checking for non-GNU ld... " >&6; }
  3771. fi
  3772. if ${lt_cv_path_LD+:} false; then :
  3773. $as_echo_n "(cached) " >&6
  3774. else
  3775. if test -z "$LD"; then
  3776. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3777. for ac_dir in $PATH; do
  3778. IFS="$lt_save_ifs"
  3779. test -z "$ac_dir" && ac_dir=.
  3780. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3781. lt_cv_path_LD="$ac_dir/$ac_prog"
  3782. # Check to see if the program is GNU ld. I'd rather use --version,
  3783. # but apparently some variants of GNU ld only accept -v.
  3784. # Break only if it was the GNU/non-GNU ld that we prefer.
  3785. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3786. *GNU* | *'with BFD'*)
  3787. test "$with_gnu_ld" != no && break
  3788. ;;
  3789. *)
  3790. test "$with_gnu_ld" != yes && break
  3791. ;;
  3792. esac
  3793. fi
  3794. done
  3795. IFS="$lt_save_ifs"
  3796. else
  3797. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3798. fi
  3799. fi
  3800. LD="$lt_cv_path_LD"
  3801. if test -n "$LD"; then
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3803. $as_echo "$LD" >&6; }
  3804. else
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3806. $as_echo "no" >&6; }
  3807. fi
  3808. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3810. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3811. if ${lt_cv_prog_gnu_ld+:} false; then :
  3812. $as_echo_n "(cached) " >&6
  3813. else
  3814. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3815. case `$LD -v 2>&1 </dev/null` in
  3816. *GNU* | *'with BFD'*)
  3817. lt_cv_prog_gnu_ld=yes
  3818. ;;
  3819. *)
  3820. lt_cv_prog_gnu_ld=no
  3821. ;;
  3822. esac
  3823. fi
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3825. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3826. with_gnu_ld=$lt_cv_prog_gnu_ld
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3828. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3829. if ${lt_cv_path_NM+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. if test -n "$NM"; then
  3833. # Let the user override the test.
  3834. lt_cv_path_NM="$NM"
  3835. else
  3836. lt_nm_to_check="${ac_tool_prefix}nm"
  3837. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3838. lt_nm_to_check="$lt_nm_to_check nm"
  3839. fi
  3840. for lt_tmp_nm in $lt_nm_to_check; do
  3841. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3842. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3843. IFS="$lt_save_ifs"
  3844. test -z "$ac_dir" && ac_dir=.
  3845. tmp_nm="$ac_dir/$lt_tmp_nm"
  3846. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3847. # Check to see if the nm accepts a BSD-compat flag.
  3848. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3849. # nm: unknown option "B" ignored
  3850. # Tru64's nm complains that /dev/null is an invalid object file
  3851. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3852. */dev/null* | *'Invalid file or object type'*)
  3853. lt_cv_path_NM="$tmp_nm -B"
  3854. break
  3855. ;;
  3856. *)
  3857. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3858. */dev/null*)
  3859. lt_cv_path_NM="$tmp_nm -p"
  3860. break
  3861. ;;
  3862. *)
  3863. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3864. continue # so that we can try to find one that supports BSD flags
  3865. ;;
  3866. esac
  3867. ;;
  3868. esac
  3869. fi
  3870. done
  3871. IFS="$lt_save_ifs"
  3872. done
  3873. : ${lt_cv_path_NM=no}
  3874. fi
  3875. fi
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3877. $as_echo "$lt_cv_path_NM" >&6; }
  3878. if test "$lt_cv_path_NM" != "no"; then
  3879. NM="$lt_cv_path_NM"
  3880. else
  3881. # Didn't find any BSD compatible name lister, look for dumpbin.
  3882. if test -n "$DUMPBIN"; then :
  3883. # Let the user override the test.
  3884. else
  3885. if test -n "$ac_tool_prefix"; then
  3886. for ac_prog in dumpbin "link -dump"
  3887. do
  3888. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3889. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3891. $as_echo_n "checking for $ac_word... " >&6; }
  3892. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3893. $as_echo_n "(cached) " >&6
  3894. else
  3895. if test -n "$DUMPBIN"; then
  3896. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3897. else
  3898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3899. for as_dir in $PATH
  3900. do
  3901. IFS=$as_save_IFS
  3902. test -z "$as_dir" && as_dir=.
  3903. for ac_exec_ext in '' $ac_executable_extensions; do
  3904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3905. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3907. break 2
  3908. fi
  3909. done
  3910. done
  3911. IFS=$as_save_IFS
  3912. fi
  3913. fi
  3914. DUMPBIN=$ac_cv_prog_DUMPBIN
  3915. if test -n "$DUMPBIN"; then
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3917. $as_echo "$DUMPBIN" >&6; }
  3918. else
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3920. $as_echo "no" >&6; }
  3921. fi
  3922. test -n "$DUMPBIN" && break
  3923. done
  3924. fi
  3925. if test -z "$DUMPBIN"; then
  3926. ac_ct_DUMPBIN=$DUMPBIN
  3927. for ac_prog in dumpbin "link -dump"
  3928. do
  3929. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3930. set dummy $ac_prog; ac_word=$2
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3932. $as_echo_n "checking for $ac_word... " >&6; }
  3933. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3934. $as_echo_n "(cached) " >&6
  3935. else
  3936. if test -n "$ac_ct_DUMPBIN"; then
  3937. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3938. else
  3939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3940. for as_dir in $PATH
  3941. do
  3942. IFS=$as_save_IFS
  3943. test -z "$as_dir" && as_dir=.
  3944. for ac_exec_ext in '' $ac_executable_extensions; do
  3945. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3946. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3948. break 2
  3949. fi
  3950. done
  3951. done
  3952. IFS=$as_save_IFS
  3953. fi
  3954. fi
  3955. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3956. if test -n "$ac_ct_DUMPBIN"; then
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3958. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3959. else
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3961. $as_echo "no" >&6; }
  3962. fi
  3963. test -n "$ac_ct_DUMPBIN" && break
  3964. done
  3965. if test "x$ac_ct_DUMPBIN" = x; then
  3966. DUMPBIN=":"
  3967. else
  3968. case $cross_compiling:$ac_tool_warned in
  3969. yes:)
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3971. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3972. ac_tool_warned=yes ;;
  3973. esac
  3974. DUMPBIN=$ac_ct_DUMPBIN
  3975. fi
  3976. fi
  3977. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3978. *COFF*)
  3979. DUMPBIN="$DUMPBIN -symbols"
  3980. ;;
  3981. *)
  3982. DUMPBIN=:
  3983. ;;
  3984. esac
  3985. fi
  3986. if test "$DUMPBIN" != ":"; then
  3987. NM="$DUMPBIN"
  3988. fi
  3989. fi
  3990. test -z "$NM" && NM=nm
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3992. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3993. if ${lt_cv_nm_interface+:} false; then :
  3994. $as_echo_n "(cached) " >&6
  3995. else
  3996. lt_cv_nm_interface="BSD nm"
  3997. echo "int some_variable = 0;" > conftest.$ac_ext
  3998. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3999. (eval "$ac_compile" 2>conftest.err)
  4000. cat conftest.err >&5
  4001. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4002. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4003. cat conftest.err >&5
  4004. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4005. cat conftest.out >&5
  4006. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4007. lt_cv_nm_interface="MS dumpbin"
  4008. fi
  4009. rm -f conftest*
  4010. fi
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4012. $as_echo "$lt_cv_nm_interface" >&6; }
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4014. $as_echo_n "checking whether ln -s works... " >&6; }
  4015. LN_S=$as_ln_s
  4016. if test "$LN_S" = "ln -s"; then
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4018. $as_echo "yes" >&6; }
  4019. else
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4021. $as_echo "no, using $LN_S" >&6; }
  4022. fi
  4023. # find the maximum length of command line arguments
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4025. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4026. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. i=0
  4030. teststring="ABCD"
  4031. case $build_os in
  4032. msdosdjgpp*)
  4033. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4034. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4035. # during glob expansion). Even if it were fixed, the result of this
  4036. # check would be larger than it should be.
  4037. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4038. ;;
  4039. gnu*)
  4040. # Under GNU Hurd, this test is not required because there is
  4041. # no limit to the length of command line arguments.
  4042. # Libtool will interpret -1 as no limit whatsoever
  4043. lt_cv_sys_max_cmd_len=-1;
  4044. ;;
  4045. cygwin* | mingw* | cegcc*)
  4046. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4047. # about 5 minutes as the teststring grows exponentially.
  4048. # Worse, since 9x/ME are not pre-emptively multitasking,
  4049. # you end up with a "frozen" computer, even though with patience
  4050. # the test eventually succeeds (with a max line length of 256k).
  4051. # Instead, let's just punt: use the minimum linelength reported by
  4052. # all of the supported platforms: 8192 (on NT/2K/XP).
  4053. lt_cv_sys_max_cmd_len=8192;
  4054. ;;
  4055. mint*)
  4056. # On MiNT this can take a long time and run out of memory.
  4057. lt_cv_sys_max_cmd_len=8192;
  4058. ;;
  4059. amigaos*)
  4060. # On AmigaOS with pdksh, this test takes hours, literally.
  4061. # So we just punt and use a minimum line length of 8192.
  4062. lt_cv_sys_max_cmd_len=8192;
  4063. ;;
  4064. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4065. # This has been around since 386BSD, at least. Likely further.
  4066. if test -x /sbin/sysctl; then
  4067. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4068. elif test -x /usr/sbin/sysctl; then
  4069. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4070. else
  4071. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4072. fi
  4073. # And add a safety zone
  4074. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4075. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4076. ;;
  4077. interix*)
  4078. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4079. lt_cv_sys_max_cmd_len=196608
  4080. ;;
  4081. os2*)
  4082. # The test takes a long time on OS/2.
  4083. lt_cv_sys_max_cmd_len=8192
  4084. ;;
  4085. osf*)
  4086. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4087. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4088. # nice to cause kernel panics so lets avoid the loop below.
  4089. # First set a reasonable default.
  4090. lt_cv_sys_max_cmd_len=16384
  4091. #
  4092. if test -x /sbin/sysconfig; then
  4093. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4094. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4095. esac
  4096. fi
  4097. ;;
  4098. sco3.2v5*)
  4099. lt_cv_sys_max_cmd_len=102400
  4100. ;;
  4101. sysv5* | sco5v6* | sysv4.2uw2*)
  4102. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4103. if test -n "$kargmax"; then
  4104. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4105. else
  4106. lt_cv_sys_max_cmd_len=32768
  4107. fi
  4108. ;;
  4109. *)
  4110. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4111. if test -n "$lt_cv_sys_max_cmd_len"; then
  4112. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4113. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4114. else
  4115. # Make teststring a little bigger before we do anything with it.
  4116. # a 1K string should be a reasonable start.
  4117. for i in 1 2 3 4 5 6 7 8 ; do
  4118. teststring=$teststring$teststring
  4119. done
  4120. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4121. # If test is not a shell built-in, we'll probably end up computing a
  4122. # maximum length that is only half of the actual maximum length, but
  4123. # we can't tell.
  4124. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4125. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4126. test $i != 17 # 1/2 MB should be enough
  4127. do
  4128. i=`expr $i + 1`
  4129. teststring=$teststring$teststring
  4130. done
  4131. # Only check the string length outside the loop.
  4132. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4133. teststring=
  4134. # Add a significant safety factor because C++ compilers can tack on
  4135. # massive amounts of additional arguments before passing them to the
  4136. # linker. It appears as though 1/2 is a usable value.
  4137. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4138. fi
  4139. ;;
  4140. esac
  4141. fi
  4142. if test -n $lt_cv_sys_max_cmd_len ; then
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4144. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4145. else
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4147. $as_echo "none" >&6; }
  4148. fi
  4149. max_cmd_len=$lt_cv_sys_max_cmd_len
  4150. : ${CP="cp -f"}
  4151. : ${MV="mv -f"}
  4152. : ${RM="rm -f"}
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4154. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4155. # Try some XSI features
  4156. xsi_shell=no
  4157. ( _lt_dummy="a/b/c"
  4158. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4159. = c,a/b,b/c, \
  4160. && eval 'test $(( 1 + 1 )) -eq 2 \
  4161. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4162. && xsi_shell=yes
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4164. $as_echo "$xsi_shell" >&6; }
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4166. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4167. lt_shell_append=no
  4168. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4169. >/dev/null 2>&1 \
  4170. && lt_shell_append=yes
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4172. $as_echo "$lt_shell_append" >&6; }
  4173. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4174. lt_unset=unset
  4175. else
  4176. lt_unset=false
  4177. fi
  4178. # test EBCDIC or ASCII
  4179. case `echo X|tr X '\101'` in
  4180. A) # ASCII based system
  4181. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4182. lt_SP2NL='tr \040 \012'
  4183. lt_NL2SP='tr \015\012 \040\040'
  4184. ;;
  4185. *) # EBCDIC based system
  4186. lt_SP2NL='tr \100 \n'
  4187. lt_NL2SP='tr \r\n \100\100'
  4188. ;;
  4189. esac
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4191. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4192. if ${lt_cv_to_host_file_cmd+:} false; then :
  4193. $as_echo_n "(cached) " >&6
  4194. else
  4195. case $host in
  4196. *-*-mingw* )
  4197. case $build in
  4198. *-*-mingw* ) # actually msys
  4199. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4200. ;;
  4201. *-*-cygwin* )
  4202. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4203. ;;
  4204. * ) # otherwise, assume *nix
  4205. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4206. ;;
  4207. esac
  4208. ;;
  4209. *-*-cygwin* )
  4210. case $build in
  4211. *-*-mingw* ) # actually msys
  4212. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4213. ;;
  4214. *-*-cygwin* )
  4215. lt_cv_to_host_file_cmd=func_convert_file_noop
  4216. ;;
  4217. * ) # otherwise, assume *nix
  4218. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4219. ;;
  4220. esac
  4221. ;;
  4222. * ) # unhandled hosts (and "normal" native builds)
  4223. lt_cv_to_host_file_cmd=func_convert_file_noop
  4224. ;;
  4225. esac
  4226. fi
  4227. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4229. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4231. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4232. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. #assume ordinary cross tools, or native build.
  4236. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4237. case $host in
  4238. *-*-mingw* )
  4239. case $build in
  4240. *-*-mingw* ) # actually msys
  4241. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4242. ;;
  4243. esac
  4244. ;;
  4245. esac
  4246. fi
  4247. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4249. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4251. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4252. if ${lt_cv_ld_reload_flag+:} false; then :
  4253. $as_echo_n "(cached) " >&6
  4254. else
  4255. lt_cv_ld_reload_flag='-r'
  4256. fi
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4258. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4259. reload_flag=$lt_cv_ld_reload_flag
  4260. case $reload_flag in
  4261. "" | " "*) ;;
  4262. *) reload_flag=" $reload_flag" ;;
  4263. esac
  4264. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4265. case $host_os in
  4266. cygwin* | mingw* | pw32* | cegcc*)
  4267. if test "$GCC" != yes; then
  4268. reload_cmds=false
  4269. fi
  4270. ;;
  4271. darwin*)
  4272. if test "$GCC" = yes; then
  4273. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4274. else
  4275. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4276. fi
  4277. ;;
  4278. esac
  4279. if test -n "$ac_tool_prefix"; then
  4280. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4281. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4283. $as_echo_n "checking for $ac_word... " >&6; }
  4284. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4285. $as_echo_n "(cached) " >&6
  4286. else
  4287. if test -n "$OBJDUMP"; then
  4288. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4289. else
  4290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4291. for as_dir in $PATH
  4292. do
  4293. IFS=$as_save_IFS
  4294. test -z "$as_dir" && as_dir=.
  4295. for ac_exec_ext in '' $ac_executable_extensions; do
  4296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4297. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4299. break 2
  4300. fi
  4301. done
  4302. done
  4303. IFS=$as_save_IFS
  4304. fi
  4305. fi
  4306. OBJDUMP=$ac_cv_prog_OBJDUMP
  4307. if test -n "$OBJDUMP"; then
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4309. $as_echo "$OBJDUMP" >&6; }
  4310. else
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4312. $as_echo "no" >&6; }
  4313. fi
  4314. fi
  4315. if test -z "$ac_cv_prog_OBJDUMP"; then
  4316. ac_ct_OBJDUMP=$OBJDUMP
  4317. # Extract the first word of "objdump", so it can be a program name with args.
  4318. set dummy objdump; ac_word=$2
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4320. $as_echo_n "checking for $ac_word... " >&6; }
  4321. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4322. $as_echo_n "(cached) " >&6
  4323. else
  4324. if test -n "$ac_ct_OBJDUMP"; then
  4325. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4326. else
  4327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4328. for as_dir in $PATH
  4329. do
  4330. IFS=$as_save_IFS
  4331. test -z "$as_dir" && as_dir=.
  4332. for ac_exec_ext in '' $ac_executable_extensions; do
  4333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4334. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4336. break 2
  4337. fi
  4338. done
  4339. done
  4340. IFS=$as_save_IFS
  4341. fi
  4342. fi
  4343. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4344. if test -n "$ac_ct_OBJDUMP"; then
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4346. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4347. else
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4349. $as_echo "no" >&6; }
  4350. fi
  4351. if test "x$ac_ct_OBJDUMP" = x; then
  4352. OBJDUMP="false"
  4353. else
  4354. case $cross_compiling:$ac_tool_warned in
  4355. yes:)
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4357. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4358. ac_tool_warned=yes ;;
  4359. esac
  4360. OBJDUMP=$ac_ct_OBJDUMP
  4361. fi
  4362. else
  4363. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4364. fi
  4365. test -z "$OBJDUMP" && OBJDUMP=objdump
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4367. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4368. if ${lt_cv_deplibs_check_method+:} false; then :
  4369. $as_echo_n "(cached) " >&6
  4370. else
  4371. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4372. lt_cv_file_magic_test_file=
  4373. lt_cv_deplibs_check_method='unknown'
  4374. # Need to set the preceding variable on all platforms that support
  4375. # interlibrary dependencies.
  4376. # 'none' -- dependencies not supported.
  4377. # `unknown' -- same as none, but documents that we really don't know.
  4378. # 'pass_all' -- all dependencies passed with no checks.
  4379. # 'test_compile' -- check by making test program.
  4380. # 'file_magic [[regex]]' -- check by looking for files in library path
  4381. # which responds to the $file_magic_cmd with a given extended regex.
  4382. # If you have `file' or equivalent on your system and you're not sure
  4383. # whether `pass_all' will *always* work, you probably want this one.
  4384. case $host_os in
  4385. aix[4-9]*)
  4386. lt_cv_deplibs_check_method=pass_all
  4387. ;;
  4388. beos*)
  4389. lt_cv_deplibs_check_method=pass_all
  4390. ;;
  4391. bsdi[45]*)
  4392. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4393. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4394. lt_cv_file_magic_test_file=/shlib/libc.so
  4395. ;;
  4396. cygwin*)
  4397. # func_win32_libid is a shell function defined in ltmain.sh
  4398. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4399. lt_cv_file_magic_cmd='func_win32_libid'
  4400. lt_cv_deplibs_check_method=pass_all
  4401. ;;
  4402. mingw* | pw32*)
  4403. # Base MSYS/MinGW do not provide the 'file' command needed by
  4404. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4405. # unless we find 'file', for example because we are cross-compiling.
  4406. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4407. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4408. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4409. lt_cv_file_magic_cmd='func_win32_libid'
  4410. else
  4411. # Keep this pattern in sync with the one in func_win32_libid.
  4412. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4413. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4414. fi
  4415. lt_cv_deplibs_check_method=pass_all
  4416. ;;
  4417. cegcc*)
  4418. # use the weaker test based on 'objdump'. See mingw*.
  4419. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4420. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4421. ;;
  4422. darwin* | rhapsody*)
  4423. lt_cv_deplibs_check_method=pass_all
  4424. ;;
  4425. freebsd* | dragonfly*)
  4426. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4427. case $host_cpu in
  4428. i*86 )
  4429. # Not sure whether the presence of OpenBSD here was a mistake.
  4430. # Let's accept both of them until this is cleared up.
  4431. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4432. lt_cv_file_magic_cmd=/usr/bin/file
  4433. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4434. ;;
  4435. esac
  4436. else
  4437. lt_cv_deplibs_check_method=pass_all
  4438. fi
  4439. ;;
  4440. gnu*)
  4441. lt_cv_deplibs_check_method=pass_all
  4442. ;;
  4443. haiku*)
  4444. lt_cv_deplibs_check_method=pass_all
  4445. ;;
  4446. hpux10.20* | hpux11*)
  4447. lt_cv_file_magic_cmd=/usr/bin/file
  4448. case $host_cpu in
  4449. ia64*)
  4450. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4451. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4452. ;;
  4453. hppa*64*)
  4454. 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]'
  4455. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4456. ;;
  4457. *)
  4458. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4459. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4460. ;;
  4461. esac
  4462. ;;
  4463. interix[3-9]*)
  4464. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4465. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4466. ;;
  4467. irix5* | irix6* | nonstopux*)
  4468. case $LD in
  4469. *-32|*"-32 ") libmagic=32-bit;;
  4470. *-n32|*"-n32 ") libmagic=N32;;
  4471. *-64|*"-64 ") libmagic=64-bit;;
  4472. *) libmagic=never-match;;
  4473. esac
  4474. lt_cv_deplibs_check_method=pass_all
  4475. ;;
  4476. # This must be glibc/ELF.
  4477. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4478. lt_cv_deplibs_check_method=pass_all
  4479. ;;
  4480. netbsd*)
  4481. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4483. else
  4484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4485. fi
  4486. ;;
  4487. newos6*)
  4488. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4489. lt_cv_file_magic_cmd=/usr/bin/file
  4490. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4491. ;;
  4492. *nto* | *qnx*)
  4493. lt_cv_deplibs_check_method=pass_all
  4494. ;;
  4495. openbsd*)
  4496. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4497. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4498. else
  4499. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4500. fi
  4501. ;;
  4502. osf3* | osf4* | osf5*)
  4503. lt_cv_deplibs_check_method=pass_all
  4504. ;;
  4505. rdos*)
  4506. lt_cv_deplibs_check_method=pass_all
  4507. ;;
  4508. solaris*)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. sysv4 | sysv4.3*)
  4515. case $host_vendor in
  4516. motorola)
  4517. 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]'
  4518. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4519. ;;
  4520. ncr)
  4521. lt_cv_deplibs_check_method=pass_all
  4522. ;;
  4523. sequent)
  4524. lt_cv_file_magic_cmd='/bin/file'
  4525. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4526. ;;
  4527. sni)
  4528. lt_cv_file_magic_cmd='/bin/file'
  4529. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4530. lt_cv_file_magic_test_file=/lib/libc.so
  4531. ;;
  4532. siemens)
  4533. lt_cv_deplibs_check_method=pass_all
  4534. ;;
  4535. pc)
  4536. lt_cv_deplibs_check_method=pass_all
  4537. ;;
  4538. esac
  4539. ;;
  4540. tpf*)
  4541. lt_cv_deplibs_check_method=pass_all
  4542. ;;
  4543. esac
  4544. fi
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4546. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4547. file_magic_glob=
  4548. want_nocaseglob=no
  4549. if test "$build" = "$host"; then
  4550. case $host_os in
  4551. mingw* | pw32*)
  4552. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4553. want_nocaseglob=yes
  4554. else
  4555. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4556. fi
  4557. ;;
  4558. esac
  4559. fi
  4560. file_magic_cmd=$lt_cv_file_magic_cmd
  4561. deplibs_check_method=$lt_cv_deplibs_check_method
  4562. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4563. if test -n "$ac_tool_prefix"; then
  4564. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4565. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4567. $as_echo_n "checking for $ac_word... " >&6; }
  4568. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. if test -n "$DLLTOOL"; then
  4572. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4573. else
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH
  4576. do
  4577. IFS=$as_save_IFS
  4578. test -z "$as_dir" && as_dir=.
  4579. for ac_exec_ext in '' $ac_executable_extensions; do
  4580. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4581. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4583. break 2
  4584. fi
  4585. done
  4586. done
  4587. IFS=$as_save_IFS
  4588. fi
  4589. fi
  4590. DLLTOOL=$ac_cv_prog_DLLTOOL
  4591. if test -n "$DLLTOOL"; then
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4593. $as_echo "$DLLTOOL" >&6; }
  4594. else
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4596. $as_echo "no" >&6; }
  4597. fi
  4598. fi
  4599. if test -z "$ac_cv_prog_DLLTOOL"; then
  4600. ac_ct_DLLTOOL=$DLLTOOL
  4601. # Extract the first word of "dlltool", so it can be a program name with args.
  4602. set dummy dlltool; ac_word=$2
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4604. $as_echo_n "checking for $ac_word... " >&6; }
  4605. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. if test -n "$ac_ct_DLLTOOL"; then
  4609. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4610. else
  4611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4612. for as_dir in $PATH
  4613. do
  4614. IFS=$as_save_IFS
  4615. test -z "$as_dir" && as_dir=.
  4616. for ac_exec_ext in '' $ac_executable_extensions; do
  4617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4618. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4620. break 2
  4621. fi
  4622. done
  4623. done
  4624. IFS=$as_save_IFS
  4625. fi
  4626. fi
  4627. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4628. if test -n "$ac_ct_DLLTOOL"; then
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4630. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4631. else
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4633. $as_echo "no" >&6; }
  4634. fi
  4635. if test "x$ac_ct_DLLTOOL" = x; then
  4636. DLLTOOL="false"
  4637. else
  4638. case $cross_compiling:$ac_tool_warned in
  4639. yes:)
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4641. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4642. ac_tool_warned=yes ;;
  4643. esac
  4644. DLLTOOL=$ac_ct_DLLTOOL
  4645. fi
  4646. else
  4647. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4648. fi
  4649. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4651. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4652. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4653. $as_echo_n "(cached) " >&6
  4654. else
  4655. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4656. case $host_os in
  4657. cygwin* | mingw* | pw32* | cegcc*)
  4658. # two different shell functions defined in ltmain.sh
  4659. # decide which to use based on capabilities of $DLLTOOL
  4660. case `$DLLTOOL --help 2>&1` in
  4661. *--identify-strict*)
  4662. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4663. ;;
  4664. *)
  4665. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4666. ;;
  4667. esac
  4668. ;;
  4669. *)
  4670. # fallback: assume linklib IS sharedlib
  4671. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4672. ;;
  4673. esac
  4674. fi
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4676. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4677. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4678. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4679. if test -n "$ac_tool_prefix"; then
  4680. for ac_prog in ar
  4681. do
  4682. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4683. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4685. $as_echo_n "checking for $ac_word... " >&6; }
  4686. if ${ac_cv_prog_AR+:} false; then :
  4687. $as_echo_n "(cached) " >&6
  4688. else
  4689. if test -n "$AR"; then
  4690. ac_cv_prog_AR="$AR" # Let the user override the test.
  4691. else
  4692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4693. for as_dir in $PATH
  4694. do
  4695. IFS=$as_save_IFS
  4696. test -z "$as_dir" && as_dir=.
  4697. for ac_exec_ext in '' $ac_executable_extensions; do
  4698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4699. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4701. break 2
  4702. fi
  4703. done
  4704. done
  4705. IFS=$as_save_IFS
  4706. fi
  4707. fi
  4708. AR=$ac_cv_prog_AR
  4709. if test -n "$AR"; then
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4711. $as_echo "$AR" >&6; }
  4712. else
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4714. $as_echo "no" >&6; }
  4715. fi
  4716. test -n "$AR" && break
  4717. done
  4718. fi
  4719. if test -z "$AR"; then
  4720. ac_ct_AR=$AR
  4721. for ac_prog in ar
  4722. do
  4723. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4724. set dummy $ac_prog; ac_word=$2
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4726. $as_echo_n "checking for $ac_word... " >&6; }
  4727. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4728. $as_echo_n "(cached) " >&6
  4729. else
  4730. if test -n "$ac_ct_AR"; then
  4731. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4732. else
  4733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4734. for as_dir in $PATH
  4735. do
  4736. IFS=$as_save_IFS
  4737. test -z "$as_dir" && as_dir=.
  4738. for ac_exec_ext in '' $ac_executable_extensions; do
  4739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4740. ac_cv_prog_ac_ct_AR="$ac_prog"
  4741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4742. break 2
  4743. fi
  4744. done
  4745. done
  4746. IFS=$as_save_IFS
  4747. fi
  4748. fi
  4749. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4750. if test -n "$ac_ct_AR"; then
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4752. $as_echo "$ac_ct_AR" >&6; }
  4753. else
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4755. $as_echo "no" >&6; }
  4756. fi
  4757. test -n "$ac_ct_AR" && break
  4758. done
  4759. if test "x$ac_ct_AR" = x; then
  4760. AR="false"
  4761. else
  4762. case $cross_compiling:$ac_tool_warned in
  4763. yes:)
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4765. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4766. ac_tool_warned=yes ;;
  4767. esac
  4768. AR=$ac_ct_AR
  4769. fi
  4770. fi
  4771. : ${AR=ar}
  4772. : ${AR_FLAGS=cru}
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4774. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4775. if ${lt_cv_ar_at_file+:} false; then :
  4776. $as_echo_n "(cached) " >&6
  4777. else
  4778. lt_cv_ar_at_file=no
  4779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4780. /* end confdefs.h. */
  4781. int
  4782. main ()
  4783. {
  4784. ;
  4785. return 0;
  4786. }
  4787. _ACEOF
  4788. if ac_fn_c_try_compile "$LINENO"; then :
  4789. echo conftest.$ac_objext > conftest.lst
  4790. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4791. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4792. (eval $lt_ar_try) 2>&5
  4793. ac_status=$?
  4794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4795. test $ac_status = 0; }
  4796. if test "$ac_status" -eq 0; then
  4797. # Ensure the archiver fails upon bogus file names.
  4798. rm -f conftest.$ac_objext libconftest.a
  4799. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4800. (eval $lt_ar_try) 2>&5
  4801. ac_status=$?
  4802. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4803. test $ac_status = 0; }
  4804. if test "$ac_status" -ne 0; then
  4805. lt_cv_ar_at_file=@
  4806. fi
  4807. fi
  4808. rm -f conftest.* libconftest.a
  4809. fi
  4810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4811. fi
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4813. $as_echo "$lt_cv_ar_at_file" >&6; }
  4814. if test "x$lt_cv_ar_at_file" = xno; then
  4815. archiver_list_spec=
  4816. else
  4817. archiver_list_spec=$lt_cv_ar_at_file
  4818. fi
  4819. if test -n "$ac_tool_prefix"; then
  4820. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4821. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4823. $as_echo_n "checking for $ac_word... " >&6; }
  4824. if ${ac_cv_prog_STRIP+:} false; then :
  4825. $as_echo_n "(cached) " >&6
  4826. else
  4827. if test -n "$STRIP"; then
  4828. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4829. else
  4830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4831. for as_dir in $PATH
  4832. do
  4833. IFS=$as_save_IFS
  4834. test -z "$as_dir" && as_dir=.
  4835. for ac_exec_ext in '' $ac_executable_extensions; do
  4836. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4837. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4838. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4839. break 2
  4840. fi
  4841. done
  4842. done
  4843. IFS=$as_save_IFS
  4844. fi
  4845. fi
  4846. STRIP=$ac_cv_prog_STRIP
  4847. if test -n "$STRIP"; then
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4849. $as_echo "$STRIP" >&6; }
  4850. else
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4852. $as_echo "no" >&6; }
  4853. fi
  4854. fi
  4855. if test -z "$ac_cv_prog_STRIP"; then
  4856. ac_ct_STRIP=$STRIP
  4857. # Extract the first word of "strip", so it can be a program name with args.
  4858. set dummy strip; ac_word=$2
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4860. $as_echo_n "checking for $ac_word... " >&6; }
  4861. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4862. $as_echo_n "(cached) " >&6
  4863. else
  4864. if test -n "$ac_ct_STRIP"; then
  4865. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4866. else
  4867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4868. for as_dir in $PATH
  4869. do
  4870. IFS=$as_save_IFS
  4871. test -z "$as_dir" && as_dir=.
  4872. for ac_exec_ext in '' $ac_executable_extensions; do
  4873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4874. ac_cv_prog_ac_ct_STRIP="strip"
  4875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4876. break 2
  4877. fi
  4878. done
  4879. done
  4880. IFS=$as_save_IFS
  4881. fi
  4882. fi
  4883. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4884. if test -n "$ac_ct_STRIP"; then
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4886. $as_echo "$ac_ct_STRIP" >&6; }
  4887. else
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4889. $as_echo "no" >&6; }
  4890. fi
  4891. if test "x$ac_ct_STRIP" = x; then
  4892. STRIP=":"
  4893. else
  4894. case $cross_compiling:$ac_tool_warned in
  4895. yes:)
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4897. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4898. ac_tool_warned=yes ;;
  4899. esac
  4900. STRIP=$ac_ct_STRIP
  4901. fi
  4902. else
  4903. STRIP="$ac_cv_prog_STRIP"
  4904. fi
  4905. test -z "$STRIP" && STRIP=:
  4906. if test -n "$ac_tool_prefix"; then
  4907. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4908. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4910. $as_echo_n "checking for $ac_word... " >&6; }
  4911. if ${ac_cv_prog_RANLIB+:} false; then :
  4912. $as_echo_n "(cached) " >&6
  4913. else
  4914. if test -n "$RANLIB"; then
  4915. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4916. else
  4917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4918. for as_dir in $PATH
  4919. do
  4920. IFS=$as_save_IFS
  4921. test -z "$as_dir" && as_dir=.
  4922. for ac_exec_ext in '' $ac_executable_extensions; do
  4923. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4924. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4926. break 2
  4927. fi
  4928. done
  4929. done
  4930. IFS=$as_save_IFS
  4931. fi
  4932. fi
  4933. RANLIB=$ac_cv_prog_RANLIB
  4934. if test -n "$RANLIB"; then
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4936. $as_echo "$RANLIB" >&6; }
  4937. else
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4939. $as_echo "no" >&6; }
  4940. fi
  4941. fi
  4942. if test -z "$ac_cv_prog_RANLIB"; then
  4943. ac_ct_RANLIB=$RANLIB
  4944. # Extract the first word of "ranlib", so it can be a program name with args.
  4945. set dummy ranlib; ac_word=$2
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4947. $as_echo_n "checking for $ac_word... " >&6; }
  4948. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4949. $as_echo_n "(cached) " >&6
  4950. else
  4951. if test -n "$ac_ct_RANLIB"; then
  4952. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4953. else
  4954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4955. for as_dir in $PATH
  4956. do
  4957. IFS=$as_save_IFS
  4958. test -z "$as_dir" && as_dir=.
  4959. for ac_exec_ext in '' $ac_executable_extensions; do
  4960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4961. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4963. break 2
  4964. fi
  4965. done
  4966. done
  4967. IFS=$as_save_IFS
  4968. fi
  4969. fi
  4970. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4971. if test -n "$ac_ct_RANLIB"; then
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4973. $as_echo "$ac_ct_RANLIB" >&6; }
  4974. else
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4976. $as_echo "no" >&6; }
  4977. fi
  4978. if test "x$ac_ct_RANLIB" = x; then
  4979. RANLIB=":"
  4980. else
  4981. case $cross_compiling:$ac_tool_warned in
  4982. yes:)
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4984. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4985. ac_tool_warned=yes ;;
  4986. esac
  4987. RANLIB=$ac_ct_RANLIB
  4988. fi
  4989. else
  4990. RANLIB="$ac_cv_prog_RANLIB"
  4991. fi
  4992. test -z "$RANLIB" && RANLIB=:
  4993. # Determine commands to create old-style static archives.
  4994. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4995. old_postinstall_cmds='chmod 644 $oldlib'
  4996. old_postuninstall_cmds=
  4997. if test -n "$RANLIB"; then
  4998. case $host_os in
  4999. openbsd*)
  5000. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5001. ;;
  5002. *)
  5003. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5004. ;;
  5005. esac
  5006. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5007. fi
  5008. case $host_os in
  5009. darwin*)
  5010. lock_old_archive_extraction=yes ;;
  5011. *)
  5012. lock_old_archive_extraction=no ;;
  5013. esac
  5014. for ac_prog in gawk mawk nawk awk
  5015. do
  5016. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5017. set dummy $ac_prog; ac_word=$2
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5019. $as_echo_n "checking for $ac_word... " >&6; }
  5020. if ${ac_cv_prog_AWK+:} false; then :
  5021. $as_echo_n "(cached) " >&6
  5022. else
  5023. if test -n "$AWK"; then
  5024. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5025. else
  5026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5027. for as_dir in $PATH
  5028. do
  5029. IFS=$as_save_IFS
  5030. test -z "$as_dir" && as_dir=.
  5031. for ac_exec_ext in '' $ac_executable_extensions; do
  5032. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5033. ac_cv_prog_AWK="$ac_prog"
  5034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5035. break 2
  5036. fi
  5037. done
  5038. done
  5039. IFS=$as_save_IFS
  5040. fi
  5041. fi
  5042. AWK=$ac_cv_prog_AWK
  5043. if test -n "$AWK"; then
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5045. $as_echo "$AWK" >&6; }
  5046. else
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5048. $as_echo "no" >&6; }
  5049. fi
  5050. test -n "$AWK" && break
  5051. done
  5052. # If no C compiler was specified, use CC.
  5053. LTCC=${LTCC-"$CC"}
  5054. # If no C compiler flags were specified, use CFLAGS.
  5055. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5056. # Allow CC to be a program name with arguments.
  5057. compiler=$CC
  5058. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5060. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5061. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5062. $as_echo_n "(cached) " >&6
  5063. else
  5064. # These are sane defaults that work on at least a few old systems.
  5065. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5066. # Character class describing NM global symbol codes.
  5067. symcode='[BCDEGRST]'
  5068. # Regexp to match symbols that can be accessed directly from C.
  5069. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5070. # Define system-specific variables.
  5071. case $host_os in
  5072. aix*)
  5073. symcode='[BCDT]'
  5074. ;;
  5075. cygwin* | mingw* | pw32* | cegcc*)
  5076. symcode='[ABCDGISTW]'
  5077. ;;
  5078. hpux*)
  5079. if test "$host_cpu" = ia64; then
  5080. symcode='[ABCDEGRST]'
  5081. fi
  5082. ;;
  5083. irix* | nonstopux*)
  5084. symcode='[BCDEGRST]'
  5085. ;;
  5086. osf*)
  5087. symcode='[BCDEGQRST]'
  5088. ;;
  5089. solaris*)
  5090. symcode='[BDRT]'
  5091. ;;
  5092. sco3.2v5*)
  5093. symcode='[DT]'
  5094. ;;
  5095. sysv4.2uw2*)
  5096. symcode='[DT]'
  5097. ;;
  5098. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5099. symcode='[ABDT]'
  5100. ;;
  5101. sysv4)
  5102. symcode='[DFNSTU]'
  5103. ;;
  5104. esac
  5105. # If we're using GNU nm, then use its standard symbol codes.
  5106. case `$NM -V 2>&1` in
  5107. *GNU* | *'with BFD'*)
  5108. symcode='[ABCDGIRSTW]' ;;
  5109. esac
  5110. # Transform an extracted symbol line into a proper C declaration.
  5111. # Some systems (esp. on ia64) link data and code symbols differently,
  5112. # so use this general approach.
  5113. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5114. # Transform an extracted symbol line into symbol name and symbol address
  5115. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5116. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5117. # Handle CRLF in mingw tool chain
  5118. opt_cr=
  5119. case $build_os in
  5120. mingw*)
  5121. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5122. ;;
  5123. esac
  5124. # Try without a prefix underscore, then with it.
  5125. for ac_symprfx in "" "_"; do
  5126. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5127. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5128. # Write the raw and C identifiers.
  5129. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5130. # Fake it for dumpbin and say T for any non-static function
  5131. # and D for any global variable.
  5132. # Also find C++ and __fastcall symbols from MSVC++,
  5133. # which start with @ or ?.
  5134. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5135. " {last_section=section; section=\$ 3};"\
  5136. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5137. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5138. " \$ 0!~/External *\|/{next};"\
  5139. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5140. " {if(hide[section]) next};"\
  5141. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5142. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5143. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5144. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5145. " ' prfx=^$ac_symprfx"
  5146. else
  5147. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5148. fi
  5149. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5150. # Check to see that the pipe works correctly.
  5151. pipe_works=no
  5152. rm -f conftest*
  5153. cat > conftest.$ac_ext <<_LT_EOF
  5154. #ifdef __cplusplus
  5155. extern "C" {
  5156. #endif
  5157. char nm_test_var;
  5158. void nm_test_func(void);
  5159. void nm_test_func(void){}
  5160. #ifdef __cplusplus
  5161. }
  5162. #endif
  5163. int main(){nm_test_var='a';nm_test_func();return(0);}
  5164. _LT_EOF
  5165. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5166. (eval $ac_compile) 2>&5
  5167. ac_status=$?
  5168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5169. test $ac_status = 0; }; then
  5170. # Now try to grab the symbols.
  5171. nlist=conftest.nm
  5172. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5173. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5174. ac_status=$?
  5175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5176. test $ac_status = 0; } && test -s "$nlist"; then
  5177. # Try sorting and uniquifying the output.
  5178. if sort "$nlist" | uniq > "$nlist"T; then
  5179. mv -f "$nlist"T "$nlist"
  5180. else
  5181. rm -f "$nlist"T
  5182. fi
  5183. # Make sure that we snagged all the symbols we need.
  5184. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5185. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5186. cat <<_LT_EOF > conftest.$ac_ext
  5187. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5188. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5189. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5190. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5191. # define LT_DLSYM_CONST
  5192. #elif defined(__osf__)
  5193. /* This system does not cope well with relocations in const data. */
  5194. # define LT_DLSYM_CONST
  5195. #else
  5196. # define LT_DLSYM_CONST const
  5197. #endif
  5198. #ifdef __cplusplus
  5199. extern "C" {
  5200. #endif
  5201. _LT_EOF
  5202. # Now generate the symbol file.
  5203. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5204. cat <<_LT_EOF >> conftest.$ac_ext
  5205. /* The mapping between symbol names and symbols. */
  5206. LT_DLSYM_CONST struct {
  5207. const char *name;
  5208. void *address;
  5209. }
  5210. lt__PROGRAM__LTX_preloaded_symbols[] =
  5211. {
  5212. { "@PROGRAM@", (void *) 0 },
  5213. _LT_EOF
  5214. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5215. cat <<\_LT_EOF >> conftest.$ac_ext
  5216. {0, (void *) 0}
  5217. };
  5218. /* This works around a problem in FreeBSD linker */
  5219. #ifdef FREEBSD_WORKAROUND
  5220. static const void *lt_preloaded_setup() {
  5221. return lt__PROGRAM__LTX_preloaded_symbols;
  5222. }
  5223. #endif
  5224. #ifdef __cplusplus
  5225. }
  5226. #endif
  5227. _LT_EOF
  5228. # Now try linking the two files.
  5229. mv conftest.$ac_objext conftstm.$ac_objext
  5230. lt_globsym_save_LIBS=$LIBS
  5231. lt_globsym_save_CFLAGS=$CFLAGS
  5232. LIBS="conftstm.$ac_objext"
  5233. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5234. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5235. (eval $ac_link) 2>&5
  5236. ac_status=$?
  5237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5238. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5239. pipe_works=yes
  5240. fi
  5241. LIBS=$lt_globsym_save_LIBS
  5242. CFLAGS=$lt_globsym_save_CFLAGS
  5243. else
  5244. echo "cannot find nm_test_func in $nlist" >&5
  5245. fi
  5246. else
  5247. echo "cannot find nm_test_var in $nlist" >&5
  5248. fi
  5249. else
  5250. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5251. fi
  5252. else
  5253. echo "$progname: failed program was:" >&5
  5254. cat conftest.$ac_ext >&5
  5255. fi
  5256. rm -rf conftest* conftst*
  5257. # Do not use the global_symbol_pipe unless it works.
  5258. if test "$pipe_works" = yes; then
  5259. break
  5260. else
  5261. lt_cv_sys_global_symbol_pipe=
  5262. fi
  5263. done
  5264. fi
  5265. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5266. lt_cv_sys_global_symbol_to_cdecl=
  5267. fi
  5268. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5270. $as_echo "failed" >&6; }
  5271. else
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5273. $as_echo "ok" >&6; }
  5274. fi
  5275. # Response file support.
  5276. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5277. nm_file_list_spec='@'
  5278. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5279. nm_file_list_spec='@'
  5280. fi
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5282. $as_echo_n "checking for sysroot... " >&6; }
  5283. # Check whether --with-sysroot was given.
  5284. if test "${with_sysroot+set}" = set; then :
  5285. withval=$with_sysroot;
  5286. else
  5287. with_sysroot=no
  5288. fi
  5289. lt_sysroot=
  5290. case ${with_sysroot} in #(
  5291. yes)
  5292. if test "$GCC" = yes; then
  5293. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5294. fi
  5295. ;; #(
  5296. /*)
  5297. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5298. ;; #(
  5299. no|'')
  5300. ;; #(
  5301. *)
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5303. $as_echo "${with_sysroot}" >&6; }
  5304. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5305. ;;
  5306. esac
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5308. $as_echo "${lt_sysroot:-no}" >&6; }
  5309. # Check whether --enable-libtool-lock was given.
  5310. if test "${enable_libtool_lock+set}" = set; then :
  5311. enableval=$enable_libtool_lock;
  5312. fi
  5313. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5314. # Some flags need to be propagated to the compiler or linker for good
  5315. # libtool support.
  5316. case $host in
  5317. ia64-*-hpux*)
  5318. # Find out which ABI we are using.
  5319. echo 'int i;' > conftest.$ac_ext
  5320. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5321. (eval $ac_compile) 2>&5
  5322. ac_status=$?
  5323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5324. test $ac_status = 0; }; then
  5325. case `/usr/bin/file conftest.$ac_objext` in
  5326. *ELF-32*)
  5327. HPUX_IA64_MODE="32"
  5328. ;;
  5329. *ELF-64*)
  5330. HPUX_IA64_MODE="64"
  5331. ;;
  5332. esac
  5333. fi
  5334. rm -rf conftest*
  5335. ;;
  5336. *-*-irix6*)
  5337. # Find out which ABI we are using.
  5338. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5339. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5340. (eval $ac_compile) 2>&5
  5341. ac_status=$?
  5342. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5343. test $ac_status = 0; }; then
  5344. if test "$lt_cv_prog_gnu_ld" = yes; then
  5345. case `/usr/bin/file conftest.$ac_objext` in
  5346. *32-bit*)
  5347. LD="${LD-ld} -melf32bsmip"
  5348. ;;
  5349. *N32*)
  5350. LD="${LD-ld} -melf32bmipn32"
  5351. ;;
  5352. *64-bit*)
  5353. LD="${LD-ld} -melf64bmip"
  5354. ;;
  5355. esac
  5356. else
  5357. case `/usr/bin/file conftest.$ac_objext` in
  5358. *32-bit*)
  5359. LD="${LD-ld} -32"
  5360. ;;
  5361. *N32*)
  5362. LD="${LD-ld} -n32"
  5363. ;;
  5364. *64-bit*)
  5365. LD="${LD-ld} -64"
  5366. ;;
  5367. esac
  5368. fi
  5369. fi
  5370. rm -rf conftest*
  5371. ;;
  5372. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5373. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5374. # Find out which ABI we are using.
  5375. echo 'int i;' > conftest.$ac_ext
  5376. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5377. (eval $ac_compile) 2>&5
  5378. ac_status=$?
  5379. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5380. test $ac_status = 0; }; then
  5381. case `/usr/bin/file conftest.o` in
  5382. *32-bit*)
  5383. case $host in
  5384. x86_64-*kfreebsd*-gnu)
  5385. LD="${LD-ld} -m elf_i386_fbsd"
  5386. ;;
  5387. x86_64-*linux*)
  5388. LD="${LD-ld} -m elf_i386"
  5389. ;;
  5390. ppc64-*linux*|powerpc64-*linux*)
  5391. LD="${LD-ld} -m elf32ppclinux"
  5392. ;;
  5393. s390x-*linux*)
  5394. LD="${LD-ld} -m elf_s390"
  5395. ;;
  5396. sparc64-*linux*)
  5397. LD="${LD-ld} -m elf32_sparc"
  5398. ;;
  5399. esac
  5400. ;;
  5401. *64-bit*)
  5402. case $host in
  5403. x86_64-*kfreebsd*-gnu)
  5404. LD="${LD-ld} -m elf_x86_64_fbsd"
  5405. ;;
  5406. x86_64-*linux*)
  5407. LD="${LD-ld} -m elf_x86_64"
  5408. ;;
  5409. powerpc64le-*linux*)
  5410. LD="${LD-ld} -m elf64lppc"
  5411. ;;
  5412. powerpc64-*linux*)
  5413. LD="${LD-ld} -m elf64ppc"
  5414. ;;
  5415. s390*-*linux*|s390*-*tpf*)
  5416. LD="${LD-ld} -m elf64_s390"
  5417. ;;
  5418. sparc*-*linux*)
  5419. LD="${LD-ld} -m elf64_sparc"
  5420. ;;
  5421. esac
  5422. ;;
  5423. esac
  5424. fi
  5425. rm -rf conftest*
  5426. ;;
  5427. *-*-sco3.2v5*)
  5428. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5429. SAVE_CFLAGS="$CFLAGS"
  5430. CFLAGS="$CFLAGS -belf"
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5432. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5433. if ${lt_cv_cc_needs_belf+:} false; then :
  5434. $as_echo_n "(cached) " >&6
  5435. else
  5436. ac_ext=c
  5437. ac_cpp='$CPP $CPPFLAGS'
  5438. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5439. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5440. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5442. /* end confdefs.h. */
  5443. int
  5444. main ()
  5445. {
  5446. ;
  5447. return 0;
  5448. }
  5449. _ACEOF
  5450. if ac_fn_c_try_link "$LINENO"; then :
  5451. lt_cv_cc_needs_belf=yes
  5452. else
  5453. lt_cv_cc_needs_belf=no
  5454. fi
  5455. rm -f core conftest.err conftest.$ac_objext \
  5456. conftest$ac_exeext conftest.$ac_ext
  5457. ac_ext=c
  5458. ac_cpp='$CPP $CPPFLAGS'
  5459. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5460. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5461. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5462. fi
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5464. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5465. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5466. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5467. CFLAGS="$SAVE_CFLAGS"
  5468. fi
  5469. ;;
  5470. *-*solaris*)
  5471. # Find out which ABI we are using.
  5472. echo 'int i;' > conftest.$ac_ext
  5473. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5474. (eval $ac_compile) 2>&5
  5475. ac_status=$?
  5476. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5477. test $ac_status = 0; }; then
  5478. case `/usr/bin/file conftest.o` in
  5479. *64-bit*)
  5480. case $lt_cv_prog_gnu_ld in
  5481. yes*)
  5482. case $host in
  5483. i?86-*-solaris*)
  5484. LD="${LD-ld} -m elf_x86_64"
  5485. ;;
  5486. sparc*-*-solaris*)
  5487. LD="${LD-ld} -m elf64_sparc"
  5488. ;;
  5489. esac
  5490. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5491. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5492. LD="${LD-ld}_sol2"
  5493. fi
  5494. ;;
  5495. *)
  5496. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5497. LD="${LD-ld} -64"
  5498. fi
  5499. ;;
  5500. esac
  5501. ;;
  5502. esac
  5503. fi
  5504. rm -rf conftest*
  5505. ;;
  5506. esac
  5507. need_locks="$enable_libtool_lock"
  5508. if test -n "$ac_tool_prefix"; then
  5509. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5510. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5512. $as_echo_n "checking for $ac_word... " >&6; }
  5513. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5514. $as_echo_n "(cached) " >&6
  5515. else
  5516. if test -n "$MANIFEST_TOOL"; then
  5517. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5518. else
  5519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5520. for as_dir in $PATH
  5521. do
  5522. IFS=$as_save_IFS
  5523. test -z "$as_dir" && as_dir=.
  5524. for ac_exec_ext in '' $ac_executable_extensions; do
  5525. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5526. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5528. break 2
  5529. fi
  5530. done
  5531. done
  5532. IFS=$as_save_IFS
  5533. fi
  5534. fi
  5535. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5536. if test -n "$MANIFEST_TOOL"; then
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5538. $as_echo "$MANIFEST_TOOL" >&6; }
  5539. else
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5541. $as_echo "no" >&6; }
  5542. fi
  5543. fi
  5544. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5545. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5546. # Extract the first word of "mt", so it can be a program name with args.
  5547. set dummy mt; ac_word=$2
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5549. $as_echo_n "checking for $ac_word... " >&6; }
  5550. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5551. $as_echo_n "(cached) " >&6
  5552. else
  5553. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5554. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5555. else
  5556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5557. for as_dir in $PATH
  5558. do
  5559. IFS=$as_save_IFS
  5560. test -z "$as_dir" && as_dir=.
  5561. for ac_exec_ext in '' $ac_executable_extensions; do
  5562. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5563. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5565. break 2
  5566. fi
  5567. done
  5568. done
  5569. IFS=$as_save_IFS
  5570. fi
  5571. fi
  5572. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5573. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5575. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5576. else
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5578. $as_echo "no" >&6; }
  5579. fi
  5580. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5581. MANIFEST_TOOL=":"
  5582. else
  5583. case $cross_compiling:$ac_tool_warned in
  5584. yes:)
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5586. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5587. ac_tool_warned=yes ;;
  5588. esac
  5589. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5590. fi
  5591. else
  5592. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5593. fi
  5594. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5596. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5597. if ${lt_cv_path_mainfest_tool+:} false; then :
  5598. $as_echo_n "(cached) " >&6
  5599. else
  5600. lt_cv_path_mainfest_tool=no
  5601. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5602. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5603. cat conftest.err >&5
  5604. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5605. lt_cv_path_mainfest_tool=yes
  5606. fi
  5607. rm -f conftest*
  5608. fi
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5610. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5611. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5612. MANIFEST_TOOL=:
  5613. fi
  5614. case $host_os in
  5615. rhapsody* | darwin*)
  5616. if test -n "$ac_tool_prefix"; then
  5617. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5618. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5620. $as_echo_n "checking for $ac_word... " >&6; }
  5621. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5622. $as_echo_n "(cached) " >&6
  5623. else
  5624. if test -n "$DSYMUTIL"; then
  5625. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5626. else
  5627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5628. for as_dir in $PATH
  5629. do
  5630. IFS=$as_save_IFS
  5631. test -z "$as_dir" && as_dir=.
  5632. for ac_exec_ext in '' $ac_executable_extensions; do
  5633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5634. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5636. break 2
  5637. fi
  5638. done
  5639. done
  5640. IFS=$as_save_IFS
  5641. fi
  5642. fi
  5643. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5644. if test -n "$DSYMUTIL"; then
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5646. $as_echo "$DSYMUTIL" >&6; }
  5647. else
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5649. $as_echo "no" >&6; }
  5650. fi
  5651. fi
  5652. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5653. ac_ct_DSYMUTIL=$DSYMUTIL
  5654. # Extract the first word of "dsymutil", so it can be a program name with args.
  5655. set dummy dsymutil; ac_word=$2
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5657. $as_echo_n "checking for $ac_word... " >&6; }
  5658. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5659. $as_echo_n "(cached) " >&6
  5660. else
  5661. if test -n "$ac_ct_DSYMUTIL"; then
  5662. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5663. else
  5664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5665. for as_dir in $PATH
  5666. do
  5667. IFS=$as_save_IFS
  5668. test -z "$as_dir" && as_dir=.
  5669. for ac_exec_ext in '' $ac_executable_extensions; do
  5670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5671. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5673. break 2
  5674. fi
  5675. done
  5676. done
  5677. IFS=$as_save_IFS
  5678. fi
  5679. fi
  5680. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5681. if test -n "$ac_ct_DSYMUTIL"; then
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5683. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5684. else
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5686. $as_echo "no" >&6; }
  5687. fi
  5688. if test "x$ac_ct_DSYMUTIL" = x; then
  5689. DSYMUTIL=":"
  5690. else
  5691. case $cross_compiling:$ac_tool_warned in
  5692. yes:)
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5694. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5695. ac_tool_warned=yes ;;
  5696. esac
  5697. DSYMUTIL=$ac_ct_DSYMUTIL
  5698. fi
  5699. else
  5700. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5701. fi
  5702. if test -n "$ac_tool_prefix"; then
  5703. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5704. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5706. $as_echo_n "checking for $ac_word... " >&6; }
  5707. if ${ac_cv_prog_NMEDIT+:} false; then :
  5708. $as_echo_n "(cached) " >&6
  5709. else
  5710. if test -n "$NMEDIT"; then
  5711. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5712. else
  5713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5714. for as_dir in $PATH
  5715. do
  5716. IFS=$as_save_IFS
  5717. test -z "$as_dir" && as_dir=.
  5718. for ac_exec_ext in '' $ac_executable_extensions; do
  5719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5720. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5722. break 2
  5723. fi
  5724. done
  5725. done
  5726. IFS=$as_save_IFS
  5727. fi
  5728. fi
  5729. NMEDIT=$ac_cv_prog_NMEDIT
  5730. if test -n "$NMEDIT"; then
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5732. $as_echo "$NMEDIT" >&6; }
  5733. else
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5735. $as_echo "no" >&6; }
  5736. fi
  5737. fi
  5738. if test -z "$ac_cv_prog_NMEDIT"; then
  5739. ac_ct_NMEDIT=$NMEDIT
  5740. # Extract the first word of "nmedit", so it can be a program name with args.
  5741. set dummy nmedit; ac_word=$2
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5743. $as_echo_n "checking for $ac_word... " >&6; }
  5744. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5745. $as_echo_n "(cached) " >&6
  5746. else
  5747. if test -n "$ac_ct_NMEDIT"; then
  5748. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5749. else
  5750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5751. for as_dir in $PATH
  5752. do
  5753. IFS=$as_save_IFS
  5754. test -z "$as_dir" && as_dir=.
  5755. for ac_exec_ext in '' $ac_executable_extensions; do
  5756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5757. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5759. break 2
  5760. fi
  5761. done
  5762. done
  5763. IFS=$as_save_IFS
  5764. fi
  5765. fi
  5766. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5767. if test -n "$ac_ct_NMEDIT"; then
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5769. $as_echo "$ac_ct_NMEDIT" >&6; }
  5770. else
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5772. $as_echo "no" >&6; }
  5773. fi
  5774. if test "x$ac_ct_NMEDIT" = x; then
  5775. NMEDIT=":"
  5776. else
  5777. case $cross_compiling:$ac_tool_warned in
  5778. yes:)
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5780. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5781. ac_tool_warned=yes ;;
  5782. esac
  5783. NMEDIT=$ac_ct_NMEDIT
  5784. fi
  5785. else
  5786. NMEDIT="$ac_cv_prog_NMEDIT"
  5787. fi
  5788. if test -n "$ac_tool_prefix"; then
  5789. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5790. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5792. $as_echo_n "checking for $ac_word... " >&6; }
  5793. if ${ac_cv_prog_LIPO+:} false; then :
  5794. $as_echo_n "(cached) " >&6
  5795. else
  5796. if test -n "$LIPO"; then
  5797. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5798. else
  5799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5800. for as_dir in $PATH
  5801. do
  5802. IFS=$as_save_IFS
  5803. test -z "$as_dir" && as_dir=.
  5804. for ac_exec_ext in '' $ac_executable_extensions; do
  5805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5806. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5808. break 2
  5809. fi
  5810. done
  5811. done
  5812. IFS=$as_save_IFS
  5813. fi
  5814. fi
  5815. LIPO=$ac_cv_prog_LIPO
  5816. if test -n "$LIPO"; then
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5818. $as_echo "$LIPO" >&6; }
  5819. else
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5821. $as_echo "no" >&6; }
  5822. fi
  5823. fi
  5824. if test -z "$ac_cv_prog_LIPO"; then
  5825. ac_ct_LIPO=$LIPO
  5826. # Extract the first word of "lipo", so it can be a program name with args.
  5827. set dummy lipo; ac_word=$2
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5829. $as_echo_n "checking for $ac_word... " >&6; }
  5830. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5831. $as_echo_n "(cached) " >&6
  5832. else
  5833. if test -n "$ac_ct_LIPO"; then
  5834. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5835. else
  5836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5837. for as_dir in $PATH
  5838. do
  5839. IFS=$as_save_IFS
  5840. test -z "$as_dir" && as_dir=.
  5841. for ac_exec_ext in '' $ac_executable_extensions; do
  5842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5843. ac_cv_prog_ac_ct_LIPO="lipo"
  5844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5845. break 2
  5846. fi
  5847. done
  5848. done
  5849. IFS=$as_save_IFS
  5850. fi
  5851. fi
  5852. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5853. if test -n "$ac_ct_LIPO"; then
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5855. $as_echo "$ac_ct_LIPO" >&6; }
  5856. else
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5858. $as_echo "no" >&6; }
  5859. fi
  5860. if test "x$ac_ct_LIPO" = x; then
  5861. LIPO=":"
  5862. else
  5863. case $cross_compiling:$ac_tool_warned in
  5864. yes:)
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5866. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5867. ac_tool_warned=yes ;;
  5868. esac
  5869. LIPO=$ac_ct_LIPO
  5870. fi
  5871. else
  5872. LIPO="$ac_cv_prog_LIPO"
  5873. fi
  5874. if test -n "$ac_tool_prefix"; then
  5875. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5876. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5878. $as_echo_n "checking for $ac_word... " >&6; }
  5879. if ${ac_cv_prog_OTOOL+:} false; then :
  5880. $as_echo_n "(cached) " >&6
  5881. else
  5882. if test -n "$OTOOL"; then
  5883. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5884. else
  5885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5886. for as_dir in $PATH
  5887. do
  5888. IFS=$as_save_IFS
  5889. test -z "$as_dir" && as_dir=.
  5890. for ac_exec_ext in '' $ac_executable_extensions; do
  5891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5892. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5894. break 2
  5895. fi
  5896. done
  5897. done
  5898. IFS=$as_save_IFS
  5899. fi
  5900. fi
  5901. OTOOL=$ac_cv_prog_OTOOL
  5902. if test -n "$OTOOL"; then
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5904. $as_echo "$OTOOL" >&6; }
  5905. else
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5907. $as_echo "no" >&6; }
  5908. fi
  5909. fi
  5910. if test -z "$ac_cv_prog_OTOOL"; then
  5911. ac_ct_OTOOL=$OTOOL
  5912. # Extract the first word of "otool", so it can be a program name with args.
  5913. set dummy otool; ac_word=$2
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5915. $as_echo_n "checking for $ac_word... " >&6; }
  5916. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5917. $as_echo_n "(cached) " >&6
  5918. else
  5919. if test -n "$ac_ct_OTOOL"; then
  5920. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5921. else
  5922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5923. for as_dir in $PATH
  5924. do
  5925. IFS=$as_save_IFS
  5926. test -z "$as_dir" && as_dir=.
  5927. for ac_exec_ext in '' $ac_executable_extensions; do
  5928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5929. ac_cv_prog_ac_ct_OTOOL="otool"
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5931. break 2
  5932. fi
  5933. done
  5934. done
  5935. IFS=$as_save_IFS
  5936. fi
  5937. fi
  5938. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5939. if test -n "$ac_ct_OTOOL"; then
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5941. $as_echo "$ac_ct_OTOOL" >&6; }
  5942. else
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5944. $as_echo "no" >&6; }
  5945. fi
  5946. if test "x$ac_ct_OTOOL" = x; then
  5947. OTOOL=":"
  5948. else
  5949. case $cross_compiling:$ac_tool_warned in
  5950. yes:)
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5953. ac_tool_warned=yes ;;
  5954. esac
  5955. OTOOL=$ac_ct_OTOOL
  5956. fi
  5957. else
  5958. OTOOL="$ac_cv_prog_OTOOL"
  5959. fi
  5960. if test -n "$ac_tool_prefix"; then
  5961. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5962. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5964. $as_echo_n "checking for $ac_word... " >&6; }
  5965. if ${ac_cv_prog_OTOOL64+:} false; then :
  5966. $as_echo_n "(cached) " >&6
  5967. else
  5968. if test -n "$OTOOL64"; then
  5969. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5970. else
  5971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5972. for as_dir in $PATH
  5973. do
  5974. IFS=$as_save_IFS
  5975. test -z "$as_dir" && as_dir=.
  5976. for ac_exec_ext in '' $ac_executable_extensions; do
  5977. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5978. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5980. break 2
  5981. fi
  5982. done
  5983. done
  5984. IFS=$as_save_IFS
  5985. fi
  5986. fi
  5987. OTOOL64=$ac_cv_prog_OTOOL64
  5988. if test -n "$OTOOL64"; then
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5990. $as_echo "$OTOOL64" >&6; }
  5991. else
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5993. $as_echo "no" >&6; }
  5994. fi
  5995. fi
  5996. if test -z "$ac_cv_prog_OTOOL64"; then
  5997. ac_ct_OTOOL64=$OTOOL64
  5998. # Extract the first word of "otool64", so it can be a program name with args.
  5999. set dummy otool64; ac_word=$2
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6001. $as_echo_n "checking for $ac_word... " >&6; }
  6002. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6003. $as_echo_n "(cached) " >&6
  6004. else
  6005. if test -n "$ac_ct_OTOOL64"; then
  6006. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6007. else
  6008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6009. for as_dir in $PATH
  6010. do
  6011. IFS=$as_save_IFS
  6012. test -z "$as_dir" && as_dir=.
  6013. for ac_exec_ext in '' $ac_executable_extensions; do
  6014. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6015. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6017. break 2
  6018. fi
  6019. done
  6020. done
  6021. IFS=$as_save_IFS
  6022. fi
  6023. fi
  6024. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6025. if test -n "$ac_ct_OTOOL64"; then
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6027. $as_echo "$ac_ct_OTOOL64" >&6; }
  6028. else
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6030. $as_echo "no" >&6; }
  6031. fi
  6032. if test "x$ac_ct_OTOOL64" = x; then
  6033. OTOOL64=":"
  6034. else
  6035. case $cross_compiling:$ac_tool_warned in
  6036. yes:)
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6038. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6039. ac_tool_warned=yes ;;
  6040. esac
  6041. OTOOL64=$ac_ct_OTOOL64
  6042. fi
  6043. else
  6044. OTOOL64="$ac_cv_prog_OTOOL64"
  6045. fi
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6047. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6048. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6049. $as_echo_n "(cached) " >&6
  6050. else
  6051. lt_cv_apple_cc_single_mod=no
  6052. if test -z "${LT_MULTI_MODULE}"; then
  6053. # By default we will add the -single_module flag. You can override
  6054. # by either setting the environment variable LT_MULTI_MODULE
  6055. # non-empty at configure time, or by adding -multi_module to the
  6056. # link flags.
  6057. rm -rf libconftest.dylib*
  6058. echo "int foo(void){return 1;}" > conftest.c
  6059. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6060. -dynamiclib -Wl,-single_module conftest.c" >&5
  6061. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6062. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6063. _lt_result=$?
  6064. # If there is a non-empty error log, and "single_module"
  6065. # appears in it, assume the flag caused a linker warning
  6066. if test -s conftest.err && $GREP single_module conftest.err; then
  6067. cat conftest.err >&5
  6068. # Otherwise, if the output was created with a 0 exit code from
  6069. # the compiler, it worked.
  6070. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6071. lt_cv_apple_cc_single_mod=yes
  6072. else
  6073. cat conftest.err >&5
  6074. fi
  6075. rm -rf libconftest.dylib*
  6076. rm -f conftest.*
  6077. fi
  6078. fi
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6080. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6082. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6083. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6084. $as_echo_n "(cached) " >&6
  6085. else
  6086. lt_cv_ld_exported_symbols_list=no
  6087. save_LDFLAGS=$LDFLAGS
  6088. echo "_main" > conftest.sym
  6089. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6091. /* end confdefs.h. */
  6092. int
  6093. main ()
  6094. {
  6095. ;
  6096. return 0;
  6097. }
  6098. _ACEOF
  6099. if ac_fn_c_try_link "$LINENO"; then :
  6100. lt_cv_ld_exported_symbols_list=yes
  6101. else
  6102. lt_cv_ld_exported_symbols_list=no
  6103. fi
  6104. rm -f core conftest.err conftest.$ac_objext \
  6105. conftest$ac_exeext conftest.$ac_ext
  6106. LDFLAGS="$save_LDFLAGS"
  6107. fi
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6109. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6111. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6112. if ${lt_cv_ld_force_load+:} false; then :
  6113. $as_echo_n "(cached) " >&6
  6114. else
  6115. lt_cv_ld_force_load=no
  6116. cat > conftest.c << _LT_EOF
  6117. int forced_loaded() { return 2;}
  6118. _LT_EOF
  6119. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6120. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6121. echo "$AR cru libconftest.a conftest.o" >&5
  6122. $AR cru libconftest.a conftest.o 2>&5
  6123. echo "$RANLIB libconftest.a" >&5
  6124. $RANLIB libconftest.a 2>&5
  6125. cat > conftest.c << _LT_EOF
  6126. int main() { return 0;}
  6127. _LT_EOF
  6128. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6129. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6130. _lt_result=$?
  6131. if test -s conftest.err && $GREP force_load conftest.err; then
  6132. cat conftest.err >&5
  6133. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6134. lt_cv_ld_force_load=yes
  6135. else
  6136. cat conftest.err >&5
  6137. fi
  6138. rm -f conftest.err libconftest.a conftest conftest.c
  6139. rm -rf conftest.dSYM
  6140. fi
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6142. $as_echo "$lt_cv_ld_force_load" >&6; }
  6143. case $host_os in
  6144. rhapsody* | darwin1.[012])
  6145. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6146. darwin1.*)
  6147. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6148. darwin*)
  6149. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6150. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6151. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6152. *)
  6153. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6154. esac
  6155. ;;
  6156. esac
  6157. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6158. _lt_dar_single_mod='$single_module'
  6159. fi
  6160. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6161. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6162. else
  6163. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6164. fi
  6165. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6166. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6167. else
  6168. _lt_dsymutil=
  6169. fi
  6170. ;;
  6171. esac
  6172. ac_ext=c
  6173. ac_cpp='$CPP $CPPFLAGS'
  6174. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6175. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6176. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6178. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6179. # On Suns, sometimes $CPP names a directory.
  6180. if test -n "$CPP" && test -d "$CPP"; then
  6181. CPP=
  6182. fi
  6183. if test -z "$CPP"; then
  6184. if ${ac_cv_prog_CPP+:} false; then :
  6185. $as_echo_n "(cached) " >&6
  6186. else
  6187. # Double quotes because CPP needs to be expanded
  6188. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6189. do
  6190. ac_preproc_ok=false
  6191. for ac_c_preproc_warn_flag in '' yes
  6192. do
  6193. # Use a header file that comes with gcc, so configuring glibc
  6194. # with a fresh cross-compiler works.
  6195. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6196. # <limits.h> exists even on freestanding compilers.
  6197. # On the NeXT, cc -E runs the code through the compiler's parser,
  6198. # not just through cpp. "Syntax error" is here to catch this case.
  6199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6200. /* end confdefs.h. */
  6201. #ifdef __STDC__
  6202. # include <limits.h>
  6203. #else
  6204. # include <assert.h>
  6205. #endif
  6206. Syntax error
  6207. _ACEOF
  6208. if ac_fn_c_try_cpp "$LINENO"; then :
  6209. else
  6210. # Broken: fails on valid input.
  6211. continue
  6212. fi
  6213. rm -f conftest.err conftest.i conftest.$ac_ext
  6214. # OK, works on sane cases. Now check whether nonexistent headers
  6215. # can be detected and how.
  6216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6217. /* end confdefs.h. */
  6218. #include <ac_nonexistent.h>
  6219. _ACEOF
  6220. if ac_fn_c_try_cpp "$LINENO"; then :
  6221. # Broken: success on invalid input.
  6222. continue
  6223. else
  6224. # Passes both tests.
  6225. ac_preproc_ok=:
  6226. break
  6227. fi
  6228. rm -f conftest.err conftest.i conftest.$ac_ext
  6229. done
  6230. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6231. rm -f conftest.i conftest.err conftest.$ac_ext
  6232. if $ac_preproc_ok; then :
  6233. break
  6234. fi
  6235. done
  6236. ac_cv_prog_CPP=$CPP
  6237. fi
  6238. CPP=$ac_cv_prog_CPP
  6239. else
  6240. ac_cv_prog_CPP=$CPP
  6241. fi
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6243. $as_echo "$CPP" >&6; }
  6244. ac_preproc_ok=false
  6245. for ac_c_preproc_warn_flag in '' yes
  6246. do
  6247. # Use a header file that comes with gcc, so configuring glibc
  6248. # with a fresh cross-compiler works.
  6249. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6250. # <limits.h> exists even on freestanding compilers.
  6251. # On the NeXT, cc -E runs the code through the compiler's parser,
  6252. # not just through cpp. "Syntax error" is here to catch this case.
  6253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6254. /* end confdefs.h. */
  6255. #ifdef __STDC__
  6256. # include <limits.h>
  6257. #else
  6258. # include <assert.h>
  6259. #endif
  6260. Syntax error
  6261. _ACEOF
  6262. if ac_fn_c_try_cpp "$LINENO"; then :
  6263. else
  6264. # Broken: fails on valid input.
  6265. continue
  6266. fi
  6267. rm -f conftest.err conftest.i conftest.$ac_ext
  6268. # OK, works on sane cases. Now check whether nonexistent headers
  6269. # can be detected and how.
  6270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6271. /* end confdefs.h. */
  6272. #include <ac_nonexistent.h>
  6273. _ACEOF
  6274. if ac_fn_c_try_cpp "$LINENO"; then :
  6275. # Broken: success on invalid input.
  6276. continue
  6277. else
  6278. # Passes both tests.
  6279. ac_preproc_ok=:
  6280. break
  6281. fi
  6282. rm -f conftest.err conftest.i conftest.$ac_ext
  6283. done
  6284. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6285. rm -f conftest.i conftest.err conftest.$ac_ext
  6286. if $ac_preproc_ok; then :
  6287. else
  6288. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6289. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6290. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6291. See \`config.log' for more details" "$LINENO" 5; }
  6292. fi
  6293. ac_ext=c
  6294. ac_cpp='$CPP $CPPFLAGS'
  6295. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6296. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6297. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6299. $as_echo_n "checking for ANSI C header files... " >&6; }
  6300. if ${ac_cv_header_stdc+:} false; then :
  6301. $as_echo_n "(cached) " >&6
  6302. else
  6303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6304. /* end confdefs.h. */
  6305. #include <stdlib.h>
  6306. #include <stdarg.h>
  6307. #include <string.h>
  6308. #include <float.h>
  6309. int
  6310. main ()
  6311. {
  6312. ;
  6313. return 0;
  6314. }
  6315. _ACEOF
  6316. if ac_fn_c_try_compile "$LINENO"; then :
  6317. ac_cv_header_stdc=yes
  6318. else
  6319. ac_cv_header_stdc=no
  6320. fi
  6321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6322. if test $ac_cv_header_stdc = yes; then
  6323. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6325. /* end confdefs.h. */
  6326. #include <string.h>
  6327. _ACEOF
  6328. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6329. $EGREP "memchr" >/dev/null 2>&1; then :
  6330. else
  6331. ac_cv_header_stdc=no
  6332. fi
  6333. rm -f conftest*
  6334. fi
  6335. if test $ac_cv_header_stdc = yes; then
  6336. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6338. /* end confdefs.h. */
  6339. #include <stdlib.h>
  6340. _ACEOF
  6341. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6342. $EGREP "free" >/dev/null 2>&1; then :
  6343. else
  6344. ac_cv_header_stdc=no
  6345. fi
  6346. rm -f conftest*
  6347. fi
  6348. if test $ac_cv_header_stdc = yes; then
  6349. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6350. if test "$cross_compiling" = yes; then :
  6351. :
  6352. else
  6353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6354. /* end confdefs.h. */
  6355. #include <ctype.h>
  6356. #include <stdlib.h>
  6357. #if ((' ' & 0x0FF) == 0x020)
  6358. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6359. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6360. #else
  6361. # define ISLOWER(c) \
  6362. (('a' <= (c) && (c) <= 'i') \
  6363. || ('j' <= (c) && (c) <= 'r') \
  6364. || ('s' <= (c) && (c) <= 'z'))
  6365. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6366. #endif
  6367. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6368. int
  6369. main ()
  6370. {
  6371. int i;
  6372. for (i = 0; i < 256; i++)
  6373. if (XOR (islower (i), ISLOWER (i))
  6374. || toupper (i) != TOUPPER (i))
  6375. return 2;
  6376. return 0;
  6377. }
  6378. _ACEOF
  6379. if ac_fn_c_try_run "$LINENO"; then :
  6380. else
  6381. ac_cv_header_stdc=no
  6382. fi
  6383. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6384. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6385. fi
  6386. fi
  6387. fi
  6388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6389. $as_echo "$ac_cv_header_stdc" >&6; }
  6390. if test $ac_cv_header_stdc = yes; then
  6391. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6392. fi
  6393. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6394. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6395. inttypes.h stdint.h unistd.h
  6396. do :
  6397. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6398. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6399. "
  6400. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6401. cat >>confdefs.h <<_ACEOF
  6402. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6403. _ACEOF
  6404. fi
  6405. done
  6406. for ac_header in dlfcn.h
  6407. do :
  6408. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6409. "
  6410. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6411. cat >>confdefs.h <<_ACEOF
  6412. #define HAVE_DLFCN_H 1
  6413. _ACEOF
  6414. fi
  6415. done
  6416. # Set options
  6417. enable_win32_dll=yes
  6418. case $host in
  6419. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6420. if test -n "$ac_tool_prefix"; then
  6421. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6422. set dummy ${ac_tool_prefix}as; ac_word=$2
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6424. $as_echo_n "checking for $ac_word... " >&6; }
  6425. if ${ac_cv_prog_AS+:} false; then :
  6426. $as_echo_n "(cached) " >&6
  6427. else
  6428. if test -n "$AS"; then
  6429. ac_cv_prog_AS="$AS" # Let the user override the test.
  6430. else
  6431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6432. for as_dir in $PATH
  6433. do
  6434. IFS=$as_save_IFS
  6435. test -z "$as_dir" && as_dir=.
  6436. for ac_exec_ext in '' $ac_executable_extensions; do
  6437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6438. ac_cv_prog_AS="${ac_tool_prefix}as"
  6439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6440. break 2
  6441. fi
  6442. done
  6443. done
  6444. IFS=$as_save_IFS
  6445. fi
  6446. fi
  6447. AS=$ac_cv_prog_AS
  6448. if test -n "$AS"; then
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6450. $as_echo "$AS" >&6; }
  6451. else
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6453. $as_echo "no" >&6; }
  6454. fi
  6455. fi
  6456. if test -z "$ac_cv_prog_AS"; then
  6457. ac_ct_AS=$AS
  6458. # Extract the first word of "as", so it can be a program name with args.
  6459. set dummy as; ac_word=$2
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6461. $as_echo_n "checking for $ac_word... " >&6; }
  6462. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6463. $as_echo_n "(cached) " >&6
  6464. else
  6465. if test -n "$ac_ct_AS"; then
  6466. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6467. else
  6468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6469. for as_dir in $PATH
  6470. do
  6471. IFS=$as_save_IFS
  6472. test -z "$as_dir" && as_dir=.
  6473. for ac_exec_ext in '' $ac_executable_extensions; do
  6474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6475. ac_cv_prog_ac_ct_AS="as"
  6476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6477. break 2
  6478. fi
  6479. done
  6480. done
  6481. IFS=$as_save_IFS
  6482. fi
  6483. fi
  6484. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6485. if test -n "$ac_ct_AS"; then
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6487. $as_echo "$ac_ct_AS" >&6; }
  6488. else
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6490. $as_echo "no" >&6; }
  6491. fi
  6492. if test "x$ac_ct_AS" = x; then
  6493. AS="false"
  6494. else
  6495. case $cross_compiling:$ac_tool_warned in
  6496. yes:)
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6498. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6499. ac_tool_warned=yes ;;
  6500. esac
  6501. AS=$ac_ct_AS
  6502. fi
  6503. else
  6504. AS="$ac_cv_prog_AS"
  6505. fi
  6506. if test -n "$ac_tool_prefix"; then
  6507. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6508. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6510. $as_echo_n "checking for $ac_word... " >&6; }
  6511. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6512. $as_echo_n "(cached) " >&6
  6513. else
  6514. if test -n "$DLLTOOL"; then
  6515. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6516. else
  6517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6518. for as_dir in $PATH
  6519. do
  6520. IFS=$as_save_IFS
  6521. test -z "$as_dir" && as_dir=.
  6522. for ac_exec_ext in '' $ac_executable_extensions; do
  6523. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6524. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6526. break 2
  6527. fi
  6528. done
  6529. done
  6530. IFS=$as_save_IFS
  6531. fi
  6532. fi
  6533. DLLTOOL=$ac_cv_prog_DLLTOOL
  6534. if test -n "$DLLTOOL"; then
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6536. $as_echo "$DLLTOOL" >&6; }
  6537. else
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6539. $as_echo "no" >&6; }
  6540. fi
  6541. fi
  6542. if test -z "$ac_cv_prog_DLLTOOL"; then
  6543. ac_ct_DLLTOOL=$DLLTOOL
  6544. # Extract the first word of "dlltool", so it can be a program name with args.
  6545. set dummy dlltool; ac_word=$2
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6547. $as_echo_n "checking for $ac_word... " >&6; }
  6548. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6549. $as_echo_n "(cached) " >&6
  6550. else
  6551. if test -n "$ac_ct_DLLTOOL"; then
  6552. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6553. else
  6554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6555. for as_dir in $PATH
  6556. do
  6557. IFS=$as_save_IFS
  6558. test -z "$as_dir" && as_dir=.
  6559. for ac_exec_ext in '' $ac_executable_extensions; do
  6560. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6561. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6563. break 2
  6564. fi
  6565. done
  6566. done
  6567. IFS=$as_save_IFS
  6568. fi
  6569. fi
  6570. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6571. if test -n "$ac_ct_DLLTOOL"; then
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6573. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6574. else
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6576. $as_echo "no" >&6; }
  6577. fi
  6578. if test "x$ac_ct_DLLTOOL" = x; then
  6579. DLLTOOL="false"
  6580. else
  6581. case $cross_compiling:$ac_tool_warned in
  6582. yes:)
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6584. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6585. ac_tool_warned=yes ;;
  6586. esac
  6587. DLLTOOL=$ac_ct_DLLTOOL
  6588. fi
  6589. else
  6590. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6591. fi
  6592. if test -n "$ac_tool_prefix"; then
  6593. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6594. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6596. $as_echo_n "checking for $ac_word... " >&6; }
  6597. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6598. $as_echo_n "(cached) " >&6
  6599. else
  6600. if test -n "$OBJDUMP"; then
  6601. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6602. else
  6603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6604. for as_dir in $PATH
  6605. do
  6606. IFS=$as_save_IFS
  6607. test -z "$as_dir" && as_dir=.
  6608. for ac_exec_ext in '' $ac_executable_extensions; do
  6609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6610. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6612. break 2
  6613. fi
  6614. done
  6615. done
  6616. IFS=$as_save_IFS
  6617. fi
  6618. fi
  6619. OBJDUMP=$ac_cv_prog_OBJDUMP
  6620. if test -n "$OBJDUMP"; then
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6622. $as_echo "$OBJDUMP" >&6; }
  6623. else
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6625. $as_echo "no" >&6; }
  6626. fi
  6627. fi
  6628. if test -z "$ac_cv_prog_OBJDUMP"; then
  6629. ac_ct_OBJDUMP=$OBJDUMP
  6630. # Extract the first word of "objdump", so it can be a program name with args.
  6631. set dummy objdump; ac_word=$2
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6633. $as_echo_n "checking for $ac_word... " >&6; }
  6634. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6635. $as_echo_n "(cached) " >&6
  6636. else
  6637. if test -n "$ac_ct_OBJDUMP"; then
  6638. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6639. else
  6640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6641. for as_dir in $PATH
  6642. do
  6643. IFS=$as_save_IFS
  6644. test -z "$as_dir" && as_dir=.
  6645. for ac_exec_ext in '' $ac_executable_extensions; do
  6646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6647. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6649. break 2
  6650. fi
  6651. done
  6652. done
  6653. IFS=$as_save_IFS
  6654. fi
  6655. fi
  6656. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6657. if test -n "$ac_ct_OBJDUMP"; then
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6659. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6660. else
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6662. $as_echo "no" >&6; }
  6663. fi
  6664. if test "x$ac_ct_OBJDUMP" = x; then
  6665. OBJDUMP="false"
  6666. else
  6667. case $cross_compiling:$ac_tool_warned in
  6668. yes:)
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6670. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6671. ac_tool_warned=yes ;;
  6672. esac
  6673. OBJDUMP=$ac_ct_OBJDUMP
  6674. fi
  6675. else
  6676. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6677. fi
  6678. ;;
  6679. esac
  6680. test -z "$AS" && AS=as
  6681. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6682. test -z "$OBJDUMP" && OBJDUMP=objdump
  6683. enable_dlopen=no
  6684. # Check whether --enable-shared was given.
  6685. if test "${enable_shared+set}" = set; then :
  6686. enableval=$enable_shared; p=${PACKAGE-default}
  6687. case $enableval in
  6688. yes) enable_shared=yes ;;
  6689. no) enable_shared=no ;;
  6690. *)
  6691. enable_shared=no
  6692. # Look at the argument we got. We use all the common list separators.
  6693. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6694. for pkg in $enableval; do
  6695. IFS="$lt_save_ifs"
  6696. if test "X$pkg" = "X$p"; then
  6697. enable_shared=yes
  6698. fi
  6699. done
  6700. IFS="$lt_save_ifs"
  6701. ;;
  6702. esac
  6703. else
  6704. enable_shared=yes
  6705. fi
  6706. # Check whether --enable-static was given.
  6707. if test "${enable_static+set}" = set; then :
  6708. enableval=$enable_static; p=${PACKAGE-default}
  6709. case $enableval in
  6710. yes) enable_static=yes ;;
  6711. no) enable_static=no ;;
  6712. *)
  6713. enable_static=no
  6714. # Look at the argument we got. We use all the common list separators.
  6715. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6716. for pkg in $enableval; do
  6717. IFS="$lt_save_ifs"
  6718. if test "X$pkg" = "X$p"; then
  6719. enable_static=yes
  6720. fi
  6721. done
  6722. IFS="$lt_save_ifs"
  6723. ;;
  6724. esac
  6725. else
  6726. enable_static=yes
  6727. fi
  6728. # Check whether --with-pic was given.
  6729. if test "${with_pic+set}" = set; then :
  6730. withval=$with_pic; lt_p=${PACKAGE-default}
  6731. case $withval in
  6732. yes|no) pic_mode=$withval ;;
  6733. *)
  6734. pic_mode=default
  6735. # Look at the argument we got. We use all the common list separators.
  6736. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6737. for lt_pkg in $withval; do
  6738. IFS="$lt_save_ifs"
  6739. if test "X$lt_pkg" = "X$lt_p"; then
  6740. pic_mode=yes
  6741. fi
  6742. done
  6743. IFS="$lt_save_ifs"
  6744. ;;
  6745. esac
  6746. else
  6747. pic_mode=default
  6748. fi
  6749. test -z "$pic_mode" && pic_mode=default
  6750. # Check whether --enable-fast-install was given.
  6751. if test "${enable_fast_install+set}" = set; then :
  6752. enableval=$enable_fast_install; p=${PACKAGE-default}
  6753. case $enableval in
  6754. yes) enable_fast_install=yes ;;
  6755. no) enable_fast_install=no ;;
  6756. *)
  6757. enable_fast_install=no
  6758. # Look at the argument we got. We use all the common list separators.
  6759. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6760. for pkg in $enableval; do
  6761. IFS="$lt_save_ifs"
  6762. if test "X$pkg" = "X$p"; then
  6763. enable_fast_install=yes
  6764. fi
  6765. done
  6766. IFS="$lt_save_ifs"
  6767. ;;
  6768. esac
  6769. else
  6770. enable_fast_install=yes
  6771. fi
  6772. # This can be used to rebuild libtool when needed
  6773. LIBTOOL_DEPS="$ltmain"
  6774. # Always use our own libtool.
  6775. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6776. test -z "$LN_S" && LN_S="ln -s"
  6777. if test -n "${ZSH_VERSION+set}" ; then
  6778. setopt NO_GLOB_SUBST
  6779. fi
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6781. $as_echo_n "checking for objdir... " >&6; }
  6782. if ${lt_cv_objdir+:} false; then :
  6783. $as_echo_n "(cached) " >&6
  6784. else
  6785. rm -f .libs 2>/dev/null
  6786. mkdir .libs 2>/dev/null
  6787. if test -d .libs; then
  6788. lt_cv_objdir=.libs
  6789. else
  6790. # MS-DOS does not allow filenames that begin with a dot.
  6791. lt_cv_objdir=_libs
  6792. fi
  6793. rmdir .libs 2>/dev/null
  6794. fi
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6796. $as_echo "$lt_cv_objdir" >&6; }
  6797. objdir=$lt_cv_objdir
  6798. cat >>confdefs.h <<_ACEOF
  6799. #define LT_OBJDIR "$lt_cv_objdir/"
  6800. _ACEOF
  6801. case $host_os in
  6802. aix3*)
  6803. # AIX sometimes has problems with the GCC collect2 program. For some
  6804. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6805. # vanish in a puff of smoke.
  6806. if test "X${COLLECT_NAMES+set}" != Xset; then
  6807. COLLECT_NAMES=
  6808. export COLLECT_NAMES
  6809. fi
  6810. ;;
  6811. esac
  6812. # Global variables:
  6813. ofile=libtool
  6814. can_build_shared=yes
  6815. # All known linkers require a `.a' archive for static linking (except MSVC,
  6816. # which needs '.lib').
  6817. libext=a
  6818. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6819. old_CC="$CC"
  6820. old_CFLAGS="$CFLAGS"
  6821. # Set sane defaults for various variables
  6822. test -z "$CC" && CC=cc
  6823. test -z "$LTCC" && LTCC=$CC
  6824. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6825. test -z "$LD" && LD=ld
  6826. test -z "$ac_objext" && ac_objext=o
  6827. for cc_temp in $compiler""; do
  6828. case $cc_temp in
  6829. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6830. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6831. \-*) ;;
  6832. *) break;;
  6833. esac
  6834. done
  6835. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6836. # Only perform the check for file, if the check method requires it
  6837. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6838. case $deplibs_check_method in
  6839. file_magic*)
  6840. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6842. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6843. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6844. $as_echo_n "(cached) " >&6
  6845. else
  6846. case $MAGIC_CMD in
  6847. [\\/*] | ?:[\\/]*)
  6848. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6849. ;;
  6850. *)
  6851. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6852. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6853. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6854. for ac_dir in $ac_dummy; do
  6855. IFS="$lt_save_ifs"
  6856. test -z "$ac_dir" && ac_dir=.
  6857. if test -f $ac_dir/${ac_tool_prefix}file; then
  6858. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6859. if test -n "$file_magic_test_file"; then
  6860. case $deplibs_check_method in
  6861. "file_magic "*)
  6862. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6863. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6864. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6865. $EGREP "$file_magic_regex" > /dev/null; then
  6866. :
  6867. else
  6868. cat <<_LT_EOF 1>&2
  6869. *** Warning: the command libtool uses to detect shared libraries,
  6870. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6871. *** The result is that libtool may fail to recognize shared libraries
  6872. *** as such. This will affect the creation of libtool libraries that
  6873. *** depend on shared libraries, but programs linked with such libtool
  6874. *** libraries will work regardless of this problem. Nevertheless, you
  6875. *** may want to report the problem to your system manager and/or to
  6876. *** bug-libtool@gnu.org
  6877. _LT_EOF
  6878. fi ;;
  6879. esac
  6880. fi
  6881. break
  6882. fi
  6883. done
  6884. IFS="$lt_save_ifs"
  6885. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6886. ;;
  6887. esac
  6888. fi
  6889. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6890. if test -n "$MAGIC_CMD"; then
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6892. $as_echo "$MAGIC_CMD" >&6; }
  6893. else
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6895. $as_echo "no" >&6; }
  6896. fi
  6897. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6898. if test -n "$ac_tool_prefix"; then
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6900. $as_echo_n "checking for file... " >&6; }
  6901. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6902. $as_echo_n "(cached) " >&6
  6903. else
  6904. case $MAGIC_CMD in
  6905. [\\/*] | ?:[\\/]*)
  6906. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6907. ;;
  6908. *)
  6909. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6910. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6911. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6912. for ac_dir in $ac_dummy; do
  6913. IFS="$lt_save_ifs"
  6914. test -z "$ac_dir" && ac_dir=.
  6915. if test -f $ac_dir/file; then
  6916. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6917. if test -n "$file_magic_test_file"; then
  6918. case $deplibs_check_method in
  6919. "file_magic "*)
  6920. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6921. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6922. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6923. $EGREP "$file_magic_regex" > /dev/null; then
  6924. :
  6925. else
  6926. cat <<_LT_EOF 1>&2
  6927. *** Warning: the command libtool uses to detect shared libraries,
  6928. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6929. *** The result is that libtool may fail to recognize shared libraries
  6930. *** as such. This will affect the creation of libtool libraries that
  6931. *** depend on shared libraries, but programs linked with such libtool
  6932. *** libraries will work regardless of this problem. Nevertheless, you
  6933. *** may want to report the problem to your system manager and/or to
  6934. *** bug-libtool@gnu.org
  6935. _LT_EOF
  6936. fi ;;
  6937. esac
  6938. fi
  6939. break
  6940. fi
  6941. done
  6942. IFS="$lt_save_ifs"
  6943. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6944. ;;
  6945. esac
  6946. fi
  6947. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6948. if test -n "$MAGIC_CMD"; then
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6950. $as_echo "$MAGIC_CMD" >&6; }
  6951. else
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6953. $as_echo "no" >&6; }
  6954. fi
  6955. else
  6956. MAGIC_CMD=:
  6957. fi
  6958. fi
  6959. fi
  6960. ;;
  6961. esac
  6962. # Use C for the default configuration in the libtool script
  6963. lt_save_CC="$CC"
  6964. ac_ext=c
  6965. ac_cpp='$CPP $CPPFLAGS'
  6966. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6967. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6968. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6969. # Source file extension for C test sources.
  6970. ac_ext=c
  6971. # Object file extension for compiled C test sources.
  6972. objext=o
  6973. objext=$objext
  6974. # Code to be used in simple compile tests
  6975. lt_simple_compile_test_code="int some_variable = 0;"
  6976. # Code to be used in simple link tests
  6977. lt_simple_link_test_code='int main(){return(0);}'
  6978. # If no C compiler was specified, use CC.
  6979. LTCC=${LTCC-"$CC"}
  6980. # If no C compiler flags were specified, use CFLAGS.
  6981. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6982. # Allow CC to be a program name with arguments.
  6983. compiler=$CC
  6984. # Save the default compiler, since it gets overwritten when the other
  6985. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6986. compiler_DEFAULT=$CC
  6987. # save warnings/boilerplate of simple test code
  6988. ac_outfile=conftest.$ac_objext
  6989. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6990. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6991. _lt_compiler_boilerplate=`cat conftest.err`
  6992. $RM conftest*
  6993. ac_outfile=conftest.$ac_objext
  6994. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6995. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6996. _lt_linker_boilerplate=`cat conftest.err`
  6997. $RM -r conftest*
  6998. ## CAVEAT EMPTOR:
  6999. ## There is no encapsulation within the following macros, do not change
  7000. ## the running order or otherwise move them around unless you know exactly
  7001. ## what you are doing...
  7002. if test -n "$compiler"; then
  7003. lt_prog_compiler_no_builtin_flag=
  7004. if test "$GCC" = yes; then
  7005. case $cc_basename in
  7006. nvcc*)
  7007. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7008. *)
  7009. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7010. esac
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7012. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7013. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7014. $as_echo_n "(cached) " >&6
  7015. else
  7016. lt_cv_prog_compiler_rtti_exceptions=no
  7017. ac_outfile=conftest.$ac_objext
  7018. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7019. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7020. # Insert the option either (1) after the last *FLAGS variable, or
  7021. # (2) before a word containing "conftest.", or (3) at the end.
  7022. # Note that $ac_compile itself does not contain backslashes and begins
  7023. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7024. # The option is referenced via a variable to avoid confusing sed.
  7025. lt_compile=`echo "$ac_compile" | $SED \
  7026. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7027. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7028. -e 's:$: $lt_compiler_flag:'`
  7029. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7030. (eval "$lt_compile" 2>conftest.err)
  7031. ac_status=$?
  7032. cat conftest.err >&5
  7033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7034. if (exit $ac_status) && test -s "$ac_outfile"; then
  7035. # The compiler can only warn and ignore the option if not recognized
  7036. # So say no if there are warnings other than the usual output.
  7037. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7038. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7039. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7040. lt_cv_prog_compiler_rtti_exceptions=yes
  7041. fi
  7042. fi
  7043. $RM conftest*
  7044. fi
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7046. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7047. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7048. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7049. else
  7050. :
  7051. fi
  7052. fi
  7053. lt_prog_compiler_wl=
  7054. lt_prog_compiler_pic=
  7055. lt_prog_compiler_static=
  7056. if test "$GCC" = yes; then
  7057. lt_prog_compiler_wl='-Wl,'
  7058. lt_prog_compiler_static='-static'
  7059. case $host_os in
  7060. aix*)
  7061. # All AIX code is PIC.
  7062. if test "$host_cpu" = ia64; then
  7063. # AIX 5 now supports IA64 processor
  7064. lt_prog_compiler_static='-Bstatic'
  7065. fi
  7066. ;;
  7067. amigaos*)
  7068. case $host_cpu in
  7069. powerpc)
  7070. # see comment about AmigaOS4 .so support
  7071. lt_prog_compiler_pic='-fPIC'
  7072. ;;
  7073. m68k)
  7074. # FIXME: we need at least 68020 code to build shared libraries, but
  7075. # adding the `-m68020' flag to GCC prevents building anything better,
  7076. # like `-m68040'.
  7077. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7078. ;;
  7079. esac
  7080. ;;
  7081. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7082. # PIC is the default for these OSes.
  7083. ;;
  7084. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7085. # This hack is so that the source file can tell whether it is being
  7086. # built for inclusion in a dll (and should export symbols for example).
  7087. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7088. # (--disable-auto-import) libraries
  7089. lt_prog_compiler_pic='-DDLL_EXPORT'
  7090. ;;
  7091. darwin* | rhapsody*)
  7092. # PIC is the default on this platform
  7093. # Common symbols not allowed in MH_DYLIB files
  7094. lt_prog_compiler_pic='-fno-common'
  7095. ;;
  7096. haiku*)
  7097. # PIC is the default for Haiku.
  7098. # The "-static" flag exists, but is broken.
  7099. lt_prog_compiler_static=
  7100. ;;
  7101. hpux*)
  7102. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7103. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7104. # sets the default TLS model and affects inlining.
  7105. case $host_cpu in
  7106. hppa*64*)
  7107. # +Z the default
  7108. ;;
  7109. *)
  7110. lt_prog_compiler_pic='-fPIC'
  7111. ;;
  7112. esac
  7113. ;;
  7114. interix[3-9]*)
  7115. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7116. # Instead, we relocate shared libraries at runtime.
  7117. ;;
  7118. msdosdjgpp*)
  7119. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7120. # on systems that don't support them.
  7121. lt_prog_compiler_can_build_shared=no
  7122. enable_shared=no
  7123. ;;
  7124. *nto* | *qnx*)
  7125. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7126. # it will coredump.
  7127. lt_prog_compiler_pic='-fPIC -shared'
  7128. ;;
  7129. sysv4*MP*)
  7130. if test -d /usr/nec; then
  7131. lt_prog_compiler_pic=-Kconform_pic
  7132. fi
  7133. ;;
  7134. *)
  7135. lt_prog_compiler_pic='-fPIC'
  7136. ;;
  7137. esac
  7138. case $cc_basename in
  7139. nvcc*) # Cuda Compiler Driver 2.2
  7140. lt_prog_compiler_wl='-Xlinker '
  7141. if test -n "$lt_prog_compiler_pic"; then
  7142. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7143. fi
  7144. ;;
  7145. esac
  7146. else
  7147. # PORTME Check for flag to pass linker flags through the system compiler.
  7148. case $host_os in
  7149. aix*)
  7150. lt_prog_compiler_wl='-Wl,'
  7151. if test "$host_cpu" = ia64; then
  7152. # AIX 5 now supports IA64 processor
  7153. lt_prog_compiler_static='-Bstatic'
  7154. else
  7155. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7156. fi
  7157. ;;
  7158. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7159. # This hack is so that the source file can tell whether it is being
  7160. # built for inclusion in a dll (and should export symbols for example).
  7161. lt_prog_compiler_pic='-DDLL_EXPORT'
  7162. ;;
  7163. hpux9* | hpux10* | hpux11*)
  7164. lt_prog_compiler_wl='-Wl,'
  7165. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7166. # not for PA HP-UX.
  7167. case $host_cpu in
  7168. hppa*64*|ia64*)
  7169. # +Z the default
  7170. ;;
  7171. *)
  7172. lt_prog_compiler_pic='+Z'
  7173. ;;
  7174. esac
  7175. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7176. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7177. ;;
  7178. irix5* | irix6* | nonstopux*)
  7179. lt_prog_compiler_wl='-Wl,'
  7180. # PIC (with -KPIC) is the default.
  7181. lt_prog_compiler_static='-non_shared'
  7182. ;;
  7183. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7184. case $cc_basename in
  7185. # old Intel for x86_64 which still supported -KPIC.
  7186. ecc*)
  7187. lt_prog_compiler_wl='-Wl,'
  7188. lt_prog_compiler_pic='-KPIC'
  7189. lt_prog_compiler_static='-static'
  7190. ;;
  7191. # icc used to be incompatible with GCC.
  7192. # ICC 10 doesn't accept -KPIC any more.
  7193. icc* | ifort*)
  7194. lt_prog_compiler_wl='-Wl,'
  7195. lt_prog_compiler_pic='-fPIC'
  7196. lt_prog_compiler_static='-static'
  7197. ;;
  7198. # Lahey Fortran 8.1.
  7199. lf95*)
  7200. lt_prog_compiler_wl='-Wl,'
  7201. lt_prog_compiler_pic='--shared'
  7202. lt_prog_compiler_static='--static'
  7203. ;;
  7204. nagfor*)
  7205. # NAG Fortran compiler
  7206. lt_prog_compiler_wl='-Wl,-Wl,,'
  7207. lt_prog_compiler_pic='-PIC'
  7208. lt_prog_compiler_static='-Bstatic'
  7209. ;;
  7210. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7211. # Portland Group compilers (*not* the Pentium gcc compiler,
  7212. # which looks to be a dead project)
  7213. lt_prog_compiler_wl='-Wl,'
  7214. lt_prog_compiler_pic='-fpic'
  7215. lt_prog_compiler_static='-Bstatic'
  7216. ;;
  7217. ccc*)
  7218. lt_prog_compiler_wl='-Wl,'
  7219. # All Alpha code is PIC.
  7220. lt_prog_compiler_static='-non_shared'
  7221. ;;
  7222. xl* | bgxl* | bgf* | mpixl*)
  7223. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7224. lt_prog_compiler_wl='-Wl,'
  7225. lt_prog_compiler_pic='-qpic'
  7226. lt_prog_compiler_static='-qstaticlink'
  7227. ;;
  7228. *)
  7229. case `$CC -V 2>&1 | sed 5q` in
  7230. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7231. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7232. lt_prog_compiler_pic='-KPIC'
  7233. lt_prog_compiler_static='-Bstatic'
  7234. lt_prog_compiler_wl=''
  7235. ;;
  7236. *Sun\ F* | *Sun*Fortran*)
  7237. lt_prog_compiler_pic='-KPIC'
  7238. lt_prog_compiler_static='-Bstatic'
  7239. lt_prog_compiler_wl='-Qoption ld '
  7240. ;;
  7241. *Sun\ C*)
  7242. # Sun C 5.9
  7243. lt_prog_compiler_pic='-KPIC'
  7244. lt_prog_compiler_static='-Bstatic'
  7245. lt_prog_compiler_wl='-Wl,'
  7246. ;;
  7247. *Intel*\ [CF]*Compiler*)
  7248. lt_prog_compiler_wl='-Wl,'
  7249. lt_prog_compiler_pic='-fPIC'
  7250. lt_prog_compiler_static='-static'
  7251. ;;
  7252. *Portland\ Group*)
  7253. lt_prog_compiler_wl='-Wl,'
  7254. lt_prog_compiler_pic='-fpic'
  7255. lt_prog_compiler_static='-Bstatic'
  7256. ;;
  7257. esac
  7258. ;;
  7259. esac
  7260. ;;
  7261. newsos6)
  7262. lt_prog_compiler_pic='-KPIC'
  7263. lt_prog_compiler_static='-Bstatic'
  7264. ;;
  7265. *nto* | *qnx*)
  7266. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7267. # it will coredump.
  7268. lt_prog_compiler_pic='-fPIC -shared'
  7269. ;;
  7270. osf3* | osf4* | osf5*)
  7271. lt_prog_compiler_wl='-Wl,'
  7272. # All OSF/1 code is PIC.
  7273. lt_prog_compiler_static='-non_shared'
  7274. ;;
  7275. rdos*)
  7276. lt_prog_compiler_static='-non_shared'
  7277. ;;
  7278. solaris*)
  7279. lt_prog_compiler_pic='-KPIC'
  7280. lt_prog_compiler_static='-Bstatic'
  7281. case $cc_basename in
  7282. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7283. lt_prog_compiler_wl='-Qoption ld ';;
  7284. *)
  7285. lt_prog_compiler_wl='-Wl,';;
  7286. esac
  7287. ;;
  7288. sunos4*)
  7289. lt_prog_compiler_wl='-Qoption ld '
  7290. lt_prog_compiler_pic='-PIC'
  7291. lt_prog_compiler_static='-Bstatic'
  7292. ;;
  7293. sysv4 | sysv4.2uw2* | sysv4.3*)
  7294. lt_prog_compiler_wl='-Wl,'
  7295. lt_prog_compiler_pic='-KPIC'
  7296. lt_prog_compiler_static='-Bstatic'
  7297. ;;
  7298. sysv4*MP*)
  7299. if test -d /usr/nec ;then
  7300. lt_prog_compiler_pic='-Kconform_pic'
  7301. lt_prog_compiler_static='-Bstatic'
  7302. fi
  7303. ;;
  7304. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7305. lt_prog_compiler_wl='-Wl,'
  7306. lt_prog_compiler_pic='-KPIC'
  7307. lt_prog_compiler_static='-Bstatic'
  7308. ;;
  7309. unicos*)
  7310. lt_prog_compiler_wl='-Wl,'
  7311. lt_prog_compiler_can_build_shared=no
  7312. ;;
  7313. uts4*)
  7314. lt_prog_compiler_pic='-pic'
  7315. lt_prog_compiler_static='-Bstatic'
  7316. ;;
  7317. *)
  7318. lt_prog_compiler_can_build_shared=no
  7319. ;;
  7320. esac
  7321. fi
  7322. case $host_os in
  7323. # For platforms which do not support PIC, -DPIC is meaningless:
  7324. *djgpp*)
  7325. lt_prog_compiler_pic=
  7326. ;;
  7327. *)
  7328. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7329. ;;
  7330. esac
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7332. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7333. if ${lt_cv_prog_compiler_pic+:} false; then :
  7334. $as_echo_n "(cached) " >&6
  7335. else
  7336. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7337. fi
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7339. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7340. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7341. #
  7342. # Check to make sure the PIC flag actually works.
  7343. #
  7344. if test -n "$lt_prog_compiler_pic"; then
  7345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7346. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7347. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7348. $as_echo_n "(cached) " >&6
  7349. else
  7350. lt_cv_prog_compiler_pic_works=no
  7351. ac_outfile=conftest.$ac_objext
  7352. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7353. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7354. # Insert the option either (1) after the last *FLAGS variable, or
  7355. # (2) before a word containing "conftest.", or (3) at the end.
  7356. # Note that $ac_compile itself does not contain backslashes and begins
  7357. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7358. # The option is referenced via a variable to avoid confusing sed.
  7359. lt_compile=`echo "$ac_compile" | $SED \
  7360. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7361. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7362. -e 's:$: $lt_compiler_flag:'`
  7363. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7364. (eval "$lt_compile" 2>conftest.err)
  7365. ac_status=$?
  7366. cat conftest.err >&5
  7367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7368. if (exit $ac_status) && test -s "$ac_outfile"; then
  7369. # The compiler can only warn and ignore the option if not recognized
  7370. # So say no if there are warnings other than the usual output.
  7371. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7372. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7373. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7374. lt_cv_prog_compiler_pic_works=yes
  7375. fi
  7376. fi
  7377. $RM conftest*
  7378. fi
  7379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7380. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7381. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7382. case $lt_prog_compiler_pic in
  7383. "" | " "*) ;;
  7384. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7385. esac
  7386. else
  7387. lt_prog_compiler_pic=
  7388. lt_prog_compiler_can_build_shared=no
  7389. fi
  7390. fi
  7391. #
  7392. # Check to make sure the static flag actually works.
  7393. #
  7394. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7396. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7397. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7398. $as_echo_n "(cached) " >&6
  7399. else
  7400. lt_cv_prog_compiler_static_works=no
  7401. save_LDFLAGS="$LDFLAGS"
  7402. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7403. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7404. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7405. # The linker can only warn and ignore the option if not recognized
  7406. # So say no if there are warnings
  7407. if test -s conftest.err; then
  7408. # Append any errors to the config.log.
  7409. cat conftest.err 1>&5
  7410. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7411. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7412. if diff conftest.exp conftest.er2 >/dev/null; then
  7413. lt_cv_prog_compiler_static_works=yes
  7414. fi
  7415. else
  7416. lt_cv_prog_compiler_static_works=yes
  7417. fi
  7418. fi
  7419. $RM -r conftest*
  7420. LDFLAGS="$save_LDFLAGS"
  7421. fi
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7423. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7424. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7425. :
  7426. else
  7427. lt_prog_compiler_static=
  7428. fi
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7430. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7431. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7432. $as_echo_n "(cached) " >&6
  7433. else
  7434. lt_cv_prog_compiler_c_o=no
  7435. $RM -r conftest 2>/dev/null
  7436. mkdir conftest
  7437. cd conftest
  7438. mkdir out
  7439. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7440. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7441. # Insert the option either (1) after the last *FLAGS variable, or
  7442. # (2) before a word containing "conftest.", or (3) at the end.
  7443. # Note that $ac_compile itself does not contain backslashes and begins
  7444. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7445. lt_compile=`echo "$ac_compile" | $SED \
  7446. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7447. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7448. -e 's:$: $lt_compiler_flag:'`
  7449. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7450. (eval "$lt_compile" 2>out/conftest.err)
  7451. ac_status=$?
  7452. cat out/conftest.err >&5
  7453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7454. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7455. then
  7456. # The compiler can only warn and ignore the option if not recognized
  7457. # So say no if there are warnings
  7458. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7459. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7460. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7461. lt_cv_prog_compiler_c_o=yes
  7462. fi
  7463. fi
  7464. chmod u+w . 2>&5
  7465. $RM conftest*
  7466. # SGI C++ compiler will create directory out/ii_files/ for
  7467. # template instantiation
  7468. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7469. $RM out/* && rmdir out
  7470. cd ..
  7471. $RM -r conftest
  7472. $RM conftest*
  7473. fi
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7475. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7477. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7478. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7479. $as_echo_n "(cached) " >&6
  7480. else
  7481. lt_cv_prog_compiler_c_o=no
  7482. $RM -r conftest 2>/dev/null
  7483. mkdir conftest
  7484. cd conftest
  7485. mkdir out
  7486. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7487. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7488. # Insert the option either (1) after the last *FLAGS variable, or
  7489. # (2) before a word containing "conftest.", or (3) at the end.
  7490. # Note that $ac_compile itself does not contain backslashes and begins
  7491. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7492. lt_compile=`echo "$ac_compile" | $SED \
  7493. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7494. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7495. -e 's:$: $lt_compiler_flag:'`
  7496. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7497. (eval "$lt_compile" 2>out/conftest.err)
  7498. ac_status=$?
  7499. cat out/conftest.err >&5
  7500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7501. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7502. then
  7503. # The compiler can only warn and ignore the option if not recognized
  7504. # So say no if there are warnings
  7505. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7506. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7507. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7508. lt_cv_prog_compiler_c_o=yes
  7509. fi
  7510. fi
  7511. chmod u+w . 2>&5
  7512. $RM conftest*
  7513. # SGI C++ compiler will create directory out/ii_files/ for
  7514. # template instantiation
  7515. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7516. $RM out/* && rmdir out
  7517. cd ..
  7518. $RM -r conftest
  7519. $RM conftest*
  7520. fi
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7522. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7523. hard_links="nottested"
  7524. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7525. # do not overwrite the value of need_locks provided by the user
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7527. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7528. hard_links=yes
  7529. $RM conftest*
  7530. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7531. touch conftest.a
  7532. ln conftest.a conftest.b 2>&5 || hard_links=no
  7533. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7535. $as_echo "$hard_links" >&6; }
  7536. if test "$hard_links" = no; then
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7538. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7539. need_locks=warn
  7540. fi
  7541. else
  7542. need_locks=no
  7543. fi
  7544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7545. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7546. runpath_var=
  7547. allow_undefined_flag=
  7548. always_export_symbols=no
  7549. archive_cmds=
  7550. archive_expsym_cmds=
  7551. compiler_needs_object=no
  7552. enable_shared_with_static_runtimes=no
  7553. export_dynamic_flag_spec=
  7554. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7555. hardcode_automatic=no
  7556. hardcode_direct=no
  7557. hardcode_direct_absolute=no
  7558. hardcode_libdir_flag_spec=
  7559. hardcode_libdir_separator=
  7560. hardcode_minus_L=no
  7561. hardcode_shlibpath_var=unsupported
  7562. inherit_rpath=no
  7563. link_all_deplibs=unknown
  7564. module_cmds=
  7565. module_expsym_cmds=
  7566. old_archive_from_new_cmds=
  7567. old_archive_from_expsyms_cmds=
  7568. thread_safe_flag_spec=
  7569. whole_archive_flag_spec=
  7570. # include_expsyms should be a list of space-separated symbols to be *always*
  7571. # included in the symbol list
  7572. include_expsyms=
  7573. # exclude_expsyms can be an extended regexp of symbols to exclude
  7574. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7575. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7576. # as well as any symbol that contains `d'.
  7577. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7578. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7579. # platforms (ab)use it in PIC code, but their linkers get confused if
  7580. # the symbol is explicitly referenced. Since portable code cannot
  7581. # rely on this symbol name, it's probably fine to never include it in
  7582. # preloaded symbol tables.
  7583. # Exclude shared library initialization/finalization symbols.
  7584. extract_expsyms_cmds=
  7585. case $host_os in
  7586. cygwin* | mingw* | pw32* | cegcc*)
  7587. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7588. # When not using gcc, we currently assume that we are using
  7589. # Microsoft Visual C++.
  7590. if test "$GCC" != yes; then
  7591. with_gnu_ld=no
  7592. fi
  7593. ;;
  7594. interix*)
  7595. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7596. with_gnu_ld=yes
  7597. ;;
  7598. openbsd*)
  7599. with_gnu_ld=no
  7600. ;;
  7601. esac
  7602. ld_shlibs=yes
  7603. # On some targets, GNU ld is compatible enough with the native linker
  7604. # that we're better off using the native interface for both.
  7605. lt_use_gnu_ld_interface=no
  7606. if test "$with_gnu_ld" = yes; then
  7607. case $host_os in
  7608. aix*)
  7609. # The AIX port of GNU ld has always aspired to compatibility
  7610. # with the native linker. However, as the warning in the GNU ld
  7611. # block says, versions before 2.19.5* couldn't really create working
  7612. # shared libraries, regardless of the interface used.
  7613. case `$LD -v 2>&1` in
  7614. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7615. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7616. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7617. *)
  7618. lt_use_gnu_ld_interface=yes
  7619. ;;
  7620. esac
  7621. ;;
  7622. *)
  7623. lt_use_gnu_ld_interface=yes
  7624. ;;
  7625. esac
  7626. fi
  7627. if test "$lt_use_gnu_ld_interface" = yes; then
  7628. # If archive_cmds runs LD, not CC, wlarc should be empty
  7629. wlarc='${wl}'
  7630. # Set some defaults for GNU ld with shared library support. These
  7631. # are reset later if shared libraries are not supported. Putting them
  7632. # here allows them to be overridden if necessary.
  7633. runpath_var=LD_RUN_PATH
  7634. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7635. export_dynamic_flag_spec='${wl}--export-dynamic'
  7636. # ancient GNU ld didn't support --whole-archive et. al.
  7637. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7638. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7639. else
  7640. whole_archive_flag_spec=
  7641. fi
  7642. supports_anon_versioning=no
  7643. case `$LD -v 2>&1` in
  7644. *GNU\ gold*) supports_anon_versioning=yes ;;
  7645. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7646. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7647. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7648. *\ 2.11.*) ;; # other 2.11 versions
  7649. *) supports_anon_versioning=yes ;;
  7650. esac
  7651. # See if GNU ld supports shared libraries.
  7652. case $host_os in
  7653. aix[3-9]*)
  7654. # On AIX/PPC, the GNU linker is very broken
  7655. if test "$host_cpu" != ia64; then
  7656. ld_shlibs=no
  7657. cat <<_LT_EOF 1>&2
  7658. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7659. *** to be unable to reliably create shared libraries on AIX.
  7660. *** Therefore, libtool is disabling shared libraries support. If you
  7661. *** really care for shared libraries, you may want to install binutils
  7662. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7663. *** You will then need to restart the configuration process.
  7664. _LT_EOF
  7665. fi
  7666. ;;
  7667. amigaos*)
  7668. case $host_cpu in
  7669. powerpc)
  7670. # see comment about AmigaOS4 .so support
  7671. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7672. archive_expsym_cmds=''
  7673. ;;
  7674. m68k)
  7675. 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)'
  7676. hardcode_libdir_flag_spec='-L$libdir'
  7677. hardcode_minus_L=yes
  7678. ;;
  7679. esac
  7680. ;;
  7681. beos*)
  7682. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7683. allow_undefined_flag=unsupported
  7684. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7685. # support --undefined. This deserves some investigation. FIXME
  7686. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7687. else
  7688. ld_shlibs=no
  7689. fi
  7690. ;;
  7691. cygwin* | mingw* | pw32* | cegcc*)
  7692. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7693. # as there is no search path for DLLs.
  7694. hardcode_libdir_flag_spec='-L$libdir'
  7695. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7696. allow_undefined_flag=unsupported
  7697. always_export_symbols=no
  7698. enable_shared_with_static_runtimes=yes
  7699. 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'
  7700. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7701. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7702. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7703. # If the export-symbols file already is a .def file (1st line
  7704. # is EXPORTS), use it as is; otherwise, prepend...
  7705. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7706. cp $export_symbols $output_objdir/$soname.def;
  7707. else
  7708. echo EXPORTS > $output_objdir/$soname.def;
  7709. cat $export_symbols >> $output_objdir/$soname.def;
  7710. fi~
  7711. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7712. else
  7713. ld_shlibs=no
  7714. fi
  7715. ;;
  7716. haiku*)
  7717. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7718. link_all_deplibs=yes
  7719. ;;
  7720. interix[3-9]*)
  7721. hardcode_direct=no
  7722. hardcode_shlibpath_var=no
  7723. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7724. export_dynamic_flag_spec='${wl}-E'
  7725. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7726. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7727. # default) and relocated if they conflict, which is a slow very memory
  7728. # consuming and fragmenting process. To avoid this, we pick a random,
  7729. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7730. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7731. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7732. 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'
  7733. ;;
  7734. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7735. tmp_diet=no
  7736. if test "$host_os" = linux-dietlibc; then
  7737. case $cc_basename in
  7738. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7739. esac
  7740. fi
  7741. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7742. && test "$tmp_diet" = no
  7743. then
  7744. tmp_addflag=' $pic_flag'
  7745. tmp_sharedflag='-shared'
  7746. case $cc_basename,$host_cpu in
  7747. pgcc*) # Portland Group C compiler
  7748. 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'
  7749. tmp_addflag=' $pic_flag'
  7750. ;;
  7751. pgf77* | pgf90* | pgf95* | pgfortran*)
  7752. # Portland Group f77 and f90 compilers
  7753. 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'
  7754. tmp_addflag=' $pic_flag -Mnomain' ;;
  7755. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7756. tmp_addflag=' -i_dynamic' ;;
  7757. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7758. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7759. ifc* | ifort*) # Intel Fortran compiler
  7760. tmp_addflag=' -nofor_main' ;;
  7761. lf95*) # Lahey Fortran 8.1
  7762. whole_archive_flag_spec=
  7763. tmp_sharedflag='--shared' ;;
  7764. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7765. tmp_sharedflag='-qmkshrobj'
  7766. tmp_addflag= ;;
  7767. nvcc*) # Cuda Compiler Driver 2.2
  7768. 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'
  7769. compiler_needs_object=yes
  7770. ;;
  7771. esac
  7772. case `$CC -V 2>&1 | sed 5q` in
  7773. *Sun\ C*) # Sun C 5.9
  7774. 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'
  7775. compiler_needs_object=yes
  7776. tmp_sharedflag='-G' ;;
  7777. *Sun\ F*) # Sun Fortran 8.3
  7778. tmp_sharedflag='-G' ;;
  7779. esac
  7780. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7781. if test "x$supports_anon_versioning" = xyes; then
  7782. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7783. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7784. echo "local: *; };" >> $output_objdir/$libname.ver~
  7785. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7786. fi
  7787. case $cc_basename in
  7788. xlf* | bgf* | bgxlf* | mpixlf*)
  7789. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7790. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7791. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7792. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7793. if test "x$supports_anon_versioning" = xyes; then
  7794. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7795. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7796. echo "local: *; };" >> $output_objdir/$libname.ver~
  7797. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7798. fi
  7799. ;;
  7800. esac
  7801. else
  7802. ld_shlibs=no
  7803. fi
  7804. ;;
  7805. netbsd*)
  7806. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7807. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7808. wlarc=
  7809. else
  7810. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7811. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7812. fi
  7813. ;;
  7814. solaris*)
  7815. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7816. ld_shlibs=no
  7817. cat <<_LT_EOF 1>&2
  7818. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7819. *** create shared libraries on Solaris systems. Therefore, libtool
  7820. *** is disabling shared libraries support. We urge you to upgrade GNU
  7821. *** binutils to release 2.9.1 or newer. Another option is to modify
  7822. *** your PATH or compiler configuration so that the native linker is
  7823. *** used, and then restart.
  7824. _LT_EOF
  7825. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7826. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7827. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7828. else
  7829. ld_shlibs=no
  7830. fi
  7831. ;;
  7832. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7833. case `$LD -v 2>&1` in
  7834. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7835. ld_shlibs=no
  7836. cat <<_LT_EOF 1>&2
  7837. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7838. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7839. *** is disabling shared libraries support. We urge you to upgrade GNU
  7840. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7841. *** your PATH or compiler configuration so that the native linker is
  7842. *** used, and then restart.
  7843. _LT_EOF
  7844. ;;
  7845. *)
  7846. # For security reasons, it is highly recommended that you always
  7847. # use absolute paths for naming shared libraries, and exclude the
  7848. # DT_RUNPATH tag from executables and libraries. But doing so
  7849. # requires that you compile everything twice, which is a pain.
  7850. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7851. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7852. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7853. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7854. else
  7855. ld_shlibs=no
  7856. fi
  7857. ;;
  7858. esac
  7859. ;;
  7860. sunos4*)
  7861. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7862. wlarc=
  7863. hardcode_direct=yes
  7864. hardcode_shlibpath_var=no
  7865. ;;
  7866. *)
  7867. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7868. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7869. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7870. else
  7871. ld_shlibs=no
  7872. fi
  7873. ;;
  7874. esac
  7875. if test "$ld_shlibs" = no; then
  7876. runpath_var=
  7877. hardcode_libdir_flag_spec=
  7878. export_dynamic_flag_spec=
  7879. whole_archive_flag_spec=
  7880. fi
  7881. else
  7882. # PORTME fill in a description of your system's linker (not GNU ld)
  7883. case $host_os in
  7884. aix3*)
  7885. allow_undefined_flag=unsupported
  7886. always_export_symbols=yes
  7887. 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'
  7888. # Note: this linker hardcodes the directories in LIBPATH if there
  7889. # are no directories specified by -L.
  7890. hardcode_minus_L=yes
  7891. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7892. # Neither direct hardcoding nor static linking is supported with a
  7893. # broken collect2.
  7894. hardcode_direct=unsupported
  7895. fi
  7896. ;;
  7897. aix[4-9]*)
  7898. if test "$host_cpu" = ia64; then
  7899. # On IA64, the linker does run time linking by default, so we don't
  7900. # have to do anything special.
  7901. aix_use_runtimelinking=no
  7902. exp_sym_flag='-Bexport'
  7903. no_entry_flag=""
  7904. else
  7905. # If we're using GNU nm, then we don't want the "-C" option.
  7906. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7907. # Also, AIX nm treats weak defined symbols like other global
  7908. # defined symbols, whereas GNU nm marks them as "W".
  7909. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7910. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7911. else
  7912. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7913. fi
  7914. aix_use_runtimelinking=no
  7915. # Test if we are trying to use run time linking or normal
  7916. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7917. # need to do runtime linking.
  7918. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7919. for ld_flag in $LDFLAGS; do
  7920. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7921. aix_use_runtimelinking=yes
  7922. break
  7923. fi
  7924. done
  7925. ;;
  7926. esac
  7927. exp_sym_flag='-bexport'
  7928. no_entry_flag='-bnoentry'
  7929. fi
  7930. # When large executables or shared objects are built, AIX ld can
  7931. # have problems creating the table of contents. If linking a library
  7932. # or program results in "error TOC overflow" add -mminimal-toc to
  7933. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7934. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7935. archive_cmds=''
  7936. hardcode_direct=yes
  7937. hardcode_direct_absolute=yes
  7938. hardcode_libdir_separator=':'
  7939. link_all_deplibs=yes
  7940. file_list_spec='${wl}-f,'
  7941. if test "$GCC" = yes; then
  7942. case $host_os in aix4.[012]|aix4.[012].*)
  7943. # We only want to do this on AIX 4.2 and lower, the check
  7944. # below for broken collect2 doesn't work under 4.3+
  7945. collect2name=`${CC} -print-prog-name=collect2`
  7946. if test -f "$collect2name" &&
  7947. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7948. then
  7949. # We have reworked collect2
  7950. :
  7951. else
  7952. # We have old collect2
  7953. hardcode_direct=unsupported
  7954. # It fails to find uninstalled libraries when the uninstalled
  7955. # path is not listed in the libpath. Setting hardcode_minus_L
  7956. # to unsupported forces relinking
  7957. hardcode_minus_L=yes
  7958. hardcode_libdir_flag_spec='-L$libdir'
  7959. hardcode_libdir_separator=
  7960. fi
  7961. ;;
  7962. esac
  7963. shared_flag='-shared'
  7964. if test "$aix_use_runtimelinking" = yes; then
  7965. shared_flag="$shared_flag "'${wl}-G'
  7966. fi
  7967. else
  7968. # not using gcc
  7969. if test "$host_cpu" = ia64; then
  7970. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7971. # chokes on -Wl,-G. The following line is correct:
  7972. shared_flag='-G'
  7973. else
  7974. if test "$aix_use_runtimelinking" = yes; then
  7975. shared_flag='${wl}-G'
  7976. else
  7977. shared_flag='${wl}-bM:SRE'
  7978. fi
  7979. fi
  7980. fi
  7981. export_dynamic_flag_spec='${wl}-bexpall'
  7982. # It seems that -bexpall does not export symbols beginning with
  7983. # underscore (_), so it is better to generate a list of symbols to export.
  7984. always_export_symbols=yes
  7985. if test "$aix_use_runtimelinking" = yes; then
  7986. # Warning - without using the other runtime loading flags (-brtl),
  7987. # -berok will link without error, but may produce a broken library.
  7988. allow_undefined_flag='-berok'
  7989. # Determine the default libpath from the value encoded in an
  7990. # empty executable.
  7991. if test "${lt_cv_aix_libpath+set}" = set; then
  7992. aix_libpath=$lt_cv_aix_libpath
  7993. else
  7994. if ${lt_cv_aix_libpath_+:} false; then :
  7995. $as_echo_n "(cached) " >&6
  7996. else
  7997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7998. /* end confdefs.h. */
  7999. int
  8000. main ()
  8001. {
  8002. ;
  8003. return 0;
  8004. }
  8005. _ACEOF
  8006. if ac_fn_c_try_link "$LINENO"; then :
  8007. lt_aix_libpath_sed='
  8008. /Import File Strings/,/^$/ {
  8009. /^0/ {
  8010. s/^0 *\([^ ]*\) *$/\1/
  8011. p
  8012. }
  8013. }'
  8014. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8015. # Check for a 64-bit object if we didn't find anything.
  8016. if test -z "$lt_cv_aix_libpath_"; then
  8017. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8018. fi
  8019. fi
  8020. rm -f core conftest.err conftest.$ac_objext \
  8021. conftest$ac_exeext conftest.$ac_ext
  8022. if test -z "$lt_cv_aix_libpath_"; then
  8023. lt_cv_aix_libpath_="/usr/lib:/lib"
  8024. fi
  8025. fi
  8026. aix_libpath=$lt_cv_aix_libpath_
  8027. fi
  8028. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8029. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8030. else
  8031. if test "$host_cpu" = ia64; then
  8032. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8033. allow_undefined_flag="-z nodefs"
  8034. 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"
  8035. else
  8036. # Determine the default libpath from the value encoded in an
  8037. # empty executable.
  8038. if test "${lt_cv_aix_libpath+set}" = set; then
  8039. aix_libpath=$lt_cv_aix_libpath
  8040. else
  8041. if ${lt_cv_aix_libpath_+:} false; then :
  8042. $as_echo_n "(cached) " >&6
  8043. else
  8044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8045. /* end confdefs.h. */
  8046. int
  8047. main ()
  8048. {
  8049. ;
  8050. return 0;
  8051. }
  8052. _ACEOF
  8053. if ac_fn_c_try_link "$LINENO"; then :
  8054. lt_aix_libpath_sed='
  8055. /Import File Strings/,/^$/ {
  8056. /^0/ {
  8057. s/^0 *\([^ ]*\) *$/\1/
  8058. p
  8059. }
  8060. }'
  8061. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8062. # Check for a 64-bit object if we didn't find anything.
  8063. if test -z "$lt_cv_aix_libpath_"; then
  8064. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8065. fi
  8066. fi
  8067. rm -f core conftest.err conftest.$ac_objext \
  8068. conftest$ac_exeext conftest.$ac_ext
  8069. if test -z "$lt_cv_aix_libpath_"; then
  8070. lt_cv_aix_libpath_="/usr/lib:/lib"
  8071. fi
  8072. fi
  8073. aix_libpath=$lt_cv_aix_libpath_
  8074. fi
  8075. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8076. # Warning - without using the other run time loading flags,
  8077. # -berok will link without error, but may produce a broken library.
  8078. no_undefined_flag=' ${wl}-bernotok'
  8079. allow_undefined_flag=' ${wl}-berok'
  8080. if test "$with_gnu_ld" = yes; then
  8081. # We only use this code for GNU lds that support --whole-archive.
  8082. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8083. else
  8084. # Exported symbols can be pulled into shared objects from archives
  8085. whole_archive_flag_spec='$convenience'
  8086. fi
  8087. archive_cmds_need_lc=yes
  8088. # This is similar to how AIX traditionally builds its shared libraries.
  8089. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8090. fi
  8091. fi
  8092. ;;
  8093. amigaos*)
  8094. case $host_cpu in
  8095. powerpc)
  8096. # see comment about AmigaOS4 .so support
  8097. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8098. archive_expsym_cmds=''
  8099. ;;
  8100. m68k)
  8101. 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)'
  8102. hardcode_libdir_flag_spec='-L$libdir'
  8103. hardcode_minus_L=yes
  8104. ;;
  8105. esac
  8106. ;;
  8107. bsdi[45]*)
  8108. export_dynamic_flag_spec=-rdynamic
  8109. ;;
  8110. cygwin* | mingw* | pw32* | cegcc*)
  8111. # When not using gcc, we currently assume that we are using
  8112. # Microsoft Visual C++.
  8113. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8114. # no search path for DLLs.
  8115. case $cc_basename in
  8116. cl*)
  8117. # Native MSVC
  8118. hardcode_libdir_flag_spec=' '
  8119. allow_undefined_flag=unsupported
  8120. always_export_symbols=yes
  8121. file_list_spec='@'
  8122. # Tell ltmain to make .lib files, not .a files.
  8123. libext=lib
  8124. # Tell ltmain to make .dll files, not .so files.
  8125. shrext_cmds=".dll"
  8126. # FIXME: Setting linknames here is a bad hack.
  8127. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8128. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8129. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8130. else
  8131. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8132. fi~
  8133. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8134. linknames='
  8135. # The linker will not automatically build a static lib if we build a DLL.
  8136. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8137. enable_shared_with_static_runtimes=yes
  8138. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8139. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8140. # Don't use ranlib
  8141. old_postinstall_cmds='chmod 644 $oldlib'
  8142. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8143. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8144. case $lt_outputfile in
  8145. *.exe|*.EXE) ;;
  8146. *)
  8147. lt_outputfile="$lt_outputfile.exe"
  8148. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8149. ;;
  8150. esac~
  8151. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8152. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8153. $RM "$lt_outputfile.manifest";
  8154. fi'
  8155. ;;
  8156. *)
  8157. # Assume MSVC wrapper
  8158. hardcode_libdir_flag_spec=' '
  8159. allow_undefined_flag=unsupported
  8160. # Tell ltmain to make .lib files, not .a files.
  8161. libext=lib
  8162. # Tell ltmain to make .dll files, not .so files.
  8163. shrext_cmds=".dll"
  8164. # FIXME: Setting linknames here is a bad hack.
  8165. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8166. # The linker will automatically build a .lib file if we build a DLL.
  8167. old_archive_from_new_cmds='true'
  8168. # FIXME: Should let the user specify the lib program.
  8169. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8170. enable_shared_with_static_runtimes=yes
  8171. ;;
  8172. esac
  8173. ;;
  8174. darwin* | rhapsody*)
  8175. archive_cmds_need_lc=no
  8176. hardcode_direct=no
  8177. hardcode_automatic=yes
  8178. hardcode_shlibpath_var=unsupported
  8179. if test "$lt_cv_ld_force_load" = "yes"; then
  8180. 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\"`'
  8181. else
  8182. whole_archive_flag_spec=''
  8183. fi
  8184. link_all_deplibs=yes
  8185. allow_undefined_flag="$_lt_dar_allow_undefined"
  8186. case $cc_basename in
  8187. ifort*) _lt_dar_can_shared=yes ;;
  8188. *) _lt_dar_can_shared=$GCC ;;
  8189. esac
  8190. if test "$_lt_dar_can_shared" = "yes"; then
  8191. output_verbose_link_cmd=func_echo_all
  8192. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8193. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8194. 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}"
  8195. 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}"
  8196. else
  8197. ld_shlibs=no
  8198. fi
  8199. ;;
  8200. dgux*)
  8201. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8202. hardcode_libdir_flag_spec='-L$libdir'
  8203. hardcode_shlibpath_var=no
  8204. ;;
  8205. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8206. # support. Future versions do this automatically, but an explicit c++rt0.o
  8207. # does not break anything, and helps significantly (at the cost of a little
  8208. # extra space).
  8209. freebsd2.2*)
  8210. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8211. hardcode_libdir_flag_spec='-R$libdir'
  8212. hardcode_direct=yes
  8213. hardcode_shlibpath_var=no
  8214. ;;
  8215. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8216. freebsd2.*)
  8217. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8218. hardcode_direct=yes
  8219. hardcode_minus_L=yes
  8220. hardcode_shlibpath_var=no
  8221. ;;
  8222. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8223. freebsd* | dragonfly*)
  8224. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8225. hardcode_libdir_flag_spec='-R$libdir'
  8226. hardcode_direct=yes
  8227. hardcode_shlibpath_var=no
  8228. ;;
  8229. hpux9*)
  8230. if test "$GCC" = yes; then
  8231. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8232. else
  8233. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8234. fi
  8235. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8236. hardcode_libdir_separator=:
  8237. hardcode_direct=yes
  8238. # hardcode_minus_L: Not really in the search PATH,
  8239. # but as the default location of the library.
  8240. hardcode_minus_L=yes
  8241. export_dynamic_flag_spec='${wl}-E'
  8242. ;;
  8243. hpux10*)
  8244. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8245. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8246. else
  8247. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8248. fi
  8249. if test "$with_gnu_ld" = no; then
  8250. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8251. hardcode_libdir_separator=:
  8252. hardcode_direct=yes
  8253. hardcode_direct_absolute=yes
  8254. export_dynamic_flag_spec='${wl}-E'
  8255. # hardcode_minus_L: Not really in the search PATH,
  8256. # but as the default location of the library.
  8257. hardcode_minus_L=yes
  8258. fi
  8259. ;;
  8260. hpux11*)
  8261. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8262. case $host_cpu in
  8263. hppa*64*)
  8264. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8265. ;;
  8266. ia64*)
  8267. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8268. ;;
  8269. *)
  8270. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8271. ;;
  8272. esac
  8273. else
  8274. case $host_cpu in
  8275. hppa*64*)
  8276. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8277. ;;
  8278. ia64*)
  8279. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8280. ;;
  8281. *)
  8282. # Older versions of the 11.00 compiler do not understand -b yet
  8283. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8285. $as_echo_n "checking if $CC understands -b... " >&6; }
  8286. if ${lt_cv_prog_compiler__b+:} false; then :
  8287. $as_echo_n "(cached) " >&6
  8288. else
  8289. lt_cv_prog_compiler__b=no
  8290. save_LDFLAGS="$LDFLAGS"
  8291. LDFLAGS="$LDFLAGS -b"
  8292. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8293. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8294. # The linker can only warn and ignore the option if not recognized
  8295. # So say no if there are warnings
  8296. if test -s conftest.err; then
  8297. # Append any errors to the config.log.
  8298. cat conftest.err 1>&5
  8299. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8300. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8301. if diff conftest.exp conftest.er2 >/dev/null; then
  8302. lt_cv_prog_compiler__b=yes
  8303. fi
  8304. else
  8305. lt_cv_prog_compiler__b=yes
  8306. fi
  8307. fi
  8308. $RM -r conftest*
  8309. LDFLAGS="$save_LDFLAGS"
  8310. fi
  8311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8312. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8313. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8314. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8315. else
  8316. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8317. fi
  8318. ;;
  8319. esac
  8320. fi
  8321. if test "$with_gnu_ld" = no; then
  8322. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8323. hardcode_libdir_separator=:
  8324. case $host_cpu in
  8325. hppa*64*|ia64*)
  8326. hardcode_direct=no
  8327. hardcode_shlibpath_var=no
  8328. ;;
  8329. *)
  8330. hardcode_direct=yes
  8331. hardcode_direct_absolute=yes
  8332. export_dynamic_flag_spec='${wl}-E'
  8333. # hardcode_minus_L: Not really in the search PATH,
  8334. # but as the default location of the library.
  8335. hardcode_minus_L=yes
  8336. ;;
  8337. esac
  8338. fi
  8339. ;;
  8340. irix5* | irix6* | nonstopux*)
  8341. if test "$GCC" = yes; then
  8342. 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'
  8343. # Try to use the -exported_symbol ld option, if it does not
  8344. # work, assume that -exports_file does not work either and
  8345. # implicitly export all symbols.
  8346. # This should be the same for all languages, so no per-tag cache variable.
  8347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8348. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8349. if ${lt_cv_irix_exported_symbol+:} false; then :
  8350. $as_echo_n "(cached) " >&6
  8351. else
  8352. save_LDFLAGS="$LDFLAGS"
  8353. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8355. /* end confdefs.h. */
  8356. int foo (void) { return 0; }
  8357. _ACEOF
  8358. if ac_fn_c_try_link "$LINENO"; then :
  8359. lt_cv_irix_exported_symbol=yes
  8360. else
  8361. lt_cv_irix_exported_symbol=no
  8362. fi
  8363. rm -f core conftest.err conftest.$ac_objext \
  8364. conftest$ac_exeext conftest.$ac_ext
  8365. LDFLAGS="$save_LDFLAGS"
  8366. fi
  8367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8368. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8369. if test "$lt_cv_irix_exported_symbol" = yes; then
  8370. 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'
  8371. fi
  8372. else
  8373. 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'
  8374. 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'
  8375. fi
  8376. archive_cmds_need_lc='no'
  8377. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8378. hardcode_libdir_separator=:
  8379. inherit_rpath=yes
  8380. link_all_deplibs=yes
  8381. ;;
  8382. netbsd*)
  8383. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8384. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8385. else
  8386. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8387. fi
  8388. hardcode_libdir_flag_spec='-R$libdir'
  8389. hardcode_direct=yes
  8390. hardcode_shlibpath_var=no
  8391. ;;
  8392. newsos6)
  8393. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8394. hardcode_direct=yes
  8395. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8396. hardcode_libdir_separator=:
  8397. hardcode_shlibpath_var=no
  8398. ;;
  8399. *nto* | *qnx*)
  8400. ;;
  8401. openbsd*)
  8402. if test -f /usr/libexec/ld.so; then
  8403. hardcode_direct=yes
  8404. hardcode_shlibpath_var=no
  8405. hardcode_direct_absolute=yes
  8406. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8407. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8408. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8409. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8410. export_dynamic_flag_spec='${wl}-E'
  8411. else
  8412. case $host_os in
  8413. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8414. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8415. hardcode_libdir_flag_spec='-R$libdir'
  8416. ;;
  8417. *)
  8418. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8419. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8420. ;;
  8421. esac
  8422. fi
  8423. else
  8424. ld_shlibs=no
  8425. fi
  8426. ;;
  8427. os2*)
  8428. hardcode_libdir_flag_spec='-L$libdir'
  8429. hardcode_minus_L=yes
  8430. allow_undefined_flag=unsupported
  8431. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8432. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8433. ;;
  8434. osf3*)
  8435. if test "$GCC" = yes; then
  8436. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8437. 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'
  8438. else
  8439. allow_undefined_flag=' -expect_unresolved \*'
  8440. 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'
  8441. fi
  8442. archive_cmds_need_lc='no'
  8443. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8444. hardcode_libdir_separator=:
  8445. ;;
  8446. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8447. if test "$GCC" = yes; then
  8448. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8449. 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'
  8450. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8451. else
  8452. allow_undefined_flag=' -expect_unresolved \*'
  8453. 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'
  8454. 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~
  8455. $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'
  8456. # Both c and cxx compiler support -rpath directly
  8457. hardcode_libdir_flag_spec='-rpath $libdir'
  8458. fi
  8459. archive_cmds_need_lc='no'
  8460. hardcode_libdir_separator=:
  8461. ;;
  8462. solaris*)
  8463. no_undefined_flag=' -z defs'
  8464. if test "$GCC" = yes; then
  8465. wlarc='${wl}'
  8466. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8467. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8468. $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'
  8469. else
  8470. case `$CC -V 2>&1` in
  8471. *"Compilers 5.0"*)
  8472. wlarc=''
  8473. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8474. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8475. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8476. ;;
  8477. *)
  8478. wlarc='${wl}'
  8479. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8480. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8481. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8482. ;;
  8483. esac
  8484. fi
  8485. hardcode_libdir_flag_spec='-R$libdir'
  8486. hardcode_shlibpath_var=no
  8487. case $host_os in
  8488. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8489. *)
  8490. # The compiler driver will combine and reorder linker options,
  8491. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8492. # but is careful enough not to reorder.
  8493. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8494. if test "$GCC" = yes; then
  8495. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8496. else
  8497. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8498. fi
  8499. ;;
  8500. esac
  8501. link_all_deplibs=yes
  8502. ;;
  8503. sunos4*)
  8504. if test "x$host_vendor" = xsequent; then
  8505. # Use $CC to link under sequent, because it throws in some extra .o
  8506. # files that make .init and .fini sections work.
  8507. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8508. else
  8509. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8510. fi
  8511. hardcode_libdir_flag_spec='-L$libdir'
  8512. hardcode_direct=yes
  8513. hardcode_minus_L=yes
  8514. hardcode_shlibpath_var=no
  8515. ;;
  8516. sysv4)
  8517. case $host_vendor in
  8518. sni)
  8519. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8520. hardcode_direct=yes # is this really true???
  8521. ;;
  8522. siemens)
  8523. ## LD is ld it makes a PLAMLIB
  8524. ## CC just makes a GrossModule.
  8525. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8526. reload_cmds='$CC -r -o $output$reload_objs'
  8527. hardcode_direct=no
  8528. ;;
  8529. motorola)
  8530. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8531. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8532. ;;
  8533. esac
  8534. runpath_var='LD_RUN_PATH'
  8535. hardcode_shlibpath_var=no
  8536. ;;
  8537. sysv4.3*)
  8538. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8539. hardcode_shlibpath_var=no
  8540. export_dynamic_flag_spec='-Bexport'
  8541. ;;
  8542. sysv4*MP*)
  8543. if test -d /usr/nec; then
  8544. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8545. hardcode_shlibpath_var=no
  8546. runpath_var=LD_RUN_PATH
  8547. hardcode_runpath_var=yes
  8548. ld_shlibs=yes
  8549. fi
  8550. ;;
  8551. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8552. no_undefined_flag='${wl}-z,text'
  8553. archive_cmds_need_lc=no
  8554. hardcode_shlibpath_var=no
  8555. runpath_var='LD_RUN_PATH'
  8556. if test "$GCC" = yes; then
  8557. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8558. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8559. else
  8560. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8561. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8562. fi
  8563. ;;
  8564. sysv5* | sco3.2v5* | sco5v6*)
  8565. # Note: We can NOT use -z defs as we might desire, because we do not
  8566. # link with -lc, and that would cause any symbols used from libc to
  8567. # always be unresolved, which means just about no library would
  8568. # ever link correctly. If we're not using GNU ld we use -z text
  8569. # though, which does catch some bad symbols but isn't as heavy-handed
  8570. # as -z defs.
  8571. no_undefined_flag='${wl}-z,text'
  8572. allow_undefined_flag='${wl}-z,nodefs'
  8573. archive_cmds_need_lc=no
  8574. hardcode_shlibpath_var=no
  8575. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8576. hardcode_libdir_separator=':'
  8577. link_all_deplibs=yes
  8578. export_dynamic_flag_spec='${wl}-Bexport'
  8579. runpath_var='LD_RUN_PATH'
  8580. if test "$GCC" = yes; then
  8581. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8582. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8583. else
  8584. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8585. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8586. fi
  8587. ;;
  8588. uts4*)
  8589. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8590. hardcode_libdir_flag_spec='-L$libdir'
  8591. hardcode_shlibpath_var=no
  8592. ;;
  8593. *)
  8594. ld_shlibs=no
  8595. ;;
  8596. esac
  8597. if test x$host_vendor = xsni; then
  8598. case $host in
  8599. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8600. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8601. ;;
  8602. esac
  8603. fi
  8604. fi
  8605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8606. $as_echo "$ld_shlibs" >&6; }
  8607. test "$ld_shlibs" = no && can_build_shared=no
  8608. with_gnu_ld=$with_gnu_ld
  8609. #
  8610. # Do we need to explicitly link libc?
  8611. #
  8612. case "x$archive_cmds_need_lc" in
  8613. x|xyes)
  8614. # Assume -lc should be added
  8615. archive_cmds_need_lc=yes
  8616. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8617. case $archive_cmds in
  8618. *'~'*)
  8619. # FIXME: we may have to deal with multi-command sequences.
  8620. ;;
  8621. '$CC '*)
  8622. # Test whether the compiler implicitly links with -lc since on some
  8623. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8624. # to ld, don't add -lc before -lgcc.
  8625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8626. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8627. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8628. $as_echo_n "(cached) " >&6
  8629. else
  8630. $RM conftest*
  8631. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8632. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8633. (eval $ac_compile) 2>&5
  8634. ac_status=$?
  8635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8636. test $ac_status = 0; } 2>conftest.err; then
  8637. soname=conftest
  8638. lib=conftest
  8639. libobjs=conftest.$ac_objext
  8640. deplibs=
  8641. wl=$lt_prog_compiler_wl
  8642. pic_flag=$lt_prog_compiler_pic
  8643. compiler_flags=-v
  8644. linker_flags=-v
  8645. verstring=
  8646. output_objdir=.
  8647. libname=conftest
  8648. lt_save_allow_undefined_flag=$allow_undefined_flag
  8649. allow_undefined_flag=
  8650. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8651. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8652. ac_status=$?
  8653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8654. test $ac_status = 0; }
  8655. then
  8656. lt_cv_archive_cmds_need_lc=no
  8657. else
  8658. lt_cv_archive_cmds_need_lc=yes
  8659. fi
  8660. allow_undefined_flag=$lt_save_allow_undefined_flag
  8661. else
  8662. cat conftest.err 1>&5
  8663. fi
  8664. $RM conftest*
  8665. fi
  8666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8667. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8668. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8669. ;;
  8670. esac
  8671. fi
  8672. ;;
  8673. esac
  8674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8675. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8676. if test "$GCC" = yes; then
  8677. case $host_os in
  8678. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8679. *) lt_awk_arg="/^libraries:/" ;;
  8680. esac
  8681. case $host_os in
  8682. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8683. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8684. esac
  8685. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8686. case $lt_search_path_spec in
  8687. *\;*)
  8688. # if the path contains ";" then we assume it to be the separator
  8689. # otherwise default to the standard path separator (i.e. ":") - it is
  8690. # assumed that no part of a normal pathname contains ";" but that should
  8691. # okay in the real world where ";" in dirpaths is itself problematic.
  8692. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8693. ;;
  8694. *)
  8695. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8696. ;;
  8697. esac
  8698. # Ok, now we have the path, separated by spaces, we can step through it
  8699. # and add multilib dir if necessary...
  8700. lt_tmp_lt_search_path_spec=
  8701. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8702. # ...but if some path already ends with the multilib dir we assume
  8703. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8704. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8705. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8706. lt_multi_os_dir=
  8707. ;;
  8708. esac
  8709. for lt_sys_path in $lt_search_path_spec; do
  8710. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8711. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8712. elif test -n "$lt_multi_os_dir"; then
  8713. test -d "$lt_sys_path" && \
  8714. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8715. fi
  8716. done
  8717. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8718. BEGIN {RS=" "; FS="/|\n";} {
  8719. lt_foo="";
  8720. lt_count=0;
  8721. for (lt_i = NF; lt_i > 0; lt_i--) {
  8722. if ($lt_i != "" && $lt_i != ".") {
  8723. if ($lt_i == "..") {
  8724. lt_count++;
  8725. } else {
  8726. if (lt_count == 0) {
  8727. lt_foo="/" $lt_i lt_foo;
  8728. } else {
  8729. lt_count--;
  8730. }
  8731. }
  8732. }
  8733. }
  8734. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8735. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8736. }'`
  8737. # AWK program above erroneously prepends '/' to C:/dos/paths
  8738. # for these hosts.
  8739. case $host_os in
  8740. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8741. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8742. esac
  8743. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8744. else
  8745. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8746. fi
  8747. library_names_spec=
  8748. libname_spec='lib$name'
  8749. soname_spec=
  8750. shrext_cmds=".so"
  8751. postinstall_cmds=
  8752. postuninstall_cmds=
  8753. finish_cmds=
  8754. finish_eval=
  8755. shlibpath_var=
  8756. shlibpath_overrides_runpath=unknown
  8757. version_type=none
  8758. dynamic_linker="$host_os ld.so"
  8759. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8760. need_lib_prefix=unknown
  8761. hardcode_into_libs=no
  8762. # when you set need_version to no, make sure it does not cause -set_version
  8763. # flags to be left without arguments
  8764. need_version=unknown
  8765. case $host_os in
  8766. aix3*)
  8767. version_type=linux # correct to gnu/linux during the next big refactor
  8768. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8769. shlibpath_var=LIBPATH
  8770. # AIX 3 has no versioning support, so we append a major version to the name.
  8771. soname_spec='${libname}${release}${shared_ext}$major'
  8772. ;;
  8773. aix[4-9]*)
  8774. version_type=linux # correct to gnu/linux during the next big refactor
  8775. need_lib_prefix=no
  8776. need_version=no
  8777. hardcode_into_libs=yes
  8778. if test "$host_cpu" = ia64; then
  8779. # AIX 5 supports IA64
  8780. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8781. shlibpath_var=LD_LIBRARY_PATH
  8782. else
  8783. # With GCC up to 2.95.x, collect2 would create an import file
  8784. # for dependence libraries. The import file would start with
  8785. # the line `#! .'. This would cause the generated library to
  8786. # depend on `.', always an invalid library. This was fixed in
  8787. # development snapshots of GCC prior to 3.0.
  8788. case $host_os in
  8789. aix4 | aix4.[01] | aix4.[01].*)
  8790. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8791. echo ' yes '
  8792. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8793. :
  8794. else
  8795. can_build_shared=no
  8796. fi
  8797. ;;
  8798. esac
  8799. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8800. # soname into executable. Probably we can add versioning support to
  8801. # collect2, so additional links can be useful in future.
  8802. if test "$aix_use_runtimelinking" = yes; then
  8803. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8804. # instead of lib<name>.a to let people know that these are not
  8805. # typical AIX shared libraries.
  8806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8807. else
  8808. # We preserve .a as extension for shared libraries through AIX4.2
  8809. # and later when we are not doing run time linking.
  8810. library_names_spec='${libname}${release}.a $libname.a'
  8811. soname_spec='${libname}${release}${shared_ext}$major'
  8812. fi
  8813. shlibpath_var=LIBPATH
  8814. fi
  8815. ;;
  8816. amigaos*)
  8817. case $host_cpu in
  8818. powerpc)
  8819. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8820. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8822. ;;
  8823. m68k)
  8824. library_names_spec='$libname.ixlibrary $libname.a'
  8825. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8826. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8827. ;;
  8828. esac
  8829. ;;
  8830. beos*)
  8831. library_names_spec='${libname}${shared_ext}'
  8832. dynamic_linker="$host_os ld.so"
  8833. shlibpath_var=LIBRARY_PATH
  8834. ;;
  8835. bsdi[45]*)
  8836. version_type=linux # correct to gnu/linux during the next big refactor
  8837. need_version=no
  8838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8839. soname_spec='${libname}${release}${shared_ext}$major'
  8840. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8841. shlibpath_var=LD_LIBRARY_PATH
  8842. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8843. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8844. # the default ld.so.conf also contains /usr/contrib/lib and
  8845. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8846. # libtool to hard-code these into programs
  8847. ;;
  8848. cygwin* | mingw* | pw32* | cegcc*)
  8849. version_type=windows
  8850. shrext_cmds=".dll"
  8851. need_version=no
  8852. need_lib_prefix=no
  8853. case $GCC,$cc_basename in
  8854. yes,*)
  8855. # gcc
  8856. library_names_spec='$libname.dll.a'
  8857. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8858. postinstall_cmds='base_file=`basename \${file}`~
  8859. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8860. dldir=$destdir/`dirname \$dlpath`~
  8861. test -d \$dldir || mkdir -p \$dldir~
  8862. $install_prog $dir/$dlname \$dldir/$dlname~
  8863. chmod a+x \$dldir/$dlname~
  8864. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8865. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8866. fi'
  8867. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8868. dlpath=$dir/\$dldll~
  8869. $RM \$dlpath'
  8870. shlibpath_overrides_runpath=yes
  8871. case $host_os in
  8872. cygwin*)
  8873. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8874. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8875. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8876. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8877. ;;
  8878. mingw* | cegcc*)
  8879. # MinGW DLLs use traditional 'lib' prefix
  8880. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8881. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8882. ;;
  8883. pw32*)
  8884. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8885. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8886. ;;
  8887. esac
  8888. dynamic_linker='Win32 ld.exe'
  8889. ;;
  8890. *,cl*)
  8891. # Native MSVC
  8892. libname_spec='$name'
  8893. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8894. library_names_spec='${libname}.dll.lib'
  8895. case $build_os in
  8896. mingw*)
  8897. sys_lib_search_path_spec=
  8898. lt_save_ifs=$IFS
  8899. IFS=';'
  8900. for lt_path in $LIB
  8901. do
  8902. IFS=$lt_save_ifs
  8903. # Let DOS variable expansion print the short 8.3 style file name.
  8904. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8905. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8906. done
  8907. IFS=$lt_save_ifs
  8908. # Convert to MSYS style.
  8909. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8910. ;;
  8911. cygwin*)
  8912. # Convert to unix form, then to dos form, then back to unix form
  8913. # but this time dos style (no spaces!) so that the unix form looks
  8914. # like /cygdrive/c/PROGRA~1:/cygdr...
  8915. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8916. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8917. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8918. ;;
  8919. *)
  8920. sys_lib_search_path_spec="$LIB"
  8921. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8922. # It is most probably a Windows format PATH.
  8923. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8924. else
  8925. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8926. fi
  8927. # FIXME: find the short name or the path components, as spaces are
  8928. # common. (e.g. "Program Files" -> "PROGRA~1")
  8929. ;;
  8930. esac
  8931. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8932. postinstall_cmds='base_file=`basename \${file}`~
  8933. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8934. dldir=$destdir/`dirname \$dlpath`~
  8935. test -d \$dldir || mkdir -p \$dldir~
  8936. $install_prog $dir/$dlname \$dldir/$dlname'
  8937. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8938. dlpath=$dir/\$dldll~
  8939. $RM \$dlpath'
  8940. shlibpath_overrides_runpath=yes
  8941. dynamic_linker='Win32 link.exe'
  8942. ;;
  8943. *)
  8944. # Assume MSVC wrapper
  8945. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8946. dynamic_linker='Win32 ld.exe'
  8947. ;;
  8948. esac
  8949. # FIXME: first we should search . and the directory the executable is in
  8950. shlibpath_var=PATH
  8951. ;;
  8952. darwin* | rhapsody*)
  8953. dynamic_linker="$host_os dyld"
  8954. version_type=darwin
  8955. need_lib_prefix=no
  8956. need_version=no
  8957. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8958. soname_spec='${libname}${release}${major}$shared_ext'
  8959. shlibpath_overrides_runpath=yes
  8960. shlibpath_var=DYLD_LIBRARY_PATH
  8961. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8962. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8963. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8964. ;;
  8965. dgux*)
  8966. version_type=linux # correct to gnu/linux during the next big refactor
  8967. need_lib_prefix=no
  8968. need_version=no
  8969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8970. soname_spec='${libname}${release}${shared_ext}$major'
  8971. shlibpath_var=LD_LIBRARY_PATH
  8972. ;;
  8973. freebsd* | dragonfly*)
  8974. # DragonFly does not have aout. When/if they implement a new
  8975. # versioning mechanism, adjust this.
  8976. if test -x /usr/bin/objformat; then
  8977. objformat=`/usr/bin/objformat`
  8978. else
  8979. case $host_os in
  8980. freebsd[23].*) objformat=aout ;;
  8981. *) objformat=elf ;;
  8982. esac
  8983. fi
  8984. version_type=freebsd-$objformat
  8985. case $version_type in
  8986. freebsd-elf*)
  8987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8988. need_version=no
  8989. need_lib_prefix=no
  8990. ;;
  8991. freebsd-*)
  8992. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8993. need_version=yes
  8994. ;;
  8995. esac
  8996. shlibpath_var=LD_LIBRARY_PATH
  8997. case $host_os in
  8998. freebsd2.*)
  8999. shlibpath_overrides_runpath=yes
  9000. ;;
  9001. freebsd3.[01]* | freebsdelf3.[01]*)
  9002. shlibpath_overrides_runpath=yes
  9003. hardcode_into_libs=yes
  9004. ;;
  9005. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9006. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9007. shlibpath_overrides_runpath=no
  9008. hardcode_into_libs=yes
  9009. ;;
  9010. *) # from 4.6 on, and DragonFly
  9011. shlibpath_overrides_runpath=yes
  9012. hardcode_into_libs=yes
  9013. ;;
  9014. esac
  9015. ;;
  9016. gnu*)
  9017. version_type=linux # correct to gnu/linux during the next big refactor
  9018. need_lib_prefix=no
  9019. need_version=no
  9020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9021. soname_spec='${libname}${release}${shared_ext}$major'
  9022. shlibpath_var=LD_LIBRARY_PATH
  9023. shlibpath_overrides_runpath=no
  9024. hardcode_into_libs=yes
  9025. ;;
  9026. haiku*)
  9027. version_type=linux # correct to gnu/linux during the next big refactor
  9028. need_lib_prefix=no
  9029. need_version=no
  9030. dynamic_linker="$host_os runtime_loader"
  9031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9032. soname_spec='${libname}${release}${shared_ext}$major'
  9033. shlibpath_var=LIBRARY_PATH
  9034. shlibpath_overrides_runpath=yes
  9035. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9036. hardcode_into_libs=yes
  9037. ;;
  9038. hpux9* | hpux10* | hpux11*)
  9039. # Give a soname corresponding to the major version so that dld.sl refuses to
  9040. # link against other versions.
  9041. version_type=sunos
  9042. need_lib_prefix=no
  9043. need_version=no
  9044. case $host_cpu in
  9045. ia64*)
  9046. shrext_cmds='.so'
  9047. hardcode_into_libs=yes
  9048. dynamic_linker="$host_os dld.so"
  9049. shlibpath_var=LD_LIBRARY_PATH
  9050. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9052. soname_spec='${libname}${release}${shared_ext}$major'
  9053. if test "X$HPUX_IA64_MODE" = X32; then
  9054. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9055. else
  9056. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9057. fi
  9058. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9059. ;;
  9060. hppa*64*)
  9061. shrext_cmds='.sl'
  9062. hardcode_into_libs=yes
  9063. dynamic_linker="$host_os dld.sl"
  9064. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9065. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9067. soname_spec='${libname}${release}${shared_ext}$major'
  9068. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9069. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9070. ;;
  9071. *)
  9072. shrext_cmds='.sl'
  9073. dynamic_linker="$host_os dld.sl"
  9074. shlibpath_var=SHLIB_PATH
  9075. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9077. soname_spec='${libname}${release}${shared_ext}$major'
  9078. ;;
  9079. esac
  9080. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9081. postinstall_cmds='chmod 555 $lib'
  9082. # or fails outright, so override atomically:
  9083. install_override_mode=555
  9084. ;;
  9085. interix[3-9]*)
  9086. version_type=linux # correct to gnu/linux during the next big refactor
  9087. need_lib_prefix=no
  9088. need_version=no
  9089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9090. soname_spec='${libname}${release}${shared_ext}$major'
  9091. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9092. shlibpath_var=LD_LIBRARY_PATH
  9093. shlibpath_overrides_runpath=no
  9094. hardcode_into_libs=yes
  9095. ;;
  9096. irix5* | irix6* | nonstopux*)
  9097. case $host_os in
  9098. nonstopux*) version_type=nonstopux ;;
  9099. *)
  9100. if test "$lt_cv_prog_gnu_ld" = yes; then
  9101. version_type=linux # correct to gnu/linux during the next big refactor
  9102. else
  9103. version_type=irix
  9104. fi ;;
  9105. esac
  9106. need_lib_prefix=no
  9107. need_version=no
  9108. soname_spec='${libname}${release}${shared_ext}$major'
  9109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9110. case $host_os in
  9111. irix5* | nonstopux*)
  9112. libsuff= shlibsuff=
  9113. ;;
  9114. *)
  9115. case $LD in # libtool.m4 will add one of these switches to LD
  9116. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9117. libsuff= shlibsuff= libmagic=32-bit;;
  9118. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9119. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9120. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9121. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9122. *) libsuff= shlibsuff= libmagic=never-match;;
  9123. esac
  9124. ;;
  9125. esac
  9126. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9127. shlibpath_overrides_runpath=no
  9128. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9129. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9130. hardcode_into_libs=yes
  9131. ;;
  9132. # No shared lib support for Linux oldld, aout, or coff.
  9133. linux*oldld* | linux*aout* | linux*coff*)
  9134. dynamic_linker=no
  9135. ;;
  9136. # This must be glibc/ELF.
  9137. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9138. version_type=linux # correct to gnu/linux during the next big refactor
  9139. need_lib_prefix=no
  9140. need_version=no
  9141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9142. soname_spec='${libname}${release}${shared_ext}$major'
  9143. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9144. shlibpath_var=LD_LIBRARY_PATH
  9145. shlibpath_overrides_runpath=no
  9146. # Some binutils ld are patched to set DT_RUNPATH
  9147. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9148. $as_echo_n "(cached) " >&6
  9149. else
  9150. lt_cv_shlibpath_overrides_runpath=no
  9151. save_LDFLAGS=$LDFLAGS
  9152. save_libdir=$libdir
  9153. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9154. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9156. /* end confdefs.h. */
  9157. int
  9158. main ()
  9159. {
  9160. ;
  9161. return 0;
  9162. }
  9163. _ACEOF
  9164. if ac_fn_c_try_link "$LINENO"; then :
  9165. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9166. lt_cv_shlibpath_overrides_runpath=yes
  9167. fi
  9168. fi
  9169. rm -f core conftest.err conftest.$ac_objext \
  9170. conftest$ac_exeext conftest.$ac_ext
  9171. LDFLAGS=$save_LDFLAGS
  9172. libdir=$save_libdir
  9173. fi
  9174. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9175. # This implies no fast_install, which is unacceptable.
  9176. # Some rework will be needed to allow for fast_install
  9177. # before this can be enabled.
  9178. hardcode_into_libs=yes
  9179. # Append ld.so.conf contents to the search path
  9180. if test -f /etc/ld.so.conf; then
  9181. 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' ' '`
  9182. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9183. fi
  9184. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9185. # powerpc, because MkLinux only supported shared libraries with the
  9186. # GNU dynamic linker. Since this was broken with cross compilers,
  9187. # most powerpc-linux boxes support dynamic linking these days and
  9188. # people can always --disable-shared, the test was removed, and we
  9189. # assume the GNU/Linux dynamic linker is in use.
  9190. dynamic_linker='GNU/Linux ld.so'
  9191. ;;
  9192. netbsd*)
  9193. version_type=sunos
  9194. need_lib_prefix=no
  9195. need_version=no
  9196. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9198. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9199. dynamic_linker='NetBSD (a.out) ld.so'
  9200. else
  9201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9202. soname_spec='${libname}${release}${shared_ext}$major'
  9203. dynamic_linker='NetBSD ld.elf_so'
  9204. fi
  9205. shlibpath_var=LD_LIBRARY_PATH
  9206. shlibpath_overrides_runpath=yes
  9207. hardcode_into_libs=yes
  9208. ;;
  9209. newsos6)
  9210. version_type=linux # correct to gnu/linux during the next big refactor
  9211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9212. shlibpath_var=LD_LIBRARY_PATH
  9213. shlibpath_overrides_runpath=yes
  9214. ;;
  9215. *nto* | *qnx*)
  9216. version_type=qnx
  9217. need_lib_prefix=no
  9218. need_version=no
  9219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9220. soname_spec='${libname}${release}${shared_ext}$major'
  9221. shlibpath_var=LD_LIBRARY_PATH
  9222. shlibpath_overrides_runpath=no
  9223. hardcode_into_libs=yes
  9224. dynamic_linker='ldqnx.so'
  9225. ;;
  9226. openbsd*)
  9227. version_type=sunos
  9228. sys_lib_dlsearch_path_spec="/usr/lib"
  9229. need_lib_prefix=no
  9230. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9231. case $host_os in
  9232. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9233. *) need_version=no ;;
  9234. esac
  9235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9236. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9237. shlibpath_var=LD_LIBRARY_PATH
  9238. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9239. case $host_os in
  9240. openbsd2.[89] | openbsd2.[89].*)
  9241. shlibpath_overrides_runpath=no
  9242. ;;
  9243. *)
  9244. shlibpath_overrides_runpath=yes
  9245. ;;
  9246. esac
  9247. else
  9248. shlibpath_overrides_runpath=yes
  9249. fi
  9250. ;;
  9251. os2*)
  9252. libname_spec='$name'
  9253. shrext_cmds=".dll"
  9254. need_lib_prefix=no
  9255. library_names_spec='$libname${shared_ext} $libname.a'
  9256. dynamic_linker='OS/2 ld.exe'
  9257. shlibpath_var=LIBPATH
  9258. ;;
  9259. osf3* | osf4* | osf5*)
  9260. version_type=osf
  9261. need_lib_prefix=no
  9262. need_version=no
  9263. soname_spec='${libname}${release}${shared_ext}$major'
  9264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9265. shlibpath_var=LD_LIBRARY_PATH
  9266. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9267. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9268. ;;
  9269. rdos*)
  9270. dynamic_linker=no
  9271. ;;
  9272. solaris*)
  9273. version_type=linux # correct to gnu/linux during the next big refactor
  9274. need_lib_prefix=no
  9275. need_version=no
  9276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9277. soname_spec='${libname}${release}${shared_ext}$major'
  9278. shlibpath_var=LD_LIBRARY_PATH
  9279. shlibpath_overrides_runpath=yes
  9280. hardcode_into_libs=yes
  9281. # ldd complains unless libraries are executable
  9282. postinstall_cmds='chmod +x $lib'
  9283. ;;
  9284. sunos4*)
  9285. version_type=sunos
  9286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9287. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9288. shlibpath_var=LD_LIBRARY_PATH
  9289. shlibpath_overrides_runpath=yes
  9290. if test "$with_gnu_ld" = yes; then
  9291. need_lib_prefix=no
  9292. fi
  9293. need_version=yes
  9294. ;;
  9295. sysv4 | sysv4.3*)
  9296. version_type=linux # correct to gnu/linux during the next big refactor
  9297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9298. soname_spec='${libname}${release}${shared_ext}$major'
  9299. shlibpath_var=LD_LIBRARY_PATH
  9300. case $host_vendor in
  9301. sni)
  9302. shlibpath_overrides_runpath=no
  9303. need_lib_prefix=no
  9304. runpath_var=LD_RUN_PATH
  9305. ;;
  9306. siemens)
  9307. need_lib_prefix=no
  9308. ;;
  9309. motorola)
  9310. need_lib_prefix=no
  9311. need_version=no
  9312. shlibpath_overrides_runpath=no
  9313. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9314. ;;
  9315. esac
  9316. ;;
  9317. sysv4*MP*)
  9318. if test -d /usr/nec ;then
  9319. version_type=linux # correct to gnu/linux during the next big refactor
  9320. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9321. soname_spec='$libname${shared_ext}.$major'
  9322. shlibpath_var=LD_LIBRARY_PATH
  9323. fi
  9324. ;;
  9325. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9326. version_type=freebsd-elf
  9327. need_lib_prefix=no
  9328. need_version=no
  9329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9330. soname_spec='${libname}${release}${shared_ext}$major'
  9331. shlibpath_var=LD_LIBRARY_PATH
  9332. shlibpath_overrides_runpath=yes
  9333. hardcode_into_libs=yes
  9334. if test "$with_gnu_ld" = yes; then
  9335. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9336. else
  9337. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9338. case $host_os in
  9339. sco3.2v5*)
  9340. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9341. ;;
  9342. esac
  9343. fi
  9344. sys_lib_dlsearch_path_spec='/usr/lib'
  9345. ;;
  9346. tpf*)
  9347. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9348. version_type=linux # correct to gnu/linux during the next big refactor
  9349. need_lib_prefix=no
  9350. need_version=no
  9351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9352. shlibpath_var=LD_LIBRARY_PATH
  9353. shlibpath_overrides_runpath=no
  9354. hardcode_into_libs=yes
  9355. ;;
  9356. uts4*)
  9357. version_type=linux # correct to gnu/linux during the next big refactor
  9358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9359. soname_spec='${libname}${release}${shared_ext}$major'
  9360. shlibpath_var=LD_LIBRARY_PATH
  9361. ;;
  9362. *)
  9363. dynamic_linker=no
  9364. ;;
  9365. esac
  9366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9367. $as_echo "$dynamic_linker" >&6; }
  9368. test "$dynamic_linker" = no && can_build_shared=no
  9369. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9370. if test "$GCC" = yes; then
  9371. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9372. fi
  9373. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9374. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9375. fi
  9376. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9377. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9378. fi
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9380. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9381. hardcode_action=
  9382. if test -n "$hardcode_libdir_flag_spec" ||
  9383. test -n "$runpath_var" ||
  9384. test "X$hardcode_automatic" = "Xyes" ; then
  9385. # We can hardcode non-existent directories.
  9386. if test "$hardcode_direct" != no &&
  9387. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9388. # have to relink, otherwise we might link with an installed library
  9389. # when we should be linking with a yet-to-be-installed one
  9390. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9391. test "$hardcode_minus_L" != no; then
  9392. # Linking always hardcodes the temporary library directory.
  9393. hardcode_action=relink
  9394. else
  9395. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9396. hardcode_action=immediate
  9397. fi
  9398. else
  9399. # We cannot hardcode anything, or else we can only hardcode existing
  9400. # directories.
  9401. hardcode_action=unsupported
  9402. fi
  9403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9404. $as_echo "$hardcode_action" >&6; }
  9405. if test "$hardcode_action" = relink ||
  9406. test "$inherit_rpath" = yes; then
  9407. # Fast installation is not supported
  9408. enable_fast_install=no
  9409. elif test "$shlibpath_overrides_runpath" = yes ||
  9410. test "$enable_shared" = no; then
  9411. # Fast installation is not necessary
  9412. enable_fast_install=needless
  9413. fi
  9414. if test "x$enable_dlopen" != xyes; then
  9415. enable_dlopen=unknown
  9416. enable_dlopen_self=unknown
  9417. enable_dlopen_self_static=unknown
  9418. else
  9419. lt_cv_dlopen=no
  9420. lt_cv_dlopen_libs=
  9421. case $host_os in
  9422. beos*)
  9423. lt_cv_dlopen="load_add_on"
  9424. lt_cv_dlopen_libs=
  9425. lt_cv_dlopen_self=yes
  9426. ;;
  9427. mingw* | pw32* | cegcc*)
  9428. lt_cv_dlopen="LoadLibrary"
  9429. lt_cv_dlopen_libs=
  9430. ;;
  9431. cygwin*)
  9432. lt_cv_dlopen="dlopen"
  9433. lt_cv_dlopen_libs=
  9434. ;;
  9435. darwin*)
  9436. # if libdl is installed we need to link against it
  9437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9438. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9439. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9440. $as_echo_n "(cached) " >&6
  9441. else
  9442. ac_check_lib_save_LIBS=$LIBS
  9443. LIBS="-ldl $LIBS"
  9444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9445. /* end confdefs.h. */
  9446. /* Override any GCC internal prototype to avoid an error.
  9447. Use char because int might match the return type of a GCC
  9448. builtin and then its argument prototype would still apply. */
  9449. #ifdef __cplusplus
  9450. extern "C"
  9451. #endif
  9452. char dlopen ();
  9453. int
  9454. main ()
  9455. {
  9456. return dlopen ();
  9457. ;
  9458. return 0;
  9459. }
  9460. _ACEOF
  9461. if ac_fn_c_try_link "$LINENO"; then :
  9462. ac_cv_lib_dl_dlopen=yes
  9463. else
  9464. ac_cv_lib_dl_dlopen=no
  9465. fi
  9466. rm -f core conftest.err conftest.$ac_objext \
  9467. conftest$ac_exeext conftest.$ac_ext
  9468. LIBS=$ac_check_lib_save_LIBS
  9469. fi
  9470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9471. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9472. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9473. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9474. else
  9475. lt_cv_dlopen="dyld"
  9476. lt_cv_dlopen_libs=
  9477. lt_cv_dlopen_self=yes
  9478. fi
  9479. ;;
  9480. *)
  9481. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9482. if test "x$ac_cv_func_shl_load" = xyes; then :
  9483. lt_cv_dlopen="shl_load"
  9484. else
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9486. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9487. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9488. $as_echo_n "(cached) " >&6
  9489. else
  9490. ac_check_lib_save_LIBS=$LIBS
  9491. LIBS="-ldld $LIBS"
  9492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9493. /* end confdefs.h. */
  9494. /* Override any GCC internal prototype to avoid an error.
  9495. Use char because int might match the return type of a GCC
  9496. builtin and then its argument prototype would still apply. */
  9497. #ifdef __cplusplus
  9498. extern "C"
  9499. #endif
  9500. char shl_load ();
  9501. int
  9502. main ()
  9503. {
  9504. return shl_load ();
  9505. ;
  9506. return 0;
  9507. }
  9508. _ACEOF
  9509. if ac_fn_c_try_link "$LINENO"; then :
  9510. ac_cv_lib_dld_shl_load=yes
  9511. else
  9512. ac_cv_lib_dld_shl_load=no
  9513. fi
  9514. rm -f core conftest.err conftest.$ac_objext \
  9515. conftest$ac_exeext conftest.$ac_ext
  9516. LIBS=$ac_check_lib_save_LIBS
  9517. fi
  9518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9519. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9520. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9521. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9522. else
  9523. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9524. if test "x$ac_cv_func_dlopen" = xyes; then :
  9525. lt_cv_dlopen="dlopen"
  9526. else
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9528. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9529. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9530. $as_echo_n "(cached) " >&6
  9531. else
  9532. ac_check_lib_save_LIBS=$LIBS
  9533. LIBS="-ldl $LIBS"
  9534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9535. /* end confdefs.h. */
  9536. /* Override any GCC internal prototype to avoid an error.
  9537. Use char because int might match the return type of a GCC
  9538. builtin and then its argument prototype would still apply. */
  9539. #ifdef __cplusplus
  9540. extern "C"
  9541. #endif
  9542. char dlopen ();
  9543. int
  9544. main ()
  9545. {
  9546. return dlopen ();
  9547. ;
  9548. return 0;
  9549. }
  9550. _ACEOF
  9551. if ac_fn_c_try_link "$LINENO"; then :
  9552. ac_cv_lib_dl_dlopen=yes
  9553. else
  9554. ac_cv_lib_dl_dlopen=no
  9555. fi
  9556. rm -f core conftest.err conftest.$ac_objext \
  9557. conftest$ac_exeext conftest.$ac_ext
  9558. LIBS=$ac_check_lib_save_LIBS
  9559. fi
  9560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9561. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9562. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9563. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9564. else
  9565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9566. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9567. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9568. $as_echo_n "(cached) " >&6
  9569. else
  9570. ac_check_lib_save_LIBS=$LIBS
  9571. LIBS="-lsvld $LIBS"
  9572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9573. /* end confdefs.h. */
  9574. /* Override any GCC internal prototype to avoid an error.
  9575. Use char because int might match the return type of a GCC
  9576. builtin and then its argument prototype would still apply. */
  9577. #ifdef __cplusplus
  9578. extern "C"
  9579. #endif
  9580. char dlopen ();
  9581. int
  9582. main ()
  9583. {
  9584. return dlopen ();
  9585. ;
  9586. return 0;
  9587. }
  9588. _ACEOF
  9589. if ac_fn_c_try_link "$LINENO"; then :
  9590. ac_cv_lib_svld_dlopen=yes
  9591. else
  9592. ac_cv_lib_svld_dlopen=no
  9593. fi
  9594. rm -f core conftest.err conftest.$ac_objext \
  9595. conftest$ac_exeext conftest.$ac_ext
  9596. LIBS=$ac_check_lib_save_LIBS
  9597. fi
  9598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9599. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9600. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9601. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9602. else
  9603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9604. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9605. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9606. $as_echo_n "(cached) " >&6
  9607. else
  9608. ac_check_lib_save_LIBS=$LIBS
  9609. LIBS="-ldld $LIBS"
  9610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9611. /* end confdefs.h. */
  9612. /* Override any GCC internal prototype to avoid an error.
  9613. Use char because int might match the return type of a GCC
  9614. builtin and then its argument prototype would still apply. */
  9615. #ifdef __cplusplus
  9616. extern "C"
  9617. #endif
  9618. char dld_link ();
  9619. int
  9620. main ()
  9621. {
  9622. return dld_link ();
  9623. ;
  9624. return 0;
  9625. }
  9626. _ACEOF
  9627. if ac_fn_c_try_link "$LINENO"; then :
  9628. ac_cv_lib_dld_dld_link=yes
  9629. else
  9630. ac_cv_lib_dld_dld_link=no
  9631. fi
  9632. rm -f core conftest.err conftest.$ac_objext \
  9633. conftest$ac_exeext conftest.$ac_ext
  9634. LIBS=$ac_check_lib_save_LIBS
  9635. fi
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9637. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9638. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9639. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9640. fi
  9641. fi
  9642. fi
  9643. fi
  9644. fi
  9645. fi
  9646. ;;
  9647. esac
  9648. if test "x$lt_cv_dlopen" != xno; then
  9649. enable_dlopen=yes
  9650. else
  9651. enable_dlopen=no
  9652. fi
  9653. case $lt_cv_dlopen in
  9654. dlopen)
  9655. save_CPPFLAGS="$CPPFLAGS"
  9656. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9657. save_LDFLAGS="$LDFLAGS"
  9658. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9659. save_LIBS="$LIBS"
  9660. LIBS="$lt_cv_dlopen_libs $LIBS"
  9661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9662. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9663. if ${lt_cv_dlopen_self+:} false; then :
  9664. $as_echo_n "(cached) " >&6
  9665. else
  9666. if test "$cross_compiling" = yes; then :
  9667. lt_cv_dlopen_self=cross
  9668. else
  9669. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9670. lt_status=$lt_dlunknown
  9671. cat > conftest.$ac_ext <<_LT_EOF
  9672. #line $LINENO "configure"
  9673. #include "confdefs.h"
  9674. #if HAVE_DLFCN_H
  9675. #include <dlfcn.h>
  9676. #endif
  9677. #include <stdio.h>
  9678. #ifdef RTLD_GLOBAL
  9679. # define LT_DLGLOBAL RTLD_GLOBAL
  9680. #else
  9681. # ifdef DL_GLOBAL
  9682. # define LT_DLGLOBAL DL_GLOBAL
  9683. # else
  9684. # define LT_DLGLOBAL 0
  9685. # endif
  9686. #endif
  9687. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9688. find out it does not work in some platform. */
  9689. #ifndef LT_DLLAZY_OR_NOW
  9690. # ifdef RTLD_LAZY
  9691. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9692. # else
  9693. # ifdef DL_LAZY
  9694. # define LT_DLLAZY_OR_NOW DL_LAZY
  9695. # else
  9696. # ifdef RTLD_NOW
  9697. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9698. # else
  9699. # ifdef DL_NOW
  9700. # define LT_DLLAZY_OR_NOW DL_NOW
  9701. # else
  9702. # define LT_DLLAZY_OR_NOW 0
  9703. # endif
  9704. # endif
  9705. # endif
  9706. # endif
  9707. #endif
  9708. /* When -fvisbility=hidden is used, assume the code has been annotated
  9709. correspondingly for the symbols needed. */
  9710. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9711. int fnord () __attribute__((visibility("default")));
  9712. #endif
  9713. int fnord () { return 42; }
  9714. int main ()
  9715. {
  9716. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9717. int status = $lt_dlunknown;
  9718. if (self)
  9719. {
  9720. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9721. else
  9722. {
  9723. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9724. else puts (dlerror ());
  9725. }
  9726. /* dlclose (self); */
  9727. }
  9728. else
  9729. puts (dlerror ());
  9730. return status;
  9731. }
  9732. _LT_EOF
  9733. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9734. (eval $ac_link) 2>&5
  9735. ac_status=$?
  9736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9737. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9738. (./conftest; exit; ) >&5 2>/dev/null
  9739. lt_status=$?
  9740. case x$lt_status in
  9741. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9742. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9743. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9744. esac
  9745. else :
  9746. # compilation failed
  9747. lt_cv_dlopen_self=no
  9748. fi
  9749. fi
  9750. rm -fr conftest*
  9751. fi
  9752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9753. $as_echo "$lt_cv_dlopen_self" >&6; }
  9754. if test "x$lt_cv_dlopen_self" = xyes; then
  9755. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9757. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9758. if ${lt_cv_dlopen_self_static+:} false; then :
  9759. $as_echo_n "(cached) " >&6
  9760. else
  9761. if test "$cross_compiling" = yes; then :
  9762. lt_cv_dlopen_self_static=cross
  9763. else
  9764. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9765. lt_status=$lt_dlunknown
  9766. cat > conftest.$ac_ext <<_LT_EOF
  9767. #line $LINENO "configure"
  9768. #include "confdefs.h"
  9769. #if HAVE_DLFCN_H
  9770. #include <dlfcn.h>
  9771. #endif
  9772. #include <stdio.h>
  9773. #ifdef RTLD_GLOBAL
  9774. # define LT_DLGLOBAL RTLD_GLOBAL
  9775. #else
  9776. # ifdef DL_GLOBAL
  9777. # define LT_DLGLOBAL DL_GLOBAL
  9778. # else
  9779. # define LT_DLGLOBAL 0
  9780. # endif
  9781. #endif
  9782. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9783. find out it does not work in some platform. */
  9784. #ifndef LT_DLLAZY_OR_NOW
  9785. # ifdef RTLD_LAZY
  9786. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9787. # else
  9788. # ifdef DL_LAZY
  9789. # define LT_DLLAZY_OR_NOW DL_LAZY
  9790. # else
  9791. # ifdef RTLD_NOW
  9792. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9793. # else
  9794. # ifdef DL_NOW
  9795. # define LT_DLLAZY_OR_NOW DL_NOW
  9796. # else
  9797. # define LT_DLLAZY_OR_NOW 0
  9798. # endif
  9799. # endif
  9800. # endif
  9801. # endif
  9802. #endif
  9803. /* When -fvisbility=hidden is used, assume the code has been annotated
  9804. correspondingly for the symbols needed. */
  9805. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9806. int fnord () __attribute__((visibility("default")));
  9807. #endif
  9808. int fnord () { return 42; }
  9809. int main ()
  9810. {
  9811. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9812. int status = $lt_dlunknown;
  9813. if (self)
  9814. {
  9815. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9816. else
  9817. {
  9818. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9819. else puts (dlerror ());
  9820. }
  9821. /* dlclose (self); */
  9822. }
  9823. else
  9824. puts (dlerror ());
  9825. return status;
  9826. }
  9827. _LT_EOF
  9828. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9829. (eval $ac_link) 2>&5
  9830. ac_status=$?
  9831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9832. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9833. (./conftest; exit; ) >&5 2>/dev/null
  9834. lt_status=$?
  9835. case x$lt_status in
  9836. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9837. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9838. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9839. esac
  9840. else :
  9841. # compilation failed
  9842. lt_cv_dlopen_self_static=no
  9843. fi
  9844. fi
  9845. rm -fr conftest*
  9846. fi
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9848. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9849. fi
  9850. CPPFLAGS="$save_CPPFLAGS"
  9851. LDFLAGS="$save_LDFLAGS"
  9852. LIBS="$save_LIBS"
  9853. ;;
  9854. esac
  9855. case $lt_cv_dlopen_self in
  9856. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9857. *) enable_dlopen_self=unknown ;;
  9858. esac
  9859. case $lt_cv_dlopen_self_static in
  9860. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9861. *) enable_dlopen_self_static=unknown ;;
  9862. esac
  9863. fi
  9864. striplib=
  9865. old_striplib=
  9866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9867. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9868. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9869. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9870. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9872. $as_echo "yes" >&6; }
  9873. else
  9874. # FIXME - insert some real tests, host_os isn't really good enough
  9875. case $host_os in
  9876. darwin*)
  9877. if test -n "$STRIP" ; then
  9878. striplib="$STRIP -x"
  9879. old_striplib="$STRIP -S"
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9881. $as_echo "yes" >&6; }
  9882. else
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9884. $as_echo "no" >&6; }
  9885. fi
  9886. ;;
  9887. *)
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9889. $as_echo "no" >&6; }
  9890. ;;
  9891. esac
  9892. fi
  9893. # Report which library types will actually be built
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9895. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9897. $as_echo "$can_build_shared" >&6; }
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9899. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9900. test "$can_build_shared" = "no" && enable_shared=no
  9901. # On AIX, shared libraries and static libraries use the same namespace, and
  9902. # are all built from PIC.
  9903. case $host_os in
  9904. aix3*)
  9905. test "$enable_shared" = yes && enable_static=no
  9906. if test -n "$RANLIB"; then
  9907. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9908. postinstall_cmds='$RANLIB $lib'
  9909. fi
  9910. ;;
  9911. aix[4-9]*)
  9912. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9913. test "$enable_shared" = yes && enable_static=no
  9914. fi
  9915. ;;
  9916. esac
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9918. $as_echo "$enable_shared" >&6; }
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9920. $as_echo_n "checking whether to build static libraries... " >&6; }
  9921. # Make sure either enable_shared or enable_static is yes.
  9922. test "$enable_shared" = yes || enable_static=yes
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9924. $as_echo "$enable_static" >&6; }
  9925. fi
  9926. ac_ext=c
  9927. ac_cpp='$CPP $CPPFLAGS'
  9928. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9929. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9930. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9931. CC="$lt_save_CC"
  9932. ac_config_commands="$ac_config_commands libtool"
  9933. # Only expand once:
  9934. if test -n "$ac_tool_prefix"; then
  9935. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9936. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9938. $as_echo_n "checking for $ac_word... " >&6; }
  9939. if ${ac_cv_prog_RC+:} false; then :
  9940. $as_echo_n "(cached) " >&6
  9941. else
  9942. if test -n "$RC"; then
  9943. ac_cv_prog_RC="$RC" # Let the user override the test.
  9944. else
  9945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9946. for as_dir in $PATH
  9947. do
  9948. IFS=$as_save_IFS
  9949. test -z "$as_dir" && as_dir=.
  9950. for ac_exec_ext in '' $ac_executable_extensions; do
  9951. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9952. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9954. break 2
  9955. fi
  9956. done
  9957. done
  9958. IFS=$as_save_IFS
  9959. fi
  9960. fi
  9961. RC=$ac_cv_prog_RC
  9962. if test -n "$RC"; then
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9964. $as_echo "$RC" >&6; }
  9965. else
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9967. $as_echo "no" >&6; }
  9968. fi
  9969. fi
  9970. if test -z "$ac_cv_prog_RC"; then
  9971. ac_ct_RC=$RC
  9972. # Extract the first word of "windres", so it can be a program name with args.
  9973. set dummy windres; ac_word=$2
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9975. $as_echo_n "checking for $ac_word... " >&6; }
  9976. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9977. $as_echo_n "(cached) " >&6
  9978. else
  9979. if test -n "$ac_ct_RC"; then
  9980. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9981. else
  9982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9983. for as_dir in $PATH
  9984. do
  9985. IFS=$as_save_IFS
  9986. test -z "$as_dir" && as_dir=.
  9987. for ac_exec_ext in '' $ac_executable_extensions; do
  9988. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9989. ac_cv_prog_ac_ct_RC="windres"
  9990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9991. break 2
  9992. fi
  9993. done
  9994. done
  9995. IFS=$as_save_IFS
  9996. fi
  9997. fi
  9998. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9999. if test -n "$ac_ct_RC"; then
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10001. $as_echo "$ac_ct_RC" >&6; }
  10002. else
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10004. $as_echo "no" >&6; }
  10005. fi
  10006. if test "x$ac_ct_RC" = x; then
  10007. RC=""
  10008. else
  10009. case $cross_compiling:$ac_tool_warned in
  10010. yes:)
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10012. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10013. ac_tool_warned=yes ;;
  10014. esac
  10015. RC=$ac_ct_RC
  10016. fi
  10017. else
  10018. RC="$ac_cv_prog_RC"
  10019. fi
  10020. # Source file extension for RC test sources.
  10021. ac_ext=rc
  10022. # Object file extension for compiled RC test sources.
  10023. objext=o
  10024. objext_RC=$objext
  10025. # Code to be used in simple compile tests
  10026. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10027. # Code to be used in simple link tests
  10028. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10029. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10030. # If no C compiler was specified, use CC.
  10031. LTCC=${LTCC-"$CC"}
  10032. # If no C compiler flags were specified, use CFLAGS.
  10033. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10034. # Allow CC to be a program name with arguments.
  10035. compiler=$CC
  10036. # save warnings/boilerplate of simple test code
  10037. ac_outfile=conftest.$ac_objext
  10038. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10039. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10040. _lt_compiler_boilerplate=`cat conftest.err`
  10041. $RM conftest*
  10042. ac_outfile=conftest.$ac_objext
  10043. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10044. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10045. _lt_linker_boilerplate=`cat conftest.err`
  10046. $RM -r conftest*
  10047. # Allow CC to be a program name with arguments.
  10048. lt_save_CC="$CC"
  10049. lt_save_CFLAGS=$CFLAGS
  10050. lt_save_GCC=$GCC
  10051. GCC=
  10052. CC=${RC-"windres"}
  10053. CFLAGS=
  10054. compiler=$CC
  10055. compiler_RC=$CC
  10056. for cc_temp in $compiler""; do
  10057. case $cc_temp in
  10058. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10059. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10060. \-*) ;;
  10061. *) break;;
  10062. esac
  10063. done
  10064. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10065. lt_cv_prog_compiler_c_o_RC=yes
  10066. if test -n "$compiler"; then
  10067. :
  10068. fi
  10069. GCC=$lt_save_GCC
  10070. ac_ext=c
  10071. ac_cpp='$CPP $CPPFLAGS'
  10072. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10073. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10074. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10075. CC=$lt_save_CC
  10076. CFLAGS=$lt_save_CFLAGS
  10077. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10078. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10079. LT_REVISION=$SDL_INTERFACE_AGE
  10080. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10081. ac_ext=c
  10082. ac_cpp='$CPP $CPPFLAGS'
  10083. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10084. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10085. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10086. if test -n "$ac_tool_prefix"; then
  10087. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10088. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10090. $as_echo_n "checking for $ac_word... " >&6; }
  10091. if ${ac_cv_prog_CC+:} false; then :
  10092. $as_echo_n "(cached) " >&6
  10093. else
  10094. if test -n "$CC"; then
  10095. ac_cv_prog_CC="$CC" # Let the user override the test.
  10096. else
  10097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10098. for as_dir in $PATH
  10099. do
  10100. IFS=$as_save_IFS
  10101. test -z "$as_dir" && as_dir=.
  10102. for ac_exec_ext in '' $ac_executable_extensions; do
  10103. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10104. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10106. break 2
  10107. fi
  10108. done
  10109. done
  10110. IFS=$as_save_IFS
  10111. fi
  10112. fi
  10113. CC=$ac_cv_prog_CC
  10114. if test -n "$CC"; then
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10116. $as_echo "$CC" >&6; }
  10117. else
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10119. $as_echo "no" >&6; }
  10120. fi
  10121. fi
  10122. if test -z "$ac_cv_prog_CC"; then
  10123. ac_ct_CC=$CC
  10124. # Extract the first word of "gcc", so it can be a program name with args.
  10125. set dummy gcc; ac_word=$2
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10127. $as_echo_n "checking for $ac_word... " >&6; }
  10128. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10129. $as_echo_n "(cached) " >&6
  10130. else
  10131. if test -n "$ac_ct_CC"; then
  10132. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10133. else
  10134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10135. for as_dir in $PATH
  10136. do
  10137. IFS=$as_save_IFS
  10138. test -z "$as_dir" && as_dir=.
  10139. for ac_exec_ext in '' $ac_executable_extensions; do
  10140. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10141. ac_cv_prog_ac_ct_CC="gcc"
  10142. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10143. break 2
  10144. fi
  10145. done
  10146. done
  10147. IFS=$as_save_IFS
  10148. fi
  10149. fi
  10150. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10151. if test -n "$ac_ct_CC"; then
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10153. $as_echo "$ac_ct_CC" >&6; }
  10154. else
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10156. $as_echo "no" >&6; }
  10157. fi
  10158. if test "x$ac_ct_CC" = x; then
  10159. CC=""
  10160. else
  10161. case $cross_compiling:$ac_tool_warned in
  10162. yes:)
  10163. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10164. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10165. ac_tool_warned=yes ;;
  10166. esac
  10167. CC=$ac_ct_CC
  10168. fi
  10169. else
  10170. CC="$ac_cv_prog_CC"
  10171. fi
  10172. if test -z "$CC"; then
  10173. if test -n "$ac_tool_prefix"; then
  10174. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10175. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10177. $as_echo_n "checking for $ac_word... " >&6; }
  10178. if ${ac_cv_prog_CC+:} false; then :
  10179. $as_echo_n "(cached) " >&6
  10180. else
  10181. if test -n "$CC"; then
  10182. ac_cv_prog_CC="$CC" # Let the user override the test.
  10183. else
  10184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10185. for as_dir in $PATH
  10186. do
  10187. IFS=$as_save_IFS
  10188. test -z "$as_dir" && as_dir=.
  10189. for ac_exec_ext in '' $ac_executable_extensions; do
  10190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10191. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10193. break 2
  10194. fi
  10195. done
  10196. done
  10197. IFS=$as_save_IFS
  10198. fi
  10199. fi
  10200. CC=$ac_cv_prog_CC
  10201. if test -n "$CC"; then
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10203. $as_echo "$CC" >&6; }
  10204. else
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10206. $as_echo "no" >&6; }
  10207. fi
  10208. fi
  10209. fi
  10210. if test -z "$CC"; then
  10211. # Extract the first word of "cc", so it can be a program name with args.
  10212. set dummy cc; ac_word=$2
  10213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10214. $as_echo_n "checking for $ac_word... " >&6; }
  10215. if ${ac_cv_prog_CC+:} false; then :
  10216. $as_echo_n "(cached) " >&6
  10217. else
  10218. if test -n "$CC"; then
  10219. ac_cv_prog_CC="$CC" # Let the user override the test.
  10220. else
  10221. ac_prog_rejected=no
  10222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10223. for as_dir in $PATH
  10224. do
  10225. IFS=$as_save_IFS
  10226. test -z "$as_dir" && as_dir=.
  10227. for ac_exec_ext in '' $ac_executable_extensions; do
  10228. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10229. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10230. ac_prog_rejected=yes
  10231. continue
  10232. fi
  10233. ac_cv_prog_CC="cc"
  10234. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10235. break 2
  10236. fi
  10237. done
  10238. done
  10239. IFS=$as_save_IFS
  10240. if test $ac_prog_rejected = yes; then
  10241. # We found a bogon in the path, so make sure we never use it.
  10242. set dummy $ac_cv_prog_CC
  10243. shift
  10244. if test $# != 0; then
  10245. # We chose a different compiler from the bogus one.
  10246. # However, it has the same basename, so the bogon will be chosen
  10247. # first if we set CC to just the basename; use the full file name.
  10248. shift
  10249. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10250. fi
  10251. fi
  10252. fi
  10253. fi
  10254. CC=$ac_cv_prog_CC
  10255. if test -n "$CC"; then
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10257. $as_echo "$CC" >&6; }
  10258. else
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10260. $as_echo "no" >&6; }
  10261. fi
  10262. fi
  10263. if test -z "$CC"; then
  10264. if test -n "$ac_tool_prefix"; then
  10265. for ac_prog in cl.exe
  10266. do
  10267. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10268. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10270. $as_echo_n "checking for $ac_word... " >&6; }
  10271. if ${ac_cv_prog_CC+:} false; then :
  10272. $as_echo_n "(cached) " >&6
  10273. else
  10274. if test -n "$CC"; then
  10275. ac_cv_prog_CC="$CC" # Let the user override the test.
  10276. else
  10277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10278. for as_dir in $PATH
  10279. do
  10280. IFS=$as_save_IFS
  10281. test -z "$as_dir" && as_dir=.
  10282. for ac_exec_ext in '' $ac_executable_extensions; do
  10283. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10284. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10286. break 2
  10287. fi
  10288. done
  10289. done
  10290. IFS=$as_save_IFS
  10291. fi
  10292. fi
  10293. CC=$ac_cv_prog_CC
  10294. if test -n "$CC"; then
  10295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10296. $as_echo "$CC" >&6; }
  10297. else
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10299. $as_echo "no" >&6; }
  10300. fi
  10301. test -n "$CC" && break
  10302. done
  10303. fi
  10304. if test -z "$CC"; then
  10305. ac_ct_CC=$CC
  10306. for ac_prog in cl.exe
  10307. do
  10308. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10309. set dummy $ac_prog; ac_word=$2
  10310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10311. $as_echo_n "checking for $ac_word... " >&6; }
  10312. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10313. $as_echo_n "(cached) " >&6
  10314. else
  10315. if test -n "$ac_ct_CC"; then
  10316. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10317. else
  10318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10319. for as_dir in $PATH
  10320. do
  10321. IFS=$as_save_IFS
  10322. test -z "$as_dir" && as_dir=.
  10323. for ac_exec_ext in '' $ac_executable_extensions; do
  10324. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10325. ac_cv_prog_ac_ct_CC="$ac_prog"
  10326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10327. break 2
  10328. fi
  10329. done
  10330. done
  10331. IFS=$as_save_IFS
  10332. fi
  10333. fi
  10334. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10335. if test -n "$ac_ct_CC"; then
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10337. $as_echo "$ac_ct_CC" >&6; }
  10338. else
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10340. $as_echo "no" >&6; }
  10341. fi
  10342. test -n "$ac_ct_CC" && break
  10343. done
  10344. if test "x$ac_ct_CC" = x; then
  10345. CC=""
  10346. else
  10347. case $cross_compiling:$ac_tool_warned in
  10348. yes:)
  10349. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10350. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10351. ac_tool_warned=yes ;;
  10352. esac
  10353. CC=$ac_ct_CC
  10354. fi
  10355. fi
  10356. fi
  10357. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10358. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10359. as_fn_error $? "no acceptable C compiler found in \$PATH
  10360. See \`config.log' for more details" "$LINENO" 5; }
  10361. # Provide some information about the compiler.
  10362. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10363. set X $ac_compile
  10364. ac_compiler=$2
  10365. for ac_option in --version -v -V -qversion; do
  10366. { { ac_try="$ac_compiler $ac_option >&5"
  10367. case "(($ac_try" in
  10368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10369. *) ac_try_echo=$ac_try;;
  10370. esac
  10371. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10372. $as_echo "$ac_try_echo"; } >&5
  10373. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10374. ac_status=$?
  10375. if test -s conftest.err; then
  10376. sed '10a\
  10377. ... rest of stderr output deleted ...
  10378. 10q' conftest.err >conftest.er1
  10379. cat conftest.er1 >&5
  10380. fi
  10381. rm -f conftest.er1 conftest.err
  10382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10383. test $ac_status = 0; }
  10384. done
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10386. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10387. if ${ac_cv_c_compiler_gnu+:} false; then :
  10388. $as_echo_n "(cached) " >&6
  10389. else
  10390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10391. /* end confdefs.h. */
  10392. int
  10393. main ()
  10394. {
  10395. #ifndef __GNUC__
  10396. choke me
  10397. #endif
  10398. ;
  10399. return 0;
  10400. }
  10401. _ACEOF
  10402. if ac_fn_c_try_compile "$LINENO"; then :
  10403. ac_compiler_gnu=yes
  10404. else
  10405. ac_compiler_gnu=no
  10406. fi
  10407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10408. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10409. fi
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10411. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10412. if test $ac_compiler_gnu = yes; then
  10413. GCC=yes
  10414. else
  10415. GCC=
  10416. fi
  10417. ac_test_CFLAGS=${CFLAGS+set}
  10418. ac_save_CFLAGS=$CFLAGS
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10420. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10421. if ${ac_cv_prog_cc_g+:} false; then :
  10422. $as_echo_n "(cached) " >&6
  10423. else
  10424. ac_save_c_werror_flag=$ac_c_werror_flag
  10425. ac_c_werror_flag=yes
  10426. ac_cv_prog_cc_g=no
  10427. CFLAGS="-g"
  10428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10429. /* end confdefs.h. */
  10430. int
  10431. main ()
  10432. {
  10433. ;
  10434. return 0;
  10435. }
  10436. _ACEOF
  10437. if ac_fn_c_try_compile "$LINENO"; then :
  10438. ac_cv_prog_cc_g=yes
  10439. else
  10440. CFLAGS=""
  10441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10442. /* end confdefs.h. */
  10443. int
  10444. main ()
  10445. {
  10446. ;
  10447. return 0;
  10448. }
  10449. _ACEOF
  10450. if ac_fn_c_try_compile "$LINENO"; then :
  10451. else
  10452. ac_c_werror_flag=$ac_save_c_werror_flag
  10453. CFLAGS="-g"
  10454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10455. /* end confdefs.h. */
  10456. int
  10457. main ()
  10458. {
  10459. ;
  10460. return 0;
  10461. }
  10462. _ACEOF
  10463. if ac_fn_c_try_compile "$LINENO"; then :
  10464. ac_cv_prog_cc_g=yes
  10465. fi
  10466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10467. fi
  10468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10469. fi
  10470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10471. ac_c_werror_flag=$ac_save_c_werror_flag
  10472. fi
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10474. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10475. if test "$ac_test_CFLAGS" = set; then
  10476. CFLAGS=$ac_save_CFLAGS
  10477. elif test $ac_cv_prog_cc_g = yes; then
  10478. if test "$GCC" = yes; then
  10479. CFLAGS="-g -O2"
  10480. else
  10481. CFLAGS="-g"
  10482. fi
  10483. else
  10484. if test "$GCC" = yes; then
  10485. CFLAGS="-O2"
  10486. else
  10487. CFLAGS=
  10488. fi
  10489. fi
  10490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10491. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10492. if ${ac_cv_prog_cc_c89+:} false; then :
  10493. $as_echo_n "(cached) " >&6
  10494. else
  10495. ac_cv_prog_cc_c89=no
  10496. ac_save_CC=$CC
  10497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10498. /* end confdefs.h. */
  10499. #include <stdarg.h>
  10500. #include <stdio.h>
  10501. struct stat;
  10502. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10503. struct buf { int x; };
  10504. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10505. static char *e (p, i)
  10506. char **p;
  10507. int i;
  10508. {
  10509. return p[i];
  10510. }
  10511. static char *f (char * (*g) (char **, int), char **p, ...)
  10512. {
  10513. char *s;
  10514. va_list v;
  10515. va_start (v,p);
  10516. s = g (p, va_arg (v,int));
  10517. va_end (v);
  10518. return s;
  10519. }
  10520. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10521. function prototypes and stuff, but not '\xHH' hex character constants.
  10522. These don't provoke an error unfortunately, instead are silently treated
  10523. as 'x'. The following induces an error, until -std is added to get
  10524. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10525. array size at least. It's necessary to write '\x00'==0 to get something
  10526. that's true only with -std. */
  10527. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10528. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10529. inside strings and character constants. */
  10530. #define FOO(x) 'x'
  10531. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10532. int test (int i, double x);
  10533. struct s1 {int (*f) (int a);};
  10534. struct s2 {int (*f) (double a);};
  10535. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10536. int argc;
  10537. char **argv;
  10538. int
  10539. main ()
  10540. {
  10541. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10542. ;
  10543. return 0;
  10544. }
  10545. _ACEOF
  10546. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10547. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10548. do
  10549. CC="$ac_save_CC $ac_arg"
  10550. if ac_fn_c_try_compile "$LINENO"; then :
  10551. ac_cv_prog_cc_c89=$ac_arg
  10552. fi
  10553. rm -f core conftest.err conftest.$ac_objext
  10554. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10555. done
  10556. rm -f conftest.$ac_ext
  10557. CC=$ac_save_CC
  10558. fi
  10559. # AC_CACHE_VAL
  10560. case "x$ac_cv_prog_cc_c89" in
  10561. x)
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10563. $as_echo "none needed" >&6; } ;;
  10564. xno)
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10566. $as_echo "unsupported" >&6; } ;;
  10567. *)
  10568. CC="$CC $ac_cv_prog_cc_c89"
  10569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10570. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10571. esac
  10572. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10573. fi
  10574. ac_ext=c
  10575. ac_cpp='$CPP $CPPFLAGS'
  10576. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10577. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10578. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10579. ac_ext=cpp
  10580. ac_cpp='$CXXCPP $CPPFLAGS'
  10581. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10582. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10583. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10584. if test -z "$CXX"; then
  10585. if test -n "$CCC"; then
  10586. CXX=$CCC
  10587. else
  10588. if test -n "$ac_tool_prefix"; then
  10589. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10590. do
  10591. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10592. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10594. $as_echo_n "checking for $ac_word... " >&6; }
  10595. if ${ac_cv_prog_CXX+:} false; then :
  10596. $as_echo_n "(cached) " >&6
  10597. else
  10598. if test -n "$CXX"; then
  10599. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10600. else
  10601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10602. for as_dir in $PATH
  10603. do
  10604. IFS=$as_save_IFS
  10605. test -z "$as_dir" && as_dir=.
  10606. for ac_exec_ext in '' $ac_executable_extensions; do
  10607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10608. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10610. break 2
  10611. fi
  10612. done
  10613. done
  10614. IFS=$as_save_IFS
  10615. fi
  10616. fi
  10617. CXX=$ac_cv_prog_CXX
  10618. if test -n "$CXX"; then
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10620. $as_echo "$CXX" >&6; }
  10621. else
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10623. $as_echo "no" >&6; }
  10624. fi
  10625. test -n "$CXX" && break
  10626. done
  10627. fi
  10628. if test -z "$CXX"; then
  10629. ac_ct_CXX=$CXX
  10630. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10631. do
  10632. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10633. set dummy $ac_prog; ac_word=$2
  10634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10635. $as_echo_n "checking for $ac_word... " >&6; }
  10636. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10637. $as_echo_n "(cached) " >&6
  10638. else
  10639. if test -n "$ac_ct_CXX"; then
  10640. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10641. else
  10642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10643. for as_dir in $PATH
  10644. do
  10645. IFS=$as_save_IFS
  10646. test -z "$as_dir" && as_dir=.
  10647. for ac_exec_ext in '' $ac_executable_extensions; do
  10648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10649. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10651. break 2
  10652. fi
  10653. done
  10654. done
  10655. IFS=$as_save_IFS
  10656. fi
  10657. fi
  10658. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10659. if test -n "$ac_ct_CXX"; then
  10660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10661. $as_echo "$ac_ct_CXX" >&6; }
  10662. else
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10664. $as_echo "no" >&6; }
  10665. fi
  10666. test -n "$ac_ct_CXX" && break
  10667. done
  10668. if test "x$ac_ct_CXX" = x; then
  10669. CXX="g++"
  10670. else
  10671. case $cross_compiling:$ac_tool_warned in
  10672. yes:)
  10673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10675. ac_tool_warned=yes ;;
  10676. esac
  10677. CXX=$ac_ct_CXX
  10678. fi
  10679. fi
  10680. fi
  10681. fi
  10682. # Provide some information about the compiler.
  10683. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10684. set X $ac_compile
  10685. ac_compiler=$2
  10686. for ac_option in --version -v -V -qversion; do
  10687. { { ac_try="$ac_compiler $ac_option >&5"
  10688. case "(($ac_try" in
  10689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10690. *) ac_try_echo=$ac_try;;
  10691. esac
  10692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10693. $as_echo "$ac_try_echo"; } >&5
  10694. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10695. ac_status=$?
  10696. if test -s conftest.err; then
  10697. sed '10a\
  10698. ... rest of stderr output deleted ...
  10699. 10q' conftest.err >conftest.er1
  10700. cat conftest.er1 >&5
  10701. fi
  10702. rm -f conftest.er1 conftest.err
  10703. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10704. test $ac_status = 0; }
  10705. done
  10706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10707. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10708. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10709. $as_echo_n "(cached) " >&6
  10710. else
  10711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10712. /* end confdefs.h. */
  10713. int
  10714. main ()
  10715. {
  10716. #ifndef __GNUC__
  10717. choke me
  10718. #endif
  10719. ;
  10720. return 0;
  10721. }
  10722. _ACEOF
  10723. if ac_fn_cxx_try_compile "$LINENO"; then :
  10724. ac_compiler_gnu=yes
  10725. else
  10726. ac_compiler_gnu=no
  10727. fi
  10728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10729. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10730. fi
  10731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10732. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10733. if test $ac_compiler_gnu = yes; then
  10734. GXX=yes
  10735. else
  10736. GXX=
  10737. fi
  10738. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10739. ac_save_CXXFLAGS=$CXXFLAGS
  10740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10741. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10742. if ${ac_cv_prog_cxx_g+:} false; then :
  10743. $as_echo_n "(cached) " >&6
  10744. else
  10745. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10746. ac_cxx_werror_flag=yes
  10747. ac_cv_prog_cxx_g=no
  10748. CXXFLAGS="-g"
  10749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10750. /* end confdefs.h. */
  10751. int
  10752. main ()
  10753. {
  10754. ;
  10755. return 0;
  10756. }
  10757. _ACEOF
  10758. if ac_fn_cxx_try_compile "$LINENO"; then :
  10759. ac_cv_prog_cxx_g=yes
  10760. else
  10761. CXXFLAGS=""
  10762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10763. /* end confdefs.h. */
  10764. int
  10765. main ()
  10766. {
  10767. ;
  10768. return 0;
  10769. }
  10770. _ACEOF
  10771. if ac_fn_cxx_try_compile "$LINENO"; then :
  10772. else
  10773. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10774. CXXFLAGS="-g"
  10775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10776. /* end confdefs.h. */
  10777. int
  10778. main ()
  10779. {
  10780. ;
  10781. return 0;
  10782. }
  10783. _ACEOF
  10784. if ac_fn_cxx_try_compile "$LINENO"; then :
  10785. ac_cv_prog_cxx_g=yes
  10786. fi
  10787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10788. fi
  10789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10790. fi
  10791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10792. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10793. fi
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10795. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10796. if test "$ac_test_CXXFLAGS" = set; then
  10797. CXXFLAGS=$ac_save_CXXFLAGS
  10798. elif test $ac_cv_prog_cxx_g = yes; then
  10799. if test "$GXX" = yes; then
  10800. CXXFLAGS="-g -O2"
  10801. else
  10802. CXXFLAGS="-g"
  10803. fi
  10804. else
  10805. if test "$GXX" = yes; then
  10806. CXXFLAGS="-O2"
  10807. else
  10808. CXXFLAGS=
  10809. fi
  10810. fi
  10811. ac_ext=c
  10812. ac_cpp='$CPP $CPPFLAGS'
  10813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10816. func_stripname_cnf ()
  10817. {
  10818. case ${2} in
  10819. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10820. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10821. esac
  10822. } # func_stripname_cnf
  10823. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10824. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10825. (test "X$CXX" != "Xg++"))) ; then
  10826. ac_ext=cpp
  10827. ac_cpp='$CXXCPP $CPPFLAGS'
  10828. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10829. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10830. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10832. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10833. if test -z "$CXXCPP"; then
  10834. if ${ac_cv_prog_CXXCPP+:} false; then :
  10835. $as_echo_n "(cached) " >&6
  10836. else
  10837. # Double quotes because CXXCPP needs to be expanded
  10838. for CXXCPP in "$CXX -E" "/lib/cpp"
  10839. do
  10840. ac_preproc_ok=false
  10841. for ac_cxx_preproc_warn_flag in '' yes
  10842. do
  10843. # Use a header file that comes with gcc, so configuring glibc
  10844. # with a fresh cross-compiler works.
  10845. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10846. # <limits.h> exists even on freestanding compilers.
  10847. # On the NeXT, cc -E runs the code through the compiler's parser,
  10848. # not just through cpp. "Syntax error" is here to catch this case.
  10849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10850. /* end confdefs.h. */
  10851. #ifdef __STDC__
  10852. # include <limits.h>
  10853. #else
  10854. # include <assert.h>
  10855. #endif
  10856. Syntax error
  10857. _ACEOF
  10858. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10859. else
  10860. # Broken: fails on valid input.
  10861. continue
  10862. fi
  10863. rm -f conftest.err conftest.i conftest.$ac_ext
  10864. # OK, works on sane cases. Now check whether nonexistent headers
  10865. # can be detected and how.
  10866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10867. /* end confdefs.h. */
  10868. #include <ac_nonexistent.h>
  10869. _ACEOF
  10870. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10871. # Broken: success on invalid input.
  10872. continue
  10873. else
  10874. # Passes both tests.
  10875. ac_preproc_ok=:
  10876. break
  10877. fi
  10878. rm -f conftest.err conftest.i conftest.$ac_ext
  10879. done
  10880. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10881. rm -f conftest.i conftest.err conftest.$ac_ext
  10882. if $ac_preproc_ok; then :
  10883. break
  10884. fi
  10885. done
  10886. ac_cv_prog_CXXCPP=$CXXCPP
  10887. fi
  10888. CXXCPP=$ac_cv_prog_CXXCPP
  10889. else
  10890. ac_cv_prog_CXXCPP=$CXXCPP
  10891. fi
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10893. $as_echo "$CXXCPP" >&6; }
  10894. ac_preproc_ok=false
  10895. for ac_cxx_preproc_warn_flag in '' yes
  10896. do
  10897. # Use a header file that comes with gcc, so configuring glibc
  10898. # with a fresh cross-compiler works.
  10899. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10900. # <limits.h> exists even on freestanding compilers.
  10901. # On the NeXT, cc -E runs the code through the compiler's parser,
  10902. # not just through cpp. "Syntax error" is here to catch this case.
  10903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10904. /* end confdefs.h. */
  10905. #ifdef __STDC__
  10906. # include <limits.h>
  10907. #else
  10908. # include <assert.h>
  10909. #endif
  10910. Syntax error
  10911. _ACEOF
  10912. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10913. else
  10914. # Broken: fails on valid input.
  10915. continue
  10916. fi
  10917. rm -f conftest.err conftest.i conftest.$ac_ext
  10918. # OK, works on sane cases. Now check whether nonexistent headers
  10919. # can be detected and how.
  10920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10921. /* end confdefs.h. */
  10922. #include <ac_nonexistent.h>
  10923. _ACEOF
  10924. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10925. # Broken: success on invalid input.
  10926. continue
  10927. else
  10928. # Passes both tests.
  10929. ac_preproc_ok=:
  10930. break
  10931. fi
  10932. rm -f conftest.err conftest.i conftest.$ac_ext
  10933. done
  10934. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10935. rm -f conftest.i conftest.err conftest.$ac_ext
  10936. if $ac_preproc_ok; then :
  10937. else
  10938. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10939. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10940. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10941. See \`config.log' for more details" "$LINENO" 5; }
  10942. fi
  10943. ac_ext=c
  10944. ac_cpp='$CPP $CPPFLAGS'
  10945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10948. else
  10949. _lt_caught_CXX_error=yes
  10950. fi
  10951. ac_ext=cpp
  10952. ac_cpp='$CXXCPP $CPPFLAGS'
  10953. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10954. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10955. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10956. archive_cmds_need_lc_CXX=no
  10957. allow_undefined_flag_CXX=
  10958. always_export_symbols_CXX=no
  10959. archive_expsym_cmds_CXX=
  10960. compiler_needs_object_CXX=no
  10961. export_dynamic_flag_spec_CXX=
  10962. hardcode_direct_CXX=no
  10963. hardcode_direct_absolute_CXX=no
  10964. hardcode_libdir_flag_spec_CXX=
  10965. hardcode_libdir_separator_CXX=
  10966. hardcode_minus_L_CXX=no
  10967. hardcode_shlibpath_var_CXX=unsupported
  10968. hardcode_automatic_CXX=no
  10969. inherit_rpath_CXX=no
  10970. module_cmds_CXX=
  10971. module_expsym_cmds_CXX=
  10972. link_all_deplibs_CXX=unknown
  10973. old_archive_cmds_CXX=$old_archive_cmds
  10974. reload_flag_CXX=$reload_flag
  10975. reload_cmds_CXX=$reload_cmds
  10976. no_undefined_flag_CXX=
  10977. whole_archive_flag_spec_CXX=
  10978. enable_shared_with_static_runtimes_CXX=no
  10979. # Source file extension for C++ test sources.
  10980. ac_ext=cpp
  10981. # Object file extension for compiled C++ test sources.
  10982. objext=o
  10983. objext_CXX=$objext
  10984. # No sense in running all these tests if we already determined that
  10985. # the CXX compiler isn't working. Some variables (like enable_shared)
  10986. # are currently assumed to apply to all compilers on this platform,
  10987. # and will be corrupted by setting them based on a non-working compiler.
  10988. if test "$_lt_caught_CXX_error" != yes; then
  10989. # Code to be used in simple compile tests
  10990. lt_simple_compile_test_code="int some_variable = 0;"
  10991. # Code to be used in simple link tests
  10992. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10993. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10994. # If no C compiler was specified, use CC.
  10995. LTCC=${LTCC-"$CC"}
  10996. # If no C compiler flags were specified, use CFLAGS.
  10997. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10998. # Allow CC to be a program name with arguments.
  10999. compiler=$CC
  11000. # save warnings/boilerplate of simple test code
  11001. ac_outfile=conftest.$ac_objext
  11002. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11003. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11004. _lt_compiler_boilerplate=`cat conftest.err`
  11005. $RM conftest*
  11006. ac_outfile=conftest.$ac_objext
  11007. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11008. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11009. _lt_linker_boilerplate=`cat conftest.err`
  11010. $RM -r conftest*
  11011. # Allow CC to be a program name with arguments.
  11012. lt_save_CC=$CC
  11013. lt_save_CFLAGS=$CFLAGS
  11014. lt_save_LD=$LD
  11015. lt_save_GCC=$GCC
  11016. GCC=$GXX
  11017. lt_save_with_gnu_ld=$with_gnu_ld
  11018. lt_save_path_LD=$lt_cv_path_LD
  11019. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11020. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11021. else
  11022. $as_unset lt_cv_prog_gnu_ld
  11023. fi
  11024. if test -n "${lt_cv_path_LDCXX+set}"; then
  11025. lt_cv_path_LD=$lt_cv_path_LDCXX
  11026. else
  11027. $as_unset lt_cv_path_LD
  11028. fi
  11029. test -z "${LDCXX+set}" || LD=$LDCXX
  11030. CC=${CXX-"c++"}
  11031. CFLAGS=$CXXFLAGS
  11032. compiler=$CC
  11033. compiler_CXX=$CC
  11034. for cc_temp in $compiler""; do
  11035. case $cc_temp in
  11036. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11037. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11038. \-*) ;;
  11039. *) break;;
  11040. esac
  11041. done
  11042. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11043. if test -n "$compiler"; then
  11044. # We don't want -fno-exception when compiling C++ code, so set the
  11045. # no_builtin_flag separately
  11046. if test "$GXX" = yes; then
  11047. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11048. else
  11049. lt_prog_compiler_no_builtin_flag_CXX=
  11050. fi
  11051. if test "$GXX" = yes; then
  11052. # Set up default GNU C++ configuration
  11053. # Check whether --with-gnu-ld was given.
  11054. if test "${with_gnu_ld+set}" = set; then :
  11055. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11056. else
  11057. with_gnu_ld=no
  11058. fi
  11059. ac_prog=ld
  11060. if test "$GCC" = yes; then
  11061. # Check if gcc -print-prog-name=ld gives a path.
  11062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11063. $as_echo_n "checking for ld used by $CC... " >&6; }
  11064. case $host in
  11065. *-*-mingw*)
  11066. # gcc leaves a trailing carriage return which upsets mingw
  11067. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11068. *)
  11069. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11070. esac
  11071. case $ac_prog in
  11072. # Accept absolute paths.
  11073. [\\/]* | ?:[\\/]*)
  11074. re_direlt='/[^/][^/]*/\.\./'
  11075. # Canonicalize the pathname of ld
  11076. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11077. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11078. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11079. done
  11080. test -z "$LD" && LD="$ac_prog"
  11081. ;;
  11082. "")
  11083. # If it fails, then pretend we aren't using GCC.
  11084. ac_prog=ld
  11085. ;;
  11086. *)
  11087. # If it is relative, then search for the first ld in PATH.
  11088. with_gnu_ld=unknown
  11089. ;;
  11090. esac
  11091. elif test "$with_gnu_ld" = yes; then
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11093. $as_echo_n "checking for GNU ld... " >&6; }
  11094. else
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11096. $as_echo_n "checking for non-GNU ld... " >&6; }
  11097. fi
  11098. if ${lt_cv_path_LD+:} false; then :
  11099. $as_echo_n "(cached) " >&6
  11100. else
  11101. if test -z "$LD"; then
  11102. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11103. for ac_dir in $PATH; do
  11104. IFS="$lt_save_ifs"
  11105. test -z "$ac_dir" && ac_dir=.
  11106. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11107. lt_cv_path_LD="$ac_dir/$ac_prog"
  11108. # Check to see if the program is GNU ld. I'd rather use --version,
  11109. # but apparently some variants of GNU ld only accept -v.
  11110. # Break only if it was the GNU/non-GNU ld that we prefer.
  11111. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11112. *GNU* | *'with BFD'*)
  11113. test "$with_gnu_ld" != no && break
  11114. ;;
  11115. *)
  11116. test "$with_gnu_ld" != yes && break
  11117. ;;
  11118. esac
  11119. fi
  11120. done
  11121. IFS="$lt_save_ifs"
  11122. else
  11123. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11124. fi
  11125. fi
  11126. LD="$lt_cv_path_LD"
  11127. if test -n "$LD"; then
  11128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11129. $as_echo "$LD" >&6; }
  11130. else
  11131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11132. $as_echo "no" >&6; }
  11133. fi
  11134. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11136. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11137. if ${lt_cv_prog_gnu_ld+:} false; then :
  11138. $as_echo_n "(cached) " >&6
  11139. else
  11140. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11141. case `$LD -v 2>&1 </dev/null` in
  11142. *GNU* | *'with BFD'*)
  11143. lt_cv_prog_gnu_ld=yes
  11144. ;;
  11145. *)
  11146. lt_cv_prog_gnu_ld=no
  11147. ;;
  11148. esac
  11149. fi
  11150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11151. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11152. with_gnu_ld=$lt_cv_prog_gnu_ld
  11153. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11154. # archiving commands below assume that GNU ld is being used.
  11155. if test "$with_gnu_ld" = yes; then
  11156. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11157. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11158. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11159. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11160. # If archive_cmds runs LD, not CC, wlarc should be empty
  11161. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11162. # investigate it a little bit more. (MM)
  11163. wlarc='${wl}'
  11164. # ancient GNU ld didn't support --whole-archive et. al.
  11165. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11166. $GREP 'no-whole-archive' > /dev/null; then
  11167. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11168. else
  11169. whole_archive_flag_spec_CXX=
  11170. fi
  11171. else
  11172. with_gnu_ld=no
  11173. wlarc=
  11174. # A generic and very simple default shared library creation
  11175. # command for GNU C++ for the case where it uses the native
  11176. # linker, instead of GNU ld. If possible, this setting should
  11177. # overridden to take advantage of the native linker features on
  11178. # the platform it is being used on.
  11179. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11180. fi
  11181. # Commands to make compiler produce verbose output that lists
  11182. # what "hidden" libraries, object files and flags are used when
  11183. # linking a shared library.
  11184. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11185. else
  11186. GXX=no
  11187. with_gnu_ld=no
  11188. wlarc=
  11189. fi
  11190. # PORTME: fill in a description of your system's C++ link characteristics
  11191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11192. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11193. ld_shlibs_CXX=yes
  11194. case $host_os in
  11195. aix3*)
  11196. # FIXME: insert proper C++ library support
  11197. ld_shlibs_CXX=no
  11198. ;;
  11199. aix[4-9]*)
  11200. if test "$host_cpu" = ia64; then
  11201. # On IA64, the linker does run time linking by default, so we don't
  11202. # have to do anything special.
  11203. aix_use_runtimelinking=no
  11204. exp_sym_flag='-Bexport'
  11205. no_entry_flag=""
  11206. else
  11207. aix_use_runtimelinking=no
  11208. # Test if we are trying to use run time linking or normal
  11209. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11210. # need to do runtime linking.
  11211. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11212. for ld_flag in $LDFLAGS; do
  11213. case $ld_flag in
  11214. *-brtl*)
  11215. aix_use_runtimelinking=yes
  11216. break
  11217. ;;
  11218. esac
  11219. done
  11220. ;;
  11221. esac
  11222. exp_sym_flag='-bexport'
  11223. no_entry_flag='-bnoentry'
  11224. fi
  11225. # When large executables or shared objects are built, AIX ld can
  11226. # have problems creating the table of contents. If linking a library
  11227. # or program results in "error TOC overflow" add -mminimal-toc to
  11228. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11229. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11230. archive_cmds_CXX=''
  11231. hardcode_direct_CXX=yes
  11232. hardcode_direct_absolute_CXX=yes
  11233. hardcode_libdir_separator_CXX=':'
  11234. link_all_deplibs_CXX=yes
  11235. file_list_spec_CXX='${wl}-f,'
  11236. if test "$GXX" = yes; then
  11237. case $host_os in aix4.[012]|aix4.[012].*)
  11238. # We only want to do this on AIX 4.2 and lower, the check
  11239. # below for broken collect2 doesn't work under 4.3+
  11240. collect2name=`${CC} -print-prog-name=collect2`
  11241. if test -f "$collect2name" &&
  11242. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11243. then
  11244. # We have reworked collect2
  11245. :
  11246. else
  11247. # We have old collect2
  11248. hardcode_direct_CXX=unsupported
  11249. # It fails to find uninstalled libraries when the uninstalled
  11250. # path is not listed in the libpath. Setting hardcode_minus_L
  11251. # to unsupported forces relinking
  11252. hardcode_minus_L_CXX=yes
  11253. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11254. hardcode_libdir_separator_CXX=
  11255. fi
  11256. esac
  11257. shared_flag='-shared'
  11258. if test "$aix_use_runtimelinking" = yes; then
  11259. shared_flag="$shared_flag "'${wl}-G'
  11260. fi
  11261. else
  11262. # not using gcc
  11263. if test "$host_cpu" = ia64; then
  11264. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11265. # chokes on -Wl,-G. The following line is correct:
  11266. shared_flag='-G'
  11267. else
  11268. if test "$aix_use_runtimelinking" = yes; then
  11269. shared_flag='${wl}-G'
  11270. else
  11271. shared_flag='${wl}-bM:SRE'
  11272. fi
  11273. fi
  11274. fi
  11275. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11276. # It seems that -bexpall does not export symbols beginning with
  11277. # underscore (_), so it is better to generate a list of symbols to
  11278. # export.
  11279. always_export_symbols_CXX=yes
  11280. if test "$aix_use_runtimelinking" = yes; then
  11281. # Warning - without using the other runtime loading flags (-brtl),
  11282. # -berok will link without error, but may produce a broken library.
  11283. allow_undefined_flag_CXX='-berok'
  11284. # Determine the default libpath from the value encoded in an empty
  11285. # executable.
  11286. if test "${lt_cv_aix_libpath+set}" = set; then
  11287. aix_libpath=$lt_cv_aix_libpath
  11288. else
  11289. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11290. $as_echo_n "(cached) " >&6
  11291. else
  11292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11293. /* end confdefs.h. */
  11294. int
  11295. main ()
  11296. {
  11297. ;
  11298. return 0;
  11299. }
  11300. _ACEOF
  11301. if ac_fn_cxx_try_link "$LINENO"; then :
  11302. lt_aix_libpath_sed='
  11303. /Import File Strings/,/^$/ {
  11304. /^0/ {
  11305. s/^0 *\([^ ]*\) *$/\1/
  11306. p
  11307. }
  11308. }'
  11309. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11310. # Check for a 64-bit object if we didn't find anything.
  11311. if test -z "$lt_cv_aix_libpath__CXX"; then
  11312. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11313. fi
  11314. fi
  11315. rm -f core conftest.err conftest.$ac_objext \
  11316. conftest$ac_exeext conftest.$ac_ext
  11317. if test -z "$lt_cv_aix_libpath__CXX"; then
  11318. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11319. fi
  11320. fi
  11321. aix_libpath=$lt_cv_aix_libpath__CXX
  11322. fi
  11323. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11324. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11325. else
  11326. if test "$host_cpu" = ia64; then
  11327. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11328. allow_undefined_flag_CXX="-z nodefs"
  11329. archive_expsym_cmds_CXX="\$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"
  11330. else
  11331. # Determine the default libpath from the value encoded in an
  11332. # empty executable.
  11333. if test "${lt_cv_aix_libpath+set}" = set; then
  11334. aix_libpath=$lt_cv_aix_libpath
  11335. else
  11336. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11337. $as_echo_n "(cached) " >&6
  11338. else
  11339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11340. /* end confdefs.h. */
  11341. int
  11342. main ()
  11343. {
  11344. ;
  11345. return 0;
  11346. }
  11347. _ACEOF
  11348. if ac_fn_cxx_try_link "$LINENO"; then :
  11349. lt_aix_libpath_sed='
  11350. /Import File Strings/,/^$/ {
  11351. /^0/ {
  11352. s/^0 *\([^ ]*\) *$/\1/
  11353. p
  11354. }
  11355. }'
  11356. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11357. # Check for a 64-bit object if we didn't find anything.
  11358. if test -z "$lt_cv_aix_libpath__CXX"; then
  11359. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11360. fi
  11361. fi
  11362. rm -f core conftest.err conftest.$ac_objext \
  11363. conftest$ac_exeext conftest.$ac_ext
  11364. if test -z "$lt_cv_aix_libpath__CXX"; then
  11365. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11366. fi
  11367. fi
  11368. aix_libpath=$lt_cv_aix_libpath__CXX
  11369. fi
  11370. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11371. # Warning - without using the other run time loading flags,
  11372. # -berok will link without error, but may produce a broken library.
  11373. no_undefined_flag_CXX=' ${wl}-bernotok'
  11374. allow_undefined_flag_CXX=' ${wl}-berok'
  11375. if test "$with_gnu_ld" = yes; then
  11376. # We only use this code for GNU lds that support --whole-archive.
  11377. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11378. else
  11379. # Exported symbols can be pulled into shared objects from archives
  11380. whole_archive_flag_spec_CXX='$convenience'
  11381. fi
  11382. archive_cmds_need_lc_CXX=yes
  11383. # This is similar to how AIX traditionally builds its shared
  11384. # libraries.
  11385. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11386. fi
  11387. fi
  11388. ;;
  11389. beos*)
  11390. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11391. allow_undefined_flag_CXX=unsupported
  11392. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11393. # support --undefined. This deserves some investigation. FIXME
  11394. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11395. else
  11396. ld_shlibs_CXX=no
  11397. fi
  11398. ;;
  11399. chorus*)
  11400. case $cc_basename in
  11401. *)
  11402. # FIXME: insert proper C++ library support
  11403. ld_shlibs_CXX=no
  11404. ;;
  11405. esac
  11406. ;;
  11407. cygwin* | mingw* | pw32* | cegcc*)
  11408. case $GXX,$cc_basename in
  11409. ,cl* | no,cl*)
  11410. # Native MSVC
  11411. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11412. # no search path for DLLs.
  11413. hardcode_libdir_flag_spec_CXX=' '
  11414. allow_undefined_flag_CXX=unsupported
  11415. always_export_symbols_CXX=yes
  11416. file_list_spec_CXX='@'
  11417. # Tell ltmain to make .lib files, not .a files.
  11418. libext=lib
  11419. # Tell ltmain to make .dll files, not .so files.
  11420. shrext_cmds=".dll"
  11421. # FIXME: Setting linknames here is a bad hack.
  11422. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11423. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11424. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11425. else
  11426. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11427. fi~
  11428. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11429. linknames='
  11430. # The linker will not automatically build a static lib if we build a DLL.
  11431. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11432. enable_shared_with_static_runtimes_CXX=yes
  11433. # Don't use ranlib
  11434. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11435. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11436. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11437. case $lt_outputfile in
  11438. *.exe|*.EXE) ;;
  11439. *)
  11440. lt_outputfile="$lt_outputfile.exe"
  11441. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11442. ;;
  11443. esac~
  11444. func_to_tool_file "$lt_outputfile"~
  11445. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11446. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11447. $RM "$lt_outputfile.manifest";
  11448. fi'
  11449. ;;
  11450. *)
  11451. # g++
  11452. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11453. # as there is no search path for DLLs.
  11454. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11455. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11456. allow_undefined_flag_CXX=unsupported
  11457. always_export_symbols_CXX=no
  11458. enable_shared_with_static_runtimes_CXX=yes
  11459. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11460. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11461. # If the export-symbols file already is a .def file (1st line
  11462. # is EXPORTS), use it as is; otherwise, prepend...
  11463. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11464. cp $export_symbols $output_objdir/$soname.def;
  11465. else
  11466. echo EXPORTS > $output_objdir/$soname.def;
  11467. cat $export_symbols >> $output_objdir/$soname.def;
  11468. fi~
  11469. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11470. else
  11471. ld_shlibs_CXX=no
  11472. fi
  11473. ;;
  11474. esac
  11475. ;;
  11476. darwin* | rhapsody*)
  11477. archive_cmds_need_lc_CXX=no
  11478. hardcode_direct_CXX=no
  11479. hardcode_automatic_CXX=yes
  11480. hardcode_shlibpath_var_CXX=unsupported
  11481. if test "$lt_cv_ld_force_load" = "yes"; then
  11482. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11483. else
  11484. whole_archive_flag_spec_CXX=''
  11485. fi
  11486. link_all_deplibs_CXX=yes
  11487. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11488. case $cc_basename in
  11489. ifort*) _lt_dar_can_shared=yes ;;
  11490. *) _lt_dar_can_shared=$GCC ;;
  11491. esac
  11492. if test "$_lt_dar_can_shared" = "yes"; then
  11493. output_verbose_link_cmd=func_echo_all
  11494. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11495. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11496. archive_expsym_cmds_CXX="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}"
  11497. module_expsym_cmds_CXX="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}"
  11498. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11499. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11500. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11501. fi
  11502. else
  11503. ld_shlibs_CXX=no
  11504. fi
  11505. ;;
  11506. dgux*)
  11507. case $cc_basename in
  11508. ec++*)
  11509. # FIXME: insert proper C++ library support
  11510. ld_shlibs_CXX=no
  11511. ;;
  11512. ghcx*)
  11513. # Green Hills C++ Compiler
  11514. # FIXME: insert proper C++ library support
  11515. ld_shlibs_CXX=no
  11516. ;;
  11517. *)
  11518. # FIXME: insert proper C++ library support
  11519. ld_shlibs_CXX=no
  11520. ;;
  11521. esac
  11522. ;;
  11523. freebsd2.*)
  11524. # C++ shared libraries reported to be fairly broken before
  11525. # switch to ELF
  11526. ld_shlibs_CXX=no
  11527. ;;
  11528. freebsd-elf*)
  11529. archive_cmds_need_lc_CXX=no
  11530. ;;
  11531. freebsd* | dragonfly*)
  11532. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11533. # conventions
  11534. ld_shlibs_CXX=yes
  11535. ;;
  11536. gnu*)
  11537. ;;
  11538. haiku*)
  11539. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11540. link_all_deplibs_CXX=yes
  11541. ;;
  11542. hpux9*)
  11543. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11544. hardcode_libdir_separator_CXX=:
  11545. export_dynamic_flag_spec_CXX='${wl}-E'
  11546. hardcode_direct_CXX=yes
  11547. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11548. # but as the default
  11549. # location of the library.
  11550. case $cc_basename in
  11551. CC*)
  11552. # FIXME: insert proper C++ library support
  11553. ld_shlibs_CXX=no
  11554. ;;
  11555. aCC*)
  11556. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11557. # Commands to make compiler produce verbose output that lists
  11558. # what "hidden" libraries, object files and flags are used when
  11559. # linking a shared library.
  11560. #
  11561. # There doesn't appear to be a way to prevent this compiler from
  11562. # explicitly linking system object files so we need to strip them
  11563. # from the output so that they don't get included in the library
  11564. # dependencies.
  11565. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11566. ;;
  11567. *)
  11568. if test "$GXX" = yes; then
  11569. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11570. else
  11571. # FIXME: insert proper C++ library support
  11572. ld_shlibs_CXX=no
  11573. fi
  11574. ;;
  11575. esac
  11576. ;;
  11577. hpux10*|hpux11*)
  11578. if test $with_gnu_ld = no; then
  11579. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11580. hardcode_libdir_separator_CXX=:
  11581. case $host_cpu in
  11582. hppa*64*|ia64*)
  11583. ;;
  11584. *)
  11585. export_dynamic_flag_spec_CXX='${wl}-E'
  11586. ;;
  11587. esac
  11588. fi
  11589. case $host_cpu in
  11590. hppa*64*|ia64*)
  11591. hardcode_direct_CXX=no
  11592. hardcode_shlibpath_var_CXX=no
  11593. ;;
  11594. *)
  11595. hardcode_direct_CXX=yes
  11596. hardcode_direct_absolute_CXX=yes
  11597. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11598. # but as the default
  11599. # location of the library.
  11600. ;;
  11601. esac
  11602. case $cc_basename in
  11603. CC*)
  11604. # FIXME: insert proper C++ library support
  11605. ld_shlibs_CXX=no
  11606. ;;
  11607. aCC*)
  11608. case $host_cpu in
  11609. hppa*64*)
  11610. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11611. ;;
  11612. ia64*)
  11613. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11614. ;;
  11615. *)
  11616. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11617. ;;
  11618. esac
  11619. # Commands to make compiler produce verbose output that lists
  11620. # what "hidden" libraries, object files and flags are used when
  11621. # linking a shared library.
  11622. #
  11623. # There doesn't appear to be a way to prevent this compiler from
  11624. # explicitly linking system object files so we need to strip them
  11625. # from the output so that they don't get included in the library
  11626. # dependencies.
  11627. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11628. ;;
  11629. *)
  11630. if test "$GXX" = yes; then
  11631. if test $with_gnu_ld = no; then
  11632. case $host_cpu in
  11633. hppa*64*)
  11634. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11635. ;;
  11636. ia64*)
  11637. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11638. ;;
  11639. *)
  11640. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11641. ;;
  11642. esac
  11643. fi
  11644. else
  11645. # FIXME: insert proper C++ library support
  11646. ld_shlibs_CXX=no
  11647. fi
  11648. ;;
  11649. esac
  11650. ;;
  11651. interix[3-9]*)
  11652. hardcode_direct_CXX=no
  11653. hardcode_shlibpath_var_CXX=no
  11654. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11655. export_dynamic_flag_spec_CXX='${wl}-E'
  11656. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11657. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11658. # default) and relocated if they conflict, which is a slow very memory
  11659. # consuming and fragmenting process. To avoid this, we pick a random,
  11660. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11661. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11662. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11663. archive_expsym_cmds_CXX='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'
  11664. ;;
  11665. irix5* | irix6*)
  11666. case $cc_basename in
  11667. CC*)
  11668. # SGI C++
  11669. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11670. # Archives containing C++ object files must be created using
  11671. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11672. # necessary to make sure instantiated templates are included
  11673. # in the archive.
  11674. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11675. ;;
  11676. *)
  11677. if test "$GXX" = yes; then
  11678. if test "$with_gnu_ld" = no; then
  11679. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  11680. else
  11681. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11682. fi
  11683. fi
  11684. link_all_deplibs_CXX=yes
  11685. ;;
  11686. esac
  11687. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11688. hardcode_libdir_separator_CXX=:
  11689. inherit_rpath_CXX=yes
  11690. ;;
  11691. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11692. case $cc_basename in
  11693. KCC*)
  11694. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11695. # KCC will only create a shared library if the output file
  11696. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11697. # to its proper name (with version) after linking.
  11698. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11699. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11700. # Commands to make compiler produce verbose output that lists
  11701. # what "hidden" libraries, object files and flags are used when
  11702. # linking a shared library.
  11703. #
  11704. # There doesn't appear to be a way to prevent this compiler from
  11705. # explicitly linking system object files so we need to strip them
  11706. # from the output so that they don't get included in the library
  11707. # dependencies.
  11708. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11709. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11710. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11711. # Archives containing C++ object files must be created using
  11712. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11713. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11714. ;;
  11715. icpc* | ecpc* )
  11716. # Intel C++
  11717. with_gnu_ld=yes
  11718. # version 8.0 and above of icpc choke on multiply defined symbols
  11719. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11720. # earlier do not add the objects themselves.
  11721. case `$CC -V 2>&1` in
  11722. *"Version 7."*)
  11723. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11724. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11725. ;;
  11726. *) # Version 8.0 or newer
  11727. tmp_idyn=
  11728. case $host_cpu in
  11729. ia64*) tmp_idyn=' -i_dynamic';;
  11730. esac
  11731. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11732. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11733. ;;
  11734. esac
  11735. archive_cmds_need_lc_CXX=no
  11736. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11737. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11738. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11739. ;;
  11740. pgCC* | pgcpp*)
  11741. # Portland Group C++ compiler
  11742. case `$CC -V` in
  11743. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11744. prelink_cmds_CXX='tpldir=Template.dir~
  11745. rm -rf $tpldir~
  11746. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11747. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11748. old_archive_cmds_CXX='tpldir=Template.dir~
  11749. rm -rf $tpldir~
  11750. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11751. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11752. $RANLIB $oldlib'
  11753. archive_cmds_CXX='tpldir=Template.dir~
  11754. rm -rf $tpldir~
  11755. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11756. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11757. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11758. rm -rf $tpldir~
  11759. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11760. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11761. ;;
  11762. *) # Version 6 and above use weak symbols
  11763. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11764. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11765. ;;
  11766. esac
  11767. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11768. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11769. whole_archive_flag_spec_CXX='${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'
  11770. ;;
  11771. cxx*)
  11772. # Compaq C++
  11773. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11774. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11775. runpath_var=LD_RUN_PATH
  11776. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11777. hardcode_libdir_separator_CXX=:
  11778. # Commands to make compiler produce verbose output that lists
  11779. # what "hidden" libraries, object files and flags are used when
  11780. # linking a shared library.
  11781. #
  11782. # There doesn't appear to be a way to prevent this compiler from
  11783. # explicitly linking system object files so we need to strip them
  11784. # from the output so that they don't get included in the library
  11785. # dependencies.
  11786. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11787. ;;
  11788. xl* | mpixl* | bgxl*)
  11789. # IBM XL 8.0 on PPC, with GNU ld
  11790. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11791. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11792. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11793. if test "x$supports_anon_versioning" = xyes; then
  11794. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11795. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11796. echo "local: *; };" >> $output_objdir/$libname.ver~
  11797. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11798. fi
  11799. ;;
  11800. *)
  11801. case `$CC -V 2>&1 | sed 5q` in
  11802. *Sun\ C*)
  11803. # Sun C++ 5.9
  11804. no_undefined_flag_CXX=' -zdefs'
  11805. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11806. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11807. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11808. whole_archive_flag_spec_CXX='${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'
  11809. compiler_needs_object_CXX=yes
  11810. # Not sure whether something based on
  11811. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11812. # would be better.
  11813. output_verbose_link_cmd='func_echo_all'
  11814. # Archives containing C++ object files must be created using
  11815. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11816. # necessary to make sure instantiated templates are included
  11817. # in the archive.
  11818. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11819. ;;
  11820. esac
  11821. ;;
  11822. esac
  11823. ;;
  11824. lynxos*)
  11825. # FIXME: insert proper C++ library support
  11826. ld_shlibs_CXX=no
  11827. ;;
  11828. m88k*)
  11829. # FIXME: insert proper C++ library support
  11830. ld_shlibs_CXX=no
  11831. ;;
  11832. mvs*)
  11833. case $cc_basename in
  11834. cxx*)
  11835. # FIXME: insert proper C++ library support
  11836. ld_shlibs_CXX=no
  11837. ;;
  11838. *)
  11839. # FIXME: insert proper C++ library support
  11840. ld_shlibs_CXX=no
  11841. ;;
  11842. esac
  11843. ;;
  11844. netbsd*)
  11845. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11846. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11847. wlarc=
  11848. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11849. hardcode_direct_CXX=yes
  11850. hardcode_shlibpath_var_CXX=no
  11851. fi
  11852. # Workaround some broken pre-1.5 toolchains
  11853. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11854. ;;
  11855. *nto* | *qnx*)
  11856. ld_shlibs_CXX=yes
  11857. ;;
  11858. openbsd2*)
  11859. # C++ shared libraries are fairly broken
  11860. ld_shlibs_CXX=no
  11861. ;;
  11862. openbsd*)
  11863. if test -f /usr/libexec/ld.so; then
  11864. hardcode_direct_CXX=yes
  11865. hardcode_shlibpath_var_CXX=no
  11866. hardcode_direct_absolute_CXX=yes
  11867. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11868. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11869. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11870. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11871. export_dynamic_flag_spec_CXX='${wl}-E'
  11872. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11873. fi
  11874. output_verbose_link_cmd=func_echo_all
  11875. else
  11876. ld_shlibs_CXX=no
  11877. fi
  11878. ;;
  11879. osf3* | osf4* | osf5*)
  11880. case $cc_basename in
  11881. KCC*)
  11882. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11883. # KCC will only create a shared library if the output file
  11884. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11885. # to its proper name (with version) after linking.
  11886. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11887. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11888. hardcode_libdir_separator_CXX=:
  11889. # Archives containing C++ object files must be created using
  11890. # the KAI C++ compiler.
  11891. case $host in
  11892. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11893. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11894. esac
  11895. ;;
  11896. RCC*)
  11897. # Rational C++ 2.4.1
  11898. # FIXME: insert proper C++ library support
  11899. ld_shlibs_CXX=no
  11900. ;;
  11901. cxx*)
  11902. case $host in
  11903. osf3*)
  11904. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11905. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11906. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11907. ;;
  11908. *)
  11909. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11910. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11911. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11912. echo "-hidden">> $lib.exp~
  11913. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11914. $RM $lib.exp'
  11915. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11916. ;;
  11917. esac
  11918. hardcode_libdir_separator_CXX=:
  11919. # Commands to make compiler produce verbose output that lists
  11920. # what "hidden" libraries, object files and flags are used when
  11921. # linking a shared library.
  11922. #
  11923. # There doesn't appear to be a way to prevent this compiler from
  11924. # explicitly linking system object files so we need to strip them
  11925. # from the output so that they don't get included in the library
  11926. # dependencies.
  11927. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11928. ;;
  11929. *)
  11930. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11931. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11932. case $host in
  11933. osf3*)
  11934. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  11935. ;;
  11936. *)
  11937. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  11938. ;;
  11939. esac
  11940. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11941. hardcode_libdir_separator_CXX=:
  11942. # Commands to make compiler produce verbose output that lists
  11943. # what "hidden" libraries, object files and flags are used when
  11944. # linking a shared library.
  11945. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11946. else
  11947. # FIXME: insert proper C++ library support
  11948. ld_shlibs_CXX=no
  11949. fi
  11950. ;;
  11951. esac
  11952. ;;
  11953. psos*)
  11954. # FIXME: insert proper C++ library support
  11955. ld_shlibs_CXX=no
  11956. ;;
  11957. sunos4*)
  11958. case $cc_basename in
  11959. CC*)
  11960. # Sun C++ 4.x
  11961. # FIXME: insert proper C++ library support
  11962. ld_shlibs_CXX=no
  11963. ;;
  11964. lcc*)
  11965. # Lucid
  11966. # FIXME: insert proper C++ library support
  11967. ld_shlibs_CXX=no
  11968. ;;
  11969. *)
  11970. # FIXME: insert proper C++ library support
  11971. ld_shlibs_CXX=no
  11972. ;;
  11973. esac
  11974. ;;
  11975. solaris*)
  11976. case $cc_basename in
  11977. CC* | sunCC*)
  11978. # Sun C++ 4.2, 5.x and Centerline C++
  11979. archive_cmds_need_lc_CXX=yes
  11980. no_undefined_flag_CXX=' -zdefs'
  11981. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11982. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11983. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11984. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11985. hardcode_shlibpath_var_CXX=no
  11986. case $host_os in
  11987. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11988. *)
  11989. # The compiler driver will combine and reorder linker options,
  11990. # but understands `-z linker_flag'.
  11991. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11992. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11993. ;;
  11994. esac
  11995. link_all_deplibs_CXX=yes
  11996. output_verbose_link_cmd='func_echo_all'
  11997. # Archives containing C++ object files must be created using
  11998. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11999. # necessary to make sure instantiated templates are included
  12000. # in the archive.
  12001. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12002. ;;
  12003. gcx*)
  12004. # Green Hills C++ Compiler
  12005. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12006. # The C++ compiler must be used to create the archive.
  12007. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12008. ;;
  12009. *)
  12010. # GNU C++ compiler with Solaris linker
  12011. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12012. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12013. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12014. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12015. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12016. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12017. # Commands to make compiler produce verbose output that lists
  12018. # what "hidden" libraries, object files and flags are used when
  12019. # linking a shared library.
  12020. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12021. else
  12022. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12023. # platform.
  12024. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12025. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12026. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12027. # Commands to make compiler produce verbose output that lists
  12028. # what "hidden" libraries, object files and flags are used when
  12029. # linking a shared library.
  12030. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12031. fi
  12032. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12033. case $host_os in
  12034. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12035. *)
  12036. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12037. ;;
  12038. esac
  12039. fi
  12040. ;;
  12041. esac
  12042. ;;
  12043. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12044. no_undefined_flag_CXX='${wl}-z,text'
  12045. archive_cmds_need_lc_CXX=no
  12046. hardcode_shlibpath_var_CXX=no
  12047. runpath_var='LD_RUN_PATH'
  12048. case $cc_basename in
  12049. CC*)
  12050. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12051. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12052. ;;
  12053. *)
  12054. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12055. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12056. ;;
  12057. esac
  12058. ;;
  12059. sysv5* | sco3.2v5* | sco5v6*)
  12060. # Note: We can NOT use -z defs as we might desire, because we do not
  12061. # link with -lc, and that would cause any symbols used from libc to
  12062. # always be unresolved, which means just about no library would
  12063. # ever link correctly. If we're not using GNU ld we use -z text
  12064. # though, which does catch some bad symbols but isn't as heavy-handed
  12065. # as -z defs.
  12066. no_undefined_flag_CXX='${wl}-z,text'
  12067. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12068. archive_cmds_need_lc_CXX=no
  12069. hardcode_shlibpath_var_CXX=no
  12070. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12071. hardcode_libdir_separator_CXX=':'
  12072. link_all_deplibs_CXX=yes
  12073. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12074. runpath_var='LD_RUN_PATH'
  12075. case $cc_basename in
  12076. CC*)
  12077. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12078. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12079. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12080. '"$old_archive_cmds_CXX"
  12081. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12082. '"$reload_cmds_CXX"
  12083. ;;
  12084. *)
  12085. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12086. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12087. ;;
  12088. esac
  12089. ;;
  12090. tandem*)
  12091. case $cc_basename in
  12092. NCC*)
  12093. # NonStop-UX NCC 3.20
  12094. # FIXME: insert proper C++ library support
  12095. ld_shlibs_CXX=no
  12096. ;;
  12097. *)
  12098. # FIXME: insert proper C++ library support
  12099. ld_shlibs_CXX=no
  12100. ;;
  12101. esac
  12102. ;;
  12103. vxworks*)
  12104. # FIXME: insert proper C++ library support
  12105. ld_shlibs_CXX=no
  12106. ;;
  12107. *)
  12108. # FIXME: insert proper C++ library support
  12109. ld_shlibs_CXX=no
  12110. ;;
  12111. esac
  12112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12113. $as_echo "$ld_shlibs_CXX" >&6; }
  12114. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12115. GCC_CXX="$GXX"
  12116. LD_CXX="$LD"
  12117. ## CAVEAT EMPTOR:
  12118. ## There is no encapsulation within the following macros, do not change
  12119. ## the running order or otherwise move them around unless you know exactly
  12120. ## what you are doing...
  12121. # Dependencies to place before and after the object being linked:
  12122. predep_objects_CXX=
  12123. postdep_objects_CXX=
  12124. predeps_CXX=
  12125. postdeps_CXX=
  12126. compiler_lib_search_path_CXX=
  12127. cat > conftest.$ac_ext <<_LT_EOF
  12128. class Foo
  12129. {
  12130. public:
  12131. Foo (void) { a = 0; }
  12132. private:
  12133. int a;
  12134. };
  12135. _LT_EOF
  12136. _lt_libdeps_save_CFLAGS=$CFLAGS
  12137. case "$CC $CFLAGS " in #(
  12138. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12139. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12140. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12141. esac
  12142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12143. (eval $ac_compile) 2>&5
  12144. ac_status=$?
  12145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12146. test $ac_status = 0; }; then
  12147. # Parse the compiler output and extract the necessary
  12148. # objects, libraries and library flags.
  12149. # Sentinel used to keep track of whether or not we are before
  12150. # the conftest object file.
  12151. pre_test_object_deps_done=no
  12152. for p in `eval "$output_verbose_link_cmd"`; do
  12153. case ${prev}${p} in
  12154. -L* | -R* | -l*)
  12155. # Some compilers place space between "-{L,R}" and the path.
  12156. # Remove the space.
  12157. if test $p = "-L" ||
  12158. test $p = "-R"; then
  12159. prev=$p
  12160. continue
  12161. fi
  12162. # Expand the sysroot to ease extracting the directories later.
  12163. if test -z "$prev"; then
  12164. case $p in
  12165. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12166. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12167. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12168. esac
  12169. fi
  12170. case $p in
  12171. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12172. esac
  12173. if test "$pre_test_object_deps_done" = no; then
  12174. case ${prev} in
  12175. -L | -R)
  12176. # Internal compiler library paths should come after those
  12177. # provided the user. The postdeps already come after the
  12178. # user supplied libs so there is no need to process them.
  12179. if test -z "$compiler_lib_search_path_CXX"; then
  12180. compiler_lib_search_path_CXX="${prev}${p}"
  12181. else
  12182. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12183. fi
  12184. ;;
  12185. # The "-l" case would never come before the object being
  12186. # linked, so don't bother handling this case.
  12187. esac
  12188. else
  12189. if test -z "$postdeps_CXX"; then
  12190. postdeps_CXX="${prev}${p}"
  12191. else
  12192. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12193. fi
  12194. fi
  12195. prev=
  12196. ;;
  12197. *.lto.$objext) ;; # Ignore GCC LTO objects
  12198. *.$objext)
  12199. # This assumes that the test object file only shows up
  12200. # once in the compiler output.
  12201. if test "$p" = "conftest.$objext"; then
  12202. pre_test_object_deps_done=yes
  12203. continue
  12204. fi
  12205. if test "$pre_test_object_deps_done" = no; then
  12206. if test -z "$predep_objects_CXX"; then
  12207. predep_objects_CXX="$p"
  12208. else
  12209. predep_objects_CXX="$predep_objects_CXX $p"
  12210. fi
  12211. else
  12212. if test -z "$postdep_objects_CXX"; then
  12213. postdep_objects_CXX="$p"
  12214. else
  12215. postdep_objects_CXX="$postdep_objects_CXX $p"
  12216. fi
  12217. fi
  12218. ;;
  12219. *) ;; # Ignore the rest.
  12220. esac
  12221. done
  12222. # Clean up.
  12223. rm -f a.out a.exe
  12224. else
  12225. echo "libtool.m4: error: problem compiling CXX test program"
  12226. fi
  12227. $RM -f confest.$objext
  12228. CFLAGS=$_lt_libdeps_save_CFLAGS
  12229. # PORTME: override above test on systems where it is broken
  12230. case $host_os in
  12231. interix[3-9]*)
  12232. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12233. # hack all around it, let's just trust "g++" to DTRT.
  12234. predep_objects_CXX=
  12235. postdep_objects_CXX=
  12236. postdeps_CXX=
  12237. ;;
  12238. linux*)
  12239. case `$CC -V 2>&1 | sed 5q` in
  12240. *Sun\ C*)
  12241. # Sun C++ 5.9
  12242. # The more standards-conforming stlport4 library is
  12243. # incompatible with the Cstd library. Avoid specifying
  12244. # it if it's in CXXFLAGS. Ignore libCrun as
  12245. # -library=stlport4 depends on it.
  12246. case " $CXX $CXXFLAGS " in
  12247. *" -library=stlport4 "*)
  12248. solaris_use_stlport4=yes
  12249. ;;
  12250. esac
  12251. if test "$solaris_use_stlport4" != yes; then
  12252. postdeps_CXX='-library=Cstd -library=Crun'
  12253. fi
  12254. ;;
  12255. esac
  12256. ;;
  12257. solaris*)
  12258. case $cc_basename in
  12259. CC* | sunCC*)
  12260. # The more standards-conforming stlport4 library is
  12261. # incompatible with the Cstd library. Avoid specifying
  12262. # it if it's in CXXFLAGS. Ignore libCrun as
  12263. # -library=stlport4 depends on it.
  12264. case " $CXX $CXXFLAGS " in
  12265. *" -library=stlport4 "*)
  12266. solaris_use_stlport4=yes
  12267. ;;
  12268. esac
  12269. # Adding this requires a known-good setup of shared libraries for
  12270. # Sun compiler versions before 5.6, else PIC objects from an old
  12271. # archive will be linked into the output, leading to subtle bugs.
  12272. if test "$solaris_use_stlport4" != yes; then
  12273. postdeps_CXX='-library=Cstd -library=Crun'
  12274. fi
  12275. ;;
  12276. esac
  12277. ;;
  12278. esac
  12279. case " $postdeps_CXX " in
  12280. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12281. esac
  12282. compiler_lib_search_dirs_CXX=
  12283. if test -n "${compiler_lib_search_path_CXX}"; then
  12284. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12285. fi
  12286. lt_prog_compiler_wl_CXX=
  12287. lt_prog_compiler_pic_CXX=
  12288. lt_prog_compiler_static_CXX=
  12289. # C++ specific cases for pic, static, wl, etc.
  12290. if test "$GXX" = yes; then
  12291. lt_prog_compiler_wl_CXX='-Wl,'
  12292. lt_prog_compiler_static_CXX='-static'
  12293. case $host_os in
  12294. aix*)
  12295. # All AIX code is PIC.
  12296. if test "$host_cpu" = ia64; then
  12297. # AIX 5 now supports IA64 processor
  12298. lt_prog_compiler_static_CXX='-Bstatic'
  12299. fi
  12300. ;;
  12301. amigaos*)
  12302. case $host_cpu in
  12303. powerpc)
  12304. # see comment about AmigaOS4 .so support
  12305. lt_prog_compiler_pic_CXX='-fPIC'
  12306. ;;
  12307. m68k)
  12308. # FIXME: we need at least 68020 code to build shared libraries, but
  12309. # adding the `-m68020' flag to GCC prevents building anything better,
  12310. # like `-m68040'.
  12311. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12312. ;;
  12313. esac
  12314. ;;
  12315. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12316. # PIC is the default for these OSes.
  12317. ;;
  12318. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12319. # This hack is so that the source file can tell whether it is being
  12320. # built for inclusion in a dll (and should export symbols for example).
  12321. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12322. # (--disable-auto-import) libraries
  12323. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12324. ;;
  12325. darwin* | rhapsody*)
  12326. # PIC is the default on this platform
  12327. # Common symbols not allowed in MH_DYLIB files
  12328. lt_prog_compiler_pic_CXX='-fno-common'
  12329. ;;
  12330. *djgpp*)
  12331. # DJGPP does not support shared libraries at all
  12332. lt_prog_compiler_pic_CXX=
  12333. ;;
  12334. haiku*)
  12335. # PIC is the default for Haiku.
  12336. # The "-static" flag exists, but is broken.
  12337. lt_prog_compiler_static_CXX=
  12338. ;;
  12339. interix[3-9]*)
  12340. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12341. # Instead, we relocate shared libraries at runtime.
  12342. ;;
  12343. sysv4*MP*)
  12344. if test -d /usr/nec; then
  12345. lt_prog_compiler_pic_CXX=-Kconform_pic
  12346. fi
  12347. ;;
  12348. hpux*)
  12349. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12350. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12351. # sets the default TLS model and affects inlining.
  12352. case $host_cpu in
  12353. hppa*64*)
  12354. ;;
  12355. *)
  12356. lt_prog_compiler_pic_CXX='-fPIC'
  12357. ;;
  12358. esac
  12359. ;;
  12360. *qnx* | *nto*)
  12361. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12362. # it will coredump.
  12363. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12364. ;;
  12365. *)
  12366. lt_prog_compiler_pic_CXX='-fPIC'
  12367. ;;
  12368. esac
  12369. else
  12370. case $host_os in
  12371. aix[4-9]*)
  12372. # All AIX code is PIC.
  12373. if test "$host_cpu" = ia64; then
  12374. # AIX 5 now supports IA64 processor
  12375. lt_prog_compiler_static_CXX='-Bstatic'
  12376. else
  12377. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12378. fi
  12379. ;;
  12380. chorus*)
  12381. case $cc_basename in
  12382. cxch68*)
  12383. # Green Hills C++ Compiler
  12384. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12385. ;;
  12386. esac
  12387. ;;
  12388. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12389. # This hack is so that the source file can tell whether it is being
  12390. # built for inclusion in a dll (and should export symbols for example).
  12391. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12392. ;;
  12393. dgux*)
  12394. case $cc_basename in
  12395. ec++*)
  12396. lt_prog_compiler_pic_CXX='-KPIC'
  12397. ;;
  12398. ghcx*)
  12399. # Green Hills C++ Compiler
  12400. lt_prog_compiler_pic_CXX='-pic'
  12401. ;;
  12402. *)
  12403. ;;
  12404. esac
  12405. ;;
  12406. freebsd* | dragonfly*)
  12407. # FreeBSD uses GNU C++
  12408. ;;
  12409. hpux9* | hpux10* | hpux11*)
  12410. case $cc_basename in
  12411. CC*)
  12412. lt_prog_compiler_wl_CXX='-Wl,'
  12413. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12414. if test "$host_cpu" != ia64; then
  12415. lt_prog_compiler_pic_CXX='+Z'
  12416. fi
  12417. ;;
  12418. aCC*)
  12419. lt_prog_compiler_wl_CXX='-Wl,'
  12420. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12421. case $host_cpu in
  12422. hppa*64*|ia64*)
  12423. # +Z the default
  12424. ;;
  12425. *)
  12426. lt_prog_compiler_pic_CXX='+Z'
  12427. ;;
  12428. esac
  12429. ;;
  12430. *)
  12431. ;;
  12432. esac
  12433. ;;
  12434. interix*)
  12435. # This is c89, which is MS Visual C++ (no shared libs)
  12436. # Anyone wants to do a port?
  12437. ;;
  12438. irix5* | irix6* | nonstopux*)
  12439. case $cc_basename in
  12440. CC*)
  12441. lt_prog_compiler_wl_CXX='-Wl,'
  12442. lt_prog_compiler_static_CXX='-non_shared'
  12443. # CC pic flag -KPIC is the default.
  12444. ;;
  12445. *)
  12446. ;;
  12447. esac
  12448. ;;
  12449. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12450. case $cc_basename in
  12451. KCC*)
  12452. # KAI C++ Compiler
  12453. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12454. lt_prog_compiler_pic_CXX='-fPIC'
  12455. ;;
  12456. ecpc* )
  12457. # old Intel C++ for x86_64 which still supported -KPIC.
  12458. lt_prog_compiler_wl_CXX='-Wl,'
  12459. lt_prog_compiler_pic_CXX='-KPIC'
  12460. lt_prog_compiler_static_CXX='-static'
  12461. ;;
  12462. icpc* )
  12463. # Intel C++, used to be incompatible with GCC.
  12464. # ICC 10 doesn't accept -KPIC any more.
  12465. lt_prog_compiler_wl_CXX='-Wl,'
  12466. lt_prog_compiler_pic_CXX='-fPIC'
  12467. lt_prog_compiler_static_CXX='-static'
  12468. ;;
  12469. pgCC* | pgcpp*)
  12470. # Portland Group C++ compiler
  12471. lt_prog_compiler_wl_CXX='-Wl,'
  12472. lt_prog_compiler_pic_CXX='-fpic'
  12473. lt_prog_compiler_static_CXX='-Bstatic'
  12474. ;;
  12475. cxx*)
  12476. # Compaq C++
  12477. # Make sure the PIC flag is empty. It appears that all Alpha
  12478. # Linux and Compaq Tru64 Unix objects are PIC.
  12479. lt_prog_compiler_pic_CXX=
  12480. lt_prog_compiler_static_CXX='-non_shared'
  12481. ;;
  12482. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12483. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12484. lt_prog_compiler_wl_CXX='-Wl,'
  12485. lt_prog_compiler_pic_CXX='-qpic'
  12486. lt_prog_compiler_static_CXX='-qstaticlink'
  12487. ;;
  12488. *)
  12489. case `$CC -V 2>&1 | sed 5q` in
  12490. *Sun\ C*)
  12491. # Sun C++ 5.9
  12492. lt_prog_compiler_pic_CXX='-KPIC'
  12493. lt_prog_compiler_static_CXX='-Bstatic'
  12494. lt_prog_compiler_wl_CXX='-Qoption ld '
  12495. ;;
  12496. esac
  12497. ;;
  12498. esac
  12499. ;;
  12500. lynxos*)
  12501. ;;
  12502. m88k*)
  12503. ;;
  12504. mvs*)
  12505. case $cc_basename in
  12506. cxx*)
  12507. lt_prog_compiler_pic_CXX='-W c,exportall'
  12508. ;;
  12509. *)
  12510. ;;
  12511. esac
  12512. ;;
  12513. netbsd*)
  12514. ;;
  12515. *qnx* | *nto*)
  12516. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12517. # it will coredump.
  12518. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12519. ;;
  12520. osf3* | osf4* | osf5*)
  12521. case $cc_basename in
  12522. KCC*)
  12523. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12524. ;;
  12525. RCC*)
  12526. # Rational C++ 2.4.1
  12527. lt_prog_compiler_pic_CXX='-pic'
  12528. ;;
  12529. cxx*)
  12530. # Digital/Compaq C++
  12531. lt_prog_compiler_wl_CXX='-Wl,'
  12532. # Make sure the PIC flag is empty. It appears that all Alpha
  12533. # Linux and Compaq Tru64 Unix objects are PIC.
  12534. lt_prog_compiler_pic_CXX=
  12535. lt_prog_compiler_static_CXX='-non_shared'
  12536. ;;
  12537. *)
  12538. ;;
  12539. esac
  12540. ;;
  12541. psos*)
  12542. ;;
  12543. solaris*)
  12544. case $cc_basename in
  12545. CC* | sunCC*)
  12546. # Sun C++ 4.2, 5.x and Centerline C++
  12547. lt_prog_compiler_pic_CXX='-KPIC'
  12548. lt_prog_compiler_static_CXX='-Bstatic'
  12549. lt_prog_compiler_wl_CXX='-Qoption ld '
  12550. ;;
  12551. gcx*)
  12552. # Green Hills C++ Compiler
  12553. lt_prog_compiler_pic_CXX='-PIC'
  12554. ;;
  12555. *)
  12556. ;;
  12557. esac
  12558. ;;
  12559. sunos4*)
  12560. case $cc_basename in
  12561. CC*)
  12562. # Sun C++ 4.x
  12563. lt_prog_compiler_pic_CXX='-pic'
  12564. lt_prog_compiler_static_CXX='-Bstatic'
  12565. ;;
  12566. lcc*)
  12567. # Lucid
  12568. lt_prog_compiler_pic_CXX='-pic'
  12569. ;;
  12570. *)
  12571. ;;
  12572. esac
  12573. ;;
  12574. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12575. case $cc_basename in
  12576. CC*)
  12577. lt_prog_compiler_wl_CXX='-Wl,'
  12578. lt_prog_compiler_pic_CXX='-KPIC'
  12579. lt_prog_compiler_static_CXX='-Bstatic'
  12580. ;;
  12581. esac
  12582. ;;
  12583. tandem*)
  12584. case $cc_basename in
  12585. NCC*)
  12586. # NonStop-UX NCC 3.20
  12587. lt_prog_compiler_pic_CXX='-KPIC'
  12588. ;;
  12589. *)
  12590. ;;
  12591. esac
  12592. ;;
  12593. vxworks*)
  12594. ;;
  12595. *)
  12596. lt_prog_compiler_can_build_shared_CXX=no
  12597. ;;
  12598. esac
  12599. fi
  12600. case $host_os in
  12601. # For platforms which do not support PIC, -DPIC is meaningless:
  12602. *djgpp*)
  12603. lt_prog_compiler_pic_CXX=
  12604. ;;
  12605. *)
  12606. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12607. ;;
  12608. esac
  12609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12610. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12611. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12612. $as_echo_n "(cached) " >&6
  12613. else
  12614. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12615. fi
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12617. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12618. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12619. #
  12620. # Check to make sure the PIC flag actually works.
  12621. #
  12622. if test -n "$lt_prog_compiler_pic_CXX"; then
  12623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12624. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12625. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12626. $as_echo_n "(cached) " >&6
  12627. else
  12628. lt_cv_prog_compiler_pic_works_CXX=no
  12629. ac_outfile=conftest.$ac_objext
  12630. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12631. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12632. # Insert the option either (1) after the last *FLAGS variable, or
  12633. # (2) before a word containing "conftest.", or (3) at the end.
  12634. # Note that $ac_compile itself does not contain backslashes and begins
  12635. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12636. # The option is referenced via a variable to avoid confusing sed.
  12637. lt_compile=`echo "$ac_compile" | $SED \
  12638. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12639. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12640. -e 's:$: $lt_compiler_flag:'`
  12641. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12642. (eval "$lt_compile" 2>conftest.err)
  12643. ac_status=$?
  12644. cat conftest.err >&5
  12645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12646. if (exit $ac_status) && test -s "$ac_outfile"; then
  12647. # The compiler can only warn and ignore the option if not recognized
  12648. # So say no if there are warnings other than the usual output.
  12649. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12650. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12651. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12652. lt_cv_prog_compiler_pic_works_CXX=yes
  12653. fi
  12654. fi
  12655. $RM conftest*
  12656. fi
  12657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12658. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12659. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12660. case $lt_prog_compiler_pic_CXX in
  12661. "" | " "*) ;;
  12662. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12663. esac
  12664. else
  12665. lt_prog_compiler_pic_CXX=
  12666. lt_prog_compiler_can_build_shared_CXX=no
  12667. fi
  12668. fi
  12669. #
  12670. # Check to make sure the static flag actually works.
  12671. #
  12672. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12674. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12675. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12676. $as_echo_n "(cached) " >&6
  12677. else
  12678. lt_cv_prog_compiler_static_works_CXX=no
  12679. save_LDFLAGS="$LDFLAGS"
  12680. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12681. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12682. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12683. # The linker can only warn and ignore the option if not recognized
  12684. # So say no if there are warnings
  12685. if test -s conftest.err; then
  12686. # Append any errors to the config.log.
  12687. cat conftest.err 1>&5
  12688. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12689. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12690. if diff conftest.exp conftest.er2 >/dev/null; then
  12691. lt_cv_prog_compiler_static_works_CXX=yes
  12692. fi
  12693. else
  12694. lt_cv_prog_compiler_static_works_CXX=yes
  12695. fi
  12696. fi
  12697. $RM -r conftest*
  12698. LDFLAGS="$save_LDFLAGS"
  12699. fi
  12700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12701. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12702. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12703. :
  12704. else
  12705. lt_prog_compiler_static_CXX=
  12706. fi
  12707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12708. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12709. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12710. $as_echo_n "(cached) " >&6
  12711. else
  12712. lt_cv_prog_compiler_c_o_CXX=no
  12713. $RM -r conftest 2>/dev/null
  12714. mkdir conftest
  12715. cd conftest
  12716. mkdir out
  12717. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12718. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12719. # Insert the option either (1) after the last *FLAGS variable, or
  12720. # (2) before a word containing "conftest.", or (3) at the end.
  12721. # Note that $ac_compile itself does not contain backslashes and begins
  12722. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12723. lt_compile=`echo "$ac_compile" | $SED \
  12724. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12725. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12726. -e 's:$: $lt_compiler_flag:'`
  12727. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12728. (eval "$lt_compile" 2>out/conftest.err)
  12729. ac_status=$?
  12730. cat out/conftest.err >&5
  12731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12732. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12733. then
  12734. # The compiler can only warn and ignore the option if not recognized
  12735. # So say no if there are warnings
  12736. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12737. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12738. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12739. lt_cv_prog_compiler_c_o_CXX=yes
  12740. fi
  12741. fi
  12742. chmod u+w . 2>&5
  12743. $RM conftest*
  12744. # SGI C++ compiler will create directory out/ii_files/ for
  12745. # template instantiation
  12746. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12747. $RM out/* && rmdir out
  12748. cd ..
  12749. $RM -r conftest
  12750. $RM conftest*
  12751. fi
  12752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12753. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12755. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12756. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12757. $as_echo_n "(cached) " >&6
  12758. else
  12759. lt_cv_prog_compiler_c_o_CXX=no
  12760. $RM -r conftest 2>/dev/null
  12761. mkdir conftest
  12762. cd conftest
  12763. mkdir out
  12764. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12765. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12766. # Insert the option either (1) after the last *FLAGS variable, or
  12767. # (2) before a word containing "conftest.", or (3) at the end.
  12768. # Note that $ac_compile itself does not contain backslashes and begins
  12769. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12770. lt_compile=`echo "$ac_compile" | $SED \
  12771. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12772. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12773. -e 's:$: $lt_compiler_flag:'`
  12774. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12775. (eval "$lt_compile" 2>out/conftest.err)
  12776. ac_status=$?
  12777. cat out/conftest.err >&5
  12778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12779. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12780. then
  12781. # The compiler can only warn and ignore the option if not recognized
  12782. # So say no if there are warnings
  12783. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12784. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12785. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12786. lt_cv_prog_compiler_c_o_CXX=yes
  12787. fi
  12788. fi
  12789. chmod u+w . 2>&5
  12790. $RM conftest*
  12791. # SGI C++ compiler will create directory out/ii_files/ for
  12792. # template instantiation
  12793. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12794. $RM out/* && rmdir out
  12795. cd ..
  12796. $RM -r conftest
  12797. $RM conftest*
  12798. fi
  12799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12800. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12801. hard_links="nottested"
  12802. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12803. # do not overwrite the value of need_locks provided by the user
  12804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12805. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12806. hard_links=yes
  12807. $RM conftest*
  12808. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12809. touch conftest.a
  12810. ln conftest.a conftest.b 2>&5 || hard_links=no
  12811. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12813. $as_echo "$hard_links" >&6; }
  12814. if test "$hard_links" = no; then
  12815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12816. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12817. need_locks=warn
  12818. fi
  12819. else
  12820. need_locks=no
  12821. fi
  12822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12823. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12824. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12825. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12826. case $host_os in
  12827. aix[4-9]*)
  12828. # If we're using GNU nm, then we don't want the "-C" option.
  12829. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12830. # Also, AIX nm treats weak defined symbols like other global defined
  12831. # symbols, whereas GNU nm marks them as "W".
  12832. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12833. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12834. else
  12835. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12836. fi
  12837. ;;
  12838. pw32*)
  12839. export_symbols_cmds_CXX="$ltdll_cmds"
  12840. ;;
  12841. cygwin* | mingw* | cegcc*)
  12842. case $cc_basename in
  12843. cl*)
  12844. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12845. ;;
  12846. *)
  12847. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12848. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12849. ;;
  12850. esac
  12851. ;;
  12852. *)
  12853. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12854. ;;
  12855. esac
  12856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12857. $as_echo "$ld_shlibs_CXX" >&6; }
  12858. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12859. with_gnu_ld_CXX=$with_gnu_ld
  12860. #
  12861. # Do we need to explicitly link libc?
  12862. #
  12863. case "x$archive_cmds_need_lc_CXX" in
  12864. x|xyes)
  12865. # Assume -lc should be added
  12866. archive_cmds_need_lc_CXX=yes
  12867. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12868. case $archive_cmds_CXX in
  12869. *'~'*)
  12870. # FIXME: we may have to deal with multi-command sequences.
  12871. ;;
  12872. '$CC '*)
  12873. # Test whether the compiler implicitly links with -lc since on some
  12874. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12875. # to ld, don't add -lc before -lgcc.
  12876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12877. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12878. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12879. $as_echo_n "(cached) " >&6
  12880. else
  12881. $RM conftest*
  12882. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12884. (eval $ac_compile) 2>&5
  12885. ac_status=$?
  12886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12887. test $ac_status = 0; } 2>conftest.err; then
  12888. soname=conftest
  12889. lib=conftest
  12890. libobjs=conftest.$ac_objext
  12891. deplibs=
  12892. wl=$lt_prog_compiler_wl_CXX
  12893. pic_flag=$lt_prog_compiler_pic_CXX
  12894. compiler_flags=-v
  12895. linker_flags=-v
  12896. verstring=
  12897. output_objdir=.
  12898. libname=conftest
  12899. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12900. allow_undefined_flag_CXX=
  12901. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12902. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12903. ac_status=$?
  12904. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12905. test $ac_status = 0; }
  12906. then
  12907. lt_cv_archive_cmds_need_lc_CXX=no
  12908. else
  12909. lt_cv_archive_cmds_need_lc_CXX=yes
  12910. fi
  12911. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12912. else
  12913. cat conftest.err 1>&5
  12914. fi
  12915. $RM conftest*
  12916. fi
  12917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12918. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12919. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12920. ;;
  12921. esac
  12922. fi
  12923. ;;
  12924. esac
  12925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12926. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12927. library_names_spec=
  12928. libname_spec='lib$name'
  12929. soname_spec=
  12930. shrext_cmds=".so"
  12931. postinstall_cmds=
  12932. postuninstall_cmds=
  12933. finish_cmds=
  12934. finish_eval=
  12935. shlibpath_var=
  12936. shlibpath_overrides_runpath=unknown
  12937. version_type=none
  12938. dynamic_linker="$host_os ld.so"
  12939. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12940. need_lib_prefix=unknown
  12941. hardcode_into_libs=no
  12942. # when you set need_version to no, make sure it does not cause -set_version
  12943. # flags to be left without arguments
  12944. need_version=unknown
  12945. case $host_os in
  12946. aix3*)
  12947. version_type=linux # correct to gnu/linux during the next big refactor
  12948. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12949. shlibpath_var=LIBPATH
  12950. # AIX 3 has no versioning support, so we append a major version to the name.
  12951. soname_spec='${libname}${release}${shared_ext}$major'
  12952. ;;
  12953. aix[4-9]*)
  12954. version_type=linux # correct to gnu/linux during the next big refactor
  12955. need_lib_prefix=no
  12956. need_version=no
  12957. hardcode_into_libs=yes
  12958. if test "$host_cpu" = ia64; then
  12959. # AIX 5 supports IA64
  12960. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12961. shlibpath_var=LD_LIBRARY_PATH
  12962. else
  12963. # With GCC up to 2.95.x, collect2 would create an import file
  12964. # for dependence libraries. The import file would start with
  12965. # the line `#! .'. This would cause the generated library to
  12966. # depend on `.', always an invalid library. This was fixed in
  12967. # development snapshots of GCC prior to 3.0.
  12968. case $host_os in
  12969. aix4 | aix4.[01] | aix4.[01].*)
  12970. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12971. echo ' yes '
  12972. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12973. :
  12974. else
  12975. can_build_shared=no
  12976. fi
  12977. ;;
  12978. esac
  12979. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12980. # soname into executable. Probably we can add versioning support to
  12981. # collect2, so additional links can be useful in future.
  12982. if test "$aix_use_runtimelinking" = yes; then
  12983. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12984. # instead of lib<name>.a to let people know that these are not
  12985. # typical AIX shared libraries.
  12986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12987. else
  12988. # We preserve .a as extension for shared libraries through AIX4.2
  12989. # and later when we are not doing run time linking.
  12990. library_names_spec='${libname}${release}.a $libname.a'
  12991. soname_spec='${libname}${release}${shared_ext}$major'
  12992. fi
  12993. shlibpath_var=LIBPATH
  12994. fi
  12995. ;;
  12996. amigaos*)
  12997. case $host_cpu in
  12998. powerpc)
  12999. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13000. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13002. ;;
  13003. m68k)
  13004. library_names_spec='$libname.ixlibrary $libname.a'
  13005. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13006. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13007. ;;
  13008. esac
  13009. ;;
  13010. beos*)
  13011. library_names_spec='${libname}${shared_ext}'
  13012. dynamic_linker="$host_os ld.so"
  13013. shlibpath_var=LIBRARY_PATH
  13014. ;;
  13015. bsdi[45]*)
  13016. version_type=linux # correct to gnu/linux during the next big refactor
  13017. need_version=no
  13018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13019. soname_spec='${libname}${release}${shared_ext}$major'
  13020. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13021. shlibpath_var=LD_LIBRARY_PATH
  13022. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13023. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13024. # the default ld.so.conf also contains /usr/contrib/lib and
  13025. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13026. # libtool to hard-code these into programs
  13027. ;;
  13028. cygwin* | mingw* | pw32* | cegcc*)
  13029. version_type=windows
  13030. shrext_cmds=".dll"
  13031. need_version=no
  13032. need_lib_prefix=no
  13033. case $GCC,$cc_basename in
  13034. yes,*)
  13035. # gcc
  13036. library_names_spec='$libname.dll.a'
  13037. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13038. postinstall_cmds='base_file=`basename \${file}`~
  13039. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13040. dldir=$destdir/`dirname \$dlpath`~
  13041. test -d \$dldir || mkdir -p \$dldir~
  13042. $install_prog $dir/$dlname \$dldir/$dlname~
  13043. chmod a+x \$dldir/$dlname~
  13044. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13045. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13046. fi'
  13047. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13048. dlpath=$dir/\$dldll~
  13049. $RM \$dlpath'
  13050. shlibpath_overrides_runpath=yes
  13051. case $host_os in
  13052. cygwin*)
  13053. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13054. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13055. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13056. ;;
  13057. mingw* | cegcc*)
  13058. # MinGW DLLs use traditional 'lib' prefix
  13059. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13060. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13061. ;;
  13062. pw32*)
  13063. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13064. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13065. ;;
  13066. esac
  13067. dynamic_linker='Win32 ld.exe'
  13068. ;;
  13069. *,cl*)
  13070. # Native MSVC
  13071. libname_spec='$name'
  13072. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13073. library_names_spec='${libname}.dll.lib'
  13074. case $build_os in
  13075. mingw*)
  13076. sys_lib_search_path_spec=
  13077. lt_save_ifs=$IFS
  13078. IFS=';'
  13079. for lt_path in $LIB
  13080. do
  13081. IFS=$lt_save_ifs
  13082. # Let DOS variable expansion print the short 8.3 style file name.
  13083. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13084. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13085. done
  13086. IFS=$lt_save_ifs
  13087. # Convert to MSYS style.
  13088. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13089. ;;
  13090. cygwin*)
  13091. # Convert to unix form, then to dos form, then back to unix form
  13092. # but this time dos style (no spaces!) so that the unix form looks
  13093. # like /cygdrive/c/PROGRA~1:/cygdr...
  13094. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13095. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13096. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13097. ;;
  13098. *)
  13099. sys_lib_search_path_spec="$LIB"
  13100. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13101. # It is most probably a Windows format PATH.
  13102. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13103. else
  13104. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13105. fi
  13106. # FIXME: find the short name or the path components, as spaces are
  13107. # common. (e.g. "Program Files" -> "PROGRA~1")
  13108. ;;
  13109. esac
  13110. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13111. postinstall_cmds='base_file=`basename \${file}`~
  13112. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13113. dldir=$destdir/`dirname \$dlpath`~
  13114. test -d \$dldir || mkdir -p \$dldir~
  13115. $install_prog $dir/$dlname \$dldir/$dlname'
  13116. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13117. dlpath=$dir/\$dldll~
  13118. $RM \$dlpath'
  13119. shlibpath_overrides_runpath=yes
  13120. dynamic_linker='Win32 link.exe'
  13121. ;;
  13122. *)
  13123. # Assume MSVC wrapper
  13124. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13125. dynamic_linker='Win32 ld.exe'
  13126. ;;
  13127. esac
  13128. # FIXME: first we should search . and the directory the executable is in
  13129. shlibpath_var=PATH
  13130. ;;
  13131. darwin* | rhapsody*)
  13132. dynamic_linker="$host_os dyld"
  13133. version_type=darwin
  13134. need_lib_prefix=no
  13135. need_version=no
  13136. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13137. soname_spec='${libname}${release}${major}$shared_ext'
  13138. shlibpath_overrides_runpath=yes
  13139. shlibpath_var=DYLD_LIBRARY_PATH
  13140. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13141. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13142. ;;
  13143. dgux*)
  13144. version_type=linux # correct to gnu/linux during the next big refactor
  13145. need_lib_prefix=no
  13146. need_version=no
  13147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13148. soname_spec='${libname}${release}${shared_ext}$major'
  13149. shlibpath_var=LD_LIBRARY_PATH
  13150. ;;
  13151. freebsd* | dragonfly*)
  13152. # DragonFly does not have aout. When/if they implement a new
  13153. # versioning mechanism, adjust this.
  13154. if test -x /usr/bin/objformat; then
  13155. objformat=`/usr/bin/objformat`
  13156. else
  13157. case $host_os in
  13158. freebsd[23].*) objformat=aout ;;
  13159. *) objformat=elf ;;
  13160. esac
  13161. fi
  13162. version_type=freebsd-$objformat
  13163. case $version_type in
  13164. freebsd-elf*)
  13165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13166. need_version=no
  13167. need_lib_prefix=no
  13168. ;;
  13169. freebsd-*)
  13170. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13171. need_version=yes
  13172. ;;
  13173. esac
  13174. shlibpath_var=LD_LIBRARY_PATH
  13175. case $host_os in
  13176. freebsd2.*)
  13177. shlibpath_overrides_runpath=yes
  13178. ;;
  13179. freebsd3.[01]* | freebsdelf3.[01]*)
  13180. shlibpath_overrides_runpath=yes
  13181. hardcode_into_libs=yes
  13182. ;;
  13183. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13184. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13185. shlibpath_overrides_runpath=no
  13186. hardcode_into_libs=yes
  13187. ;;
  13188. *) # from 4.6 on, and DragonFly
  13189. shlibpath_overrides_runpath=yes
  13190. hardcode_into_libs=yes
  13191. ;;
  13192. esac
  13193. ;;
  13194. gnu*)
  13195. version_type=linux # correct to gnu/linux during the next big refactor
  13196. need_lib_prefix=no
  13197. need_version=no
  13198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13199. soname_spec='${libname}${release}${shared_ext}$major'
  13200. shlibpath_var=LD_LIBRARY_PATH
  13201. shlibpath_overrides_runpath=no
  13202. hardcode_into_libs=yes
  13203. ;;
  13204. haiku*)
  13205. version_type=linux # correct to gnu/linux during the next big refactor
  13206. need_lib_prefix=no
  13207. need_version=no
  13208. dynamic_linker="$host_os runtime_loader"
  13209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13210. soname_spec='${libname}${release}${shared_ext}$major'
  13211. shlibpath_var=LIBRARY_PATH
  13212. shlibpath_overrides_runpath=yes
  13213. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13214. hardcode_into_libs=yes
  13215. ;;
  13216. hpux9* | hpux10* | hpux11*)
  13217. # Give a soname corresponding to the major version so that dld.sl refuses to
  13218. # link against other versions.
  13219. version_type=sunos
  13220. need_lib_prefix=no
  13221. need_version=no
  13222. case $host_cpu in
  13223. ia64*)
  13224. shrext_cmds='.so'
  13225. hardcode_into_libs=yes
  13226. dynamic_linker="$host_os dld.so"
  13227. shlibpath_var=LD_LIBRARY_PATH
  13228. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13230. soname_spec='${libname}${release}${shared_ext}$major'
  13231. if test "X$HPUX_IA64_MODE" = X32; then
  13232. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13233. else
  13234. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13235. fi
  13236. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13237. ;;
  13238. hppa*64*)
  13239. shrext_cmds='.sl'
  13240. hardcode_into_libs=yes
  13241. dynamic_linker="$host_os dld.sl"
  13242. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13243. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13245. soname_spec='${libname}${release}${shared_ext}$major'
  13246. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13247. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13248. ;;
  13249. *)
  13250. shrext_cmds='.sl'
  13251. dynamic_linker="$host_os dld.sl"
  13252. shlibpath_var=SHLIB_PATH
  13253. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13255. soname_spec='${libname}${release}${shared_ext}$major'
  13256. ;;
  13257. esac
  13258. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13259. postinstall_cmds='chmod 555 $lib'
  13260. # or fails outright, so override atomically:
  13261. install_override_mode=555
  13262. ;;
  13263. interix[3-9]*)
  13264. version_type=linux # correct to gnu/linux during the next big refactor
  13265. need_lib_prefix=no
  13266. need_version=no
  13267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13268. soname_spec='${libname}${release}${shared_ext}$major'
  13269. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13270. shlibpath_var=LD_LIBRARY_PATH
  13271. shlibpath_overrides_runpath=no
  13272. hardcode_into_libs=yes
  13273. ;;
  13274. irix5* | irix6* | nonstopux*)
  13275. case $host_os in
  13276. nonstopux*) version_type=nonstopux ;;
  13277. *)
  13278. if test "$lt_cv_prog_gnu_ld" = yes; then
  13279. version_type=linux # correct to gnu/linux during the next big refactor
  13280. else
  13281. version_type=irix
  13282. fi ;;
  13283. esac
  13284. need_lib_prefix=no
  13285. need_version=no
  13286. soname_spec='${libname}${release}${shared_ext}$major'
  13287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13288. case $host_os in
  13289. irix5* | nonstopux*)
  13290. libsuff= shlibsuff=
  13291. ;;
  13292. *)
  13293. case $LD in # libtool.m4 will add one of these switches to LD
  13294. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13295. libsuff= shlibsuff= libmagic=32-bit;;
  13296. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13297. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13298. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13299. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13300. *) libsuff= shlibsuff= libmagic=never-match;;
  13301. esac
  13302. ;;
  13303. esac
  13304. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13305. shlibpath_overrides_runpath=no
  13306. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13307. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13308. hardcode_into_libs=yes
  13309. ;;
  13310. # No shared lib support for Linux oldld, aout, or coff.
  13311. linux*oldld* | linux*aout* | linux*coff*)
  13312. dynamic_linker=no
  13313. ;;
  13314. # This must be glibc/ELF.
  13315. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13316. version_type=linux # correct to gnu/linux during the next big refactor
  13317. need_lib_prefix=no
  13318. need_version=no
  13319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13320. soname_spec='${libname}${release}${shared_ext}$major'
  13321. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13322. shlibpath_var=LD_LIBRARY_PATH
  13323. shlibpath_overrides_runpath=no
  13324. # Some binutils ld are patched to set DT_RUNPATH
  13325. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13326. $as_echo_n "(cached) " >&6
  13327. else
  13328. lt_cv_shlibpath_overrides_runpath=no
  13329. save_LDFLAGS=$LDFLAGS
  13330. save_libdir=$libdir
  13331. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13332. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13334. /* end confdefs.h. */
  13335. int
  13336. main ()
  13337. {
  13338. ;
  13339. return 0;
  13340. }
  13341. _ACEOF
  13342. if ac_fn_cxx_try_link "$LINENO"; then :
  13343. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13344. lt_cv_shlibpath_overrides_runpath=yes
  13345. fi
  13346. fi
  13347. rm -f core conftest.err conftest.$ac_objext \
  13348. conftest$ac_exeext conftest.$ac_ext
  13349. LDFLAGS=$save_LDFLAGS
  13350. libdir=$save_libdir
  13351. fi
  13352. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13353. # This implies no fast_install, which is unacceptable.
  13354. # Some rework will be needed to allow for fast_install
  13355. # before this can be enabled.
  13356. hardcode_into_libs=yes
  13357. # Append ld.so.conf contents to the search path
  13358. if test -f /etc/ld.so.conf; then
  13359. 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' ' '`
  13360. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13361. fi
  13362. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13363. # powerpc, because MkLinux only supported shared libraries with the
  13364. # GNU dynamic linker. Since this was broken with cross compilers,
  13365. # most powerpc-linux boxes support dynamic linking these days and
  13366. # people can always --disable-shared, the test was removed, and we
  13367. # assume the GNU/Linux dynamic linker is in use.
  13368. dynamic_linker='GNU/Linux ld.so'
  13369. ;;
  13370. netbsd*)
  13371. version_type=sunos
  13372. need_lib_prefix=no
  13373. need_version=no
  13374. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13376. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13377. dynamic_linker='NetBSD (a.out) ld.so'
  13378. else
  13379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13380. soname_spec='${libname}${release}${shared_ext}$major'
  13381. dynamic_linker='NetBSD ld.elf_so'
  13382. fi
  13383. shlibpath_var=LD_LIBRARY_PATH
  13384. shlibpath_overrides_runpath=yes
  13385. hardcode_into_libs=yes
  13386. ;;
  13387. newsos6)
  13388. version_type=linux # correct to gnu/linux during the next big refactor
  13389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13390. shlibpath_var=LD_LIBRARY_PATH
  13391. shlibpath_overrides_runpath=yes
  13392. ;;
  13393. *nto* | *qnx*)
  13394. version_type=qnx
  13395. need_lib_prefix=no
  13396. need_version=no
  13397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13398. soname_spec='${libname}${release}${shared_ext}$major'
  13399. shlibpath_var=LD_LIBRARY_PATH
  13400. shlibpath_overrides_runpath=no
  13401. hardcode_into_libs=yes
  13402. dynamic_linker='ldqnx.so'
  13403. ;;
  13404. openbsd*)
  13405. version_type=sunos
  13406. sys_lib_dlsearch_path_spec="/usr/lib"
  13407. need_lib_prefix=no
  13408. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13409. case $host_os in
  13410. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13411. *) need_version=no ;;
  13412. esac
  13413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13414. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13415. shlibpath_var=LD_LIBRARY_PATH
  13416. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13417. case $host_os in
  13418. openbsd2.[89] | openbsd2.[89].*)
  13419. shlibpath_overrides_runpath=no
  13420. ;;
  13421. *)
  13422. shlibpath_overrides_runpath=yes
  13423. ;;
  13424. esac
  13425. else
  13426. shlibpath_overrides_runpath=yes
  13427. fi
  13428. ;;
  13429. os2*)
  13430. libname_spec='$name'
  13431. shrext_cmds=".dll"
  13432. need_lib_prefix=no
  13433. library_names_spec='$libname${shared_ext} $libname.a'
  13434. dynamic_linker='OS/2 ld.exe'
  13435. shlibpath_var=LIBPATH
  13436. ;;
  13437. osf3* | osf4* | osf5*)
  13438. version_type=osf
  13439. need_lib_prefix=no
  13440. need_version=no
  13441. soname_spec='${libname}${release}${shared_ext}$major'
  13442. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13443. shlibpath_var=LD_LIBRARY_PATH
  13444. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13445. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13446. ;;
  13447. rdos*)
  13448. dynamic_linker=no
  13449. ;;
  13450. solaris*)
  13451. version_type=linux # correct to gnu/linux during the next big refactor
  13452. need_lib_prefix=no
  13453. need_version=no
  13454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13455. soname_spec='${libname}${release}${shared_ext}$major'
  13456. shlibpath_var=LD_LIBRARY_PATH
  13457. shlibpath_overrides_runpath=yes
  13458. hardcode_into_libs=yes
  13459. # ldd complains unless libraries are executable
  13460. postinstall_cmds='chmod +x $lib'
  13461. ;;
  13462. sunos4*)
  13463. version_type=sunos
  13464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13465. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13466. shlibpath_var=LD_LIBRARY_PATH
  13467. shlibpath_overrides_runpath=yes
  13468. if test "$with_gnu_ld" = yes; then
  13469. need_lib_prefix=no
  13470. fi
  13471. need_version=yes
  13472. ;;
  13473. sysv4 | sysv4.3*)
  13474. version_type=linux # correct to gnu/linux during the next big refactor
  13475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13476. soname_spec='${libname}${release}${shared_ext}$major'
  13477. shlibpath_var=LD_LIBRARY_PATH
  13478. case $host_vendor in
  13479. sni)
  13480. shlibpath_overrides_runpath=no
  13481. need_lib_prefix=no
  13482. runpath_var=LD_RUN_PATH
  13483. ;;
  13484. siemens)
  13485. need_lib_prefix=no
  13486. ;;
  13487. motorola)
  13488. need_lib_prefix=no
  13489. need_version=no
  13490. shlibpath_overrides_runpath=no
  13491. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13492. ;;
  13493. esac
  13494. ;;
  13495. sysv4*MP*)
  13496. if test -d /usr/nec ;then
  13497. version_type=linux # correct to gnu/linux during the next big refactor
  13498. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13499. soname_spec='$libname${shared_ext}.$major'
  13500. shlibpath_var=LD_LIBRARY_PATH
  13501. fi
  13502. ;;
  13503. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13504. version_type=freebsd-elf
  13505. need_lib_prefix=no
  13506. need_version=no
  13507. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13508. soname_spec='${libname}${release}${shared_ext}$major'
  13509. shlibpath_var=LD_LIBRARY_PATH
  13510. shlibpath_overrides_runpath=yes
  13511. hardcode_into_libs=yes
  13512. if test "$with_gnu_ld" = yes; then
  13513. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13514. else
  13515. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13516. case $host_os in
  13517. sco3.2v5*)
  13518. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13519. ;;
  13520. esac
  13521. fi
  13522. sys_lib_dlsearch_path_spec='/usr/lib'
  13523. ;;
  13524. tpf*)
  13525. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13526. version_type=linux # correct to gnu/linux during the next big refactor
  13527. need_lib_prefix=no
  13528. need_version=no
  13529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13530. shlibpath_var=LD_LIBRARY_PATH
  13531. shlibpath_overrides_runpath=no
  13532. hardcode_into_libs=yes
  13533. ;;
  13534. uts4*)
  13535. version_type=linux # correct to gnu/linux during the next big refactor
  13536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13537. soname_spec='${libname}${release}${shared_ext}$major'
  13538. shlibpath_var=LD_LIBRARY_PATH
  13539. ;;
  13540. *)
  13541. dynamic_linker=no
  13542. ;;
  13543. esac
  13544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13545. $as_echo "$dynamic_linker" >&6; }
  13546. test "$dynamic_linker" = no && can_build_shared=no
  13547. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13548. if test "$GCC" = yes; then
  13549. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13550. fi
  13551. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13552. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13553. fi
  13554. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13555. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13556. fi
  13557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13558. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13559. hardcode_action_CXX=
  13560. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13561. test -n "$runpath_var_CXX" ||
  13562. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13563. # We can hardcode non-existent directories.
  13564. if test "$hardcode_direct_CXX" != no &&
  13565. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13566. # have to relink, otherwise we might link with an installed library
  13567. # when we should be linking with a yet-to-be-installed one
  13568. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13569. test "$hardcode_minus_L_CXX" != no; then
  13570. # Linking always hardcodes the temporary library directory.
  13571. hardcode_action_CXX=relink
  13572. else
  13573. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13574. hardcode_action_CXX=immediate
  13575. fi
  13576. else
  13577. # We cannot hardcode anything, or else we can only hardcode existing
  13578. # directories.
  13579. hardcode_action_CXX=unsupported
  13580. fi
  13581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13582. $as_echo "$hardcode_action_CXX" >&6; }
  13583. if test "$hardcode_action_CXX" = relink ||
  13584. test "$inherit_rpath_CXX" = yes; then
  13585. # Fast installation is not supported
  13586. enable_fast_install=no
  13587. elif test "$shlibpath_overrides_runpath" = yes ||
  13588. test "$enable_shared" = no; then
  13589. # Fast installation is not necessary
  13590. enable_fast_install=needless
  13591. fi
  13592. fi # test -n "$compiler"
  13593. CC=$lt_save_CC
  13594. CFLAGS=$lt_save_CFLAGS
  13595. LDCXX=$LD
  13596. LD=$lt_save_LD
  13597. GCC=$lt_save_GCC
  13598. with_gnu_ld=$lt_save_with_gnu_ld
  13599. lt_cv_path_LDCXX=$lt_cv_path_LD
  13600. lt_cv_path_LD=$lt_save_path_LD
  13601. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13602. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13603. fi # test "$_lt_caught_CXX_error" != yes
  13604. ac_ext=c
  13605. ac_cpp='$CPP $CPPFLAGS'
  13606. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13607. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13608. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13609. # Find a good install program. We prefer a C program (faster),
  13610. # so one script is as good as another. But avoid the broken or
  13611. # incompatible versions:
  13612. # SysV /etc/install, /usr/sbin/install
  13613. # SunOS /usr/etc/install
  13614. # IRIX /sbin/install
  13615. # AIX /bin/install
  13616. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13617. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13618. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13619. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13620. # OS/2's system install, which has a completely different semantic
  13621. # ./install, which can be erroneously created by make from ./install.sh.
  13622. # Reject install programs that cannot install multiple files.
  13623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13624. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13625. if test -z "$INSTALL"; then
  13626. if ${ac_cv_path_install+:} false; then :
  13627. $as_echo_n "(cached) " >&6
  13628. else
  13629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13630. for as_dir in $PATH
  13631. do
  13632. IFS=$as_save_IFS
  13633. test -z "$as_dir" && as_dir=.
  13634. # Account for people who put trailing slashes in PATH elements.
  13635. case $as_dir/ in #((
  13636. ./ | .// | /[cC]/* | \
  13637. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13638. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13639. /usr/ucb/* ) ;;
  13640. *)
  13641. # OSF1 and SCO ODT 3.0 have their own names for install.
  13642. # Don't use installbsd from OSF since it installs stuff as root
  13643. # by default.
  13644. for ac_prog in ginstall scoinst install; do
  13645. for ac_exec_ext in '' $ac_executable_extensions; do
  13646. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13647. if test $ac_prog = install &&
  13648. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13649. # AIX install. It has an incompatible calling convention.
  13650. :
  13651. elif test $ac_prog = install &&
  13652. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13653. # program-specific install script used by HP pwplus--don't use.
  13654. :
  13655. else
  13656. rm -rf conftest.one conftest.two conftest.dir
  13657. echo one > conftest.one
  13658. echo two > conftest.two
  13659. mkdir conftest.dir
  13660. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13661. test -s conftest.one && test -s conftest.two &&
  13662. test -s conftest.dir/conftest.one &&
  13663. test -s conftest.dir/conftest.two
  13664. then
  13665. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13666. break 3
  13667. fi
  13668. fi
  13669. fi
  13670. done
  13671. done
  13672. ;;
  13673. esac
  13674. done
  13675. IFS=$as_save_IFS
  13676. rm -rf conftest.one conftest.two conftest.dir
  13677. fi
  13678. if test "${ac_cv_path_install+set}" = set; then
  13679. INSTALL=$ac_cv_path_install
  13680. else
  13681. # As a last resort, use the slow shell script. Don't cache a
  13682. # value for INSTALL within a source directory, because that will
  13683. # break other packages using the cache if that directory is
  13684. # removed, or if the value is a relative name.
  13685. INSTALL=$ac_install_sh
  13686. fi
  13687. fi
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13689. $as_echo "$INSTALL" >&6; }
  13690. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13691. # It thinks the first close brace ends the variable substitution.
  13692. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13693. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13694. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13696. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13697. set x ${MAKE-make}
  13698. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13699. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13700. $as_echo_n "(cached) " >&6
  13701. else
  13702. cat >conftest.make <<\_ACEOF
  13703. SHELL = /bin/sh
  13704. all:
  13705. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13706. _ACEOF
  13707. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13708. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13709. *@@@%%%=?*=@@@%%%*)
  13710. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13711. *)
  13712. eval ac_cv_prog_make_${ac_make}_set=no;;
  13713. esac
  13714. rm -f conftest.make
  13715. fi
  13716. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13718. $as_echo "yes" >&6; }
  13719. SET_MAKE=
  13720. else
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13722. $as_echo "no" >&6; }
  13723. SET_MAKE="MAKE=${MAKE-make}"
  13724. fi
  13725. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13726. if test -n "$ac_tool_prefix"; then
  13727. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13728. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13730. $as_echo_n "checking for $ac_word... " >&6; }
  13731. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13732. $as_echo_n "(cached) " >&6
  13733. else
  13734. case $PKG_CONFIG in
  13735. [\\/]* | ?:[\\/]*)
  13736. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13737. ;;
  13738. *)
  13739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13740. for as_dir in $PATH
  13741. do
  13742. IFS=$as_save_IFS
  13743. test -z "$as_dir" && as_dir=.
  13744. for ac_exec_ext in '' $ac_executable_extensions; do
  13745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13746. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13748. break 2
  13749. fi
  13750. done
  13751. done
  13752. IFS=$as_save_IFS
  13753. ;;
  13754. esac
  13755. fi
  13756. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13757. if test -n "$PKG_CONFIG"; then
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13759. $as_echo "$PKG_CONFIG" >&6; }
  13760. else
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13762. $as_echo "no" >&6; }
  13763. fi
  13764. fi
  13765. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13766. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13767. # Extract the first word of "pkg-config", so it can be a program name with args.
  13768. set dummy pkg-config; ac_word=$2
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13770. $as_echo_n "checking for $ac_word... " >&6; }
  13771. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13772. $as_echo_n "(cached) " >&6
  13773. else
  13774. case $ac_pt_PKG_CONFIG in
  13775. [\\/]* | ?:[\\/]*)
  13776. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13777. ;;
  13778. *)
  13779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13780. for as_dir in $PATH
  13781. do
  13782. IFS=$as_save_IFS
  13783. test -z "$as_dir" && as_dir=.
  13784. for ac_exec_ext in '' $ac_executable_extensions; do
  13785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13786. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13788. break 2
  13789. fi
  13790. done
  13791. done
  13792. IFS=$as_save_IFS
  13793. ;;
  13794. esac
  13795. fi
  13796. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13797. if test -n "$ac_pt_PKG_CONFIG"; then
  13798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13799. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13800. else
  13801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13802. $as_echo "no" >&6; }
  13803. fi
  13804. if test "x$ac_pt_PKG_CONFIG" = x; then
  13805. PKG_CONFIG=""
  13806. else
  13807. case $cross_compiling:$ac_tool_warned in
  13808. yes:)
  13809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13811. ac_tool_warned=yes ;;
  13812. esac
  13813. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13814. fi
  13815. else
  13816. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13817. fi
  13818. fi
  13819. if test -n "$PKG_CONFIG"; then
  13820. _pkg_min_version=0.9.0
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13822. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13823. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13825. $as_echo "yes" >&6; }
  13826. else
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13828. $as_echo "no" >&6; }
  13829. PKG_CONFIG=""
  13830. fi
  13831. fi
  13832. case "$host" in
  13833. *-*-mingw*)
  13834. # Except on msys, where make can't handle full pathnames (bug 1972)
  13835. ;;
  13836. *)
  13837. srcdir=`cd $srcdir && pwd`
  13838. ;;
  13839. esac
  13840. INCLUDE="-I$srcdir/include"
  13841. case "$host" in
  13842. *-*-nto-qnx*)
  13843. ;;
  13844. *)
  13845. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13846. ;;
  13847. esac
  13848. case "$host" in
  13849. *-*-haiku*)
  13850. LINKER='$(CXX)'
  13851. LIBTOOLLINKERTAG='CXX'
  13852. ;;
  13853. *)
  13854. LINKER='$(CC)'
  13855. LIBTOOLLINKERTAG='CC'
  13856. ;;
  13857. esac
  13858. if test x$srcdir != x.; then
  13859. INCLUDE="-Iinclude $INCLUDE"
  13860. elif test -d .git; then
  13861. as_fn_error $? "
  13862. *** When building from a git clone you should configure and build in a
  13863. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13864. " "$LINENO" 5
  13865. fi
  13866. BASE_CFLAGS=""
  13867. BASE_LDFLAGS=""
  13868. case "$host" in
  13869. *-*-cygwin*)
  13870. # We build SDL on cygwin without the UNIX emulation layer
  13871. save_CFLAGS="$CFLAGS"
  13872. have_no_cygwin=no
  13873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13874. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13875. CFLAGS="$save_CFLAGS -mno-cygwin"
  13876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13877. /* end confdefs.h. */
  13878. int
  13879. main ()
  13880. {
  13881. ;
  13882. return 0;
  13883. }
  13884. _ACEOF
  13885. if ac_fn_c_try_compile "$LINENO"; then :
  13886. have_no_cygwin=yes
  13887. fi
  13888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13890. $as_echo "$have_no_cygwin" >&6; }
  13891. CFLAGS="$save_CFLAGS"
  13892. if test x$have_no_cygwin = xyes; then
  13893. BASE_CFLAGS="-mno-cygwin"
  13894. BASE_LDFLAGS="-mno-cygwin"
  13895. fi
  13896. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13897. ;;
  13898. esac
  13899. # Uncomment the following line if you want to force SDL and applications
  13900. # built with it to be compiled for a particular architecture.
  13901. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13902. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13903. # The default optimization for SDL is -O3 (Bug #31)
  13904. if test "x$orig_CFLAGS" = x; then
  13905. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13906. fi
  13907. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13908. BUILD_LDFLAGS="$LDFLAGS"
  13909. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13910. ## These are common directories to find software packages
  13911. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13912. # if test -d $path/include; then
  13913. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13914. # fi
  13915. # if test -d $path/lib; then
  13916. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13917. # fi
  13918. #done
  13919. SDL_CFLAGS="$BASE_CFLAGS"
  13920. SDL_LIBS="-lSDL2"
  13921. if test "x$BASE_LDFLAGS" != x; then
  13922. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13923. fi
  13924. if test "x$EXTRA_CFLAGS" != x; then
  13925. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13926. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13927. fi
  13928. if test "x$EXTRA_LDFLAGS" != x; then
  13929. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13930. fi
  13931. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13932. find_lib()
  13933. {
  13934. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13935. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13936. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13937. if test "$cross_compiling" = yes; then
  13938. host_lib_path=""
  13939. else
  13940. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13941. fi
  13942. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13943. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13944. if test x$lib != x; then
  13945. echo $lib
  13946. return
  13947. fi
  13948. done
  13949. # Try again, this time allowing more than one version digit after the .so
  13950. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13951. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13952. if test x$lib != x; then
  13953. echo $lib
  13954. return
  13955. fi
  13956. done
  13957. }
  13958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13959. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13960. if ${ac_cv_c_const+:} false; then :
  13961. $as_echo_n "(cached) " >&6
  13962. else
  13963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13964. /* end confdefs.h. */
  13965. int
  13966. main ()
  13967. {
  13968. #ifndef __cplusplus
  13969. /* Ultrix mips cc rejects this sort of thing. */
  13970. typedef int charset[2];
  13971. const charset cs = { 0, 0 };
  13972. /* SunOS 4.1.1 cc rejects this. */
  13973. char const *const *pcpcc;
  13974. char **ppc;
  13975. /* NEC SVR4.0.2 mips cc rejects this. */
  13976. struct point {int x, y;};
  13977. static struct point const zero = {0,0};
  13978. /* AIX XL C 1.02.0.0 rejects this.
  13979. It does not let you subtract one const X* pointer from another in
  13980. an arm of an if-expression whose if-part is not a constant
  13981. expression */
  13982. const char *g = "string";
  13983. pcpcc = &g + (g ? g-g : 0);
  13984. /* HPUX 7.0 cc rejects these. */
  13985. ++pcpcc;
  13986. ppc = (char**) pcpcc;
  13987. pcpcc = (char const *const *) ppc;
  13988. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13989. char tx;
  13990. char *t = &tx;
  13991. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13992. *t++ = 0;
  13993. if (s) return 0;
  13994. }
  13995. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13996. int x[] = {25, 17};
  13997. const int *foo = &x[0];
  13998. ++foo;
  13999. }
  14000. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14001. typedef const int *iptr;
  14002. iptr p = 0;
  14003. ++p;
  14004. }
  14005. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14006. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14007. struct s { int j; const int *ap[3]; } bx;
  14008. struct s *b = &bx; b->j = 5;
  14009. }
  14010. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14011. const int foo = 10;
  14012. if (!foo) return 0;
  14013. }
  14014. return !cs[0] && !zero.x;
  14015. #endif
  14016. ;
  14017. return 0;
  14018. }
  14019. _ACEOF
  14020. if ac_fn_c_try_compile "$LINENO"; then :
  14021. ac_cv_c_const=yes
  14022. else
  14023. ac_cv_c_const=no
  14024. fi
  14025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14026. fi
  14027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14028. $as_echo "$ac_cv_c_const" >&6; }
  14029. if test $ac_cv_c_const = no; then
  14030. $as_echo "#define const /**/" >>confdefs.h
  14031. fi
  14032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14033. $as_echo_n "checking for inline... " >&6; }
  14034. if ${ac_cv_c_inline+:} false; then :
  14035. $as_echo_n "(cached) " >&6
  14036. else
  14037. ac_cv_c_inline=no
  14038. for ac_kw in inline __inline__ __inline; do
  14039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14040. /* end confdefs.h. */
  14041. #ifndef __cplusplus
  14042. typedef int foo_t;
  14043. static $ac_kw foo_t static_foo () {return 0; }
  14044. $ac_kw foo_t foo () {return 0; }
  14045. #endif
  14046. _ACEOF
  14047. if ac_fn_c_try_compile "$LINENO"; then :
  14048. ac_cv_c_inline=$ac_kw
  14049. fi
  14050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14051. test "$ac_cv_c_inline" != no && break
  14052. done
  14053. fi
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14055. $as_echo "$ac_cv_c_inline" >&6; }
  14056. case $ac_cv_c_inline in
  14057. inline | yes) ;;
  14058. *)
  14059. case $ac_cv_c_inline in
  14060. no) ac_val=;;
  14061. *) ac_val=$ac_cv_c_inline;;
  14062. esac
  14063. cat >>confdefs.h <<_ACEOF
  14064. #ifndef __cplusplus
  14065. #define inline $ac_val
  14066. #endif
  14067. _ACEOF
  14068. ;;
  14069. esac
  14070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14071. $as_echo_n "checking for working volatile... " >&6; }
  14072. if ${ac_cv_c_volatile+:} false; then :
  14073. $as_echo_n "(cached) " >&6
  14074. else
  14075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14076. /* end confdefs.h. */
  14077. int
  14078. main ()
  14079. {
  14080. volatile int x;
  14081. int * volatile y = (int *) 0;
  14082. return !x && !y;
  14083. ;
  14084. return 0;
  14085. }
  14086. _ACEOF
  14087. if ac_fn_c_try_compile "$LINENO"; then :
  14088. ac_cv_c_volatile=yes
  14089. else
  14090. ac_cv_c_volatile=no
  14091. fi
  14092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14093. fi
  14094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14095. $as_echo "$ac_cv_c_volatile" >&6; }
  14096. if test $ac_cv_c_volatile = no; then
  14097. $as_echo "#define volatile /**/" >>confdefs.h
  14098. fi
  14099. # Check whether --enable-assertions was given.
  14100. if test "${enable_assertions+set}" = set; then :
  14101. enableval=$enable_assertions;
  14102. else
  14103. enable_assertions=auto
  14104. fi
  14105. case "$enable_assertions" in
  14106. auto) # Use optimization settings to determine assertion level
  14107. ;;
  14108. disabled)
  14109. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14110. ;;
  14111. release)
  14112. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14113. ;;
  14114. enabled)
  14115. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14116. ;;
  14117. paranoid)
  14118. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14119. ;;
  14120. *)
  14121. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14122. ;;
  14123. esac
  14124. # Check whether --enable-dependency-tracking was given.
  14125. if test "${enable_dependency_tracking+set}" = set; then :
  14126. enableval=$enable_dependency_tracking;
  14127. else
  14128. enable_dependency_tracking=yes
  14129. fi
  14130. if test x$enable_dependency_tracking = xyes; then
  14131. have_gcc_mmd_mt=no
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14133. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14135. /* end confdefs.h. */
  14136. #if !defined(__GNUC__) || __GNUC__ < 3
  14137. #error Dependency tracking requires GCC 3.0 or newer
  14138. #endif
  14139. int
  14140. main ()
  14141. {
  14142. ;
  14143. return 0;
  14144. }
  14145. _ACEOF
  14146. if ac_fn_c_try_compile "$LINENO"; then :
  14147. have_gcc_mmd_mt=yes
  14148. fi
  14149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14151. $as_echo "$have_gcc_mmd_mt" >&6; }
  14152. if test x$have_gcc_mmd_mt = xyes; then
  14153. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14154. fi
  14155. fi
  14156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14157. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14158. have_no_undefined=no
  14159. case "$host" in
  14160. *-*-openbsd*)
  14161. ;;
  14162. *)
  14163. save_LDFLAGS="$LDFLAGS"
  14164. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14166. /* end confdefs.h. */
  14167. int
  14168. main ()
  14169. {
  14170. ;
  14171. return 0;
  14172. }
  14173. _ACEOF
  14174. if ac_fn_c_try_link "$LINENO"; then :
  14175. have_no_undefined=yes
  14176. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14177. fi
  14178. rm -f core conftest.err conftest.$ac_objext \
  14179. conftest$ac_exeext conftest.$ac_ext
  14180. LDFLAGS="$save_LDFLAGS"
  14181. ;;
  14182. esac
  14183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14184. $as_echo "$have_no_undefined" >&6; }
  14185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14186. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14187. have_dynamicbase=no
  14188. case "$host" in
  14189. *)
  14190. save_LDFLAGS="$LDFLAGS"
  14191. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14193. /* end confdefs.h. */
  14194. int
  14195. main ()
  14196. {
  14197. ;
  14198. return 0;
  14199. }
  14200. _ACEOF
  14201. if ac_fn_c_try_link "$LINENO"; then :
  14202. have_dynamicbase=yes
  14203. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14204. fi
  14205. rm -f core conftest.err conftest.$ac_objext \
  14206. conftest$ac_exeext conftest.$ac_ext
  14207. LDFLAGS="$save_LDFLAGS"
  14208. ;;
  14209. esac
  14210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14211. $as_echo "$have_dynamicbase" >&6; }
  14212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14213. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14214. have_nxcompat=no
  14215. case "$host" in
  14216. *)
  14217. save_LDFLAGS="$LDFLAGS"
  14218. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14220. /* end confdefs.h. */
  14221. int
  14222. main ()
  14223. {
  14224. ;
  14225. return 0;
  14226. }
  14227. _ACEOF
  14228. if ac_fn_c_try_link "$LINENO"; then :
  14229. have_nxcompat=yes
  14230. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14231. fi
  14232. rm -f core conftest.err conftest.$ac_objext \
  14233. conftest$ac_exeext conftest.$ac_ext
  14234. LDFLAGS="$save_LDFLAGS"
  14235. ;;
  14236. esac
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14238. $as_echo "$have_nxcompat" >&6; }
  14239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14240. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14241. have_high_entropy_va=no
  14242. case "$host" in
  14243. *)
  14244. save_LDFLAGS="$LDFLAGS"
  14245. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14247. /* end confdefs.h. */
  14248. int
  14249. main ()
  14250. {
  14251. ;
  14252. return 0;
  14253. }
  14254. _ACEOF
  14255. if ac_fn_c_try_link "$LINENO"; then :
  14256. have_high_entropy_va=yes
  14257. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14258. fi
  14259. rm -f core conftest.err conftest.$ac_objext \
  14260. conftest$ac_exeext conftest.$ac_ext
  14261. LDFLAGS="$save_LDFLAGS"
  14262. ;;
  14263. esac
  14264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14265. $as_echo "$have_high_entropy_va" >&6; }
  14266. # Check whether --enable-libc was given.
  14267. if test "${enable_libc+set}" = set; then :
  14268. enableval=$enable_libc;
  14269. else
  14270. enable_libc=yes
  14271. fi
  14272. if test x$enable_libc = xyes; then
  14273. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14275. $as_echo_n "checking for ANSI C header files... " >&6; }
  14276. if ${ac_cv_header_stdc+:} false; then :
  14277. $as_echo_n "(cached) " >&6
  14278. else
  14279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14280. /* end confdefs.h. */
  14281. #include <stdlib.h>
  14282. #include <stdarg.h>
  14283. #include <string.h>
  14284. #include <float.h>
  14285. int
  14286. main ()
  14287. {
  14288. ;
  14289. return 0;
  14290. }
  14291. _ACEOF
  14292. if ac_fn_c_try_compile "$LINENO"; then :
  14293. ac_cv_header_stdc=yes
  14294. else
  14295. ac_cv_header_stdc=no
  14296. fi
  14297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14298. if test $ac_cv_header_stdc = yes; then
  14299. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14301. /* end confdefs.h. */
  14302. #include <string.h>
  14303. _ACEOF
  14304. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14305. $EGREP "memchr" >/dev/null 2>&1; then :
  14306. else
  14307. ac_cv_header_stdc=no
  14308. fi
  14309. rm -f conftest*
  14310. fi
  14311. if test $ac_cv_header_stdc = yes; then
  14312. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14314. /* end confdefs.h. */
  14315. #include <stdlib.h>
  14316. _ACEOF
  14317. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14318. $EGREP "free" >/dev/null 2>&1; then :
  14319. else
  14320. ac_cv_header_stdc=no
  14321. fi
  14322. rm -f conftest*
  14323. fi
  14324. if test $ac_cv_header_stdc = yes; then
  14325. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14326. if test "$cross_compiling" = yes; then :
  14327. :
  14328. else
  14329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14330. /* end confdefs.h. */
  14331. #include <ctype.h>
  14332. #include <stdlib.h>
  14333. #if ((' ' & 0x0FF) == 0x020)
  14334. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14335. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14336. #else
  14337. # define ISLOWER(c) \
  14338. (('a' <= (c) && (c) <= 'i') \
  14339. || ('j' <= (c) && (c) <= 'r') \
  14340. || ('s' <= (c) && (c) <= 'z'))
  14341. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14342. #endif
  14343. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14344. int
  14345. main ()
  14346. {
  14347. int i;
  14348. for (i = 0; i < 256; i++)
  14349. if (XOR (islower (i), ISLOWER (i))
  14350. || toupper (i) != TOUPPER (i))
  14351. return 2;
  14352. return 0;
  14353. }
  14354. _ACEOF
  14355. if ac_fn_c_try_run "$LINENO"; then :
  14356. else
  14357. ac_cv_header_stdc=no
  14358. fi
  14359. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14360. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14361. fi
  14362. fi
  14363. fi
  14364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14365. $as_echo "$ac_cv_header_stdc" >&6; }
  14366. if test $ac_cv_header_stdc = yes; then
  14367. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14368. fi
  14369. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
  14370. do :
  14371. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14372. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14373. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14374. cat >>confdefs.h <<_ACEOF
  14375. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14376. _ACEOF
  14377. fi
  14378. done
  14379. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14380. if test "x$ac_cv_type_size_t" = xyes; then :
  14381. else
  14382. cat >>confdefs.h <<_ACEOF
  14383. #define size_t unsigned int
  14384. _ACEOF
  14385. fi
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14387. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14388. if ${ac_cv_define_M_PI+:} false; then :
  14389. $as_echo_n "(cached) " >&6
  14390. else
  14391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14392. /* end confdefs.h. */
  14393. #include <math.h>
  14394. #ifdef M_PI
  14395. YES_IS_DEFINED
  14396. #endif
  14397. _ACEOF
  14398. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14399. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14400. ac_cv_define_M_PI=yes
  14401. else
  14402. ac_cv_define_M_PI=no
  14403. fi
  14404. rm -f conftest*
  14405. fi
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14407. $as_echo "$ac_cv_define_M_PI" >&6; }
  14408. if test "$ac_cv_define_M_PI" = "yes" ; then
  14409. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14410. fi
  14411. case "$host" in
  14412. *-*-cygwin* | *-*-mingw*)
  14413. ;;
  14414. *)
  14415. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14416. # for constant arguments. Useless!
  14417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14418. $as_echo_n "checking for working alloca.h... " >&6; }
  14419. if ${ac_cv_working_alloca_h+:} false; then :
  14420. $as_echo_n "(cached) " >&6
  14421. else
  14422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14423. /* end confdefs.h. */
  14424. #include <alloca.h>
  14425. int
  14426. main ()
  14427. {
  14428. char *p = (char *) alloca (2 * sizeof (int));
  14429. if (p) return 0;
  14430. ;
  14431. return 0;
  14432. }
  14433. _ACEOF
  14434. if ac_fn_c_try_link "$LINENO"; then :
  14435. ac_cv_working_alloca_h=yes
  14436. else
  14437. ac_cv_working_alloca_h=no
  14438. fi
  14439. rm -f core conftest.err conftest.$ac_objext \
  14440. conftest$ac_exeext conftest.$ac_ext
  14441. fi
  14442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14443. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14444. if test $ac_cv_working_alloca_h = yes; then
  14445. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14446. fi
  14447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14448. $as_echo_n "checking for alloca... " >&6; }
  14449. if ${ac_cv_func_alloca_works+:} false; then :
  14450. $as_echo_n "(cached) " >&6
  14451. else
  14452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14453. /* end confdefs.h. */
  14454. #ifdef __GNUC__
  14455. # define alloca __builtin_alloca
  14456. #else
  14457. # ifdef _MSC_VER
  14458. # include <malloc.h>
  14459. # define alloca _alloca
  14460. # else
  14461. # ifdef HAVE_ALLOCA_H
  14462. # include <alloca.h>
  14463. # else
  14464. # ifdef _AIX
  14465. #pragma alloca
  14466. # else
  14467. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14468. void *alloca (size_t);
  14469. # endif
  14470. # endif
  14471. # endif
  14472. # endif
  14473. #endif
  14474. int
  14475. main ()
  14476. {
  14477. char *p = (char *) alloca (1);
  14478. if (p) return 0;
  14479. ;
  14480. return 0;
  14481. }
  14482. _ACEOF
  14483. if ac_fn_c_try_link "$LINENO"; then :
  14484. ac_cv_func_alloca_works=yes
  14485. else
  14486. ac_cv_func_alloca_works=no
  14487. fi
  14488. rm -f core conftest.err conftest.$ac_objext \
  14489. conftest$ac_exeext conftest.$ac_ext
  14490. fi
  14491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14492. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14493. if test $ac_cv_func_alloca_works = yes; then
  14494. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14495. else
  14496. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14497. # that cause trouble. Some versions do not even contain alloca or
  14498. # contain a buggy version. If you still want to use their alloca,
  14499. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14500. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14501. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14503. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14504. if ${ac_cv_os_cray+:} false; then :
  14505. $as_echo_n "(cached) " >&6
  14506. else
  14507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14508. /* end confdefs.h. */
  14509. #if defined CRAY && ! defined CRAY2
  14510. webecray
  14511. #else
  14512. wenotbecray
  14513. #endif
  14514. _ACEOF
  14515. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14516. $EGREP "webecray" >/dev/null 2>&1; then :
  14517. ac_cv_os_cray=yes
  14518. else
  14519. ac_cv_os_cray=no
  14520. fi
  14521. rm -f conftest*
  14522. fi
  14523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14524. $as_echo "$ac_cv_os_cray" >&6; }
  14525. if test $ac_cv_os_cray = yes; then
  14526. for ac_func in _getb67 GETB67 getb67; do
  14527. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14528. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14529. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14530. cat >>confdefs.h <<_ACEOF
  14531. #define CRAY_STACKSEG_END $ac_func
  14532. _ACEOF
  14533. break
  14534. fi
  14535. done
  14536. fi
  14537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14538. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14539. if ${ac_cv_c_stack_direction+:} false; then :
  14540. $as_echo_n "(cached) " >&6
  14541. else
  14542. if test "$cross_compiling" = yes; then :
  14543. ac_cv_c_stack_direction=0
  14544. else
  14545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14546. /* end confdefs.h. */
  14547. $ac_includes_default
  14548. int
  14549. find_stack_direction (int *addr, int depth)
  14550. {
  14551. int dir, dummy = 0;
  14552. if (! addr)
  14553. addr = &dummy;
  14554. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14555. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14556. return dir + dummy;
  14557. }
  14558. int
  14559. main (int argc, char **argv)
  14560. {
  14561. return find_stack_direction (0, argc + !argv + 20) < 0;
  14562. }
  14563. _ACEOF
  14564. if ac_fn_c_try_run "$LINENO"; then :
  14565. ac_cv_c_stack_direction=1
  14566. else
  14567. ac_cv_c_stack_direction=-1
  14568. fi
  14569. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14570. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14571. fi
  14572. fi
  14573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14574. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14575. cat >>confdefs.h <<_ACEOF
  14576. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14577. _ACEOF
  14578. fi
  14579. ;;
  14580. esac
  14581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14582. $as_echo_n "checking for working memcmp... " >&6; }
  14583. if ${ac_cv_func_memcmp_working+:} false; then :
  14584. $as_echo_n "(cached) " >&6
  14585. else
  14586. if test "$cross_compiling" = yes; then :
  14587. ac_cv_func_memcmp_working=no
  14588. else
  14589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14590. /* end confdefs.h. */
  14591. $ac_includes_default
  14592. int
  14593. main ()
  14594. {
  14595. /* Some versions of memcmp are not 8-bit clean. */
  14596. char c0 = '\100', c1 = '\200', c2 = '\201';
  14597. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14598. return 1;
  14599. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14600. or more and with at least one buffer not starting on a 4-byte boundary.
  14601. William Lewis provided this test program. */
  14602. {
  14603. char foo[21];
  14604. char bar[21];
  14605. int i;
  14606. for (i = 0; i < 4; i++)
  14607. {
  14608. char *a = foo + i;
  14609. char *b = bar + i;
  14610. strcpy (a, "--------01111111");
  14611. strcpy (b, "--------10000000");
  14612. if (memcmp (a, b, 16) >= 0)
  14613. return 1;
  14614. }
  14615. return 0;
  14616. }
  14617. ;
  14618. return 0;
  14619. }
  14620. _ACEOF
  14621. if ac_fn_c_try_run "$LINENO"; then :
  14622. ac_cv_func_memcmp_working=yes
  14623. else
  14624. ac_cv_func_memcmp_working=no
  14625. fi
  14626. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14627. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14628. fi
  14629. fi
  14630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14631. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14632. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14633. *" memcmp.$ac_objext "* ) ;;
  14634. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14635. ;;
  14636. esac
  14637. if test x$ac_cv_func_memcmp_working = xyes; then
  14638. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14639. fi
  14640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14641. $as_echo_n "checking for working strtod... " >&6; }
  14642. if ${ac_cv_func_strtod+:} false; then :
  14643. $as_echo_n "(cached) " >&6
  14644. else
  14645. if test "$cross_compiling" = yes; then :
  14646. ac_cv_func_strtod=no
  14647. else
  14648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14649. /* end confdefs.h. */
  14650. $ac_includes_default
  14651. #ifndef strtod
  14652. double strtod ();
  14653. #endif
  14654. int
  14655. main()
  14656. {
  14657. {
  14658. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14659. char *string = " +69";
  14660. char *term;
  14661. double value;
  14662. value = strtod (string, &term);
  14663. if (value != 69 || term != (string + 4))
  14664. return 1;
  14665. }
  14666. {
  14667. /* Under Solaris 2.4, strtod returns the wrong value for the
  14668. terminating character under some conditions. */
  14669. char *string = "NaN";
  14670. char *term;
  14671. strtod (string, &term);
  14672. if (term != string && *(term - 1) == 0)
  14673. return 1;
  14674. }
  14675. return 0;
  14676. }
  14677. _ACEOF
  14678. if ac_fn_c_try_run "$LINENO"; then :
  14679. ac_cv_func_strtod=yes
  14680. else
  14681. ac_cv_func_strtod=no
  14682. fi
  14683. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14684. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14685. fi
  14686. fi
  14687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14688. $as_echo "$ac_cv_func_strtod" >&6; }
  14689. if test $ac_cv_func_strtod = no; then
  14690. case " $LIBOBJS " in
  14691. *" strtod.$ac_objext "* ) ;;
  14692. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14693. ;;
  14694. esac
  14695. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14696. if test "x$ac_cv_func_pow" = xyes; then :
  14697. fi
  14698. if test $ac_cv_func_pow = no; then
  14699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14700. $as_echo_n "checking for pow in -lm... " >&6; }
  14701. if ${ac_cv_lib_m_pow+:} false; then :
  14702. $as_echo_n "(cached) " >&6
  14703. else
  14704. ac_check_lib_save_LIBS=$LIBS
  14705. LIBS="-lm $LIBS"
  14706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14707. /* end confdefs.h. */
  14708. /* Override any GCC internal prototype to avoid an error.
  14709. Use char because int might match the return type of a GCC
  14710. builtin and then its argument prototype would still apply. */
  14711. #ifdef __cplusplus
  14712. extern "C"
  14713. #endif
  14714. char pow ();
  14715. int
  14716. main ()
  14717. {
  14718. return pow ();
  14719. ;
  14720. return 0;
  14721. }
  14722. _ACEOF
  14723. if ac_fn_c_try_link "$LINENO"; then :
  14724. ac_cv_lib_m_pow=yes
  14725. else
  14726. ac_cv_lib_m_pow=no
  14727. fi
  14728. rm -f core conftest.err conftest.$ac_objext \
  14729. conftest$ac_exeext conftest.$ac_ext
  14730. LIBS=$ac_check_lib_save_LIBS
  14731. fi
  14732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14733. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14734. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14735. POW_LIB=-lm
  14736. else
  14737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14738. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14739. fi
  14740. fi
  14741. fi
  14742. if test x$ac_cv_func_strtod = xyes; then
  14743. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14744. fi
  14745. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14746. if test "x$ac_cv_func_mprotect" = xyes; then :
  14747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14748. /* end confdefs.h. */
  14749. #include <sys/types.h>
  14750. #include <sys/mman.h>
  14751. int
  14752. main ()
  14753. {
  14754. ;
  14755. return 0;
  14756. }
  14757. _ACEOF
  14758. if ac_fn_c_try_compile "$LINENO"; then :
  14759. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14760. fi
  14761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14762. fi
  14763. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
  14764. do :
  14765. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14766. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14767. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14768. cat >>confdefs.h <<_ACEOF
  14769. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14770. _ACEOF
  14771. fi
  14772. done
  14773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14774. $as_echo_n "checking for pow in -lm... " >&6; }
  14775. if ${ac_cv_lib_m_pow+:} false; then :
  14776. $as_echo_n "(cached) " >&6
  14777. else
  14778. ac_check_lib_save_LIBS=$LIBS
  14779. LIBS="-lm $LIBS"
  14780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14781. /* end confdefs.h. */
  14782. /* Override any GCC internal prototype to avoid an error.
  14783. Use char because int might match the return type of a GCC
  14784. builtin and then its argument prototype would still apply. */
  14785. #ifdef __cplusplus
  14786. extern "C"
  14787. #endif
  14788. char pow ();
  14789. int
  14790. main ()
  14791. {
  14792. return pow ();
  14793. ;
  14794. return 0;
  14795. }
  14796. _ACEOF
  14797. if ac_fn_c_try_link "$LINENO"; then :
  14798. ac_cv_lib_m_pow=yes
  14799. else
  14800. ac_cv_lib_m_pow=no
  14801. fi
  14802. rm -f core conftest.err conftest.$ac_objext \
  14803. conftest$ac_exeext conftest.$ac_ext
  14804. LIBS=$ac_check_lib_save_LIBS
  14805. fi
  14806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14807. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14808. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14809. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14810. fi
  14811. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14812. do :
  14813. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14814. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14815. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14816. cat >>confdefs.h <<_ACEOF
  14817. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14818. _ACEOF
  14819. fi
  14820. done
  14821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14822. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14823. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14824. $as_echo_n "(cached) " >&6
  14825. else
  14826. ac_check_lib_save_LIBS=$LIBS
  14827. LIBS="-liconv $LIBS"
  14828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14829. /* end confdefs.h. */
  14830. /* Override any GCC internal prototype to avoid an error.
  14831. Use char because int might match the return type of a GCC
  14832. builtin and then its argument prototype would still apply. */
  14833. #ifdef __cplusplus
  14834. extern "C"
  14835. #endif
  14836. char iconv_open ();
  14837. int
  14838. main ()
  14839. {
  14840. return iconv_open ();
  14841. ;
  14842. return 0;
  14843. }
  14844. _ACEOF
  14845. if ac_fn_c_try_link "$LINENO"; then :
  14846. ac_cv_lib_iconv_iconv_open=yes
  14847. else
  14848. ac_cv_lib_iconv_iconv_open=no
  14849. fi
  14850. rm -f core conftest.err conftest.$ac_objext \
  14851. conftest$ac_exeext conftest.$ac_ext
  14852. LIBS=$ac_check_lib_save_LIBS
  14853. fi
  14854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14855. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14856. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14857. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14858. fi
  14859. for ac_func in iconv
  14860. do :
  14861. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14862. if test "x$ac_cv_func_iconv" = xyes; then :
  14863. cat >>confdefs.h <<_ACEOF
  14864. #define HAVE_ICONV 1
  14865. _ACEOF
  14866. fi
  14867. done
  14868. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14869. "
  14870. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14871. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14872. fi
  14873. for ac_header in libunwind.h
  14874. do :
  14875. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14876. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14877. cat >>confdefs.h <<_ACEOF
  14878. #define HAVE_LIBUNWIND_H 1
  14879. _ACEOF
  14880. fi
  14881. done
  14882. fi
  14883. # Check whether --enable-gcc-atomics was given.
  14884. if test "${enable_gcc_atomics+set}" = set; then :
  14885. enableval=$enable_gcc_atomics;
  14886. else
  14887. enable_gcc_atomics=yes
  14888. fi
  14889. if test x$enable_gcc_atomics = xyes; then
  14890. have_gcc_atomics=no
  14891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14892. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14894. /* end confdefs.h. */
  14895. int
  14896. main ()
  14897. {
  14898. int a;
  14899. void *x, *y, *z;
  14900. __sync_lock_test_and_set(&a, 4);
  14901. __sync_lock_test_and_set(&x, y);
  14902. __sync_fetch_and_add(&a, 1);
  14903. __sync_bool_compare_and_swap(&a, 5, 10);
  14904. __sync_bool_compare_and_swap(&x, y, z);
  14905. ;
  14906. return 0;
  14907. }
  14908. _ACEOF
  14909. if ac_fn_c_try_link "$LINENO"; then :
  14910. have_gcc_atomics=yes
  14911. fi
  14912. rm -f core conftest.err conftest.$ac_objext \
  14913. conftest$ac_exeext conftest.$ac_ext
  14914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14915. $as_echo "$have_gcc_atomics" >&6; }
  14916. if test x$have_gcc_atomics = xyes; then
  14917. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14918. else
  14919. # See if we have the minimum operation needed for GCC atomics
  14920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14921. /* end confdefs.h. */
  14922. int
  14923. main ()
  14924. {
  14925. int a;
  14926. __sync_lock_test_and_set(&a, 1);
  14927. __sync_lock_release(&a);
  14928. ;
  14929. return 0;
  14930. }
  14931. _ACEOF
  14932. if ac_fn_c_try_link "$LINENO"; then :
  14933. have_gcc_sync_lock_test_and_set=yes
  14934. fi
  14935. rm -f core conftest.err conftest.$ac_objext \
  14936. conftest$ac_exeext conftest.$ac_ext
  14937. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14938. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14939. fi
  14940. fi
  14941. fi
  14942. # Standard C sources
  14943. SOURCES="$SOURCES $srcdir/src/*.c"
  14944. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14945. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14946. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14947. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14948. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14949. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14950. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14951. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  14952. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14953. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14954. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14955. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14956. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14957. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14958. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14959. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14960. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14961. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14962. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14963. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14964. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14965. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14966. # Check whether --enable-atomic was given.
  14967. if test "${enable_atomic+set}" = set; then :
  14968. enableval=$enable_atomic;
  14969. else
  14970. enable_atomic=yes
  14971. fi
  14972. if test x$enable_atomic != xyes; then
  14973. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14974. else
  14975. SUMMARY_modules="${SUMMARY_modules} atomic"
  14976. fi
  14977. # Check whether --enable-audio was given.
  14978. if test "${enable_audio+set}" = set; then :
  14979. enableval=$enable_audio;
  14980. else
  14981. enable_audio=yes
  14982. fi
  14983. if test x$enable_audio != xyes; then
  14984. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14985. else
  14986. SUMMARY_modules="${SUMMARY_modules} audio"
  14987. fi
  14988. # Check whether --enable-video was given.
  14989. if test "${enable_video+set}" = set; then :
  14990. enableval=$enable_video;
  14991. else
  14992. enable_video=yes
  14993. fi
  14994. if test x$enable_video != xyes; then
  14995. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14996. else
  14997. SUMMARY_modules="${SUMMARY_modules} video"
  14998. fi
  14999. # Check whether --enable-render was given.
  15000. if test "${enable_render+set}" = set; then :
  15001. enableval=$enable_render;
  15002. else
  15003. enable_render=yes
  15004. fi
  15005. if test x$enable_render != xyes; then
  15006. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15007. else
  15008. SUMMARY_modules="${SUMMARY_modules} render"
  15009. fi
  15010. # Check whether --enable-events was given.
  15011. if test "${enable_events+set}" = set; then :
  15012. enableval=$enable_events;
  15013. else
  15014. enable_events=yes
  15015. fi
  15016. if test x$enable_events != xyes; then
  15017. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15018. else
  15019. SUMMARY_modules="${SUMMARY_modules} events"
  15020. fi
  15021. # Check whether --enable-joystick was given.
  15022. if test "${enable_joystick+set}" = set; then :
  15023. enableval=$enable_joystick;
  15024. else
  15025. enable_joystick=yes
  15026. fi
  15027. if test x$enable_joystick != xyes; then
  15028. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15029. else
  15030. SUMMARY_modules="${SUMMARY_modules} joystick"
  15031. fi
  15032. # Check whether --enable-haptic was given.
  15033. if test "${enable_haptic+set}" = set; then :
  15034. enableval=$enable_haptic;
  15035. else
  15036. enable_haptic=yes
  15037. fi
  15038. if test x$enable_haptic != xyes; then
  15039. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15040. else
  15041. SUMMARY_modules="${SUMMARY_modules} haptic"
  15042. fi
  15043. # Check whether --enable-sensor was given.
  15044. if test "${enable_sensor+set}" = set; then :
  15045. enableval=$enable_sensor;
  15046. else
  15047. enable_sensor=yes
  15048. fi
  15049. if test x$enable_sensor != xyes; then
  15050. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15051. else
  15052. SUMMARY_modules="${SUMMARY_modules} sensor"
  15053. fi
  15054. # Check whether --enable-power was given.
  15055. if test "${enable_power+set}" = set; then :
  15056. enableval=$enable_power;
  15057. else
  15058. enable_power=yes
  15059. fi
  15060. if test x$enable_power != xyes; then
  15061. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15062. else
  15063. SUMMARY_modules="${SUMMARY_modules} power"
  15064. fi
  15065. # Check whether --enable-filesystem was given.
  15066. if test "${enable_filesystem+set}" = set; then :
  15067. enableval=$enable_filesystem;
  15068. else
  15069. enable_filesystem=yes
  15070. fi
  15071. if test x$enable_filesystem != xyes; then
  15072. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15073. else
  15074. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15075. fi
  15076. # Check whether --enable-threads was given.
  15077. if test "${enable_threads+set}" = set; then :
  15078. enableval=$enable_threads;
  15079. else
  15080. enable_threads=yes
  15081. fi
  15082. if test x$enable_threads != xyes; then
  15083. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15084. else
  15085. SUMMARY_modules="${SUMMARY_modules} threads"
  15086. fi
  15087. # Check whether --enable-timers was given.
  15088. if test "${enable_timers+set}" = set; then :
  15089. enableval=$enable_timers;
  15090. else
  15091. enable_timers=yes
  15092. fi
  15093. if test x$enable_timers != xyes; then
  15094. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15095. else
  15096. SUMMARY_modules="${SUMMARY_modules} timers"
  15097. fi
  15098. # Check whether --enable-file was given.
  15099. if test "${enable_file+set}" = set; then :
  15100. enableval=$enable_file;
  15101. else
  15102. enable_file=yes
  15103. fi
  15104. if test x$enable_file != xyes; then
  15105. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15106. else
  15107. SUMMARY_modules="${SUMMARY_modules} file"
  15108. fi
  15109. # Check whether --enable-loadso was given.
  15110. if test "${enable_loadso+set}" = set; then :
  15111. enableval=$enable_loadso;
  15112. else
  15113. enable_loadso=yes
  15114. fi
  15115. if test x$enable_loadso != xyes; then
  15116. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15117. else
  15118. SUMMARY_modules="${SUMMARY_modules} loadso"
  15119. fi
  15120. # Check whether --enable-cpuinfo was given.
  15121. if test "${enable_cpuinfo+set}" = set; then :
  15122. enableval=$enable_cpuinfo;
  15123. else
  15124. enable_cpuinfo=yes
  15125. fi
  15126. if test x$enable_cpuinfo != xyes; then
  15127. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15128. else
  15129. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15130. fi
  15131. # Check whether --enable-assembly was given.
  15132. if test "${enable_assembly+set}" = set; then :
  15133. enableval=$enable_assembly;
  15134. else
  15135. enable_assembly=yes
  15136. fi
  15137. if test x$enable_assembly = xyes; then
  15138. SUMMARY_modules="${SUMMARY_modules} assembly"
  15139. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15140. # Make sure that we don't generate floating point code that would
  15141. # cause illegal instruction exceptions on older processors
  15142. case "$host" in
  15143. *-*-darwin*)
  15144. # Don't need to worry about Apple hardware, it's all SSE capable
  15145. default_ssemath=yes
  15146. ;;
  15147. *64-*-*)
  15148. # x86 64-bit architectures all have SSE instructions
  15149. default_ssemath=yes
  15150. ;;
  15151. *)
  15152. default_ssemath=no
  15153. ;;
  15154. esac
  15155. # Check whether --enable-ssemath was given.
  15156. if test "${enable_ssemath+set}" = set; then :
  15157. enableval=$enable_ssemath;
  15158. else
  15159. enable_ssemath=$default_ssemath
  15160. fi
  15161. if test x$enable_ssemath = xno; then
  15162. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15163. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15164. fi
  15165. fi
  15166. # Check whether --enable-mmx was given.
  15167. if test "${enable_mmx+set}" = set; then :
  15168. enableval=$enable_mmx;
  15169. else
  15170. enable_mmx=yes
  15171. fi
  15172. if test x$enable_mmx = xyes; then
  15173. save_CFLAGS="$CFLAGS"
  15174. have_gcc_mmx=no
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15176. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15177. mmx_CFLAGS="-mmmx"
  15178. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15180. /* end confdefs.h. */
  15181. #ifdef __MINGW32__
  15182. #include <_mingw.h>
  15183. #ifdef __MINGW64_VERSION_MAJOR
  15184. #include <intrin.h>
  15185. #else
  15186. #include <mmintrin.h>
  15187. #endif
  15188. #else
  15189. #include <mmintrin.h>
  15190. #endif
  15191. #ifndef __MMX__
  15192. #error Assembler CPP flag not enabled
  15193. #endif
  15194. int
  15195. main ()
  15196. {
  15197. ;
  15198. return 0;
  15199. }
  15200. _ACEOF
  15201. if ac_fn_c_try_compile "$LINENO"; then :
  15202. have_gcc_mmx=yes
  15203. fi
  15204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15206. $as_echo "$have_gcc_mmx" >&6; }
  15207. CFLAGS="$save_CFLAGS"
  15208. if test x$have_gcc_mmx = xyes; then
  15209. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15210. SUMMARY_math="${SUMMARY_math} mmx"
  15211. fi
  15212. fi
  15213. # Check whether --enable-3dnow was given.
  15214. if test "${enable_3dnow+set}" = set; then :
  15215. enableval=$enable_3dnow;
  15216. else
  15217. enable_3dnow=yes
  15218. fi
  15219. if test x$enable_3dnow = xyes; then
  15220. save_CFLAGS="$CFLAGS"
  15221. have_gcc_3dnow=no
  15222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15223. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15224. amd3dnow_CFLAGS="-m3dnow"
  15225. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15227. /* end confdefs.h. */
  15228. #include <mm3dnow.h>
  15229. #ifndef __3dNOW__
  15230. #error Assembler CPP flag not enabled
  15231. #endif
  15232. int
  15233. main ()
  15234. {
  15235. void *p = 0;
  15236. _m_prefetch(p);
  15237. ;
  15238. return 0;
  15239. }
  15240. _ACEOF
  15241. if ac_fn_c_try_link "$LINENO"; then :
  15242. have_gcc_3dnow=yes
  15243. fi
  15244. rm -f core conftest.err conftest.$ac_objext \
  15245. conftest$ac_exeext conftest.$ac_ext
  15246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15247. $as_echo "$have_gcc_3dnow" >&6; }
  15248. CFLAGS="$save_CFLAGS"
  15249. if test x$have_gcc_3dnow = xyes; then
  15250. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15251. SUMMARY_math="${SUMMARY_math} 3dnow"
  15252. fi
  15253. fi
  15254. # Check whether --enable-sse was given.
  15255. if test "${enable_sse+set}" = set; then :
  15256. enableval=$enable_sse;
  15257. else
  15258. enable_sse=yes
  15259. fi
  15260. if test x$enable_sse = xyes; then
  15261. save_CFLAGS="$CFLAGS"
  15262. have_gcc_sse=no
  15263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15264. $as_echo_n "checking for GCC -msse option... " >&6; }
  15265. sse_CFLAGS="-msse"
  15266. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15268. /* end confdefs.h. */
  15269. #ifdef __MINGW32__
  15270. #include <_mingw.h>
  15271. #ifdef __MINGW64_VERSION_MAJOR
  15272. #include <intrin.h>
  15273. #else
  15274. #include <xmmintrin.h>
  15275. #endif
  15276. #else
  15277. #include <xmmintrin.h>
  15278. #endif
  15279. #ifndef __SSE__
  15280. #error Assembler CPP flag not enabled
  15281. #endif
  15282. int
  15283. main ()
  15284. {
  15285. ;
  15286. return 0;
  15287. }
  15288. _ACEOF
  15289. if ac_fn_c_try_compile "$LINENO"; then :
  15290. have_gcc_sse=yes
  15291. fi
  15292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15294. $as_echo "$have_gcc_sse" >&6; }
  15295. CFLAGS="$save_CFLAGS"
  15296. if test x$have_gcc_sse = xyes; then
  15297. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15298. SUMMARY_math="${SUMMARY_math} sse"
  15299. fi
  15300. fi
  15301. # Check whether --enable-sse2 was given.
  15302. if test "${enable_sse2+set}" = set; then :
  15303. enableval=$enable_sse2;
  15304. else
  15305. enable_sse2=$default_ssemath
  15306. fi
  15307. if test x$enable_sse2 = xyes; then
  15308. save_CFLAGS="$CFLAGS"
  15309. have_gcc_sse2=no
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15311. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15312. sse2_CFLAGS="-msse2"
  15313. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15315. /* end confdefs.h. */
  15316. #ifdef __MINGW32__
  15317. #include <_mingw.h>
  15318. #ifdef __MINGW64_VERSION_MAJOR
  15319. #include <intrin.h>
  15320. #else
  15321. #include <emmintrin.h>
  15322. #endif
  15323. #else
  15324. #include <emmintrin.h>
  15325. #endif
  15326. #ifndef __SSE2__
  15327. #error Assembler CPP flag not enabled
  15328. #endif
  15329. int
  15330. main ()
  15331. {
  15332. ;
  15333. return 0;
  15334. }
  15335. _ACEOF
  15336. if ac_fn_c_try_compile "$LINENO"; then :
  15337. have_gcc_sse2=yes
  15338. fi
  15339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15341. $as_echo "$have_gcc_sse2" >&6; }
  15342. CFLAGS="$save_CFLAGS"
  15343. if test x$have_gcc_sse2 = xyes; then
  15344. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15345. SUMMARY_math="${SUMMARY_math} sse2"
  15346. fi
  15347. fi
  15348. # Check whether --enable-sse3 was given.
  15349. if test "${enable_sse3+set}" = set; then :
  15350. enableval=$enable_sse3;
  15351. else
  15352. enable_sse3=$default_ssemath
  15353. fi
  15354. if test x$enable_sse3 = xyes; then
  15355. save_CFLAGS="$CFLAGS"
  15356. have_gcc_sse3=no
  15357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15358. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15359. sse3_CFLAGS="-msse3"
  15360. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15362. /* end confdefs.h. */
  15363. #ifdef __MINGW32__
  15364. #include <_mingw.h>
  15365. #ifdef __MINGW64_VERSION_MAJOR
  15366. #include <intrin.h>
  15367. #else
  15368. #include <pmmintrin.h>
  15369. #endif
  15370. #else
  15371. #include <pmmintrin.h>
  15372. #endif
  15373. #ifndef __SSE2__
  15374. #error Assembler CPP flag not enabled
  15375. #endif
  15376. int
  15377. main ()
  15378. {
  15379. ;
  15380. return 0;
  15381. }
  15382. _ACEOF
  15383. if ac_fn_c_try_compile "$LINENO"; then :
  15384. have_gcc_sse3=yes
  15385. fi
  15386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15388. $as_echo "$have_gcc_sse3" >&6; }
  15389. CFLAGS="$save_CFLAGS"
  15390. if test x$have_gcc_sse3 = xyes; then
  15391. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15392. SUMMARY_math="${SUMMARY_math} sse3"
  15393. fi
  15394. fi
  15395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  15396. $as_echo_n "checking for immintrin.h... " >&6; }
  15397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15398. /* end confdefs.h. */
  15399. #include <immintrin.h>
  15400. int
  15401. main ()
  15402. {
  15403. ;
  15404. return 0;
  15405. }
  15406. _ACEOF
  15407. if ac_fn_c_try_compile "$LINENO"; then :
  15408. have_immintrin_h_hdr=yes
  15409. else
  15410. have_immintrin_h_hdr=no
  15411. fi
  15412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  15414. $as_echo "$have_immintrin_h_hdr" >&6; }
  15415. if test x$have_immintrin_h_hdr = xyes; then
  15416. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15417. fi
  15418. # Check whether --enable-altivec was given.
  15419. if test "${enable_altivec+set}" = set; then :
  15420. enableval=$enable_altivec;
  15421. else
  15422. enable_altivec=yes
  15423. fi
  15424. if test x$enable_altivec = xyes; then
  15425. save_CFLAGS="$CFLAGS"
  15426. have_gcc_altivec=no
  15427. have_altivec_h_hdr=no
  15428. altivec_CFLAGS="-maltivec"
  15429. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15431. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15433. /* end confdefs.h. */
  15434. #include <altivec.h>
  15435. vector unsigned int vzero() {
  15436. return vec_splat_u32(0);
  15437. }
  15438. int
  15439. main ()
  15440. {
  15441. ;
  15442. return 0;
  15443. }
  15444. _ACEOF
  15445. if ac_fn_c_try_compile "$LINENO"; then :
  15446. have_gcc_altivec=yes
  15447. have_altivec_h_hdr=yes
  15448. fi
  15449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15451. $as_echo "$have_gcc_altivec" >&6; }
  15452. if test x$have_gcc_altivec = xno; then
  15453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15454. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15456. /* end confdefs.h. */
  15457. vector unsigned int vzero() {
  15458. return vec_splat_u32(0);
  15459. }
  15460. int
  15461. main ()
  15462. {
  15463. ;
  15464. return 0;
  15465. }
  15466. _ACEOF
  15467. if ac_fn_c_try_compile "$LINENO"; then :
  15468. have_gcc_altivec=yes
  15469. fi
  15470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15472. $as_echo "$have_gcc_altivec" >&6; }
  15473. fi
  15474. if test x$have_gcc_altivec = xno; then
  15475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15476. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15477. altivec_CFLAGS="-faltivec"
  15478. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15480. /* end confdefs.h. */
  15481. #include <altivec.h>
  15482. vector unsigned int vzero() {
  15483. return vec_splat_u32(0);
  15484. }
  15485. int
  15486. main ()
  15487. {
  15488. ;
  15489. return 0;
  15490. }
  15491. _ACEOF
  15492. if ac_fn_c_try_compile "$LINENO"; then :
  15493. have_gcc_altivec=yes
  15494. have_altivec_h_hdr=yes
  15495. fi
  15496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15498. $as_echo "$have_gcc_altivec" >&6; }
  15499. fi
  15500. if test x$have_gcc_altivec = xno; then
  15501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15502. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15504. /* end confdefs.h. */
  15505. vector unsigned int vzero() {
  15506. return vec_splat_u32(0);
  15507. }
  15508. int
  15509. main ()
  15510. {
  15511. ;
  15512. return 0;
  15513. }
  15514. _ACEOF
  15515. if ac_fn_c_try_compile "$LINENO"; then :
  15516. have_gcc_altivec=yes
  15517. fi
  15518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15520. $as_echo "$have_gcc_altivec" >&6; }
  15521. fi
  15522. CFLAGS="$save_CFLAGS"
  15523. if test x$have_gcc_altivec = xyes; then
  15524. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15525. if test x$have_altivec_h_hdr = xyes; then
  15526. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15527. fi
  15528. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15529. SUMMARY_math="${SUMMARY_math} altivec"
  15530. fi
  15531. fi
  15532. fi
  15533. CheckOSS()
  15534. {
  15535. # Check whether --enable-oss was given.
  15536. if test "${enable_oss+set}" = set; then :
  15537. enableval=$enable_oss;
  15538. else
  15539. enable_oss=maybe
  15540. fi
  15541. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15542. # use sndio instead. So on there, we default to disabled. You can force
  15543. # it on if you really want, though.
  15544. if test x$enable_oss = xmaybe; then
  15545. enable_oss=yes
  15546. case "$host" in
  15547. *-*-openbsd*)
  15548. enable_oss=no;;
  15549. esac
  15550. fi
  15551. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15553. $as_echo_n "checking for OSS audio support... " >&6; }
  15554. have_oss=no
  15555. if test x$have_oss != xyes; then
  15556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15557. /* end confdefs.h. */
  15558. #include <sys/soundcard.h>
  15559. int
  15560. main ()
  15561. {
  15562. int arg = SNDCTL_DSP_SETFRAGMENT;
  15563. ;
  15564. return 0;
  15565. }
  15566. _ACEOF
  15567. if ac_fn_c_try_compile "$LINENO"; then :
  15568. have_oss=yes
  15569. fi
  15570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15571. fi
  15572. if test x$have_oss != xyes; then
  15573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15574. /* end confdefs.h. */
  15575. #include <soundcard.h>
  15576. int
  15577. main ()
  15578. {
  15579. int arg = SNDCTL_DSP_SETFRAGMENT;
  15580. ;
  15581. return 0;
  15582. }
  15583. _ACEOF
  15584. if ac_fn_c_try_compile "$LINENO"; then :
  15585. have_oss=yes
  15586. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15587. fi
  15588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15589. fi
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15591. $as_echo "$have_oss" >&6; }
  15592. if test x$have_oss = xyes; then
  15593. SUMMARY_audio="${SUMMARY_audio} oss"
  15594. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15595. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15596. have_audio=yes
  15597. # We may need to link with ossaudio emulation library
  15598. case "$host" in
  15599. *-*-openbsd*|*-*-netbsd*)
  15600. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15601. esac
  15602. fi
  15603. fi
  15604. }
  15605. CheckALSA()
  15606. {
  15607. # Check whether --enable-alsa was given.
  15608. if test "${enable_alsa+set}" = set; then :
  15609. enableval=$enable_alsa;
  15610. else
  15611. enable_alsa=yes
  15612. fi
  15613. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15614. alsa_save_CFLAGS="$CFLAGS"
  15615. alsa_save_LDFLAGS="$LDFLAGS"
  15616. alsa_save_LIBS="$LIBS"
  15617. alsa_found=yes
  15618. # Check whether --with-alsa-prefix was given.
  15619. if test "${with_alsa_prefix+set}" = set; then :
  15620. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15621. else
  15622. alsa_prefix=""
  15623. fi
  15624. # Check whether --with-alsa-inc-prefix was given.
  15625. if test "${with_alsa_inc_prefix+set}" = set; then :
  15626. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15627. else
  15628. alsa_inc_prefix=""
  15629. fi
  15630. # Check whether --enable-alsatest was given.
  15631. if test "${enable_alsatest+set}" = set; then :
  15632. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15633. else
  15634. enable_alsatest=yes
  15635. fi
  15636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15637. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15638. if test "$alsa_inc_prefix" != "" ; then
  15639. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15640. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15641. fi
  15642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15643. $as_echo "$ALSA_CFLAGS" >&6; }
  15644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15645. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15646. if test "$alsa_prefix" != "" ; then
  15647. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15648. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15649. fi
  15650. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15651. LIBS=`echo $LIBS | sed 's/-lm//'`
  15652. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15653. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15654. LIBS=`echo $LIBS | sed 's/ //'`
  15655. LIBS="$ALSA_LIBS $LIBS"
  15656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15657. $as_echo "$ALSA_LIBS" >&6; }
  15658. min_alsa_version=1.0.11
  15659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15660. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15661. no_alsa=""
  15662. alsa_min_major_version=`echo $min_alsa_version | \
  15663. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15664. alsa_min_minor_version=`echo $min_alsa_version | \
  15665. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15666. alsa_min_micro_version=`echo $min_alsa_version | \
  15667. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15668. ac_ext=c
  15669. ac_cpp='$CPP $CPPFLAGS'
  15670. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15671. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15672. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15674. /* end confdefs.h. */
  15675. #include <alsa/asoundlib.h>
  15676. int
  15677. main ()
  15678. {
  15679. /* ensure backward compatibility */
  15680. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15681. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15682. #endif
  15683. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15684. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15685. #endif
  15686. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15687. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15688. #endif
  15689. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15690. exit(0);
  15691. # else
  15692. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15693. # error not present
  15694. # endif
  15695. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15696. exit(0);
  15697. # else
  15698. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15699. # error not present
  15700. # endif
  15701. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15702. # error not present
  15703. # endif
  15704. # endif
  15705. # endif
  15706. exit(0);
  15707. ;
  15708. return 0;
  15709. }
  15710. _ACEOF
  15711. if ac_fn_c_try_compile "$LINENO"; then :
  15712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15713. $as_echo "found." >&6; }
  15714. else
  15715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15716. $as_echo "not present." >&6; }
  15717. alsa_found=no
  15718. fi
  15719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15720. ac_ext=c
  15721. ac_cpp='$CPP $CPPFLAGS'
  15722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15725. if test "x$enable_alsatest" = "xyes"; then
  15726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15727. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15728. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15729. $as_echo_n "(cached) " >&6
  15730. else
  15731. ac_check_lib_save_LIBS=$LIBS
  15732. LIBS="-lasound $LIBS"
  15733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15734. /* end confdefs.h. */
  15735. /* Override any GCC internal prototype to avoid an error.
  15736. Use char because int might match the return type of a GCC
  15737. builtin and then its argument prototype would still apply. */
  15738. #ifdef __cplusplus
  15739. extern "C"
  15740. #endif
  15741. char snd_ctl_open ();
  15742. int
  15743. main ()
  15744. {
  15745. return snd_ctl_open ();
  15746. ;
  15747. return 0;
  15748. }
  15749. _ACEOF
  15750. if ac_fn_c_try_link "$LINENO"; then :
  15751. ac_cv_lib_asound_snd_ctl_open=yes
  15752. else
  15753. ac_cv_lib_asound_snd_ctl_open=no
  15754. fi
  15755. rm -f core conftest.err conftest.$ac_objext \
  15756. conftest$ac_exeext conftest.$ac_ext
  15757. LIBS=$ac_check_lib_save_LIBS
  15758. fi
  15759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15760. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15761. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15762. cat >>confdefs.h <<_ACEOF
  15763. #define HAVE_LIBASOUND 1
  15764. _ACEOF
  15765. LIBS="-lasound $LIBS"
  15766. else
  15767. alsa_found=no
  15768. fi
  15769. fi
  15770. if test "x$alsa_found" = "xyes" ; then
  15771. have_alsa=yes
  15772. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15773. LIBS=`echo $LIBS | sed 's/ //'`
  15774. LIBS="-lasound $LIBS"
  15775. fi
  15776. if test "x$alsa_found" = "xno" ; then
  15777. have_alsa=no
  15778. CFLAGS="$alsa_save_CFLAGS"
  15779. LDFLAGS="$alsa_save_LDFLAGS"
  15780. LIBS="$alsa_save_LIBS"
  15781. ALSA_CFLAGS=""
  15782. ALSA_LIBS=""
  15783. fi
  15784. # Restore all flags from before the ALSA detection runs
  15785. CFLAGS="$alsa_save_CFLAGS"
  15786. LDFLAGS="$alsa_save_LDFLAGS"
  15787. LIBS="$alsa_save_LIBS"
  15788. if test x$have_alsa = xyes; then
  15789. # Check whether --enable-alsa-shared was given.
  15790. if test "${enable_alsa_shared+set}" = set; then :
  15791. enableval=$enable_alsa_shared;
  15792. else
  15793. enable_alsa_shared=yes
  15794. fi
  15795. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15796. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15797. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15798. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15799. if test x$have_loadso != xyes && \
  15800. test x$enable_alsa_shared = xyes; then
  15801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15802. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15803. fi
  15804. if test x$have_loadso = xyes && \
  15805. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15806. echo "-- dynamic libasound -> $alsa_lib"
  15807. cat >>confdefs.h <<_ACEOF
  15808. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15809. _ACEOF
  15810. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15811. else
  15812. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15813. SUMMARY_audio="${SUMMARY_audio} alsa"
  15814. fi
  15815. have_audio=yes
  15816. fi
  15817. fi
  15818. }
  15819. CheckJACK()
  15820. {
  15821. # Check whether --enable-jack was given.
  15822. if test "${enable_jack+set}" = set; then :
  15823. enableval=$enable_jack;
  15824. else
  15825. enable_jack=yes
  15826. fi
  15827. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15828. pkg_failed=no
  15829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15830. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15831. if test -n "$JACK_CFLAGS"; then
  15832. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15833. elif test -n "$PKG_CONFIG"; then
  15834. if test -n "$PKG_CONFIG" && \
  15835. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15836. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15837. ac_status=$?
  15838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15839. test $ac_status = 0; }; then
  15840. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15841. test "x$?" != "x0" && pkg_failed=yes
  15842. else
  15843. pkg_failed=yes
  15844. fi
  15845. else
  15846. pkg_failed=untried
  15847. fi
  15848. if test -n "$JACK_LIBS"; then
  15849. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15850. elif test -n "$PKG_CONFIG"; then
  15851. if test -n "$PKG_CONFIG" && \
  15852. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15853. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15854. ac_status=$?
  15855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15856. test $ac_status = 0; }; then
  15857. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15858. test "x$?" != "x0" && pkg_failed=yes
  15859. else
  15860. pkg_failed=yes
  15861. fi
  15862. else
  15863. pkg_failed=untried
  15864. fi
  15865. if test $pkg_failed = yes; then
  15866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15867. $as_echo "no" >&6; }
  15868. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15869. _pkg_short_errors_supported=yes
  15870. else
  15871. _pkg_short_errors_supported=no
  15872. fi
  15873. if test $_pkg_short_errors_supported = yes; then
  15874. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15875. else
  15876. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15877. fi
  15878. # Put the nasty error message in config.log where it belongs
  15879. echo "$JACK_PKG_ERRORS" >&5
  15880. audio_jack=no
  15881. elif test $pkg_failed = untried; then
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15883. $as_echo "no" >&6; }
  15884. audio_jack=no
  15885. else
  15886. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15887. JACK_LIBS=$pkg_cv_JACK_LIBS
  15888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15889. $as_echo "yes" >&6; }
  15890. audio_jack=yes
  15891. fi
  15892. if test x$audio_jack = xyes; then
  15893. # Check whether --enable-jack-shared was given.
  15894. if test "${enable_jack_shared+set}" = set; then :
  15895. enableval=$enable_jack_shared;
  15896. else
  15897. enable_jack_shared=yes
  15898. fi
  15899. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15900. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15901. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15902. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15903. if test x$have_loadso != xyes && \
  15904. test x$enable_jack_shared = xyes; then
  15905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15906. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15907. fi
  15908. if test x$have_loadso = xyes && \
  15909. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15910. echo "-- dynamic libjack -> $jack_lib"
  15911. cat >>confdefs.h <<_ACEOF
  15912. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15913. _ACEOF
  15914. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15915. case "$host" in
  15916. # On Solaris, jack must be linked deferred explicitly
  15917. # to prevent undefined symbol failures.
  15918. *-*-solaris*)
  15919. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15920. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15921. esac
  15922. else
  15923. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15924. SUMMARY_audio="${SUMMARY_audio} jack"
  15925. fi
  15926. have_audio=yes
  15927. fi
  15928. fi
  15929. }
  15930. CheckESD()
  15931. {
  15932. # Check whether --enable-esd was given.
  15933. if test "${enable_esd+set}" = set; then :
  15934. enableval=$enable_esd;
  15935. else
  15936. enable_esd=yes
  15937. fi
  15938. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15939. # Check whether --with-esd-prefix was given.
  15940. if test "${with_esd_prefix+set}" = set; then :
  15941. withval=$with_esd_prefix; esd_prefix="$withval"
  15942. else
  15943. esd_prefix=""
  15944. fi
  15945. # Check whether --with-esd-exec-prefix was given.
  15946. if test "${with_esd_exec_prefix+set}" = set; then :
  15947. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15948. else
  15949. esd_exec_prefix=""
  15950. fi
  15951. # Check whether --enable-esdtest was given.
  15952. if test "${enable_esdtest+set}" = set; then :
  15953. enableval=$enable_esdtest;
  15954. else
  15955. enable_esdtest=yes
  15956. fi
  15957. if test x$esd_exec_prefix != x ; then
  15958. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15959. if test x${ESD_CONFIG+set} != xset ; then
  15960. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15961. fi
  15962. fi
  15963. if test x$esd_prefix != x ; then
  15964. esd_args="$esd_args --prefix=$esd_prefix"
  15965. if test x${ESD_CONFIG+set} != xset ; then
  15966. ESD_CONFIG=$esd_prefix/bin/esd-config
  15967. fi
  15968. fi
  15969. # Extract the first word of "esd-config", so it can be a program name with args.
  15970. set dummy esd-config; ac_word=$2
  15971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15972. $as_echo_n "checking for $ac_word... " >&6; }
  15973. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15974. $as_echo_n "(cached) " >&6
  15975. else
  15976. case $ESD_CONFIG in
  15977. [\\/]* | ?:[\\/]*)
  15978. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15979. ;;
  15980. *)
  15981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15982. for as_dir in $PATH
  15983. do
  15984. IFS=$as_save_IFS
  15985. test -z "$as_dir" && as_dir=.
  15986. for ac_exec_ext in '' $ac_executable_extensions; do
  15987. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15988. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15990. break 2
  15991. fi
  15992. done
  15993. done
  15994. IFS=$as_save_IFS
  15995. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15996. ;;
  15997. esac
  15998. fi
  15999. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16000. if test -n "$ESD_CONFIG"; then
  16001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16002. $as_echo "$ESD_CONFIG" >&6; }
  16003. else
  16004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16005. $as_echo "no" >&6; }
  16006. fi
  16007. min_esd_version=0.2.8
  16008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16009. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16010. no_esd=""
  16011. if test "$ESD_CONFIG" = "no" ; then
  16012. no_esd=yes
  16013. else
  16014. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16015. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16016. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16017. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16018. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16019. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16020. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16021. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16022. if test "x$enable_esdtest" = "xyes" ; then
  16023. ac_ext=c
  16024. ac_cpp='$CPP $CPPFLAGS'
  16025. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16026. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16027. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16028. ac_save_CFLAGS="$CFLAGS"
  16029. ac_save_LIBS="$LIBS"
  16030. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16031. LIBS="$LIBS $ESD_LIBS"
  16032. rm -f conf.esdtest
  16033. if test "$cross_compiling" = yes; then :
  16034. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16035. else
  16036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16037. /* end confdefs.h. */
  16038. #include <stdio.h>
  16039. #include <stdlib.h>
  16040. #include <esd.h>
  16041. int main (void)
  16042. {
  16043. int major, minor, micro;
  16044. FILE *fp = fopen("conf.esdtest", "w");
  16045. if (fp) fclose(fp);
  16046. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16047. printf("%s, bad version string\n", "$min_esd_version");
  16048. exit(1);
  16049. }
  16050. if (($esd_major_version > major) ||
  16051. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16052. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16053. {
  16054. return 0;
  16055. }
  16056. else
  16057. {
  16058. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16059. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16060. printf("*** best to upgrade to the required version.\n");
  16061. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16062. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16063. printf("*** config.cache before re-running configure\n");
  16064. return 1;
  16065. }
  16066. }
  16067. _ACEOF
  16068. if ac_fn_c_try_run "$LINENO"; then :
  16069. else
  16070. no_esd=yes
  16071. fi
  16072. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16073. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16074. fi
  16075. CFLAGS="$ac_save_CFLAGS"
  16076. LIBS="$ac_save_LIBS"
  16077. ac_ext=c
  16078. ac_cpp='$CPP $CPPFLAGS'
  16079. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16080. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16081. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16082. fi
  16083. fi
  16084. if test "x$no_esd" = x ; then
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16086. $as_echo "yes" >&6; }
  16087. have_esd=yes
  16088. else
  16089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16090. $as_echo "no" >&6; }
  16091. if test "$ESD_CONFIG" = "no" ; then
  16092. echo "*** The esd-config script installed by ESD could not be found"
  16093. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16094. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16095. echo "*** full path to esd-config."
  16096. else
  16097. if test -f conf.esdtest ; then
  16098. :
  16099. else
  16100. echo "*** Could not run ESD test program, checking why..."
  16101. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16102. LIBS="$LIBS $ESD_LIBS"
  16103. ac_ext=c
  16104. ac_cpp='$CPP $CPPFLAGS'
  16105. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16106. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16107. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16109. /* end confdefs.h. */
  16110. #include <stdio.h>
  16111. #include <esd.h>
  16112. int
  16113. main ()
  16114. {
  16115. return 0;
  16116. ;
  16117. return 0;
  16118. }
  16119. _ACEOF
  16120. if ac_fn_c_try_link "$LINENO"; then :
  16121. echo "*** The test program compiled, but did not run. This usually means"
  16122. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16123. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16124. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16125. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16126. echo "*** is required on your system"
  16127. echo "***"
  16128. echo "*** If you have an old version installed, it is best to remove it, although"
  16129. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16130. else
  16131. echo "*** The test program failed to compile or link. See the file config.log for the"
  16132. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16133. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16134. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16135. fi
  16136. rm -f core conftest.err conftest.$ac_objext \
  16137. conftest$ac_exeext conftest.$ac_ext
  16138. CFLAGS="$ac_save_CFLAGS"
  16139. LIBS="$ac_save_LIBS"
  16140. ac_ext=c
  16141. ac_cpp='$CPP $CPPFLAGS'
  16142. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16143. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16144. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16145. fi
  16146. fi
  16147. ESD_CFLAGS=""
  16148. ESD_LIBS=""
  16149. have_esd=no
  16150. fi
  16151. rm -f conf.esdtest
  16152. if test x$have_esd = xyes; then
  16153. # Check whether --enable-esd-shared was given.
  16154. if test "${enable_esd_shared+set}" = set; then :
  16155. enableval=$enable_esd_shared;
  16156. else
  16157. enable_esd_shared=yes
  16158. fi
  16159. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16160. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16161. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16162. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16163. if test x$have_loadso != xyes && \
  16164. test x$enable_esd_shared = xyes; then
  16165. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16166. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16167. fi
  16168. if test x$have_loadso = xyes && \
  16169. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16170. echo "-- dynamic libesd -> $esd_lib"
  16171. cat >>confdefs.h <<_ACEOF
  16172. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16173. _ACEOF
  16174. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16175. else
  16176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16177. SUMMARY_audio="${SUMMARY_audio} esd"
  16178. fi
  16179. have_audio=yes
  16180. fi
  16181. fi
  16182. }
  16183. CheckPipewire()
  16184. {
  16185. # Check whether --enable-pipewire was given.
  16186. if test "${enable_pipewire+set}" = set; then :
  16187. enableval=$enable_pipewire;
  16188. else
  16189. enable_pipewire=yes
  16190. fi
  16191. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16192. pkg_failed=no
  16193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16194. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16195. if test -n "$PIPEWIRE_CFLAGS"; then
  16196. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16197. elif test -n "$PKG_CONFIG"; then
  16198. if test -n "$PKG_CONFIG" && \
  16199. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16200. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16201. ac_status=$?
  16202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16203. test $ac_status = 0; }; then
  16204. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16205. test "x$?" != "x0" && pkg_failed=yes
  16206. else
  16207. pkg_failed=yes
  16208. fi
  16209. else
  16210. pkg_failed=untried
  16211. fi
  16212. if test -n "$PIPEWIRE_LIBS"; then
  16213. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16214. elif test -n "$PKG_CONFIG"; then
  16215. if test -n "$PKG_CONFIG" && \
  16216. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16217. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16218. ac_status=$?
  16219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16220. test $ac_status = 0; }; then
  16221. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16222. test "x$?" != "x0" && pkg_failed=yes
  16223. else
  16224. pkg_failed=yes
  16225. fi
  16226. else
  16227. pkg_failed=untried
  16228. fi
  16229. if test $pkg_failed = yes; then
  16230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16231. $as_echo "no" >&6; }
  16232. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16233. _pkg_short_errors_supported=yes
  16234. else
  16235. _pkg_short_errors_supported=no
  16236. fi
  16237. if test $_pkg_short_errors_supported = yes; then
  16238. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16239. else
  16240. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16241. fi
  16242. # Put the nasty error message in config.log where it belongs
  16243. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16244. audio_pipewire=no
  16245. elif test $pkg_failed = untried; then
  16246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16247. $as_echo "no" >&6; }
  16248. audio_pipewire=no
  16249. else
  16250. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16251. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16253. $as_echo "yes" >&6; }
  16254. audio_pipewire=yes
  16255. fi
  16256. if test x$audio_pipewire = xyes; then
  16257. # Check whether --enable-pipewire-shared was given.
  16258. if test "${enable_pipewire_shared+set}" = set; then :
  16259. enableval=$enable_pipewire_shared;
  16260. else
  16261. enable_pipewire_shared=yes
  16262. fi
  16263. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16264. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16265. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16266. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16267. if test x$have_loadso != xyes && \
  16268. test x$enable_pipewire_shared = xyes; then
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16270. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16271. fi
  16272. if test x$have_loadso = xyes && \
  16273. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16274. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16275. cat >>confdefs.h <<_ACEOF
  16276. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16277. _ACEOF
  16278. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16279. else
  16280. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16281. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16282. fi
  16283. have_audio=yes
  16284. fi
  16285. fi
  16286. }
  16287. CheckPulseAudio()
  16288. {
  16289. # Check whether --enable-pulseaudio was given.
  16290. if test "${enable_pulseaudio+set}" = set; then :
  16291. enableval=$enable_pulseaudio;
  16292. else
  16293. enable_pulseaudio=yes
  16294. fi
  16295. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16296. pkg_failed=no
  16297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16298. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16299. if test -n "$PULSEAUDIO_CFLAGS"; then
  16300. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16301. elif test -n "$PKG_CONFIG"; then
  16302. if test -n "$PKG_CONFIG" && \
  16303. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16304. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16305. ac_status=$?
  16306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16307. test $ac_status = 0; }; then
  16308. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16309. test "x$?" != "x0" && pkg_failed=yes
  16310. else
  16311. pkg_failed=yes
  16312. fi
  16313. else
  16314. pkg_failed=untried
  16315. fi
  16316. if test -n "$PULSEAUDIO_LIBS"; then
  16317. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16318. elif test -n "$PKG_CONFIG"; then
  16319. if test -n "$PKG_CONFIG" && \
  16320. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16321. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16322. ac_status=$?
  16323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16324. test $ac_status = 0; }; then
  16325. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16326. test "x$?" != "x0" && pkg_failed=yes
  16327. else
  16328. pkg_failed=yes
  16329. fi
  16330. else
  16331. pkg_failed=untried
  16332. fi
  16333. if test $pkg_failed = yes; then
  16334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16335. $as_echo "no" >&6; }
  16336. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16337. _pkg_short_errors_supported=yes
  16338. else
  16339. _pkg_short_errors_supported=no
  16340. fi
  16341. if test $_pkg_short_errors_supported = yes; then
  16342. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16343. else
  16344. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16345. fi
  16346. # Put the nasty error message in config.log where it belongs
  16347. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16348. audio_pulseaudio=no
  16349. elif test $pkg_failed = untried; then
  16350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16351. $as_echo "no" >&6; }
  16352. audio_pulseaudio=no
  16353. else
  16354. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16355. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16357. $as_echo "yes" >&6; }
  16358. audio_pulseaudio=yes
  16359. fi
  16360. if test x$audio_pulseaudio = xyes; then
  16361. # Check whether --enable-pulseaudio-shared was given.
  16362. if test "${enable_pulseaudio_shared+set}" = set; then :
  16363. enableval=$enable_pulseaudio_shared;
  16364. else
  16365. enable_pulseaudio_shared=yes
  16366. fi
  16367. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16368. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16369. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16370. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16371. if test x$have_loadso != xyes && \
  16372. test x$enable_pulseaudio_shared = xyes; then
  16373. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16374. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16375. fi
  16376. if test x$have_loadso = xyes && \
  16377. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16378. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16379. cat >>confdefs.h <<_ACEOF
  16380. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16381. _ACEOF
  16382. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16383. case "$host" in
  16384. # On Solaris, pulseaudio must be linked deferred explicitly
  16385. # to prevent undefined symbol failures.
  16386. *-*-solaris*)
  16387. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16388. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16389. esac
  16390. else
  16391. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16392. SUMMARY_audio="${SUMMARY_audio} pulse"
  16393. fi
  16394. have_audio=yes
  16395. fi
  16396. fi
  16397. }
  16398. CheckARTSC()
  16399. {
  16400. # Check whether --enable-arts was given.
  16401. if test "${enable_arts+set}" = set; then :
  16402. enableval=$enable_arts;
  16403. else
  16404. enable_arts=yes
  16405. fi
  16406. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16407. # Extract the first word of "artsc-config", so it can be a program name with args.
  16408. set dummy artsc-config; ac_word=$2
  16409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16410. $as_echo_n "checking for $ac_word... " >&6; }
  16411. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16412. $as_echo_n "(cached) " >&6
  16413. else
  16414. case $ARTSCONFIG in
  16415. [\\/]* | ?:[\\/]*)
  16416. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16417. ;;
  16418. *)
  16419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16420. for as_dir in $PATH
  16421. do
  16422. IFS=$as_save_IFS
  16423. test -z "$as_dir" && as_dir=.
  16424. for ac_exec_ext in '' $ac_executable_extensions; do
  16425. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16426. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16428. break 2
  16429. fi
  16430. done
  16431. done
  16432. IFS=$as_save_IFS
  16433. ;;
  16434. esac
  16435. fi
  16436. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16437. if test -n "$ARTSCONFIG"; then
  16438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16439. $as_echo "$ARTSCONFIG" >&6; }
  16440. else
  16441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16442. $as_echo "no" >&6; }
  16443. fi
  16444. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16445. : # arts isn't installed
  16446. else
  16447. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16448. ARTS_LIBS=`$ARTSCONFIG --libs`
  16449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16450. $as_echo_n "checking for aRts development environment... " >&6; }
  16451. audio_arts=no
  16452. save_CFLAGS="$CFLAGS"
  16453. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16455. /* end confdefs.h. */
  16456. #include <artsc.h>
  16457. int
  16458. main ()
  16459. {
  16460. arts_stream_t stream;
  16461. ;
  16462. return 0;
  16463. }
  16464. _ACEOF
  16465. if ac_fn_c_try_compile "$LINENO"; then :
  16466. audio_arts=yes
  16467. fi
  16468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16469. CFLAGS="$save_CFLAGS"
  16470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16471. $as_echo "$audio_arts" >&6; }
  16472. if test x$audio_arts = xyes; then
  16473. # Check whether --enable-arts-shared was given.
  16474. if test "${enable_arts_shared+set}" = set; then :
  16475. enableval=$enable_arts_shared;
  16476. else
  16477. enable_arts_shared=yes
  16478. fi
  16479. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16480. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16481. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16482. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16483. if test x$have_loadso != xyes && \
  16484. test x$enable_arts_shared = xyes; then
  16485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16486. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16487. fi
  16488. if test x$have_loadso = xyes && \
  16489. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16490. echo "-- dynamic libartsc -> $arts_lib"
  16491. cat >>confdefs.h <<_ACEOF
  16492. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16493. _ACEOF
  16494. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16495. else
  16496. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16497. SUMMARY_audio="${SUMMARY_audio} arts"
  16498. fi
  16499. have_audio=yes
  16500. fi
  16501. fi
  16502. fi
  16503. }
  16504. CheckNAS()
  16505. {
  16506. # Check whether --enable-nas was given.
  16507. if test "${enable_nas+set}" = set; then :
  16508. enableval=$enable_nas;
  16509. else
  16510. enable_nas=yes
  16511. fi
  16512. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16513. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16514. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16515. have_nas_hdr=yes
  16516. fi
  16517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16518. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16519. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16520. $as_echo_n "(cached) " >&6
  16521. else
  16522. ac_check_lib_save_LIBS=$LIBS
  16523. LIBS="-laudio $LIBS"
  16524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16525. /* end confdefs.h. */
  16526. /* Override any GCC internal prototype to avoid an error.
  16527. Use char because int might match the return type of a GCC
  16528. builtin and then its argument prototype would still apply. */
  16529. #ifdef __cplusplus
  16530. extern "C"
  16531. #endif
  16532. char AuOpenServer ();
  16533. int
  16534. main ()
  16535. {
  16536. return AuOpenServer ();
  16537. ;
  16538. return 0;
  16539. }
  16540. _ACEOF
  16541. if ac_fn_c_try_link "$LINENO"; then :
  16542. ac_cv_lib_audio_AuOpenServer=yes
  16543. else
  16544. ac_cv_lib_audio_AuOpenServer=no
  16545. fi
  16546. rm -f core conftest.err conftest.$ac_objext \
  16547. conftest$ac_exeext conftest.$ac_ext
  16548. LIBS=$ac_check_lib_save_LIBS
  16549. fi
  16550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16551. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16552. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16553. have_nas_lib=yes
  16554. fi
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16556. $as_echo_n "checking for NAS audio support... " >&6; }
  16557. have_nas=no
  16558. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16559. have_nas=yes
  16560. NAS_LIBS="-laudio"
  16561. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16562. have_nas=yes
  16563. NAS_CFLAGS="-I/usr/X11R6/include/"
  16564. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16565. fi
  16566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16567. $as_echo "$have_nas" >&6; }
  16568. if test x$have_nas = xyes; then
  16569. # Check whether --enable-nas-shared was given.
  16570. if test "${enable_nas_shared+set}" = set; then :
  16571. enableval=$enable_nas_shared;
  16572. else
  16573. enable_nas_shared=yes
  16574. fi
  16575. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16576. if test x$have_loadso != xyes && \
  16577. test x$enable_nas_shared = xyes; then
  16578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16579. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16580. fi
  16581. if test x$have_loadso = xyes && \
  16582. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16583. echo "-- dynamic libaudio -> $nas_lib"
  16584. cat >>confdefs.h <<_ACEOF
  16585. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16586. _ACEOF
  16587. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16588. else
  16589. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16590. SUMMARY_audio="${SUMMARY_audio} nas"
  16591. fi
  16592. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16593. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16594. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16595. have_audio=yes
  16596. fi
  16597. fi
  16598. }
  16599. CheckSNDIO()
  16600. {
  16601. # Check whether --enable-sndio was given.
  16602. if test "${enable_sndio+set}" = set; then :
  16603. enableval=$enable_sndio;
  16604. else
  16605. enable_sndio=yes
  16606. fi
  16607. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16608. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16609. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16610. have_sndio_hdr=yes
  16611. fi
  16612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16613. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16614. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16615. $as_echo_n "(cached) " >&6
  16616. else
  16617. ac_check_lib_save_LIBS=$LIBS
  16618. LIBS="-lsndio $LIBS"
  16619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16620. /* end confdefs.h. */
  16621. /* Override any GCC internal prototype to avoid an error.
  16622. Use char because int might match the return type of a GCC
  16623. builtin and then its argument prototype would still apply. */
  16624. #ifdef __cplusplus
  16625. extern "C"
  16626. #endif
  16627. char sio_open ();
  16628. int
  16629. main ()
  16630. {
  16631. return sio_open ();
  16632. ;
  16633. return 0;
  16634. }
  16635. _ACEOF
  16636. if ac_fn_c_try_link "$LINENO"; then :
  16637. ac_cv_lib_sndio_sio_open=yes
  16638. else
  16639. ac_cv_lib_sndio_sio_open=no
  16640. fi
  16641. rm -f core conftest.err conftest.$ac_objext \
  16642. conftest$ac_exeext conftest.$ac_ext
  16643. LIBS=$ac_check_lib_save_LIBS
  16644. fi
  16645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16646. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16647. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16648. have_sndio_lib=yes
  16649. fi
  16650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16651. $as_echo_n "checking for sndio audio support... " >&6; }
  16652. have_sndio=no
  16653. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16654. have_sndio=yes
  16655. SNDIO_LIBS="-lsndio"
  16656. fi
  16657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16658. $as_echo "$have_sndio" >&6; }
  16659. if test x$have_sndio = xyes; then
  16660. # Check whether --enable-sndio-shared was given.
  16661. if test "${enable_sndio_shared+set}" = set; then :
  16662. enableval=$enable_sndio_shared;
  16663. else
  16664. enable_sndio_shared=yes
  16665. fi
  16666. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16667. if test x$have_loadso != xyes && \
  16668. test x$enable_sndio_shared = xyes; then
  16669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16670. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16671. fi
  16672. if test x$have_loadso = xyes && \
  16673. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16674. echo "-- dynamic libsndio -> $sndio_lib"
  16675. cat >>confdefs.h <<_ACEOF
  16676. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16677. _ACEOF
  16678. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16679. else
  16680. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16681. SUMMARY_audio="${SUMMARY_audio} sndio"
  16682. fi
  16683. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16684. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16685. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16686. have_audio=yes
  16687. fi
  16688. fi
  16689. }
  16690. CheckFusionSound()
  16691. {
  16692. # Check whether --enable-fusionsound was given.
  16693. if test "${enable_fusionsound+set}" = set; then :
  16694. enableval=$enable_fusionsound;
  16695. else
  16696. enable_fusionsound=no
  16697. fi
  16698. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16699. pkg_failed=no
  16700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16701. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16702. if test -n "$FUSIONSOUND_CFLAGS"; then
  16703. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16704. elif test -n "$PKG_CONFIG"; then
  16705. if test -n "$PKG_CONFIG" && \
  16706. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16707. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16708. ac_status=$?
  16709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16710. test $ac_status = 0; }; then
  16711. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16712. test "x$?" != "x0" && pkg_failed=yes
  16713. else
  16714. pkg_failed=yes
  16715. fi
  16716. else
  16717. pkg_failed=untried
  16718. fi
  16719. if test -n "$FUSIONSOUND_LIBS"; then
  16720. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16721. elif test -n "$PKG_CONFIG"; then
  16722. if test -n "$PKG_CONFIG" && \
  16723. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16724. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16725. ac_status=$?
  16726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16727. test $ac_status = 0; }; then
  16728. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16729. test "x$?" != "x0" && pkg_failed=yes
  16730. else
  16731. pkg_failed=yes
  16732. fi
  16733. else
  16734. pkg_failed=untried
  16735. fi
  16736. if test $pkg_failed = yes; then
  16737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16738. $as_echo "no" >&6; }
  16739. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16740. _pkg_short_errors_supported=yes
  16741. else
  16742. _pkg_short_errors_supported=no
  16743. fi
  16744. if test $_pkg_short_errors_supported = yes; then
  16745. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16746. else
  16747. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16748. fi
  16749. # Put the nasty error message in config.log where it belongs
  16750. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16751. fusionsound=no
  16752. elif test $pkg_failed = untried; then
  16753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16754. $as_echo "no" >&6; }
  16755. fusionsound=no
  16756. else
  16757. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16758. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16760. $as_echo "yes" >&6; }
  16761. fusionsound=yes
  16762. fi
  16763. if test x$fusionsound = xyes; then
  16764. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16765. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16766. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16767. # Check whether --enable-fusionsound-shared was given.
  16768. if test "${enable_fusionsound_shared+set}" = set; then :
  16769. enableval=$enable_fusionsound_shared;
  16770. else
  16771. enable_fusionsound_shared=yes
  16772. fi
  16773. fusionsound_shared=no
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16775. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16776. if test x$have_loadso != xyes && \
  16777. test x$enable_fusionsound_shared = xyes; then
  16778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16779. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16780. fi
  16781. if test x$have_loadso = xyes && \
  16782. test x$enable_fusionsound_shared = xyes; then
  16783. cat >>confdefs.h <<_ACEOF
  16784. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16785. _ACEOF
  16786. fusionsound_shared=yes
  16787. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16788. else
  16789. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16790. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16791. fi
  16792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16793. $as_echo "$fusionsound_shared" >&6; }
  16794. have_audio=yes
  16795. fi
  16796. fi
  16797. }
  16798. CheckDiskAudio()
  16799. {
  16800. # Check whether --enable-diskaudio was given.
  16801. if test "${enable_diskaudio+set}" = set; then :
  16802. enableval=$enable_diskaudio;
  16803. else
  16804. enable_diskaudio=yes
  16805. fi
  16806. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16807. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16808. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16809. SUMMARY_audio="${SUMMARY_audio} disk"
  16810. fi
  16811. }
  16812. CheckDummyAudio()
  16813. {
  16814. # Check whether --enable-dummyaudio was given.
  16815. if test "${enable_dummyaudio+set}" = set; then :
  16816. enableval=$enable_dummyaudio;
  16817. else
  16818. enable_dummyaudio=yes
  16819. fi
  16820. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16821. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16822. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16823. SUMMARY_audio="${SUMMARY_audio} dummy"
  16824. fi
  16825. }
  16826. CheckLibSampleRate()
  16827. {
  16828. # Check whether --enable-libsamplerate was given.
  16829. if test "${enable_libsamplerate+set}" = set; then :
  16830. enableval=$enable_libsamplerate;
  16831. else
  16832. enable_libsamplerate=yes
  16833. fi
  16834. if test x$enable_libsamplerate = xyes; then
  16835. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16836. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16837. have_samplerate_h_hdr=yes
  16838. else
  16839. have_samplerate_h_hdr=no
  16840. fi
  16841. if test x$have_samplerate_h_hdr = xyes; then
  16842. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16843. # Check whether --enable-libsamplerate-shared was given.
  16844. if test "${enable_libsamplerate_shared+set}" = set; then :
  16845. enableval=$enable_libsamplerate_shared;
  16846. else
  16847. enable_libsamplerate_shared=yes
  16848. fi
  16849. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16850. if test x$have_loadso != xyes && \
  16851. test x$enable_libsamplerate_shared = xyes; then
  16852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16853. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16854. fi
  16855. if test x$have_loadso = xyes && \
  16856. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16857. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16858. cat >>confdefs.h <<_ACEOF
  16859. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16860. _ACEOF
  16861. else
  16862. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16863. fi
  16864. fi
  16865. fi
  16866. }
  16867. CheckARM()
  16868. {
  16869. # Check whether --enable-arm-simd was given.
  16870. if test "${enable_arm_simd+set}" = set; then :
  16871. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16872. else
  16873. enable_arm_simd=no
  16874. fi
  16875. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16876. save_CFLAGS="$CFLAGS"
  16877. have_arm_simd=no
  16878. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16880. $as_echo_n "checking for ARM SIMD... " >&6; }
  16881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16882. /* end confdefs.h. */
  16883. .text
  16884. .arch armv6
  16885. .object_arch armv4
  16886. .arm
  16887. .altmacro
  16888. #ifndef __ARM_EABI__
  16889. #error EABI is required (to be sure that calling conventions are compatible)
  16890. #endif
  16891. pld [r0]
  16892. uqadd8 r0, r0, r0
  16893. _ACEOF
  16894. if ac_fn_c_try_compile "$LINENO"; then :
  16895. have_arm_simd=yes
  16896. fi
  16897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16899. $as_echo "$have_arm_simd" >&6; }
  16900. CFLAGS="$save_CFLAGS"
  16901. if test x$have_arm_simd = xyes; then
  16902. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16903. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16904. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16905. fi
  16906. fi
  16907. }
  16908. CheckNEON()
  16909. {
  16910. # Check whether --enable-arm-neon was given.
  16911. if test "${enable_arm_neon+set}" = set; then :
  16912. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16913. else
  16914. enable_arm_neon=no
  16915. fi
  16916. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16917. save_CFLAGS="$CFLAGS"
  16918. have_arm_neon=no
  16919. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16921. $as_echo_n "checking for ARM NEON... " >&6; }
  16922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16923. /* end confdefs.h. */
  16924. .text
  16925. .fpu neon
  16926. .arch armv7a
  16927. .object_arch armv4
  16928. .eabi_attribute 10, 0
  16929. .arm
  16930. .altmacro
  16931. #ifndef __ARM_EABI__
  16932. #error EABI is required (to be sure that calling conventions are compatible)
  16933. #endif
  16934. pld [r0]
  16935. vmovn.u16 d0, q0
  16936. _ACEOF
  16937. if ac_fn_c_try_compile "$LINENO"; then :
  16938. have_arm_neon=yes
  16939. fi
  16940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16942. $as_echo "$have_arm_neon" >&6; }
  16943. CFLAGS="$save_CFLAGS"
  16944. if test x$have_arm_neon = xyes; then
  16945. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16946. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16947. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16948. fi
  16949. fi
  16950. }
  16951. CheckVisibilityHidden()
  16952. {
  16953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16954. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16955. have_gcc_fvisibility=no
  16956. visibility_CFLAGS="-fvisibility=hidden"
  16957. save_CFLAGS="$CFLAGS"
  16958. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16960. /* end confdefs.h. */
  16961. #if !defined(__GNUC__) || __GNUC__ < 4
  16962. #error SDL only uses visibility attributes in GCC 4 or newer
  16963. #endif
  16964. int
  16965. main ()
  16966. {
  16967. ;
  16968. return 0;
  16969. }
  16970. _ACEOF
  16971. if ac_fn_c_try_compile "$LINENO"; then :
  16972. have_gcc_fvisibility=yes
  16973. fi
  16974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16976. $as_echo "$have_gcc_fvisibility" >&6; }
  16977. CFLAGS="$save_CFLAGS"
  16978. if test x$have_gcc_fvisibility = xyes; then
  16979. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16980. fi
  16981. }
  16982. CheckNoStrictAliasing()
  16983. {
  16984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16985. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16986. have_gcc_no_strict_aliasing=no
  16987. save_CFLAGS="$CFLAGS"
  16988. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16990. /* end confdefs.h. */
  16991. int x = 0;
  16992. int
  16993. main ()
  16994. {
  16995. ;
  16996. return 0;
  16997. }
  16998. _ACEOF
  16999. if ac_fn_c_try_compile "$LINENO"; then :
  17000. have_gcc_no_strict_aliasing=yes
  17001. fi
  17002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17004. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17005. CFLAGS="$save_CFLAGS"
  17006. if test x$have_gcc_no_strict_aliasing = xyes; then
  17007. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17008. fi
  17009. }
  17010. CheckStackBoundary()
  17011. {
  17012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17013. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17014. have_gcc_preferred_stack_boundary=no
  17015. save_CFLAGS="$CFLAGS"
  17016. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17018. /* end confdefs.h. */
  17019. int x = 0;
  17020. int
  17021. main ()
  17022. {
  17023. ;
  17024. return 0;
  17025. }
  17026. _ACEOF
  17027. if ac_fn_c_try_compile "$LINENO"; then :
  17028. have_gcc_preferred_stack_boundary=yes
  17029. fi
  17030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17032. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17033. CFLAGS="$save_CFLAGS"
  17034. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17035. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17036. fi
  17037. }
  17038. CheckDeclarationAfterStatement()
  17039. {
  17040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17041. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17042. have_gcc_declaration_after_statement=no
  17043. save_CFLAGS="$CFLAGS"
  17044. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17046. /* end confdefs.h. */
  17047. int x = 0;
  17048. int
  17049. main ()
  17050. {
  17051. ;
  17052. return 0;
  17053. }
  17054. _ACEOF
  17055. if ac_fn_c_try_compile "$LINENO"; then :
  17056. have_gcc_declaration_after_statement=yes
  17057. fi
  17058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17060. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17061. CFLAGS="$save_CFLAGS"
  17062. if test x$have_gcc_declaration_after_statement = xyes; then
  17063. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17064. fi
  17065. }
  17066. CheckWarnAll()
  17067. {
  17068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17069. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17070. have_gcc_Wall=no
  17071. save_CFLAGS="$CFLAGS"
  17072. CFLAGS="$save_CFLAGS -Wall"
  17073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17074. /* end confdefs.h. */
  17075. int x = 0;
  17076. int
  17077. main ()
  17078. {
  17079. ;
  17080. return 0;
  17081. }
  17082. _ACEOF
  17083. if ac_fn_c_try_compile "$LINENO"; then :
  17084. have_gcc_Wall=yes
  17085. fi
  17086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17088. $as_echo "$have_gcc_Wall" >&6; }
  17089. CFLAGS="$save_CFLAGS"
  17090. if test x$have_gcc_Wall = xyes; then
  17091. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17093. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17094. need_gcc_Wno_multichar=no
  17095. case "$host" in
  17096. *-*-haiku*)
  17097. need_gcc_Wno_multichar=yes
  17098. ;;
  17099. esac
  17100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17101. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17102. if test x$need_gcc_Wno_multichar = xyes; then
  17103. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17104. fi
  17105. fi
  17106. }
  17107. CheckWayland()
  17108. {
  17109. # Check whether --enable-video-wayland was given.
  17110. if test "${enable_video_wayland+set}" = set; then :
  17111. enableval=$enable_video_wayland;
  17112. else
  17113. enable_video_wayland=yes
  17114. fi
  17115. # Check whether --enable-video-wayland-qt-touch was given.
  17116. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17117. enableval=$enable_video_wayland_qt_touch;
  17118. else
  17119. enable_video_wayland_qt_touch=yes
  17120. fi
  17121. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17123. $as_echo_n "checking for Wayland support... " >&6; }
  17124. video_wayland=no
  17125. if test x$video_opengl_egl = xyes && \
  17126. test x$video_opengles_v2 = xyes; then
  17127. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17128. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17129. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17130. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17131. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17132. WAYLAND_SCANNER_CODE_MODE=private-code
  17133. else
  17134. WAYLAND_SCANNER_CODE_MODE=code
  17135. fi
  17136. video_wayland=yes
  17137. fi
  17138. fi
  17139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17140. $as_echo "$video_wayland" >&6; }
  17141. if test x$video_wayland = xyes; then
  17142. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17143. if test x$enable_video_wayland_qt_touch = xyes; then
  17144. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17145. fi
  17146. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17147. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17148. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17149. # Check whether --enable-wayland-shared was given.
  17150. if test "${enable_wayland_shared+set}" = set; then :
  17151. enableval=$enable_wayland_shared;
  17152. else
  17153. enable_wayland_shared=maybe
  17154. fi
  17155. case "$host" in
  17156. *)
  17157. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17158. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17159. if test x$wayland_egl_lib = x; then
  17160. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17161. fi
  17162. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17163. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17164. ;;
  17165. esac
  17166. if test x$enable_wayland_shared = xmaybe; then
  17167. enable_wayland_shared=yes
  17168. fi
  17169. if test x$have_loadso != xyes && \
  17170. test x$enable_wayland_shared = xyes; then
  17171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17172. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17173. enable_wayland_shared=no
  17174. fi
  17175. if test x$have_loadso = xyes && \
  17176. test x$enable_wayland_shared = xyes && \
  17177. test x$wayland_client_lib != x && \
  17178. test x$wayland_egl_lib != x && \
  17179. test x$wayland_cursor_lib != x && \
  17180. test x$xkbcommon_lib != x; then
  17181. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17182. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17183. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17184. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17185. cat >>confdefs.h <<_ACEOF
  17186. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17187. _ACEOF
  17188. cat >>confdefs.h <<_ACEOF
  17189. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17190. _ACEOF
  17191. cat >>confdefs.h <<_ACEOF
  17192. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17193. _ACEOF
  17194. cat >>confdefs.h <<_ACEOF
  17195. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17196. _ACEOF
  17197. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17198. else
  17199. enable_wayland_shared=no
  17200. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17201. SUMMARY_video="${SUMMARY_video} wayland"
  17202. fi
  17203. have_video=yes
  17204. # Check whether --enable-libdecor was given.
  17205. if test "${enable_libdecor+set}" = set; then :
  17206. enableval=$enable_libdecor;
  17207. else
  17208. enable_libdecor=yes
  17209. fi
  17210. if test x$enable_libdecor = xyes; then
  17211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor support" >&5
  17212. $as_echo_n "checking for libdecor support... " >&6; }
  17213. if $PKG_CONFIG --exists libdecor-0; then :
  17214. video_libdecor=yes
  17215. else
  17216. video_libdecor=no
  17217. fi
  17218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_libdecor" >&5
  17219. $as_echo "$video_libdecor" >&6; }
  17220. if test x$video_libdecor = xyes; then
  17221. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags libdecor-0`"
  17222. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17223. # Check whether --enable-libdecor-shared was given.
  17224. if test "${enable_libdecor_shared+set}" = set; then :
  17225. enableval=$enable_libdecor_shared;
  17226. else
  17227. enable_libdecor_shared=yes
  17228. fi
  17229. if test x$enable_wayland_shared != xyes; then
  17230. enable_libdecor_shared=no
  17231. fi
  17232. decor_lib=`find_lib "libdecor-0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17233. if test x$have_loadso != xyes && \
  17234. test x$enable_libdecor_shared = xyes; then
  17235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17236. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17237. fi
  17238. if test x$have_loadso = xyes && \
  17239. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17240. echo "-- dynamic libdecor -> $decor_lib"
  17241. cat >>confdefs.h <<_ACEOF
  17242. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17243. _ACEOF
  17244. else
  17245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs libdecor-0`"
  17246. fi
  17247. fi
  17248. fi
  17249. fi
  17250. fi
  17251. }
  17252. CheckNativeClient()
  17253. {
  17254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17255. /* end confdefs.h. */
  17256. #if !defined(__native_client__)
  17257. #error "NO NACL"
  17258. #endif
  17259. int
  17260. main ()
  17261. {
  17262. ;
  17263. return 0;
  17264. }
  17265. _ACEOF
  17266. if ac_fn_c_try_compile "$LINENO"; then :
  17267. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17268. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17269. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17270. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17271. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17272. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17273. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17274. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17275. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17276. SUMMARY_audio="${SUMMARY_audio} nacl"
  17277. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17278. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17279. fi
  17280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17281. }
  17282. CheckRPI()
  17283. {
  17284. # Check whether --enable-video-rpi was given.
  17285. if test "${enable_video_rpi+set}" = set; then :
  17286. enableval=$enable_video_rpi;
  17287. else
  17288. enable_video_rpi=yes
  17289. fi
  17290. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17291. pkg_failed=no
  17292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17293. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17294. if test -n "$RPI_CFLAGS"; then
  17295. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17296. elif test -n "$PKG_CONFIG"; then
  17297. if test -n "$PKG_CONFIG" && \
  17298. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17299. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17300. ac_status=$?
  17301. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17302. test $ac_status = 0; }; then
  17303. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17304. test "x$?" != "x0" && pkg_failed=yes
  17305. else
  17306. pkg_failed=yes
  17307. fi
  17308. else
  17309. pkg_failed=untried
  17310. fi
  17311. if test -n "$RPI_LIBS"; then
  17312. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17313. elif test -n "$PKG_CONFIG"; then
  17314. if test -n "$PKG_CONFIG" && \
  17315. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17316. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17317. ac_status=$?
  17318. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17319. test $ac_status = 0; }; then
  17320. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17321. test "x$?" != "x0" && pkg_failed=yes
  17322. else
  17323. pkg_failed=yes
  17324. fi
  17325. else
  17326. pkg_failed=untried
  17327. fi
  17328. if test $pkg_failed = yes; then
  17329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17330. $as_echo "no" >&6; }
  17331. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17332. _pkg_short_errors_supported=yes
  17333. else
  17334. _pkg_short_errors_supported=no
  17335. fi
  17336. if test $_pkg_short_errors_supported = yes; then
  17337. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17338. else
  17339. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17340. fi
  17341. # Put the nasty error message in config.log where it belongs
  17342. echo "$RPI_PKG_ERRORS" >&5
  17343. video_rpi=no
  17344. elif test $pkg_failed = untried; then
  17345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17346. $as_echo "no" >&6; }
  17347. video_rpi=no
  17348. else
  17349. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17350. RPI_LIBS=$pkg_cv_RPI_LIBS
  17351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17352. $as_echo "yes" >&6; }
  17353. video_rpi=yes
  17354. fi
  17355. if test x$video_rpi = xno; then
  17356. if test x$ARCH = xnetbsd; then
  17357. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17358. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17359. else
  17360. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17361. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17362. fi
  17363. fi
  17364. # Save the original compiler flags and libraries
  17365. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17366. # Add the Raspberry Pi compiler flags and libraries
  17367. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17369. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17370. have_video_rpi=no
  17371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17372. /* end confdefs.h. */
  17373. #include <bcm_host.h>
  17374. int
  17375. main ()
  17376. {
  17377. bcm_host_init();
  17378. ;
  17379. return 0;
  17380. }
  17381. _ACEOF
  17382. if ac_fn_c_try_link "$LINENO"; then :
  17383. have_video_rpi=yes
  17384. fi
  17385. rm -f core conftest.err conftest.$ac_objext \
  17386. conftest$ac_exeext conftest.$ac_ext
  17387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17388. $as_echo "$have_video_rpi" >&6; }
  17389. # Restore the compiler flags and libraries
  17390. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17391. if test x$have_video_rpi = xyes; then
  17392. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17393. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17394. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17395. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17396. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17397. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17398. SUMMARY_video="${SUMMARY_video} rpi"
  17399. fi
  17400. fi
  17401. }
  17402. CheckX11()
  17403. {
  17404. # Check whether --enable-video-x11 was given.
  17405. if test "${enable_video_x11+set}" = set; then :
  17406. enableval=$enable_video_x11;
  17407. else
  17408. enable_video_x11=yes
  17409. fi
  17410. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17411. case "$host" in
  17412. *-*-darwin*)
  17413. # This isn't necessary for X11, but fixes GLX detection
  17414. if test "x$x_includes" = xNONE && \
  17415. test "x$x_libraries" = xNONE && \
  17416. test -d /opt/X11/include && \
  17417. test -d /opt/X11/lib; then
  17418. x_includes="/opt/X11/include"
  17419. x_libraries="/opt/X11/lib"
  17420. fi
  17421. ;;
  17422. esac
  17423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17424. $as_echo_n "checking for X... " >&6; }
  17425. # Check whether --with-x was given.
  17426. if test "${with_x+set}" = set; then :
  17427. withval=$with_x;
  17428. fi
  17429. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17430. if test "x$with_x" = xno; then
  17431. # The user explicitly disabled X.
  17432. have_x=disabled
  17433. else
  17434. case $x_includes,$x_libraries in #(
  17435. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17436. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17437. $as_echo_n "(cached) " >&6
  17438. else
  17439. # One or both of the vars are not set, and there is no cached value.
  17440. ac_x_includes=no
  17441. ac_x_libraries=no
  17442. # Do we need to do anything special at all?
  17443. ac_save_LIBS=$LIBS
  17444. LIBS="-lX11 $LIBS"
  17445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17446. /* end confdefs.h. */
  17447. #include <X11/Xlib.h>
  17448. int
  17449. main ()
  17450. {
  17451. XrmInitialize ()
  17452. ;
  17453. return 0;
  17454. }
  17455. _ACEOF
  17456. if ac_fn_c_try_link "$LINENO"; then :
  17457. # We can compile and link X programs with no special options.
  17458. ac_x_includes=
  17459. ac_x_libraries=
  17460. fi
  17461. rm -f core conftest.err conftest.$ac_objext \
  17462. conftest$ac_exeext conftest.$ac_ext
  17463. LIBS="$ac_save_LIBS"
  17464. # If that didn't work, only try xmkmf and filesystem searches
  17465. # for native compilation.
  17466. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  17467. rm -f -r conftest.dir
  17468. if mkdir conftest.dir; then
  17469. cd conftest.dir
  17470. cat >Imakefile <<'_ACEOF'
  17471. incroot:
  17472. @echo incroot='${INCROOT}'
  17473. usrlibdir:
  17474. @echo usrlibdir='${USRLIBDIR}'
  17475. libdir:
  17476. @echo libdir='${LIBDIR}'
  17477. _ACEOF
  17478. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17479. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17480. for ac_var in incroot usrlibdir libdir; do
  17481. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17482. done
  17483. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17484. for ac_extension in a so sl dylib la dll; do
  17485. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17486. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17487. ac_im_usrlibdir=$ac_im_libdir; break
  17488. fi
  17489. done
  17490. # Screen out bogus values from the imake configuration. They are
  17491. # bogus both because they are the default anyway, and because
  17492. # using them would break gcc on systems where it needs fixed includes.
  17493. case $ac_im_incroot in
  17494. /usr/include) ac_x_includes= ;;
  17495. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17496. esac
  17497. case $ac_im_usrlibdir in
  17498. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17499. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17500. esac
  17501. fi
  17502. cd ..
  17503. rm -f -r conftest.dir
  17504. fi
  17505. # Standard set of common directories for X headers.
  17506. # Check X11 before X11Rn because it is often a symlink to the current release.
  17507. ac_x_header_dirs='
  17508. /usr/X11/include
  17509. /usr/X11R7/include
  17510. /usr/X11R6/include
  17511. /usr/X11R5/include
  17512. /usr/X11R4/include
  17513. /usr/include/X11
  17514. /usr/include/X11R7
  17515. /usr/include/X11R6
  17516. /usr/include/X11R5
  17517. /usr/include/X11R4
  17518. /usr/local/X11/include
  17519. /usr/local/X11R7/include
  17520. /usr/local/X11R6/include
  17521. /usr/local/X11R5/include
  17522. /usr/local/X11R4/include
  17523. /usr/local/include/X11
  17524. /usr/local/include/X11R7
  17525. /usr/local/include/X11R6
  17526. /usr/local/include/X11R5
  17527. /usr/local/include/X11R4
  17528. /opt/X11/include
  17529. /usr/X386/include
  17530. /usr/x386/include
  17531. /usr/XFree86/include/X11
  17532. /usr/include
  17533. /usr/local/include
  17534. /usr/unsupported/include
  17535. /usr/athena/include
  17536. /usr/local/x11r5/include
  17537. /usr/lpp/Xamples/include
  17538. /usr/openwin/include
  17539. /usr/openwin/share/include'
  17540. if test "$ac_x_includes" = no; then
  17541. # Guess where to find include files, by looking for Xlib.h.
  17542. # First, try using that file with no special directory specified.
  17543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17544. /* end confdefs.h. */
  17545. #include <X11/Xlib.h>
  17546. _ACEOF
  17547. if ac_fn_c_try_cpp "$LINENO"; then :
  17548. # We can compile using X headers with no special include directory.
  17549. ac_x_includes=
  17550. else
  17551. for ac_dir in $ac_x_header_dirs; do
  17552. if test -r "$ac_dir/X11/Xlib.h"; then
  17553. ac_x_includes=$ac_dir
  17554. break
  17555. fi
  17556. done
  17557. fi
  17558. rm -f conftest.err conftest.i conftest.$ac_ext
  17559. fi # $ac_x_includes = no
  17560. if test "$ac_x_libraries" = no; then
  17561. # Check for the libraries.
  17562. # See if we find them without any special options.
  17563. # Don't add to $LIBS permanently.
  17564. ac_save_LIBS=$LIBS
  17565. LIBS="-lX11 $LIBS"
  17566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17567. /* end confdefs.h. */
  17568. #include <X11/Xlib.h>
  17569. int
  17570. main ()
  17571. {
  17572. XrmInitialize ()
  17573. ;
  17574. return 0;
  17575. }
  17576. _ACEOF
  17577. if ac_fn_c_try_link "$LINENO"; then :
  17578. LIBS=$ac_save_LIBS
  17579. # We can link X programs with no special library path.
  17580. ac_x_libraries=
  17581. else
  17582. LIBS=$ac_save_LIBS
  17583. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17584. do
  17585. # Don't even attempt the hair of trying to link an X program!
  17586. for ac_extension in a so sl dylib la dll; do
  17587. if test -r "$ac_dir/libX11.$ac_extension"; then
  17588. ac_x_libraries=$ac_dir
  17589. break 2
  17590. fi
  17591. done
  17592. done
  17593. fi
  17594. rm -f core conftest.err conftest.$ac_objext \
  17595. conftest$ac_exeext conftest.$ac_ext
  17596. fi # $ac_x_libraries = no
  17597. fi
  17598. # Record the results.
  17599. case $ac_x_includes,$ac_x_libraries in #(
  17600. no,* | *,no | *\'*) :
  17601. # Didn't find X, or a directory has "'" in its name.
  17602. ac_cv_have_x="have_x=no" ;; #(
  17603. *) :
  17604. # Record where we found X for the cache.
  17605. ac_cv_have_x="have_x=yes\
  17606. ac_x_includes='$ac_x_includes'\
  17607. ac_x_libraries='$ac_x_libraries'" ;;
  17608. esac
  17609. fi
  17610. ;; #(
  17611. *) have_x=yes;;
  17612. esac
  17613. eval "$ac_cv_have_x"
  17614. fi # $with_x != no
  17615. if test "$have_x" != yes; then
  17616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17617. $as_echo "$have_x" >&6; }
  17618. no_x=yes
  17619. else
  17620. # If each of the values was on the command line, it overrides each guess.
  17621. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17622. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17623. # Update the cache value to reflect the command line values.
  17624. ac_cv_have_x="have_x=yes\
  17625. ac_x_includes='$x_includes'\
  17626. ac_x_libraries='$x_libraries'"
  17627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17628. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17629. fi
  17630. if test "$no_x" = yes; then
  17631. # Not all programs may use this symbol, but it does not hurt to define it.
  17632. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17633. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17634. else
  17635. if test -n "$x_includes"; then
  17636. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17637. fi
  17638. # It would also be nice to do this for all -L options, not just this one.
  17639. if test -n "$x_libraries"; then
  17640. X_LIBS="$X_LIBS -L$x_libraries"
  17641. # For Solaris; some versions of Sun CC require a space after -R and
  17642. # others require no space. Words are not sufficient . . . .
  17643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17644. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17645. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17646. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17647. ac_c_werror_flag=yes
  17648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17649. /* end confdefs.h. */
  17650. int
  17651. main ()
  17652. {
  17653. ;
  17654. return 0;
  17655. }
  17656. _ACEOF
  17657. if ac_fn_c_try_link "$LINENO"; then :
  17658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17659. $as_echo "no" >&6; }
  17660. X_LIBS="$X_LIBS -R$x_libraries"
  17661. else
  17662. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17664. /* end confdefs.h. */
  17665. int
  17666. main ()
  17667. {
  17668. ;
  17669. return 0;
  17670. }
  17671. _ACEOF
  17672. if ac_fn_c_try_link "$LINENO"; then :
  17673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17674. $as_echo "yes" >&6; }
  17675. X_LIBS="$X_LIBS -R $x_libraries"
  17676. else
  17677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17678. $as_echo "neither works" >&6; }
  17679. fi
  17680. rm -f core conftest.err conftest.$ac_objext \
  17681. conftest$ac_exeext conftest.$ac_ext
  17682. fi
  17683. rm -f core conftest.err conftest.$ac_objext \
  17684. conftest$ac_exeext conftest.$ac_ext
  17685. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17686. LIBS=$ac_xsave_LIBS
  17687. fi
  17688. # Check for system-dependent libraries X programs must link with.
  17689. # Do this before checking for the system-independent R6 libraries
  17690. # (-lICE), since we may need -lsocket or whatever for X linking.
  17691. if test "$ISC" = yes; then
  17692. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17693. else
  17694. # Martyn Johnson says this is needed for Ultrix, if the X
  17695. # libraries were built with DECnet support. And Karl Berry says
  17696. # the Alpha needs dnet_stub (dnet does not exist).
  17697. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17699. /* end confdefs.h. */
  17700. /* Override any GCC internal prototype to avoid an error.
  17701. Use char because int might match the return type of a GCC
  17702. builtin and then its argument prototype would still apply. */
  17703. #ifdef __cplusplus
  17704. extern "C"
  17705. #endif
  17706. char XOpenDisplay ();
  17707. int
  17708. main ()
  17709. {
  17710. return XOpenDisplay ();
  17711. ;
  17712. return 0;
  17713. }
  17714. _ACEOF
  17715. if ac_fn_c_try_link "$LINENO"; then :
  17716. else
  17717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17718. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17719. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17720. $as_echo_n "(cached) " >&6
  17721. else
  17722. ac_check_lib_save_LIBS=$LIBS
  17723. LIBS="-ldnet $LIBS"
  17724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17725. /* end confdefs.h. */
  17726. /* Override any GCC internal prototype to avoid an error.
  17727. Use char because int might match the return type of a GCC
  17728. builtin and then its argument prototype would still apply. */
  17729. #ifdef __cplusplus
  17730. extern "C"
  17731. #endif
  17732. char dnet_ntoa ();
  17733. int
  17734. main ()
  17735. {
  17736. return dnet_ntoa ();
  17737. ;
  17738. return 0;
  17739. }
  17740. _ACEOF
  17741. if ac_fn_c_try_link "$LINENO"; then :
  17742. ac_cv_lib_dnet_dnet_ntoa=yes
  17743. else
  17744. ac_cv_lib_dnet_dnet_ntoa=no
  17745. fi
  17746. rm -f core conftest.err conftest.$ac_objext \
  17747. conftest$ac_exeext conftest.$ac_ext
  17748. LIBS=$ac_check_lib_save_LIBS
  17749. fi
  17750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17751. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17752. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17753. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17754. fi
  17755. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17757. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17758. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17759. $as_echo_n "(cached) " >&6
  17760. else
  17761. ac_check_lib_save_LIBS=$LIBS
  17762. LIBS="-ldnet_stub $LIBS"
  17763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17764. /* end confdefs.h. */
  17765. /* Override any GCC internal prototype to avoid an error.
  17766. Use char because int might match the return type of a GCC
  17767. builtin and then its argument prototype would still apply. */
  17768. #ifdef __cplusplus
  17769. extern "C"
  17770. #endif
  17771. char dnet_ntoa ();
  17772. int
  17773. main ()
  17774. {
  17775. return dnet_ntoa ();
  17776. ;
  17777. return 0;
  17778. }
  17779. _ACEOF
  17780. if ac_fn_c_try_link "$LINENO"; then :
  17781. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17782. else
  17783. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17784. fi
  17785. rm -f core conftest.err conftest.$ac_objext \
  17786. conftest$ac_exeext conftest.$ac_ext
  17787. LIBS=$ac_check_lib_save_LIBS
  17788. fi
  17789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17790. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17791. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17792. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17793. fi
  17794. fi
  17795. fi
  17796. rm -f core conftest.err conftest.$ac_objext \
  17797. conftest$ac_exeext conftest.$ac_ext
  17798. LIBS="$ac_xsave_LIBS"
  17799. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17800. # to get the SysV transport functions.
  17801. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17802. # needs -lnsl.
  17803. # The nsl library prevents programs from opening the X display
  17804. # on Irix 5.2, according to T.E. Dickey.
  17805. # The functions gethostbyname, getservbyname, and inet_addr are
  17806. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17807. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17808. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17809. fi
  17810. if test $ac_cv_func_gethostbyname = no; then
  17811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17812. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17813. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17814. $as_echo_n "(cached) " >&6
  17815. else
  17816. ac_check_lib_save_LIBS=$LIBS
  17817. LIBS="-lnsl $LIBS"
  17818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17819. /* end confdefs.h. */
  17820. /* Override any GCC internal prototype to avoid an error.
  17821. Use char because int might match the return type of a GCC
  17822. builtin and then its argument prototype would still apply. */
  17823. #ifdef __cplusplus
  17824. extern "C"
  17825. #endif
  17826. char gethostbyname ();
  17827. int
  17828. main ()
  17829. {
  17830. return gethostbyname ();
  17831. ;
  17832. return 0;
  17833. }
  17834. _ACEOF
  17835. if ac_fn_c_try_link "$LINENO"; then :
  17836. ac_cv_lib_nsl_gethostbyname=yes
  17837. else
  17838. ac_cv_lib_nsl_gethostbyname=no
  17839. fi
  17840. rm -f core conftest.err conftest.$ac_objext \
  17841. conftest$ac_exeext conftest.$ac_ext
  17842. LIBS=$ac_check_lib_save_LIBS
  17843. fi
  17844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17845. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17846. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17847. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17848. fi
  17849. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17851. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17852. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17853. $as_echo_n "(cached) " >&6
  17854. else
  17855. ac_check_lib_save_LIBS=$LIBS
  17856. LIBS="-lbsd $LIBS"
  17857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17858. /* end confdefs.h. */
  17859. /* Override any GCC internal prototype to avoid an error.
  17860. Use char because int might match the return type of a GCC
  17861. builtin and then its argument prototype would still apply. */
  17862. #ifdef __cplusplus
  17863. extern "C"
  17864. #endif
  17865. char gethostbyname ();
  17866. int
  17867. main ()
  17868. {
  17869. return gethostbyname ();
  17870. ;
  17871. return 0;
  17872. }
  17873. _ACEOF
  17874. if ac_fn_c_try_link "$LINENO"; then :
  17875. ac_cv_lib_bsd_gethostbyname=yes
  17876. else
  17877. ac_cv_lib_bsd_gethostbyname=no
  17878. fi
  17879. rm -f core conftest.err conftest.$ac_objext \
  17880. conftest$ac_exeext conftest.$ac_ext
  17881. LIBS=$ac_check_lib_save_LIBS
  17882. fi
  17883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17884. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17885. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17886. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17887. fi
  17888. fi
  17889. fi
  17890. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17891. # socket/setsockopt and other routines are undefined under SCO ODT
  17892. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17893. # on later versions), says Simon Leinen: it contains gethostby*
  17894. # variants that don't use the name server (or something). -lsocket
  17895. # must be given before -lnsl if both are needed. We assume that
  17896. # if connect needs -lnsl, so does gethostbyname.
  17897. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17898. if test "x$ac_cv_func_connect" = xyes; then :
  17899. fi
  17900. if test $ac_cv_func_connect = no; then
  17901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17902. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17903. if ${ac_cv_lib_socket_connect+:} false; then :
  17904. $as_echo_n "(cached) " >&6
  17905. else
  17906. ac_check_lib_save_LIBS=$LIBS
  17907. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17909. /* end confdefs.h. */
  17910. /* Override any GCC internal prototype to avoid an error.
  17911. Use char because int might match the return type of a GCC
  17912. builtin and then its argument prototype would still apply. */
  17913. #ifdef __cplusplus
  17914. extern "C"
  17915. #endif
  17916. char connect ();
  17917. int
  17918. main ()
  17919. {
  17920. return connect ();
  17921. ;
  17922. return 0;
  17923. }
  17924. _ACEOF
  17925. if ac_fn_c_try_link "$LINENO"; then :
  17926. ac_cv_lib_socket_connect=yes
  17927. else
  17928. ac_cv_lib_socket_connect=no
  17929. fi
  17930. rm -f core conftest.err conftest.$ac_objext \
  17931. conftest$ac_exeext conftest.$ac_ext
  17932. LIBS=$ac_check_lib_save_LIBS
  17933. fi
  17934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17935. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17936. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17937. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17938. fi
  17939. fi
  17940. # Guillermo Gomez says -lposix is necessary on A/UX.
  17941. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17942. if test "x$ac_cv_func_remove" = xyes; then :
  17943. fi
  17944. if test $ac_cv_func_remove = no; then
  17945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17946. $as_echo_n "checking for remove in -lposix... " >&6; }
  17947. if ${ac_cv_lib_posix_remove+:} false; then :
  17948. $as_echo_n "(cached) " >&6
  17949. else
  17950. ac_check_lib_save_LIBS=$LIBS
  17951. LIBS="-lposix $LIBS"
  17952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17953. /* end confdefs.h. */
  17954. /* Override any GCC internal prototype to avoid an error.
  17955. Use char because int might match the return type of a GCC
  17956. builtin and then its argument prototype would still apply. */
  17957. #ifdef __cplusplus
  17958. extern "C"
  17959. #endif
  17960. char remove ();
  17961. int
  17962. main ()
  17963. {
  17964. return remove ();
  17965. ;
  17966. return 0;
  17967. }
  17968. _ACEOF
  17969. if ac_fn_c_try_link "$LINENO"; then :
  17970. ac_cv_lib_posix_remove=yes
  17971. else
  17972. ac_cv_lib_posix_remove=no
  17973. fi
  17974. rm -f core conftest.err conftest.$ac_objext \
  17975. conftest$ac_exeext conftest.$ac_ext
  17976. LIBS=$ac_check_lib_save_LIBS
  17977. fi
  17978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17979. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17980. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17981. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17982. fi
  17983. fi
  17984. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17985. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17986. if test "x$ac_cv_func_shmat" = xyes; then :
  17987. fi
  17988. if test $ac_cv_func_shmat = no; then
  17989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17990. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17991. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17992. $as_echo_n "(cached) " >&6
  17993. else
  17994. ac_check_lib_save_LIBS=$LIBS
  17995. LIBS="-lipc $LIBS"
  17996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17997. /* end confdefs.h. */
  17998. /* Override any GCC internal prototype to avoid an error.
  17999. Use char because int might match the return type of a GCC
  18000. builtin and then its argument prototype would still apply. */
  18001. #ifdef __cplusplus
  18002. extern "C"
  18003. #endif
  18004. char shmat ();
  18005. int
  18006. main ()
  18007. {
  18008. return shmat ();
  18009. ;
  18010. return 0;
  18011. }
  18012. _ACEOF
  18013. if ac_fn_c_try_link "$LINENO"; then :
  18014. ac_cv_lib_ipc_shmat=yes
  18015. else
  18016. ac_cv_lib_ipc_shmat=no
  18017. fi
  18018. rm -f core conftest.err conftest.$ac_objext \
  18019. conftest$ac_exeext conftest.$ac_ext
  18020. LIBS=$ac_check_lib_save_LIBS
  18021. fi
  18022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18023. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18024. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18025. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18026. fi
  18027. fi
  18028. fi
  18029. # Check for libraries that X11R6 Xt/Xaw programs need.
  18030. ac_save_LDFLAGS=$LDFLAGS
  18031. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18032. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18033. # check for ICE first), but we must link in the order -lSM -lICE or
  18034. # we get undefined symbols. So assume we have SM if we have ICE.
  18035. # These have to be linked with before -lX11, unlike the other
  18036. # libraries we check for below, so use a different variable.
  18037. # John Interrante, Karl Berry
  18038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18039. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18040. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18041. $as_echo_n "(cached) " >&6
  18042. else
  18043. ac_check_lib_save_LIBS=$LIBS
  18044. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18046. /* end confdefs.h. */
  18047. /* Override any GCC internal prototype to avoid an error.
  18048. Use char because int might match the return type of a GCC
  18049. builtin and then its argument prototype would still apply. */
  18050. #ifdef __cplusplus
  18051. extern "C"
  18052. #endif
  18053. char IceConnectionNumber ();
  18054. int
  18055. main ()
  18056. {
  18057. return IceConnectionNumber ();
  18058. ;
  18059. return 0;
  18060. }
  18061. _ACEOF
  18062. if ac_fn_c_try_link "$LINENO"; then :
  18063. ac_cv_lib_ICE_IceConnectionNumber=yes
  18064. else
  18065. ac_cv_lib_ICE_IceConnectionNumber=no
  18066. fi
  18067. rm -f core conftest.err conftest.$ac_objext \
  18068. conftest$ac_exeext conftest.$ac_ext
  18069. LIBS=$ac_check_lib_save_LIBS
  18070. fi
  18071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18072. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18073. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18074. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18075. fi
  18076. LDFLAGS=$ac_save_LDFLAGS
  18077. fi
  18078. if test x$have_x = xyes; then
  18079. # Check whether --enable-x11-shared was given.
  18080. if test "${enable_x11_shared+set}" = set; then :
  18081. enableval=$enable_x11_shared;
  18082. else
  18083. enable_x11_shared=maybe
  18084. fi
  18085. case "$host" in
  18086. *-*-darwin*)
  18087. # Apple now puts this in /opt/X11
  18088. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18089. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18090. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18091. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18092. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18093. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18094. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18095. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18096. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18097. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18098. ;;
  18099. *-*-openbsd*)
  18100. x11_lib='libX11.so'
  18101. x11ext_lib='libXext.so'
  18102. xcursor_lib='libXcursor.so'
  18103. xinerama_lib='libXinerama.so'
  18104. xinput_lib='libXi.so'
  18105. xfixes_lib='libXfixes.so'
  18106. xrandr_lib='libXrandr.so'
  18107. xrender_lib='libXrender.so'
  18108. xss_lib='libXss.so'
  18109. xvidmode_lib='libXxf86vm.so'
  18110. ;;
  18111. *)
  18112. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18113. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18114. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18115. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18116. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18117. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18118. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18119. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18120. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18121. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18122. ;;
  18123. esac
  18124. if test x$ac_cv_func_shmat != xyes; then
  18125. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18126. fi
  18127. CFLAGS="$CFLAGS $X_CFLAGS"
  18128. LDFLAGS="$LDFLAGS $X_LIBS"
  18129. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18130. #include <X11/Xproto.h>
  18131. "
  18132. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18133. have_xext_h_hdr=yes
  18134. else
  18135. have_xext_h_hdr=no
  18136. fi
  18137. if test x$have_xext_h_hdr != xyes; then
  18138. as_fn_error $? "
  18139. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18140. " "$LINENO" 5
  18141. fi
  18142. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18143. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18144. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18145. # Needed so SDL applications can include SDL_syswm.h
  18146. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18147. if test x$enable_x11_shared = xmaybe; then
  18148. enable_x11_shared=yes
  18149. fi
  18150. if test x$have_loadso != xyes && \
  18151. test x$enable_x11_shared = xyes; then
  18152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18153. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18154. enable_x11_shared=no
  18155. fi
  18156. if test x$have_loadso = xyes && \
  18157. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18158. echo "-- dynamic libX11 -> $x11_lib"
  18159. echo "-- dynamic libX11ext -> $x11ext_lib"
  18160. cat >>confdefs.h <<_ACEOF
  18161. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18162. _ACEOF
  18163. cat >>confdefs.h <<_ACEOF
  18164. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18165. _ACEOF
  18166. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18167. else
  18168. enable_x11_shared=no
  18169. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18170. SUMMARY_video="${SUMMARY_video} x11"
  18171. fi
  18172. have_video=yes
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18174. $as_echo_n "checking for XGenericEvent... " >&6; }
  18175. have_XGenericEvent=no
  18176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18177. /* end confdefs.h. */
  18178. #include <X11/Xlib.h>
  18179. int
  18180. main ()
  18181. {
  18182. Display *display;
  18183. XEvent event;
  18184. XGenericEventCookie *cookie = &event.xcookie;
  18185. XNextEvent(display, &event);
  18186. XGetEventData(display, cookie);
  18187. XFreeEventData(display, cookie);
  18188. ;
  18189. return 0;
  18190. }
  18191. _ACEOF
  18192. if ac_fn_c_try_compile "$LINENO"; then :
  18193. have_XGenericEvent=yes
  18194. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18195. fi
  18196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18198. $as_echo "$have_XGenericEvent" >&6; }
  18199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18200. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18201. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18202. $as_echo_n "(cached) " >&6
  18203. else
  18204. ac_check_lib_save_LIBS=$LIBS
  18205. LIBS="-lX11 $LIBS"
  18206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18207. /* end confdefs.h. */
  18208. /* Override any GCC internal prototype to avoid an error.
  18209. Use char because int might match the return type of a GCC
  18210. builtin and then its argument prototype would still apply. */
  18211. #ifdef __cplusplus
  18212. extern "C"
  18213. #endif
  18214. char XkbKeycodeToKeysym ();
  18215. int
  18216. main ()
  18217. {
  18218. return XkbKeycodeToKeysym ();
  18219. ;
  18220. return 0;
  18221. }
  18222. _ACEOF
  18223. if ac_fn_c_try_link "$LINENO"; then :
  18224. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18225. else
  18226. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18227. fi
  18228. rm -f core conftest.err conftest.$ac_objext \
  18229. conftest$ac_exeext conftest.$ac_ext
  18230. LIBS=$ac_check_lib_save_LIBS
  18231. fi
  18232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18233. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18234. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18235. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18236. fi
  18237. # Check whether --enable-video-x11-xcursor was given.
  18238. if test "${enable_video_x11_xcursor+set}" = set; then :
  18239. enableval=$enable_video_x11_xcursor;
  18240. else
  18241. enable_video_x11_xcursor=yes
  18242. fi
  18243. if test x$enable_video_x11_xcursor = xyes; then
  18244. definitely_enable_video_x11_xcursor=no
  18245. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18246. "
  18247. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18248. have_xcursor_h_hdr=yes
  18249. else
  18250. have_xcursor_h_hdr=no
  18251. fi
  18252. if test x$have_xcursor_h_hdr = xyes; then
  18253. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18254. echo "-- dynamic libXcursor -> $xcursor_lib"
  18255. cat >>confdefs.h <<_ACEOF
  18256. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18257. _ACEOF
  18258. definitely_enable_video_x11_xcursor=yes
  18259. else
  18260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18261. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18262. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18263. $as_echo_n "(cached) " >&6
  18264. else
  18265. ac_check_lib_save_LIBS=$LIBS
  18266. LIBS="-lXcursor $LIBS"
  18267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18268. /* end confdefs.h. */
  18269. /* Override any GCC internal prototype to avoid an error.
  18270. Use char because int might match the return type of a GCC
  18271. builtin and then its argument prototype would still apply. */
  18272. #ifdef __cplusplus
  18273. extern "C"
  18274. #endif
  18275. char XcursorImageCreate ();
  18276. int
  18277. main ()
  18278. {
  18279. return XcursorImageCreate ();
  18280. ;
  18281. return 0;
  18282. }
  18283. _ACEOF
  18284. if ac_fn_c_try_link "$LINENO"; then :
  18285. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18286. else
  18287. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18288. fi
  18289. rm -f core conftest.err conftest.$ac_objext \
  18290. conftest$ac_exeext conftest.$ac_ext
  18291. LIBS=$ac_check_lib_save_LIBS
  18292. fi
  18293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18294. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18295. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18296. have_xcursor_lib=yes
  18297. fi
  18298. if test x$have_xcursor_lib = xyes ; then
  18299. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18300. definitely_enable_video_x11_xcursor=yes
  18301. fi
  18302. fi
  18303. fi
  18304. fi
  18305. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18306. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18307. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18308. fi
  18309. # Check whether --enable-video-x11-xdbe was given.
  18310. if test "${enable_video_x11_xdbe+set}" = set; then :
  18311. enableval=$enable_video_x11_xdbe;
  18312. else
  18313. enable_video_x11_xdbe=yes
  18314. fi
  18315. if test x$enable_video_x11_xdbe = xyes; then
  18316. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18317. "
  18318. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18319. have_dbe_h_hdr=yes
  18320. else
  18321. have_dbe_h_hdr=no
  18322. fi
  18323. if test x$have_dbe_h_hdr = xyes; then
  18324. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18325. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18326. fi
  18327. fi
  18328. # Check whether --enable-video-x11-xinerama was given.
  18329. if test "${enable_video_x11_xinerama+set}" = set; then :
  18330. enableval=$enable_video_x11_xinerama;
  18331. else
  18332. enable_video_x11_xinerama=yes
  18333. fi
  18334. if test x$enable_video_x11_xinerama = xyes; then
  18335. definitely_enable_video_x11_xinerama=no
  18336. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18337. "
  18338. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18339. have_xinerama_h_hdr=yes
  18340. else
  18341. have_xinerama_h_hdr=no
  18342. fi
  18343. if test x$have_xinerama_h_hdr = xyes; then
  18344. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18345. echo "-- dynamic libXinerama -> $xinerama_lib"
  18346. cat >>confdefs.h <<_ACEOF
  18347. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18348. _ACEOF
  18349. definitely_enable_video_x11_xinerama=yes
  18350. else
  18351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18352. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18353. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18354. $as_echo_n "(cached) " >&6
  18355. else
  18356. ac_check_lib_save_LIBS=$LIBS
  18357. LIBS="-lXinerama $LIBS"
  18358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18359. /* end confdefs.h. */
  18360. /* Override any GCC internal prototype to avoid an error.
  18361. Use char because int might match the return type of a GCC
  18362. builtin and then its argument prototype would still apply. */
  18363. #ifdef __cplusplus
  18364. extern "C"
  18365. #endif
  18366. char XineramaQueryExtension ();
  18367. int
  18368. main ()
  18369. {
  18370. return XineramaQueryExtension ();
  18371. ;
  18372. return 0;
  18373. }
  18374. _ACEOF
  18375. if ac_fn_c_try_link "$LINENO"; then :
  18376. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18377. else
  18378. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18379. fi
  18380. rm -f core conftest.err conftest.$ac_objext \
  18381. conftest$ac_exeext conftest.$ac_ext
  18382. LIBS=$ac_check_lib_save_LIBS
  18383. fi
  18384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18385. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18386. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18387. have_xinerama_lib=yes
  18388. fi
  18389. if test x$have_xinerama_lib = xyes ; then
  18390. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18391. definitely_enable_video_x11_xinerama=yes
  18392. fi
  18393. fi
  18394. fi
  18395. fi
  18396. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18397. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18398. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18399. fi
  18400. # Check whether --enable-video-x11-xinput was given.
  18401. if test "${enable_video_x11_xinput+set}" = set; then :
  18402. enableval=$enable_video_x11_xinput;
  18403. else
  18404. enable_video_x11_xinput=yes
  18405. fi
  18406. if test x$enable_video_x11_xinput = xyes; then
  18407. definitely_enable_video_x11_xinput=no
  18408. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18409. "
  18410. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18411. have_xinput_h_hdr=yes
  18412. else
  18413. have_xinput_h_hdr=no
  18414. fi
  18415. if test x$have_xinput_h_hdr = xyes; then
  18416. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18417. echo "-- dynamic libXi -> $xinput_lib"
  18418. cat >>confdefs.h <<_ACEOF
  18419. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18420. _ACEOF
  18421. definitely_enable_video_x11_xinput=yes
  18422. else
  18423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18424. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18425. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18426. $as_echo_n "(cached) " >&6
  18427. else
  18428. ac_check_lib_save_LIBS=$LIBS
  18429. LIBS="-lXi $LIBS"
  18430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18431. /* end confdefs.h. */
  18432. /* Override any GCC internal prototype to avoid an error.
  18433. Use char because int might match the return type of a GCC
  18434. builtin and then its argument prototype would still apply. */
  18435. #ifdef __cplusplus
  18436. extern "C"
  18437. #endif
  18438. char XOpenDevice ();
  18439. int
  18440. main ()
  18441. {
  18442. return XOpenDevice ();
  18443. ;
  18444. return 0;
  18445. }
  18446. _ACEOF
  18447. if ac_fn_c_try_link "$LINENO"; then :
  18448. ac_cv_lib_Xi_XOpenDevice=yes
  18449. else
  18450. ac_cv_lib_Xi_XOpenDevice=no
  18451. fi
  18452. rm -f core conftest.err conftest.$ac_objext \
  18453. conftest$ac_exeext conftest.$ac_ext
  18454. LIBS=$ac_check_lib_save_LIBS
  18455. fi
  18456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18457. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18458. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18459. have_xinput_lib=yes
  18460. fi
  18461. if test x$have_xinput_lib = xyes ; then
  18462. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18463. definitely_enable_video_x11_xinput=yes
  18464. fi
  18465. fi
  18466. fi
  18467. fi
  18468. if test x$definitely_enable_video_x11_xinput = xyes; then
  18469. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18470. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18472. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18473. have_xinput2_multitouch=no
  18474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18475. /* end confdefs.h. */
  18476. #include <X11/Xlib.h>
  18477. #include <X11/Xproto.h>
  18478. #include <X11/extensions/XInput2.h>
  18479. int
  18480. main ()
  18481. {
  18482. int event_type = XI_TouchBegin;
  18483. XITouchClassInfo *t;
  18484. ;
  18485. return 0;
  18486. }
  18487. _ACEOF
  18488. if ac_fn_c_try_compile "$LINENO"; then :
  18489. have_xinput2_multitouch=yes
  18490. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18491. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18492. fi
  18493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18495. $as_echo "$have_xinput2_multitouch" >&6; }
  18496. fi
  18497. # Check whether --enable-video-x11-xfixes was given.
  18498. if test "${enable_video_x11_xfixes+set}" = set; then :
  18499. enableval=$enable_video_x11_xfixes;
  18500. else
  18501. enable_video_x11_xfixes=yes
  18502. fi
  18503. if test x$enable_video_x11_xfixes = xyes; then
  18504. definitely_enable_video_x11_xfixes=no
  18505. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xfixes.h" "ac_cv_header_X11_extensions_Xfixes_h" "#include <X11/Xlib.h>
  18506. "
  18507. if test "x$ac_cv_header_X11_extensions_Xfixes_h" = xyes; then :
  18508. have_xfixes_h_hdr=yes
  18509. else
  18510. have_xfixes_h_hdr=no
  18511. fi
  18512. if test x$have_xfixes_h_hdr = xyes; then
  18513. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  18514. echo "-- dynamic libXfixes -> $xfixes_lib"
  18515. cat >>confdefs.h <<_ACEOF
  18516. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  18517. _ACEOF
  18518. definitely_enable_video_x11_xfixes=yes
  18519. else
  18520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  18521. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  18522. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  18523. $as_echo_n "(cached) " >&6
  18524. else
  18525. ac_check_lib_save_LIBS=$LIBS
  18526. LIBS="-lXfixes $LIBS"
  18527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18528. /* end confdefs.h. */
  18529. /* Override any GCC internal prototype to avoid an error.
  18530. Use char because int might match the return type of a GCC
  18531. builtin and then its argument prototype would still apply. */
  18532. #ifdef __cplusplus
  18533. extern "C"
  18534. #endif
  18535. char XFixesCreatePointerBarrier ();
  18536. int
  18537. main ()
  18538. {
  18539. return XFixesCreatePointerBarrier ();
  18540. ;
  18541. return 0;
  18542. }
  18543. _ACEOF
  18544. if ac_fn_c_try_link "$LINENO"; then :
  18545. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  18546. else
  18547. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  18548. fi
  18549. rm -f core conftest.err conftest.$ac_objext \
  18550. conftest$ac_exeext conftest.$ac_ext
  18551. LIBS=$ac_check_lib_save_LIBS
  18552. fi
  18553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  18554. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  18555. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  18556. have_xfixes_lib=yes
  18557. fi
  18558. if test x$have_xfixes_lib = xyes ; then
  18559. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  18560. definitely_enable_video_x11_xfixes=yes
  18561. fi
  18562. fi
  18563. fi
  18564. fi
  18565. if test x$definitely_enable_video_x11_xfixes = xyes; then
  18566. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  18567. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  18568. fi
  18569. # Check whether --enable-video-x11-xrandr was given.
  18570. if test "${enable_video_x11_xrandr+set}" = set; then :
  18571. enableval=$enable_video_x11_xrandr;
  18572. else
  18573. enable_video_x11_xrandr=yes
  18574. fi
  18575. if test x$enable_video_x11_xrandr = xyes; then
  18576. definitely_enable_video_x11_xrandr=no
  18577. have_xrandr_h_hdr=no
  18578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18579. /* end confdefs.h. */
  18580. #include <X11/Xlib.h>
  18581. #include <X11/extensions/Xrandr.h>
  18582. int
  18583. main ()
  18584. {
  18585. XRRScreenResources *res = NULL;
  18586. ;
  18587. return 0;
  18588. }
  18589. _ACEOF
  18590. if ac_fn_c_try_compile "$LINENO"; then :
  18591. have_xrandr_h_hdr=yes
  18592. fi
  18593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18594. if test x$have_xrandr_h_hdr = xyes; then
  18595. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18596. echo "-- dynamic libXrandr -> $xrandr_lib"
  18597. cat >>confdefs.h <<_ACEOF
  18598. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18599. _ACEOF
  18600. definitely_enable_video_x11_xrandr=yes
  18601. else
  18602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18603. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18604. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18605. $as_echo_n "(cached) " >&6
  18606. else
  18607. ac_check_lib_save_LIBS=$LIBS
  18608. LIBS="-lXrandr $LIBS"
  18609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18610. /* end confdefs.h. */
  18611. /* Override any GCC internal prototype to avoid an error.
  18612. Use char because int might match the return type of a GCC
  18613. builtin and then its argument prototype would still apply. */
  18614. #ifdef __cplusplus
  18615. extern "C"
  18616. #endif
  18617. char XRRQueryExtension ();
  18618. int
  18619. main ()
  18620. {
  18621. return XRRQueryExtension ();
  18622. ;
  18623. return 0;
  18624. }
  18625. _ACEOF
  18626. if ac_fn_c_try_link "$LINENO"; then :
  18627. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18628. else
  18629. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18630. fi
  18631. rm -f core conftest.err conftest.$ac_objext \
  18632. conftest$ac_exeext conftest.$ac_ext
  18633. LIBS=$ac_check_lib_save_LIBS
  18634. fi
  18635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18636. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18637. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18638. have_xrandr_lib=yes
  18639. fi
  18640. if test x$have_xrandr_lib = xyes ; then
  18641. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18642. definitely_enable_video_x11_xrandr=yes
  18643. fi
  18644. fi
  18645. fi
  18646. fi
  18647. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18648. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18649. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18650. fi
  18651. # Check whether --enable-video-x11-scrnsaver was given.
  18652. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18653. enableval=$enable_video_x11_scrnsaver;
  18654. else
  18655. enable_video_x11_scrnsaver=yes
  18656. fi
  18657. if test x$enable_video_x11_scrnsaver = xyes; then
  18658. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18659. "
  18660. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18661. have_scrnsaver_h_hdr=yes
  18662. else
  18663. have_scrnsaver_h_hdr=no
  18664. fi
  18665. if test x$have_scrnsaver_h_hdr = xyes; then
  18666. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18667. echo "-- dynamic libXss -> $xss_lib"
  18668. cat >>confdefs.h <<_ACEOF
  18669. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18670. _ACEOF
  18671. definitely_enable_video_x11_scrnsaver=yes
  18672. else
  18673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18674. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18675. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18676. $as_echo_n "(cached) " >&6
  18677. else
  18678. ac_check_lib_save_LIBS=$LIBS
  18679. LIBS="-lXss $LIBS"
  18680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18681. /* end confdefs.h. */
  18682. /* Override any GCC internal prototype to avoid an error.
  18683. Use char because int might match the return type of a GCC
  18684. builtin and then its argument prototype would still apply. */
  18685. #ifdef __cplusplus
  18686. extern "C"
  18687. #endif
  18688. char XScreenSaverSuspend ();
  18689. int
  18690. main ()
  18691. {
  18692. return XScreenSaverSuspend ();
  18693. ;
  18694. return 0;
  18695. }
  18696. _ACEOF
  18697. if ac_fn_c_try_link "$LINENO"; then :
  18698. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18699. else
  18700. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18701. fi
  18702. rm -f core conftest.err conftest.$ac_objext \
  18703. conftest$ac_exeext conftest.$ac_ext
  18704. LIBS=$ac_check_lib_save_LIBS
  18705. fi
  18706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18707. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18708. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18709. have_xss_lib=yes
  18710. fi
  18711. if test x$have_xss_lib = xyes ; then
  18712. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18713. definitely_enable_video_x11_scrnsaver=yes
  18714. fi
  18715. fi
  18716. fi
  18717. fi
  18718. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18719. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18720. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18721. fi
  18722. # Check whether --enable-video-x11-xshape was given.
  18723. if test "${enable_video_x11_xshape+set}" = set; then :
  18724. enableval=$enable_video_x11_xshape;
  18725. else
  18726. enable_video_x11_xshape=yes
  18727. fi
  18728. if test x$enable_video_x11_xshape = xyes; then
  18729. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18730. "
  18731. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18732. have_shape_h_hdr=yes
  18733. else
  18734. have_shape_h_hdr=no
  18735. fi
  18736. if test x$have_shape_h_hdr = xyes; then
  18737. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18738. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18739. fi
  18740. fi
  18741. # Check whether --enable-video-x11-vm was given.
  18742. if test "${enable_video_x11_vm+set}" = set; then :
  18743. enableval=$enable_video_x11_vm;
  18744. else
  18745. enable_video_x11_vm=yes
  18746. fi
  18747. if test x$enable_video_x11_vm = xyes; then
  18748. definitely_enable_video_x11_vm=no
  18749. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18750. "
  18751. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18752. have_vm_h_hdr=yes
  18753. else
  18754. have_vm_h_hdr=no
  18755. fi
  18756. if test x$have_vm_h_hdr = xyes; then
  18757. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18758. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18759. cat >>confdefs.h <<_ACEOF
  18760. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18761. _ACEOF
  18762. definitely_enable_video_x11_vm=yes
  18763. else
  18764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18765. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18766. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18767. $as_echo_n "(cached) " >&6
  18768. else
  18769. ac_check_lib_save_LIBS=$LIBS
  18770. LIBS="-lXxf86vm $LIBS"
  18771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18772. /* end confdefs.h. */
  18773. /* Override any GCC internal prototype to avoid an error.
  18774. Use char because int might match the return type of a GCC
  18775. builtin and then its argument prototype would still apply. */
  18776. #ifdef __cplusplus
  18777. extern "C"
  18778. #endif
  18779. char XF86VidModeQueryVersion ();
  18780. int
  18781. main ()
  18782. {
  18783. return XF86VidModeQueryVersion ();
  18784. ;
  18785. return 0;
  18786. }
  18787. _ACEOF
  18788. if ac_fn_c_try_link "$LINENO"; then :
  18789. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18790. else
  18791. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18792. fi
  18793. rm -f core conftest.err conftest.$ac_objext \
  18794. conftest$ac_exeext conftest.$ac_ext
  18795. LIBS=$ac_check_lib_save_LIBS
  18796. fi
  18797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18798. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18799. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18800. have_vm_lib=yes
  18801. fi
  18802. if test x$have_vm_lib = xyes ; then
  18803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18804. definitely_enable_video_x11_vm=yes
  18805. fi
  18806. fi
  18807. fi
  18808. fi
  18809. if test x$definitely_enable_video_x11_vm = xyes; then
  18810. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18811. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18812. fi
  18813. fi
  18814. fi
  18815. if test x$have_x != xyes; then
  18816. # Prevent Mesa from including X11 headers
  18817. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18818. fi
  18819. }
  18820. CheckVivanteVideo()
  18821. {
  18822. # Check whether --enable-video-vivante was given.
  18823. if test "${enable_video_vivante+set}" = set; then :
  18824. enableval=$enable_video_vivante;
  18825. else
  18826. enable_video_vivante=yes
  18827. fi
  18828. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18830. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18831. have_vivante_vdk=no
  18832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18833. /* end confdefs.h. */
  18834. #define LINUX
  18835. #define EGL_API_FB
  18836. #include <gc_vdk.h>
  18837. int
  18838. main ()
  18839. {
  18840. ;
  18841. return 0;
  18842. }
  18843. _ACEOF
  18844. if ac_fn_c_try_compile "$LINENO"; then :
  18845. have_vivante_vdk=yes
  18846. fi
  18847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18849. $as_echo "$have_vivante_vdk" >&6; }
  18850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18851. $as_echo_n "checking for Vivante FB API... " >&6; }
  18852. have_vivante_egl=no
  18853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18854. /* end confdefs.h. */
  18855. #define LINUX
  18856. #define EGL_API_FB
  18857. #include <EGL/eglvivante.h>
  18858. int
  18859. main ()
  18860. {
  18861. ;
  18862. return 0;
  18863. }
  18864. _ACEOF
  18865. if ac_fn_c_try_compile "$LINENO"; then :
  18866. have_vivante_egl=yes
  18867. fi
  18868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18870. $as_echo "$have_vivante_egl" >&6; }
  18871. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18872. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18873. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18874. if test x$have_vivante_vdk = xyes; then
  18875. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18876. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18877. fi
  18878. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18879. SUMMARY_video="${SUMMARY_video} vivante"
  18880. have_video=yes
  18881. fi
  18882. fi
  18883. }
  18884. CheckHaikuVideo()
  18885. {
  18886. if test x$enable_video = xyes; then
  18887. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18888. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18889. have_video=yes
  18890. SUMMARY_video="${SUMMARY_video} haiku"
  18891. fi
  18892. }
  18893. CheckCOCOA()
  18894. {
  18895. # Check whether --enable-video-cocoa was given.
  18896. if test "${enable_video_cocoa+set}" = set; then :
  18897. enableval=$enable_video_cocoa;
  18898. else
  18899. enable_video_cocoa=yes
  18900. fi
  18901. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18902. save_CFLAGS="$CFLAGS"
  18903. CFLAGS="$CFLAGS -x objective-c"
  18904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18905. $as_echo_n "checking for Cocoa framework... " >&6; }
  18906. have_cocoa=no
  18907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18908. /* end confdefs.h. */
  18909. #import <Cocoa/Cocoa.h>
  18910. int
  18911. main ()
  18912. {
  18913. ;
  18914. return 0;
  18915. }
  18916. _ACEOF
  18917. if ac_fn_c_try_compile "$LINENO"; then :
  18918. have_cocoa=yes
  18919. fi
  18920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18922. $as_echo "$have_cocoa" >&6; }
  18923. CFLAGS="$save_CFLAGS"
  18924. if test x$have_cocoa = xyes; then
  18925. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18926. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18927. SUMMARY_video="${SUMMARY_video} cocoa"
  18928. have_video=yes
  18929. fi
  18930. fi
  18931. }
  18932. CheckMETAL()
  18933. {
  18934. # Check whether --enable-video-metal was given.
  18935. if test "${enable_video_metal+set}" = set; then :
  18936. enableval=$enable_video_metal;
  18937. else
  18938. enable_video_metal=yes
  18939. fi
  18940. # Check whether --enable-render-metal was given.
  18941. if test "${enable_render_metal+set}" = set; then :
  18942. enableval=$enable_render_metal;
  18943. else
  18944. enable_render_metal=yes
  18945. fi
  18946. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18947. save_CFLAGS="$CFLAGS"
  18948. CFLAGS="$CFLAGS -x objective-c"
  18949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18950. $as_echo_n "checking for Metal framework... " >&6; }
  18951. have_metal=no
  18952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18953. /* end confdefs.h. */
  18954. #import <Cocoa/Cocoa.h>
  18955. #import <Metal/Metal.h>
  18956. #import <QuartzCore/CAMetalLayer.h>
  18957. #if TARGET_CPU_X86
  18958. #error Metal doesn't work on this configuration
  18959. #endif
  18960. int
  18961. main ()
  18962. {
  18963. ;
  18964. return 0;
  18965. }
  18966. _ACEOF
  18967. if ac_fn_c_try_compile "$LINENO"; then :
  18968. have_metal=yes
  18969. fi
  18970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18971. CFLAGS="$save_CFLAGS"
  18972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18973. $as_echo "$have_metal" >&6; }
  18974. if test x$have_metal = xyes; then
  18975. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18976. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18977. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18978. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18979. fi
  18980. SUMMARY_video="${SUMMARY_video} metal"
  18981. else
  18982. enable_video_metal=no
  18983. enable_render_metal=no
  18984. fi
  18985. fi
  18986. }
  18987. CheckDirectFB()
  18988. {
  18989. # Check whether --enable-video-directfb was given.
  18990. if test "${enable_video_directfb+set}" = set; then :
  18991. enableval=$enable_video_directfb;
  18992. else
  18993. enable_video_directfb=no
  18994. fi
  18995. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18996. pkg_failed=no
  18997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  18998. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  18999. if test -n "$DIRECTFB_CFLAGS"; then
  19000. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19001. elif test -n "$PKG_CONFIG"; then
  19002. if test -n "$PKG_CONFIG" && \
  19003. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19004. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19005. ac_status=$?
  19006. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19007. test $ac_status = 0; }; then
  19008. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19009. test "x$?" != "x0" && pkg_failed=yes
  19010. else
  19011. pkg_failed=yes
  19012. fi
  19013. else
  19014. pkg_failed=untried
  19015. fi
  19016. if test -n "$DIRECTFB_LIBS"; then
  19017. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19018. elif test -n "$PKG_CONFIG"; then
  19019. if test -n "$PKG_CONFIG" && \
  19020. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19021. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19022. ac_status=$?
  19023. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19024. test $ac_status = 0; }; then
  19025. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19026. test "x$?" != "x0" && pkg_failed=yes
  19027. else
  19028. pkg_failed=yes
  19029. fi
  19030. else
  19031. pkg_failed=untried
  19032. fi
  19033. if test $pkg_failed = yes; then
  19034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19035. $as_echo "no" >&6; }
  19036. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19037. _pkg_short_errors_supported=yes
  19038. else
  19039. _pkg_short_errors_supported=no
  19040. fi
  19041. if test $_pkg_short_errors_supported = yes; then
  19042. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19043. else
  19044. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19045. fi
  19046. # Put the nasty error message in config.log where it belongs
  19047. echo "$DIRECTFB_PKG_ERRORS" >&5
  19048. video_directfb=no
  19049. elif test $pkg_failed = untried; then
  19050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19051. $as_echo "no" >&6; }
  19052. video_directfb=no
  19053. else
  19054. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19055. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19057. $as_echo "yes" >&6; }
  19058. video_directfb=yes
  19059. fi
  19060. if test x$video_directfb = xyes; then
  19061. # SuSE 11.1 installs directfb-config without directfb-devel
  19062. save_CPPFLAGS="$CPPFLAGS"
  19063. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19064. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19065. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19066. have_directfb_hdr=yes
  19067. else
  19068. have_directfb_hdr=no
  19069. fi
  19070. CPPFLAGS="$save_CPPFLAGS"
  19071. video_directfb=$have_directfb_hdr
  19072. fi
  19073. if test x$video_directfb = xyes; then
  19074. # Check whether --enable-directfb-shared was given.
  19075. if test "${enable_directfb_shared+set}" = set; then :
  19076. enableval=$enable_directfb_shared;
  19077. else
  19078. enable_directfb_shared=yes
  19079. fi
  19080. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19081. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19082. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19083. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19084. directfb_shared=no
  19085. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19086. if test x$have_loadso != xyes && \
  19087. test x$enable_directfb_shared = xyes; then
  19088. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19089. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19090. fi
  19091. if test x$have_loadso = xyes && \
  19092. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19093. directfb_shared=yes
  19094. echo "-- dynamic libdirectfb -> $directfb_lib"
  19095. cat >>confdefs.h <<_ACEOF
  19096. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19097. _ACEOF
  19098. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19099. else
  19100. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19101. SUMMARY_video="${SUMMARY_video} directfb"
  19102. fi
  19103. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19104. have_video=yes
  19105. fi
  19106. fi
  19107. }
  19108. CheckKMSDRM()
  19109. {
  19110. # Check whether --enable-video-kmsdrm was given.
  19111. if test "${enable_video_kmsdrm+set}" = set; then :
  19112. enableval=$enable_video_kmsdrm;
  19113. else
  19114. enable_video_kmsdrm=yes
  19115. fi
  19116. if test x$enable_video = xyes && \
  19117. test x$enable_video_kmsdrm = xyes && \
  19118. test x$video_opengl_egl = xyes; then
  19119. video_kmsdrm=no
  19120. pkg_failed=no
  19121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19122. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19123. if test -n "$LIBDRM_CFLAGS"; then
  19124. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19125. elif test -n "$PKG_CONFIG"; then
  19126. if test -n "$PKG_CONFIG" && \
  19127. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19128. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19129. ac_status=$?
  19130. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19131. test $ac_status = 0; }; then
  19132. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19133. test "x$?" != "x0" && pkg_failed=yes
  19134. else
  19135. pkg_failed=yes
  19136. fi
  19137. else
  19138. pkg_failed=untried
  19139. fi
  19140. if test -n "$LIBDRM_LIBS"; then
  19141. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19142. elif test -n "$PKG_CONFIG"; then
  19143. if test -n "$PKG_CONFIG" && \
  19144. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19145. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19146. ac_status=$?
  19147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19148. test $ac_status = 0; }; then
  19149. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19150. test "x$?" != "x0" && pkg_failed=yes
  19151. else
  19152. pkg_failed=yes
  19153. fi
  19154. else
  19155. pkg_failed=untried
  19156. fi
  19157. if test $pkg_failed = yes; then
  19158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19159. $as_echo "no" >&6; }
  19160. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19161. _pkg_short_errors_supported=yes
  19162. else
  19163. _pkg_short_errors_supported=no
  19164. fi
  19165. if test $_pkg_short_errors_supported = yes; then
  19166. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19167. else
  19168. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19169. fi
  19170. # Put the nasty error message in config.log where it belongs
  19171. echo "$LIBDRM_PKG_ERRORS" >&5
  19172. libdrm_avail=no
  19173. elif test $pkg_failed = untried; then
  19174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19175. $as_echo "no" >&6; }
  19176. libdrm_avail=no
  19177. else
  19178. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19179. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19181. $as_echo "yes" >&6; }
  19182. libdrm_avail=yes
  19183. fi
  19184. pkg_failed=no
  19185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19186. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19187. if test -n "$LIBGBM_CFLAGS"; then
  19188. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19189. elif test -n "$PKG_CONFIG"; then
  19190. if test -n "$PKG_CONFIG" && \
  19191. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19192. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19193. ac_status=$?
  19194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19195. test $ac_status = 0; }; then
  19196. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19197. test "x$?" != "x0" && pkg_failed=yes
  19198. else
  19199. pkg_failed=yes
  19200. fi
  19201. else
  19202. pkg_failed=untried
  19203. fi
  19204. if test -n "$LIBGBM_LIBS"; then
  19205. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19206. elif test -n "$PKG_CONFIG"; then
  19207. if test -n "$PKG_CONFIG" && \
  19208. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19209. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19210. ac_status=$?
  19211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19212. test $ac_status = 0; }; then
  19213. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19214. test "x$?" != "x0" && pkg_failed=yes
  19215. else
  19216. pkg_failed=yes
  19217. fi
  19218. else
  19219. pkg_failed=untried
  19220. fi
  19221. if test $pkg_failed = yes; then
  19222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19223. $as_echo "no" >&6; }
  19224. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19225. _pkg_short_errors_supported=yes
  19226. else
  19227. _pkg_short_errors_supported=no
  19228. fi
  19229. if test $_pkg_short_errors_supported = yes; then
  19230. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19231. else
  19232. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19233. fi
  19234. # Put the nasty error message in config.log where it belongs
  19235. echo "$LIBGBM_PKG_ERRORS" >&5
  19236. libgbm_avail=no
  19237. elif test $pkg_failed = untried; then
  19238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19239. $as_echo "no" >&6; }
  19240. libgbm_avail=no
  19241. else
  19242. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19243. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19245. $as_echo "yes" >&6; }
  19246. libgbm_avail=yes
  19247. fi
  19248. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19249. video_kmsdrm=yes
  19250. fi
  19251. if test x$video_kmsdrm = xyes; then
  19252. # Check whether --enable-kmsdrm-shared was given.
  19253. if test "${enable_kmsdrm_shared+set}" = set; then :
  19254. enableval=$enable_kmsdrm_shared;
  19255. else
  19256. enable_kmsdrm_shared=yes
  19257. fi
  19258. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19259. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19260. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19262. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19263. kmsdrm_shared=no
  19264. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19265. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19266. if test x$have_loadso != xyes && \
  19267. test x$enable_kmsdrm_shared = xyes; then
  19268. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19269. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19270. fi
  19271. if test x$have_loadso = xyes && \
  19272. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19273. kmsdrm_shared=yes
  19274. cat >>confdefs.h <<_ACEOF
  19275. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19276. _ACEOF
  19277. cat >>confdefs.h <<_ACEOF
  19278. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19279. _ACEOF
  19280. cat >>confdefs.h <<_ACEOF
  19281. #define HAVE_KMSDRM_SHARED "TRUE"
  19282. _ACEOF
  19283. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19284. else
  19285. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19286. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19287. fi
  19288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19289. $as_echo "$kmsdrm_shared" >&6; }
  19290. if test x$kmsdrm_shared = xyes; then
  19291. echo "-- dynamic libdrm -> $drm_lib"
  19292. echo "-- dynamic libgmb -> $gbm_lib"
  19293. fi
  19294. have_video=yes
  19295. fi
  19296. fi
  19297. }
  19298. CheckDummyVideo()
  19299. {
  19300. # Check whether --enable-video-dummy was given.
  19301. if test "${enable_video_dummy+set}" = set; then :
  19302. enableval=$enable_video_dummy;
  19303. else
  19304. enable_video_dummy=yes
  19305. fi
  19306. if test x$enable_video_dummy = xyes; then
  19307. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19308. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19309. have_video=yes
  19310. SUMMARY_video="${SUMMARY_video} dummy"
  19311. fi
  19312. }
  19313. CheckQNXVideo()
  19314. {
  19315. if test x$enable_video = xyes; then
  19316. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19317. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19318. have_video=yes
  19319. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19320. SUMMARY_video="${SUMMARY_video} qnx"
  19321. fi
  19322. }
  19323. CheckQNXAudio()
  19324. {
  19325. if test x$enable_audio = xyes; then
  19326. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19327. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19328. have_audio=yes
  19329. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19330. SUMMARY_audio="${SUMMARY_audio} qsa"
  19331. fi
  19332. }
  19333. # Check whether --enable-video-opengl was given.
  19334. if test "${enable_video_opengl+set}" = set; then :
  19335. enableval=$enable_video_opengl;
  19336. else
  19337. enable_video_opengl=yes
  19338. fi
  19339. CheckGLX()
  19340. {
  19341. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19343. $as_echo_n "checking for GLX support... " >&6; }
  19344. video_opengl_glx=no
  19345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19346. /* end confdefs.h. */
  19347. #include <GL/glx.h>
  19348. int
  19349. main ()
  19350. {
  19351. ;
  19352. return 0;
  19353. }
  19354. _ACEOF
  19355. if ac_fn_c_try_compile "$LINENO"; then :
  19356. video_opengl_glx=yes
  19357. fi
  19358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19360. $as_echo "$video_opengl_glx" >&6; }
  19361. if test x$video_opengl_glx = xyes; then
  19362. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19363. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19364. fi
  19365. fi
  19366. }
  19367. # Check whether --enable-video-opengles was given.
  19368. if test "${enable_video_opengles+set}" = set; then :
  19369. enableval=$enable_video_opengles;
  19370. else
  19371. enable_video_opengles=yes
  19372. fi
  19373. # Check whether --enable-video-opengles1 was given.
  19374. if test "${enable_video_opengles1+set}" = set; then :
  19375. enableval=$enable_video_opengles1;
  19376. else
  19377. enable_video_opengles1=yes
  19378. fi
  19379. # Check whether --enable-video-opengles2 was given.
  19380. if test "${enable_video_opengles2+set}" = set; then :
  19381. enableval=$enable_video_opengles2;
  19382. else
  19383. enable_video_opengles2=yes
  19384. fi
  19385. CheckEGL()
  19386. {
  19387. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19389. $as_echo_n "checking for EGL support... " >&6; }
  19390. video_opengl_egl=no
  19391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19392. /* end confdefs.h. */
  19393. #define LINUX
  19394. #define EGL_API_FB
  19395. #define MESA_EGL_NO_X11_HEADERS
  19396. #define EGL_NO_X11
  19397. #include <EGL/egl.h>
  19398. #include <EGL/eglext.h>
  19399. int
  19400. main ()
  19401. {
  19402. ;
  19403. return 0;
  19404. }
  19405. _ACEOF
  19406. if ac_fn_c_try_compile "$LINENO"; then :
  19407. video_opengl_egl=yes
  19408. fi
  19409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19411. $as_echo "$video_opengl_egl" >&6; }
  19412. if test x$video_opengl_egl = xyes; then
  19413. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19414. fi
  19415. fi
  19416. }
  19417. CheckOpenGL()
  19418. {
  19419. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  19421. $as_echo_n "checking for OpenGL headers... " >&6; }
  19422. video_opengl=no
  19423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19424. /* end confdefs.h. */
  19425. #include <GL/gl.h>
  19426. #include <GL/glext.h>
  19427. int
  19428. main ()
  19429. {
  19430. ;
  19431. return 0;
  19432. }
  19433. _ACEOF
  19434. if ac_fn_c_try_compile "$LINENO"; then :
  19435. video_opengl=yes
  19436. fi
  19437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19439. $as_echo "$video_opengl" >&6; }
  19440. if test x$video_opengl = xyes; then
  19441. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19442. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19443. SUMMARY_video="${SUMMARY_video} opengl"
  19444. fi
  19445. fi
  19446. }
  19447. CheckOpenGLES()
  19448. {
  19449. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19450. if test x$enable_video_opengles1 = xyes; then
  19451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19452. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19453. video_opengles_v1=no
  19454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19455. /* end confdefs.h. */
  19456. #include <GLES/gl.h>
  19457. #include <GLES/glext.h>
  19458. int
  19459. main ()
  19460. {
  19461. ;
  19462. return 0;
  19463. }
  19464. _ACEOF
  19465. if ac_fn_c_try_compile "$LINENO"; then :
  19466. video_opengles_v1=yes
  19467. fi
  19468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19470. $as_echo "$video_opengles_v1" >&6; }
  19471. if test x$video_opengles_v1 = xyes; then
  19472. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19473. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19474. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19475. fi
  19476. fi
  19477. if test x$enable_video_opengles2 = xyes; then
  19478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19479. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19480. video_opengles_v2=no
  19481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19482. /* end confdefs.h. */
  19483. #include <GLES2/gl2.h>
  19484. #include <GLES2/gl2ext.h>
  19485. int
  19486. main ()
  19487. {
  19488. ;
  19489. return 0;
  19490. }
  19491. _ACEOF
  19492. if ac_fn_c_try_compile "$LINENO"; then :
  19493. video_opengles_v2=yes
  19494. fi
  19495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19497. $as_echo "$video_opengles_v2" >&6; }
  19498. if test x$video_opengles_v2 = xyes; then
  19499. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19500. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19501. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19502. fi
  19503. fi
  19504. fi
  19505. }
  19506. CheckWINDOWSGL()
  19507. {
  19508. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19509. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19510. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19511. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19512. SUMMARY_video="${SUMMARY_video} opengl"
  19513. fi
  19514. }
  19515. CheckWINDOWSGLES()
  19516. {
  19517. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19519. $as_echo_n "checking for EGL support... " >&6; }
  19520. video_opengl_egl=no
  19521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19522. /* end confdefs.h. */
  19523. #include <EGL/egl.h>
  19524. int
  19525. main ()
  19526. {
  19527. ;
  19528. return 0;
  19529. }
  19530. _ACEOF
  19531. if ac_fn_c_try_compile "$LINENO"; then :
  19532. video_opengl_egl=yes
  19533. fi
  19534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19536. $as_echo "$video_opengl_egl" >&6; }
  19537. if test x$video_opengl_egl = xyes; then
  19538. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19539. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19540. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19541. fi
  19542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19543. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19544. video_opengles_v2=no
  19545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19546. /* end confdefs.h. */
  19547. #include <GLES2/gl2.h>
  19548. #include <GLES2/gl2ext.h>
  19549. int
  19550. main ()
  19551. {
  19552. ;
  19553. return 0;
  19554. }
  19555. _ACEOF
  19556. if ac_fn_c_try_compile "$LINENO"; then :
  19557. video_opengles_v2=yes
  19558. fi
  19559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19561. $as_echo "$video_opengles_v2" >&6; }
  19562. if test x$video_opengles_v2 = xyes; then
  19563. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19564. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19565. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19566. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19567. fi
  19568. fi
  19569. }
  19570. CheckHaikuGL()
  19571. {
  19572. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19573. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19574. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19575. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19576. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19577. SUMMARY_video="${SUMMARY_video} opengl"
  19578. fi
  19579. }
  19580. CheckMacGL()
  19581. {
  19582. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19583. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19584. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19585. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19586. SUMMARY_video="${SUMMARY_video} opengl"
  19587. fi
  19588. }
  19589. CheckMacGLES()
  19590. {
  19591. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19592. video_opengl_egl=yes
  19593. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19594. video_opengles_v2=yes
  19595. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19596. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19597. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19598. fi
  19599. }
  19600. CheckEmscriptenGLES()
  19601. {
  19602. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19604. $as_echo_n "checking for EGL support... " >&6; }
  19605. video_opengl_egl=no
  19606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19607. /* end confdefs.h. */
  19608. #include <EGL/egl.h>
  19609. int
  19610. main ()
  19611. {
  19612. ;
  19613. return 0;
  19614. }
  19615. _ACEOF
  19616. if ac_fn_c_try_compile "$LINENO"; then :
  19617. video_opengl_egl=yes
  19618. fi
  19619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19621. $as_echo "$video_opengl_egl" >&6; }
  19622. if test x$video_opengl_egl = xyes; then
  19623. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19624. fi
  19625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19626. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19627. video_opengles_v2=no
  19628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19629. /* end confdefs.h. */
  19630. #include <GLES2/gl2.h>
  19631. #include <GLES2/gl2ext.h>
  19632. int
  19633. main ()
  19634. {
  19635. ;
  19636. return 0;
  19637. }
  19638. _ACEOF
  19639. if ac_fn_c_try_compile "$LINENO"; then :
  19640. video_opengles_v2=yes
  19641. fi
  19642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19644. $as_echo "$video_opengles_v2" >&6; }
  19645. if test x$video_opengles_v2 = xyes; then
  19646. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19647. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19648. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19649. fi
  19650. fi
  19651. }
  19652. # Check whether --enable-video-vulkan was given.
  19653. if test "${enable_video_vulkan+set}" = set; then :
  19654. enableval=$enable_video_vulkan;
  19655. else
  19656. enable_video_vulkan=yes
  19657. fi
  19658. CheckVulkan()
  19659. {
  19660. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19661. case "$host" in
  19662. *-*-android*)
  19663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19664. /* end confdefs.h. */
  19665. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19666. #error Vulkan doesn't work on this configuration
  19667. #endif
  19668. int
  19669. main ()
  19670. {
  19671. ;
  19672. return 0;
  19673. }
  19674. _ACEOF
  19675. if ac_fn_c_try_compile "$LINENO"; then :
  19676. else
  19677. enable_video_vulkan=no
  19678. fi
  19679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19680. ;;
  19681. *-*-darwin*)
  19682. save_CFLAGS="$CFLAGS"
  19683. CFLAGS="$CFLAGS -x objective-c"
  19684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19685. /* end confdefs.h. */
  19686. #include <Cocoa/Cocoa.h>
  19687. #include <Metal/Metal.h>
  19688. #include <QuartzCore/CAMetalLayer.h>
  19689. #if TARGET_CPU_X86
  19690. #error Vulkan doesn't work on this configuration
  19691. #endif
  19692. int
  19693. main ()
  19694. {
  19695. ;
  19696. return 0;
  19697. }
  19698. _ACEOF
  19699. if ac_fn_c_try_compile "$LINENO"; then :
  19700. else
  19701. enable_video_vulkan=no
  19702. fi
  19703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19704. CFLAGS="$save_CFLAGS"
  19705. ;;
  19706. *)
  19707. ;;
  19708. esac
  19709. if test x$enable_video_vulkan = xno; then
  19710. # For reasons I am totally unable to see, I get an undefined macro error if
  19711. # I put this in the AC_TRY_COMPILE.
  19712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19713. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19714. fi
  19715. fi
  19716. if test x$have_loadso != xyes; then
  19717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  19718. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  19719. enable_video_vulkan=no
  19720. fi
  19721. if test x$enable_video_vulkan = xyes; then
  19722. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19723. SUMMARY_video="${SUMMARY_video} vulkan"
  19724. fi
  19725. }
  19726. CheckInputEvents()
  19727. {
  19728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19729. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19730. use_input_events=no
  19731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19732. /* end confdefs.h. */
  19733. #include <linux/input.h>
  19734. int
  19735. main ()
  19736. {
  19737. #ifndef EVIOCGNAME
  19738. #error EVIOCGNAME() ioctl not available
  19739. #endif
  19740. ;
  19741. return 0;
  19742. }
  19743. _ACEOF
  19744. if ac_fn_c_try_compile "$LINENO"; then :
  19745. use_input_events=yes
  19746. fi
  19747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19749. $as_echo "$use_input_events" >&6; }
  19750. if test x$use_input_events = xyes; then
  19751. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19752. SUMMARY_input="${SUMMARY_input} linuxev"
  19753. fi
  19754. }
  19755. CheckInputKD()
  19756. {
  19757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19758. $as_echo_n "checking for Linux kd.h... " >&6; }
  19759. use_input_kd=no
  19760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19761. /* end confdefs.h. */
  19762. #include <linux/kd.h>
  19763. #include <linux/keyboard.h>
  19764. int
  19765. main ()
  19766. {
  19767. struct kbentry kbe;
  19768. kbe.kb_table = KG_CTRL;
  19769. ioctl(0, KDGKBENT, &kbe);
  19770. ;
  19771. return 0;
  19772. }
  19773. _ACEOF
  19774. if ac_fn_c_try_compile "$LINENO"; then :
  19775. use_input_kd=yes
  19776. fi
  19777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19779. $as_echo "$use_input_kd" >&6; }
  19780. if test x$use_input_kd = xyes; then
  19781. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19782. SUMMARY_input="${SUMMARY_input} linuxkd"
  19783. fi
  19784. }
  19785. CheckInputKBIO()
  19786. {
  19787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19788. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19789. use_input_kbio=no
  19790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19791. /* end confdefs.h. */
  19792. #include <sys/kbio.h>
  19793. #include <sys/ioctl.h>
  19794. int
  19795. main ()
  19796. {
  19797. accentmap_t accTable;
  19798. ioctl(0, KDENABIO, 1);
  19799. ;
  19800. return 0;
  19801. }
  19802. _ACEOF
  19803. if ac_fn_c_try_compile "$LINENO"; then :
  19804. use_input_kbio=yes
  19805. fi
  19806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19808. $as_echo "$use_input_kbio" >&6; }
  19809. if test x$use_input_kbio = xyes; then
  19810. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19811. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19812. fi
  19813. }
  19814. CheckInputWSCONS()
  19815. {
  19816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  19817. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  19818. use_input_wscons=no
  19819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19820. /* end confdefs.h. */
  19821. #include <sys/time.h>
  19822. #include <dev/wscons/wsconsio.h>
  19823. #include <dev/wscons/wsksymdef.h>
  19824. #include <dev/wscons/wsksymvar.h>
  19825. #include <sys/ioctl.h>
  19826. int
  19827. main ()
  19828. {
  19829. struct wskbd_map_data data;
  19830. ioctl(0, WSKBDIO_GETMAP, &data);
  19831. ;
  19832. return 0;
  19833. }
  19834. _ACEOF
  19835. if ac_fn_c_try_compile "$LINENO"; then :
  19836. use_input_wscons=yes
  19837. fi
  19838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  19840. $as_echo "$use_input_wscons" >&6; }
  19841. if test x$use_input_wscons = xyes; then
  19842. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  19843. SUMMARY_input="${SUMMARY_input} wscons"
  19844. fi
  19845. }
  19846. CheckLibUDev()
  19847. {
  19848. # Check whether --enable-libudev was given.
  19849. if test "${enable_libudev+set}" = set; then :
  19850. enableval=$enable_libudev;
  19851. else
  19852. enable_libudev=yes
  19853. fi
  19854. if test x$enable_libudev = xyes; then
  19855. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19856. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19857. have_libudev_h_hdr=yes
  19858. else
  19859. have_libudev_h_hdr=no
  19860. fi
  19861. if test x$have_libudev_h_hdr = xyes; then
  19862. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19863. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19864. if test x$udev_lib != x; then
  19865. echo "-- dynamic udev -> $udev_lib"
  19866. cat >>confdefs.h <<_ACEOF
  19867. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19868. _ACEOF
  19869. fi
  19870. fi
  19871. fi
  19872. }
  19873. CheckDBus()
  19874. {
  19875. # Check whether --enable-dbus was given.
  19876. if test "${enable_dbus+set}" = set; then :
  19877. enableval=$enable_dbus;
  19878. else
  19879. enable_dbus=yes
  19880. fi
  19881. if test x$enable_dbus = xyes; then
  19882. pkg_failed=no
  19883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19884. $as_echo_n "checking for dbus-1... " >&6; }
  19885. if test -n "$DBUS_CFLAGS"; then
  19886. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19887. elif test -n "$PKG_CONFIG"; then
  19888. if test -n "$PKG_CONFIG" && \
  19889. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19890. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19891. ac_status=$?
  19892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19893. test $ac_status = 0; }; then
  19894. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19895. test "x$?" != "x0" && pkg_failed=yes
  19896. else
  19897. pkg_failed=yes
  19898. fi
  19899. else
  19900. pkg_failed=untried
  19901. fi
  19902. if test -n "$DBUS_LIBS"; then
  19903. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19904. elif test -n "$PKG_CONFIG"; then
  19905. if test -n "$PKG_CONFIG" && \
  19906. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19907. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19908. ac_status=$?
  19909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19910. test $ac_status = 0; }; then
  19911. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19912. test "x$?" != "x0" && pkg_failed=yes
  19913. else
  19914. pkg_failed=yes
  19915. fi
  19916. else
  19917. pkg_failed=untried
  19918. fi
  19919. if test $pkg_failed = yes; then
  19920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19921. $as_echo "no" >&6; }
  19922. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19923. _pkg_short_errors_supported=yes
  19924. else
  19925. _pkg_short_errors_supported=no
  19926. fi
  19927. if test $_pkg_short_errors_supported = yes; then
  19928. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19929. else
  19930. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19931. fi
  19932. # Put the nasty error message in config.log where it belongs
  19933. echo "$DBUS_PKG_ERRORS" >&5
  19934. have_dbus=no
  19935. elif test $pkg_failed = untried; then
  19936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19937. $as_echo "no" >&6; }
  19938. have_dbus=no
  19939. else
  19940. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19941. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19943. $as_echo "yes" >&6; }
  19944. have_dbus=yes
  19945. fi
  19946. save_CPPFLAGS="$CPPFLAGS"
  19947. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19948. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19949. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19950. have_dbus_dbus_h_hdr=yes
  19951. else
  19952. have_dbus_dbus_h_hdr=no
  19953. fi
  19954. CPPFLAGS="$save_CPPFLAGS"
  19955. if test x$have_dbus_dbus_h_hdr = xyes; then
  19956. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19957. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19958. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19959. fi
  19960. fi
  19961. }
  19962. CheckIME()
  19963. {
  19964. # Check whether --enable-ime was given.
  19965. if test "${enable_ime+set}" = set; then :
  19966. enableval=$enable_ime;
  19967. else
  19968. enable_ime=yes
  19969. fi
  19970. if test x$enable_ime = xyes; then
  19971. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19972. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19973. fi
  19974. }
  19975. CheckInotify()
  19976. {
  19977. save_LIBS="$LIBS"
  19978. case "$host" in
  19979. *-*-freebsd*) LIBS="$LIBS -linotify"
  19980. ;;
  19981. esac
  19982. for ac_header in sys/inotify.h
  19983. do :
  19984. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19985. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19986. cat >>confdefs.h <<_ACEOF
  19987. #define HAVE_SYS_INOTIFY_H 1
  19988. _ACEOF
  19989. have_inotify_inotify_h_hdr=yes
  19990. fi
  19991. done
  19992. for ac_func in inotify_init
  19993. do :
  19994. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  19995. if test "x$ac_cv_func_inotify_init" = xyes; then :
  19996. cat >>confdefs.h <<_ACEOF
  19997. #define HAVE_INOTIFY_INIT 1
  19998. _ACEOF
  19999. have_inotify=yes
  20000. fi
  20001. done
  20002. for ac_func in inotify_init1
  20003. do :
  20004. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20005. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20006. cat >>confdefs.h <<_ACEOF
  20007. #define HAVE_INOTIFY_INIT1 1
  20008. _ACEOF
  20009. fi
  20010. done
  20011. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20012. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20013. case "$host" in
  20014. *-*-freebsd*)
  20015. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20016. ;;
  20017. esac
  20018. fi
  20019. LIBS="$save_LIBS"
  20020. }
  20021. CheckIBus()
  20022. {
  20023. # Check whether --enable-ibus was given.
  20024. if test "${enable_ibus+set}" = set; then :
  20025. enableval=$enable_ibus;
  20026. else
  20027. enable_ibus=yes
  20028. fi
  20029. if test x$enable_ibus = xyes; then
  20030. pkg_failed=no
  20031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20032. $as_echo_n "checking for ibus-1.0... " >&6; }
  20033. if test -n "$IBUS_CFLAGS"; then
  20034. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20035. elif test -n "$PKG_CONFIG"; then
  20036. if test -n "$PKG_CONFIG" && \
  20037. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20038. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20039. ac_status=$?
  20040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20041. test $ac_status = 0; }; then
  20042. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20043. test "x$?" != "x0" && pkg_failed=yes
  20044. else
  20045. pkg_failed=yes
  20046. fi
  20047. else
  20048. pkg_failed=untried
  20049. fi
  20050. if test -n "$IBUS_LIBS"; then
  20051. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20052. elif test -n "$PKG_CONFIG"; then
  20053. if test -n "$PKG_CONFIG" && \
  20054. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20055. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20056. ac_status=$?
  20057. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20058. test $ac_status = 0; }; then
  20059. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20060. test "x$?" != "x0" && pkg_failed=yes
  20061. else
  20062. pkg_failed=yes
  20063. fi
  20064. else
  20065. pkg_failed=untried
  20066. fi
  20067. if test $pkg_failed = yes; then
  20068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20069. $as_echo "no" >&6; }
  20070. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20071. _pkg_short_errors_supported=yes
  20072. else
  20073. _pkg_short_errors_supported=no
  20074. fi
  20075. if test $_pkg_short_errors_supported = yes; then
  20076. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20077. else
  20078. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20079. fi
  20080. # Put the nasty error message in config.log where it belongs
  20081. echo "$IBUS_PKG_ERRORS" >&5
  20082. have_ibus=no
  20083. elif test $pkg_failed = untried; then
  20084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20085. $as_echo "no" >&6; }
  20086. have_ibus=no
  20087. else
  20088. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20089. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20091. $as_echo "yes" >&6; }
  20092. have_ibus=yes
  20093. fi
  20094. save_CPPFLAGS="$CPPFLAGS"
  20095. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20096. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20097. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20098. have_ibus_ibus_h_hdr=yes
  20099. else
  20100. have_ibus_ibus_h_hdr=no
  20101. fi
  20102. CPPFLAGS="$save_CPPFLAGS"
  20103. if test x$have_ibus_ibus_h_hdr = xyes; then
  20104. if test x$enable_ime != xyes; then
  20105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20106. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20107. have_ibus_ibus_h_hdr=no
  20108. elif test x$enable_dbus != xyes; then
  20109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20110. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20111. have_ibus_ibus_h_hdr=no
  20112. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20114. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20115. have_ibus_ibus_h_hdr=no
  20116. else
  20117. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20118. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20119. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20120. fi
  20121. fi
  20122. fi
  20123. }
  20124. CheckFcitx()
  20125. {
  20126. # Check whether --enable-fcitx was given.
  20127. if test "${enable_fcitx+set}" = set; then :
  20128. enableval=$enable_fcitx;
  20129. else
  20130. enable_fcitx=yes
  20131. fi
  20132. if test x$enable_fcitx = xyes; then
  20133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20134. $as_echo_n "checking for fcitx support... " >&6; }
  20135. have_fcitx=no
  20136. if test x$enable_ime != xyes; then
  20137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20138. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20139. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20141. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20142. else
  20143. have_fcitx=yes
  20144. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20145. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20146. fi
  20147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20148. $as_echo "$have_fcitx" >&6; }
  20149. fi
  20150. }
  20151. CheckJoystickMFI()
  20152. {
  20153. # Check whether --enable-joystick-mfi was given.
  20154. if test "${enable_joystick_mfi+set}" = set; then :
  20155. enableval=$enable_joystick_mfi;
  20156. else
  20157. enable_joystick_mfi=yes
  20158. fi
  20159. if test x$enable_joystick_mfi = xyes; then
  20160. save_CFLAGS="$CFLAGS"
  20161. save_LDFLAGS="$LDFLAGS"
  20162. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20163. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20165. $as_echo_n "checking for GameController framework... " >&6; }
  20166. enable_joystick_mfi=no
  20167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20168. /* end confdefs.h. */
  20169. #include <AvailabilityMacros.h>
  20170. #include <TargetConditionals.h>
  20171. #import <GameController/GameController.h>
  20172. int
  20173. main ()
  20174. {
  20175. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20176. #error GameController framework doesn't work on this configuration
  20177. #endif
  20178. #if TARGET_CPU_X86
  20179. #error GameController framework doesn't work on this configuration
  20180. #endif
  20181. ;
  20182. return 0;
  20183. }
  20184. _ACEOF
  20185. if ac_fn_c_try_link "$LINENO"; then :
  20186. enable_joystick_mfi=yes
  20187. fi
  20188. rm -f core conftest.err conftest.$ac_objext \
  20189. conftest$ac_exeext conftest.$ac_ext
  20190. CFLAGS="$save_CFLAGS"
  20191. LDFLAGS="$save_LDFLAGS"
  20192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20193. $as_echo "$enable_joystick_mfi" >&6; }
  20194. if test x$enable_joystick_mfi = xyes; then
  20195. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20196. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20197. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20198. fi
  20199. fi
  20200. }
  20201. CheckPTHREAD()
  20202. {
  20203. case "$host" in
  20204. *-*-emscripten*)
  20205. enable_pthreads_default=no
  20206. ;;
  20207. *)
  20208. enable_pthreads_default=yes
  20209. ;;
  20210. esac
  20211. # Check whether --enable-pthreads was given.
  20212. if test "${enable_pthreads+set}" = set; then :
  20213. enableval=$enable_pthreads;
  20214. else
  20215. enable_pthreads=maybe
  20216. fi
  20217. # Check whether --enable-pthread-sem was given.
  20218. if test "${enable_pthread_sem+set}" = set; then :
  20219. enableval=$enable_pthread_sem;
  20220. else
  20221. enable_pthread_sem=maybe
  20222. fi
  20223. if test x$enable_pthreads = xmaybe; then
  20224. enable_pthreads=$enable_pthreads_default
  20225. fi
  20226. if test x$enable_pthread_sem = xmaybe; then
  20227. enable_pthread_sem=$enable_pthreads
  20228. fi
  20229. case "$host" in
  20230. *-*-android*)
  20231. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20232. pthread_lib=""
  20233. ;;
  20234. *-*-linux*|*-*-uclinux*)
  20235. pthread_cflags="-D_REENTRANT"
  20236. pthread_lib="-lpthread"
  20237. ;;
  20238. *-*-bsdi*)
  20239. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20240. pthread_lib=""
  20241. ;;
  20242. *-*-darwin*)
  20243. pthread_cflags="-D_THREAD_SAFE"
  20244. # causes Carbon.p complaints?
  20245. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20246. ;;
  20247. *-*-freebsd*|*-*-dragonfly*)
  20248. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20249. pthread_lib="-pthread"
  20250. ;;
  20251. *-*-netbsd*)
  20252. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20253. pthread_lib="-lpthread"
  20254. ;;
  20255. *-*-openbsd*)
  20256. pthread_cflags="-D_REENTRANT"
  20257. pthread_lib="-pthread"
  20258. ;;
  20259. *-*-solaris2.9)
  20260. # From Solaris 9+, posix4's preferred name is rt.
  20261. pthread_cflags="-D_REENTRANT"
  20262. pthread_lib="-lpthread -lrt"
  20263. ;;
  20264. *-*-solaris2.10)
  20265. # Solaris 10+ merged pthread into libc.
  20266. pthread_cflags="-D_REENTRANT"
  20267. pthread_lib="-lrt"
  20268. ;;
  20269. *-*-solaris*)
  20270. # Solaris 11+ merged rt into libc.
  20271. pthread_cflags="-D_REENTRANT"
  20272. pthread_lib=""
  20273. ;;
  20274. *-*-sysv5*)
  20275. pthread_cflags="-D_REENTRANT -Kthread"
  20276. pthread_lib=""
  20277. ;;
  20278. *-*-aix*)
  20279. pthread_cflags="-D_REENTRANT -mthreads"
  20280. pthread_lib="-lpthread"
  20281. ;;
  20282. *-*-hpux11*)
  20283. pthread_cflags="-D_REENTRANT"
  20284. pthread_lib="-L/usr/lib -lpthread"
  20285. ;;
  20286. *-*-haiku*)
  20287. pthread_cflags="-D_REENTRANT"
  20288. pthread_lib=""
  20289. ;;
  20290. *-*-nto*)
  20291. pthread_cflags="-D_REENTRANT"
  20292. pthread_lib=""
  20293. ;;
  20294. *-*-emscripten*)
  20295. pthread_cflags="-D_REENTRANT -pthread"
  20296. pthread_lib="-pthread"
  20297. ;;
  20298. *)
  20299. pthread_cflags="-D_REENTRANT"
  20300. pthread_lib="-lpthread"
  20301. ;;
  20302. esac
  20303. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20304. # Save the original compiler flags and libraries
  20305. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20306. # Add the pthread compiler flags and libraries
  20307. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20308. # Check to see if we have pthread support on this system
  20309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20310. $as_echo_n "checking for pthreads... " >&6; }
  20311. use_pthreads=no
  20312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20313. /* end confdefs.h. */
  20314. #include <pthread.h>
  20315. int
  20316. main ()
  20317. {
  20318. pthread_attr_t type;
  20319. pthread_attr_init(&type);
  20320. ;
  20321. return 0;
  20322. }
  20323. _ACEOF
  20324. if ac_fn_c_try_link "$LINENO"; then :
  20325. use_pthreads=yes
  20326. fi
  20327. rm -f core conftest.err conftest.$ac_objext \
  20328. conftest$ac_exeext conftest.$ac_ext
  20329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20330. $as_echo "$use_pthreads" >&6; }
  20331. # Restore the compiler flags and libraries
  20332. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20333. # Do futher testing if we have pthread support...
  20334. if test x$use_pthreads = xyes; then
  20335. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20336. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20337. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20338. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20339. # Save the original compiler flags and libraries
  20340. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20341. # Add the pthread compiler flags and libraries
  20342. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20343. # Check to see if recursive mutexes are available
  20344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20345. $as_echo_n "checking for recursive mutexes... " >&6; }
  20346. has_recursive_mutexes=no
  20347. if test x$has_recursive_mutexes = xno; then
  20348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20349. /* end confdefs.h. */
  20350. #define _GNU_SOURCE 1
  20351. #include <pthread.h>
  20352. int
  20353. main ()
  20354. {
  20355. pthread_mutexattr_t attr;
  20356. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20357. ;
  20358. return 0;
  20359. }
  20360. _ACEOF
  20361. if ac_fn_c_try_link "$LINENO"; then :
  20362. has_recursive_mutexes=yes
  20363. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20364. fi
  20365. rm -f core conftest.err conftest.$ac_objext \
  20366. conftest$ac_exeext conftest.$ac_ext
  20367. fi
  20368. if test x$has_recursive_mutexes = xno; then
  20369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20370. /* end confdefs.h. */
  20371. #define _GNU_SOURCE 1
  20372. #include <pthread.h>
  20373. int
  20374. main ()
  20375. {
  20376. pthread_mutexattr_t attr;
  20377. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20378. ;
  20379. return 0;
  20380. }
  20381. _ACEOF
  20382. if ac_fn_c_try_link "$LINENO"; then :
  20383. has_recursive_mutexes=yes
  20384. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20385. fi
  20386. rm -f core conftest.err conftest.$ac_objext \
  20387. conftest$ac_exeext conftest.$ac_ext
  20388. fi
  20389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20390. $as_echo "$has_recursive_mutexes" >&6; }
  20391. # Check to see if pthread semaphore support is missing
  20392. if test x$enable_pthread_sem = xyes; then
  20393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20394. $as_echo_n "checking for pthread semaphores... " >&6; }
  20395. have_pthread_sem=no
  20396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20397. /* end confdefs.h. */
  20398. #include <pthread.h>
  20399. #include <semaphore.h>
  20400. int
  20401. main ()
  20402. {
  20403. ;
  20404. return 0;
  20405. }
  20406. _ACEOF
  20407. if ac_fn_c_try_compile "$LINENO"; then :
  20408. have_pthread_sem=yes
  20409. fi
  20410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20412. $as_echo "$have_pthread_sem" >&6; }
  20413. fi
  20414. if test x$have_pthread_sem = xyes; then
  20415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20416. $as_echo_n "checking for sem_timedwait... " >&6; }
  20417. have_sem_timedwait=no
  20418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20419. /* end confdefs.h. */
  20420. #include <pthread.h>
  20421. #include <semaphore.h>
  20422. int
  20423. main ()
  20424. {
  20425. sem_timedwait(NULL, NULL);
  20426. ;
  20427. return 0;
  20428. }
  20429. _ACEOF
  20430. if ac_fn_c_try_link "$LINENO"; then :
  20431. have_sem_timedwait=yes
  20432. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20433. fi
  20434. rm -f core conftest.err conftest.$ac_objext \
  20435. conftest$ac_exeext conftest.$ac_ext
  20436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20437. $as_echo "$have_sem_timedwait" >&6; }
  20438. fi
  20439. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20440. "
  20441. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20442. have_pthread_np_h=yes
  20443. else
  20444. have_pthread_np_h=no
  20445. fi
  20446. if test x$have_pthread_np_h = xyes; then
  20447. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20448. fi
  20449. # Check to see if pthread naming is available
  20450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20451. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20453. /* end confdefs.h. */
  20454. /* Override any GCC internal prototype to avoid an error.
  20455. Use char because int might match the return type of a GCC
  20456. builtin and then its argument prototype would still apply. */
  20457. #ifdef __cplusplus
  20458. extern "C"
  20459. #endif
  20460. char pthread_setname_np ();
  20461. int
  20462. main ()
  20463. {
  20464. return pthread_setname_np ();
  20465. ;
  20466. return 0;
  20467. }
  20468. _ACEOF
  20469. if ac_fn_c_try_link "$LINENO"; then :
  20470. has_pthread_setname_np=yes
  20471. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20472. else
  20473. has_pthread_setname_np=no
  20474. fi
  20475. rm -f core conftest.err conftest.$ac_objext \
  20476. conftest$ac_exeext conftest.$ac_ext
  20477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20478. $as_echo "$has_pthread_setname_np" >&6; }
  20479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20480. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20482. /* end confdefs.h. */
  20483. /* Override any GCC internal prototype to avoid an error.
  20484. Use char because int might match the return type of a GCC
  20485. builtin and then its argument prototype would still apply. */
  20486. #ifdef __cplusplus
  20487. extern "C"
  20488. #endif
  20489. char pthread_set_name_np ();
  20490. int
  20491. main ()
  20492. {
  20493. return pthread_set_name_np ();
  20494. ;
  20495. return 0;
  20496. }
  20497. _ACEOF
  20498. if ac_fn_c_try_link "$LINENO"; then :
  20499. has_pthread_set_name_np=yes
  20500. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20501. else
  20502. has_pthread_set_name_np=no
  20503. fi
  20504. rm -f core conftest.err conftest.$ac_objext \
  20505. conftest$ac_exeext conftest.$ac_ext
  20506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20507. $as_echo "$has_pthread_set_name_np" >&6; }
  20508. # Restore the compiler flags and libraries
  20509. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20510. # Basic thread creation functions
  20511. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20512. # Semaphores
  20513. # We can fake these with mutexes and condition variables if necessary
  20514. if test x$have_pthread_sem = xyes; then
  20515. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20516. else
  20517. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20518. fi
  20519. # Mutexes
  20520. # We can fake these with semaphores if necessary
  20521. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20522. # Condition variables
  20523. # We can fake these with semaphores and mutexes if necessary
  20524. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20525. # Thread local storage
  20526. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20527. have_threads=yes
  20528. fi
  20529. fi
  20530. }
  20531. CheckWINDOWS()
  20532. {
  20533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20534. $as_echo_n "checking Windows compiler... " >&6; }
  20535. have_win32_gcc=no
  20536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20537. /* end confdefs.h. */
  20538. #include <windows.h>
  20539. int
  20540. main ()
  20541. {
  20542. ;
  20543. return 0;
  20544. }
  20545. _ACEOF
  20546. if ac_fn_c_try_compile "$LINENO"; then :
  20547. have_win32_gcc=yes
  20548. fi
  20549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20551. $as_echo "$have_win32_gcc" >&6; }
  20552. if test x$have_win32_gcc != xyes; then
  20553. as_fn_error $? "
  20554. *** Your compiler ($CC) does not produce Windows executables!
  20555. " "$LINENO" 5
  20556. fi
  20557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20558. $as_echo_n "checking Windows CE... " >&6; }
  20559. have_wince=no
  20560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20561. /* end confdefs.h. */
  20562. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20563. #error This is not Windows CE
  20564. #endif
  20565. int
  20566. main ()
  20567. {
  20568. ;
  20569. return 0;
  20570. }
  20571. _ACEOF
  20572. if ac_fn_c_try_compile "$LINENO"; then :
  20573. have_wince=yes
  20574. as_fn_error $? "
  20575. *** Sorry, Windows CE is no longer supported.
  20576. " "$LINENO" 5
  20577. fi
  20578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20580. $as_echo "$have_wince" >&6; }
  20581. # This fixes Windows stack alignment with newer GCC
  20582. CheckStackBoundary
  20583. }
  20584. CheckDIRECTX()
  20585. {
  20586. # Check whether --enable-directx was given.
  20587. if test "${enable_directx+set}" = set; then :
  20588. enableval=$enable_directx;
  20589. else
  20590. enable_directx=yes
  20591. fi
  20592. if test x$enable_directx = xyes; then
  20593. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20594. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20595. have_d3d=yes
  20596. fi
  20597. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20598. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20599. have_d3d11=yes
  20600. fi
  20601. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20602. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20603. have_ddraw=yes
  20604. fi
  20605. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20606. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20607. have_dsound=yes
  20608. fi
  20609. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20610. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20611. have_dinput=yes
  20612. fi
  20613. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20614. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20615. have_dxgi=yes
  20616. fi
  20617. if test x$have_ddraw = xyes; then
  20618. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20619. fi
  20620. if test x$have_dinput = xyes; then
  20621. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20622. fi
  20623. if test x$have_dsound = xyes; then
  20624. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20625. fi
  20626. if test x$have_dxgi = xyes; then
  20627. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20628. fi
  20629. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20630. # FIXME: ...so force it off for now.
  20631. case "$host" in
  20632. *-*-cygwin*)
  20633. have_dinput=false
  20634. ;;
  20635. esac
  20636. fi
  20637. # Check whether --enable-xinput was given.
  20638. if test "${enable_xinput+set}" = set; then :
  20639. enableval=$enable_xinput;
  20640. else
  20641. enable_xinput=yes
  20642. fi
  20643. if test x$enable_xinput = xyes; then
  20644. have_xinput_gamepadex=no
  20645. have_xinput_stateex=no
  20646. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20647. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20648. have_xinput=yes
  20649. fi
  20650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  20651. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  20652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20653. /* end confdefs.h. */
  20654. #include <windows.h>
  20655. #include <xinput.h>
  20656. XINPUT_GAMEPAD_EX x1;
  20657. int
  20658. main ()
  20659. {
  20660. ;
  20661. return 0;
  20662. }
  20663. _ACEOF
  20664. if ac_fn_c_try_compile "$LINENO"; then :
  20665. have_xinput_gamepadex=yes
  20666. fi
  20667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  20669. $as_echo "$have_xinput_gamepadex" >&6; }
  20670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  20671. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  20672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20673. /* end confdefs.h. */
  20674. #include <windows.h>
  20675. #include <xinput.h>
  20676. XINPUT_STATE_EX s1;
  20677. int
  20678. main ()
  20679. {
  20680. ;
  20681. return 0;
  20682. }
  20683. _ACEOF
  20684. if ac_fn_c_try_compile "$LINENO"; then :
  20685. have_xinput_stateex=yes
  20686. fi
  20687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  20689. $as_echo "$have_xinput_stateex" >&6; }
  20690. if test x$have_xinput = xyes; then
  20691. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20692. fi
  20693. if test x$have_xinput_gamepadex = xyes; then
  20694. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20695. fi
  20696. if test x$have_xinput_stateex = xyes; then
  20697. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20698. fi
  20699. fi
  20700. ac_fn_c_check_header_mongrel "$LINENO" "windows.gaming.input.h" "ac_cv_header_windows_gaming_input_h" "$ac_includes_default"
  20701. if test "x$ac_cv_header_windows_gaming_input_h" = xyes; then :
  20702. have_wgi=yes
  20703. fi
  20704. if test x$have_wgi = xyes; then
  20705. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  20706. fi
  20707. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20708. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20709. have_wasapi=yes
  20710. fi
  20711. if test x$have_wasapi = xyes; then
  20712. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20713. fi
  20714. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20715. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20716. else
  20717. have_wasapi=no
  20718. fi
  20719. if test x$have_wasapi = xyes; then
  20720. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20721. fi
  20722. # Check whether --enable-wasapi was given.
  20723. if test "${enable_wasapi+set}" = set; then :
  20724. enableval=$enable_wasapi;
  20725. else
  20726. enable_wasapi=yes
  20727. fi
  20728. }
  20729. CheckDLOPEN()
  20730. {
  20731. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  20732. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  20733. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  20734. have_dlfcn_h=yes
  20735. else
  20736. have_dlfcn_h=no
  20737. fi
  20738. have_dlopen=no
  20739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20740. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20741. if ${ac_cv_lib_c_dlopen+:} false; then :
  20742. $as_echo_n "(cached) " >&6
  20743. else
  20744. ac_check_lib_save_LIBS=$LIBS
  20745. LIBS="-lc $LIBS"
  20746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20747. /* end confdefs.h. */
  20748. /* Override any GCC internal prototype to avoid an error.
  20749. Use char because int might match the return type of a GCC
  20750. builtin and then its argument prototype would still apply. */
  20751. #ifdef __cplusplus
  20752. extern "C"
  20753. #endif
  20754. char dlopen ();
  20755. int
  20756. main ()
  20757. {
  20758. return dlopen ();
  20759. ;
  20760. return 0;
  20761. }
  20762. _ACEOF
  20763. if ac_fn_c_try_link "$LINENO"; then :
  20764. ac_cv_lib_c_dlopen=yes
  20765. else
  20766. ac_cv_lib_c_dlopen=no
  20767. fi
  20768. rm -f core conftest.err conftest.$ac_objext \
  20769. conftest$ac_exeext conftest.$ac_ext
  20770. LIBS=$ac_check_lib_save_LIBS
  20771. fi
  20772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20773. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20774. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20775. have_dlopen=yes
  20776. else
  20777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20778. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20779. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20780. $as_echo_n "(cached) " >&6
  20781. else
  20782. ac_check_lib_save_LIBS=$LIBS
  20783. LIBS="-ldl $LIBS"
  20784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20785. /* end confdefs.h. */
  20786. /* Override any GCC internal prototype to avoid an error.
  20787. Use char because int might match the return type of a GCC
  20788. builtin and then its argument prototype would still apply. */
  20789. #ifdef __cplusplus
  20790. extern "C"
  20791. #endif
  20792. char dlopen ();
  20793. int
  20794. main ()
  20795. {
  20796. return dlopen ();
  20797. ;
  20798. return 0;
  20799. }
  20800. _ACEOF
  20801. if ac_fn_c_try_link "$LINENO"; then :
  20802. ac_cv_lib_dl_dlopen=yes
  20803. else
  20804. ac_cv_lib_dl_dlopen=no
  20805. fi
  20806. rm -f core conftest.err conftest.$ac_objext \
  20807. conftest$ac_exeext conftest.$ac_ext
  20808. LIBS=$ac_check_lib_save_LIBS
  20809. fi
  20810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20811. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20812. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20813. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20814. fi
  20815. fi
  20816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20817. $as_echo_n "checking for dlopen... " >&6; }
  20818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20819. $as_echo "$have_dlopen" >&6; }
  20820. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  20821. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  20822. if test x$enable_loadso = xyes; then
  20823. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20824. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20825. have_loadso=yes
  20826. fi
  20827. fi
  20828. }
  20829. CheckUSBHID()
  20830. {
  20831. case "$host" in
  20832. *-*-*bsd*|*-*-dragonfly*)
  20833. if test x$enable_joystick = xyes; then
  20834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20835. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20836. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20837. $as_echo_n "(cached) " >&6
  20838. else
  20839. ac_check_lib_save_LIBS=$LIBS
  20840. LIBS="-lusbhid $LIBS"
  20841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20842. /* end confdefs.h. */
  20843. /* Override any GCC internal prototype to avoid an error.
  20844. Use char because int might match the return type of a GCC
  20845. builtin and then its argument prototype would still apply. */
  20846. #ifdef __cplusplus
  20847. extern "C"
  20848. #endif
  20849. char hid_init ();
  20850. int
  20851. main ()
  20852. {
  20853. return hid_init ();
  20854. ;
  20855. return 0;
  20856. }
  20857. _ACEOF
  20858. if ac_fn_c_try_link "$LINENO"; then :
  20859. ac_cv_lib_usbhid_hid_init=yes
  20860. else
  20861. ac_cv_lib_usbhid_hid_init=no
  20862. fi
  20863. rm -f core conftest.err conftest.$ac_objext \
  20864. conftest$ac_exeext conftest.$ac_ext
  20865. LIBS=$ac_check_lib_save_LIBS
  20866. fi
  20867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20868. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20869. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20870. have_libusbhid=yes
  20871. fi
  20872. if test x$have_libusbhid = xyes; then
  20873. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20874. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20875. USB_CFLAGS="-DHAVE_USBHID_H"
  20876. fi
  20877. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20878. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20879. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20880. fi
  20881. USB_LIBS="$USB_LIBS -lusbhid"
  20882. else
  20883. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20884. if test "x$ac_cv_header_usb_h" = xyes; then :
  20885. USB_CFLAGS="-DHAVE_USB_H"
  20886. fi
  20887. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20888. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20889. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20890. fi
  20891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20892. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20893. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20894. $as_echo_n "(cached) " >&6
  20895. else
  20896. ac_check_lib_save_LIBS=$LIBS
  20897. LIBS="-lusb $LIBS"
  20898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20899. /* end confdefs.h. */
  20900. /* Override any GCC internal prototype to avoid an error.
  20901. Use char because int might match the return type of a GCC
  20902. builtin and then its argument prototype would still apply. */
  20903. #ifdef __cplusplus
  20904. extern "C"
  20905. #endif
  20906. char hid_init ();
  20907. int
  20908. main ()
  20909. {
  20910. return hid_init ();
  20911. ;
  20912. return 0;
  20913. }
  20914. _ACEOF
  20915. if ac_fn_c_try_link "$LINENO"; then :
  20916. ac_cv_lib_usb_hid_init=yes
  20917. else
  20918. ac_cv_lib_usb_hid_init=no
  20919. fi
  20920. rm -f core conftest.err conftest.$ac_objext \
  20921. conftest$ac_exeext conftest.$ac_ext
  20922. LIBS=$ac_check_lib_save_LIBS
  20923. fi
  20924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20925. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20926. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20927. USB_LIBS="$USB_LIBS -lusb"
  20928. fi
  20929. fi
  20930. save_CFLAGS="$CFLAGS"
  20931. CFLAGS="$CFLAGS $USB_CFLAGS"
  20932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20933. $as_echo_n "checking for usbhid... " >&6; }
  20934. have_usbhid=no
  20935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20936. /* end confdefs.h. */
  20937. #include <sys/types.h>
  20938. #if defined(HAVE_USB_H)
  20939. #include <usb.h>
  20940. #endif
  20941. #ifdef __DragonFly__
  20942. # include <bus/u4b/usb.h>
  20943. # include <bus/u4b/usbhid.h>
  20944. #else
  20945. # include <dev/usb/usb.h>
  20946. # include <dev/usb/usbhid.h>
  20947. #endif
  20948. #if defined(HAVE_USBHID_H)
  20949. #include <usbhid.h>
  20950. #elif defined(HAVE_LIBUSB_H)
  20951. #include <libusb.h>
  20952. #elif defined(HAVE_LIBUSBHID_H)
  20953. #include <libusbhid.h>
  20954. #endif
  20955. int
  20956. main ()
  20957. {
  20958. struct report_desc *repdesc;
  20959. struct usb_ctl_report *repbuf;
  20960. hid_kind_t hidkind;
  20961. ;
  20962. return 0;
  20963. }
  20964. _ACEOF
  20965. if ac_fn_c_try_compile "$LINENO"; then :
  20966. have_usbhid=yes
  20967. fi
  20968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20970. $as_echo "$have_usbhid" >&6; }
  20971. if test x$have_usbhid = xyes; then
  20972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20973. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20974. have_usbhid_ucr_data=no
  20975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20976. /* end confdefs.h. */
  20977. #include <sys/types.h>
  20978. #if defined(HAVE_USB_H)
  20979. #include <usb.h>
  20980. #endif
  20981. #ifdef __DragonFly__
  20982. # include <bus/u4b/usb.h>
  20983. # include <bus/u4b/usbhid.h>
  20984. #else
  20985. # include <dev/usb/usb.h>
  20986. # include <dev/usb/usbhid.h>
  20987. #endif
  20988. #if defined(HAVE_USBHID_H)
  20989. #include <usbhid.h>
  20990. #elif defined(HAVE_LIBUSB_H)
  20991. #include <libusb.h>
  20992. #elif defined(HAVE_LIBUSBHID_H)
  20993. #include <libusbhid.h>
  20994. #endif
  20995. int
  20996. main ()
  20997. {
  20998. struct usb_ctl_report buf;
  20999. if (buf.ucr_data) { }
  21000. ;
  21001. return 0;
  21002. }
  21003. _ACEOF
  21004. if ac_fn_c_try_compile "$LINENO"; then :
  21005. have_usbhid_ucr_data=yes
  21006. fi
  21007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21008. if test x$have_usbhid_ucr_data = xyes; then
  21009. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21010. fi
  21011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21012. $as_echo "$have_usbhid_ucr_data" >&6; }
  21013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21014. $as_echo_n "checking for new usbhid API... " >&6; }
  21015. have_usbhid_new=no
  21016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21017. /* end confdefs.h. */
  21018. #include <sys/types.h>
  21019. #if defined(HAVE_USB_H)
  21020. #include <usb.h>
  21021. #endif
  21022. #ifdef __DragonFly__
  21023. #include <bus/u4b/usb.h>
  21024. #include <bus/u4b/usbhid.h>
  21025. #else
  21026. #include <dev/usb/usb.h>
  21027. #include <dev/usb/usbhid.h>
  21028. #endif
  21029. #if defined(HAVE_USBHID_H)
  21030. #include <usbhid.h>
  21031. #elif defined(HAVE_LIBUSB_H)
  21032. #include <libusb.h>
  21033. #elif defined(HAVE_LIBUSBHID_H)
  21034. #include <libusbhid.h>
  21035. #endif
  21036. int
  21037. main ()
  21038. {
  21039. report_desc_t d;
  21040. hid_start_parse(d, 1, 1);
  21041. ;
  21042. return 0;
  21043. }
  21044. _ACEOF
  21045. if ac_fn_c_try_compile "$LINENO"; then :
  21046. have_usbhid_new=yes
  21047. fi
  21048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21049. if test x$have_usbhid_new = xyes; then
  21050. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21051. fi
  21052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21053. $as_echo "$have_usbhid_new" >&6; }
  21054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21055. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21056. have_machine_joystick=no
  21057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21058. /* end confdefs.h. */
  21059. #include <machine/joystick.h>
  21060. int
  21061. main ()
  21062. {
  21063. struct joystick t;
  21064. ;
  21065. return 0;
  21066. }
  21067. _ACEOF
  21068. if ac_fn_c_try_compile "$LINENO"; then :
  21069. have_machine_joystick=yes
  21070. fi
  21071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21072. if test x$have_machine_joystick = xyes; then
  21073. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21074. fi
  21075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21076. $as_echo "$have_machine_joystick" >&6; }
  21077. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21078. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21079. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21080. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21081. have_joystick=yes
  21082. fi
  21083. CFLAGS="$save_CFLAGS"
  21084. fi
  21085. ;;
  21086. esac
  21087. }
  21088. CheckHIDAPI()
  21089. {
  21090. # Check whether --enable-hidapi was given.
  21091. if test "${enable_hidapi+set}" = set; then :
  21092. enableval=$enable_hidapi;
  21093. else
  21094. enable_hidapi=yes
  21095. fi
  21096. # Check whether --enable-hidapi-libusb was given.
  21097. if test "${enable_hidapi_libusb+set}" = set; then :
  21098. enableval=$enable_hidapi_libusb;
  21099. else
  21100. enable_hidapi_libusb=maybe
  21101. fi
  21102. if test x$enable_hidapi != xyes; then
  21103. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  21104. fi
  21105. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  21106. case "$host" in
  21107. # libusb does not support iOS
  21108. *-ios-* )
  21109. enable_hidapi_libusb=no
  21110. ;;
  21111. # On the other hand, *BSD specifically uses libusb only
  21112. *-*-*bsd* )
  21113. enable_hidapi_libusb=yes
  21114. require_hidapi_libusb=yes
  21115. ;;
  21116. esac
  21117. hidapi_support=yes
  21118. if test x$enable_hidapi_libusb = xyes; then
  21119. pkg_failed=no
  21120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21121. $as_echo_n "checking for libusb-1.0... " >&6; }
  21122. if test -n "$LIBUSB_CFLAGS"; then
  21123. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21124. elif test -n "$PKG_CONFIG"; then
  21125. if test -n "$PKG_CONFIG" && \
  21126. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21127. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21128. ac_status=$?
  21129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21130. test $ac_status = 0; }; then
  21131. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21132. test "x$?" != "x0" && pkg_failed=yes
  21133. else
  21134. pkg_failed=yes
  21135. fi
  21136. else
  21137. pkg_failed=untried
  21138. fi
  21139. if test -n "$LIBUSB_LIBS"; then
  21140. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21141. elif test -n "$PKG_CONFIG"; then
  21142. if test -n "$PKG_CONFIG" && \
  21143. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21144. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21145. ac_status=$?
  21146. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21147. test $ac_status = 0; }; then
  21148. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21149. test "x$?" != "x0" && pkg_failed=yes
  21150. else
  21151. pkg_failed=yes
  21152. fi
  21153. else
  21154. pkg_failed=untried
  21155. fi
  21156. if test $pkg_failed = yes; then
  21157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21158. $as_echo "no" >&6; }
  21159. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21160. _pkg_short_errors_supported=yes
  21161. else
  21162. _pkg_short_errors_supported=no
  21163. fi
  21164. if test $_pkg_short_errors_supported = yes; then
  21165. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21166. else
  21167. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21168. fi
  21169. # Put the nasty error message in config.log where it belongs
  21170. echo "$LIBUSB_PKG_ERRORS" >&5
  21171. have_libusb=no
  21172. elif test $pkg_failed = untried; then
  21173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21174. $as_echo "no" >&6; }
  21175. have_libusb=no
  21176. else
  21177. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21178. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21180. $as_echo "yes" >&6; }
  21181. have_libusb=yes
  21182. fi
  21183. save_CPPFLAGS="$CPPFLAGS"
  21184. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21185. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21186. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21187. have_libusb_h=yes
  21188. else
  21189. have_libusb_h=no
  21190. fi
  21191. CPPFLAGS="$save_CPPFLAGS"
  21192. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21193. hidapi_support=no
  21194. fi
  21195. fi
  21196. if test x$hidapi_support = xyes; then
  21197. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21198. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21199. if test x$have_libusb_h = xyes; then
  21200. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21201. if test x$require_hidapi_libusb = xyes; then
  21202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21203. else
  21204. if test x$have_loadso != xyes; then
  21205. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21206. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21207. fi
  21208. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21209. libusb_lib=""
  21210. case "$host" in
  21211. *-*-darwin* )
  21212. libusb_lib="libusb-1.0.0.dylib"
  21213. ;;
  21214. *-*-cygwin* | *-*-mingw* )
  21215. libusb_lib="libusb-1.0.dll"
  21216. ;;
  21217. esac
  21218. if test x$libusb_lib = x; then
  21219. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21220. fi
  21221. cat >>confdefs.h <<_ACEOF
  21222. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21223. _ACEOF
  21224. fi
  21225. fi
  21226. else
  21227. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  21228. fi
  21229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  21230. $as_echo_n "checking for hidapi support... " >&6; }
  21231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21232. $as_echo "$hidapi_support" >&6; }
  21233. fi
  21234. }
  21235. CheckClockGettime()
  21236. {
  21237. # Check whether --enable-clock_gettime was given.
  21238. if test "${enable_clock_gettime+set}" = set; then :
  21239. enableval=$enable_clock_gettime;
  21240. else
  21241. enable_clock_gettime=yes
  21242. fi
  21243. if test x$enable_clock_gettime = xyes; then
  21244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21245. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21246. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21247. $as_echo_n "(cached) " >&6
  21248. else
  21249. ac_check_lib_save_LIBS=$LIBS
  21250. LIBS="-lrt $LIBS"
  21251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21252. /* end confdefs.h. */
  21253. /* Override any GCC internal prototype to avoid an error.
  21254. Use char because int might match the return type of a GCC
  21255. builtin and then its argument prototype would still apply. */
  21256. #ifdef __cplusplus
  21257. extern "C"
  21258. #endif
  21259. char clock_gettime ();
  21260. int
  21261. main ()
  21262. {
  21263. return clock_gettime ();
  21264. ;
  21265. return 0;
  21266. }
  21267. _ACEOF
  21268. if ac_fn_c_try_link "$LINENO"; then :
  21269. ac_cv_lib_rt_clock_gettime=yes
  21270. else
  21271. ac_cv_lib_rt_clock_gettime=no
  21272. fi
  21273. rm -f core conftest.err conftest.$ac_objext \
  21274. conftest$ac_exeext conftest.$ac_ext
  21275. LIBS=$ac_check_lib_save_LIBS
  21276. fi
  21277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21278. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21279. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21280. have_clock_gettime=yes
  21281. fi
  21282. if test x$have_clock_gettime = xyes; then
  21283. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21284. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21285. else
  21286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21287. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21288. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21289. $as_echo_n "(cached) " >&6
  21290. else
  21291. ac_check_lib_save_LIBS=$LIBS
  21292. LIBS="-lc $LIBS"
  21293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21294. /* end confdefs.h. */
  21295. /* Override any GCC internal prototype to avoid an error.
  21296. Use char because int might match the return type of a GCC
  21297. builtin and then its argument prototype would still apply. */
  21298. #ifdef __cplusplus
  21299. extern "C"
  21300. #endif
  21301. char clock_gettime ();
  21302. int
  21303. main ()
  21304. {
  21305. return clock_gettime ();
  21306. ;
  21307. return 0;
  21308. }
  21309. _ACEOF
  21310. if ac_fn_c_try_link "$LINENO"; then :
  21311. ac_cv_lib_c_clock_gettime=yes
  21312. else
  21313. ac_cv_lib_c_clock_gettime=no
  21314. fi
  21315. rm -f core conftest.err conftest.$ac_objext \
  21316. conftest$ac_exeext conftest.$ac_ext
  21317. LIBS=$ac_check_lib_save_LIBS
  21318. fi
  21319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21320. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21321. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21322. have_clock_gettime=yes
  21323. fi
  21324. if test x$have_clock_gettime = xyes; then
  21325. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21326. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21327. fi
  21328. fi
  21329. fi
  21330. }
  21331. CheckLinuxVersion()
  21332. {
  21333. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21334. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21335. have_linux_version_h=yes
  21336. fi
  21337. if test x$have_linux_version_h = xyes; then
  21338. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21339. fi
  21340. }
  21341. CheckRPATH()
  21342. {
  21343. # Check whether --enable-rpath was given.
  21344. if test "${enable_rpath+set}" = set; then :
  21345. enableval=$enable_rpath;
  21346. else
  21347. enable_rpath=yes
  21348. fi
  21349. }
  21350. CheckEventSignals()
  21351. {
  21352. # Check whether --enable-backgrounding-signal was given.
  21353. if test "${enable_backgrounding_signal+set}" = set; then :
  21354. enableval=$enable_backgrounding_signal;
  21355. else
  21356. enable_backgrounding_signal=no
  21357. fi
  21358. if test x$enable_backgrounding_signal != xno; then
  21359. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21360. fi
  21361. # Check whether --enable-foregrounding-signal was given.
  21362. if test "${enable_foregrounding_signal+set}" = set; then :
  21363. enableval=$enable_foregrounding_signal;
  21364. else
  21365. enable_foregrounding_signal=no
  21366. fi
  21367. if test x$enable_foregrounding_signal != xno; then
  21368. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21369. fi
  21370. }
  21371. CheckVirtualJoystick()
  21372. {
  21373. # Check whether --enable-joystick-virtual was given.
  21374. if test "${enable_joystick_virtual+set}" = set; then :
  21375. enableval=$enable_joystick_virtual;
  21376. else
  21377. enable_joystick_virtual=yes
  21378. fi
  21379. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21380. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21381. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21382. have_joystick_virtual=yes
  21383. fi
  21384. }
  21385. CheckWarnAll
  21386. CheckNoStrictAliasing
  21387. CheckEventSignals
  21388. have_locale=no
  21389. case "$host" in
  21390. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21391. case "$host" in
  21392. *-*-android*)
  21393. # Android
  21394. ARCH=android
  21395. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21396. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21397. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21398. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21399. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21400. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21401. if test x$enable_video = xyes; then
  21402. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21403. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21404. SUMMARY_video="${SUMMARY_video} android"
  21405. fi
  21406. ;;
  21407. *-*-linux*) ARCH=linux ;;
  21408. *-*-uclinux*) ARCH=linux ;;
  21409. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21410. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21411. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21412. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21413. *-*-bsdi*) ARCH=bsdi ;;
  21414. *-*-freebsd*) ARCH=freebsd ;;
  21415. *-*-dragonfly*) ARCH=freebsd ;;
  21416. *-*-netbsd*) ARCH=netbsd ;;
  21417. *-*-openbsd*) ARCH=openbsd ;;
  21418. *-*-sysv5*) ARCH=sysv5 ;;
  21419. *-*-solaris*) ARCH=solaris ;;
  21420. *-*-hpux*) ARCH=hpux ;;
  21421. *-*-aix*) ARCH=aix ;;
  21422. *-*-minix*) ARCH=minix ;;
  21423. *-*-nto*) ARCH=nto
  21424. CheckQNXVideo
  21425. ;;
  21426. esac
  21427. CheckVisibilityHidden
  21428. CheckDeclarationAfterStatement
  21429. CheckDummyVideo
  21430. CheckDiskAudio
  21431. CheckDummyAudio
  21432. CheckDLOPEN
  21433. CheckARM
  21434. CheckNEON
  21435. CheckOSS
  21436. CheckALSA
  21437. CheckPipewire
  21438. CheckPulseAudio
  21439. CheckJACK
  21440. CheckARTSC
  21441. CheckESD
  21442. CheckNAS
  21443. CheckSNDIO
  21444. CheckFusionSound
  21445. CheckLibSampleRate
  21446. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21447. CheckRPI
  21448. CheckX11
  21449. CheckDirectFB
  21450. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  21451. CheckEGL
  21452. CheckKMSDRM
  21453. CheckGLX
  21454. CheckOpenGL
  21455. CheckOpenGLES
  21456. CheckVulkan
  21457. CheckWayland
  21458. CheckInputEvents
  21459. CheckLibUDev
  21460. CheckDBus
  21461. CheckIME
  21462. CheckInotify
  21463. CheckIBus
  21464. CheckFcitx
  21465. case $ARCH in
  21466. linux)
  21467. CheckInputKD
  21468. ;;
  21469. freebsd)
  21470. CheckInputKBIO
  21471. ;;
  21472. openbsd|netbsd)
  21473. CheckInputWSCONS
  21474. ;;
  21475. esac
  21476. CheckUSBHID
  21477. CheckHIDAPI
  21478. CheckPTHREAD
  21479. CheckClockGettime
  21480. CheckLinuxVersion
  21481. CheckRPATH
  21482. CheckVivanteVideo
  21483. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21484. have_misc=yes
  21485. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21486. have_locale=yes
  21487. # Set up files for the audio library
  21488. if test x$enable_audio = xyes; then
  21489. case $ARCH in
  21490. sysv5|solaris|hpux)
  21491. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21492. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21493. SUMMARY_audio="${SUMMARY_audio} sun"
  21494. have_audio=yes
  21495. ;;
  21496. netbsd) # Don't use this on OpenBSD, it's busted.
  21497. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21498. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21499. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21500. have_audio=yes
  21501. ;;
  21502. aix)
  21503. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21504. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21505. SUMMARY_audio="${SUMMARY_audio} paudio"
  21506. have_audio=yes
  21507. ;;
  21508. android)
  21509. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21510. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21511. SUMMARY_audio="${SUMMARY_audio} android"
  21512. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  21513. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  21514. SUMMARY_audio="${SUMMARY_audio} openslES"
  21515. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  21516. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  21517. SUMMARY_audio="${SUMMARY_audio} aaudio"
  21518. have_audio=yes
  21519. ;;
  21520. nto)
  21521. CheckQNXAudio
  21522. ;;
  21523. esac
  21524. fi
  21525. # Set up files for the joystick library
  21526. if test x$enable_joystick = xyes; then
  21527. case $ARCH in
  21528. linux)
  21529. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21530. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21531. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21532. have_joystick=yes
  21533. ;;
  21534. freebsd)
  21535. if test x$use_input_events = xyes; then
  21536. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21537. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21538. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21539. have_joystick=yes
  21540. fi
  21541. ;;
  21542. android)
  21543. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21544. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21545. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21546. have_joystick=yes
  21547. ;;
  21548. esac
  21549. fi
  21550. # Set up files for the haptic library
  21551. if test x$enable_haptic = xyes; then
  21552. case $ARCH in
  21553. linux|freebsd)
  21554. if test x$use_input_events = xyes; then
  21555. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21556. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21557. have_haptic=yes
  21558. fi
  21559. ;;
  21560. android)
  21561. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21562. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21563. have_haptic=yes
  21564. ;;
  21565. esac
  21566. fi
  21567. # Set up files for the sensor library
  21568. if test x$enable_sensor = xyes; then
  21569. case $ARCH in
  21570. android)
  21571. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21572. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21573. have_sensor=yes
  21574. ;;
  21575. esac
  21576. fi
  21577. # Set up files for the power library
  21578. if test x$enable_power = xyes; then
  21579. case $ARCH in
  21580. linux)
  21581. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21582. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21583. have_power=yes
  21584. ;;
  21585. android)
  21586. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21587. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21588. have_power=yes
  21589. ;;
  21590. esac
  21591. fi
  21592. # Set up files for the filesystem library
  21593. if test x$enable_filesystem = xyes; then
  21594. case $ARCH in
  21595. android)
  21596. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21597. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21598. have_filesystem=yes
  21599. ;;
  21600. *)
  21601. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21602. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21603. have_filesystem=yes
  21604. ;;
  21605. esac
  21606. fi
  21607. # Set up files for the timer library
  21608. if test x$enable_timers = xyes; then
  21609. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21610. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21611. have_timers=yes
  21612. fi
  21613. # Set up files for udev hotplugging support
  21614. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21615. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21616. fi
  21617. # Set up files for evdev input
  21618. if test x$use_input_events = xyes; then
  21619. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21620. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21621. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21622. fi
  21623. # Set up files for wscons input
  21624. if test x$use_input_wscons = xyes; then
  21625. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  21626. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  21627. fi
  21628. # Set up other core UNIX files
  21629. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21630. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21631. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21632. ;;
  21633. *-*-cygwin* | *-*-mingw*)
  21634. ARCH=win32
  21635. if test "$build" != "$host"; then # cross-compiling
  21636. # Default cross-compile location
  21637. ac_default_prefix=/usr/local/cross-tools/$host
  21638. else
  21639. # Look for the location of the tools and install there
  21640. if test "$BUILD_PREFIX" != ""; then
  21641. ac_default_prefix=$BUILD_PREFIX
  21642. fi
  21643. fi
  21644. if test x$enable_loadso = xyes; then
  21645. have_loadso=yes
  21646. fi
  21647. CheckDeclarationAfterStatement
  21648. CheckDummyVideo
  21649. CheckDiskAudio
  21650. CheckDummyAudio
  21651. CheckWINDOWS
  21652. CheckWINDOWSGL
  21653. CheckWINDOWSGLES
  21654. CheckVulkan
  21655. CheckDIRECTX
  21656. CheckHIDAPI
  21657. # Set up the core platform files
  21658. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21659. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21660. have_misc=yes
  21661. # Use the Windows locale APIs.
  21662. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21663. have_locale=yes
  21664. # Set up files for the video library
  21665. if test x$enable_video = xyes; then
  21666. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21667. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21668. have_video=yes
  21669. # Check whether --enable-render-d3d was given.
  21670. if test "${enable_render_d3d+set}" = set; then :
  21671. enableval=$enable_render_d3d;
  21672. else
  21673. enable_render_d3d=yes
  21674. fi
  21675. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21676. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21677. SUMMARY_video="${SUMMARY_video} d3d9"
  21678. fi
  21679. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21680. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21681. SUMMARY_video="${SUMMARY_video} d3d11"
  21682. fi
  21683. fi
  21684. # Set up files for the audio library
  21685. if test x$enable_audio = xyes; then
  21686. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21687. SUMMARY_audio="${SUMMARY_audio} winmm"
  21688. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21689. if test x$have_dsound = xyes; then
  21690. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21691. SUMMARY_audio="${SUMMARY_audio} directsound"
  21692. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21693. fi
  21694. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21695. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21696. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21697. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21698. fi
  21699. have_audio=yes
  21700. fi
  21701. # Set up files for the joystick library
  21702. if test x$enable_joystick = xyes; then
  21703. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  21704. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  21705. if test x$have_xinput = xyes; then
  21706. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21707. fi
  21708. if test x$have_wgi = xyes; then
  21709. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  21710. fi
  21711. if test x$have_dinput = xyes; then
  21712. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21713. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21714. fi
  21715. else
  21716. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21717. fi
  21718. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21719. have_joystick=yes
  21720. fi
  21721. if test x$enable_haptic = xyes; then
  21722. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21723. if test x$have_xinput = xyes; then
  21724. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21725. fi
  21726. if test x$have_dinput = xyes; then
  21727. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21728. fi
  21729. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21730. have_haptic=yes
  21731. fi
  21732. fi
  21733. # Set up files for the sensor library
  21734. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21735. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21736. have_winsensors=yes
  21737. else
  21738. have_winsensors=no
  21739. fi
  21740. if test x$have_winsensors = xyes; then
  21741. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21742. fi
  21743. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21744. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21745. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21746. have_sensor=yes
  21747. fi
  21748. # Set up files for the power library
  21749. if test x$enable_power = xyes; then
  21750. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21751. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21752. have_power=yes
  21753. fi
  21754. # Set up files for the filesystem library
  21755. if test x$enable_filesystem = xyes; then
  21756. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21757. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21758. have_filesystem=yes
  21759. fi
  21760. # Set up files for the thread library
  21761. if test x$enable_threads = xyes; then
  21762. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21763. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21764. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21765. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21766. have_threads=yes
  21767. fi
  21768. # Set up files for the timer library
  21769. if test x$enable_timers = xyes; then
  21770. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21771. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21772. have_timers=yes
  21773. fi
  21774. # Set up files for the shared object loading library
  21775. if test x$enable_loadso = xyes; then
  21776. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21777. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21778. fi
  21779. # Set up the system libraries we need
  21780. if test -f /lib/w32api/libuuid.a; then
  21781. LIBUUID=/lib/w32api/libuuid.a
  21782. else
  21783. LIBUUID=-luuid
  21784. fi
  21785. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  21786. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  21787. # The Windows platform requires special setup
  21788. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21789. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21790. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21791. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21792. # Check to see if this is a mingw or cygwin build
  21793. have_mingw32=
  21794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21795. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21796. if ${ac_cv_lib_mingw32_main+:} false; then :
  21797. $as_echo_n "(cached) " >&6
  21798. else
  21799. ac_check_lib_save_LIBS=$LIBS
  21800. LIBS="-lmingw32 $LIBS"
  21801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21802. /* end confdefs.h. */
  21803. int
  21804. main ()
  21805. {
  21806. return main ();
  21807. ;
  21808. return 0;
  21809. }
  21810. _ACEOF
  21811. if ac_fn_c_try_link "$LINENO"; then :
  21812. ac_cv_lib_mingw32_main=yes
  21813. else
  21814. ac_cv_lib_mingw32_main=no
  21815. fi
  21816. rm -f core conftest.err conftest.$ac_objext \
  21817. conftest$ac_exeext conftest.$ac_ext
  21818. LIBS=$ac_check_lib_save_LIBS
  21819. fi
  21820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21821. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21822. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21823. have_mingw32=yes
  21824. fi
  21825. if test x$have_mingw32 = xyes; then
  21826. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21827. else
  21828. SDL_LIBS="-lcygwin $SDL_LIBS"
  21829. fi
  21830. ;;
  21831. *-*-beos*)
  21832. as_fn_error $? "
  21833. *** BeOS support has been removed as of SDL 2.0.2.
  21834. " "$LINENO" 5
  21835. ;;
  21836. *-*-haiku*)
  21837. ARCH=haiku
  21838. ac_default_prefix=/boot/system
  21839. CheckDummyVideo
  21840. CheckDiskAudio
  21841. CheckDummyAudio
  21842. CheckDLOPEN
  21843. CheckHaikuVideo
  21844. CheckHaikuGL
  21845. CheckPTHREAD
  21846. # Set up files for the audio library
  21847. if test x$enable_audio = xyes; then
  21848. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21849. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21850. SUMMARY_audio="${SUMMARY_audio} haiku"
  21851. have_audio=yes
  21852. fi
  21853. # Set up files for the joystick library
  21854. if test x$enable_joystick = xyes; then
  21855. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21856. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21857. have_joystick=yes
  21858. fi
  21859. # Set up files for the timer library
  21860. if test x$enable_timers = xyes; then
  21861. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21862. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21863. have_timers=yes
  21864. fi
  21865. # Set up files for the system power library
  21866. if test x$enable_power = xyes; then
  21867. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21868. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21869. have_power=yes
  21870. fi
  21871. # Set up files for the system filesystem library
  21872. if test x$enable_filesystem = xyes; then
  21873. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21874. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21875. have_filesystem=yes
  21876. fi
  21877. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21878. have_misc=yes
  21879. # Set up files for the locale library
  21880. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21881. have_locale=yes
  21882. # The Haiku platform requires special setup.
  21883. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21884. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21885. ;;
  21886. *-ios-*)
  21887. ARCH=ios
  21888. CheckVisibilityHidden
  21889. CheckDeclarationAfterStatement
  21890. CheckDummyVideo
  21891. CheckDiskAudio
  21892. CheckDummyAudio
  21893. CheckDLOPEN
  21894. CheckMETAL
  21895. CheckVulkan
  21896. CheckPTHREAD
  21897. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21898. have_misc=yes
  21899. # Set up files for the locale library
  21900. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21901. have_locale=yes
  21902. # Set up files for the audio library
  21903. if test x$enable_audio = xyes; then
  21904. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21905. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21906. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21907. have_audio=yes
  21908. fi
  21909. # Set up files for the joystick library
  21910. if test x$enable_joystick = xyes; then
  21911. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21912. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21913. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21914. have_joystick=yes
  21915. else
  21916. # Need this code for accelerometer as joystick support
  21917. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21918. fi
  21919. # Set up files for the haptic library
  21920. #if test x$enable_haptic = xyes; then
  21921. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21922. # have_haptic=yes
  21923. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21924. #fi
  21925. # Set up files for the sensor library
  21926. if test x$enable_sensor = xyes; then
  21927. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21928. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21929. have_sensor=yes
  21930. fi
  21931. # Set up files for the power library
  21932. if test x$enable_power = xyes; then
  21933. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21934. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21935. have_power=yes
  21936. fi
  21937. # Set up files for the filesystem library
  21938. if test x$enable_filesystem = xyes; then
  21939. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21940. have_filesystem=yes
  21941. fi
  21942. # Set up additional files for the file library
  21943. if test x$enable_file = xyes; then
  21944. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21945. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21946. fi
  21947. # Set up files for the timer library
  21948. if test x$enable_timers = xyes; then
  21949. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21950. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21951. have_timers=yes
  21952. fi
  21953. # Set up other core UNIX files
  21954. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21955. # The iOS platform requires special setup.
  21956. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21957. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21958. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21959. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21960. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21961. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21962. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21963. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21965. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21966. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21967. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21968. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21969. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21971. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21972. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21973. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21974. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21975. fi
  21976. ;;
  21977. *-*-darwin* )
  21978. # This could be either full "Mac OS X", or plain "Darwin" which is
  21979. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21980. # Next line is broken, and a few files below require Mac OS X (full)
  21981. ARCH=macosx
  21982. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21983. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21984. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21985. CheckVisibilityHidden
  21986. CheckDeclarationAfterStatement
  21987. CheckDummyVideo
  21988. CheckDiskAudio
  21989. CheckDummyAudio
  21990. CheckDLOPEN
  21991. CheckCOCOA
  21992. CheckMETAL
  21993. CheckX11
  21994. CheckMacGL
  21995. CheckMacGLES
  21996. CheckGLX
  21997. CheckOpenGL
  21998. CheckVulkan
  21999. CheckPTHREAD
  22000. CheckHIDAPI
  22001. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22002. have_misc=yes
  22003. # Set up files for the locale library
  22004. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22005. have_locale=yes
  22006. # Set up files for the audio library
  22007. if test x$enable_audio = xyes; then
  22008. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22009. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22010. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22011. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22012. have_audio=yes
  22013. fi
  22014. # Set up files for the joystick library
  22015. if test x$enable_joystick = xyes; then
  22016. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22017. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22018. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22019. CheckJoystickMFI
  22020. have_joystick=yes
  22021. fi
  22022. # Set up files for the haptic library
  22023. if test x$enable_haptic = xyes; then
  22024. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22025. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22026. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22027. have_haptic=yes
  22028. fi
  22029. # Set up files for the power library
  22030. if test x$enable_power = xyes; then
  22031. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22032. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22033. have_power=yes
  22034. fi
  22035. # Set up files for the filesystem library
  22036. if test x$enable_filesystem = xyes; then
  22037. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22038. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22039. have_filesystem=yes
  22040. fi
  22041. # Set up files for the timer library
  22042. if test x$enable_timers = xyes; then
  22043. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22044. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22045. have_timers=yes
  22046. fi
  22047. # Set up additional files for the file library
  22048. if test x$enable_file = xyes; then
  22049. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22050. fi
  22051. # Set up other core UNIX files
  22052. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22053. # The Mac OS X platform requires special setup.
  22054. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22055. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22056. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22057. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22058. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22059. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22060. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22061. fi
  22062. ;;
  22063. *-nacl|*-pnacl)
  22064. ARCH=nacl
  22065. CheckNativeClient
  22066. CheckDummyAudio
  22067. CheckDummyVideo
  22068. CheckInputEvents
  22069. CheckPTHREAD
  22070. # Set up files for the timer library
  22071. if test x$enable_timers = xyes; then
  22072. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22073. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22074. have_timers=yes
  22075. fi
  22076. if test x$enable_filesystem = xyes; then
  22077. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22078. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22079. have_filesystem=yes
  22080. fi
  22081. ;;
  22082. *-*-emscripten* )
  22083. if test x$enable_video = xyes; then
  22084. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22085. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22086. have_video=yes
  22087. SUMMARY_video="${SUMMARY_video} emscripten"
  22088. fi
  22089. if test x$enable_audio = xyes; then
  22090. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22091. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22092. have_audio=yes
  22093. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22094. fi
  22095. CheckVisibilityHidden
  22096. CheckDeclarationAfterStatement
  22097. CheckDummyVideo
  22098. CheckDiskAudio
  22099. CheckDummyAudio
  22100. CheckPTHREAD
  22101. CheckDLOPEN
  22102. CheckClockGettime
  22103. CheckEmscriptenGLES
  22104. # Set up files for the power library
  22105. if test x$enable_power = xyes; then
  22106. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22107. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22108. have_power=yes
  22109. fi
  22110. # Set up files for the power library
  22111. if test x$enable_joystick = xyes; then
  22112. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22113. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22114. have_joystick=yes
  22115. fi
  22116. # Set up files for the filesystem library
  22117. if test x$enable_filesystem = xyes; then
  22118. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22119. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22120. have_filesystem=yes
  22121. fi
  22122. # Set up files for the timer library
  22123. if test x$enable_timers = xyes; then
  22124. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22125. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22126. have_timers=yes
  22127. fi
  22128. # Set up files for the locale library
  22129. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22130. have_locale=yes
  22131. ;;
  22132. *-*-riscos*)
  22133. ARCH=riscos
  22134. CheckVisibilityHidden
  22135. CheckDeclarationAfterStatement
  22136. CheckDummyVideo
  22137. CheckDiskAudio
  22138. CheckDummyAudio
  22139. CheckDLOPEN
  22140. CheckOSS
  22141. CheckPTHREAD
  22142. CheckClockGettime
  22143. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22144. have_misc=yes
  22145. # Set up files for the video library
  22146. if test x$enable_video = xyes; then
  22147. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22148. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22149. have_video=yes
  22150. SUMMARY_video="${SUMMARY_video} riscos"
  22151. fi
  22152. # Set up files for the filesystem library
  22153. if test x$enable_filesystem = xyes; then
  22154. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22155. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22156. have_filesystem=yes
  22157. fi
  22158. # Set up files for the timer library
  22159. if test x$enable_timers = xyes; then
  22160. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22161. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22162. have_timers=yes
  22163. fi
  22164. ;;
  22165. *)
  22166. as_fn_error $? "
  22167. *** Unsupported host: Please add to configure.ac
  22168. " "$LINENO" 5
  22169. ;;
  22170. esac
  22171. CheckVirtualJoystick
  22172. # Check whether to install sdl2-config
  22173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22174. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22175. # Check whether --enable-sdl2-config was given.
  22176. if test "${enable_sdl2_config+set}" = set; then :
  22177. enableval=$enable_sdl2_config; case "${enableval}" in
  22178. yes) enable_sdl2_config="TRUE" ;;
  22179. no) enable_sdl2_config="FALSE" ;;
  22180. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22181. esac
  22182. else
  22183. enable_sdl2_config="TRUE"
  22184. fi
  22185. if test "$enable_sdl2_config" = "TRUE"; then
  22186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22187. $as_echo "yes" >&6; }
  22188. else
  22189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22190. $as_echo "no" >&6; }
  22191. fi
  22192. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22193. # Verify that we have all the platform specific files we need
  22194. if test x$have_misc != xyes; then
  22195. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22196. fi
  22197. if test x$have_locale != xyes; then
  22198. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22199. fi
  22200. if test x$have_joystick != xyes; then
  22201. if test x$enable_joystick = xyes; then
  22202. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22203. fi
  22204. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22205. fi
  22206. if test x$have_haptic != xyes; then
  22207. if test x$enable_haptic = xyes; then
  22208. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22209. fi
  22210. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22211. fi
  22212. if test x$have_sensor != xyes; then
  22213. if test x$enable_sensor = xyes; then
  22214. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  22215. fi
  22216. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  22217. fi
  22218. if test x$have_threads != xyes; then
  22219. if test x$enable_threads = xyes; then
  22220. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  22221. fi
  22222. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  22223. fi
  22224. if test x$have_timers != xyes; then
  22225. if test x$enable_timers = xyes; then
  22226. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  22227. fi
  22228. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  22229. fi
  22230. if test x$have_filesystem != xyes; then
  22231. if test x$enable_filesystem = xyes; then
  22232. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  22233. fi
  22234. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  22235. fi
  22236. if test x$have_loadso != xyes; then
  22237. if test x$enable_loadso = xyes; then
  22238. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  22239. fi
  22240. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  22241. fi
  22242. if test x$SDLMAIN_SOURCES = x; then
  22243. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  22244. fi
  22245. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  22246. if test x$video_wayland = xyes; then
  22247. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  22248. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  22249. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  22250. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  22251. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  22252. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  22253. echo ;\
  22254. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22255. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22256. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  22257. echo ;\
  22258. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22259. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22260. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  22261. echo ;\
  22262. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  22263. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  22264. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  22265. done ;\
  22266. echo ;\
  22267. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  22268. fi
  22269. OBJECTS=`echo $SOURCES`
  22270. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  22271. for EXT in asm cc m c S; do
  22272. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  22273. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  22274. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  22275. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22276. done
  22277. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22278. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  22279. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  22280. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  22281. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  22282. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  22283. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  22284. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  22285. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  22286. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22287. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22288. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22289. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22290. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  22291. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  22292. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22293. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22294. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22295. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22296. # Set runtime shared library paths as needed
  22297. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  22298. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  22299. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  22300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22301. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22302. have_enable_new_dtags=no
  22303. save_LDFLAGS="$LDFLAGS"
  22304. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22306. /* end confdefs.h. */
  22307. int
  22308. main ()
  22309. {
  22310. ;
  22311. return 0;
  22312. }
  22313. _ACEOF
  22314. if ac_fn_c_try_link "$LINENO"; then :
  22315. have_enable_new_dtags=yes
  22316. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22317. fi
  22318. rm -f core conftest.err conftest.$ac_objext \
  22319. conftest$ac_exeext conftest.$ac_ext
  22320. LDFLAGS="$save_LDFLAGS"
  22321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22322. $as_echo "$have_enable_new_dtags" >&6; }
  22323. fi
  22324. if test $ARCH = solaris; then
  22325. SDL_RLD_FLAGS="-R\${libdir}"
  22326. fi
  22327. else
  22328. SDL_RLD_FLAGS=""
  22329. fi
  22330. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22331. if test x$enable_shared = xyes; then
  22332. PKGCONFIG_LIBS_PRIV="
  22333. Libs.private:"
  22334. ENABLE_SHARED_TRUE=
  22335. ENABLE_SHARED_FALSE="#"
  22336. else
  22337. PKGCONFIG_LIBS_PRIV=
  22338. ENABLE_SHARED_TRUE="#"
  22339. ENABLE_SHARED_FALSE=
  22340. fi
  22341. if test x$enable_static = xyes; then
  22342. ENABLE_STATIC_TRUE=
  22343. ENABLE_STATIC_FALSE="#"
  22344. else
  22345. ENABLE_STATIC_TRUE="#"
  22346. ENABLE_STATIC_FALSE=
  22347. fi
  22348. cat >Makefile.rules <<__EOF__
  22349. # Build rules for objects
  22350. -include \$(OBJECTS:.lo=.d)
  22351. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22352. $srcdir/src/SDL.c: update-revision
  22353. $DEPENDS
  22354. $VERSION_DEPENDS
  22355. $SDLMAIN_DEPENDS
  22356. $SDLTEST_DEPENDS
  22357. $WAYLAND_PROTOCOLS_DEPENDS
  22358. __EOF__
  22359. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22360. ac_config_commands="$ac_config_commands sdl2_config"
  22361. SUMMARY="SDL2 Configure Summary:\n"
  22362. if test x$enable_shared = xyes; then
  22363. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22364. fi
  22365. if test x$enable_static = xyes; then
  22366. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22367. fi
  22368. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22369. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22370. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22371. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22372. if test x$have_x = xyes; then
  22373. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22374. fi
  22375. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22376. if test x$have_joystick_virtual = xyes; then
  22377. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22378. else
  22379. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22380. fi
  22381. if test x$have_samplerate_h_hdr = xyes; then
  22382. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22383. else
  22384. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22385. fi
  22386. if test x$have_libudev_h_hdr = xyes; then
  22387. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22388. else
  22389. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22390. fi
  22391. if test x$have_dbus_dbus_h_hdr = xyes; then
  22392. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22393. else
  22394. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22395. fi
  22396. if test x$enable_ime = xyes; then
  22397. SUMMARY="${SUMMARY}Using ime : YES\n"
  22398. else
  22399. SUMMARY="${SUMMARY}Using ime : NO\n"
  22400. fi
  22401. if test x$have_ibus_ibus_h_hdr = xyes; then
  22402. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22403. else
  22404. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22405. fi
  22406. if test x$have_fcitx = xyes; then
  22407. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22408. else
  22409. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22410. fi
  22411. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22412. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22413. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22414. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22415. SUMMARY="${SUMMARY}configure script with:\n"
  22416. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22417. fi
  22418. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22419. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22420. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22421. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22422. SUMMARY="${SUMMARY}configure script with:\n"
  22423. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22424. fi
  22425. ac_config_commands="$ac_config_commands summary"
  22426. cat >confcache <<\_ACEOF
  22427. # This file is a shell script that caches the results of configure
  22428. # tests run on this system so they can be shared between configure
  22429. # scripts and configure runs, see configure's option --config-cache.
  22430. # It is not useful on other systems. If it contains results you don't
  22431. # want to keep, you may remove or edit it.
  22432. #
  22433. # config.status only pays attention to the cache file if you give it
  22434. # the --recheck option to rerun configure.
  22435. #
  22436. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22437. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22438. # following values.
  22439. _ACEOF
  22440. # The following way of writing the cache mishandles newlines in values,
  22441. # but we know of no workaround that is simple, portable, and efficient.
  22442. # So, we kill variables containing newlines.
  22443. # Ultrix sh set writes to stderr and can't be redirected directly,
  22444. # and sets the high bit in the cache file unless we assign to the vars.
  22445. (
  22446. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22447. eval ac_val=\$$ac_var
  22448. case $ac_val in #(
  22449. *${as_nl}*)
  22450. case $ac_var in #(
  22451. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22452. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22453. esac
  22454. case $ac_var in #(
  22455. _ | IFS | as_nl) ;; #(
  22456. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22457. *) { eval $ac_var=; unset $ac_var;} ;;
  22458. esac ;;
  22459. esac
  22460. done
  22461. (set) 2>&1 |
  22462. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22463. *${as_nl}ac_space=\ *)
  22464. # `set' does not quote correctly, so add quotes: double-quote
  22465. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22466. sed -n \
  22467. "s/'/'\\\\''/g;
  22468. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22469. ;; #(
  22470. *)
  22471. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22472. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22473. ;;
  22474. esac |
  22475. sort
  22476. ) |
  22477. sed '
  22478. /^ac_cv_env_/b end
  22479. t clear
  22480. :clear
  22481. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22482. t end
  22483. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22484. :end' >>confcache
  22485. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22486. if test -w "$cache_file"; then
  22487. if test "x$cache_file" != "x/dev/null"; then
  22488. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22489. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22490. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22491. cat confcache >"$cache_file"
  22492. else
  22493. case $cache_file in #(
  22494. */* | ?:*)
  22495. mv -f confcache "$cache_file"$$ &&
  22496. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22497. *)
  22498. mv -f confcache "$cache_file" ;;
  22499. esac
  22500. fi
  22501. fi
  22502. else
  22503. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22504. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22505. fi
  22506. fi
  22507. rm -f confcache
  22508. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22509. # Let make expand exec_prefix.
  22510. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22511. DEFS=-DHAVE_CONFIG_H
  22512. ac_libobjs=
  22513. ac_ltlibobjs=
  22514. U=
  22515. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22516. # 1. Remove the extension, and $U if already installed.
  22517. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22518. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22519. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22520. # will be set to the directory where LIBOBJS objects are built.
  22521. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22522. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22523. done
  22524. LIBOBJS=$ac_libobjs
  22525. LTLIBOBJS=$ac_ltlibobjs
  22526. : "${CONFIG_STATUS=./config.status}"
  22527. ac_write_fail=0
  22528. ac_clean_files_save=$ac_clean_files
  22529. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22530. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22531. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22532. as_write_fail=0
  22533. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22534. #! $SHELL
  22535. # Generated by $as_me.
  22536. # Run this file to recreate the current configuration.
  22537. # Compiler output produced by configure, useful for debugging
  22538. # configure, is in config.log if it exists.
  22539. debug=false
  22540. ac_cs_recheck=false
  22541. ac_cs_silent=false
  22542. SHELL=\${CONFIG_SHELL-$SHELL}
  22543. export SHELL
  22544. _ASEOF
  22545. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22546. ## -------------------- ##
  22547. ## M4sh Initialization. ##
  22548. ## -------------------- ##
  22549. # Be more Bourne compatible
  22550. DUALCASE=1; export DUALCASE # for MKS sh
  22551. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22552. emulate sh
  22553. NULLCMD=:
  22554. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22555. # is contrary to our usage. Disable this feature.
  22556. alias -g '${1+"$@"}'='"$@"'
  22557. setopt NO_GLOB_SUBST
  22558. else
  22559. case `(set -o) 2>/dev/null` in #(
  22560. *posix*) :
  22561. set -o posix ;; #(
  22562. *) :
  22563. ;;
  22564. esac
  22565. fi
  22566. as_nl='
  22567. '
  22568. export as_nl
  22569. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22570. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22571. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22572. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22573. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22574. # but without wasting forks for bash or zsh.
  22575. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22576. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22577. as_echo='print -r --'
  22578. as_echo_n='print -rn --'
  22579. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22580. as_echo='printf %s\n'
  22581. as_echo_n='printf %s'
  22582. else
  22583. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22584. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22585. as_echo_n='/usr/ucb/echo -n'
  22586. else
  22587. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22588. as_echo_n_body='eval
  22589. arg=$1;
  22590. case $arg in #(
  22591. *"$as_nl"*)
  22592. expr "X$arg" : "X\\(.*\\)$as_nl";
  22593. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22594. esac;
  22595. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22596. '
  22597. export as_echo_n_body
  22598. as_echo_n='sh -c $as_echo_n_body as_echo'
  22599. fi
  22600. export as_echo_body
  22601. as_echo='sh -c $as_echo_body as_echo'
  22602. fi
  22603. # The user is always right.
  22604. if test "${PATH_SEPARATOR+set}" != set; then
  22605. PATH_SEPARATOR=:
  22606. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22607. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22608. PATH_SEPARATOR=';'
  22609. }
  22610. fi
  22611. # IFS
  22612. # We need space, tab and new line, in precisely that order. Quoting is
  22613. # there to prevent editors from complaining about space-tab.
  22614. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22615. # splitting by setting IFS to empty value.)
  22616. IFS=" "" $as_nl"
  22617. # Find who we are. Look in the path if we contain no directory separator.
  22618. as_myself=
  22619. case $0 in #((
  22620. *[\\/]* ) as_myself=$0 ;;
  22621. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22622. for as_dir in $PATH
  22623. do
  22624. IFS=$as_save_IFS
  22625. test -z "$as_dir" && as_dir=.
  22626. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22627. done
  22628. IFS=$as_save_IFS
  22629. ;;
  22630. esac
  22631. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22632. # in which case we are not to be found in the path.
  22633. if test "x$as_myself" = x; then
  22634. as_myself=$0
  22635. fi
  22636. if test ! -f "$as_myself"; then
  22637. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22638. exit 1
  22639. fi
  22640. # Unset variables that we do not need and which cause bugs (e.g. in
  22641. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22642. # suppresses any "Segmentation fault" message there. '((' could
  22643. # trigger a bug in pdksh 5.2.14.
  22644. for as_var in BASH_ENV ENV MAIL MAILPATH
  22645. do eval test x\${$as_var+set} = xset \
  22646. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22647. done
  22648. PS1='$ '
  22649. PS2='> '
  22650. PS4='+ '
  22651. # NLS nuisances.
  22652. LC_ALL=C
  22653. export LC_ALL
  22654. LANGUAGE=C
  22655. export LANGUAGE
  22656. # CDPATH.
  22657. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22658. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22659. # ----------------------------------------
  22660. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22661. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22662. # script with STATUS, using 1 if that was 0.
  22663. as_fn_error ()
  22664. {
  22665. as_status=$1; test $as_status -eq 0 && as_status=1
  22666. if test "$4"; then
  22667. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22668. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22669. fi
  22670. $as_echo "$as_me: error: $2" >&2
  22671. as_fn_exit $as_status
  22672. } # as_fn_error
  22673. # as_fn_set_status STATUS
  22674. # -----------------------
  22675. # Set $? to STATUS, without forking.
  22676. as_fn_set_status ()
  22677. {
  22678. return $1
  22679. } # as_fn_set_status
  22680. # as_fn_exit STATUS
  22681. # -----------------
  22682. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22683. as_fn_exit ()
  22684. {
  22685. set +e
  22686. as_fn_set_status $1
  22687. exit $1
  22688. } # as_fn_exit
  22689. # as_fn_unset VAR
  22690. # ---------------
  22691. # Portably unset VAR.
  22692. as_fn_unset ()
  22693. {
  22694. { eval $1=; unset $1;}
  22695. }
  22696. as_unset=as_fn_unset
  22697. # as_fn_append VAR VALUE
  22698. # ----------------------
  22699. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22700. # advantage of any shell optimizations that allow amortized linear growth over
  22701. # repeated appends, instead of the typical quadratic growth present in naive
  22702. # implementations.
  22703. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22704. eval 'as_fn_append ()
  22705. {
  22706. eval $1+=\$2
  22707. }'
  22708. else
  22709. as_fn_append ()
  22710. {
  22711. eval $1=\$$1\$2
  22712. }
  22713. fi # as_fn_append
  22714. # as_fn_arith ARG...
  22715. # ------------------
  22716. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22717. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22718. # must be portable across $(()) and expr.
  22719. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22720. eval 'as_fn_arith ()
  22721. {
  22722. as_val=$(( $* ))
  22723. }'
  22724. else
  22725. as_fn_arith ()
  22726. {
  22727. as_val=`expr "$@" || test $? -eq 1`
  22728. }
  22729. fi # as_fn_arith
  22730. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22731. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22732. as_expr=expr
  22733. else
  22734. as_expr=false
  22735. fi
  22736. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22737. as_basename=basename
  22738. else
  22739. as_basename=false
  22740. fi
  22741. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22742. as_dirname=dirname
  22743. else
  22744. as_dirname=false
  22745. fi
  22746. as_me=`$as_basename -- "$0" ||
  22747. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22748. X"$0" : 'X\(//\)$' \| \
  22749. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22750. $as_echo X/"$0" |
  22751. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22752. s//\1/
  22753. q
  22754. }
  22755. /^X\/\(\/\/\)$/{
  22756. s//\1/
  22757. q
  22758. }
  22759. /^X\/\(\/\).*/{
  22760. s//\1/
  22761. q
  22762. }
  22763. s/.*/./; q'`
  22764. # Avoid depending upon Character Ranges.
  22765. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22766. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22767. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22768. as_cr_digits='0123456789'
  22769. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22770. ECHO_C= ECHO_N= ECHO_T=
  22771. case `echo -n x` in #(((((
  22772. -n*)
  22773. case `echo 'xy\c'` in
  22774. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22775. xy) ECHO_C='\c';;
  22776. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22777. ECHO_T=' ';;
  22778. esac;;
  22779. *)
  22780. ECHO_N='-n';;
  22781. esac
  22782. rm -f conf$$ conf$$.exe conf$$.file
  22783. if test -d conf$$.dir; then
  22784. rm -f conf$$.dir/conf$$.file
  22785. else
  22786. rm -f conf$$.dir
  22787. mkdir conf$$.dir 2>/dev/null
  22788. fi
  22789. if (echo >conf$$.file) 2>/dev/null; then
  22790. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22791. as_ln_s='ln -s'
  22792. # ... but there are two gotchas:
  22793. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22794. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22795. # In both cases, we have to default to `cp -pR'.
  22796. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22797. as_ln_s='cp -pR'
  22798. elif ln conf$$.file conf$$ 2>/dev/null; then
  22799. as_ln_s=ln
  22800. else
  22801. as_ln_s='cp -pR'
  22802. fi
  22803. else
  22804. as_ln_s='cp -pR'
  22805. fi
  22806. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22807. rmdir conf$$.dir 2>/dev/null
  22808. # as_fn_mkdir_p
  22809. # -------------
  22810. # Create "$as_dir" as a directory, including parents if necessary.
  22811. as_fn_mkdir_p ()
  22812. {
  22813. case $as_dir in #(
  22814. -*) as_dir=./$as_dir;;
  22815. esac
  22816. test -d "$as_dir" || eval $as_mkdir_p || {
  22817. as_dirs=
  22818. while :; do
  22819. case $as_dir in #(
  22820. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22821. *) as_qdir=$as_dir;;
  22822. esac
  22823. as_dirs="'$as_qdir' $as_dirs"
  22824. as_dir=`$as_dirname -- "$as_dir" ||
  22825. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22826. X"$as_dir" : 'X\(//\)[^/]' \| \
  22827. X"$as_dir" : 'X\(//\)$' \| \
  22828. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22829. $as_echo X"$as_dir" |
  22830. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22831. s//\1/
  22832. q
  22833. }
  22834. /^X\(\/\/\)[^/].*/{
  22835. s//\1/
  22836. q
  22837. }
  22838. /^X\(\/\/\)$/{
  22839. s//\1/
  22840. q
  22841. }
  22842. /^X\(\/\).*/{
  22843. s//\1/
  22844. q
  22845. }
  22846. s/.*/./; q'`
  22847. test -d "$as_dir" && break
  22848. done
  22849. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22850. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22851. } # as_fn_mkdir_p
  22852. if mkdir -p . 2>/dev/null; then
  22853. as_mkdir_p='mkdir -p "$as_dir"'
  22854. else
  22855. test -d ./-p && rmdir ./-p
  22856. as_mkdir_p=false
  22857. fi
  22858. # as_fn_executable_p FILE
  22859. # -----------------------
  22860. # Test if FILE is an executable regular file.
  22861. as_fn_executable_p ()
  22862. {
  22863. test -f "$1" && test -x "$1"
  22864. } # as_fn_executable_p
  22865. as_test_x='test -x'
  22866. as_executable_p=as_fn_executable_p
  22867. # Sed expression to map a string onto a valid CPP name.
  22868. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22869. # Sed expression to map a string onto a valid variable name.
  22870. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22871. exec 6>&1
  22872. ## ----------------------------------- ##
  22873. ## Main body of $CONFIG_STATUS script. ##
  22874. ## ----------------------------------- ##
  22875. _ASEOF
  22876. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22877. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22878. # Save the log message, to keep $0 and so on meaningful, and to
  22879. # report actual input values of CONFIG_FILES etc. instead of their
  22880. # values after options handling.
  22881. ac_log="
  22882. This file was extended by $as_me, which was
  22883. generated by GNU Autoconf 2.69. Invocation command line was
  22884. CONFIG_FILES = $CONFIG_FILES
  22885. CONFIG_HEADERS = $CONFIG_HEADERS
  22886. CONFIG_LINKS = $CONFIG_LINKS
  22887. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22888. $ $0 $@
  22889. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22890. "
  22891. _ACEOF
  22892. case $ac_config_files in *"
  22893. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22894. esac
  22895. case $ac_config_headers in *"
  22896. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22897. esac
  22898. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22899. # Files that config.status was made for.
  22900. config_files="$ac_config_files"
  22901. config_headers="$ac_config_headers"
  22902. config_commands="$ac_config_commands"
  22903. _ACEOF
  22904. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22905. ac_cs_usage="\
  22906. \`$as_me' instantiates files and other configuration actions
  22907. from templates according to the current configuration. Unless the files
  22908. and actions are specified as TAGs, all are instantiated by default.
  22909. Usage: $0 [OPTION]... [TAG]...
  22910. -h, --help print this help, then exit
  22911. -V, --version print version number and configuration settings, then exit
  22912. --config print configuration, then exit
  22913. -q, --quiet, --silent
  22914. do not print progress messages
  22915. -d, --debug don't remove temporary files
  22916. --recheck update $as_me by reconfiguring in the same conditions
  22917. --file=FILE[:TEMPLATE]
  22918. instantiate the configuration file FILE
  22919. --header=FILE[:TEMPLATE]
  22920. instantiate the configuration header FILE
  22921. Configuration files:
  22922. $config_files
  22923. Configuration headers:
  22924. $config_headers
  22925. Configuration commands:
  22926. $config_commands
  22927. Report bugs to the package provider."
  22928. _ACEOF
  22929. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22930. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22931. ac_cs_version="\\
  22932. config.status
  22933. configured by $0, generated by GNU Autoconf 2.69,
  22934. with options \\"\$ac_cs_config\\"
  22935. Copyright (C) 2012 Free Software Foundation, Inc.
  22936. This config.status script is free software; the Free Software Foundation
  22937. gives unlimited permission to copy, distribute and modify it."
  22938. ac_pwd='$ac_pwd'
  22939. srcdir='$srcdir'
  22940. INSTALL='$INSTALL'
  22941. AWK='$AWK'
  22942. test -n "\$AWK" || AWK=awk
  22943. _ACEOF
  22944. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22945. # The default lists apply if the user does not specify any file.
  22946. ac_need_defaults=:
  22947. while test $# != 0
  22948. do
  22949. case $1 in
  22950. --*=?*)
  22951. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22952. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22953. ac_shift=:
  22954. ;;
  22955. --*=)
  22956. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22957. ac_optarg=
  22958. ac_shift=:
  22959. ;;
  22960. *)
  22961. ac_option=$1
  22962. ac_optarg=$2
  22963. ac_shift=shift
  22964. ;;
  22965. esac
  22966. case $ac_option in
  22967. # Handling of the options.
  22968. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22969. ac_cs_recheck=: ;;
  22970. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22971. $as_echo "$ac_cs_version"; exit ;;
  22972. --config | --confi | --conf | --con | --co | --c )
  22973. $as_echo "$ac_cs_config"; exit ;;
  22974. --debug | --debu | --deb | --de | --d | -d )
  22975. debug=: ;;
  22976. --file | --fil | --fi | --f )
  22977. $ac_shift
  22978. case $ac_optarg in
  22979. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22980. '') as_fn_error $? "missing file argument" ;;
  22981. esac
  22982. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22983. ac_need_defaults=false;;
  22984. --header | --heade | --head | --hea )
  22985. $ac_shift
  22986. case $ac_optarg in
  22987. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22988. esac
  22989. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22990. ac_need_defaults=false;;
  22991. --he | --h)
  22992. # Conflict between --help and --header
  22993. as_fn_error $? "ambiguous option: \`$1'
  22994. Try \`$0 --help' for more information.";;
  22995. --help | --hel | -h )
  22996. $as_echo "$ac_cs_usage"; exit ;;
  22997. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22998. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22999. ac_cs_silent=: ;;
  23000. # This is an error.
  23001. -*) as_fn_error $? "unrecognized option: \`$1'
  23002. Try \`$0 --help' for more information." ;;
  23003. *) as_fn_append ac_config_targets " $1"
  23004. ac_need_defaults=false ;;
  23005. esac
  23006. shift
  23007. done
  23008. ac_configure_extra_args=
  23009. if $ac_cs_silent; then
  23010. exec 6>/dev/null
  23011. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23012. fi
  23013. _ACEOF
  23014. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23015. if \$ac_cs_recheck; then
  23016. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23017. shift
  23018. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23019. CONFIG_SHELL='$SHELL'
  23020. export CONFIG_SHELL
  23021. exec "\$@"
  23022. fi
  23023. _ACEOF
  23024. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23025. exec 5>>config.log
  23026. {
  23027. echo
  23028. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23029. ## Running $as_me. ##
  23030. _ASBOX
  23031. $as_echo "$ac_log"
  23032. } >&5
  23033. _ACEOF
  23034. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23035. #
  23036. # INIT-COMMANDS
  23037. #
  23038. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23039. # if CDPATH is set.
  23040. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23041. sed_quote_subst='$sed_quote_subst'
  23042. double_quote_subst='$double_quote_subst'
  23043. delay_variable_subst='$delay_variable_subst'
  23044. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23045. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23046. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23047. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23048. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23049. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23050. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23051. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23052. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23053. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23054. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23055. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23056. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23057. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23058. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23059. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23060. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23061. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23062. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23063. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23064. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23065. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23066. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23067. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23068. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23069. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23070. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23071. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23072. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23073. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23074. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23075. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23076. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23077. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23078. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23079. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23080. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23081. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23082. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23083. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23084. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23085. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23086. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23087. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23088. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23089. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23090. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23091. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23092. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23093. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23094. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23095. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23096. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23097. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23098. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23099. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23100. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23101. 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"`'
  23102. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23103. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23104. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23105. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23106. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23107. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23108. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23109. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23110. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23111. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23112. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23113. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23114. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23115. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23116. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23117. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23118. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23119. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23120. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23121. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23122. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23123. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23124. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23125. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23126. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23127. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23128. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23129. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23130. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23131. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23132. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23133. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23134. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23135. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23136. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23137. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23138. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23139. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23140. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23141. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23142. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23143. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23144. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23145. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23146. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23147. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23148. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23149. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23150. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23151. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23152. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23153. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23154. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23155. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23156. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23157. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23158. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23159. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23160. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23161. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23162. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23163. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23164. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23165. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23166. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23167. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23168. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  23169. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23170. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23171. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23172. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23173. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23174. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23175. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23176. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23177. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23178. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23179. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23180. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23181. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23182. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23183. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23184. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23185. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23186. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23187. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23188. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23189. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23190. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23191. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23192. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23193. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23194. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23195. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23196. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23197. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23198. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23199. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23200. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23201. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23202. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23203. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23204. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23205. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23206. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23207. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23208. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23209. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23210. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23211. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  23212. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23213. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23214. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23215. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23216. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23217. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23218. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23219. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23220. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23221. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23222. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23223. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23224. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23225. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  23226. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23227. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23228. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23229. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23230. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23231. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23232. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23233. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  23234. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23235. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  23236. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23237. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  23238. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23239. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  23240. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23241. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  23242. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23243. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  23244. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23245. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  23246. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23247. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  23248. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23249. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  23250. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23251. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23252. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23253. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23254. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23255. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23256. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23257. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23258. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23259. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23260. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23261. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  23262. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23263. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  23264. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23265. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  23266. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23267. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23268. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23269. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23270. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23271. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  23272. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23273. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  23274. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23275. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  23276. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23277. LTCC='$LTCC'
  23278. LTCFLAGS='$LTCFLAGS'
  23279. compiler='$compiler_DEFAULT'
  23280. # A function that is used when there is no print builtin or printf.
  23281. func_fallback_echo ()
  23282. {
  23283. eval 'cat <<_LTECHO_EOF
  23284. \$1
  23285. _LTECHO_EOF'
  23286. }
  23287. # Quote evaled strings.
  23288. for var in AS \
  23289. DLLTOOL \
  23290. OBJDUMP \
  23291. SHELL \
  23292. ECHO \
  23293. PATH_SEPARATOR \
  23294. SED \
  23295. GREP \
  23296. EGREP \
  23297. FGREP \
  23298. LD \
  23299. NM \
  23300. LN_S \
  23301. lt_SP2NL \
  23302. lt_NL2SP \
  23303. reload_flag \
  23304. deplibs_check_method \
  23305. file_magic_cmd \
  23306. file_magic_glob \
  23307. want_nocaseglob \
  23308. sharedlib_from_linklib_cmd \
  23309. AR \
  23310. AR_FLAGS \
  23311. archiver_list_spec \
  23312. STRIP \
  23313. RANLIB \
  23314. CC \
  23315. CFLAGS \
  23316. compiler \
  23317. lt_cv_sys_global_symbol_pipe \
  23318. lt_cv_sys_global_symbol_to_cdecl \
  23319. lt_cv_sys_global_symbol_to_c_name_address \
  23320. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23321. nm_file_list_spec \
  23322. lt_prog_compiler_no_builtin_flag \
  23323. lt_prog_compiler_pic \
  23324. lt_prog_compiler_wl \
  23325. lt_prog_compiler_static \
  23326. lt_cv_prog_compiler_c_o \
  23327. need_locks \
  23328. MANIFEST_TOOL \
  23329. DSYMUTIL \
  23330. NMEDIT \
  23331. LIPO \
  23332. OTOOL \
  23333. OTOOL64 \
  23334. shrext_cmds \
  23335. export_dynamic_flag_spec \
  23336. whole_archive_flag_spec \
  23337. compiler_needs_object \
  23338. with_gnu_ld \
  23339. allow_undefined_flag \
  23340. no_undefined_flag \
  23341. hardcode_libdir_flag_spec \
  23342. hardcode_libdir_separator \
  23343. exclude_expsyms \
  23344. include_expsyms \
  23345. file_list_spec \
  23346. variables_saved_for_relink \
  23347. libname_spec \
  23348. library_names_spec \
  23349. soname_spec \
  23350. install_override_mode \
  23351. finish_eval \
  23352. old_striplib \
  23353. striplib \
  23354. compiler_lib_search_dirs \
  23355. predep_objects \
  23356. postdep_objects \
  23357. predeps \
  23358. postdeps \
  23359. compiler_lib_search_path \
  23360. LD_RC \
  23361. LD_CXX \
  23362. reload_flag_RC \
  23363. reload_flag_CXX \
  23364. compiler_RC \
  23365. compiler_CXX \
  23366. lt_prog_compiler_no_builtin_flag_RC \
  23367. lt_prog_compiler_no_builtin_flag_CXX \
  23368. lt_prog_compiler_pic_RC \
  23369. lt_prog_compiler_pic_CXX \
  23370. lt_prog_compiler_wl_RC \
  23371. lt_prog_compiler_wl_CXX \
  23372. lt_prog_compiler_static_RC \
  23373. lt_prog_compiler_static_CXX \
  23374. lt_cv_prog_compiler_c_o_RC \
  23375. lt_cv_prog_compiler_c_o_CXX \
  23376. export_dynamic_flag_spec_RC \
  23377. export_dynamic_flag_spec_CXX \
  23378. whole_archive_flag_spec_RC \
  23379. whole_archive_flag_spec_CXX \
  23380. compiler_needs_object_RC \
  23381. compiler_needs_object_CXX \
  23382. with_gnu_ld_RC \
  23383. with_gnu_ld_CXX \
  23384. allow_undefined_flag_RC \
  23385. allow_undefined_flag_CXX \
  23386. no_undefined_flag_RC \
  23387. no_undefined_flag_CXX \
  23388. hardcode_libdir_flag_spec_RC \
  23389. hardcode_libdir_flag_spec_CXX \
  23390. hardcode_libdir_separator_RC \
  23391. hardcode_libdir_separator_CXX \
  23392. exclude_expsyms_RC \
  23393. exclude_expsyms_CXX \
  23394. include_expsyms_RC \
  23395. include_expsyms_CXX \
  23396. file_list_spec_RC \
  23397. file_list_spec_CXX \
  23398. compiler_lib_search_dirs_RC \
  23399. compiler_lib_search_dirs_CXX \
  23400. predep_objects_RC \
  23401. predep_objects_CXX \
  23402. postdep_objects_RC \
  23403. postdep_objects_CXX \
  23404. predeps_RC \
  23405. predeps_CXX \
  23406. postdeps_RC \
  23407. postdeps_CXX \
  23408. compiler_lib_search_path_RC \
  23409. compiler_lib_search_path_CXX; do
  23410. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23411. *[\\\\\\\`\\"\\\$]*)
  23412. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23413. ;;
  23414. *)
  23415. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23416. ;;
  23417. esac
  23418. done
  23419. # Double-quote double-evaled strings.
  23420. for var in reload_cmds \
  23421. old_postinstall_cmds \
  23422. old_postuninstall_cmds \
  23423. old_archive_cmds \
  23424. extract_expsyms_cmds \
  23425. old_archive_from_new_cmds \
  23426. old_archive_from_expsyms_cmds \
  23427. archive_cmds \
  23428. archive_expsym_cmds \
  23429. module_cmds \
  23430. module_expsym_cmds \
  23431. export_symbols_cmds \
  23432. prelink_cmds \
  23433. postlink_cmds \
  23434. postinstall_cmds \
  23435. postuninstall_cmds \
  23436. finish_cmds \
  23437. sys_lib_search_path_spec \
  23438. sys_lib_dlsearch_path_spec \
  23439. reload_cmds_RC \
  23440. reload_cmds_CXX \
  23441. old_archive_cmds_RC \
  23442. old_archive_cmds_CXX \
  23443. old_archive_from_new_cmds_RC \
  23444. old_archive_from_new_cmds_CXX \
  23445. old_archive_from_expsyms_cmds_RC \
  23446. old_archive_from_expsyms_cmds_CXX \
  23447. archive_cmds_RC \
  23448. archive_cmds_CXX \
  23449. archive_expsym_cmds_RC \
  23450. archive_expsym_cmds_CXX \
  23451. module_cmds_RC \
  23452. module_cmds_CXX \
  23453. module_expsym_cmds_RC \
  23454. module_expsym_cmds_CXX \
  23455. export_symbols_cmds_RC \
  23456. export_symbols_cmds_CXX \
  23457. prelink_cmds_RC \
  23458. prelink_cmds_CXX \
  23459. postlink_cmds_RC \
  23460. postlink_cmds_CXX; do
  23461. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23462. *[\\\\\\\`\\"\\\$]*)
  23463. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23464. ;;
  23465. *)
  23466. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23467. ;;
  23468. esac
  23469. done
  23470. ac_aux_dir='$ac_aux_dir'
  23471. xsi_shell='$xsi_shell'
  23472. lt_shell_append='$lt_shell_append'
  23473. # See if we are running on zsh, and set the options which allow our
  23474. # commands through without removal of \ escapes INIT.
  23475. if test -n "\${ZSH_VERSION+set}" ; then
  23476. setopt NO_GLOB_SUBST
  23477. fi
  23478. PACKAGE='$PACKAGE'
  23479. VERSION='$VERSION'
  23480. TIMESTAMP='$TIMESTAMP'
  23481. RM='$RM'
  23482. ofile='$ofile'
  23483. SUMMARY="$SUMMARY"
  23484. _ACEOF
  23485. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23486. # Handling of arguments.
  23487. for ac_config_target in $ac_config_targets
  23488. do
  23489. case $ac_config_target in
  23490. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23491. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23492. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23493. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23494. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23495. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23496. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23497. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23498. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23499. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23500. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23501. esac
  23502. done
  23503. # If the user did not use the arguments to specify the items to instantiate,
  23504. # then the envvar interface is used. Set only those that are not.
  23505. # We use the long form for the default assignment because of an extremely
  23506. # bizarre bug on SunOS 4.1.3.
  23507. if $ac_need_defaults; then
  23508. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23509. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23510. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23511. fi
  23512. # Have a temporary directory for convenience. Make it in the build tree
  23513. # simply because there is no reason against having it here, and in addition,
  23514. # creating and moving files from /tmp can sometimes cause problems.
  23515. # Hook for its removal unless debugging.
  23516. # Note that there is a small window in which the directory will not be cleaned:
  23517. # after its creation but before its name has been assigned to `$tmp'.
  23518. $debug ||
  23519. {
  23520. tmp= ac_tmp=
  23521. trap 'exit_status=$?
  23522. : "${ac_tmp:=$tmp}"
  23523. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23524. ' 0
  23525. trap 'as_fn_exit 1' 1 2 13 15
  23526. }
  23527. # Create a (secure) tmp directory for tmp files.
  23528. {
  23529. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23530. test -d "$tmp"
  23531. } ||
  23532. {
  23533. tmp=./conf$$-$RANDOM
  23534. (umask 077 && mkdir "$tmp")
  23535. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23536. ac_tmp=$tmp
  23537. # Set up the scripts for CONFIG_FILES section.
  23538. # No need to generate them if there are no CONFIG_FILES.
  23539. # This happens for instance with `./config.status config.h'.
  23540. if test -n "$CONFIG_FILES"; then
  23541. ac_cr=`echo X | tr X '\015'`
  23542. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23543. # But we know of no other shell where ac_cr would be empty at this
  23544. # point, so we can use a bashism as a fallback.
  23545. if test "x$ac_cr" = x; then
  23546. eval ac_cr=\$\'\\r\'
  23547. fi
  23548. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23549. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23550. ac_cs_awk_cr='\\r'
  23551. else
  23552. ac_cs_awk_cr=$ac_cr
  23553. fi
  23554. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23555. _ACEOF
  23556. {
  23557. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23558. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23559. echo "_ACEOF"
  23560. } >conf$$subs.sh ||
  23561. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23562. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23563. ac_delim='%!_!# '
  23564. for ac_last_try in false false false false false :; do
  23565. . ./conf$$subs.sh ||
  23566. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23567. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23568. if test $ac_delim_n = $ac_delim_num; then
  23569. break
  23570. elif $ac_last_try; then
  23571. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23572. else
  23573. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23574. fi
  23575. done
  23576. rm -f conf$$subs.sh
  23577. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23578. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23579. _ACEOF
  23580. sed -n '
  23581. h
  23582. s/^/S["/; s/!.*/"]=/
  23583. p
  23584. g
  23585. s/^[^!]*!//
  23586. :repl
  23587. t repl
  23588. s/'"$ac_delim"'$//
  23589. t delim
  23590. :nl
  23591. h
  23592. s/\(.\{148\}\)..*/\1/
  23593. t more1
  23594. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23595. p
  23596. n
  23597. b repl
  23598. :more1
  23599. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23600. p
  23601. g
  23602. s/.\{148\}//
  23603. t nl
  23604. :delim
  23605. h
  23606. s/\(.\{148\}\)..*/\1/
  23607. t more2
  23608. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23609. p
  23610. b
  23611. :more2
  23612. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23613. p
  23614. g
  23615. s/.\{148\}//
  23616. t delim
  23617. ' <conf$$subs.awk | sed '
  23618. /^[^""]/{
  23619. N
  23620. s/\n//
  23621. }
  23622. ' >>$CONFIG_STATUS || ac_write_fail=1
  23623. rm -f conf$$subs.awk
  23624. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23625. _ACAWK
  23626. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23627. for (key in S) S_is_set[key] = 1
  23628. FS = ""
  23629. }
  23630. {
  23631. line = $ 0
  23632. nfields = split(line, field, "@")
  23633. substed = 0
  23634. len = length(field[1])
  23635. for (i = 2; i < nfields; i++) {
  23636. key = field[i]
  23637. keylen = length(key)
  23638. if (S_is_set[key]) {
  23639. value = S[key]
  23640. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23641. len += length(value) + length(field[++i])
  23642. substed = 1
  23643. } else
  23644. len += 1 + keylen
  23645. }
  23646. print line
  23647. }
  23648. _ACAWK
  23649. _ACEOF
  23650. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23651. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23652. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23653. else
  23654. cat
  23655. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23656. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23657. _ACEOF
  23658. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23659. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23660. # trailing colons and then remove the whole line if VPATH becomes empty
  23661. # (actually we leave an empty line to preserve line numbers).
  23662. if test "x$srcdir" = x.; then
  23663. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23664. h
  23665. s///
  23666. s/^/:/
  23667. s/[ ]*$/:/
  23668. s/:\$(srcdir):/:/g
  23669. s/:\${srcdir}:/:/g
  23670. s/:@srcdir@:/:/g
  23671. s/^:*//
  23672. s/:*$//
  23673. x
  23674. s/\(=[ ]*\).*/\1/
  23675. G
  23676. s/\n//
  23677. s/^[^=]*=[ ]*$//
  23678. }'
  23679. fi
  23680. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23681. fi # test -n "$CONFIG_FILES"
  23682. # Set up the scripts for CONFIG_HEADERS section.
  23683. # No need to generate them if there are no CONFIG_HEADERS.
  23684. # This happens for instance with `./config.status Makefile'.
  23685. if test -n "$CONFIG_HEADERS"; then
  23686. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23687. BEGIN {
  23688. _ACEOF
  23689. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23690. # here-document in config.status, that substitutes the proper values into
  23691. # config.h.in to produce config.h.
  23692. # Create a delimiter string that does not exist in confdefs.h, to ease
  23693. # handling of long lines.
  23694. ac_delim='%!_!# '
  23695. for ac_last_try in false false :; do
  23696. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23697. if test -z "$ac_tt"; then
  23698. break
  23699. elif $ac_last_try; then
  23700. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23701. else
  23702. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23703. fi
  23704. done
  23705. # For the awk script, D is an array of macro values keyed by name,
  23706. # likewise P contains macro parameters if any. Preserve backslash
  23707. # newline sequences.
  23708. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23709. sed -n '
  23710. s/.\{148\}/&'"$ac_delim"'/g
  23711. t rset
  23712. :rset
  23713. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23714. t def
  23715. d
  23716. :def
  23717. s/\\$//
  23718. t bsnl
  23719. s/["\\]/\\&/g
  23720. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23721. D["\1"]=" \3"/p
  23722. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23723. d
  23724. :bsnl
  23725. s/["\\]/\\&/g
  23726. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23727. D["\1"]=" \3\\\\\\n"\\/p
  23728. t cont
  23729. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23730. t cont
  23731. d
  23732. :cont
  23733. n
  23734. s/.\{148\}/&'"$ac_delim"'/g
  23735. t clear
  23736. :clear
  23737. s/\\$//
  23738. t bsnlc
  23739. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23740. d
  23741. :bsnlc
  23742. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23743. b cont
  23744. ' <confdefs.h | sed '
  23745. s/'"$ac_delim"'/"\\\
  23746. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23747. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23748. for (key in D) D_is_set[key] = 1
  23749. FS = ""
  23750. }
  23751. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23752. line = \$ 0
  23753. split(line, arg, " ")
  23754. if (arg[1] == "#") {
  23755. defundef = arg[2]
  23756. mac1 = arg[3]
  23757. } else {
  23758. defundef = substr(arg[1], 2)
  23759. mac1 = arg[2]
  23760. }
  23761. split(mac1, mac2, "(") #)
  23762. macro = mac2[1]
  23763. prefix = substr(line, 1, index(line, defundef) - 1)
  23764. if (D_is_set[macro]) {
  23765. # Preserve the white space surrounding the "#".
  23766. print prefix "define", macro P[macro] D[macro]
  23767. next
  23768. } else {
  23769. # Replace #undef with comments. This is necessary, for example,
  23770. # in the case of _POSIX_SOURCE, which is predefined and required
  23771. # on some systems where configure will not decide to define it.
  23772. if (defundef == "undef") {
  23773. print "/*", prefix defundef, macro, "*/"
  23774. next
  23775. }
  23776. }
  23777. }
  23778. { print }
  23779. _ACAWK
  23780. _ACEOF
  23781. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23782. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23783. fi # test -n "$CONFIG_HEADERS"
  23784. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23785. shift
  23786. for ac_tag
  23787. do
  23788. case $ac_tag in
  23789. :[FHLC]) ac_mode=$ac_tag; continue;;
  23790. esac
  23791. case $ac_mode$ac_tag in
  23792. :[FHL]*:*);;
  23793. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23794. :[FH]-) ac_tag=-:-;;
  23795. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23796. esac
  23797. ac_save_IFS=$IFS
  23798. IFS=:
  23799. set x $ac_tag
  23800. IFS=$ac_save_IFS
  23801. shift
  23802. ac_file=$1
  23803. shift
  23804. case $ac_mode in
  23805. :L) ac_source=$1;;
  23806. :[FH])
  23807. ac_file_inputs=
  23808. for ac_f
  23809. do
  23810. case $ac_f in
  23811. -) ac_f="$ac_tmp/stdin";;
  23812. *) # Look for the file first in the build tree, then in the source tree
  23813. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23814. # because $ac_f cannot contain `:'.
  23815. test -f "$ac_f" ||
  23816. case $ac_f in
  23817. [\\/$]*) false;;
  23818. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23819. esac ||
  23820. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23821. esac
  23822. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23823. as_fn_append ac_file_inputs " '$ac_f'"
  23824. done
  23825. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23826. # use $as_me), people would be surprised to read:
  23827. # /* config.h. Generated by config.status. */
  23828. configure_input='Generated from '`
  23829. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23830. `' by configure.'
  23831. if test x"$ac_file" != x-; then
  23832. configure_input="$ac_file. $configure_input"
  23833. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23834. $as_echo "$as_me: creating $ac_file" >&6;}
  23835. fi
  23836. # Neutralize special characters interpreted by sed in replacement strings.
  23837. case $configure_input in #(
  23838. *\&* | *\|* | *\\* )
  23839. ac_sed_conf_input=`$as_echo "$configure_input" |
  23840. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23841. *) ac_sed_conf_input=$configure_input;;
  23842. esac
  23843. case $ac_tag in
  23844. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23845. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23846. esac
  23847. ;;
  23848. esac
  23849. ac_dir=`$as_dirname -- "$ac_file" ||
  23850. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23851. X"$ac_file" : 'X\(//\)[^/]' \| \
  23852. X"$ac_file" : 'X\(//\)$' \| \
  23853. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23854. $as_echo X"$ac_file" |
  23855. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23856. s//\1/
  23857. q
  23858. }
  23859. /^X\(\/\/\)[^/].*/{
  23860. s//\1/
  23861. q
  23862. }
  23863. /^X\(\/\/\)$/{
  23864. s//\1/
  23865. q
  23866. }
  23867. /^X\(\/\).*/{
  23868. s//\1/
  23869. q
  23870. }
  23871. s/.*/./; q'`
  23872. as_dir="$ac_dir"; as_fn_mkdir_p
  23873. ac_builddir=.
  23874. case "$ac_dir" in
  23875. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23876. *)
  23877. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23878. # A ".." for each directory in $ac_dir_suffix.
  23879. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23880. case $ac_top_builddir_sub in
  23881. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23882. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23883. esac ;;
  23884. esac
  23885. ac_abs_top_builddir=$ac_pwd
  23886. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23887. # for backward compatibility:
  23888. ac_top_builddir=$ac_top_build_prefix
  23889. case $srcdir in
  23890. .) # We are building in place.
  23891. ac_srcdir=.
  23892. ac_top_srcdir=$ac_top_builddir_sub
  23893. ac_abs_top_srcdir=$ac_pwd ;;
  23894. [\\/]* | ?:[\\/]* ) # Absolute name.
  23895. ac_srcdir=$srcdir$ac_dir_suffix;
  23896. ac_top_srcdir=$srcdir
  23897. ac_abs_top_srcdir=$srcdir ;;
  23898. *) # Relative name.
  23899. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23900. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23901. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23902. esac
  23903. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23904. case $ac_mode in
  23905. :F)
  23906. #
  23907. # CONFIG_FILE
  23908. #
  23909. case $INSTALL in
  23910. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23911. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23912. esac
  23913. _ACEOF
  23914. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23915. # If the template does not know about datarootdir, expand it.
  23916. # FIXME: This hack should be removed a few years after 2.60.
  23917. ac_datarootdir_hack=; ac_datarootdir_seen=
  23918. ac_sed_dataroot='
  23919. /datarootdir/ {
  23920. p
  23921. q
  23922. }
  23923. /@datadir@/p
  23924. /@docdir@/p
  23925. /@infodir@/p
  23926. /@localedir@/p
  23927. /@mandir@/p'
  23928. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23929. *datarootdir*) ac_datarootdir_seen=yes;;
  23930. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23932. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23933. _ACEOF
  23934. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23935. ac_datarootdir_hack='
  23936. s&@datadir@&$datadir&g
  23937. s&@docdir@&$docdir&g
  23938. s&@infodir@&$infodir&g
  23939. s&@localedir@&$localedir&g
  23940. s&@mandir@&$mandir&g
  23941. s&\\\${datarootdir}&$datarootdir&g' ;;
  23942. esac
  23943. _ACEOF
  23944. # Neutralize VPATH when `$srcdir' = `.'.
  23945. # Shell code in configure.ac might set extrasub.
  23946. # FIXME: do we really want to maintain this feature?
  23947. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23948. ac_sed_extra="$ac_vpsub
  23949. $extrasub
  23950. _ACEOF
  23951. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23952. :t
  23953. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23954. s|@configure_input@|$ac_sed_conf_input|;t t
  23955. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23956. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23957. s&@srcdir@&$ac_srcdir&;t t
  23958. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23959. s&@top_srcdir@&$ac_top_srcdir&;t t
  23960. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23961. s&@builddir@&$ac_builddir&;t t
  23962. s&@abs_builddir@&$ac_abs_builddir&;t t
  23963. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23964. s&@INSTALL@&$ac_INSTALL&;t t
  23965. $ac_datarootdir_hack
  23966. "
  23967. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23968. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23969. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23970. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23971. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23972. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23974. which seems to be undefined. Please make sure it is defined" >&5
  23975. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23976. which seems to be undefined. Please make sure it is defined" >&2;}
  23977. rm -f "$ac_tmp/stdin"
  23978. case $ac_file in
  23979. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23980. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23981. esac \
  23982. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23983. ;;
  23984. :H)
  23985. #
  23986. # CONFIG_HEADER
  23987. #
  23988. if test x"$ac_file" != x-; then
  23989. {
  23990. $as_echo "/* $configure_input */" \
  23991. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23992. } >"$ac_tmp/config.h" \
  23993. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23994. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23995. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23996. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23997. else
  23998. rm -f "$ac_file"
  23999. mv "$ac_tmp/config.h" "$ac_file" \
  24000. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24001. fi
  24002. else
  24003. $as_echo "/* $configure_input */" \
  24004. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24005. || as_fn_error $? "could not create -" "$LINENO" 5
  24006. fi
  24007. ;;
  24008. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24009. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24010. ;;
  24011. esac
  24012. case $ac_file$ac_mode in
  24013. "libtool":C)
  24014. # See if we are running on zsh, and set the options which allow our
  24015. # commands through without removal of \ escapes.
  24016. if test -n "${ZSH_VERSION+set}" ; then
  24017. setopt NO_GLOB_SUBST
  24018. fi
  24019. cfgfile="${ofile}T"
  24020. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24021. $RM "$cfgfile"
  24022. cat <<_LT_EOF >> "$cfgfile"
  24023. #! $SHELL
  24024. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  24025. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  24026. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24027. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24028. #
  24029. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  24030. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  24031. # Foundation, Inc.
  24032. # Written by Gordon Matzigkeit, 1996
  24033. #
  24034. # This file is part of GNU Libtool.
  24035. #
  24036. # GNU Libtool is free software; you can redistribute it and/or
  24037. # modify it under the terms of the GNU General Public License as
  24038. # published by the Free Software Foundation; either version 2 of
  24039. # the License, or (at your option) any later version.
  24040. #
  24041. # As a special exception to the GNU General Public License,
  24042. # if you distribute this file as part of a program or library that
  24043. # is built using GNU Libtool, you may include this file under the
  24044. # same distribution terms that you use for the rest of that program.
  24045. #
  24046. # GNU Libtool is distributed in the hope that it will be useful,
  24047. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24048. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24049. # GNU General Public License for more details.
  24050. #
  24051. # You should have received a copy of the GNU General Public License
  24052. # along with GNU Libtool; see the file COPYING. If not, a copy
  24053. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  24054. # obtained by writing to the Free Software Foundation, Inc.,
  24055. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24056. # The names of the tagged configurations supported by this script.
  24057. available_tags="RC CXX "
  24058. # ### BEGIN LIBTOOL CONFIG
  24059. # Which release of libtool.m4 was used?
  24060. macro_version=$macro_version
  24061. macro_revision=$macro_revision
  24062. # Assembler program.
  24063. AS=$lt_AS
  24064. # DLL creation program.
  24065. DLLTOOL=$lt_DLLTOOL
  24066. # Object dumper program.
  24067. OBJDUMP=$lt_OBJDUMP
  24068. # Whether or not to build shared libraries.
  24069. build_libtool_libs=$enable_shared
  24070. # Whether or not to build static libraries.
  24071. build_old_libs=$enable_static
  24072. # What type of objects to build.
  24073. pic_mode=$pic_mode
  24074. # Whether or not to optimize for fast installation.
  24075. fast_install=$enable_fast_install
  24076. # Shell to use when invoking shell scripts.
  24077. SHELL=$lt_SHELL
  24078. # An echo program that protects backslashes.
  24079. ECHO=$lt_ECHO
  24080. # The PATH separator for the build system.
  24081. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24082. # The host system.
  24083. host_alias=$host_alias
  24084. host=$host
  24085. host_os=$host_os
  24086. # The build system.
  24087. build_alias=$build_alias
  24088. build=$build
  24089. build_os=$build_os
  24090. # A sed program that does not truncate output.
  24091. SED=$lt_SED
  24092. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24093. Xsed="\$SED -e 1s/^X//"
  24094. # A grep program that handles long lines.
  24095. GREP=$lt_GREP
  24096. # An ERE matcher.
  24097. EGREP=$lt_EGREP
  24098. # A literal string matcher.
  24099. FGREP=$lt_FGREP
  24100. # A BSD- or MS-compatible name lister.
  24101. NM=$lt_NM
  24102. # Whether we need soft or hard links.
  24103. LN_S=$lt_LN_S
  24104. # What is the maximum length of a command?
  24105. max_cmd_len=$max_cmd_len
  24106. # Object file suffix (normally "o").
  24107. objext=$ac_objext
  24108. # Executable file suffix (normally "").
  24109. exeext=$exeext
  24110. # whether the shell understands "unset".
  24111. lt_unset=$lt_unset
  24112. # turn spaces into newlines.
  24113. SP2NL=$lt_lt_SP2NL
  24114. # turn newlines into spaces.
  24115. NL2SP=$lt_lt_NL2SP
  24116. # convert \$build file names to \$host format.
  24117. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24118. # convert \$build files to toolchain format.
  24119. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24120. # Method to check whether dependent libraries are shared objects.
  24121. deplibs_check_method=$lt_deplibs_check_method
  24122. # Command to use when deplibs_check_method = "file_magic".
  24123. file_magic_cmd=$lt_file_magic_cmd
  24124. # How to find potential files when deplibs_check_method = "file_magic".
  24125. file_magic_glob=$lt_file_magic_glob
  24126. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24127. want_nocaseglob=$lt_want_nocaseglob
  24128. # Command to associate shared and link libraries.
  24129. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24130. # The archiver.
  24131. AR=$lt_AR
  24132. # Flags to create an archive.
  24133. AR_FLAGS=$lt_AR_FLAGS
  24134. # How to feed a file listing to the archiver.
  24135. archiver_list_spec=$lt_archiver_list_spec
  24136. # A symbol stripping program.
  24137. STRIP=$lt_STRIP
  24138. # Commands used to install an old-style archive.
  24139. RANLIB=$lt_RANLIB
  24140. old_postinstall_cmds=$lt_old_postinstall_cmds
  24141. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24142. # Whether to use a lock for old archive extraction.
  24143. lock_old_archive_extraction=$lock_old_archive_extraction
  24144. # A C compiler.
  24145. LTCC=$lt_CC
  24146. # LTCC compiler flags.
  24147. LTCFLAGS=$lt_CFLAGS
  24148. # Take the output of nm and produce a listing of raw symbols and C names.
  24149. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24150. # Transform the output of nm in a proper C declaration.
  24151. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24152. # Transform the output of nm in a C name address pair.
  24153. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24154. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24155. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24156. # Specify filename containing input files for \$NM.
  24157. nm_file_list_spec=$lt_nm_file_list_spec
  24158. # The root where to search for dependent libraries,and in which our libraries should be installed.
  24159. lt_sysroot=$lt_sysroot
  24160. # The name of the directory that contains temporary libtool files.
  24161. objdir=$objdir
  24162. # Used to examine libraries when file_magic_cmd begins with "file".
  24163. MAGIC_CMD=$MAGIC_CMD
  24164. # Must we lock files when doing compilation?
  24165. need_locks=$lt_need_locks
  24166. # Manifest tool.
  24167. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24168. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24169. DSYMUTIL=$lt_DSYMUTIL
  24170. # Tool to change global to local symbols on Mac OS X.
  24171. NMEDIT=$lt_NMEDIT
  24172. # Tool to manipulate fat objects and archives on Mac OS X.
  24173. LIPO=$lt_LIPO
  24174. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24175. OTOOL=$lt_OTOOL
  24176. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24177. OTOOL64=$lt_OTOOL64
  24178. # Old archive suffix (normally "a").
  24179. libext=$libext
  24180. # Shared library suffix (normally ".so").
  24181. shrext_cmds=$lt_shrext_cmds
  24182. # The commands to extract the exported symbol list from a shared archive.
  24183. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24184. # Variables whose values should be saved in libtool wrapper scripts and
  24185. # restored at link time.
  24186. variables_saved_for_relink=$lt_variables_saved_for_relink
  24187. # Do we need the "lib" prefix for modules?
  24188. need_lib_prefix=$need_lib_prefix
  24189. # Do we need a version for libraries?
  24190. need_version=$need_version
  24191. # Library versioning type.
  24192. version_type=$version_type
  24193. # Shared library runtime path variable.
  24194. runpath_var=$runpath_var
  24195. # Shared library path variable.
  24196. shlibpath_var=$shlibpath_var
  24197. # Is shlibpath searched before the hard-coded library search path?
  24198. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24199. # Format of library name prefix.
  24200. libname_spec=$lt_libname_spec
  24201. # List of archive names. First name is the real one, the rest are links.
  24202. # The last name is the one that the linker finds with -lNAME
  24203. library_names_spec=$lt_library_names_spec
  24204. # The coded name of the library, if different from the real name.
  24205. soname_spec=$lt_soname_spec
  24206. # Permission mode override for installation of shared libraries.
  24207. install_override_mode=$lt_install_override_mode
  24208. # Command to use after installation of a shared archive.
  24209. postinstall_cmds=$lt_postinstall_cmds
  24210. # Command to use after uninstallation of a shared archive.
  24211. postuninstall_cmds=$lt_postuninstall_cmds
  24212. # Commands used to finish a libtool library installation in a directory.
  24213. finish_cmds=$lt_finish_cmds
  24214. # As "finish_cmds", except a single script fragment to be evaled but
  24215. # not shown.
  24216. finish_eval=$lt_finish_eval
  24217. # Whether we should hardcode library paths into libraries.
  24218. hardcode_into_libs=$hardcode_into_libs
  24219. # Compile-time system search path for libraries.
  24220. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24221. # Run-time system search path for libraries.
  24222. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24223. # Whether dlopen is supported.
  24224. dlopen_support=$enable_dlopen
  24225. # Whether dlopen of programs is supported.
  24226. dlopen_self=$enable_dlopen_self
  24227. # Whether dlopen of statically linked programs is supported.
  24228. dlopen_self_static=$enable_dlopen_self_static
  24229. # Commands to strip libraries.
  24230. old_striplib=$lt_old_striplib
  24231. striplib=$lt_striplib
  24232. # The linker used to build libraries.
  24233. LD=$lt_LD
  24234. # How to create reloadable object files.
  24235. reload_flag=$lt_reload_flag
  24236. reload_cmds=$lt_reload_cmds
  24237. # Commands used to build an old-style archive.
  24238. old_archive_cmds=$lt_old_archive_cmds
  24239. # A language specific compiler.
  24240. CC=$lt_compiler
  24241. # Is the compiler the GNU compiler?
  24242. with_gcc=$GCC
  24243. # Compiler flag to turn off builtin functions.
  24244. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24245. # Additional compiler flags for building library objects.
  24246. pic_flag=$lt_lt_prog_compiler_pic
  24247. # How to pass a linker flag through the compiler.
  24248. wl=$lt_lt_prog_compiler_wl
  24249. # Compiler flag to prevent dynamic linking.
  24250. link_static_flag=$lt_lt_prog_compiler_static
  24251. # Does compiler simultaneously support -c and -o options?
  24252. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24253. # Whether or not to add -lc for building shared libraries.
  24254. build_libtool_need_lc=$archive_cmds_need_lc
  24255. # Whether or not to disallow shared libs when runtime libs are static.
  24256. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24257. # Compiler flag to allow reflexive dlopens.
  24258. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24259. # Compiler flag to generate shared objects directly from archives.
  24260. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24261. # Whether the compiler copes with passing no objects directly.
  24262. compiler_needs_object=$lt_compiler_needs_object
  24263. # Create an old-style archive from a shared archive.
  24264. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24265. # Create a temporary old-style archive to link instead of a shared archive.
  24266. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24267. # Commands used to build a shared archive.
  24268. archive_cmds=$lt_archive_cmds
  24269. archive_expsym_cmds=$lt_archive_expsym_cmds
  24270. # Commands used to build a loadable module if different from building
  24271. # a shared archive.
  24272. module_cmds=$lt_module_cmds
  24273. module_expsym_cmds=$lt_module_expsym_cmds
  24274. # Whether we are building with GNU ld or not.
  24275. with_gnu_ld=$lt_with_gnu_ld
  24276. # Flag that allows shared libraries with undefined symbols to be built.
  24277. allow_undefined_flag=$lt_allow_undefined_flag
  24278. # Flag that enforces no undefined symbols.
  24279. no_undefined_flag=$lt_no_undefined_flag
  24280. # Flag to hardcode \$libdir into a binary during linking.
  24281. # This must work even if \$libdir does not exist
  24282. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24283. # Whether we need a single "-rpath" flag with a separated argument.
  24284. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24285. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24286. # DIR into the resulting binary.
  24287. hardcode_direct=$hardcode_direct
  24288. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24289. # DIR into the resulting binary and the resulting library dependency is
  24290. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24291. # library is relocated.
  24292. hardcode_direct_absolute=$hardcode_direct_absolute
  24293. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24294. # into the resulting binary.
  24295. hardcode_minus_L=$hardcode_minus_L
  24296. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24297. # into the resulting binary.
  24298. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24299. # Set to "yes" if building a shared library automatically hardcodes DIR
  24300. # into the library and all subsequent libraries and executables linked
  24301. # against it.
  24302. hardcode_automatic=$hardcode_automatic
  24303. # Set to yes if linker adds runtime paths of dependent libraries
  24304. # to runtime path list.
  24305. inherit_rpath=$inherit_rpath
  24306. # Whether libtool must link a program against all its dependency libraries.
  24307. link_all_deplibs=$link_all_deplibs
  24308. # Set to "yes" if exported symbols are required.
  24309. always_export_symbols=$always_export_symbols
  24310. # The commands to list exported symbols.
  24311. export_symbols_cmds=$lt_export_symbols_cmds
  24312. # Symbols that should not be listed in the preloaded symbols.
  24313. exclude_expsyms=$lt_exclude_expsyms
  24314. # Symbols that must always be exported.
  24315. include_expsyms=$lt_include_expsyms
  24316. # Commands necessary for linking programs (against libraries) with templates.
  24317. prelink_cmds=$lt_prelink_cmds
  24318. # Commands necessary for finishing linking programs.
  24319. postlink_cmds=$lt_postlink_cmds
  24320. # Specify filename containing input files.
  24321. file_list_spec=$lt_file_list_spec
  24322. # How to hardcode a shared library path into an executable.
  24323. hardcode_action=$hardcode_action
  24324. # The directories searched by this compiler when creating a shared library.
  24325. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24326. # Dependencies to place before and after the objects being linked to
  24327. # create a shared library.
  24328. predep_objects=$lt_predep_objects
  24329. postdep_objects=$lt_postdep_objects
  24330. predeps=$lt_predeps
  24331. postdeps=$lt_postdeps
  24332. # The library search path used internally by the compiler when linking
  24333. # a shared library.
  24334. compiler_lib_search_path=$lt_compiler_lib_search_path
  24335. # ### END LIBTOOL CONFIG
  24336. _LT_EOF
  24337. case $host_os in
  24338. aix3*)
  24339. cat <<\_LT_EOF >> "$cfgfile"
  24340. # AIX sometimes has problems with the GCC collect2 program. For some
  24341. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24342. # vanish in a puff of smoke.
  24343. if test "X${COLLECT_NAMES+set}" != Xset; then
  24344. COLLECT_NAMES=
  24345. export COLLECT_NAMES
  24346. fi
  24347. _LT_EOF
  24348. ;;
  24349. esac
  24350. ltmain="$ac_aux_dir/ltmain.sh"
  24351. # We use sed instead of cat because bash on DJGPP gets confused if
  24352. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24353. # text mode, it properly converts lines to CR/LF. This bash problem
  24354. # is reportedly fixed, but why not run on old versions too?
  24355. sed '$q' "$ltmain" >> "$cfgfile" \
  24356. || (rm -f "$cfgfile"; exit 1)
  24357. if test x"$xsi_shell" = xyes; then
  24358. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24359. func_dirname ()\
  24360. {\
  24361. \ case ${1} in\
  24362. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24363. \ * ) func_dirname_result="${3}" ;;\
  24364. \ esac\
  24365. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24366. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24367. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24368. test 0 -eq $? || _lt_function_replace_fail=:
  24369. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24370. func_basename ()\
  24371. {\
  24372. \ func_basename_result="${1##*/}"\
  24373. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24374. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24375. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24376. test 0 -eq $? || _lt_function_replace_fail=:
  24377. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24378. func_dirname_and_basename ()\
  24379. {\
  24380. \ case ${1} in\
  24381. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24382. \ * ) func_dirname_result="${3}" ;;\
  24383. \ esac\
  24384. \ func_basename_result="${1##*/}"\
  24385. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24386. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24387. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24388. test 0 -eq $? || _lt_function_replace_fail=:
  24389. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24390. func_stripname ()\
  24391. {\
  24392. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24393. \ # positional parameters, so assign one to ordinary parameter first.\
  24394. \ func_stripname_result=${3}\
  24395. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24396. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24397. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24398. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24399. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24400. test 0 -eq $? || _lt_function_replace_fail=:
  24401. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24402. func_split_long_opt ()\
  24403. {\
  24404. \ func_split_long_opt_name=${1%%=*}\
  24405. \ func_split_long_opt_arg=${1#*=}\
  24406. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24407. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24408. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24409. test 0 -eq $? || _lt_function_replace_fail=:
  24410. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24411. func_split_short_opt ()\
  24412. {\
  24413. \ func_split_short_opt_arg=${1#??}\
  24414. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24415. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24416. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24417. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24418. test 0 -eq $? || _lt_function_replace_fail=:
  24419. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24420. func_lo2o ()\
  24421. {\
  24422. \ case ${1} in\
  24423. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24424. \ *) func_lo2o_result=${1} ;;\
  24425. \ esac\
  24426. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24427. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24428. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24429. test 0 -eq $? || _lt_function_replace_fail=:
  24430. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24431. func_xform ()\
  24432. {\
  24433. func_xform_result=${1%.*}.lo\
  24434. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24435. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24436. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24437. test 0 -eq $? || _lt_function_replace_fail=:
  24438. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24439. func_arith ()\
  24440. {\
  24441. func_arith_result=$(( $* ))\
  24442. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24443. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24444. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24445. test 0 -eq $? || _lt_function_replace_fail=:
  24446. sed -e '/^func_len ()$/,/^} # func_len /c\
  24447. func_len ()\
  24448. {\
  24449. func_len_result=${#1}\
  24450. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24451. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24452. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24453. test 0 -eq $? || _lt_function_replace_fail=:
  24454. fi
  24455. if test x"$lt_shell_append" = xyes; then
  24456. sed -e '/^func_append ()$/,/^} # func_append /c\
  24457. func_append ()\
  24458. {\
  24459. eval "${1}+=\\${2}"\
  24460. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24461. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24462. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24463. test 0 -eq $? || _lt_function_replace_fail=:
  24464. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24465. func_append_quoted ()\
  24466. {\
  24467. \ func_quote_for_eval "${2}"\
  24468. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24469. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24470. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24471. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24472. test 0 -eq $? || _lt_function_replace_fail=:
  24473. # Save a `func_append' function call where possible by direct use of '+='
  24474. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24475. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24476. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24477. test 0 -eq $? || _lt_function_replace_fail=:
  24478. else
  24479. # Save a `func_append' function call even when '+=' is not available
  24480. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24481. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24482. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24483. test 0 -eq $? || _lt_function_replace_fail=:
  24484. fi
  24485. if test x"$_lt_function_replace_fail" = x":"; then
  24486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24487. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24488. fi
  24489. mv -f "$cfgfile" "$ofile" ||
  24490. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24491. chmod +x "$ofile"
  24492. cat <<_LT_EOF >> "$ofile"
  24493. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24494. # The linker used to build libraries.
  24495. LD=$lt_LD_RC
  24496. # How to create reloadable object files.
  24497. reload_flag=$lt_reload_flag_RC
  24498. reload_cmds=$lt_reload_cmds_RC
  24499. # Commands used to build an old-style archive.
  24500. old_archive_cmds=$lt_old_archive_cmds_RC
  24501. # A language specific compiler.
  24502. CC=$lt_compiler_RC
  24503. # Is the compiler the GNU compiler?
  24504. with_gcc=$GCC_RC
  24505. # Compiler flag to turn off builtin functions.
  24506. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24507. # Additional compiler flags for building library objects.
  24508. pic_flag=$lt_lt_prog_compiler_pic_RC
  24509. # How to pass a linker flag through the compiler.
  24510. wl=$lt_lt_prog_compiler_wl_RC
  24511. # Compiler flag to prevent dynamic linking.
  24512. link_static_flag=$lt_lt_prog_compiler_static_RC
  24513. # Does compiler simultaneously support -c and -o options?
  24514. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24515. # Whether or not to add -lc for building shared libraries.
  24516. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24517. # Whether or not to disallow shared libs when runtime libs are static.
  24518. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24519. # Compiler flag to allow reflexive dlopens.
  24520. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24521. # Compiler flag to generate shared objects directly from archives.
  24522. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24523. # Whether the compiler copes with passing no objects directly.
  24524. compiler_needs_object=$lt_compiler_needs_object_RC
  24525. # Create an old-style archive from a shared archive.
  24526. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24527. # Create a temporary old-style archive to link instead of a shared archive.
  24528. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24529. # Commands used to build a shared archive.
  24530. archive_cmds=$lt_archive_cmds_RC
  24531. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24532. # Commands used to build a loadable module if different from building
  24533. # a shared archive.
  24534. module_cmds=$lt_module_cmds_RC
  24535. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24536. # Whether we are building with GNU ld or not.
  24537. with_gnu_ld=$lt_with_gnu_ld_RC
  24538. # Flag that allows shared libraries with undefined symbols to be built.
  24539. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24540. # Flag that enforces no undefined symbols.
  24541. no_undefined_flag=$lt_no_undefined_flag_RC
  24542. # Flag to hardcode \$libdir into a binary during linking.
  24543. # This must work even if \$libdir does not exist
  24544. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24545. # Whether we need a single "-rpath" flag with a separated argument.
  24546. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24547. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24548. # DIR into the resulting binary.
  24549. hardcode_direct=$hardcode_direct_RC
  24550. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24551. # DIR into the resulting binary and the resulting library dependency is
  24552. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24553. # library is relocated.
  24554. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24555. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24556. # into the resulting binary.
  24557. hardcode_minus_L=$hardcode_minus_L_RC
  24558. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24559. # into the resulting binary.
  24560. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24561. # Set to "yes" if building a shared library automatically hardcodes DIR
  24562. # into the library and all subsequent libraries and executables linked
  24563. # against it.
  24564. hardcode_automatic=$hardcode_automatic_RC
  24565. # Set to yes if linker adds runtime paths of dependent libraries
  24566. # to runtime path list.
  24567. inherit_rpath=$inherit_rpath_RC
  24568. # Whether libtool must link a program against all its dependency libraries.
  24569. link_all_deplibs=$link_all_deplibs_RC
  24570. # Set to "yes" if exported symbols are required.
  24571. always_export_symbols=$always_export_symbols_RC
  24572. # The commands to list exported symbols.
  24573. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24574. # Symbols that should not be listed in the preloaded symbols.
  24575. exclude_expsyms=$lt_exclude_expsyms_RC
  24576. # Symbols that must always be exported.
  24577. include_expsyms=$lt_include_expsyms_RC
  24578. # Commands necessary for linking programs (against libraries) with templates.
  24579. prelink_cmds=$lt_prelink_cmds_RC
  24580. # Commands necessary for finishing linking programs.
  24581. postlink_cmds=$lt_postlink_cmds_RC
  24582. # Specify filename containing input files.
  24583. file_list_spec=$lt_file_list_spec_RC
  24584. # How to hardcode a shared library path into an executable.
  24585. hardcode_action=$hardcode_action_RC
  24586. # The directories searched by this compiler when creating a shared library.
  24587. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24588. # Dependencies to place before and after the objects being linked to
  24589. # create a shared library.
  24590. predep_objects=$lt_predep_objects_RC
  24591. postdep_objects=$lt_postdep_objects_RC
  24592. predeps=$lt_predeps_RC
  24593. postdeps=$lt_postdeps_RC
  24594. # The library search path used internally by the compiler when linking
  24595. # a shared library.
  24596. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24597. # ### END LIBTOOL TAG CONFIG: RC
  24598. _LT_EOF
  24599. cat <<_LT_EOF >> "$ofile"
  24600. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24601. # The linker used to build libraries.
  24602. LD=$lt_LD_CXX
  24603. # How to create reloadable object files.
  24604. reload_flag=$lt_reload_flag_CXX
  24605. reload_cmds=$lt_reload_cmds_CXX
  24606. # Commands used to build an old-style archive.
  24607. old_archive_cmds=$lt_old_archive_cmds_CXX
  24608. # A language specific compiler.
  24609. CC=$lt_compiler_CXX
  24610. # Is the compiler the GNU compiler?
  24611. with_gcc=$GCC_CXX
  24612. # Compiler flag to turn off builtin functions.
  24613. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24614. # Additional compiler flags for building library objects.
  24615. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24616. # How to pass a linker flag through the compiler.
  24617. wl=$lt_lt_prog_compiler_wl_CXX
  24618. # Compiler flag to prevent dynamic linking.
  24619. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24620. # Does compiler simultaneously support -c and -o options?
  24621. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24622. # Whether or not to add -lc for building shared libraries.
  24623. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24624. # Whether or not to disallow shared libs when runtime libs are static.
  24625. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24626. # Compiler flag to allow reflexive dlopens.
  24627. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24628. # Compiler flag to generate shared objects directly from archives.
  24629. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24630. # Whether the compiler copes with passing no objects directly.
  24631. compiler_needs_object=$lt_compiler_needs_object_CXX
  24632. # Create an old-style archive from a shared archive.
  24633. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24634. # Create a temporary old-style archive to link instead of a shared archive.
  24635. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24636. # Commands used to build a shared archive.
  24637. archive_cmds=$lt_archive_cmds_CXX
  24638. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24639. # Commands used to build a loadable module if different from building
  24640. # a shared archive.
  24641. module_cmds=$lt_module_cmds_CXX
  24642. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24643. # Whether we are building with GNU ld or not.
  24644. with_gnu_ld=$lt_with_gnu_ld_CXX
  24645. # Flag that allows shared libraries with undefined symbols to be built.
  24646. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24647. # Flag that enforces no undefined symbols.
  24648. no_undefined_flag=$lt_no_undefined_flag_CXX
  24649. # Flag to hardcode \$libdir into a binary during linking.
  24650. # This must work even if \$libdir does not exist
  24651. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24652. # Whether we need a single "-rpath" flag with a separated argument.
  24653. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24654. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24655. # DIR into the resulting binary.
  24656. hardcode_direct=$hardcode_direct_CXX
  24657. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24658. # DIR into the resulting binary and the resulting library dependency is
  24659. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24660. # library is relocated.
  24661. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24662. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24663. # into the resulting binary.
  24664. hardcode_minus_L=$hardcode_minus_L_CXX
  24665. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24666. # into the resulting binary.
  24667. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24668. # Set to "yes" if building a shared library automatically hardcodes DIR
  24669. # into the library and all subsequent libraries and executables linked
  24670. # against it.
  24671. hardcode_automatic=$hardcode_automatic_CXX
  24672. # Set to yes if linker adds runtime paths of dependent libraries
  24673. # to runtime path list.
  24674. inherit_rpath=$inherit_rpath_CXX
  24675. # Whether libtool must link a program against all its dependency libraries.
  24676. link_all_deplibs=$link_all_deplibs_CXX
  24677. # Set to "yes" if exported symbols are required.
  24678. always_export_symbols=$always_export_symbols_CXX
  24679. # The commands to list exported symbols.
  24680. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24681. # Symbols that should not be listed in the preloaded symbols.
  24682. exclude_expsyms=$lt_exclude_expsyms_CXX
  24683. # Symbols that must always be exported.
  24684. include_expsyms=$lt_include_expsyms_CXX
  24685. # Commands necessary for linking programs (against libraries) with templates.
  24686. prelink_cmds=$lt_prelink_cmds_CXX
  24687. # Commands necessary for finishing linking programs.
  24688. postlink_cmds=$lt_postlink_cmds_CXX
  24689. # Specify filename containing input files.
  24690. file_list_spec=$lt_file_list_spec_CXX
  24691. # How to hardcode a shared library path into an executable.
  24692. hardcode_action=$hardcode_action_CXX
  24693. # The directories searched by this compiler when creating a shared library.
  24694. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24695. # Dependencies to place before and after the objects being linked to
  24696. # create a shared library.
  24697. predep_objects=$lt_predep_objects_CXX
  24698. postdep_objects=$lt_postdep_objects_CXX
  24699. predeps=$lt_predeps_CXX
  24700. postdeps=$lt_postdeps_CXX
  24701. # The library search path used internally by the compiler when linking
  24702. # a shared library.
  24703. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24704. # ### END LIBTOOL TAG CONFIG: CXX
  24705. _LT_EOF
  24706. ;;
  24707. "sdl2_config":C) chmod a+x sdl2-config ;;
  24708. "summary":C) printf "$SUMMARY" ;;
  24709. esac
  24710. done # for ac_tag
  24711. as_fn_exit 0
  24712. _ACEOF
  24713. ac_clean_files=$ac_clean_files_save
  24714. test $ac_write_fail = 0 ||
  24715. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24716. # configure is writing to config.log, and then calls config.status.
  24717. # config.status does its own redirection, appending to config.log.
  24718. # Unfortunately, on DOS this fails, as config.log is still kept open
  24719. # by configure, so config.status won't be able to write to it; its
  24720. # output is simply discarded. So we exec the FD to /dev/null,
  24721. # effectively closing config.log, so it can be properly (re)opened and
  24722. # appended to by config.status. When coming back to configure, we
  24723. # need to make the FD available again.
  24724. if test "$no_create" != yes; then
  24725. ac_cs_success=:
  24726. ac_config_status_args=
  24727. test "$silent" = yes &&
  24728. ac_config_status_args="$ac_config_status_args --quiet"
  24729. exec 5>/dev/null
  24730. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24731. exec 5>>config.log
  24732. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24733. # would make configure fail if this is the last instruction.
  24734. $ac_cs_success || as_fn_exit 1
  24735. fi
  24736. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24738. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24739. fi