1
0

configure 885 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830
  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. cmake_prefix_relpath
  605. INSTALL_SDL2_CONFIG
  606. LIBUSB_LIBS
  607. LIBUSB_CFLAGS
  608. IBUS_LIBS
  609. IBUS_CFLAGS
  610. DBUS_LIBS
  611. DBUS_CFLAGS
  612. LIBGBM_LIBS
  613. LIBGBM_CFLAGS
  614. LIBDRM_LIBS
  615. LIBDRM_CFLAGS
  616. DIRECTFB_LIBS
  617. DIRECTFB_CFLAGS
  618. X_EXTRA_LIBS
  619. X_LIBS
  620. X_PRE_LIBS
  621. X_CFLAGS
  622. XMKMF
  623. RPI_LIBS
  624. RPI_CFLAGS
  625. DECOR_LIBS
  626. DECOR_CFLAGS
  627. FUSIONSOUND_LIBS
  628. FUSIONSOUND_CFLAGS
  629. ARTSCONFIG
  630. PULSEAUDIO_LIBS
  631. PULSEAUDIO_CFLAGS
  632. PIPEWIRE_LIBS
  633. PIPEWIRE_CFLAGS
  634. ESD_LIBS
  635. ESD_CFLAGS
  636. ESD_CONFIG
  637. JACK_LIBS
  638. JACK_CFLAGS
  639. ALSA_LIBS
  640. ALSA_CFLAGS
  641. POW_LIB
  642. LIBOBJS
  643. ALLOCA
  644. LIBTOOLLINKERTAG
  645. LINKER
  646. PKG_CONFIG_LIBDIR
  647. PKG_CONFIG_PATH
  648. PKG_CONFIG
  649. SET_MAKE
  650. INSTALL_DATA
  651. INSTALL_SCRIPT
  652. INSTALL_PROGRAM
  653. CXXCPP
  654. ac_ct_CXX
  655. CXXFLAGS
  656. CXX
  657. LT_AGE
  658. LT_REVISION
  659. LT_CURRENT
  660. LT_RELEASE
  661. RC
  662. CPP
  663. LT_SYS_LIBRARY_PATH
  664. OTOOL64
  665. OTOOL
  666. LIPO
  667. NMEDIT
  668. DSYMUTIL
  669. MANIFEST_TOOL
  670. AWK
  671. RANLIB
  672. STRIP
  673. ac_ct_AR
  674. AR
  675. LN_S
  676. NM
  677. ac_ct_DUMPBIN
  678. DUMPBIN
  679. LD
  680. FGREP
  681. EGREP
  682. GREP
  683. SED
  684. OBJEXT
  685. EXEEXT
  686. ac_ct_CC
  687. CPPFLAGS
  688. LDFLAGS
  689. CFLAGS
  690. CC
  691. host_os
  692. host_vendor
  693. host_cpu
  694. host
  695. build_os
  696. build_vendor
  697. build_cpu
  698. build
  699. LIBTOOL
  700. OBJDUMP
  701. DLLTOOL
  702. AS
  703. SDL_VERSION
  704. SDL_BINARY_AGE
  705. SDL_INTERFACE_AGE
  706. SDL_MICRO_VERSION
  707. SDL_MINOR_VERSION
  708. SDL_MAJOR_VERSION
  709. target_alias
  710. host_alias
  711. build_alias
  712. LIBS
  713. ECHO_T
  714. ECHO_N
  715. ECHO_C
  716. DEFS
  717. mandir
  718. localedir
  719. libdir
  720. psdir
  721. pdfdir
  722. dvidir
  723. htmldir
  724. infodir
  725. docdir
  726. oldincludedir
  727. includedir
  728. localstatedir
  729. sharedstatedir
  730. sysconfdir
  731. datadir
  732. datarootdir
  733. libexecdir
  734. sbindir
  735. bindir
  736. program_transform_name
  737. prefix
  738. exec_prefix
  739. PACKAGE_URL
  740. PACKAGE_BUGREPORT
  741. PACKAGE_STRING
  742. PACKAGE_VERSION
  743. PACKAGE_TARNAME
  744. PACKAGE_NAME
  745. PATH_SEPARATOR
  746. SHELL'
  747. ac_subst_files=''
  748. ac_user_opts='
  749. enable_option_checking
  750. enable_shared
  751. enable_static
  752. with_pic
  753. enable_fast_install
  754. with_aix_soname
  755. with_gnu_ld
  756. with_sysroot
  757. enable_libtool_lock
  758. enable_assertions
  759. enable_dependency_tracking
  760. enable_libc
  761. enable_gcc_atomics
  762. enable_atomic
  763. enable_audio
  764. enable_video
  765. enable_render
  766. enable_events
  767. enable_joystick
  768. enable_haptic
  769. enable_hidapi
  770. enable_sensor
  771. enable_power
  772. enable_filesystem
  773. enable_threads
  774. enable_timers
  775. enable_file
  776. enable_misc
  777. enable_locale
  778. enable_loadso
  779. enable_cpuinfo
  780. enable_assembly
  781. enable_ssemath
  782. enable_mmx
  783. enable_3dnow
  784. enable_sse
  785. enable_sse2
  786. enable_sse3
  787. enable_altivec
  788. enable_oss
  789. enable_alsa
  790. with_alsa_prefix
  791. with_alsa_inc_prefix
  792. enable_alsatest
  793. enable_alsa_shared
  794. enable_jack
  795. enable_jack_shared
  796. enable_esd
  797. with_esd_prefix
  798. with_esd_exec_prefix
  799. enable_esdtest
  800. enable_esd_shared
  801. enable_pipewire
  802. enable_pipewire_shared
  803. enable_pulseaudio
  804. enable_pulseaudio_shared
  805. enable_arts
  806. enable_arts_shared
  807. enable_nas
  808. enable_nas_shared
  809. enable_sndio
  810. enable_sndio_shared
  811. enable_fusionsound
  812. enable_fusionsound_shared
  813. enable_diskaudio
  814. enable_dummyaudio
  815. enable_libsamplerate
  816. enable_libsamplerate_shared
  817. enable_arm_simd
  818. enable_arm_neon
  819. enable_video_wayland
  820. enable_video_wayland_qt_touch
  821. enable_wayland_shared
  822. enable_libdecor
  823. enable_libdecor_shared
  824. enable_video_rpi
  825. enable_video_x11
  826. with_x
  827. enable_x11_shared
  828. enable_video_x11_xcursor
  829. enable_video_x11_xdbe
  830. enable_video_x11_xinput
  831. enable_video_x11_xfixes
  832. enable_video_x11_xrandr
  833. enable_video_x11_scrnsaver
  834. enable_video_x11_xshape
  835. enable_video_vivante
  836. enable_video_cocoa
  837. enable_video_metal
  838. enable_render_metal
  839. enable_video_directfb
  840. enable_directfb_shared
  841. enable_video_kmsdrm
  842. enable_kmsdrm_shared
  843. enable_video_dummy
  844. enable_video_offscreen
  845. enable_video_opengl
  846. enable_video_opengles
  847. enable_video_opengles1
  848. enable_video_opengles2
  849. enable_video_vulkan
  850. enable_libudev
  851. enable_dbus
  852. enable_ime
  853. enable_ibus
  854. enable_fcitx
  855. enable_joystick_mfi
  856. enable_pthreads
  857. enable_pthread_sem
  858. enable_directx
  859. enable_xinput
  860. enable_wasapi
  861. enable_hidapi_joystick
  862. enable_hidapi_libusb
  863. enable_clock_gettime
  864. enable_rpath
  865. enable_backgrounding_signal
  866. enable_foregrounding_signal
  867. enable_joystick_virtual
  868. enable_render_d3d
  869. enable_sdl2_config
  870. '
  871. ac_precious_vars='build_alias
  872. host_alias
  873. target_alias
  874. CC
  875. CFLAGS
  876. LDFLAGS
  877. LIBS
  878. CPPFLAGS
  879. LT_SYS_LIBRARY_PATH
  880. CPP
  881. CXX
  882. CXXFLAGS
  883. CCC
  884. CXXCPP
  885. PKG_CONFIG
  886. PKG_CONFIG_PATH
  887. PKG_CONFIG_LIBDIR
  888. JACK_CFLAGS
  889. JACK_LIBS
  890. PIPEWIRE_CFLAGS
  891. PIPEWIRE_LIBS
  892. PULSEAUDIO_CFLAGS
  893. PULSEAUDIO_LIBS
  894. FUSIONSOUND_CFLAGS
  895. FUSIONSOUND_LIBS
  896. DECOR_CFLAGS
  897. DECOR_LIBS
  898. RPI_CFLAGS
  899. RPI_LIBS
  900. XMKMF
  901. DIRECTFB_CFLAGS
  902. DIRECTFB_LIBS
  903. LIBDRM_CFLAGS
  904. LIBDRM_LIBS
  905. LIBGBM_CFLAGS
  906. LIBGBM_LIBS
  907. DBUS_CFLAGS
  908. DBUS_LIBS
  909. IBUS_CFLAGS
  910. IBUS_LIBS
  911. LIBUSB_CFLAGS
  912. LIBUSB_LIBS'
  913. # Initialize some variables set by options.
  914. ac_init_help=
  915. ac_init_version=false
  916. ac_unrecognized_opts=
  917. ac_unrecognized_sep=
  918. # The variables have the same names as the options, with
  919. # dashes changed to underlines.
  920. cache_file=/dev/null
  921. exec_prefix=NONE
  922. no_create=
  923. no_recursion=
  924. prefix=NONE
  925. program_prefix=NONE
  926. program_suffix=NONE
  927. program_transform_name=s,x,x,
  928. silent=
  929. site=
  930. srcdir=
  931. verbose=
  932. x_includes=NONE
  933. x_libraries=NONE
  934. # Installation directory options.
  935. # These are left unexpanded so users can "make install exec_prefix=/foo"
  936. # and all the variables that are supposed to be based on exec_prefix
  937. # by default will actually change.
  938. # Use braces instead of parens because sh, perl, etc. also accept them.
  939. # (The list follows the same order as the GNU Coding Standards.)
  940. bindir='${exec_prefix}/bin'
  941. sbindir='${exec_prefix}/sbin'
  942. libexecdir='${exec_prefix}/libexec'
  943. datarootdir='${prefix}/share'
  944. datadir='${datarootdir}'
  945. sysconfdir='${prefix}/etc'
  946. sharedstatedir='${prefix}/com'
  947. localstatedir='${prefix}/var'
  948. includedir='${prefix}/include'
  949. oldincludedir='/usr/include'
  950. docdir='${datarootdir}/doc/${PACKAGE}'
  951. infodir='${datarootdir}/info'
  952. htmldir='${docdir}'
  953. dvidir='${docdir}'
  954. pdfdir='${docdir}'
  955. psdir='${docdir}'
  956. libdir='${exec_prefix}/lib'
  957. localedir='${datarootdir}/locale'
  958. mandir='${datarootdir}/man'
  959. ac_prev=
  960. ac_dashdash=
  961. for ac_option
  962. do
  963. # If the previous option needs an argument, assign it.
  964. if test -n "$ac_prev"; then
  965. eval $ac_prev=\$ac_option
  966. ac_prev=
  967. continue
  968. fi
  969. case $ac_option in
  970. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  971. *=) ac_optarg= ;;
  972. *) ac_optarg=yes ;;
  973. esac
  974. # Accept the important Cygnus configure options, so we can diagnose typos.
  975. case $ac_dashdash$ac_option in
  976. --)
  977. ac_dashdash=yes ;;
  978. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  979. ac_prev=bindir ;;
  980. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  981. bindir=$ac_optarg ;;
  982. -build | --build | --buil | --bui | --bu)
  983. ac_prev=build_alias ;;
  984. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  985. build_alias=$ac_optarg ;;
  986. -cache-file | --cache-file | --cache-fil | --cache-fi \
  987. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  988. ac_prev=cache_file ;;
  989. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  990. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  991. cache_file=$ac_optarg ;;
  992. --config-cache | -C)
  993. cache_file=config.cache ;;
  994. -datadir | --datadir | --datadi | --datad)
  995. ac_prev=datadir ;;
  996. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  997. datadir=$ac_optarg ;;
  998. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  999. | --dataroo | --dataro | --datar)
  1000. ac_prev=datarootdir ;;
  1001. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1002. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1003. datarootdir=$ac_optarg ;;
  1004. -disable-* | --disable-*)
  1005. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1006. # Reject names that are not valid shell variable names.
  1007. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1008. as_fn_error $? "invalid feature name: $ac_useropt"
  1009. ac_useropt_orig=$ac_useropt
  1010. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1011. case $ac_user_opts in
  1012. *"
  1013. "enable_$ac_useropt"
  1014. "*) ;;
  1015. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1016. ac_unrecognized_sep=', ';;
  1017. esac
  1018. eval enable_$ac_useropt=no ;;
  1019. -docdir | --docdir | --docdi | --doc | --do)
  1020. ac_prev=docdir ;;
  1021. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1022. docdir=$ac_optarg ;;
  1023. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1024. ac_prev=dvidir ;;
  1025. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1026. dvidir=$ac_optarg ;;
  1027. -enable-* | --enable-*)
  1028. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1029. # Reject names that are not valid shell variable names.
  1030. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1031. as_fn_error $? "invalid feature name: $ac_useropt"
  1032. ac_useropt_orig=$ac_useropt
  1033. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1034. case $ac_user_opts in
  1035. *"
  1036. "enable_$ac_useropt"
  1037. "*) ;;
  1038. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1039. ac_unrecognized_sep=', ';;
  1040. esac
  1041. eval enable_$ac_useropt=\$ac_optarg ;;
  1042. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1043. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1044. | --exec | --exe | --ex)
  1045. ac_prev=exec_prefix ;;
  1046. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1047. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1048. | --exec=* | --exe=* | --ex=*)
  1049. exec_prefix=$ac_optarg ;;
  1050. -gas | --gas | --ga | --g)
  1051. # Obsolete; use --with-gas.
  1052. with_gas=yes ;;
  1053. -help | --help | --hel | --he | -h)
  1054. ac_init_help=long ;;
  1055. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1056. ac_init_help=recursive ;;
  1057. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1058. ac_init_help=short ;;
  1059. -host | --host | --hos | --ho)
  1060. ac_prev=host_alias ;;
  1061. -host=* | --host=* | --hos=* | --ho=*)
  1062. host_alias=$ac_optarg ;;
  1063. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1064. ac_prev=htmldir ;;
  1065. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1066. | --ht=*)
  1067. htmldir=$ac_optarg ;;
  1068. -includedir | --includedir | --includedi | --included | --include \
  1069. | --includ | --inclu | --incl | --inc)
  1070. ac_prev=includedir ;;
  1071. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1072. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1073. includedir=$ac_optarg ;;
  1074. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1075. ac_prev=infodir ;;
  1076. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1077. infodir=$ac_optarg ;;
  1078. -libdir | --libdir | --libdi | --libd)
  1079. ac_prev=libdir ;;
  1080. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1081. libdir=$ac_optarg ;;
  1082. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1083. | --libexe | --libex | --libe)
  1084. ac_prev=libexecdir ;;
  1085. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1086. | --libexe=* | --libex=* | --libe=*)
  1087. libexecdir=$ac_optarg ;;
  1088. -localedir | --localedir | --localedi | --localed | --locale)
  1089. ac_prev=localedir ;;
  1090. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1091. localedir=$ac_optarg ;;
  1092. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1093. | --localstate | --localstat | --localsta | --localst | --locals)
  1094. ac_prev=localstatedir ;;
  1095. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1096. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1097. localstatedir=$ac_optarg ;;
  1098. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1099. ac_prev=mandir ;;
  1100. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1101. mandir=$ac_optarg ;;
  1102. -nfp | --nfp | --nf)
  1103. # Obsolete; use --without-fp.
  1104. with_fp=no ;;
  1105. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1106. | --no-cr | --no-c | -n)
  1107. no_create=yes ;;
  1108. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1109. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1110. no_recursion=yes ;;
  1111. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1112. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1113. | --oldin | --oldi | --old | --ol | --o)
  1114. ac_prev=oldincludedir ;;
  1115. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1116. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1117. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1118. oldincludedir=$ac_optarg ;;
  1119. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1120. ac_prev=prefix ;;
  1121. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1122. prefix=$ac_optarg ;;
  1123. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1124. | --program-pre | --program-pr | --program-p)
  1125. ac_prev=program_prefix ;;
  1126. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1127. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1128. program_prefix=$ac_optarg ;;
  1129. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1130. | --program-suf | --program-su | --program-s)
  1131. ac_prev=program_suffix ;;
  1132. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1133. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1134. program_suffix=$ac_optarg ;;
  1135. -program-transform-name | --program-transform-name \
  1136. | --program-transform-nam | --program-transform-na \
  1137. | --program-transform-n | --program-transform- \
  1138. | --program-transform | --program-transfor \
  1139. | --program-transfo | --program-transf \
  1140. | --program-trans | --program-tran \
  1141. | --progr-tra | --program-tr | --program-t)
  1142. ac_prev=program_transform_name ;;
  1143. -program-transform-name=* | --program-transform-name=* \
  1144. | --program-transform-nam=* | --program-transform-na=* \
  1145. | --program-transform-n=* | --program-transform-=* \
  1146. | --program-transform=* | --program-transfor=* \
  1147. | --program-transfo=* | --program-transf=* \
  1148. | --program-trans=* | --program-tran=* \
  1149. | --progr-tra=* | --program-tr=* | --program-t=*)
  1150. program_transform_name=$ac_optarg ;;
  1151. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1152. ac_prev=pdfdir ;;
  1153. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1154. pdfdir=$ac_optarg ;;
  1155. -psdir | --psdir | --psdi | --psd | --ps)
  1156. ac_prev=psdir ;;
  1157. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1158. psdir=$ac_optarg ;;
  1159. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1160. | -silent | --silent | --silen | --sile | --sil)
  1161. silent=yes ;;
  1162. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1163. ac_prev=sbindir ;;
  1164. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1165. | --sbi=* | --sb=*)
  1166. sbindir=$ac_optarg ;;
  1167. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1168. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1169. | --sharedst | --shareds | --shared | --share | --shar \
  1170. | --sha | --sh)
  1171. ac_prev=sharedstatedir ;;
  1172. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1173. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1174. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1175. | --sha=* | --sh=*)
  1176. sharedstatedir=$ac_optarg ;;
  1177. -site | --site | --sit)
  1178. ac_prev=site ;;
  1179. -site=* | --site=* | --sit=*)
  1180. site=$ac_optarg ;;
  1181. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1182. ac_prev=srcdir ;;
  1183. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1184. srcdir=$ac_optarg ;;
  1185. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1186. | --syscon | --sysco | --sysc | --sys | --sy)
  1187. ac_prev=sysconfdir ;;
  1188. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1189. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1190. sysconfdir=$ac_optarg ;;
  1191. -target | --target | --targe | --targ | --tar | --ta | --t)
  1192. ac_prev=target_alias ;;
  1193. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1194. target_alias=$ac_optarg ;;
  1195. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1196. verbose=yes ;;
  1197. -version | --version | --versio | --versi | --vers | -V)
  1198. ac_init_version=: ;;
  1199. -with-* | --with-*)
  1200. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1201. # Reject names that are not valid shell variable names.
  1202. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1203. as_fn_error $? "invalid package name: $ac_useropt"
  1204. ac_useropt_orig=$ac_useropt
  1205. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1206. case $ac_user_opts in
  1207. *"
  1208. "with_$ac_useropt"
  1209. "*) ;;
  1210. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1211. ac_unrecognized_sep=', ';;
  1212. esac
  1213. eval with_$ac_useropt=\$ac_optarg ;;
  1214. -without-* | --without-*)
  1215. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1216. # Reject names that are not valid shell variable names.
  1217. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1218. as_fn_error $? "invalid package name: $ac_useropt"
  1219. ac_useropt_orig=$ac_useropt
  1220. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1221. case $ac_user_opts in
  1222. *"
  1223. "with_$ac_useropt"
  1224. "*) ;;
  1225. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1226. ac_unrecognized_sep=', ';;
  1227. esac
  1228. eval with_$ac_useropt=no ;;
  1229. --x)
  1230. # Obsolete; use --with-x.
  1231. with_x=yes ;;
  1232. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1233. | --x-incl | --x-inc | --x-in | --x-i)
  1234. ac_prev=x_includes ;;
  1235. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1236. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1237. x_includes=$ac_optarg ;;
  1238. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1239. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1240. ac_prev=x_libraries ;;
  1241. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1242. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1243. x_libraries=$ac_optarg ;;
  1244. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1245. Try \`$0 --help' for more information"
  1246. ;;
  1247. *=*)
  1248. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1249. # Reject names that are not valid shell variable names.
  1250. case $ac_envvar in #(
  1251. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1252. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1253. esac
  1254. eval $ac_envvar=\$ac_optarg
  1255. export $ac_envvar ;;
  1256. *)
  1257. # FIXME: should be removed in autoconf 3.0.
  1258. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1259. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1260. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1261. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1262. ;;
  1263. esac
  1264. done
  1265. if test -n "$ac_prev"; then
  1266. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1267. as_fn_error $? "missing argument to $ac_option"
  1268. fi
  1269. if test -n "$ac_unrecognized_opts"; then
  1270. case $enable_option_checking in
  1271. no) ;;
  1272. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1273. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1274. esac
  1275. fi
  1276. # Check all directory arguments for consistency.
  1277. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1278. datadir sysconfdir sharedstatedir localstatedir includedir \
  1279. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1280. libdir localedir mandir
  1281. do
  1282. eval ac_val=\$$ac_var
  1283. # Remove trailing slashes.
  1284. case $ac_val in
  1285. */ )
  1286. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1287. eval $ac_var=\$ac_val;;
  1288. esac
  1289. # Be sure to have absolute directory names.
  1290. case $ac_val in
  1291. [\\/$]* | ?:[\\/]* ) continue;;
  1292. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1293. esac
  1294. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1295. done
  1296. # There might be people who depend on the old broken behavior: `$host'
  1297. # used to hold the argument of --host etc.
  1298. # FIXME: To remove some day.
  1299. build=$build_alias
  1300. host=$host_alias
  1301. target=$target_alias
  1302. # FIXME: To remove some day.
  1303. if test "x$host_alias" != x; then
  1304. if test "x$build_alias" = x; then
  1305. cross_compiling=maybe
  1306. elif test "x$build_alias" != "x$host_alias"; then
  1307. cross_compiling=yes
  1308. fi
  1309. fi
  1310. ac_tool_prefix=
  1311. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1312. test "$silent" = yes && exec 6>/dev/null
  1313. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1314. ac_ls_di=`ls -di .` &&
  1315. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1316. as_fn_error $? "working directory cannot be determined"
  1317. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1318. as_fn_error $? "pwd does not report name of working directory"
  1319. # Find the source files, if location was not specified.
  1320. if test -z "$srcdir"; then
  1321. ac_srcdir_defaulted=yes
  1322. # Try the directory containing this script, then the parent directory.
  1323. ac_confdir=`$as_dirname -- "$as_myself" ||
  1324. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1325. X"$as_myself" : 'X\(//\)[^/]' \| \
  1326. X"$as_myself" : 'X\(//\)$' \| \
  1327. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1328. $as_echo X"$as_myself" |
  1329. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1330. s//\1/
  1331. q
  1332. }
  1333. /^X\(\/\/\)[^/].*/{
  1334. s//\1/
  1335. q
  1336. }
  1337. /^X\(\/\/\)$/{
  1338. s//\1/
  1339. q
  1340. }
  1341. /^X\(\/\).*/{
  1342. s//\1/
  1343. q
  1344. }
  1345. s/.*/./; q'`
  1346. srcdir=$ac_confdir
  1347. if test ! -r "$srcdir/$ac_unique_file"; then
  1348. srcdir=..
  1349. fi
  1350. else
  1351. ac_srcdir_defaulted=no
  1352. fi
  1353. if test ! -r "$srcdir/$ac_unique_file"; then
  1354. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1355. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1356. fi
  1357. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1358. ac_abs_confdir=`(
  1359. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1360. pwd)`
  1361. # When building in place, set srcdir=.
  1362. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1363. srcdir=.
  1364. fi
  1365. # Remove unnecessary trailing slashes from srcdir.
  1366. # Double slashes in file names in object file debugging info
  1367. # mess up M-x gdb in Emacs.
  1368. case $srcdir in
  1369. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1370. esac
  1371. for ac_var in $ac_precious_vars; do
  1372. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1373. eval ac_env_${ac_var}_value=\$${ac_var}
  1374. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1375. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1376. done
  1377. #
  1378. # Report the --help message.
  1379. #
  1380. if test "$ac_init_help" = "long"; then
  1381. # Omit some internal or obsolete options to make the list less imposing.
  1382. # This message is too long to be a string in the A/UX 3.1 sh.
  1383. cat <<_ACEOF
  1384. \`configure' configures this package to adapt to many kinds of systems.
  1385. Usage: $0 [OPTION]... [VAR=VALUE]...
  1386. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1387. VAR=VALUE. See below for descriptions of some of the useful variables.
  1388. Defaults for the options are specified in brackets.
  1389. Configuration:
  1390. -h, --help display this help and exit
  1391. --help=short display options specific to this package
  1392. --help=recursive display the short help of all the included packages
  1393. -V, --version display version information and exit
  1394. -q, --quiet, --silent do not print \`checking ...' messages
  1395. --cache-file=FILE cache test results in FILE [disabled]
  1396. -C, --config-cache alias for \`--cache-file=config.cache'
  1397. -n, --no-create do not create output files
  1398. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1399. Installation directories:
  1400. --prefix=PREFIX install architecture-independent files in PREFIX
  1401. [$ac_default_prefix]
  1402. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1403. [PREFIX]
  1404. By default, \`make install' will install all the files in
  1405. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1406. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1407. for instance \`--prefix=\$HOME'.
  1408. For better control, use the options below.
  1409. Fine tuning of the installation directories:
  1410. --bindir=DIR user executables [EPREFIX/bin]
  1411. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1412. --libexecdir=DIR program executables [EPREFIX/libexec]
  1413. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1414. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1415. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1416. --libdir=DIR object code libraries [EPREFIX/lib]
  1417. --includedir=DIR C header files [PREFIX/include]
  1418. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1419. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1420. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1421. --infodir=DIR info documentation [DATAROOTDIR/info]
  1422. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1423. --mandir=DIR man documentation [DATAROOTDIR/man]
  1424. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1425. --htmldir=DIR html documentation [DOCDIR]
  1426. --dvidir=DIR dvi documentation [DOCDIR]
  1427. --pdfdir=DIR pdf documentation [DOCDIR]
  1428. --psdir=DIR ps documentation [DOCDIR]
  1429. _ACEOF
  1430. cat <<\_ACEOF
  1431. X features:
  1432. --x-includes=DIR X include files are in DIR
  1433. --x-libraries=DIR X library files are in DIR
  1434. System types:
  1435. --build=BUILD configure for building on BUILD [guessed]
  1436. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1437. _ACEOF
  1438. fi
  1439. if test -n "$ac_init_help"; then
  1440. cat <<\_ACEOF
  1441. Optional Features:
  1442. --disable-option-checking ignore unrecognized --enable/--with options
  1443. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1444. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1445. --enable-shared[=PKGS] build shared libraries [default=yes]
  1446. --enable-static[=PKGS] build static libraries [default=yes]
  1447. --enable-fast-install[=PKGS]
  1448. optimize for fast installation [default=yes]
  1449. --disable-libtool-lock avoid locking (might break parallel builds)
  1450. --enable-assertions Enable internal sanity checks
  1451. (auto/disabled/release/enabled/paranoid)
  1452. [default=auto]
  1453. --enable-dependency-tracking
  1454. Use gcc -MMD -MT dependency tracking [default=yes]
  1455. --enable-libc Use the system C library [default=yes]
  1456. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1457. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1458. --enable-audio Enable the audio subsystem [default=yes]
  1459. --enable-video Enable the video subsystem [default=yes]
  1460. --enable-render Enable the render subsystem [default=yes]
  1461. --enable-events Enable the events subsystem [default=yes]
  1462. --enable-joystick Enable the joystick subsystem [default=yes]
  1463. --enable-haptic Enable the haptic (force feedback) subsystem
  1464. [default=yes]
  1465. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1466. --enable-sensor Enable the sensor subsystem [default=yes]
  1467. --enable-power Enable the power subsystem [default=yes]
  1468. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1469. --enable-threads Enable the threading subsystem [default=yes]
  1470. --enable-timers Enable the timer subsystem [default=yes]
  1471. --enable-file Enable the file subsystem [default=yes]
  1472. --enable-misc Enable the misc subsystem [default=yes]
  1473. --enable-locale Enable the locale subsystem [default=yes]
  1474. --enable-loadso Enable the shared object loading subsystem
  1475. [default=yes]
  1476. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1477. --enable-assembly Enable assembly routines [default=yes]
  1478. --enable-ssemath Allow GCC to use SSE floating point math
  1479. [default=maybe]
  1480. --enable-mmx use MMX assembly routines [default=yes]
  1481. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1482. --enable-sse use SSE assembly routines [default=yes]
  1483. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1484. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1485. --enable-altivec use Altivec assembly routines [default=yes]
  1486. --enable-oss support the OSS audio API [default=maybe]
  1487. --enable-alsa support the ALSA audio API [default=yes]
  1488. --disable-alsatest Do not try to compile and run a test Alsa program
  1489. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1490. --enable-jack use JACK audio [default=yes]
  1491. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1492. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1493. --disable-esdtest Do not try to compile and run a test ESD program
  1494. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1495. --enable-pipewire use Pipewire audio [default=yes]
  1496. --enable-pipewire-shared
  1497. dynamically load Pipewire support [default=yes]
  1498. --enable-pulseaudio use PulseAudio [default=yes]
  1499. --enable-pulseaudio-shared
  1500. dynamically load PulseAudio support [default=yes]
  1501. --enable-arts support the Analog Real Time Synthesizer
  1502. [default=yes]
  1503. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1504. --enable-nas support the NAS audio API [default=yes]
  1505. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1506. --enable-sndio support the sndio audio API [default=yes]
  1507. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1508. --enable-fusionsound use FusionSound audio driver [default=no]
  1509. --enable-fusionsound-shared
  1510. dynamically load fusionsound audio support
  1511. [default=yes]
  1512. --enable-diskaudio support the disk writer audio driver [default=yes]
  1513. --enable-dummyaudio support the dummy audio driver [default=yes]
  1514. --enable-libsamplerate use libsamplerate for audio rate conversion
  1515. [default=yes]
  1516. --enable-libsamplerate-shared
  1517. dynamically load libsamplerate [default=yes]
  1518. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1519. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1520. --enable-video-wayland use Wayland video driver [default=yes]
  1521. --enable-video-wayland-qt-touch
  1522. QtWayland server support for Wayland video driver
  1523. [default=yes]
  1524. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1525. --enable-libdecor use libdecor for Wayland client-side decorations
  1526. [default=yes]
  1527. --enable-libdecor-shared
  1528. dynamically load libdecor [default=yes]
  1529. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1530. --enable-video-x11 use X11 video driver [default=yes]
  1531. --enable-x11-shared dynamically load X11 support [default=maybe]
  1532. --enable-video-x11-xcursor
  1533. enable X11 Xcursor support [default=yes]
  1534. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1535. --enable-video-x11-xinput
  1536. enable X11 XInput extension for manymouse, tablets,
  1537. etc [default=yes]
  1538. --enable-video-x11-xfixes
  1539. enable X11 Xfixes support [default=yes]
  1540. --enable-video-x11-xrandr
  1541. enable X11 Xrandr extension for fullscreen
  1542. [default=yes]
  1543. --enable-video-x11-scrnsaver
  1544. enable X11 screensaver extension [default=yes]
  1545. --enable-video-x11-xshape
  1546. enable X11 XShape support [default=yes]
  1547. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1548. --enable-video-cocoa use Cocoa video driver [default=yes]
  1549. --enable-video-metal include Metal support [default=yes]
  1550. --enable-render-metal enable the Metal render driver [default=yes]
  1551. --enable-video-directfb use DirectFB video driver [default=no]
  1552. --enable-directfb-shared
  1553. dynamically load directfb support [default=yes]
  1554. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1555. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1556. --enable-video-dummy use dummy video driver [default=yes]
  1557. --enable-video-offscreen
  1558. use offscreen video driver [default=no]
  1559. --enable-video-opengl include OpenGL support [default=yes]
  1560. --enable-video-opengles include OpenGL ES support [default=yes]
  1561. --enable-video-opengles1
  1562. include OpenGL ES 1.1 support [default=yes]
  1563. --enable-video-opengles2
  1564. include OpenGL ES 2.0 support [default=yes]
  1565. --enable-video-vulkan include Vulkan support [default=yes]
  1566. --enable-libudev enable libudev support [default=yes]
  1567. --enable-dbus enable D-Bus support [default=yes]
  1568. --enable-ime enable IME support [default=yes]
  1569. --enable-ibus enable IBus support [default=yes]
  1570. --enable-fcitx enable fcitx support [default=yes]
  1571. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1572. --enable-pthreads use POSIX threads for multi-threading
  1573. [default=maybe]
  1574. --enable-pthread-sem use pthread semaphores [default=maybe]
  1575. --enable-directx use DirectX for Windows audio/video [default=yes]
  1576. --enable-xinput use Xinput for Windows [default=yes]
  1577. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1578. --enable-hidapi-joystick
  1579. use HIDAPI for low level joystick drivers
  1580. [default=yes]
  1581. --enable-hidapi-libusb use libusb for low level joystick drivers
  1582. [default=maybe]
  1583. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1584. UNIX [default=yes]
  1585. --enable-rpath use an rpath when linking SDL [default=yes]
  1586. --enable-backgrounding-signal
  1587. number to use for magic backgrounding signal or 'no'
  1588. [default=no]
  1589. --enable-foregrounding-signal
  1590. number to use for magic foregrounding signal or 'no'
  1591. [default=no]
  1592. --enable-joystick-virtual
  1593. enable virtual joystick APIs [default=yes]
  1594. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1595. --enable-sdl2-config Install sdl2-config [default=yes]
  1596. Optional Packages:
  1597. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1598. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1599. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1600. both]
  1601. --with-aix-soname=aix|svr4|both
  1602. shared library versioning (aka "SONAME") variant to
  1603. provide on AIX, [default=aix].
  1604. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1605. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1606. compiler's sysroot if not specified).
  1607. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1608. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1609. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1610. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1611. --with-x use the X Window System
  1612. Some influential environment variables:
  1613. CC C compiler command
  1614. CFLAGS C compiler flags
  1615. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1616. nonstandard directory <lib dir>
  1617. LIBS libraries to pass to the linker, e.g. -l<library>
  1618. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1619. you have headers in a nonstandard directory <include dir>
  1620. LT_SYS_LIBRARY_PATH
  1621. User-defined run-time library search path.
  1622. CPP C preprocessor
  1623. CXX C++ compiler command
  1624. CXXFLAGS C++ compiler flags
  1625. CXXCPP C++ preprocessor
  1626. PKG_CONFIG path to pkg-config utility
  1627. PKG_CONFIG_PATH
  1628. directories to add to pkg-config's search path
  1629. PKG_CONFIG_LIBDIR
  1630. path overriding pkg-config's built-in search path
  1631. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1632. JACK_LIBS linker flags for JACK, overriding pkg-config
  1633. PIPEWIRE_CFLAGS
  1634. C compiler flags for PIPEWIRE, overriding pkg-config
  1635. PIPEWIRE_LIBS
  1636. linker flags for PIPEWIRE, overriding pkg-config
  1637. PULSEAUDIO_CFLAGS
  1638. C compiler flags for PULSEAUDIO, overriding pkg-config
  1639. PULSEAUDIO_LIBS
  1640. linker flags for PULSEAUDIO, overriding pkg-config
  1641. FUSIONSOUND_CFLAGS
  1642. C compiler flags for FUSIONSOUND, overriding pkg-config
  1643. FUSIONSOUND_LIBS
  1644. linker flags for FUSIONSOUND, overriding pkg-config
  1645. DECOR_CFLAGS
  1646. C compiler flags for DECOR, overriding pkg-config
  1647. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1648. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1649. RPI_LIBS linker flags for RPI, overriding pkg-config
  1650. XMKMF Path to xmkmf, Makefile generator for X Window System
  1651. DIRECTFB_CFLAGS
  1652. C compiler flags for DIRECTFB, overriding pkg-config
  1653. DIRECTFB_LIBS
  1654. linker flags for DIRECTFB, overriding pkg-config
  1655. LIBDRM_CFLAGS
  1656. C compiler flags for LIBDRM, overriding pkg-config
  1657. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1658. LIBGBM_CFLAGS
  1659. C compiler flags for LIBGBM, overriding pkg-config
  1660. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1661. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1662. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1663. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1664. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1665. LIBUSB_CFLAGS
  1666. C compiler flags for LIBUSB, overriding pkg-config
  1667. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1668. Use these variables to override the choices made by `configure' or to help
  1669. it to find libraries and programs with nonstandard names/locations.
  1670. Report bugs to the package provider.
  1671. _ACEOF
  1672. ac_status=$?
  1673. fi
  1674. if test "$ac_init_help" = "recursive"; then
  1675. # If there are subdirs, report their specific --help.
  1676. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1677. test -d "$ac_dir" ||
  1678. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1679. continue
  1680. ac_builddir=.
  1681. case "$ac_dir" in
  1682. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1683. *)
  1684. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1685. # A ".." for each directory in $ac_dir_suffix.
  1686. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1687. case $ac_top_builddir_sub in
  1688. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1689. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1690. esac ;;
  1691. esac
  1692. ac_abs_top_builddir=$ac_pwd
  1693. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1694. # for backward compatibility:
  1695. ac_top_builddir=$ac_top_build_prefix
  1696. case $srcdir in
  1697. .) # We are building in place.
  1698. ac_srcdir=.
  1699. ac_top_srcdir=$ac_top_builddir_sub
  1700. ac_abs_top_srcdir=$ac_pwd ;;
  1701. [\\/]* | ?:[\\/]* ) # Absolute name.
  1702. ac_srcdir=$srcdir$ac_dir_suffix;
  1703. ac_top_srcdir=$srcdir
  1704. ac_abs_top_srcdir=$srcdir ;;
  1705. *) # Relative name.
  1706. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1707. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1708. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1709. esac
  1710. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1711. cd "$ac_dir" || { ac_status=$?; continue; }
  1712. # Check for guested configure.
  1713. if test -f "$ac_srcdir/configure.gnu"; then
  1714. echo &&
  1715. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1716. elif test -f "$ac_srcdir/configure"; then
  1717. echo &&
  1718. $SHELL "$ac_srcdir/configure" --help=recursive
  1719. else
  1720. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1721. fi || ac_status=$?
  1722. cd "$ac_pwd" || { ac_status=$?; break; }
  1723. done
  1724. fi
  1725. test -n "$ac_init_help" && exit $ac_status
  1726. if $ac_init_version; then
  1727. cat <<\_ACEOF
  1728. configure
  1729. generated by GNU Autoconf 2.69
  1730. Copyright (C) 2012 Free Software Foundation, Inc.
  1731. This configure script is free software; the Free Software Foundation
  1732. gives unlimited permission to copy, distribute and modify it.
  1733. _ACEOF
  1734. exit
  1735. fi
  1736. ## ------------------------ ##
  1737. ## Autoconf initialization. ##
  1738. ## ------------------------ ##
  1739. # ac_fn_c_try_compile LINENO
  1740. # --------------------------
  1741. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1742. ac_fn_c_try_compile ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. rm -f conftest.$ac_objext
  1746. if { { ac_try="$ac_compile"
  1747. case "(($ac_try" in
  1748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1749. *) ac_try_echo=$ac_try;;
  1750. esac
  1751. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1752. $as_echo "$ac_try_echo"; } >&5
  1753. (eval "$ac_compile") 2>conftest.err
  1754. ac_status=$?
  1755. if test -s conftest.err; then
  1756. grep -v '^ *+' conftest.err >conftest.er1
  1757. cat conftest.er1 >&5
  1758. mv -f conftest.er1 conftest.err
  1759. fi
  1760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1761. test $ac_status = 0; } && {
  1762. test -z "$ac_c_werror_flag" ||
  1763. test ! -s conftest.err
  1764. } && test -s conftest.$ac_objext; then :
  1765. ac_retval=0
  1766. else
  1767. $as_echo "$as_me: failed program was:" >&5
  1768. sed 's/^/| /' conftest.$ac_ext >&5
  1769. ac_retval=1
  1770. fi
  1771. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1772. as_fn_set_status $ac_retval
  1773. } # ac_fn_c_try_compile
  1774. # ac_fn_c_try_link LINENO
  1775. # -----------------------
  1776. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1777. ac_fn_c_try_link ()
  1778. {
  1779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1780. rm -f conftest.$ac_objext conftest$ac_exeext
  1781. if { { ac_try="$ac_link"
  1782. case "(($ac_try" in
  1783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1784. *) ac_try_echo=$ac_try;;
  1785. esac
  1786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1787. $as_echo "$ac_try_echo"; } >&5
  1788. (eval "$ac_link") 2>conftest.err
  1789. ac_status=$?
  1790. if test -s conftest.err; then
  1791. grep -v '^ *+' conftest.err >conftest.er1
  1792. cat conftest.er1 >&5
  1793. mv -f conftest.er1 conftest.err
  1794. fi
  1795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1796. test $ac_status = 0; } && {
  1797. test -z "$ac_c_werror_flag" ||
  1798. test ! -s conftest.err
  1799. } && test -s conftest$ac_exeext && {
  1800. test "$cross_compiling" = yes ||
  1801. test -x conftest$ac_exeext
  1802. }; then :
  1803. ac_retval=0
  1804. else
  1805. $as_echo "$as_me: failed program was:" >&5
  1806. sed 's/^/| /' conftest.$ac_ext >&5
  1807. ac_retval=1
  1808. fi
  1809. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1810. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1811. # interfere with the next link command; also delete a directory that is
  1812. # left behind by Apple's compiler. We do this before executing the actions.
  1813. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1814. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1815. as_fn_set_status $ac_retval
  1816. } # ac_fn_c_try_link
  1817. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1818. # -------------------------------------------------------
  1819. # Tests whether HEADER exists and can be compiled using the include files in
  1820. # INCLUDES, setting the cache variable VAR accordingly.
  1821. ac_fn_c_check_header_compile ()
  1822. {
  1823. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1825. $as_echo_n "checking for $2... " >&6; }
  1826. if eval \${$3+:} false; then :
  1827. $as_echo_n "(cached) " >&6
  1828. else
  1829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1830. /* end confdefs.h. */
  1831. $4
  1832. #include <$2>
  1833. _ACEOF
  1834. if ac_fn_c_try_compile "$LINENO"; then :
  1835. eval "$3=yes"
  1836. else
  1837. eval "$3=no"
  1838. fi
  1839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1840. fi
  1841. eval ac_res=\$$3
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1843. $as_echo "$ac_res" >&6; }
  1844. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1845. } # ac_fn_c_check_header_compile
  1846. # ac_fn_c_try_cpp LINENO
  1847. # ----------------------
  1848. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1849. ac_fn_c_try_cpp ()
  1850. {
  1851. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1852. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1853. case "(($ac_try" in
  1854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1855. *) ac_try_echo=$ac_try;;
  1856. esac
  1857. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1858. $as_echo "$ac_try_echo"; } >&5
  1859. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1860. ac_status=$?
  1861. if test -s conftest.err; then
  1862. grep -v '^ *+' conftest.err >conftest.er1
  1863. cat conftest.er1 >&5
  1864. mv -f conftest.er1 conftest.err
  1865. fi
  1866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1867. test $ac_status = 0; } > conftest.i && {
  1868. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1869. test ! -s conftest.err
  1870. }; then :
  1871. ac_retval=0
  1872. else
  1873. $as_echo "$as_me: failed program was:" >&5
  1874. sed 's/^/| /' conftest.$ac_ext >&5
  1875. ac_retval=1
  1876. fi
  1877. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1878. as_fn_set_status $ac_retval
  1879. } # ac_fn_c_try_cpp
  1880. # ac_fn_c_try_run LINENO
  1881. # ----------------------
  1882. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1883. # that executables *can* be run.
  1884. ac_fn_c_try_run ()
  1885. {
  1886. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1887. if { { ac_try="$ac_link"
  1888. case "(($ac_try" in
  1889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1890. *) ac_try_echo=$ac_try;;
  1891. esac
  1892. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1893. $as_echo "$ac_try_echo"; } >&5
  1894. (eval "$ac_link") 2>&5
  1895. ac_status=$?
  1896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1897. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1898. { { case "(($ac_try" in
  1899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1900. *) ac_try_echo=$ac_try;;
  1901. esac
  1902. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1903. $as_echo "$ac_try_echo"; } >&5
  1904. (eval "$ac_try") 2>&5
  1905. ac_status=$?
  1906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1907. test $ac_status = 0; }; }; then :
  1908. ac_retval=0
  1909. else
  1910. $as_echo "$as_me: program exited with status $ac_status" >&5
  1911. $as_echo "$as_me: failed program was:" >&5
  1912. sed 's/^/| /' conftest.$ac_ext >&5
  1913. ac_retval=$ac_status
  1914. fi
  1915. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1916. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1917. as_fn_set_status $ac_retval
  1918. } # ac_fn_c_try_run
  1919. # ac_fn_c_check_func LINENO FUNC VAR
  1920. # ----------------------------------
  1921. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1922. ac_fn_c_check_func ()
  1923. {
  1924. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1926. $as_echo_n "checking for $2... " >&6; }
  1927. if eval \${$3+:} false; then :
  1928. $as_echo_n "(cached) " >&6
  1929. else
  1930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1931. /* end confdefs.h. */
  1932. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1933. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1934. #define $2 innocuous_$2
  1935. /* System header to define __stub macros and hopefully few prototypes,
  1936. which can conflict with char $2 (); below.
  1937. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1938. <limits.h> exists even on freestanding compilers. */
  1939. #ifdef __STDC__
  1940. # include <limits.h>
  1941. #else
  1942. # include <assert.h>
  1943. #endif
  1944. #undef $2
  1945. /* Override any GCC internal prototype to avoid an error.
  1946. Use char because int might match the return type of a GCC
  1947. builtin and then its argument prototype would still apply. */
  1948. #ifdef __cplusplus
  1949. extern "C"
  1950. #endif
  1951. char $2 ();
  1952. /* The GNU C library defines this for functions which it implements
  1953. to always fail with ENOSYS. Some functions are actually named
  1954. something starting with __ and the normal name is an alias. */
  1955. #if defined __stub_$2 || defined __stub___$2
  1956. choke me
  1957. #endif
  1958. int
  1959. main ()
  1960. {
  1961. return $2 ();
  1962. ;
  1963. return 0;
  1964. }
  1965. _ACEOF
  1966. if ac_fn_c_try_link "$LINENO"; then :
  1967. eval "$3=yes"
  1968. else
  1969. eval "$3=no"
  1970. fi
  1971. rm -f core conftest.err conftest.$ac_objext \
  1972. conftest$ac_exeext conftest.$ac_ext
  1973. fi
  1974. eval ac_res=\$$3
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1976. $as_echo "$ac_res" >&6; }
  1977. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1978. } # ac_fn_c_check_func
  1979. # ac_fn_cxx_try_compile LINENO
  1980. # ----------------------------
  1981. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1982. ac_fn_cxx_try_compile ()
  1983. {
  1984. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1985. rm -f conftest.$ac_objext
  1986. if { { ac_try="$ac_compile"
  1987. case "(($ac_try" in
  1988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1989. *) ac_try_echo=$ac_try;;
  1990. esac
  1991. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1992. $as_echo "$ac_try_echo"; } >&5
  1993. (eval "$ac_compile") 2>conftest.err
  1994. ac_status=$?
  1995. if test -s conftest.err; then
  1996. grep -v '^ *+' conftest.err >conftest.er1
  1997. cat conftest.er1 >&5
  1998. mv -f conftest.er1 conftest.err
  1999. fi
  2000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2001. test $ac_status = 0; } && {
  2002. test -z "$ac_cxx_werror_flag" ||
  2003. test ! -s conftest.err
  2004. } && test -s conftest.$ac_objext; then :
  2005. ac_retval=0
  2006. else
  2007. $as_echo "$as_me: failed program was:" >&5
  2008. sed 's/^/| /' conftest.$ac_ext >&5
  2009. ac_retval=1
  2010. fi
  2011. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2012. as_fn_set_status $ac_retval
  2013. } # ac_fn_cxx_try_compile
  2014. # ac_fn_cxx_try_cpp LINENO
  2015. # ------------------------
  2016. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2017. ac_fn_cxx_try_cpp ()
  2018. {
  2019. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2020. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2021. case "(($ac_try" in
  2022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2023. *) ac_try_echo=$ac_try;;
  2024. esac
  2025. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2026. $as_echo "$ac_try_echo"; } >&5
  2027. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2028. ac_status=$?
  2029. if test -s conftest.err; then
  2030. grep -v '^ *+' conftest.err >conftest.er1
  2031. cat conftest.er1 >&5
  2032. mv -f conftest.er1 conftest.err
  2033. fi
  2034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2035. test $ac_status = 0; } > conftest.i && {
  2036. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2037. test ! -s conftest.err
  2038. }; then :
  2039. ac_retval=0
  2040. else
  2041. $as_echo "$as_me: failed program was:" >&5
  2042. sed 's/^/| /' conftest.$ac_ext >&5
  2043. ac_retval=1
  2044. fi
  2045. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2046. as_fn_set_status $ac_retval
  2047. } # ac_fn_cxx_try_cpp
  2048. # ac_fn_cxx_try_link LINENO
  2049. # -------------------------
  2050. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2051. ac_fn_cxx_try_link ()
  2052. {
  2053. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2054. rm -f conftest.$ac_objext conftest$ac_exeext
  2055. if { { ac_try="$ac_link"
  2056. case "(($ac_try" in
  2057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2058. *) ac_try_echo=$ac_try;;
  2059. esac
  2060. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2061. $as_echo "$ac_try_echo"; } >&5
  2062. (eval "$ac_link") 2>conftest.err
  2063. ac_status=$?
  2064. if test -s conftest.err; then
  2065. grep -v '^ *+' conftest.err >conftest.er1
  2066. cat conftest.er1 >&5
  2067. mv -f conftest.er1 conftest.err
  2068. fi
  2069. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2070. test $ac_status = 0; } && {
  2071. test -z "$ac_cxx_werror_flag" ||
  2072. test ! -s conftest.err
  2073. } && test -s conftest$ac_exeext && {
  2074. test "$cross_compiling" = yes ||
  2075. test -x conftest$ac_exeext
  2076. }; then :
  2077. ac_retval=0
  2078. else
  2079. $as_echo "$as_me: failed program was:" >&5
  2080. sed 's/^/| /' conftest.$ac_ext >&5
  2081. ac_retval=1
  2082. fi
  2083. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2084. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2085. # interfere with the next link command; also delete a directory that is
  2086. # left behind by Apple's compiler. We do this before executing the actions.
  2087. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2088. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2089. as_fn_set_status $ac_retval
  2090. } # ac_fn_cxx_try_link
  2091. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2092. # -------------------------------------------------------
  2093. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2094. # the include files in INCLUDES and setting the cache variable VAR
  2095. # accordingly.
  2096. ac_fn_c_check_header_mongrel ()
  2097. {
  2098. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2099. if eval \${$3+:} false; then :
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2101. $as_echo_n "checking for $2... " >&6; }
  2102. if eval \${$3+:} false; then :
  2103. $as_echo_n "(cached) " >&6
  2104. fi
  2105. eval ac_res=\$$3
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2107. $as_echo "$ac_res" >&6; }
  2108. else
  2109. # Is the header compilable?
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2111. $as_echo_n "checking $2 usability... " >&6; }
  2112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2113. /* end confdefs.h. */
  2114. $4
  2115. #include <$2>
  2116. _ACEOF
  2117. if ac_fn_c_try_compile "$LINENO"; then :
  2118. ac_header_compiler=yes
  2119. else
  2120. ac_header_compiler=no
  2121. fi
  2122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2124. $as_echo "$ac_header_compiler" >&6; }
  2125. # Is the header present?
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2127. $as_echo_n "checking $2 presence... " >&6; }
  2128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2129. /* end confdefs.h. */
  2130. #include <$2>
  2131. _ACEOF
  2132. if ac_fn_c_try_cpp "$LINENO"; then :
  2133. ac_header_preproc=yes
  2134. else
  2135. ac_header_preproc=no
  2136. fi
  2137. rm -f conftest.err conftest.i conftest.$ac_ext
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2139. $as_echo "$ac_header_preproc" >&6; }
  2140. # So? What about this header?
  2141. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2142. yes:no: )
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2144. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2146. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2147. ;;
  2148. no:yes:* )
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2150. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2152. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2154. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2156. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2158. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2159. ;;
  2160. esac
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2162. $as_echo_n "checking for $2... " >&6; }
  2163. if eval \${$3+:} false; then :
  2164. $as_echo_n "(cached) " >&6
  2165. else
  2166. eval "$3=\$ac_header_compiler"
  2167. fi
  2168. eval ac_res=\$$3
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2170. $as_echo "$ac_res" >&6; }
  2171. fi
  2172. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2173. } # ac_fn_c_check_header_mongrel
  2174. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2175. # -------------------------------------------
  2176. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2177. # variable VAR accordingly.
  2178. ac_fn_c_check_type ()
  2179. {
  2180. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2182. $as_echo_n "checking for $2... " >&6; }
  2183. if eval \${$3+:} false; then :
  2184. $as_echo_n "(cached) " >&6
  2185. else
  2186. eval "$3=no"
  2187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2188. /* end confdefs.h. */
  2189. $4
  2190. int
  2191. main ()
  2192. {
  2193. if (sizeof ($2))
  2194. return 0;
  2195. ;
  2196. return 0;
  2197. }
  2198. _ACEOF
  2199. if ac_fn_c_try_compile "$LINENO"; then :
  2200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2201. /* end confdefs.h. */
  2202. $4
  2203. int
  2204. main ()
  2205. {
  2206. if (sizeof (($2)))
  2207. return 0;
  2208. ;
  2209. return 0;
  2210. }
  2211. _ACEOF
  2212. if ac_fn_c_try_compile "$LINENO"; then :
  2213. else
  2214. eval "$3=yes"
  2215. fi
  2216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2217. fi
  2218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2219. fi
  2220. eval ac_res=\$$3
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2222. $as_echo "$ac_res" >&6; }
  2223. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2224. } # ac_fn_c_check_type
  2225. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2226. # ----------------------------------------------------
  2227. # Tries to find if the field MEMBER exists in type AGGR, after including
  2228. # INCLUDES, setting cache variable VAR accordingly.
  2229. ac_fn_c_check_member ()
  2230. {
  2231. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2233. $as_echo_n "checking for $2.$3... " >&6; }
  2234. if eval \${$4+:} false; then :
  2235. $as_echo_n "(cached) " >&6
  2236. else
  2237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2238. /* end confdefs.h. */
  2239. $5
  2240. int
  2241. main ()
  2242. {
  2243. static $2 ac_aggr;
  2244. if (ac_aggr.$3)
  2245. return 0;
  2246. ;
  2247. return 0;
  2248. }
  2249. _ACEOF
  2250. if ac_fn_c_try_compile "$LINENO"; then :
  2251. eval "$4=yes"
  2252. else
  2253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2254. /* end confdefs.h. */
  2255. $5
  2256. int
  2257. main ()
  2258. {
  2259. static $2 ac_aggr;
  2260. if (sizeof ac_aggr.$3)
  2261. return 0;
  2262. ;
  2263. return 0;
  2264. }
  2265. _ACEOF
  2266. if ac_fn_c_try_compile "$LINENO"; then :
  2267. eval "$4=yes"
  2268. else
  2269. eval "$4=no"
  2270. fi
  2271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2272. fi
  2273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2274. fi
  2275. eval ac_res=\$$4
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2277. $as_echo "$ac_res" >&6; }
  2278. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2279. } # ac_fn_c_check_member
  2280. cat >config.log <<_ACEOF
  2281. This file contains any messages produced by compilers while
  2282. running configure, to aid debugging if configure makes a mistake.
  2283. It was created by $as_me, which was
  2284. generated by GNU Autoconf 2.69. Invocation command line was
  2285. $ $0 $@
  2286. _ACEOF
  2287. exec 5>>config.log
  2288. {
  2289. cat <<_ASUNAME
  2290. ## --------- ##
  2291. ## Platform. ##
  2292. ## --------- ##
  2293. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2294. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2295. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2296. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2297. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2298. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2299. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2300. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2301. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2302. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2303. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2304. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2305. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2306. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2307. _ASUNAME
  2308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2309. for as_dir in $PATH
  2310. do
  2311. IFS=$as_save_IFS
  2312. test -z "$as_dir" && as_dir=.
  2313. $as_echo "PATH: $as_dir"
  2314. done
  2315. IFS=$as_save_IFS
  2316. } >&5
  2317. cat >&5 <<_ACEOF
  2318. ## ----------- ##
  2319. ## Core tests. ##
  2320. ## ----------- ##
  2321. _ACEOF
  2322. # Keep a trace of the command line.
  2323. # Strip out --no-create and --no-recursion so they do not pile up.
  2324. # Strip out --silent because we don't want to record it for future runs.
  2325. # Also quote any args containing shell meta-characters.
  2326. # Make two passes to allow for proper duplicate-argument suppression.
  2327. ac_configure_args=
  2328. ac_configure_args0=
  2329. ac_configure_args1=
  2330. ac_must_keep_next=false
  2331. for ac_pass in 1 2
  2332. do
  2333. for ac_arg
  2334. do
  2335. case $ac_arg in
  2336. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2337. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2338. | -silent | --silent | --silen | --sile | --sil)
  2339. continue ;;
  2340. *\'*)
  2341. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2342. esac
  2343. case $ac_pass in
  2344. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2345. 2)
  2346. as_fn_append ac_configure_args1 " '$ac_arg'"
  2347. if test $ac_must_keep_next = true; then
  2348. ac_must_keep_next=false # Got value, back to normal.
  2349. else
  2350. case $ac_arg in
  2351. *=* | --config-cache | -C | -disable-* | --disable-* \
  2352. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2353. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2354. | -with-* | --with-* | -without-* | --without-* | --x)
  2355. case "$ac_configure_args0 " in
  2356. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2357. esac
  2358. ;;
  2359. -* ) ac_must_keep_next=true ;;
  2360. esac
  2361. fi
  2362. as_fn_append ac_configure_args " '$ac_arg'"
  2363. ;;
  2364. esac
  2365. done
  2366. done
  2367. { ac_configure_args0=; unset ac_configure_args0;}
  2368. { ac_configure_args1=; unset ac_configure_args1;}
  2369. # When interrupted or exit'd, cleanup temporary files, and complete
  2370. # config.log. We remove comments because anyway the quotes in there
  2371. # would cause problems or look ugly.
  2372. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2373. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2374. trap 'exit_status=$?
  2375. # Save into config.log some information that might help in debugging.
  2376. {
  2377. echo
  2378. $as_echo "## ---------------- ##
  2379. ## Cache variables. ##
  2380. ## ---------------- ##"
  2381. echo
  2382. # The following way of writing the cache mishandles newlines in values,
  2383. (
  2384. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2385. eval ac_val=\$$ac_var
  2386. case $ac_val in #(
  2387. *${as_nl}*)
  2388. case $ac_var in #(
  2389. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2390. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2391. esac
  2392. case $ac_var in #(
  2393. _ | IFS | as_nl) ;; #(
  2394. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2395. *) { eval $ac_var=; unset $ac_var;} ;;
  2396. esac ;;
  2397. esac
  2398. done
  2399. (set) 2>&1 |
  2400. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2401. *${as_nl}ac_space=\ *)
  2402. sed -n \
  2403. "s/'\''/'\''\\\\'\'''\''/g;
  2404. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2405. ;; #(
  2406. *)
  2407. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2408. ;;
  2409. esac |
  2410. sort
  2411. )
  2412. echo
  2413. $as_echo "## ----------------- ##
  2414. ## Output variables. ##
  2415. ## ----------------- ##"
  2416. echo
  2417. for ac_var in $ac_subst_vars
  2418. do
  2419. eval ac_val=\$$ac_var
  2420. case $ac_val in
  2421. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2422. esac
  2423. $as_echo "$ac_var='\''$ac_val'\''"
  2424. done | sort
  2425. echo
  2426. if test -n "$ac_subst_files"; then
  2427. $as_echo "## ------------------- ##
  2428. ## File substitutions. ##
  2429. ## ------------------- ##"
  2430. echo
  2431. for ac_var in $ac_subst_files
  2432. do
  2433. eval ac_val=\$$ac_var
  2434. case $ac_val in
  2435. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2436. esac
  2437. $as_echo "$ac_var='\''$ac_val'\''"
  2438. done | sort
  2439. echo
  2440. fi
  2441. if test -s confdefs.h; then
  2442. $as_echo "## ----------- ##
  2443. ## confdefs.h. ##
  2444. ## ----------- ##"
  2445. echo
  2446. cat confdefs.h
  2447. echo
  2448. fi
  2449. test "$ac_signal" != 0 &&
  2450. $as_echo "$as_me: caught signal $ac_signal"
  2451. $as_echo "$as_me: exit $exit_status"
  2452. } >&5
  2453. rm -f core *.core core.conftest.* &&
  2454. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2455. exit $exit_status
  2456. ' 0
  2457. for ac_signal in 1 2 13 15; do
  2458. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2459. done
  2460. ac_signal=0
  2461. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2462. rm -f -r conftest* confdefs.h
  2463. $as_echo "/* confdefs.h */" > confdefs.h
  2464. # Predefined preprocessor variables.
  2465. cat >>confdefs.h <<_ACEOF
  2466. #define PACKAGE_NAME "$PACKAGE_NAME"
  2467. _ACEOF
  2468. cat >>confdefs.h <<_ACEOF
  2469. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2470. _ACEOF
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2473. _ACEOF
  2474. cat >>confdefs.h <<_ACEOF
  2475. #define PACKAGE_STRING "$PACKAGE_STRING"
  2476. _ACEOF
  2477. cat >>confdefs.h <<_ACEOF
  2478. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2479. _ACEOF
  2480. cat >>confdefs.h <<_ACEOF
  2481. #define PACKAGE_URL "$PACKAGE_URL"
  2482. _ACEOF
  2483. # Let the site file select an alternate cache file if it wants to.
  2484. # Prefer an explicitly selected file to automatically selected ones.
  2485. ac_site_file1=NONE
  2486. ac_site_file2=NONE
  2487. if test -n "$CONFIG_SITE"; then
  2488. # We do not want a PATH search for config.site.
  2489. case $CONFIG_SITE in #((
  2490. -*) ac_site_file1=./$CONFIG_SITE;;
  2491. */*) ac_site_file1=$CONFIG_SITE;;
  2492. *) ac_site_file1=./$CONFIG_SITE;;
  2493. esac
  2494. elif test "x$prefix" != xNONE; then
  2495. ac_site_file1=$prefix/share/config.site
  2496. ac_site_file2=$prefix/etc/config.site
  2497. else
  2498. ac_site_file1=$ac_default_prefix/share/config.site
  2499. ac_site_file2=$ac_default_prefix/etc/config.site
  2500. fi
  2501. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2502. do
  2503. test "x$ac_site_file" = xNONE && continue
  2504. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2506. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2507. sed 's/^/| /' "$ac_site_file" >&5
  2508. . "$ac_site_file" \
  2509. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2510. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2511. as_fn_error $? "failed to load site script $ac_site_file
  2512. See \`config.log' for more details" "$LINENO" 5; }
  2513. fi
  2514. done
  2515. if test -r "$cache_file"; then
  2516. # Some versions of bash will fail to source /dev/null (special files
  2517. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2518. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2520. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2521. case $cache_file in
  2522. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2523. *) . "./$cache_file";;
  2524. esac
  2525. fi
  2526. else
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2528. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2529. >$cache_file
  2530. fi
  2531. # Check that the precious variables saved in the cache have kept the same
  2532. # value.
  2533. ac_cache_corrupted=false
  2534. for ac_var in $ac_precious_vars; do
  2535. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2536. eval ac_new_set=\$ac_env_${ac_var}_set
  2537. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2538. eval ac_new_val=\$ac_env_${ac_var}_value
  2539. case $ac_old_set,$ac_new_set in
  2540. set,)
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2542. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2543. ac_cache_corrupted=: ;;
  2544. ,set)
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2546. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2547. ac_cache_corrupted=: ;;
  2548. ,);;
  2549. *)
  2550. if test "x$ac_old_val" != "x$ac_new_val"; then
  2551. # differences in whitespace do not lead to failure.
  2552. ac_old_val_w=`echo x $ac_old_val`
  2553. ac_new_val_w=`echo x $ac_new_val`
  2554. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2556. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2557. ac_cache_corrupted=:
  2558. else
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2560. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2561. eval $ac_var=\$ac_old_val
  2562. fi
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2564. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2566. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2567. fi;;
  2568. esac
  2569. # Pass precious variables to config.status.
  2570. if test "$ac_new_set" = set; then
  2571. case $ac_new_val in
  2572. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2573. *) ac_arg=$ac_var=$ac_new_val ;;
  2574. esac
  2575. case " $ac_configure_args " in
  2576. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2577. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2578. esac
  2579. fi
  2580. done
  2581. if $ac_cache_corrupted; then
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2583. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2585. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2586. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2587. fi
  2588. ## -------------------- ##
  2589. ## Main body of script. ##
  2590. ## -------------------- ##
  2591. ac_ext=c
  2592. ac_cpp='$CPP $CPPFLAGS'
  2593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2596. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2597. ac_aux_dir=
  2598. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2599. if test -f "$ac_dir/install-sh"; then
  2600. ac_aux_dir=$ac_dir
  2601. ac_install_sh="$ac_aux_dir/install-sh -c"
  2602. break
  2603. elif test -f "$ac_dir/install.sh"; then
  2604. ac_aux_dir=$ac_dir
  2605. ac_install_sh="$ac_aux_dir/install.sh -c"
  2606. break
  2607. elif test -f "$ac_dir/shtool"; then
  2608. ac_aux_dir=$ac_dir
  2609. ac_install_sh="$ac_aux_dir/shtool install -c"
  2610. break
  2611. fi
  2612. done
  2613. if test -z "$ac_aux_dir"; then
  2614. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2615. fi
  2616. # These three variables are undocumented and unsupported,
  2617. # and are intended to be withdrawn in a future Autoconf release.
  2618. # They can cause serious problems if a builder's source tree is in a directory
  2619. # whose full name contains unusual characters.
  2620. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2621. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2622. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2623. orig_CFLAGS="$CFLAGS"
  2624. # See docs/release_checklist.md
  2625. SDL_MAJOR_VERSION=2
  2626. SDL_MINOR_VERSION=23
  2627. SDL_MICRO_VERSION=0
  2628. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2629. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  2630. case "$SDL_MINOR_VERSION" in #(
  2631. *[02468]) :
  2632. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  2633. *) :
  2634. SDL_INTERFACE_AGE=0 ;; #(
  2635. *) :
  2636. ;;
  2637. esac
  2638. # libtool versioning
  2639. case `pwd` in
  2640. *\ * | *\ *)
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2642. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2643. esac
  2644. macro_version='2.4.6'
  2645. macro_revision='2.4.6'
  2646. ltmain=$ac_aux_dir/ltmain.sh
  2647. # Make sure we can run config.sub.
  2648. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2649. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2651. $as_echo_n "checking build system type... " >&6; }
  2652. if ${ac_cv_build+:} false; then :
  2653. $as_echo_n "(cached) " >&6
  2654. else
  2655. ac_build_alias=$build_alias
  2656. test "x$ac_build_alias" = x &&
  2657. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2658. test "x$ac_build_alias" = x &&
  2659. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2660. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2661. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2662. fi
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2664. $as_echo "$ac_cv_build" >&6; }
  2665. case $ac_cv_build in
  2666. *-*-*) ;;
  2667. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2668. esac
  2669. build=$ac_cv_build
  2670. ac_save_IFS=$IFS; IFS='-'
  2671. set x $ac_cv_build
  2672. shift
  2673. build_cpu=$1
  2674. build_vendor=$2
  2675. shift; shift
  2676. # Remember, the first character of IFS is used to create $*,
  2677. # except with old shells:
  2678. build_os=$*
  2679. IFS=$ac_save_IFS
  2680. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2682. $as_echo_n "checking host system type... " >&6; }
  2683. if ${ac_cv_host+:} false; then :
  2684. $as_echo_n "(cached) " >&6
  2685. else
  2686. if test "x$host_alias" = x; then
  2687. ac_cv_host=$ac_cv_build
  2688. else
  2689. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2690. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2691. fi
  2692. fi
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2694. $as_echo "$ac_cv_host" >&6; }
  2695. case $ac_cv_host in
  2696. *-*-*) ;;
  2697. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2698. esac
  2699. host=$ac_cv_host
  2700. ac_save_IFS=$IFS; IFS='-'
  2701. set x $ac_cv_host
  2702. shift
  2703. host_cpu=$1
  2704. host_vendor=$2
  2705. shift; shift
  2706. # Remember, the first character of IFS is used to create $*,
  2707. # except with old shells:
  2708. host_os=$*
  2709. IFS=$ac_save_IFS
  2710. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2711. # Backslashify metacharacters that are still active within
  2712. # double-quoted strings.
  2713. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2714. # Same as above, but do not quote variable references.
  2715. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2716. # Sed substitution to delay expansion of an escaped shell variable in a
  2717. # double_quote_subst'ed string.
  2718. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2719. # Sed substitution to delay expansion of an escaped single quote.
  2720. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2721. # Sed substitution to avoid accidental globbing in evaled expressions
  2722. no_glob_subst='s/\*/\\\*/g'
  2723. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2724. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2725. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2727. $as_echo_n "checking how to print strings... " >&6; }
  2728. # Test print first, because it will be a builtin if present.
  2729. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2730. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2731. ECHO='print -r --'
  2732. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2733. ECHO='printf %s\n'
  2734. else
  2735. # Use this function as a fallback that always works.
  2736. func_fallback_echo ()
  2737. {
  2738. eval 'cat <<_LTECHO_EOF
  2739. $1
  2740. _LTECHO_EOF'
  2741. }
  2742. ECHO='func_fallback_echo'
  2743. fi
  2744. # func_echo_all arg...
  2745. # Invoke $ECHO with all args, space-separated.
  2746. func_echo_all ()
  2747. {
  2748. $ECHO ""
  2749. }
  2750. case $ECHO in
  2751. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2752. $as_echo "printf" >&6; } ;;
  2753. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2754. $as_echo "print -r" >&6; } ;;
  2755. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2756. $as_echo "cat" >&6; } ;;
  2757. esac
  2758. ac_ext=c
  2759. ac_cpp='$CPP $CPPFLAGS'
  2760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2763. if test -n "$ac_tool_prefix"; then
  2764. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2765. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2767. $as_echo_n "checking for $ac_word... " >&6; }
  2768. if ${ac_cv_prog_CC+:} false; then :
  2769. $as_echo_n "(cached) " >&6
  2770. else
  2771. if test -n "$CC"; then
  2772. ac_cv_prog_CC="$CC" # Let the user override the test.
  2773. else
  2774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2775. for as_dir in $PATH
  2776. do
  2777. IFS=$as_save_IFS
  2778. test -z "$as_dir" && as_dir=.
  2779. for ac_exec_ext in '' $ac_executable_extensions; do
  2780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2781. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2783. break 2
  2784. fi
  2785. done
  2786. done
  2787. IFS=$as_save_IFS
  2788. fi
  2789. fi
  2790. CC=$ac_cv_prog_CC
  2791. if test -n "$CC"; then
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2793. $as_echo "$CC" >&6; }
  2794. else
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2796. $as_echo "no" >&6; }
  2797. fi
  2798. fi
  2799. if test -z "$ac_cv_prog_CC"; then
  2800. ac_ct_CC=$CC
  2801. # Extract the first word of "gcc", so it can be a program name with args.
  2802. set dummy gcc; ac_word=$2
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2804. $as_echo_n "checking for $ac_word... " >&6; }
  2805. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2806. $as_echo_n "(cached) " >&6
  2807. else
  2808. if test -n "$ac_ct_CC"; then
  2809. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2810. else
  2811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2812. for as_dir in $PATH
  2813. do
  2814. IFS=$as_save_IFS
  2815. test -z "$as_dir" && as_dir=.
  2816. for ac_exec_ext in '' $ac_executable_extensions; do
  2817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2818. ac_cv_prog_ac_ct_CC="gcc"
  2819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2820. break 2
  2821. fi
  2822. done
  2823. done
  2824. IFS=$as_save_IFS
  2825. fi
  2826. fi
  2827. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2828. if test -n "$ac_ct_CC"; then
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2830. $as_echo "$ac_ct_CC" >&6; }
  2831. else
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2833. $as_echo "no" >&6; }
  2834. fi
  2835. if test "x$ac_ct_CC" = x; then
  2836. CC=""
  2837. else
  2838. case $cross_compiling:$ac_tool_warned in
  2839. yes:)
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2841. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2842. ac_tool_warned=yes ;;
  2843. esac
  2844. CC=$ac_ct_CC
  2845. fi
  2846. else
  2847. CC="$ac_cv_prog_CC"
  2848. fi
  2849. if test -z "$CC"; then
  2850. if test -n "$ac_tool_prefix"; then
  2851. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2852. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2854. $as_echo_n "checking for $ac_word... " >&6; }
  2855. if ${ac_cv_prog_CC+:} false; then :
  2856. $as_echo_n "(cached) " >&6
  2857. else
  2858. if test -n "$CC"; then
  2859. ac_cv_prog_CC="$CC" # Let the user override the test.
  2860. else
  2861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2862. for as_dir in $PATH
  2863. do
  2864. IFS=$as_save_IFS
  2865. test -z "$as_dir" && as_dir=.
  2866. for ac_exec_ext in '' $ac_executable_extensions; do
  2867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2868. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2870. break 2
  2871. fi
  2872. done
  2873. done
  2874. IFS=$as_save_IFS
  2875. fi
  2876. fi
  2877. CC=$ac_cv_prog_CC
  2878. if test -n "$CC"; then
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2880. $as_echo "$CC" >&6; }
  2881. else
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2883. $as_echo "no" >&6; }
  2884. fi
  2885. fi
  2886. fi
  2887. if test -z "$CC"; then
  2888. # Extract the first word of "cc", so it can be a program name with args.
  2889. set dummy cc; ac_word=$2
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2891. $as_echo_n "checking for $ac_word... " >&6; }
  2892. if ${ac_cv_prog_CC+:} false; then :
  2893. $as_echo_n "(cached) " >&6
  2894. else
  2895. if test -n "$CC"; then
  2896. ac_cv_prog_CC="$CC" # Let the user override the test.
  2897. else
  2898. ac_prog_rejected=no
  2899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2900. for as_dir in $PATH
  2901. do
  2902. IFS=$as_save_IFS
  2903. test -z "$as_dir" && as_dir=.
  2904. for ac_exec_ext in '' $ac_executable_extensions; do
  2905. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2906. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2907. ac_prog_rejected=yes
  2908. continue
  2909. fi
  2910. ac_cv_prog_CC="cc"
  2911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2912. break 2
  2913. fi
  2914. done
  2915. done
  2916. IFS=$as_save_IFS
  2917. if test $ac_prog_rejected = yes; then
  2918. # We found a bogon in the path, so make sure we never use it.
  2919. set dummy $ac_cv_prog_CC
  2920. shift
  2921. if test $# != 0; then
  2922. # We chose a different compiler from the bogus one.
  2923. # However, it has the same basename, so the bogon will be chosen
  2924. # first if we set CC to just the basename; use the full file name.
  2925. shift
  2926. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2927. fi
  2928. fi
  2929. fi
  2930. fi
  2931. CC=$ac_cv_prog_CC
  2932. if test -n "$CC"; then
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2934. $as_echo "$CC" >&6; }
  2935. else
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2937. $as_echo "no" >&6; }
  2938. fi
  2939. fi
  2940. if test -z "$CC"; then
  2941. if test -n "$ac_tool_prefix"; then
  2942. for ac_prog in cl.exe
  2943. do
  2944. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2945. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2947. $as_echo_n "checking for $ac_word... " >&6; }
  2948. if ${ac_cv_prog_CC+:} false; then :
  2949. $as_echo_n "(cached) " >&6
  2950. else
  2951. if test -n "$CC"; then
  2952. ac_cv_prog_CC="$CC" # Let the user override the test.
  2953. else
  2954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2955. for as_dir in $PATH
  2956. do
  2957. IFS=$as_save_IFS
  2958. test -z "$as_dir" && as_dir=.
  2959. for ac_exec_ext in '' $ac_executable_extensions; do
  2960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2961. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2963. break 2
  2964. fi
  2965. done
  2966. done
  2967. IFS=$as_save_IFS
  2968. fi
  2969. fi
  2970. CC=$ac_cv_prog_CC
  2971. if test -n "$CC"; then
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2973. $as_echo "$CC" >&6; }
  2974. else
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2976. $as_echo "no" >&6; }
  2977. fi
  2978. test -n "$CC" && break
  2979. done
  2980. fi
  2981. if test -z "$CC"; then
  2982. ac_ct_CC=$CC
  2983. for ac_prog in cl.exe
  2984. do
  2985. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2986. set dummy $ac_prog; ac_word=$2
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2988. $as_echo_n "checking for $ac_word... " >&6; }
  2989. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2990. $as_echo_n "(cached) " >&6
  2991. else
  2992. if test -n "$ac_ct_CC"; then
  2993. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2994. else
  2995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2996. for as_dir in $PATH
  2997. do
  2998. IFS=$as_save_IFS
  2999. test -z "$as_dir" && as_dir=.
  3000. for ac_exec_ext in '' $ac_executable_extensions; do
  3001. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3002. ac_cv_prog_ac_ct_CC="$ac_prog"
  3003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3004. break 2
  3005. fi
  3006. done
  3007. done
  3008. IFS=$as_save_IFS
  3009. fi
  3010. fi
  3011. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3012. if test -n "$ac_ct_CC"; then
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3014. $as_echo "$ac_ct_CC" >&6; }
  3015. else
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3017. $as_echo "no" >&6; }
  3018. fi
  3019. test -n "$ac_ct_CC" && break
  3020. done
  3021. if test "x$ac_ct_CC" = x; then
  3022. CC=""
  3023. else
  3024. case $cross_compiling:$ac_tool_warned in
  3025. yes:)
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3027. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3028. ac_tool_warned=yes ;;
  3029. esac
  3030. CC=$ac_ct_CC
  3031. fi
  3032. fi
  3033. fi
  3034. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3035. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3036. as_fn_error $? "no acceptable C compiler found in \$PATH
  3037. See \`config.log' for more details" "$LINENO" 5; }
  3038. # Provide some information about the compiler.
  3039. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3040. set X $ac_compile
  3041. ac_compiler=$2
  3042. for ac_option in --version -v -V -qversion; do
  3043. { { ac_try="$ac_compiler $ac_option >&5"
  3044. case "(($ac_try" in
  3045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3046. *) ac_try_echo=$ac_try;;
  3047. esac
  3048. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3049. $as_echo "$ac_try_echo"; } >&5
  3050. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3051. ac_status=$?
  3052. if test -s conftest.err; then
  3053. sed '10a\
  3054. ... rest of stderr output deleted ...
  3055. 10q' conftest.err >conftest.er1
  3056. cat conftest.er1 >&5
  3057. fi
  3058. rm -f conftest.er1 conftest.err
  3059. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3060. test $ac_status = 0; }
  3061. done
  3062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3063. /* end confdefs.h. */
  3064. int
  3065. main ()
  3066. {
  3067. ;
  3068. return 0;
  3069. }
  3070. _ACEOF
  3071. ac_clean_files_save=$ac_clean_files
  3072. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3073. # Try to create an executable without -o first, disregard a.out.
  3074. # It will help us diagnose broken compilers, and finding out an intuition
  3075. # of exeext.
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3077. $as_echo_n "checking whether the C compiler works... " >&6; }
  3078. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3079. # The possible output files:
  3080. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3081. ac_rmfiles=
  3082. for ac_file in $ac_files
  3083. do
  3084. case $ac_file in
  3085. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3086. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3087. esac
  3088. done
  3089. rm -f $ac_rmfiles
  3090. if { { ac_try="$ac_link_default"
  3091. case "(($ac_try" in
  3092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3093. *) ac_try_echo=$ac_try;;
  3094. esac
  3095. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3096. $as_echo "$ac_try_echo"; } >&5
  3097. (eval "$ac_link_default") 2>&5
  3098. ac_status=$?
  3099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3100. test $ac_status = 0; }; then :
  3101. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3102. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3103. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3104. # so that the user can short-circuit this test for compilers unknown to
  3105. # Autoconf.
  3106. for ac_file in $ac_files ''
  3107. do
  3108. test -f "$ac_file" || continue
  3109. case $ac_file in
  3110. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3111. ;;
  3112. [ab].out )
  3113. # We found the default executable, but exeext='' is most
  3114. # certainly right.
  3115. break;;
  3116. *.* )
  3117. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3118. then :; else
  3119. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3120. fi
  3121. # We set ac_cv_exeext here because the later test for it is not
  3122. # safe: cross compilers may not add the suffix if given an `-o'
  3123. # argument, so we may need to know it at that point already.
  3124. # Even if this section looks crufty: it has the advantage of
  3125. # actually working.
  3126. break;;
  3127. * )
  3128. break;;
  3129. esac
  3130. done
  3131. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3132. else
  3133. ac_file=''
  3134. fi
  3135. if test -z "$ac_file"; then :
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3137. $as_echo "no" >&6; }
  3138. $as_echo "$as_me: failed program was:" >&5
  3139. sed 's/^/| /' conftest.$ac_ext >&5
  3140. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3141. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3142. as_fn_error 77 "C compiler cannot create executables
  3143. See \`config.log' for more details" "$LINENO" 5; }
  3144. else
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3146. $as_echo "yes" >&6; }
  3147. fi
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3149. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3151. $as_echo "$ac_file" >&6; }
  3152. ac_exeext=$ac_cv_exeext
  3153. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3154. ac_clean_files=$ac_clean_files_save
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3156. $as_echo_n "checking for suffix of executables... " >&6; }
  3157. if { { ac_try="$ac_link"
  3158. case "(($ac_try" in
  3159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3160. *) ac_try_echo=$ac_try;;
  3161. esac
  3162. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3163. $as_echo "$ac_try_echo"; } >&5
  3164. (eval "$ac_link") 2>&5
  3165. ac_status=$?
  3166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3167. test $ac_status = 0; }; then :
  3168. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3169. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3170. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3171. # `rm'.
  3172. for ac_file in conftest.exe conftest conftest.*; do
  3173. test -f "$ac_file" || continue
  3174. case $ac_file in
  3175. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3176. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3177. break;;
  3178. * ) break;;
  3179. esac
  3180. done
  3181. else
  3182. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3183. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3184. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3185. See \`config.log' for more details" "$LINENO" 5; }
  3186. fi
  3187. rm -f conftest conftest$ac_cv_exeext
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3189. $as_echo "$ac_cv_exeext" >&6; }
  3190. rm -f conftest.$ac_ext
  3191. EXEEXT=$ac_cv_exeext
  3192. ac_exeext=$EXEEXT
  3193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3194. /* end confdefs.h. */
  3195. #include <stdio.h>
  3196. int
  3197. main ()
  3198. {
  3199. FILE *f = fopen ("conftest.out", "w");
  3200. return ferror (f) || fclose (f) != 0;
  3201. ;
  3202. return 0;
  3203. }
  3204. _ACEOF
  3205. ac_clean_files="$ac_clean_files conftest.out"
  3206. # Check that the compiler produces executables we can run. If not, either
  3207. # the compiler is broken, or we cross compile.
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3209. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3210. if test "$cross_compiling" != yes; then
  3211. { { ac_try="$ac_link"
  3212. case "(($ac_try" in
  3213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3214. *) ac_try_echo=$ac_try;;
  3215. esac
  3216. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3217. $as_echo "$ac_try_echo"; } >&5
  3218. (eval "$ac_link") 2>&5
  3219. ac_status=$?
  3220. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3221. test $ac_status = 0; }
  3222. if { ac_try='./conftest$ac_cv_exeext'
  3223. { { case "(($ac_try" in
  3224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3225. *) ac_try_echo=$ac_try;;
  3226. esac
  3227. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3228. $as_echo "$ac_try_echo"; } >&5
  3229. (eval "$ac_try") 2>&5
  3230. ac_status=$?
  3231. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3232. test $ac_status = 0; }; }; then
  3233. cross_compiling=no
  3234. else
  3235. if test "$cross_compiling" = maybe; then
  3236. cross_compiling=yes
  3237. else
  3238. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3239. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3240. as_fn_error $? "cannot run C compiled programs.
  3241. If you meant to cross compile, use \`--host'.
  3242. See \`config.log' for more details" "$LINENO" 5; }
  3243. fi
  3244. fi
  3245. fi
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3247. $as_echo "$cross_compiling" >&6; }
  3248. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3249. ac_clean_files=$ac_clean_files_save
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3251. $as_echo_n "checking for suffix of object files... " >&6; }
  3252. if ${ac_cv_objext+:} false; then :
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3256. /* end confdefs.h. */
  3257. int
  3258. main ()
  3259. {
  3260. ;
  3261. return 0;
  3262. }
  3263. _ACEOF
  3264. rm -f conftest.o conftest.obj
  3265. if { { ac_try="$ac_compile"
  3266. case "(($ac_try" in
  3267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3268. *) ac_try_echo=$ac_try;;
  3269. esac
  3270. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3271. $as_echo "$ac_try_echo"; } >&5
  3272. (eval "$ac_compile") 2>&5
  3273. ac_status=$?
  3274. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3275. test $ac_status = 0; }; then :
  3276. for ac_file in conftest.o conftest.obj conftest.*; do
  3277. test -f "$ac_file" || continue;
  3278. case $ac_file in
  3279. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3280. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3281. break;;
  3282. esac
  3283. done
  3284. else
  3285. $as_echo "$as_me: failed program was:" >&5
  3286. sed 's/^/| /' conftest.$ac_ext >&5
  3287. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3288. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3289. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3290. See \`config.log' for more details" "$LINENO" 5; }
  3291. fi
  3292. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3293. fi
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3295. $as_echo "$ac_cv_objext" >&6; }
  3296. OBJEXT=$ac_cv_objext
  3297. ac_objext=$OBJEXT
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3299. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3300. if ${ac_cv_c_compiler_gnu+:} false; then :
  3301. $as_echo_n "(cached) " >&6
  3302. else
  3303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3304. /* end confdefs.h. */
  3305. int
  3306. main ()
  3307. {
  3308. #ifndef __GNUC__
  3309. choke me
  3310. #endif
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. if ac_fn_c_try_compile "$LINENO"; then :
  3316. ac_compiler_gnu=yes
  3317. else
  3318. ac_compiler_gnu=no
  3319. fi
  3320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3321. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3322. fi
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3324. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3325. if test $ac_compiler_gnu = yes; then
  3326. GCC=yes
  3327. else
  3328. GCC=
  3329. fi
  3330. ac_test_CFLAGS=${CFLAGS+set}
  3331. ac_save_CFLAGS=$CFLAGS
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3333. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3334. if ${ac_cv_prog_cc_g+:} false; then :
  3335. $as_echo_n "(cached) " >&6
  3336. else
  3337. ac_save_c_werror_flag=$ac_c_werror_flag
  3338. ac_c_werror_flag=yes
  3339. ac_cv_prog_cc_g=no
  3340. CFLAGS="-g"
  3341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3342. /* end confdefs.h. */
  3343. int
  3344. main ()
  3345. {
  3346. ;
  3347. return 0;
  3348. }
  3349. _ACEOF
  3350. if ac_fn_c_try_compile "$LINENO"; then :
  3351. ac_cv_prog_cc_g=yes
  3352. else
  3353. CFLAGS=""
  3354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3355. /* end confdefs.h. */
  3356. int
  3357. main ()
  3358. {
  3359. ;
  3360. return 0;
  3361. }
  3362. _ACEOF
  3363. if ac_fn_c_try_compile "$LINENO"; then :
  3364. else
  3365. ac_c_werror_flag=$ac_save_c_werror_flag
  3366. CFLAGS="-g"
  3367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end confdefs.h. */
  3369. int
  3370. main ()
  3371. {
  3372. ;
  3373. return 0;
  3374. }
  3375. _ACEOF
  3376. if ac_fn_c_try_compile "$LINENO"; then :
  3377. ac_cv_prog_cc_g=yes
  3378. fi
  3379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3380. fi
  3381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3382. fi
  3383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3384. ac_c_werror_flag=$ac_save_c_werror_flag
  3385. fi
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3387. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3388. if test "$ac_test_CFLAGS" = set; then
  3389. CFLAGS=$ac_save_CFLAGS
  3390. elif test $ac_cv_prog_cc_g = yes; then
  3391. if test "$GCC" = yes; then
  3392. CFLAGS="-g -O2"
  3393. else
  3394. CFLAGS="-g"
  3395. fi
  3396. else
  3397. if test "$GCC" = yes; then
  3398. CFLAGS="-O2"
  3399. else
  3400. CFLAGS=
  3401. fi
  3402. fi
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3404. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3405. if ${ac_cv_prog_cc_c89+:} false; then :
  3406. $as_echo_n "(cached) " >&6
  3407. else
  3408. ac_cv_prog_cc_c89=no
  3409. ac_save_CC=$CC
  3410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3411. /* end confdefs.h. */
  3412. #include <stdarg.h>
  3413. #include <stdio.h>
  3414. struct stat;
  3415. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3416. struct buf { int x; };
  3417. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3418. static char *e (p, i)
  3419. char **p;
  3420. int i;
  3421. {
  3422. return p[i];
  3423. }
  3424. static char *f (char * (*g) (char **, int), char **p, ...)
  3425. {
  3426. char *s;
  3427. va_list v;
  3428. va_start (v,p);
  3429. s = g (p, va_arg (v,int));
  3430. va_end (v);
  3431. return s;
  3432. }
  3433. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3434. function prototypes and stuff, but not '\xHH' hex character constants.
  3435. These don't provoke an error unfortunately, instead are silently treated
  3436. as 'x'. The following induces an error, until -std is added to get
  3437. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3438. array size at least. It's necessary to write '\x00'==0 to get something
  3439. that's true only with -std. */
  3440. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3441. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3442. inside strings and character constants. */
  3443. #define FOO(x) 'x'
  3444. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3445. int test (int i, double x);
  3446. struct s1 {int (*f) (int a);};
  3447. struct s2 {int (*f) (double a);};
  3448. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3449. int argc;
  3450. char **argv;
  3451. int
  3452. main ()
  3453. {
  3454. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3455. ;
  3456. return 0;
  3457. }
  3458. _ACEOF
  3459. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3460. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3461. do
  3462. CC="$ac_save_CC $ac_arg"
  3463. if ac_fn_c_try_compile "$LINENO"; then :
  3464. ac_cv_prog_cc_c89=$ac_arg
  3465. fi
  3466. rm -f core conftest.err conftest.$ac_objext
  3467. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3468. done
  3469. rm -f conftest.$ac_ext
  3470. CC=$ac_save_CC
  3471. fi
  3472. # AC_CACHE_VAL
  3473. case "x$ac_cv_prog_cc_c89" in
  3474. x)
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3476. $as_echo "none needed" >&6; } ;;
  3477. xno)
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3479. $as_echo "unsupported" >&6; } ;;
  3480. *)
  3481. CC="$CC $ac_cv_prog_cc_c89"
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3483. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3484. esac
  3485. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3486. fi
  3487. ac_ext=c
  3488. ac_cpp='$CPP $CPPFLAGS'
  3489. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3490. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3491. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3493. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3494. if ${ac_cv_path_SED+:} false; then :
  3495. $as_echo_n "(cached) " >&6
  3496. else
  3497. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3498. for ac_i in 1 2 3 4 5 6 7; do
  3499. ac_script="$ac_script$as_nl$ac_script"
  3500. done
  3501. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3502. { ac_script=; unset ac_script;}
  3503. if test -z "$SED"; then
  3504. ac_path_SED_found=false
  3505. # Loop through the user's path and test for each of PROGNAME-LIST
  3506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3507. for as_dir in $PATH
  3508. do
  3509. IFS=$as_save_IFS
  3510. test -z "$as_dir" && as_dir=.
  3511. for ac_prog in sed gsed; do
  3512. for ac_exec_ext in '' $ac_executable_extensions; do
  3513. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3514. as_fn_executable_p "$ac_path_SED" || continue
  3515. # Check for GNU ac_path_SED and select it if it is found.
  3516. # Check for GNU $ac_path_SED
  3517. case `"$ac_path_SED" --version 2>&1` in
  3518. *GNU*)
  3519. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3520. *)
  3521. ac_count=0
  3522. $as_echo_n 0123456789 >"conftest.in"
  3523. while :
  3524. do
  3525. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3526. mv "conftest.tmp" "conftest.in"
  3527. cp "conftest.in" "conftest.nl"
  3528. $as_echo '' >> "conftest.nl"
  3529. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3530. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3531. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3532. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3533. # Best one so far, save it but keep looking for a better one
  3534. ac_cv_path_SED="$ac_path_SED"
  3535. ac_path_SED_max=$ac_count
  3536. fi
  3537. # 10*(2^10) chars as input seems more than enough
  3538. test $ac_count -gt 10 && break
  3539. done
  3540. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3541. esac
  3542. $ac_path_SED_found && break 3
  3543. done
  3544. done
  3545. done
  3546. IFS=$as_save_IFS
  3547. if test -z "$ac_cv_path_SED"; then
  3548. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3549. fi
  3550. else
  3551. ac_cv_path_SED=$SED
  3552. fi
  3553. fi
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3555. $as_echo "$ac_cv_path_SED" >&6; }
  3556. SED="$ac_cv_path_SED"
  3557. rm -f conftest.sed
  3558. test -z "$SED" && SED=sed
  3559. Xsed="$SED -e 1s/^X//"
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3561. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3562. if ${ac_cv_path_GREP+:} false; then :
  3563. $as_echo_n "(cached) " >&6
  3564. else
  3565. if test -z "$GREP"; then
  3566. ac_path_GREP_found=false
  3567. # Loop through the user's path and test for each of PROGNAME-LIST
  3568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3569. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3570. do
  3571. IFS=$as_save_IFS
  3572. test -z "$as_dir" && as_dir=.
  3573. for ac_prog in grep ggrep; do
  3574. for ac_exec_ext in '' $ac_executable_extensions; do
  3575. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3576. as_fn_executable_p "$ac_path_GREP" || continue
  3577. # Check for GNU ac_path_GREP and select it if it is found.
  3578. # Check for GNU $ac_path_GREP
  3579. case `"$ac_path_GREP" --version 2>&1` in
  3580. *GNU*)
  3581. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3582. *)
  3583. ac_count=0
  3584. $as_echo_n 0123456789 >"conftest.in"
  3585. while :
  3586. do
  3587. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3588. mv "conftest.tmp" "conftest.in"
  3589. cp "conftest.in" "conftest.nl"
  3590. $as_echo 'GREP' >> "conftest.nl"
  3591. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3592. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3593. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3594. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3595. # Best one so far, save it but keep looking for a better one
  3596. ac_cv_path_GREP="$ac_path_GREP"
  3597. ac_path_GREP_max=$ac_count
  3598. fi
  3599. # 10*(2^10) chars as input seems more than enough
  3600. test $ac_count -gt 10 && break
  3601. done
  3602. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3603. esac
  3604. $ac_path_GREP_found && break 3
  3605. done
  3606. done
  3607. done
  3608. IFS=$as_save_IFS
  3609. if test -z "$ac_cv_path_GREP"; then
  3610. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3611. fi
  3612. else
  3613. ac_cv_path_GREP=$GREP
  3614. fi
  3615. fi
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3617. $as_echo "$ac_cv_path_GREP" >&6; }
  3618. GREP="$ac_cv_path_GREP"
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3620. $as_echo_n "checking for egrep... " >&6; }
  3621. if ${ac_cv_path_EGREP+:} false; then :
  3622. $as_echo_n "(cached) " >&6
  3623. else
  3624. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3625. then ac_cv_path_EGREP="$GREP -E"
  3626. else
  3627. if test -z "$EGREP"; then
  3628. ac_path_EGREP_found=false
  3629. # Loop through the user's path and test for each of PROGNAME-LIST
  3630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3631. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3632. do
  3633. IFS=$as_save_IFS
  3634. test -z "$as_dir" && as_dir=.
  3635. for ac_prog in egrep; do
  3636. for ac_exec_ext in '' $ac_executable_extensions; do
  3637. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3638. as_fn_executable_p "$ac_path_EGREP" || continue
  3639. # Check for GNU ac_path_EGREP and select it if it is found.
  3640. # Check for GNU $ac_path_EGREP
  3641. case `"$ac_path_EGREP" --version 2>&1` in
  3642. *GNU*)
  3643. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3644. *)
  3645. ac_count=0
  3646. $as_echo_n 0123456789 >"conftest.in"
  3647. while :
  3648. do
  3649. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3650. mv "conftest.tmp" "conftest.in"
  3651. cp "conftest.in" "conftest.nl"
  3652. $as_echo 'EGREP' >> "conftest.nl"
  3653. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3654. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3655. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3656. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3657. # Best one so far, save it but keep looking for a better one
  3658. ac_cv_path_EGREP="$ac_path_EGREP"
  3659. ac_path_EGREP_max=$ac_count
  3660. fi
  3661. # 10*(2^10) chars as input seems more than enough
  3662. test $ac_count -gt 10 && break
  3663. done
  3664. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3665. esac
  3666. $ac_path_EGREP_found && break 3
  3667. done
  3668. done
  3669. done
  3670. IFS=$as_save_IFS
  3671. if test -z "$ac_cv_path_EGREP"; then
  3672. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3673. fi
  3674. else
  3675. ac_cv_path_EGREP=$EGREP
  3676. fi
  3677. fi
  3678. fi
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3680. $as_echo "$ac_cv_path_EGREP" >&6; }
  3681. EGREP="$ac_cv_path_EGREP"
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3683. $as_echo_n "checking for fgrep... " >&6; }
  3684. if ${ac_cv_path_FGREP+:} false; then :
  3685. $as_echo_n "(cached) " >&6
  3686. else
  3687. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3688. then ac_cv_path_FGREP="$GREP -F"
  3689. else
  3690. if test -z "$FGREP"; then
  3691. ac_path_FGREP_found=false
  3692. # Loop through the user's path and test for each of PROGNAME-LIST
  3693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3694. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3695. do
  3696. IFS=$as_save_IFS
  3697. test -z "$as_dir" && as_dir=.
  3698. for ac_prog in fgrep; do
  3699. for ac_exec_ext in '' $ac_executable_extensions; do
  3700. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3701. as_fn_executable_p "$ac_path_FGREP" || continue
  3702. # Check for GNU ac_path_FGREP and select it if it is found.
  3703. # Check for GNU $ac_path_FGREP
  3704. case `"$ac_path_FGREP" --version 2>&1` in
  3705. *GNU*)
  3706. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3707. *)
  3708. ac_count=0
  3709. $as_echo_n 0123456789 >"conftest.in"
  3710. while :
  3711. do
  3712. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3713. mv "conftest.tmp" "conftest.in"
  3714. cp "conftest.in" "conftest.nl"
  3715. $as_echo 'FGREP' >> "conftest.nl"
  3716. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3717. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3718. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3719. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3720. # Best one so far, save it but keep looking for a better one
  3721. ac_cv_path_FGREP="$ac_path_FGREP"
  3722. ac_path_FGREP_max=$ac_count
  3723. fi
  3724. # 10*(2^10) chars as input seems more than enough
  3725. test $ac_count -gt 10 && break
  3726. done
  3727. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3728. esac
  3729. $ac_path_FGREP_found && break 3
  3730. done
  3731. done
  3732. done
  3733. IFS=$as_save_IFS
  3734. if test -z "$ac_cv_path_FGREP"; then
  3735. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3736. fi
  3737. else
  3738. ac_cv_path_FGREP=$FGREP
  3739. fi
  3740. fi
  3741. fi
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3743. $as_echo "$ac_cv_path_FGREP" >&6; }
  3744. FGREP="$ac_cv_path_FGREP"
  3745. test -z "$GREP" && GREP=grep
  3746. # Check whether --with-gnu-ld was given.
  3747. if test "${with_gnu_ld+set}" = set; then :
  3748. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3749. else
  3750. with_gnu_ld=no
  3751. fi
  3752. ac_prog=ld
  3753. if test yes = "$GCC"; then
  3754. # Check if gcc -print-prog-name=ld gives a path.
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3756. $as_echo_n "checking for ld used by $CC... " >&6; }
  3757. case $host in
  3758. *-*-mingw*)
  3759. # gcc leaves a trailing carriage return, which upsets mingw
  3760. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3761. *)
  3762. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3763. esac
  3764. case $ac_prog in
  3765. # Accept absolute paths.
  3766. [\\/]* | ?:[\\/]*)
  3767. re_direlt='/[^/][^/]*/\.\./'
  3768. # Canonicalize the pathname of ld
  3769. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3770. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3771. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3772. done
  3773. test -z "$LD" && LD=$ac_prog
  3774. ;;
  3775. "")
  3776. # If it fails, then pretend we aren't using GCC.
  3777. ac_prog=ld
  3778. ;;
  3779. *)
  3780. # If it is relative, then search for the first ld in PATH.
  3781. with_gnu_ld=unknown
  3782. ;;
  3783. esac
  3784. elif test yes = "$with_gnu_ld"; then
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3786. $as_echo_n "checking for GNU ld... " >&6; }
  3787. else
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3789. $as_echo_n "checking for non-GNU ld... " >&6; }
  3790. fi
  3791. if ${lt_cv_path_LD+:} false; then :
  3792. $as_echo_n "(cached) " >&6
  3793. else
  3794. if test -z "$LD"; then
  3795. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3796. for ac_dir in $PATH; do
  3797. IFS=$lt_save_ifs
  3798. test -z "$ac_dir" && ac_dir=.
  3799. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3800. lt_cv_path_LD=$ac_dir/$ac_prog
  3801. # Check to see if the program is GNU ld. I'd rather use --version,
  3802. # but apparently some variants of GNU ld only accept -v.
  3803. # Break only if it was the GNU/non-GNU ld that we prefer.
  3804. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3805. *GNU* | *'with BFD'*)
  3806. test no != "$with_gnu_ld" && break
  3807. ;;
  3808. *)
  3809. test yes != "$with_gnu_ld" && break
  3810. ;;
  3811. esac
  3812. fi
  3813. done
  3814. IFS=$lt_save_ifs
  3815. else
  3816. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3817. fi
  3818. fi
  3819. LD=$lt_cv_path_LD
  3820. if test -n "$LD"; then
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3822. $as_echo "$LD" >&6; }
  3823. else
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3825. $as_echo "no" >&6; }
  3826. fi
  3827. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3829. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3830. if ${lt_cv_prog_gnu_ld+:} false; then :
  3831. $as_echo_n "(cached) " >&6
  3832. else
  3833. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3834. case `$LD -v 2>&1 </dev/null` in
  3835. *GNU* | *'with BFD'*)
  3836. lt_cv_prog_gnu_ld=yes
  3837. ;;
  3838. *)
  3839. lt_cv_prog_gnu_ld=no
  3840. ;;
  3841. esac
  3842. fi
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3844. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3845. with_gnu_ld=$lt_cv_prog_gnu_ld
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3847. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3848. if ${lt_cv_path_NM+:} false; then :
  3849. $as_echo_n "(cached) " >&6
  3850. else
  3851. if test -n "$NM"; then
  3852. # Let the user override the test.
  3853. lt_cv_path_NM=$NM
  3854. else
  3855. lt_nm_to_check=${ac_tool_prefix}nm
  3856. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3857. lt_nm_to_check="$lt_nm_to_check nm"
  3858. fi
  3859. for lt_tmp_nm in $lt_nm_to_check; do
  3860. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3861. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3862. IFS=$lt_save_ifs
  3863. test -z "$ac_dir" && ac_dir=.
  3864. tmp_nm=$ac_dir/$lt_tmp_nm
  3865. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3866. # Check to see if the nm accepts a BSD-compat flag.
  3867. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3868. # nm: unknown option "B" ignored
  3869. # Tru64's nm complains that /dev/null is an invalid object file
  3870. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3871. case $build_os in
  3872. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3873. *) lt_bad_file=/dev/null ;;
  3874. esac
  3875. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3876. *$lt_bad_file* | *'Invalid file or object type'*)
  3877. lt_cv_path_NM="$tmp_nm -B"
  3878. break 2
  3879. ;;
  3880. *)
  3881. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3882. */dev/null*)
  3883. lt_cv_path_NM="$tmp_nm -p"
  3884. break 2
  3885. ;;
  3886. *)
  3887. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3888. continue # so that we can try to find one that supports BSD flags
  3889. ;;
  3890. esac
  3891. ;;
  3892. esac
  3893. fi
  3894. done
  3895. IFS=$lt_save_ifs
  3896. done
  3897. : ${lt_cv_path_NM=no}
  3898. fi
  3899. fi
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3901. $as_echo "$lt_cv_path_NM" >&6; }
  3902. if test no != "$lt_cv_path_NM"; then
  3903. NM=$lt_cv_path_NM
  3904. else
  3905. # Didn't find any BSD compatible name lister, look for dumpbin.
  3906. if test -n "$DUMPBIN"; then :
  3907. # Let the user override the test.
  3908. else
  3909. if test -n "$ac_tool_prefix"; then
  3910. for ac_prog in dumpbin "link -dump"
  3911. do
  3912. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3913. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3915. $as_echo_n "checking for $ac_word... " >&6; }
  3916. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3917. $as_echo_n "(cached) " >&6
  3918. else
  3919. if test -n "$DUMPBIN"; then
  3920. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3921. else
  3922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3923. for as_dir in $PATH
  3924. do
  3925. IFS=$as_save_IFS
  3926. test -z "$as_dir" && as_dir=.
  3927. for ac_exec_ext in '' $ac_executable_extensions; do
  3928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3929. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3931. break 2
  3932. fi
  3933. done
  3934. done
  3935. IFS=$as_save_IFS
  3936. fi
  3937. fi
  3938. DUMPBIN=$ac_cv_prog_DUMPBIN
  3939. if test -n "$DUMPBIN"; then
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3941. $as_echo "$DUMPBIN" >&6; }
  3942. else
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3944. $as_echo "no" >&6; }
  3945. fi
  3946. test -n "$DUMPBIN" && break
  3947. done
  3948. fi
  3949. if test -z "$DUMPBIN"; then
  3950. ac_ct_DUMPBIN=$DUMPBIN
  3951. for ac_prog in dumpbin "link -dump"
  3952. do
  3953. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3954. set dummy $ac_prog; ac_word=$2
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3956. $as_echo_n "checking for $ac_word... " >&6; }
  3957. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3958. $as_echo_n "(cached) " >&6
  3959. else
  3960. if test -n "$ac_ct_DUMPBIN"; then
  3961. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3962. else
  3963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3964. for as_dir in $PATH
  3965. do
  3966. IFS=$as_save_IFS
  3967. test -z "$as_dir" && as_dir=.
  3968. for ac_exec_ext in '' $ac_executable_extensions; do
  3969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3970. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3972. break 2
  3973. fi
  3974. done
  3975. done
  3976. IFS=$as_save_IFS
  3977. fi
  3978. fi
  3979. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3980. if test -n "$ac_ct_DUMPBIN"; then
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3982. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3983. else
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3985. $as_echo "no" >&6; }
  3986. fi
  3987. test -n "$ac_ct_DUMPBIN" && break
  3988. done
  3989. if test "x$ac_ct_DUMPBIN" = x; then
  3990. DUMPBIN=":"
  3991. else
  3992. case $cross_compiling:$ac_tool_warned in
  3993. yes:)
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3995. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3996. ac_tool_warned=yes ;;
  3997. esac
  3998. DUMPBIN=$ac_ct_DUMPBIN
  3999. fi
  4000. fi
  4001. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4002. *COFF*)
  4003. DUMPBIN="$DUMPBIN -symbols -headers"
  4004. ;;
  4005. *)
  4006. DUMPBIN=:
  4007. ;;
  4008. esac
  4009. fi
  4010. if test : != "$DUMPBIN"; then
  4011. NM=$DUMPBIN
  4012. fi
  4013. fi
  4014. test -z "$NM" && NM=nm
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4016. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4017. if ${lt_cv_nm_interface+:} false; then :
  4018. $as_echo_n "(cached) " >&6
  4019. else
  4020. lt_cv_nm_interface="BSD nm"
  4021. echo "int some_variable = 0;" > conftest.$ac_ext
  4022. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4023. (eval "$ac_compile" 2>conftest.err)
  4024. cat conftest.err >&5
  4025. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4026. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4027. cat conftest.err >&5
  4028. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4029. cat conftest.out >&5
  4030. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4031. lt_cv_nm_interface="MS dumpbin"
  4032. fi
  4033. rm -f conftest*
  4034. fi
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4036. $as_echo "$lt_cv_nm_interface" >&6; }
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4038. $as_echo_n "checking whether ln -s works... " >&6; }
  4039. LN_S=$as_ln_s
  4040. if test "$LN_S" = "ln -s"; then
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4042. $as_echo "yes" >&6; }
  4043. else
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4045. $as_echo "no, using $LN_S" >&6; }
  4046. fi
  4047. # find the maximum length of command line arguments
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4049. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4050. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4051. $as_echo_n "(cached) " >&6
  4052. else
  4053. i=0
  4054. teststring=ABCD
  4055. case $build_os in
  4056. msdosdjgpp*)
  4057. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4058. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4059. # during glob expansion). Even if it were fixed, the result of this
  4060. # check would be larger than it should be.
  4061. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4062. ;;
  4063. gnu*)
  4064. # Under GNU Hurd, this test is not required because there is
  4065. # no limit to the length of command line arguments.
  4066. # Libtool will interpret -1 as no limit whatsoever
  4067. lt_cv_sys_max_cmd_len=-1;
  4068. ;;
  4069. cygwin* | mingw* | cegcc*)
  4070. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4071. # about 5 minutes as the teststring grows exponentially.
  4072. # Worse, since 9x/ME are not pre-emptively multitasking,
  4073. # you end up with a "frozen" computer, even though with patience
  4074. # the test eventually succeeds (with a max line length of 256k).
  4075. # Instead, let's just punt: use the minimum linelength reported by
  4076. # all of the supported platforms: 8192 (on NT/2K/XP).
  4077. lt_cv_sys_max_cmd_len=8192;
  4078. ;;
  4079. mint*)
  4080. # On MiNT this can take a long time and run out of memory.
  4081. lt_cv_sys_max_cmd_len=8192;
  4082. ;;
  4083. amigaos*)
  4084. # On AmigaOS with pdksh, this test takes hours, literally.
  4085. # So we just punt and use a minimum line length of 8192.
  4086. lt_cv_sys_max_cmd_len=8192;
  4087. ;;
  4088. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4089. # This has been around since 386BSD, at least. Likely further.
  4090. if test -x /sbin/sysctl; then
  4091. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4092. elif test -x /usr/sbin/sysctl; then
  4093. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4094. else
  4095. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4096. fi
  4097. # And add a safety zone
  4098. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4099. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4100. ;;
  4101. interix*)
  4102. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4103. lt_cv_sys_max_cmd_len=196608
  4104. ;;
  4105. os2*)
  4106. # The test takes a long time on OS/2.
  4107. lt_cv_sys_max_cmd_len=8192
  4108. ;;
  4109. osf*)
  4110. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4111. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4112. # nice to cause kernel panics so lets avoid the loop below.
  4113. # First set a reasonable default.
  4114. lt_cv_sys_max_cmd_len=16384
  4115. #
  4116. if test -x /sbin/sysconfig; then
  4117. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4118. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4119. esac
  4120. fi
  4121. ;;
  4122. sco3.2v5*)
  4123. lt_cv_sys_max_cmd_len=102400
  4124. ;;
  4125. sysv5* | sco5v6* | sysv4.2uw2*)
  4126. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4127. if test -n "$kargmax"; then
  4128. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4129. else
  4130. lt_cv_sys_max_cmd_len=32768
  4131. fi
  4132. ;;
  4133. *)
  4134. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4135. if test -n "$lt_cv_sys_max_cmd_len" && \
  4136. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4137. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4138. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4139. else
  4140. # Make teststring a little bigger before we do anything with it.
  4141. # a 1K string should be a reasonable start.
  4142. for i in 1 2 3 4 5 6 7 8; do
  4143. teststring=$teststring$teststring
  4144. done
  4145. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4146. # If test is not a shell built-in, we'll probably end up computing a
  4147. # maximum length that is only half of the actual maximum length, but
  4148. # we can't tell.
  4149. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4150. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4151. test 17 != "$i" # 1/2 MB should be enough
  4152. do
  4153. i=`expr $i + 1`
  4154. teststring=$teststring$teststring
  4155. done
  4156. # Only check the string length outside the loop.
  4157. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4158. teststring=
  4159. # Add a significant safety factor because C++ compilers can tack on
  4160. # massive amounts of additional arguments before passing them to the
  4161. # linker. It appears as though 1/2 is a usable value.
  4162. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4163. fi
  4164. ;;
  4165. esac
  4166. fi
  4167. if test -n "$lt_cv_sys_max_cmd_len"; then
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4169. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4170. else
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4172. $as_echo "none" >&6; }
  4173. fi
  4174. max_cmd_len=$lt_cv_sys_max_cmd_len
  4175. : ${CP="cp -f"}
  4176. : ${MV="mv -f"}
  4177. : ${RM="rm -f"}
  4178. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4179. lt_unset=unset
  4180. else
  4181. lt_unset=false
  4182. fi
  4183. # test EBCDIC or ASCII
  4184. case `echo X|tr X '\101'` in
  4185. A) # ASCII based system
  4186. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4187. lt_SP2NL='tr \040 \012'
  4188. lt_NL2SP='tr \015\012 \040\040'
  4189. ;;
  4190. *) # EBCDIC based system
  4191. lt_SP2NL='tr \100 \n'
  4192. lt_NL2SP='tr \r\n \100\100'
  4193. ;;
  4194. esac
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4196. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4197. if ${lt_cv_to_host_file_cmd+:} false; then :
  4198. $as_echo_n "(cached) " >&6
  4199. else
  4200. case $host in
  4201. *-*-mingw* )
  4202. case $build in
  4203. *-*-mingw* ) # actually msys
  4204. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4205. ;;
  4206. *-*-cygwin* )
  4207. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4208. ;;
  4209. * ) # otherwise, assume *nix
  4210. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4211. ;;
  4212. esac
  4213. ;;
  4214. *-*-cygwin* )
  4215. case $build in
  4216. *-*-mingw* ) # actually msys
  4217. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4218. ;;
  4219. *-*-cygwin* )
  4220. lt_cv_to_host_file_cmd=func_convert_file_noop
  4221. ;;
  4222. * ) # otherwise, assume *nix
  4223. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4224. ;;
  4225. esac
  4226. ;;
  4227. * ) # unhandled hosts (and "normal" native builds)
  4228. lt_cv_to_host_file_cmd=func_convert_file_noop
  4229. ;;
  4230. esac
  4231. fi
  4232. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4234. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4236. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4237. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4238. $as_echo_n "(cached) " >&6
  4239. else
  4240. #assume ordinary cross tools, or native build.
  4241. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4242. case $host in
  4243. *-*-mingw* )
  4244. case $build in
  4245. *-*-mingw* ) # actually msys
  4246. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4247. ;;
  4248. esac
  4249. ;;
  4250. esac
  4251. fi
  4252. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4254. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4256. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4257. if ${lt_cv_ld_reload_flag+:} false; then :
  4258. $as_echo_n "(cached) " >&6
  4259. else
  4260. lt_cv_ld_reload_flag='-r'
  4261. fi
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4263. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4264. reload_flag=$lt_cv_ld_reload_flag
  4265. case $reload_flag in
  4266. "" | " "*) ;;
  4267. *) reload_flag=" $reload_flag" ;;
  4268. esac
  4269. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4270. case $host_os in
  4271. cygwin* | mingw* | pw32* | cegcc*)
  4272. if test yes != "$GCC"; then
  4273. reload_cmds=false
  4274. fi
  4275. ;;
  4276. darwin*)
  4277. if test yes = "$GCC"; then
  4278. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4279. else
  4280. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4281. fi
  4282. ;;
  4283. esac
  4284. if test -n "$ac_tool_prefix"; then
  4285. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4286. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4288. $as_echo_n "checking for $ac_word... " >&6; }
  4289. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4290. $as_echo_n "(cached) " >&6
  4291. else
  4292. if test -n "$OBJDUMP"; then
  4293. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4294. else
  4295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4296. for as_dir in $PATH
  4297. do
  4298. IFS=$as_save_IFS
  4299. test -z "$as_dir" && as_dir=.
  4300. for ac_exec_ext in '' $ac_executable_extensions; do
  4301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4302. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4304. break 2
  4305. fi
  4306. done
  4307. done
  4308. IFS=$as_save_IFS
  4309. fi
  4310. fi
  4311. OBJDUMP=$ac_cv_prog_OBJDUMP
  4312. if test -n "$OBJDUMP"; then
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4314. $as_echo "$OBJDUMP" >&6; }
  4315. else
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4317. $as_echo "no" >&6; }
  4318. fi
  4319. fi
  4320. if test -z "$ac_cv_prog_OBJDUMP"; then
  4321. ac_ct_OBJDUMP=$OBJDUMP
  4322. # Extract the first word of "objdump", so it can be a program name with args.
  4323. set dummy objdump; ac_word=$2
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4325. $as_echo_n "checking for $ac_word... " >&6; }
  4326. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4327. $as_echo_n "(cached) " >&6
  4328. else
  4329. if test -n "$ac_ct_OBJDUMP"; then
  4330. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4331. else
  4332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4333. for as_dir in $PATH
  4334. do
  4335. IFS=$as_save_IFS
  4336. test -z "$as_dir" && as_dir=.
  4337. for ac_exec_ext in '' $ac_executable_extensions; do
  4338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4339. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4341. break 2
  4342. fi
  4343. done
  4344. done
  4345. IFS=$as_save_IFS
  4346. fi
  4347. fi
  4348. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4349. if test -n "$ac_ct_OBJDUMP"; then
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4351. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4352. else
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4354. $as_echo "no" >&6; }
  4355. fi
  4356. if test "x$ac_ct_OBJDUMP" = x; then
  4357. OBJDUMP="false"
  4358. else
  4359. case $cross_compiling:$ac_tool_warned in
  4360. yes:)
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4362. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4363. ac_tool_warned=yes ;;
  4364. esac
  4365. OBJDUMP=$ac_ct_OBJDUMP
  4366. fi
  4367. else
  4368. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4369. fi
  4370. test -z "$OBJDUMP" && OBJDUMP=objdump
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4372. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4373. if ${lt_cv_deplibs_check_method+:} false; then :
  4374. $as_echo_n "(cached) " >&6
  4375. else
  4376. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4377. lt_cv_file_magic_test_file=
  4378. lt_cv_deplibs_check_method='unknown'
  4379. # Need to set the preceding variable on all platforms that support
  4380. # interlibrary dependencies.
  4381. # 'none' -- dependencies not supported.
  4382. # 'unknown' -- same as none, but documents that we really don't know.
  4383. # 'pass_all' -- all dependencies passed with no checks.
  4384. # 'test_compile' -- check by making test program.
  4385. # 'file_magic [[regex]]' -- check by looking for files in library path
  4386. # that responds to the $file_magic_cmd with a given extended regex.
  4387. # If you have 'file' or equivalent on your system and you're not sure
  4388. # whether 'pass_all' will *always* work, you probably want this one.
  4389. case $host_os in
  4390. aix[4-9]*)
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. beos*)
  4394. lt_cv_deplibs_check_method=pass_all
  4395. ;;
  4396. bsdi[45]*)
  4397. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4398. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4399. lt_cv_file_magic_test_file=/shlib/libc.so
  4400. ;;
  4401. cygwin*)
  4402. # func_win32_libid is a shell function defined in ltmain.sh
  4403. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4404. lt_cv_file_magic_cmd='func_win32_libid'
  4405. lt_cv_deplibs_check_method=pass_all # SDL customization
  4406. ;;
  4407. mingw* | pw32*)
  4408. # Base MSYS/MinGW do not provide the 'file' command needed by
  4409. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4410. # unless we find 'file', for example because we are cross-compiling.
  4411. if ( file / ) >/dev/null 2>&1; then
  4412. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4413. lt_cv_file_magic_cmd='func_win32_libid'
  4414. else
  4415. # Keep this pattern in sync with the one in func_win32_libid.
  4416. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4417. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4418. fi
  4419. lt_cv_deplibs_check_method=pass_all # SDL customization
  4420. ;;
  4421. cegcc*)
  4422. # use the weaker test based on 'objdump'. See mingw*.
  4423. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4424. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4425. ;;
  4426. darwin* | rhapsody*)
  4427. lt_cv_deplibs_check_method=pass_all
  4428. ;;
  4429. freebsd* | dragonfly* | midnightbsd*)
  4430. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4431. case $host_cpu in
  4432. i*86 )
  4433. # Not sure whether the presence of OpenBSD here was a mistake.
  4434. # Let's accept both of them until this is cleared up.
  4435. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4436. lt_cv_file_magic_cmd=/usr/bin/file
  4437. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4438. ;;
  4439. esac
  4440. else
  4441. lt_cv_deplibs_check_method=pass_all
  4442. fi
  4443. ;;
  4444. haiku*)
  4445. lt_cv_deplibs_check_method=pass_all
  4446. ;;
  4447. hpux10.20* | hpux11*)
  4448. lt_cv_file_magic_cmd=/usr/bin/file
  4449. case $host_cpu in
  4450. ia64*)
  4451. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4452. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4453. ;;
  4454. hppa*64*)
  4455. 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]'
  4456. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4457. ;;
  4458. *)
  4459. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4460. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4461. ;;
  4462. esac
  4463. ;;
  4464. interix[3-9]*)
  4465. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4466. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4467. ;;
  4468. irix5* | irix6* | nonstopux*)
  4469. case $LD in
  4470. *-32|*"-32 ") libmagic=32-bit;;
  4471. *-n32|*"-n32 ") libmagic=N32;;
  4472. *-64|*"-64 ") libmagic=64-bit;;
  4473. *) libmagic=never-match;;
  4474. esac
  4475. lt_cv_deplibs_check_method=pass_all
  4476. ;;
  4477. # This must be glibc/ELF.
  4478. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4479. lt_cv_deplibs_check_method=pass_all
  4480. ;;
  4481. netbsd*)
  4482. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4483. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4484. else
  4485. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4486. fi
  4487. ;;
  4488. newos6*)
  4489. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4490. lt_cv_file_magic_cmd=/usr/bin/file
  4491. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4492. ;;
  4493. *nto* | *qnx*)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. ;;
  4496. openbsd* | bitrig*)
  4497. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4498. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4499. else
  4500. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4501. fi
  4502. ;;
  4503. osf3* | osf4* | osf5*)
  4504. lt_cv_deplibs_check_method=pass_all
  4505. ;;
  4506. rdos*)
  4507. lt_cv_deplibs_check_method=pass_all
  4508. ;;
  4509. solaris*)
  4510. lt_cv_deplibs_check_method=pass_all
  4511. ;;
  4512. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4513. lt_cv_deplibs_check_method=pass_all
  4514. ;;
  4515. sysv4 | sysv4.3*)
  4516. case $host_vendor in
  4517. motorola)
  4518. 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]'
  4519. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4520. ;;
  4521. ncr)
  4522. lt_cv_deplibs_check_method=pass_all
  4523. ;;
  4524. sequent)
  4525. lt_cv_file_magic_cmd='/bin/file'
  4526. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4527. ;;
  4528. sni)
  4529. lt_cv_file_magic_cmd='/bin/file'
  4530. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4531. lt_cv_file_magic_test_file=/lib/libc.so
  4532. ;;
  4533. siemens)
  4534. lt_cv_deplibs_check_method=pass_all
  4535. ;;
  4536. pc)
  4537. lt_cv_deplibs_check_method=pass_all
  4538. ;;
  4539. esac
  4540. ;;
  4541. tpf*)
  4542. lt_cv_deplibs_check_method=pass_all
  4543. ;;
  4544. os2*)
  4545. lt_cv_deplibs_check_method=pass_all
  4546. ;;
  4547. esac
  4548. fi
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4550. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4551. file_magic_glob=
  4552. want_nocaseglob=no
  4553. if test "$build" = "$host"; then
  4554. case $host_os in
  4555. mingw* | pw32*)
  4556. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4557. want_nocaseglob=yes
  4558. else
  4559. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4560. fi
  4561. ;;
  4562. esac
  4563. fi
  4564. file_magic_cmd=$lt_cv_file_magic_cmd
  4565. deplibs_check_method=$lt_cv_deplibs_check_method
  4566. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4567. if test -n "$ac_tool_prefix"; then
  4568. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4569. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4571. $as_echo_n "checking for $ac_word... " >&6; }
  4572. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4573. $as_echo_n "(cached) " >&6
  4574. else
  4575. if test -n "$DLLTOOL"; then
  4576. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4577. else
  4578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4579. for as_dir in $PATH
  4580. do
  4581. IFS=$as_save_IFS
  4582. test -z "$as_dir" && as_dir=.
  4583. for ac_exec_ext in '' $ac_executable_extensions; do
  4584. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4585. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4587. break 2
  4588. fi
  4589. done
  4590. done
  4591. IFS=$as_save_IFS
  4592. fi
  4593. fi
  4594. DLLTOOL=$ac_cv_prog_DLLTOOL
  4595. if test -n "$DLLTOOL"; then
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4597. $as_echo "$DLLTOOL" >&6; }
  4598. else
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4600. $as_echo "no" >&6; }
  4601. fi
  4602. fi
  4603. if test -z "$ac_cv_prog_DLLTOOL"; then
  4604. ac_ct_DLLTOOL=$DLLTOOL
  4605. # Extract the first word of "dlltool", so it can be a program name with args.
  4606. set dummy dlltool; ac_word=$2
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4608. $as_echo_n "checking for $ac_word... " >&6; }
  4609. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4610. $as_echo_n "(cached) " >&6
  4611. else
  4612. if test -n "$ac_ct_DLLTOOL"; then
  4613. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4614. else
  4615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4616. for as_dir in $PATH
  4617. do
  4618. IFS=$as_save_IFS
  4619. test -z "$as_dir" && as_dir=.
  4620. for ac_exec_ext in '' $ac_executable_extensions; do
  4621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4622. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4624. break 2
  4625. fi
  4626. done
  4627. done
  4628. IFS=$as_save_IFS
  4629. fi
  4630. fi
  4631. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4632. if test -n "$ac_ct_DLLTOOL"; then
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4634. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4635. else
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4637. $as_echo "no" >&6; }
  4638. fi
  4639. if test "x$ac_ct_DLLTOOL" = x; then
  4640. DLLTOOL="false"
  4641. else
  4642. case $cross_compiling:$ac_tool_warned in
  4643. yes:)
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4645. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4646. ac_tool_warned=yes ;;
  4647. esac
  4648. DLLTOOL=$ac_ct_DLLTOOL
  4649. fi
  4650. else
  4651. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4652. fi
  4653. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4655. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4656. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4657. $as_echo_n "(cached) " >&6
  4658. else
  4659. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4660. case $host_os in
  4661. cygwin* | mingw* | pw32* | cegcc*)
  4662. # two different shell functions defined in ltmain.sh;
  4663. # decide which one to use based on capabilities of $DLLTOOL
  4664. case `$DLLTOOL --help 2>&1` in
  4665. *--identify-strict*)
  4666. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4667. ;;
  4668. *)
  4669. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4670. ;;
  4671. esac
  4672. ;;
  4673. *)
  4674. # fallback: assume linklib IS sharedlib
  4675. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4676. ;;
  4677. esac
  4678. fi
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4680. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4681. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4682. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4683. if test -n "$ac_tool_prefix"; then
  4684. for ac_prog in ar
  4685. do
  4686. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4687. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4689. $as_echo_n "checking for $ac_word... " >&6; }
  4690. if ${ac_cv_prog_AR+:} false; then :
  4691. $as_echo_n "(cached) " >&6
  4692. else
  4693. if test -n "$AR"; then
  4694. ac_cv_prog_AR="$AR" # Let the user override the test.
  4695. else
  4696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4697. for as_dir in $PATH
  4698. do
  4699. IFS=$as_save_IFS
  4700. test -z "$as_dir" && as_dir=.
  4701. for ac_exec_ext in '' $ac_executable_extensions; do
  4702. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4703. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4705. break 2
  4706. fi
  4707. done
  4708. done
  4709. IFS=$as_save_IFS
  4710. fi
  4711. fi
  4712. AR=$ac_cv_prog_AR
  4713. if test -n "$AR"; then
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4715. $as_echo "$AR" >&6; }
  4716. else
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4718. $as_echo "no" >&6; }
  4719. fi
  4720. test -n "$AR" && break
  4721. done
  4722. fi
  4723. if test -z "$AR"; then
  4724. ac_ct_AR=$AR
  4725. for ac_prog in ar
  4726. do
  4727. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4728. set dummy $ac_prog; ac_word=$2
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4730. $as_echo_n "checking for $ac_word... " >&6; }
  4731. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. if test -n "$ac_ct_AR"; then
  4735. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4736. else
  4737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4738. for as_dir in $PATH
  4739. do
  4740. IFS=$as_save_IFS
  4741. test -z "$as_dir" && as_dir=.
  4742. for ac_exec_ext in '' $ac_executable_extensions; do
  4743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4744. ac_cv_prog_ac_ct_AR="$ac_prog"
  4745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4746. break 2
  4747. fi
  4748. done
  4749. done
  4750. IFS=$as_save_IFS
  4751. fi
  4752. fi
  4753. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4754. if test -n "$ac_ct_AR"; then
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4756. $as_echo "$ac_ct_AR" >&6; }
  4757. else
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4759. $as_echo "no" >&6; }
  4760. fi
  4761. test -n "$ac_ct_AR" && break
  4762. done
  4763. if test "x$ac_ct_AR" = x; then
  4764. AR="false"
  4765. else
  4766. case $cross_compiling:$ac_tool_warned in
  4767. yes:)
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4769. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4770. ac_tool_warned=yes ;;
  4771. esac
  4772. AR=$ac_ct_AR
  4773. fi
  4774. fi
  4775. : ${AR=ar}
  4776. : ${AR_FLAGS=cru}
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4778. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4779. if ${lt_cv_ar_at_file+:} false; then :
  4780. $as_echo_n "(cached) " >&6
  4781. else
  4782. lt_cv_ar_at_file=no
  4783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4784. /* end confdefs.h. */
  4785. int
  4786. main ()
  4787. {
  4788. ;
  4789. return 0;
  4790. }
  4791. _ACEOF
  4792. if ac_fn_c_try_compile "$LINENO"; then :
  4793. echo conftest.$ac_objext > conftest.lst
  4794. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4795. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4796. (eval $lt_ar_try) 2>&5
  4797. ac_status=$?
  4798. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4799. test $ac_status = 0; }
  4800. if test 0 -eq "$ac_status"; then
  4801. # Ensure the archiver fails upon bogus file names.
  4802. rm -f conftest.$ac_objext libconftest.a
  4803. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4804. (eval $lt_ar_try) 2>&5
  4805. ac_status=$?
  4806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4807. test $ac_status = 0; }
  4808. if test 0 -ne "$ac_status"; then
  4809. lt_cv_ar_at_file=@
  4810. fi
  4811. fi
  4812. rm -f conftest.* libconftest.a
  4813. fi
  4814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4815. fi
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4817. $as_echo "$lt_cv_ar_at_file" >&6; }
  4818. if test no = "$lt_cv_ar_at_file"; then
  4819. archiver_list_spec=
  4820. else
  4821. archiver_list_spec=$lt_cv_ar_at_file
  4822. fi
  4823. if test -n "$ac_tool_prefix"; then
  4824. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4825. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4827. $as_echo_n "checking for $ac_word... " >&6; }
  4828. if ${ac_cv_prog_STRIP+:} false; then :
  4829. $as_echo_n "(cached) " >&6
  4830. else
  4831. if test -n "$STRIP"; then
  4832. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4833. else
  4834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4835. for as_dir in $PATH
  4836. do
  4837. IFS=$as_save_IFS
  4838. test -z "$as_dir" && as_dir=.
  4839. for ac_exec_ext in '' $ac_executable_extensions; do
  4840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4841. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4843. break 2
  4844. fi
  4845. done
  4846. done
  4847. IFS=$as_save_IFS
  4848. fi
  4849. fi
  4850. STRIP=$ac_cv_prog_STRIP
  4851. if test -n "$STRIP"; then
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4853. $as_echo "$STRIP" >&6; }
  4854. else
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4856. $as_echo "no" >&6; }
  4857. fi
  4858. fi
  4859. if test -z "$ac_cv_prog_STRIP"; then
  4860. ac_ct_STRIP=$STRIP
  4861. # Extract the first word of "strip", so it can be a program name with args.
  4862. set dummy strip; ac_word=$2
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4864. $as_echo_n "checking for $ac_word... " >&6; }
  4865. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4866. $as_echo_n "(cached) " >&6
  4867. else
  4868. if test -n "$ac_ct_STRIP"; then
  4869. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4870. else
  4871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4872. for as_dir in $PATH
  4873. do
  4874. IFS=$as_save_IFS
  4875. test -z "$as_dir" && as_dir=.
  4876. for ac_exec_ext in '' $ac_executable_extensions; do
  4877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4878. ac_cv_prog_ac_ct_STRIP="strip"
  4879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4880. break 2
  4881. fi
  4882. done
  4883. done
  4884. IFS=$as_save_IFS
  4885. fi
  4886. fi
  4887. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4888. if test -n "$ac_ct_STRIP"; then
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4890. $as_echo "$ac_ct_STRIP" >&6; }
  4891. else
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4893. $as_echo "no" >&6; }
  4894. fi
  4895. if test "x$ac_ct_STRIP" = x; then
  4896. STRIP=":"
  4897. else
  4898. case $cross_compiling:$ac_tool_warned in
  4899. yes:)
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4901. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4902. ac_tool_warned=yes ;;
  4903. esac
  4904. STRIP=$ac_ct_STRIP
  4905. fi
  4906. else
  4907. STRIP="$ac_cv_prog_STRIP"
  4908. fi
  4909. test -z "$STRIP" && STRIP=:
  4910. if test -n "$ac_tool_prefix"; then
  4911. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4912. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4914. $as_echo_n "checking for $ac_word... " >&6; }
  4915. if ${ac_cv_prog_RANLIB+:} false; then :
  4916. $as_echo_n "(cached) " >&6
  4917. else
  4918. if test -n "$RANLIB"; then
  4919. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4920. else
  4921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4922. for as_dir in $PATH
  4923. do
  4924. IFS=$as_save_IFS
  4925. test -z "$as_dir" && as_dir=.
  4926. for ac_exec_ext in '' $ac_executable_extensions; do
  4927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4928. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4930. break 2
  4931. fi
  4932. done
  4933. done
  4934. IFS=$as_save_IFS
  4935. fi
  4936. fi
  4937. RANLIB=$ac_cv_prog_RANLIB
  4938. if test -n "$RANLIB"; then
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4940. $as_echo "$RANLIB" >&6; }
  4941. else
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4943. $as_echo "no" >&6; }
  4944. fi
  4945. fi
  4946. if test -z "$ac_cv_prog_RANLIB"; then
  4947. ac_ct_RANLIB=$RANLIB
  4948. # Extract the first word of "ranlib", so it can be a program name with args.
  4949. set dummy ranlib; ac_word=$2
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4951. $as_echo_n "checking for $ac_word... " >&6; }
  4952. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4953. $as_echo_n "(cached) " >&6
  4954. else
  4955. if test -n "$ac_ct_RANLIB"; then
  4956. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4957. else
  4958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4959. for as_dir in $PATH
  4960. do
  4961. IFS=$as_save_IFS
  4962. test -z "$as_dir" && as_dir=.
  4963. for ac_exec_ext in '' $ac_executable_extensions; do
  4964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4965. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4967. break 2
  4968. fi
  4969. done
  4970. done
  4971. IFS=$as_save_IFS
  4972. fi
  4973. fi
  4974. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4975. if test -n "$ac_ct_RANLIB"; then
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4977. $as_echo "$ac_ct_RANLIB" >&6; }
  4978. else
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4980. $as_echo "no" >&6; }
  4981. fi
  4982. if test "x$ac_ct_RANLIB" = x; then
  4983. RANLIB=":"
  4984. else
  4985. case $cross_compiling:$ac_tool_warned in
  4986. yes:)
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4988. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4989. ac_tool_warned=yes ;;
  4990. esac
  4991. RANLIB=$ac_ct_RANLIB
  4992. fi
  4993. else
  4994. RANLIB="$ac_cv_prog_RANLIB"
  4995. fi
  4996. test -z "$RANLIB" && RANLIB=:
  4997. # Determine commands to create old-style static archives.
  4998. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4999. old_postinstall_cmds='chmod 644 $oldlib'
  5000. old_postuninstall_cmds=
  5001. if test -n "$RANLIB"; then
  5002. case $host_os in
  5003. bitrig* | openbsd*)
  5004. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5005. ;;
  5006. *)
  5007. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5008. ;;
  5009. esac
  5010. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5011. fi
  5012. case $host_os in
  5013. darwin*)
  5014. lock_old_archive_extraction=yes ;;
  5015. *)
  5016. lock_old_archive_extraction=no ;;
  5017. esac
  5018. for ac_prog in gawk mawk nawk awk
  5019. do
  5020. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5021. set dummy $ac_prog; ac_word=$2
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5023. $as_echo_n "checking for $ac_word... " >&6; }
  5024. if ${ac_cv_prog_AWK+:} false; then :
  5025. $as_echo_n "(cached) " >&6
  5026. else
  5027. if test -n "$AWK"; then
  5028. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5029. else
  5030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5031. for as_dir in $PATH
  5032. do
  5033. IFS=$as_save_IFS
  5034. test -z "$as_dir" && as_dir=.
  5035. for ac_exec_ext in '' $ac_executable_extensions; do
  5036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5037. ac_cv_prog_AWK="$ac_prog"
  5038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5039. break 2
  5040. fi
  5041. done
  5042. done
  5043. IFS=$as_save_IFS
  5044. fi
  5045. fi
  5046. AWK=$ac_cv_prog_AWK
  5047. if test -n "$AWK"; then
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5049. $as_echo "$AWK" >&6; }
  5050. else
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5052. $as_echo "no" >&6; }
  5053. fi
  5054. test -n "$AWK" && break
  5055. done
  5056. # If no C compiler was specified, use CC.
  5057. LTCC=${LTCC-"$CC"}
  5058. # If no C compiler flags were specified, use CFLAGS.
  5059. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5060. # Allow CC to be a program name with arguments.
  5061. compiler=$CC
  5062. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5064. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5065. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5066. $as_echo_n "(cached) " >&6
  5067. else
  5068. # These are sane defaults that work on at least a few old systems.
  5069. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5070. # Character class describing NM global symbol codes.
  5071. symcode='[BCDEGRST]'
  5072. # Regexp to match symbols that can be accessed directly from C.
  5073. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5074. # Define system-specific variables.
  5075. case $host_os in
  5076. aix*)
  5077. symcode='[BCDT]'
  5078. ;;
  5079. cygwin* | mingw* | pw32* | cegcc*)
  5080. symcode='[ABCDGISTW]'
  5081. ;;
  5082. hpux*)
  5083. if test ia64 = "$host_cpu"; then
  5084. symcode='[ABCDEGRST]'
  5085. fi
  5086. ;;
  5087. irix* | nonstopux*)
  5088. symcode='[BCDEGRST]'
  5089. ;;
  5090. osf*)
  5091. symcode='[BCDEGQRST]'
  5092. ;;
  5093. solaris*)
  5094. symcode='[BCDRT]'
  5095. ;;
  5096. sco3.2v5*)
  5097. symcode='[DT]'
  5098. ;;
  5099. sysv4.2uw2*)
  5100. symcode='[DT]'
  5101. ;;
  5102. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5103. symcode='[ABDT]'
  5104. ;;
  5105. sysv4)
  5106. symcode='[DFNSTU]'
  5107. ;;
  5108. esac
  5109. # If we're using GNU nm, then use its standard symbol codes.
  5110. case `$NM -V 2>&1` in
  5111. *GNU* | *'with BFD'*)
  5112. symcode='[ABCDGIRSTW]' ;;
  5113. esac
  5114. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5115. # Gets list of data symbols to import.
  5116. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5117. # Adjust the below global symbol transforms to fixup imported variables.
  5118. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5119. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5120. lt_c_name_lib_hook="\
  5121. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5122. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5123. else
  5124. # Disable hooks by default.
  5125. lt_cv_sys_global_symbol_to_import=
  5126. lt_cdecl_hook=
  5127. lt_c_name_hook=
  5128. lt_c_name_lib_hook=
  5129. fi
  5130. # Transform an extracted symbol line into a proper C declaration.
  5131. # Some systems (esp. on ia64) link data and code symbols differently,
  5132. # so use this general approach.
  5133. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5134. $lt_cdecl_hook\
  5135. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5136. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5137. # Transform an extracted symbol line into symbol name and symbol address
  5138. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5139. $lt_c_name_hook\
  5140. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5141. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5142. # Transform an extracted symbol line into symbol name with lib prefix and
  5143. # symbol address.
  5144. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5145. $lt_c_name_lib_hook\
  5146. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5147. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5148. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5149. # Handle CRLF in mingw tool chain
  5150. opt_cr=
  5151. case $build_os in
  5152. mingw*)
  5153. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5154. ;;
  5155. esac
  5156. # Try without a prefix underscore, then with it.
  5157. for ac_symprfx in "" "_"; do
  5158. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5159. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5160. # Write the raw and C identifiers.
  5161. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5162. # Fake it for dumpbin and say T for any non-static function,
  5163. # D for any global variable and I for any imported variable.
  5164. # Also find C++ and __fastcall symbols from MSVC++,
  5165. # which start with @ or ?.
  5166. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5167. " {last_section=section; section=\$ 3};"\
  5168. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5169. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5170. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5171. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5172. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5173. " \$ 0!~/External *\|/{next};"\
  5174. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5175. " {if(hide[section]) next};"\
  5176. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5177. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5178. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5179. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5180. " ' prfx=^$ac_symprfx"
  5181. else
  5182. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5183. fi
  5184. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5185. # Check to see that the pipe works correctly.
  5186. pipe_works=no
  5187. rm -f conftest*
  5188. cat > conftest.$ac_ext <<_LT_EOF
  5189. #ifdef __cplusplus
  5190. extern "C" {
  5191. #endif
  5192. char nm_test_var;
  5193. void nm_test_func(void);
  5194. void nm_test_func(void){}
  5195. #ifdef __cplusplus
  5196. }
  5197. #endif
  5198. int main(){nm_test_var='a';nm_test_func();return(0);}
  5199. _LT_EOF
  5200. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5201. (eval $ac_compile) 2>&5
  5202. ac_status=$?
  5203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5204. test $ac_status = 0; }; then
  5205. # Now try to grab the symbols.
  5206. nlist=conftest.nm
  5207. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5208. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5209. ac_status=$?
  5210. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5211. test $ac_status = 0; } && test -s "$nlist"; then
  5212. # Try sorting and uniquifying the output.
  5213. if sort "$nlist" | uniq > "$nlist"T; then
  5214. mv -f "$nlist"T "$nlist"
  5215. else
  5216. rm -f "$nlist"T
  5217. fi
  5218. # Make sure that we snagged all the symbols we need.
  5219. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5220. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5221. cat <<_LT_EOF > conftest.$ac_ext
  5222. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5223. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5224. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5225. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5226. # define LT_DLSYM_CONST
  5227. #elif defined __osf__
  5228. /* This system does not cope well with relocations in const data. */
  5229. # define LT_DLSYM_CONST
  5230. #else
  5231. # define LT_DLSYM_CONST const
  5232. #endif
  5233. #ifdef __cplusplus
  5234. extern "C" {
  5235. #endif
  5236. _LT_EOF
  5237. # Now generate the symbol file.
  5238. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5239. cat <<_LT_EOF >> conftest.$ac_ext
  5240. /* The mapping between symbol names and symbols. */
  5241. LT_DLSYM_CONST struct {
  5242. const char *name;
  5243. void *address;
  5244. }
  5245. lt__PROGRAM__LTX_preloaded_symbols[] =
  5246. {
  5247. { "@PROGRAM@", (void *) 0 },
  5248. _LT_EOF
  5249. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5250. cat <<\_LT_EOF >> conftest.$ac_ext
  5251. {0, (void *) 0}
  5252. };
  5253. /* This works around a problem in FreeBSD linker */
  5254. #ifdef FREEBSD_WORKAROUND
  5255. static const void *lt_preloaded_setup() {
  5256. return lt__PROGRAM__LTX_preloaded_symbols;
  5257. }
  5258. #endif
  5259. #ifdef __cplusplus
  5260. }
  5261. #endif
  5262. _LT_EOF
  5263. # Now try linking the two files.
  5264. mv conftest.$ac_objext conftstm.$ac_objext
  5265. lt_globsym_save_LIBS=$LIBS
  5266. lt_globsym_save_CFLAGS=$CFLAGS
  5267. LIBS=conftstm.$ac_objext
  5268. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5269. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5270. (eval $ac_link) 2>&5
  5271. ac_status=$?
  5272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5273. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5274. pipe_works=yes
  5275. fi
  5276. LIBS=$lt_globsym_save_LIBS
  5277. CFLAGS=$lt_globsym_save_CFLAGS
  5278. else
  5279. echo "cannot find nm_test_func in $nlist" >&5
  5280. fi
  5281. else
  5282. echo "cannot find nm_test_var in $nlist" >&5
  5283. fi
  5284. else
  5285. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5286. fi
  5287. else
  5288. echo "$progname: failed program was:" >&5
  5289. cat conftest.$ac_ext >&5
  5290. fi
  5291. rm -rf conftest* conftst*
  5292. # Do not use the global_symbol_pipe unless it works.
  5293. if test yes = "$pipe_works"; then
  5294. break
  5295. else
  5296. lt_cv_sys_global_symbol_pipe=
  5297. fi
  5298. done
  5299. fi
  5300. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5301. lt_cv_sys_global_symbol_to_cdecl=
  5302. fi
  5303. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5305. $as_echo "failed" >&6; }
  5306. else
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5308. $as_echo "ok" >&6; }
  5309. fi
  5310. # Response file support.
  5311. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5312. nm_file_list_spec='@'
  5313. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5314. nm_file_list_spec='@'
  5315. fi
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5317. $as_echo_n "checking for sysroot... " >&6; }
  5318. # Check whether --with-sysroot was given.
  5319. if test "${with_sysroot+set}" = set; then :
  5320. withval=$with_sysroot;
  5321. else
  5322. with_sysroot=no
  5323. fi
  5324. lt_sysroot=
  5325. case $with_sysroot in #(
  5326. yes)
  5327. if test yes = "$GCC"; then
  5328. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5329. fi
  5330. ;; #(
  5331. /*)
  5332. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5333. ;; #(
  5334. no|'')
  5335. ;; #(
  5336. *)
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5338. $as_echo "$with_sysroot" >&6; }
  5339. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5340. ;;
  5341. esac
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5343. $as_echo "${lt_sysroot:-no}" >&6; }
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5345. $as_echo_n "checking for a working dd... " >&6; }
  5346. if ${ac_cv_path_lt_DD+:} false; then :
  5347. $as_echo_n "(cached) " >&6
  5348. else
  5349. printf 0123456789abcdef0123456789abcdef >conftest.i
  5350. cat conftest.i conftest.i >conftest2.i
  5351. : ${lt_DD:=$DD}
  5352. if test -z "$lt_DD"; then
  5353. ac_path_lt_DD_found=false
  5354. # Loop through the user's path and test for each of PROGNAME-LIST
  5355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5356. for as_dir in $PATH
  5357. do
  5358. IFS=$as_save_IFS
  5359. test -z "$as_dir" && as_dir=.
  5360. for ac_prog in dd; do
  5361. for ac_exec_ext in '' $ac_executable_extensions; do
  5362. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5363. as_fn_executable_p "$ac_path_lt_DD" || continue
  5364. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5365. cmp -s conftest.i conftest.out \
  5366. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5367. fi
  5368. $ac_path_lt_DD_found && break 3
  5369. done
  5370. done
  5371. done
  5372. IFS=$as_save_IFS
  5373. if test -z "$ac_cv_path_lt_DD"; then
  5374. :
  5375. fi
  5376. else
  5377. ac_cv_path_lt_DD=$lt_DD
  5378. fi
  5379. rm -f conftest.i conftest2.i conftest.out
  5380. fi
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5382. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5384. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5385. if ${lt_cv_truncate_bin+:} false; then :
  5386. $as_echo_n "(cached) " >&6
  5387. else
  5388. printf 0123456789abcdef0123456789abcdef >conftest.i
  5389. cat conftest.i conftest.i >conftest2.i
  5390. lt_cv_truncate_bin=
  5391. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5392. cmp -s conftest.i conftest.out \
  5393. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5394. fi
  5395. rm -f conftest.i conftest2.i conftest.out
  5396. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5397. fi
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5399. $as_echo "$lt_cv_truncate_bin" >&6; }
  5400. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5401. func_cc_basename ()
  5402. {
  5403. for cc_temp in $*""; do
  5404. case $cc_temp in
  5405. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5406. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5407. \-*) ;;
  5408. *) break;;
  5409. esac
  5410. done
  5411. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5412. }
  5413. # Check whether --enable-libtool-lock was given.
  5414. if test "${enable_libtool_lock+set}" = set; then :
  5415. enableval=$enable_libtool_lock;
  5416. fi
  5417. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5418. # Some flags need to be propagated to the compiler or linker for good
  5419. # libtool support.
  5420. case $host in
  5421. ia64-*-hpux*)
  5422. # Find out what ABI is being produced by ac_compile, and set mode
  5423. # options accordingly.
  5424. echo 'int i;' > conftest.$ac_ext
  5425. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5426. (eval $ac_compile) 2>&5
  5427. ac_status=$?
  5428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5429. test $ac_status = 0; }; then
  5430. case `/usr/bin/file conftest.$ac_objext` in
  5431. *ELF-32*)
  5432. HPUX_IA64_MODE=32
  5433. ;;
  5434. *ELF-64*)
  5435. HPUX_IA64_MODE=64
  5436. ;;
  5437. esac
  5438. fi
  5439. rm -rf conftest*
  5440. ;;
  5441. *-*-irix6*)
  5442. # Find out what ABI is being produced by ac_compile, and set linker
  5443. # options accordingly.
  5444. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5445. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5446. (eval $ac_compile) 2>&5
  5447. ac_status=$?
  5448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5449. test $ac_status = 0; }; then
  5450. if test yes = "$lt_cv_prog_gnu_ld"; then
  5451. case `/usr/bin/file conftest.$ac_objext` in
  5452. *32-bit*)
  5453. LD="${LD-ld} -melf32bsmip"
  5454. ;;
  5455. *N32*)
  5456. LD="${LD-ld} -melf32bmipn32"
  5457. ;;
  5458. *64-bit*)
  5459. LD="${LD-ld} -melf64bmip"
  5460. ;;
  5461. esac
  5462. else
  5463. case `/usr/bin/file conftest.$ac_objext` in
  5464. *32-bit*)
  5465. LD="${LD-ld} -32"
  5466. ;;
  5467. *N32*)
  5468. LD="${LD-ld} -n32"
  5469. ;;
  5470. *64-bit*)
  5471. LD="${LD-ld} -64"
  5472. ;;
  5473. esac
  5474. fi
  5475. fi
  5476. rm -rf conftest*
  5477. ;;
  5478. mips64*-*linux*)
  5479. # Find out what ABI is being produced by ac_compile, and set linker
  5480. # options accordingly.
  5481. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5482. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5483. (eval $ac_compile) 2>&5
  5484. ac_status=$?
  5485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5486. test $ac_status = 0; }; then
  5487. emul=elf
  5488. case `/usr/bin/file conftest.$ac_objext` in
  5489. *32-bit*)
  5490. emul="${emul}32"
  5491. ;;
  5492. *64-bit*)
  5493. emul="${emul}64"
  5494. ;;
  5495. esac
  5496. case `/usr/bin/file conftest.$ac_objext` in
  5497. *MSB*)
  5498. emul="${emul}btsmip"
  5499. ;;
  5500. *LSB*)
  5501. emul="${emul}ltsmip"
  5502. ;;
  5503. esac
  5504. case `/usr/bin/file conftest.$ac_objext` in
  5505. *N32*)
  5506. emul="${emul}n32"
  5507. ;;
  5508. esac
  5509. LD="${LD-ld} -m $emul"
  5510. fi
  5511. rm -rf conftest*
  5512. ;;
  5513. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5514. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5515. # Find out what ABI is being produced by ac_compile, and set linker
  5516. # options accordingly. Note that the listed cases only cover the
  5517. # situations where additional linker options are needed (such as when
  5518. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5519. # vice versa); the common cases where no linker options are needed do
  5520. # not appear in the list.
  5521. echo 'int i;' > conftest.$ac_ext
  5522. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5523. (eval $ac_compile) 2>&5
  5524. ac_status=$?
  5525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5526. test $ac_status = 0; }; then
  5527. case `/usr/bin/file conftest.o` in
  5528. *32-bit*)
  5529. case $host in
  5530. x86_64-*kfreebsd*-gnu)
  5531. LD="${LD-ld} -m elf_i386_fbsd"
  5532. ;;
  5533. x86_64-*linux*)
  5534. case `/usr/bin/file conftest.o` in
  5535. *x86-64*)
  5536. LD="${LD-ld} -m elf32_x86_64"
  5537. ;;
  5538. *)
  5539. LD="${LD-ld} -m elf_i386"
  5540. ;;
  5541. esac
  5542. ;;
  5543. powerpc64le-*linux*)
  5544. LD="${LD-ld} -m elf32lppclinux"
  5545. ;;
  5546. powerpc64-*linux*)
  5547. LD="${LD-ld} -m elf32ppclinux"
  5548. ;;
  5549. s390x-*linux*)
  5550. LD="${LD-ld} -m elf_s390"
  5551. ;;
  5552. sparc64-*linux*)
  5553. LD="${LD-ld} -m elf32_sparc"
  5554. ;;
  5555. esac
  5556. ;;
  5557. *64-bit*)
  5558. case $host in
  5559. x86_64-*kfreebsd*-gnu)
  5560. LD="${LD-ld} -m elf_x86_64_fbsd"
  5561. ;;
  5562. x86_64-*linux*)
  5563. LD="${LD-ld} -m elf_x86_64"
  5564. ;;
  5565. powerpcle-*linux*|powerpc64le-*linux*)
  5566. LD="${LD-ld} -m elf64lppc"
  5567. ;;
  5568. powerpc-*linux*|powerpc64-*linux*)
  5569. LD="${LD-ld} -m elf64ppc"
  5570. ;;
  5571. s390*-*linux*|s390*-*tpf*)
  5572. LD="${LD-ld} -m elf64_s390"
  5573. ;;
  5574. sparc*-*linux*)
  5575. LD="${LD-ld} -m elf64_sparc"
  5576. ;;
  5577. esac
  5578. ;;
  5579. esac
  5580. fi
  5581. rm -rf conftest*
  5582. ;;
  5583. *-*-sco3.2v5*)
  5584. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5585. SAVE_CFLAGS=$CFLAGS
  5586. CFLAGS="$CFLAGS -belf"
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5588. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5589. if ${lt_cv_cc_needs_belf+:} false; then :
  5590. $as_echo_n "(cached) " >&6
  5591. else
  5592. ac_ext=c
  5593. ac_cpp='$CPP $CPPFLAGS'
  5594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5598. /* end confdefs.h. */
  5599. int
  5600. main ()
  5601. {
  5602. ;
  5603. return 0;
  5604. }
  5605. _ACEOF
  5606. if ac_fn_c_try_link "$LINENO"; then :
  5607. lt_cv_cc_needs_belf=yes
  5608. else
  5609. lt_cv_cc_needs_belf=no
  5610. fi
  5611. rm -f core conftest.err conftest.$ac_objext \
  5612. conftest$ac_exeext conftest.$ac_ext
  5613. ac_ext=c
  5614. ac_cpp='$CPP $CPPFLAGS'
  5615. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5616. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5617. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5618. fi
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5620. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5621. if test yes != "$lt_cv_cc_needs_belf"; then
  5622. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5623. CFLAGS=$SAVE_CFLAGS
  5624. fi
  5625. ;;
  5626. *-*solaris*)
  5627. # Find out what ABI is being produced by ac_compile, and set linker
  5628. # options accordingly.
  5629. echo 'int i;' > conftest.$ac_ext
  5630. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5631. (eval $ac_compile) 2>&5
  5632. ac_status=$?
  5633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5634. test $ac_status = 0; }; then
  5635. case `/usr/bin/file conftest.o` in
  5636. *64-bit*)
  5637. case $lt_cv_prog_gnu_ld in
  5638. yes*)
  5639. case $host in
  5640. i?86-*-solaris*|x86_64-*-solaris*)
  5641. LD="${LD-ld} -m elf_x86_64"
  5642. ;;
  5643. sparc*-*-solaris*)
  5644. LD="${LD-ld} -m elf64_sparc"
  5645. ;;
  5646. esac
  5647. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5648. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5649. LD=${LD-ld}_sol2
  5650. fi
  5651. ;;
  5652. *)
  5653. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5654. LD="${LD-ld} -64"
  5655. fi
  5656. ;;
  5657. esac
  5658. ;;
  5659. esac
  5660. fi
  5661. rm -rf conftest*
  5662. ;;
  5663. esac
  5664. need_locks=$enable_libtool_lock
  5665. if test -n "$ac_tool_prefix"; then
  5666. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5667. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5669. $as_echo_n "checking for $ac_word... " >&6; }
  5670. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5671. $as_echo_n "(cached) " >&6
  5672. else
  5673. if test -n "$MANIFEST_TOOL"; then
  5674. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5675. else
  5676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5677. for as_dir in $PATH
  5678. do
  5679. IFS=$as_save_IFS
  5680. test -z "$as_dir" && as_dir=.
  5681. for ac_exec_ext in '' $ac_executable_extensions; do
  5682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5683. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5685. break 2
  5686. fi
  5687. done
  5688. done
  5689. IFS=$as_save_IFS
  5690. fi
  5691. fi
  5692. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5693. if test -n "$MANIFEST_TOOL"; then
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5695. $as_echo "$MANIFEST_TOOL" >&6; }
  5696. else
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5698. $as_echo "no" >&6; }
  5699. fi
  5700. fi
  5701. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5702. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5703. # Extract the first word of "mt", so it can be a program name with args.
  5704. set dummy mt; 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_ac_ct_MANIFEST_TOOL+:} false; then :
  5708. $as_echo_n "(cached) " >&6
  5709. else
  5710. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5711. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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_ac_ct_MANIFEST_TOOL="mt"
  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. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5730. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5732. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5733. else
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5735. $as_echo "no" >&6; }
  5736. fi
  5737. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5738. MANIFEST_TOOL=":"
  5739. else
  5740. case $cross_compiling:$ac_tool_warned in
  5741. yes:)
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5743. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5744. ac_tool_warned=yes ;;
  5745. esac
  5746. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5747. fi
  5748. else
  5749. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5750. fi
  5751. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5753. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5754. if ${lt_cv_path_mainfest_tool+:} false; then :
  5755. $as_echo_n "(cached) " >&6
  5756. else
  5757. lt_cv_path_mainfest_tool=no
  5758. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5759. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5760. cat conftest.err >&5
  5761. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5762. lt_cv_path_mainfest_tool=yes
  5763. fi
  5764. rm -f conftest*
  5765. fi
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5767. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5768. if test yes != "$lt_cv_path_mainfest_tool"; then
  5769. MANIFEST_TOOL=:
  5770. fi
  5771. case $host_os in
  5772. rhapsody* | darwin*)
  5773. if test -n "$ac_tool_prefix"; then
  5774. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5775. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5777. $as_echo_n "checking for $ac_word... " >&6; }
  5778. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5779. $as_echo_n "(cached) " >&6
  5780. else
  5781. if test -n "$DSYMUTIL"; then
  5782. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5783. else
  5784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5785. for as_dir in $PATH
  5786. do
  5787. IFS=$as_save_IFS
  5788. test -z "$as_dir" && as_dir=.
  5789. for ac_exec_ext in '' $ac_executable_extensions; do
  5790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5791. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5793. break 2
  5794. fi
  5795. done
  5796. done
  5797. IFS=$as_save_IFS
  5798. fi
  5799. fi
  5800. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5801. if test -n "$DSYMUTIL"; then
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5803. $as_echo "$DSYMUTIL" >&6; }
  5804. else
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5806. $as_echo "no" >&6; }
  5807. fi
  5808. fi
  5809. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5810. ac_ct_DSYMUTIL=$DSYMUTIL
  5811. # Extract the first word of "dsymutil", so it can be a program name with args.
  5812. set dummy dsymutil; ac_word=$2
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5814. $as_echo_n "checking for $ac_word... " >&6; }
  5815. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5816. $as_echo_n "(cached) " >&6
  5817. else
  5818. if test -n "$ac_ct_DSYMUTIL"; then
  5819. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5820. else
  5821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5822. for as_dir in $PATH
  5823. do
  5824. IFS=$as_save_IFS
  5825. test -z "$as_dir" && as_dir=.
  5826. for ac_exec_ext in '' $ac_executable_extensions; do
  5827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5828. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5830. break 2
  5831. fi
  5832. done
  5833. done
  5834. IFS=$as_save_IFS
  5835. fi
  5836. fi
  5837. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5838. if test -n "$ac_ct_DSYMUTIL"; then
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5840. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5841. else
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5843. $as_echo "no" >&6; }
  5844. fi
  5845. if test "x$ac_ct_DSYMUTIL" = x; then
  5846. DSYMUTIL=":"
  5847. else
  5848. case $cross_compiling:$ac_tool_warned in
  5849. yes:)
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5851. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5852. ac_tool_warned=yes ;;
  5853. esac
  5854. DSYMUTIL=$ac_ct_DSYMUTIL
  5855. fi
  5856. else
  5857. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5858. fi
  5859. if test -n "$ac_tool_prefix"; then
  5860. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5861. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5863. $as_echo_n "checking for $ac_word... " >&6; }
  5864. if ${ac_cv_prog_NMEDIT+:} false; then :
  5865. $as_echo_n "(cached) " >&6
  5866. else
  5867. if test -n "$NMEDIT"; then
  5868. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5869. else
  5870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5871. for as_dir in $PATH
  5872. do
  5873. IFS=$as_save_IFS
  5874. test -z "$as_dir" && as_dir=.
  5875. for ac_exec_ext in '' $ac_executable_extensions; do
  5876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5877. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5879. break 2
  5880. fi
  5881. done
  5882. done
  5883. IFS=$as_save_IFS
  5884. fi
  5885. fi
  5886. NMEDIT=$ac_cv_prog_NMEDIT
  5887. if test -n "$NMEDIT"; then
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5889. $as_echo "$NMEDIT" >&6; }
  5890. else
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5892. $as_echo "no" >&6; }
  5893. fi
  5894. fi
  5895. if test -z "$ac_cv_prog_NMEDIT"; then
  5896. ac_ct_NMEDIT=$NMEDIT
  5897. # Extract the first word of "nmedit", so it can be a program name with args.
  5898. set dummy nmedit; ac_word=$2
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5900. $as_echo_n "checking for $ac_word... " >&6; }
  5901. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. if test -n "$ac_ct_NMEDIT"; then
  5905. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5906. else
  5907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5908. for as_dir in $PATH
  5909. do
  5910. IFS=$as_save_IFS
  5911. test -z "$as_dir" && as_dir=.
  5912. for ac_exec_ext in '' $ac_executable_extensions; do
  5913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5914. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5916. break 2
  5917. fi
  5918. done
  5919. done
  5920. IFS=$as_save_IFS
  5921. fi
  5922. fi
  5923. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5924. if test -n "$ac_ct_NMEDIT"; then
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5926. $as_echo "$ac_ct_NMEDIT" >&6; }
  5927. else
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5929. $as_echo "no" >&6; }
  5930. fi
  5931. if test "x$ac_ct_NMEDIT" = x; then
  5932. NMEDIT=":"
  5933. else
  5934. case $cross_compiling:$ac_tool_warned in
  5935. yes:)
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5937. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5938. ac_tool_warned=yes ;;
  5939. esac
  5940. NMEDIT=$ac_ct_NMEDIT
  5941. fi
  5942. else
  5943. NMEDIT="$ac_cv_prog_NMEDIT"
  5944. fi
  5945. if test -n "$ac_tool_prefix"; then
  5946. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5947. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5949. $as_echo_n "checking for $ac_word... " >&6; }
  5950. if ${ac_cv_prog_LIPO+:} false; then :
  5951. $as_echo_n "(cached) " >&6
  5952. else
  5953. if test -n "$LIPO"; then
  5954. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5955. else
  5956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5957. for as_dir in $PATH
  5958. do
  5959. IFS=$as_save_IFS
  5960. test -z "$as_dir" && as_dir=.
  5961. for ac_exec_ext in '' $ac_executable_extensions; do
  5962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5963. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5965. break 2
  5966. fi
  5967. done
  5968. done
  5969. IFS=$as_save_IFS
  5970. fi
  5971. fi
  5972. LIPO=$ac_cv_prog_LIPO
  5973. if test -n "$LIPO"; then
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5975. $as_echo "$LIPO" >&6; }
  5976. else
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5978. $as_echo "no" >&6; }
  5979. fi
  5980. fi
  5981. if test -z "$ac_cv_prog_LIPO"; then
  5982. ac_ct_LIPO=$LIPO
  5983. # Extract the first word of "lipo", so it can be a program name with args.
  5984. set dummy lipo; ac_word=$2
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5986. $as_echo_n "checking for $ac_word... " >&6; }
  5987. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5988. $as_echo_n "(cached) " >&6
  5989. else
  5990. if test -n "$ac_ct_LIPO"; then
  5991. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5992. else
  5993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5994. for as_dir in $PATH
  5995. do
  5996. IFS=$as_save_IFS
  5997. test -z "$as_dir" && as_dir=.
  5998. for ac_exec_ext in '' $ac_executable_extensions; do
  5999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6000. ac_cv_prog_ac_ct_LIPO="lipo"
  6001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6002. break 2
  6003. fi
  6004. done
  6005. done
  6006. IFS=$as_save_IFS
  6007. fi
  6008. fi
  6009. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6010. if test -n "$ac_ct_LIPO"; then
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6012. $as_echo "$ac_ct_LIPO" >&6; }
  6013. else
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6015. $as_echo "no" >&6; }
  6016. fi
  6017. if test "x$ac_ct_LIPO" = x; then
  6018. LIPO=":"
  6019. else
  6020. case $cross_compiling:$ac_tool_warned in
  6021. yes:)
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6023. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6024. ac_tool_warned=yes ;;
  6025. esac
  6026. LIPO=$ac_ct_LIPO
  6027. fi
  6028. else
  6029. LIPO="$ac_cv_prog_LIPO"
  6030. fi
  6031. if test -n "$ac_tool_prefix"; then
  6032. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6033. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6035. $as_echo_n "checking for $ac_word... " >&6; }
  6036. if ${ac_cv_prog_OTOOL+:} false; then :
  6037. $as_echo_n "(cached) " >&6
  6038. else
  6039. if test -n "$OTOOL"; then
  6040. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6041. else
  6042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6043. for as_dir in $PATH
  6044. do
  6045. IFS=$as_save_IFS
  6046. test -z "$as_dir" && as_dir=.
  6047. for ac_exec_ext in '' $ac_executable_extensions; do
  6048. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6049. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6051. break 2
  6052. fi
  6053. done
  6054. done
  6055. IFS=$as_save_IFS
  6056. fi
  6057. fi
  6058. OTOOL=$ac_cv_prog_OTOOL
  6059. if test -n "$OTOOL"; then
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6061. $as_echo "$OTOOL" >&6; }
  6062. else
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6064. $as_echo "no" >&6; }
  6065. fi
  6066. fi
  6067. if test -z "$ac_cv_prog_OTOOL"; then
  6068. ac_ct_OTOOL=$OTOOL
  6069. # Extract the first word of "otool", so it can be a program name with args.
  6070. set dummy otool; ac_word=$2
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6072. $as_echo_n "checking for $ac_word... " >&6; }
  6073. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6074. $as_echo_n "(cached) " >&6
  6075. else
  6076. if test -n "$ac_ct_OTOOL"; then
  6077. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6078. else
  6079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6080. for as_dir in $PATH
  6081. do
  6082. IFS=$as_save_IFS
  6083. test -z "$as_dir" && as_dir=.
  6084. for ac_exec_ext in '' $ac_executable_extensions; do
  6085. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6086. ac_cv_prog_ac_ct_OTOOL="otool"
  6087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6088. break 2
  6089. fi
  6090. done
  6091. done
  6092. IFS=$as_save_IFS
  6093. fi
  6094. fi
  6095. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6096. if test -n "$ac_ct_OTOOL"; then
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6098. $as_echo "$ac_ct_OTOOL" >&6; }
  6099. else
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6101. $as_echo "no" >&6; }
  6102. fi
  6103. if test "x$ac_ct_OTOOL" = x; then
  6104. OTOOL=":"
  6105. else
  6106. case $cross_compiling:$ac_tool_warned in
  6107. yes:)
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6109. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6110. ac_tool_warned=yes ;;
  6111. esac
  6112. OTOOL=$ac_ct_OTOOL
  6113. fi
  6114. else
  6115. OTOOL="$ac_cv_prog_OTOOL"
  6116. fi
  6117. if test -n "$ac_tool_prefix"; then
  6118. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6119. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6121. $as_echo_n "checking for $ac_word... " >&6; }
  6122. if ${ac_cv_prog_OTOOL64+:} false; then :
  6123. $as_echo_n "(cached) " >&6
  6124. else
  6125. if test -n "$OTOOL64"; then
  6126. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6127. else
  6128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6129. for as_dir in $PATH
  6130. do
  6131. IFS=$as_save_IFS
  6132. test -z "$as_dir" && as_dir=.
  6133. for ac_exec_ext in '' $ac_executable_extensions; do
  6134. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6135. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6137. break 2
  6138. fi
  6139. done
  6140. done
  6141. IFS=$as_save_IFS
  6142. fi
  6143. fi
  6144. OTOOL64=$ac_cv_prog_OTOOL64
  6145. if test -n "$OTOOL64"; then
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6147. $as_echo "$OTOOL64" >&6; }
  6148. else
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6150. $as_echo "no" >&6; }
  6151. fi
  6152. fi
  6153. if test -z "$ac_cv_prog_OTOOL64"; then
  6154. ac_ct_OTOOL64=$OTOOL64
  6155. # Extract the first word of "otool64", so it can be a program name with args.
  6156. set dummy otool64; ac_word=$2
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6158. $as_echo_n "checking for $ac_word... " >&6; }
  6159. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6160. $as_echo_n "(cached) " >&6
  6161. else
  6162. if test -n "$ac_ct_OTOOL64"; then
  6163. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6164. else
  6165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6166. for as_dir in $PATH
  6167. do
  6168. IFS=$as_save_IFS
  6169. test -z "$as_dir" && as_dir=.
  6170. for ac_exec_ext in '' $ac_executable_extensions; do
  6171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6172. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6174. break 2
  6175. fi
  6176. done
  6177. done
  6178. IFS=$as_save_IFS
  6179. fi
  6180. fi
  6181. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6182. if test -n "$ac_ct_OTOOL64"; then
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6184. $as_echo "$ac_ct_OTOOL64" >&6; }
  6185. else
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6187. $as_echo "no" >&6; }
  6188. fi
  6189. if test "x$ac_ct_OTOOL64" = x; then
  6190. OTOOL64=":"
  6191. else
  6192. case $cross_compiling:$ac_tool_warned in
  6193. yes:)
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6195. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6196. ac_tool_warned=yes ;;
  6197. esac
  6198. OTOOL64=$ac_ct_OTOOL64
  6199. fi
  6200. else
  6201. OTOOL64="$ac_cv_prog_OTOOL64"
  6202. fi
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6204. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6205. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6206. $as_echo_n "(cached) " >&6
  6207. else
  6208. lt_cv_apple_cc_single_mod=no
  6209. if test -z "$LT_MULTI_MODULE"; then
  6210. # By default we will add the -single_module flag. You can override
  6211. # by either setting the environment variable LT_MULTI_MODULE
  6212. # non-empty at configure time, or by adding -multi_module to the
  6213. # link flags.
  6214. rm -rf libconftest.dylib*
  6215. echo "int foo(void){return 1;}" > conftest.c
  6216. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6217. -dynamiclib -Wl,-single_module conftest.c" >&5
  6218. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6219. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6220. _lt_result=$?
  6221. # If there is a non-empty error log, and "single_module"
  6222. # appears in it, assume the flag caused a linker warning
  6223. if test -s conftest.err && $GREP single_module conftest.err; then
  6224. cat conftest.err >&5
  6225. # Otherwise, if the output was created with a 0 exit code from
  6226. # the compiler, it worked.
  6227. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6228. lt_cv_apple_cc_single_mod=yes
  6229. else
  6230. cat conftest.err >&5
  6231. fi
  6232. rm -rf libconftest.dylib*
  6233. rm -f conftest.*
  6234. fi
  6235. fi
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6237. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6239. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6240. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6241. $as_echo_n "(cached) " >&6
  6242. else
  6243. lt_cv_ld_exported_symbols_list=no
  6244. save_LDFLAGS=$LDFLAGS
  6245. echo "_main" > conftest.sym
  6246. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6248. /* end confdefs.h. */
  6249. int
  6250. main ()
  6251. {
  6252. ;
  6253. return 0;
  6254. }
  6255. _ACEOF
  6256. if ac_fn_c_try_link "$LINENO"; then :
  6257. lt_cv_ld_exported_symbols_list=yes
  6258. else
  6259. lt_cv_ld_exported_symbols_list=no
  6260. fi
  6261. rm -f core conftest.err conftest.$ac_objext \
  6262. conftest$ac_exeext conftest.$ac_ext
  6263. LDFLAGS=$save_LDFLAGS
  6264. fi
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6266. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6268. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6269. if ${lt_cv_ld_force_load+:} false; then :
  6270. $as_echo_n "(cached) " >&6
  6271. else
  6272. lt_cv_ld_force_load=no
  6273. cat > conftest.c << _LT_EOF
  6274. int forced_loaded() { return 2;}
  6275. _LT_EOF
  6276. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6277. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6278. echo "$AR cru libconftest.a conftest.o" >&5
  6279. $AR cru libconftest.a conftest.o 2>&5
  6280. echo "$RANLIB libconftest.a" >&5
  6281. $RANLIB libconftest.a 2>&5
  6282. cat > conftest.c << _LT_EOF
  6283. int main() { return 0;}
  6284. _LT_EOF
  6285. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6286. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6287. _lt_result=$?
  6288. if test -s conftest.err && $GREP force_load conftest.err; then
  6289. cat conftest.err >&5
  6290. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6291. lt_cv_ld_force_load=yes
  6292. else
  6293. cat conftest.err >&5
  6294. fi
  6295. rm -f conftest.err libconftest.a conftest conftest.c
  6296. rm -rf conftest.dSYM
  6297. fi
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6299. $as_echo "$lt_cv_ld_force_load" >&6; }
  6300. case $host_os in
  6301. rhapsody* | darwin1.[012])
  6302. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6303. darwin1.*)
  6304. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6305. darwin*)
  6306. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6307. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6308. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6309. *)
  6310. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6311. esac
  6312. ;;
  6313. esac
  6314. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6315. _lt_dar_single_mod='$single_module'
  6316. fi
  6317. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6318. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6319. else
  6320. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6321. fi
  6322. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6323. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6324. else
  6325. _lt_dsymutil=
  6326. fi
  6327. ;;
  6328. esac
  6329. # func_munge_path_list VARIABLE PATH
  6330. # -----------------------------------
  6331. # VARIABLE is name of variable containing _space_ separated list of
  6332. # directories to be munged by the contents of PATH, which is string
  6333. # having a format:
  6334. # "DIR[:DIR]:"
  6335. # string "DIR[ DIR]" will be prepended to VARIABLE
  6336. # ":DIR[:DIR]"
  6337. # string "DIR[ DIR]" will be appended to VARIABLE
  6338. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6339. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6340. # "DIRA[ DIRA]" will be appended to VARIABLE
  6341. # "DIR[:DIR]"
  6342. # VARIABLE will be replaced by "DIR[ DIR]"
  6343. func_munge_path_list ()
  6344. {
  6345. case x$2 in
  6346. x)
  6347. ;;
  6348. *:)
  6349. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6350. ;;
  6351. x:*)
  6352. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6353. ;;
  6354. *::*)
  6355. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6356. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6357. ;;
  6358. *)
  6359. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6360. ;;
  6361. esac
  6362. }
  6363. ac_ext=c
  6364. ac_cpp='$CPP $CPPFLAGS'
  6365. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6366. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6367. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6369. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6370. # On Suns, sometimes $CPP names a directory.
  6371. if test -n "$CPP" && test -d "$CPP"; then
  6372. CPP=
  6373. fi
  6374. if test -z "$CPP"; then
  6375. if ${ac_cv_prog_CPP+:} false; then :
  6376. $as_echo_n "(cached) " >&6
  6377. else
  6378. # Double quotes because CPP needs to be expanded
  6379. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6380. do
  6381. ac_preproc_ok=false
  6382. for ac_c_preproc_warn_flag in '' yes
  6383. do
  6384. # Use a header file that comes with gcc, so configuring glibc
  6385. # with a fresh cross-compiler works.
  6386. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6387. # <limits.h> exists even on freestanding compilers.
  6388. # On the NeXT, cc -E runs the code through the compiler's parser,
  6389. # not just through cpp. "Syntax error" is here to catch this case.
  6390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6391. /* end confdefs.h. */
  6392. #ifdef __STDC__
  6393. # include <limits.h>
  6394. #else
  6395. # include <assert.h>
  6396. #endif
  6397. Syntax error
  6398. _ACEOF
  6399. if ac_fn_c_try_cpp "$LINENO"; then :
  6400. else
  6401. # Broken: fails on valid input.
  6402. continue
  6403. fi
  6404. rm -f conftest.err conftest.i conftest.$ac_ext
  6405. # OK, works on sane cases. Now check whether nonexistent headers
  6406. # can be detected and how.
  6407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6408. /* end confdefs.h. */
  6409. #include <ac_nonexistent.h>
  6410. _ACEOF
  6411. if ac_fn_c_try_cpp "$LINENO"; then :
  6412. # Broken: success on invalid input.
  6413. continue
  6414. else
  6415. # Passes both tests.
  6416. ac_preproc_ok=:
  6417. break
  6418. fi
  6419. rm -f conftest.err conftest.i conftest.$ac_ext
  6420. done
  6421. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6422. rm -f conftest.i conftest.err conftest.$ac_ext
  6423. if $ac_preproc_ok; then :
  6424. break
  6425. fi
  6426. done
  6427. ac_cv_prog_CPP=$CPP
  6428. fi
  6429. CPP=$ac_cv_prog_CPP
  6430. else
  6431. ac_cv_prog_CPP=$CPP
  6432. fi
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6434. $as_echo "$CPP" >&6; }
  6435. ac_preproc_ok=false
  6436. for ac_c_preproc_warn_flag in '' yes
  6437. do
  6438. # Use a header file that comes with gcc, so configuring glibc
  6439. # with a fresh cross-compiler works.
  6440. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6441. # <limits.h> exists even on freestanding compilers.
  6442. # On the NeXT, cc -E runs the code through the compiler's parser,
  6443. # not just through cpp. "Syntax error" is here to catch this case.
  6444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6445. /* end confdefs.h. */
  6446. #ifdef __STDC__
  6447. # include <limits.h>
  6448. #else
  6449. # include <assert.h>
  6450. #endif
  6451. Syntax error
  6452. _ACEOF
  6453. if ac_fn_c_try_cpp "$LINENO"; then :
  6454. else
  6455. # Broken: fails on valid input.
  6456. continue
  6457. fi
  6458. rm -f conftest.err conftest.i conftest.$ac_ext
  6459. # OK, works on sane cases. Now check whether nonexistent headers
  6460. # can be detected and how.
  6461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6462. /* end confdefs.h. */
  6463. #include <ac_nonexistent.h>
  6464. _ACEOF
  6465. if ac_fn_c_try_cpp "$LINENO"; then :
  6466. # Broken: success on invalid input.
  6467. continue
  6468. else
  6469. # Passes both tests.
  6470. ac_preproc_ok=:
  6471. break
  6472. fi
  6473. rm -f conftest.err conftest.i conftest.$ac_ext
  6474. done
  6475. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6476. rm -f conftest.i conftest.err conftest.$ac_ext
  6477. if $ac_preproc_ok; then :
  6478. else
  6479. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6480. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6481. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6482. See \`config.log' for more details" "$LINENO" 5; }
  6483. fi
  6484. ac_ext=c
  6485. ac_cpp='$CPP $CPPFLAGS'
  6486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6490. $as_echo_n "checking for ANSI C header files... " >&6; }
  6491. if ${ac_cv_header_stdc+:} false; then :
  6492. $as_echo_n "(cached) " >&6
  6493. else
  6494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6495. /* end confdefs.h. */
  6496. #include <stdlib.h>
  6497. #include <stdarg.h>
  6498. #include <string.h>
  6499. #include <float.h>
  6500. int
  6501. main ()
  6502. {
  6503. ;
  6504. return 0;
  6505. }
  6506. _ACEOF
  6507. if ac_fn_c_try_compile "$LINENO"; then :
  6508. ac_cv_header_stdc=yes
  6509. else
  6510. ac_cv_header_stdc=no
  6511. fi
  6512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6513. if test $ac_cv_header_stdc = yes; then
  6514. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6516. /* end confdefs.h. */
  6517. #include <string.h>
  6518. _ACEOF
  6519. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6520. $EGREP "memchr" >/dev/null 2>&1; then :
  6521. else
  6522. ac_cv_header_stdc=no
  6523. fi
  6524. rm -f conftest*
  6525. fi
  6526. if test $ac_cv_header_stdc = yes; then
  6527. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6529. /* end confdefs.h. */
  6530. #include <stdlib.h>
  6531. _ACEOF
  6532. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6533. $EGREP "free" >/dev/null 2>&1; then :
  6534. else
  6535. ac_cv_header_stdc=no
  6536. fi
  6537. rm -f conftest*
  6538. fi
  6539. if test $ac_cv_header_stdc = yes; then
  6540. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6541. if test "$cross_compiling" = yes; then :
  6542. :
  6543. else
  6544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6545. /* end confdefs.h. */
  6546. #include <ctype.h>
  6547. #include <stdlib.h>
  6548. #if ((' ' & 0x0FF) == 0x020)
  6549. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6550. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6551. #else
  6552. # define ISLOWER(c) \
  6553. (('a' <= (c) && (c) <= 'i') \
  6554. || ('j' <= (c) && (c) <= 'r') \
  6555. || ('s' <= (c) && (c) <= 'z'))
  6556. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6557. #endif
  6558. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6559. int
  6560. main ()
  6561. {
  6562. int i;
  6563. for (i = 0; i < 256; i++)
  6564. if (XOR (islower (i), ISLOWER (i))
  6565. || toupper (i) != TOUPPER (i))
  6566. return 2;
  6567. return 0;
  6568. }
  6569. _ACEOF
  6570. if ac_fn_c_try_run "$LINENO"; then :
  6571. else
  6572. ac_cv_header_stdc=no
  6573. fi
  6574. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6575. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6576. fi
  6577. fi
  6578. fi
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6580. $as_echo "$ac_cv_header_stdc" >&6; }
  6581. if test $ac_cv_header_stdc = yes; then
  6582. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6583. fi
  6584. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6585. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6586. inttypes.h stdint.h unistd.h
  6587. do :
  6588. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6589. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6590. "
  6591. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6592. cat >>confdefs.h <<_ACEOF
  6593. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6594. _ACEOF
  6595. fi
  6596. done
  6597. for ac_header in dlfcn.h
  6598. do :
  6599. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6600. "
  6601. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6602. cat >>confdefs.h <<_ACEOF
  6603. #define HAVE_DLFCN_H 1
  6604. _ACEOF
  6605. fi
  6606. done
  6607. # Set options
  6608. enable_win32_dll=yes
  6609. case $host in
  6610. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6611. if test -n "$ac_tool_prefix"; then
  6612. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6613. set dummy ${ac_tool_prefix}as; ac_word=$2
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6615. $as_echo_n "checking for $ac_word... " >&6; }
  6616. if ${ac_cv_prog_AS+:} false; then :
  6617. $as_echo_n "(cached) " >&6
  6618. else
  6619. if test -n "$AS"; then
  6620. ac_cv_prog_AS="$AS" # Let the user override the test.
  6621. else
  6622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6623. for as_dir in $PATH
  6624. do
  6625. IFS=$as_save_IFS
  6626. test -z "$as_dir" && as_dir=.
  6627. for ac_exec_ext in '' $ac_executable_extensions; do
  6628. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6629. ac_cv_prog_AS="${ac_tool_prefix}as"
  6630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6631. break 2
  6632. fi
  6633. done
  6634. done
  6635. IFS=$as_save_IFS
  6636. fi
  6637. fi
  6638. AS=$ac_cv_prog_AS
  6639. if test -n "$AS"; then
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6641. $as_echo "$AS" >&6; }
  6642. else
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6644. $as_echo "no" >&6; }
  6645. fi
  6646. fi
  6647. if test -z "$ac_cv_prog_AS"; then
  6648. ac_ct_AS=$AS
  6649. # Extract the first word of "as", so it can be a program name with args.
  6650. set dummy as; ac_word=$2
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6652. $as_echo_n "checking for $ac_word... " >&6; }
  6653. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6654. $as_echo_n "(cached) " >&6
  6655. else
  6656. if test -n "$ac_ct_AS"; then
  6657. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6658. else
  6659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6660. for as_dir in $PATH
  6661. do
  6662. IFS=$as_save_IFS
  6663. test -z "$as_dir" && as_dir=.
  6664. for ac_exec_ext in '' $ac_executable_extensions; do
  6665. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6666. ac_cv_prog_ac_ct_AS="as"
  6667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6668. break 2
  6669. fi
  6670. done
  6671. done
  6672. IFS=$as_save_IFS
  6673. fi
  6674. fi
  6675. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6676. if test -n "$ac_ct_AS"; then
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6678. $as_echo "$ac_ct_AS" >&6; }
  6679. else
  6680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6681. $as_echo "no" >&6; }
  6682. fi
  6683. if test "x$ac_ct_AS" = x; then
  6684. AS="false"
  6685. else
  6686. case $cross_compiling:$ac_tool_warned in
  6687. yes:)
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6689. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6690. ac_tool_warned=yes ;;
  6691. esac
  6692. AS=$ac_ct_AS
  6693. fi
  6694. else
  6695. AS="$ac_cv_prog_AS"
  6696. fi
  6697. if test -n "$ac_tool_prefix"; then
  6698. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6699. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6701. $as_echo_n "checking for $ac_word... " >&6; }
  6702. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6703. $as_echo_n "(cached) " >&6
  6704. else
  6705. if test -n "$DLLTOOL"; then
  6706. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6707. else
  6708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6709. for as_dir in $PATH
  6710. do
  6711. IFS=$as_save_IFS
  6712. test -z "$as_dir" && as_dir=.
  6713. for ac_exec_ext in '' $ac_executable_extensions; do
  6714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6715. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6717. break 2
  6718. fi
  6719. done
  6720. done
  6721. IFS=$as_save_IFS
  6722. fi
  6723. fi
  6724. DLLTOOL=$ac_cv_prog_DLLTOOL
  6725. if test -n "$DLLTOOL"; then
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6727. $as_echo "$DLLTOOL" >&6; }
  6728. else
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6730. $as_echo "no" >&6; }
  6731. fi
  6732. fi
  6733. if test -z "$ac_cv_prog_DLLTOOL"; then
  6734. ac_ct_DLLTOOL=$DLLTOOL
  6735. # Extract the first word of "dlltool", so it can be a program name with args.
  6736. set dummy dlltool; ac_word=$2
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6738. $as_echo_n "checking for $ac_word... " >&6; }
  6739. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6740. $as_echo_n "(cached) " >&6
  6741. else
  6742. if test -n "$ac_ct_DLLTOOL"; then
  6743. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6744. else
  6745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6746. for as_dir in $PATH
  6747. do
  6748. IFS=$as_save_IFS
  6749. test -z "$as_dir" && as_dir=.
  6750. for ac_exec_ext in '' $ac_executable_extensions; do
  6751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6752. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6754. break 2
  6755. fi
  6756. done
  6757. done
  6758. IFS=$as_save_IFS
  6759. fi
  6760. fi
  6761. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6762. if test -n "$ac_ct_DLLTOOL"; then
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6764. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6765. else
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6767. $as_echo "no" >&6; }
  6768. fi
  6769. if test "x$ac_ct_DLLTOOL" = x; then
  6770. DLLTOOL="false"
  6771. else
  6772. case $cross_compiling:$ac_tool_warned in
  6773. yes:)
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6775. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6776. ac_tool_warned=yes ;;
  6777. esac
  6778. DLLTOOL=$ac_ct_DLLTOOL
  6779. fi
  6780. else
  6781. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6782. fi
  6783. if test -n "$ac_tool_prefix"; then
  6784. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6785. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6787. $as_echo_n "checking for $ac_word... " >&6; }
  6788. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6789. $as_echo_n "(cached) " >&6
  6790. else
  6791. if test -n "$OBJDUMP"; then
  6792. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6793. else
  6794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6795. for as_dir in $PATH
  6796. do
  6797. IFS=$as_save_IFS
  6798. test -z "$as_dir" && as_dir=.
  6799. for ac_exec_ext in '' $ac_executable_extensions; do
  6800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6801. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6803. break 2
  6804. fi
  6805. done
  6806. done
  6807. IFS=$as_save_IFS
  6808. fi
  6809. fi
  6810. OBJDUMP=$ac_cv_prog_OBJDUMP
  6811. if test -n "$OBJDUMP"; then
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6813. $as_echo "$OBJDUMP" >&6; }
  6814. else
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6816. $as_echo "no" >&6; }
  6817. fi
  6818. fi
  6819. if test -z "$ac_cv_prog_OBJDUMP"; then
  6820. ac_ct_OBJDUMP=$OBJDUMP
  6821. # Extract the first word of "objdump", so it can be a program name with args.
  6822. set dummy objdump; ac_word=$2
  6823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6824. $as_echo_n "checking for $ac_word... " >&6; }
  6825. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6826. $as_echo_n "(cached) " >&6
  6827. else
  6828. if test -n "$ac_ct_OBJDUMP"; then
  6829. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6830. else
  6831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6832. for as_dir in $PATH
  6833. do
  6834. IFS=$as_save_IFS
  6835. test -z "$as_dir" && as_dir=.
  6836. for ac_exec_ext in '' $ac_executable_extensions; do
  6837. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6838. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6840. break 2
  6841. fi
  6842. done
  6843. done
  6844. IFS=$as_save_IFS
  6845. fi
  6846. fi
  6847. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6848. if test -n "$ac_ct_OBJDUMP"; then
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6850. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6851. else
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6853. $as_echo "no" >&6; }
  6854. fi
  6855. if test "x$ac_ct_OBJDUMP" = x; then
  6856. OBJDUMP="false"
  6857. else
  6858. case $cross_compiling:$ac_tool_warned in
  6859. yes:)
  6860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6862. ac_tool_warned=yes ;;
  6863. esac
  6864. OBJDUMP=$ac_ct_OBJDUMP
  6865. fi
  6866. else
  6867. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6868. fi
  6869. ;;
  6870. esac
  6871. test -z "$AS" && AS=as
  6872. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6873. test -z "$OBJDUMP" && OBJDUMP=objdump
  6874. enable_dlopen=no
  6875. # Check whether --enable-shared was given.
  6876. if test "${enable_shared+set}" = set; then :
  6877. enableval=$enable_shared; p=${PACKAGE-default}
  6878. case $enableval in
  6879. yes) enable_shared=yes ;;
  6880. no) enable_shared=no ;;
  6881. *)
  6882. enable_shared=no
  6883. # Look at the argument we got. We use all the common list separators.
  6884. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6885. for pkg in $enableval; do
  6886. IFS=$lt_save_ifs
  6887. if test "X$pkg" = "X$p"; then
  6888. enable_shared=yes
  6889. fi
  6890. done
  6891. IFS=$lt_save_ifs
  6892. ;;
  6893. esac
  6894. else
  6895. enable_shared=yes
  6896. fi
  6897. # Check whether --enable-static was given.
  6898. if test "${enable_static+set}" = set; then :
  6899. enableval=$enable_static; p=${PACKAGE-default}
  6900. case $enableval in
  6901. yes) enable_static=yes ;;
  6902. no) enable_static=no ;;
  6903. *)
  6904. enable_static=no
  6905. # Look at the argument we got. We use all the common list separators.
  6906. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6907. for pkg in $enableval; do
  6908. IFS=$lt_save_ifs
  6909. if test "X$pkg" = "X$p"; then
  6910. enable_static=yes
  6911. fi
  6912. done
  6913. IFS=$lt_save_ifs
  6914. ;;
  6915. esac
  6916. else
  6917. enable_static=yes
  6918. fi
  6919. # Check whether --with-pic was given.
  6920. if test "${with_pic+set}" = set; then :
  6921. withval=$with_pic; lt_p=${PACKAGE-default}
  6922. case $withval in
  6923. yes|no) pic_mode=$withval ;;
  6924. *)
  6925. pic_mode=default
  6926. # Look at the argument we got. We use all the common list separators.
  6927. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6928. for lt_pkg in $withval; do
  6929. IFS=$lt_save_ifs
  6930. if test "X$lt_pkg" = "X$lt_p"; then
  6931. pic_mode=yes
  6932. fi
  6933. done
  6934. IFS=$lt_save_ifs
  6935. ;;
  6936. esac
  6937. else
  6938. pic_mode=default
  6939. fi
  6940. # Check whether --enable-fast-install was given.
  6941. if test "${enable_fast_install+set}" = set; then :
  6942. enableval=$enable_fast_install; p=${PACKAGE-default}
  6943. case $enableval in
  6944. yes) enable_fast_install=yes ;;
  6945. no) enable_fast_install=no ;;
  6946. *)
  6947. enable_fast_install=no
  6948. # Look at the argument we got. We use all the common list separators.
  6949. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6950. for pkg in $enableval; do
  6951. IFS=$lt_save_ifs
  6952. if test "X$pkg" = "X$p"; then
  6953. enable_fast_install=yes
  6954. fi
  6955. done
  6956. IFS=$lt_save_ifs
  6957. ;;
  6958. esac
  6959. else
  6960. enable_fast_install=yes
  6961. fi
  6962. shared_archive_member_spec=
  6963. case $host,$enable_shared in
  6964. power*-*-aix[5-9]*,yes)
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6966. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6967. # Check whether --with-aix-soname was given.
  6968. if test "${with_aix_soname+set}" = set; then :
  6969. withval=$with_aix_soname; case $withval in
  6970. aix|svr4|both)
  6971. ;;
  6972. *)
  6973. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6974. ;;
  6975. esac
  6976. lt_cv_with_aix_soname=$with_aix_soname
  6977. else
  6978. if ${lt_cv_with_aix_soname+:} false; then :
  6979. $as_echo_n "(cached) " >&6
  6980. else
  6981. lt_cv_with_aix_soname=aix
  6982. fi
  6983. with_aix_soname=$lt_cv_with_aix_soname
  6984. fi
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6986. $as_echo "$with_aix_soname" >&6; }
  6987. if test aix != "$with_aix_soname"; then
  6988. # For the AIX way of multilib, we name the shared archive member
  6989. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6990. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6991. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6992. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6993. if test 64 = "${OBJECT_MODE-32}"; then
  6994. shared_archive_member_spec=shr_64
  6995. else
  6996. shared_archive_member_spec=shr
  6997. fi
  6998. fi
  6999. ;;
  7000. *)
  7001. with_aix_soname=aix
  7002. ;;
  7003. esac
  7004. # This can be used to rebuild libtool when needed
  7005. LIBTOOL_DEPS=$ltmain
  7006. # Always use our own libtool.
  7007. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7008. test -z "$LN_S" && LN_S="ln -s"
  7009. if test -n "${ZSH_VERSION+set}"; then
  7010. setopt NO_GLOB_SUBST
  7011. fi
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7013. $as_echo_n "checking for objdir... " >&6; }
  7014. if ${lt_cv_objdir+:} false; then :
  7015. $as_echo_n "(cached) " >&6
  7016. else
  7017. rm -f .libs 2>/dev/null
  7018. mkdir .libs 2>/dev/null
  7019. if test -d .libs; then
  7020. lt_cv_objdir=.libs
  7021. else
  7022. # MS-DOS does not allow filenames that begin with a dot.
  7023. lt_cv_objdir=_libs
  7024. fi
  7025. rmdir .libs 2>/dev/null
  7026. fi
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7028. $as_echo "$lt_cv_objdir" >&6; }
  7029. objdir=$lt_cv_objdir
  7030. cat >>confdefs.h <<_ACEOF
  7031. #define LT_OBJDIR "$lt_cv_objdir/"
  7032. _ACEOF
  7033. case $host_os in
  7034. aix3*)
  7035. # AIX sometimes has problems with the GCC collect2 program. For some
  7036. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7037. # vanish in a puff of smoke.
  7038. if test set != "${COLLECT_NAMES+set}"; then
  7039. COLLECT_NAMES=
  7040. export COLLECT_NAMES
  7041. fi
  7042. ;;
  7043. esac
  7044. # Global variables:
  7045. ofile=libtool
  7046. can_build_shared=yes
  7047. # All known linkers require a '.a' archive for static linking (except MSVC,
  7048. # which needs '.lib').
  7049. libext=a
  7050. with_gnu_ld=$lt_cv_prog_gnu_ld
  7051. old_CC=$CC
  7052. old_CFLAGS=$CFLAGS
  7053. # Set sane defaults for various variables
  7054. test -z "$CC" && CC=cc
  7055. test -z "$LTCC" && LTCC=$CC
  7056. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7057. test -z "$LD" && LD=ld
  7058. test -z "$ac_objext" && ac_objext=o
  7059. func_cc_basename $compiler
  7060. cc_basename=$func_cc_basename_result
  7061. # Only perform the check for file, if the check method requires it
  7062. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7063. case $deplibs_check_method in
  7064. file_magic*)
  7065. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7067. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7068. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7069. $as_echo_n "(cached) " >&6
  7070. else
  7071. case $MAGIC_CMD in
  7072. [\\/*] | ?:[\\/]*)
  7073. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7074. ;;
  7075. *)
  7076. lt_save_MAGIC_CMD=$MAGIC_CMD
  7077. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7078. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7079. for ac_dir in $ac_dummy; do
  7080. IFS=$lt_save_ifs
  7081. test -z "$ac_dir" && ac_dir=.
  7082. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7083. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7084. if test -n "$file_magic_test_file"; then
  7085. case $deplibs_check_method in
  7086. "file_magic "*)
  7087. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7088. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7089. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7090. $EGREP "$file_magic_regex" > /dev/null; then
  7091. :
  7092. else
  7093. cat <<_LT_EOF 1>&2
  7094. *** Warning: the command libtool uses to detect shared libraries,
  7095. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7096. *** The result is that libtool may fail to recognize shared libraries
  7097. *** as such. This will affect the creation of libtool libraries that
  7098. *** depend on shared libraries, but programs linked with such libtool
  7099. *** libraries will work regardless of this problem. Nevertheless, you
  7100. *** may want to report the problem to your system manager and/or to
  7101. *** bug-libtool@gnu.org
  7102. _LT_EOF
  7103. fi ;;
  7104. esac
  7105. fi
  7106. break
  7107. fi
  7108. done
  7109. IFS=$lt_save_ifs
  7110. MAGIC_CMD=$lt_save_MAGIC_CMD
  7111. ;;
  7112. esac
  7113. fi
  7114. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7115. if test -n "$MAGIC_CMD"; then
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7117. $as_echo "$MAGIC_CMD" >&6; }
  7118. else
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7120. $as_echo "no" >&6; }
  7121. fi
  7122. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7123. if test -n "$ac_tool_prefix"; then
  7124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7125. $as_echo_n "checking for file... " >&6; }
  7126. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7127. $as_echo_n "(cached) " >&6
  7128. else
  7129. case $MAGIC_CMD in
  7130. [\\/*] | ?:[\\/]*)
  7131. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7132. ;;
  7133. *)
  7134. lt_save_MAGIC_CMD=$MAGIC_CMD
  7135. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7136. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7137. for ac_dir in $ac_dummy; do
  7138. IFS=$lt_save_ifs
  7139. test -z "$ac_dir" && ac_dir=.
  7140. if test -f "$ac_dir/file"; then
  7141. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7142. if test -n "$file_magic_test_file"; then
  7143. case $deplibs_check_method in
  7144. "file_magic "*)
  7145. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7146. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7147. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7148. $EGREP "$file_magic_regex" > /dev/null; then
  7149. :
  7150. else
  7151. cat <<_LT_EOF 1>&2
  7152. *** Warning: the command libtool uses to detect shared libraries,
  7153. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7154. *** The result is that libtool may fail to recognize shared libraries
  7155. *** as such. This will affect the creation of libtool libraries that
  7156. *** depend on shared libraries, but programs linked with such libtool
  7157. *** libraries will work regardless of this problem. Nevertheless, you
  7158. *** may want to report the problem to your system manager and/or to
  7159. *** bug-libtool@gnu.org
  7160. _LT_EOF
  7161. fi ;;
  7162. esac
  7163. fi
  7164. break
  7165. fi
  7166. done
  7167. IFS=$lt_save_ifs
  7168. MAGIC_CMD=$lt_save_MAGIC_CMD
  7169. ;;
  7170. esac
  7171. fi
  7172. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7173. if test -n "$MAGIC_CMD"; then
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7175. $as_echo "$MAGIC_CMD" >&6; }
  7176. else
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7178. $as_echo "no" >&6; }
  7179. fi
  7180. else
  7181. MAGIC_CMD=:
  7182. fi
  7183. fi
  7184. fi
  7185. ;;
  7186. esac
  7187. # Use C for the default configuration in the libtool script
  7188. lt_save_CC=$CC
  7189. ac_ext=c
  7190. ac_cpp='$CPP $CPPFLAGS'
  7191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7194. # Source file extension for C test sources.
  7195. ac_ext=c
  7196. # Object file extension for compiled C test sources.
  7197. objext=o
  7198. objext=$objext
  7199. # Code to be used in simple compile tests
  7200. lt_simple_compile_test_code="int some_variable = 0;"
  7201. # Code to be used in simple link tests
  7202. lt_simple_link_test_code='int main(){return(0);}'
  7203. # If no C compiler was specified, use CC.
  7204. LTCC=${LTCC-"$CC"}
  7205. # If no C compiler flags were specified, use CFLAGS.
  7206. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7207. # Allow CC to be a program name with arguments.
  7208. compiler=$CC
  7209. # Save the default compiler, since it gets overwritten when the other
  7210. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7211. compiler_DEFAULT=$CC
  7212. # save warnings/boilerplate of simple test code
  7213. ac_outfile=conftest.$ac_objext
  7214. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7215. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7216. _lt_compiler_boilerplate=`cat conftest.err`
  7217. $RM conftest*
  7218. ac_outfile=conftest.$ac_objext
  7219. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7220. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7221. _lt_linker_boilerplate=`cat conftest.err`
  7222. $RM -r conftest*
  7223. ## CAVEAT EMPTOR:
  7224. ## There is no encapsulation within the following macros, do not change
  7225. ## the running order or otherwise move them around unless you know exactly
  7226. ## what you are doing...
  7227. if test -n "$compiler"; then
  7228. lt_prog_compiler_no_builtin_flag=
  7229. if test yes = "$GCC"; then
  7230. case $cc_basename in
  7231. nvcc*)
  7232. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7233. *)
  7234. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7235. esac
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7237. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7238. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7239. $as_echo_n "(cached) " >&6
  7240. else
  7241. lt_cv_prog_compiler_rtti_exceptions=no
  7242. ac_outfile=conftest.$ac_objext
  7243. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7244. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7245. # Insert the option either (1) after the last *FLAGS variable, or
  7246. # (2) before a word containing "conftest.", or (3) at the end.
  7247. # Note that $ac_compile itself does not contain backslashes and begins
  7248. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7249. # The option is referenced via a variable to avoid confusing sed.
  7250. lt_compile=`echo "$ac_compile" | $SED \
  7251. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7252. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7253. -e 's:$: $lt_compiler_flag:'`
  7254. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7255. (eval "$lt_compile" 2>conftest.err)
  7256. ac_status=$?
  7257. cat conftest.err >&5
  7258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7259. if (exit $ac_status) && test -s "$ac_outfile"; then
  7260. # The compiler can only warn and ignore the option if not recognized
  7261. # So say no if there are warnings other than the usual output.
  7262. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7263. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7264. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7265. lt_cv_prog_compiler_rtti_exceptions=yes
  7266. fi
  7267. fi
  7268. $RM conftest*
  7269. fi
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7271. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7272. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7273. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7274. else
  7275. :
  7276. fi
  7277. fi
  7278. lt_prog_compiler_wl=
  7279. lt_prog_compiler_pic=
  7280. lt_prog_compiler_static=
  7281. if test yes = "$GCC"; then
  7282. lt_prog_compiler_wl='-Wl,'
  7283. lt_prog_compiler_static='-static'
  7284. case $host_os in
  7285. aix*)
  7286. # All AIX code is PIC.
  7287. if test ia64 = "$host_cpu"; then
  7288. # AIX 5 now supports IA64 processor
  7289. lt_prog_compiler_static='-Bstatic'
  7290. fi
  7291. lt_prog_compiler_pic='-fPIC'
  7292. ;;
  7293. amigaos*)
  7294. case $host_cpu in
  7295. powerpc)
  7296. # see comment about AmigaOS4 .so support
  7297. lt_prog_compiler_pic='-fPIC'
  7298. ;;
  7299. m68k)
  7300. # FIXME: we need at least 68020 code to build shared libraries, but
  7301. # adding the '-m68020' flag to GCC prevents building anything better,
  7302. # like '-m68040'.
  7303. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7304. ;;
  7305. esac
  7306. ;;
  7307. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7308. # PIC is the default for these OSes.
  7309. ;;
  7310. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7311. # This hack is so that the source file can tell whether it is being
  7312. # built for inclusion in a dll (and should export symbols for example).
  7313. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7314. # (--disable-auto-import) libraries
  7315. lt_prog_compiler_pic='-DDLL_EXPORT'
  7316. case $host_os in
  7317. os2*)
  7318. lt_prog_compiler_static='$wl-static'
  7319. ;;
  7320. esac
  7321. ;;
  7322. darwin* | rhapsody*)
  7323. # PIC is the default on this platform
  7324. # Common symbols not allowed in MH_DYLIB files
  7325. lt_prog_compiler_pic='-fno-common'
  7326. ;;
  7327. haiku*)
  7328. # PIC is the default for Haiku.
  7329. # The "-static" flag exists, but is broken.
  7330. lt_prog_compiler_static=
  7331. ;;
  7332. hpux*)
  7333. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7334. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7335. # sets the default TLS model and affects inlining.
  7336. case $host_cpu in
  7337. hppa*64*)
  7338. # +Z the default
  7339. ;;
  7340. *)
  7341. lt_prog_compiler_pic='-fPIC'
  7342. ;;
  7343. esac
  7344. ;;
  7345. interix[3-9]*)
  7346. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7347. # Instead, we relocate shared libraries at runtime.
  7348. ;;
  7349. msdosdjgpp*)
  7350. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7351. # on systems that don't support them.
  7352. lt_prog_compiler_can_build_shared=no
  7353. enable_shared=no
  7354. ;;
  7355. *nto* | *qnx*)
  7356. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7357. # it will coredump.
  7358. lt_prog_compiler_pic='-fPIC -shared'
  7359. ;;
  7360. sysv4*MP*)
  7361. if test -d /usr/nec; then
  7362. lt_prog_compiler_pic=-Kconform_pic
  7363. fi
  7364. ;;
  7365. *)
  7366. lt_prog_compiler_pic='-fPIC'
  7367. ;;
  7368. esac
  7369. case $cc_basename in
  7370. nvcc*) # Cuda Compiler Driver 2.2
  7371. lt_prog_compiler_wl='-Xlinker '
  7372. if test -n "$lt_prog_compiler_pic"; then
  7373. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7374. fi
  7375. ;;
  7376. esac
  7377. else
  7378. # PORTME Check for flag to pass linker flags through the system compiler.
  7379. case $host_os in
  7380. aix*)
  7381. lt_prog_compiler_wl='-Wl,'
  7382. if test ia64 = "$host_cpu"; then
  7383. # AIX 5 now supports IA64 processor
  7384. lt_prog_compiler_static='-Bstatic'
  7385. else
  7386. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7387. fi
  7388. ;;
  7389. darwin* | rhapsody*)
  7390. # PIC is the default on this platform
  7391. # Common symbols not allowed in MH_DYLIB files
  7392. lt_prog_compiler_pic='-fno-common'
  7393. case $cc_basename in
  7394. nagfor*)
  7395. # NAG Fortran compiler
  7396. lt_prog_compiler_wl='-Wl,-Wl,,'
  7397. lt_prog_compiler_pic='-PIC'
  7398. lt_prog_compiler_static='-Bstatic'
  7399. ;;
  7400. esac
  7401. ;;
  7402. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7403. # This hack is so that the source file can tell whether it is being
  7404. # built for inclusion in a dll (and should export symbols for example).
  7405. lt_prog_compiler_pic='-DDLL_EXPORT'
  7406. case $host_os in
  7407. os2*)
  7408. lt_prog_compiler_static='$wl-static'
  7409. ;;
  7410. esac
  7411. ;;
  7412. hpux9* | hpux10* | hpux11*)
  7413. lt_prog_compiler_wl='-Wl,'
  7414. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7415. # not for PA HP-UX.
  7416. case $host_cpu in
  7417. hppa*64*|ia64*)
  7418. # +Z the default
  7419. ;;
  7420. *)
  7421. lt_prog_compiler_pic='+Z'
  7422. ;;
  7423. esac
  7424. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7425. lt_prog_compiler_static='$wl-a ${wl}archive'
  7426. ;;
  7427. irix5* | irix6* | nonstopux*)
  7428. lt_prog_compiler_wl='-Wl,'
  7429. # PIC (with -KPIC) is the default.
  7430. lt_prog_compiler_static='-non_shared'
  7431. ;;
  7432. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7433. case $cc_basename in
  7434. # old Intel for x86_64, which still supported -KPIC.
  7435. ecc*)
  7436. lt_prog_compiler_wl='-Wl,'
  7437. lt_prog_compiler_pic='-KPIC'
  7438. lt_prog_compiler_static='-static'
  7439. ;;
  7440. # icc used to be incompatible with GCC.
  7441. # ICC 10 doesn't accept -KPIC any more.
  7442. icc* | ifort*)
  7443. lt_prog_compiler_wl='-Wl,'
  7444. lt_prog_compiler_pic='-fPIC'
  7445. lt_prog_compiler_static='-static'
  7446. ;;
  7447. # Lahey Fortran 8.1.
  7448. lf95*)
  7449. lt_prog_compiler_wl='-Wl,'
  7450. lt_prog_compiler_pic='--shared'
  7451. lt_prog_compiler_static='--static'
  7452. ;;
  7453. nagfor*)
  7454. # NAG Fortran compiler
  7455. lt_prog_compiler_wl='-Wl,-Wl,,'
  7456. lt_prog_compiler_pic='-PIC'
  7457. lt_prog_compiler_static='-Bstatic'
  7458. ;;
  7459. tcc*)
  7460. # Fabrice Bellard et al's Tiny C Compiler
  7461. lt_prog_compiler_wl='-Wl,'
  7462. lt_prog_compiler_pic='-fPIC'
  7463. lt_prog_compiler_static='-static'
  7464. ;;
  7465. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7466. # Portland Group compilers (*not* the Pentium gcc compiler,
  7467. # which looks to be a dead project)
  7468. lt_prog_compiler_wl='-Wl,'
  7469. lt_prog_compiler_pic='-fpic'
  7470. lt_prog_compiler_static='-Bstatic'
  7471. ;;
  7472. ccc*)
  7473. lt_prog_compiler_wl='-Wl,'
  7474. # All Alpha code is PIC.
  7475. lt_prog_compiler_static='-non_shared'
  7476. ;;
  7477. xl* | bgxl* | bgf* | mpixl*)
  7478. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7479. lt_prog_compiler_wl='-Wl,'
  7480. lt_prog_compiler_pic='-qpic'
  7481. lt_prog_compiler_static='-qstaticlink'
  7482. ;;
  7483. *)
  7484. case `$CC -V 2>&1 | sed 5q` in
  7485. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7486. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7487. lt_prog_compiler_pic='-KPIC'
  7488. lt_prog_compiler_static='-Bstatic'
  7489. lt_prog_compiler_wl=''
  7490. ;;
  7491. *Sun\ F* | *Sun*Fortran*)
  7492. lt_prog_compiler_pic='-KPIC'
  7493. lt_prog_compiler_static='-Bstatic'
  7494. lt_prog_compiler_wl='-Qoption ld '
  7495. ;;
  7496. *Sun\ C*)
  7497. # Sun C 5.9
  7498. lt_prog_compiler_pic='-KPIC'
  7499. lt_prog_compiler_static='-Bstatic'
  7500. lt_prog_compiler_wl='-Wl,'
  7501. ;;
  7502. *Intel*\ [CF]*Compiler*)
  7503. lt_prog_compiler_wl='-Wl,'
  7504. lt_prog_compiler_pic='-fPIC'
  7505. lt_prog_compiler_static='-static'
  7506. ;;
  7507. *Portland\ Group*)
  7508. lt_prog_compiler_wl='-Wl,'
  7509. lt_prog_compiler_pic='-fpic'
  7510. lt_prog_compiler_static='-Bstatic'
  7511. ;;
  7512. esac
  7513. ;;
  7514. esac
  7515. ;;
  7516. newsos6)
  7517. lt_prog_compiler_pic='-KPIC'
  7518. lt_prog_compiler_static='-Bstatic'
  7519. ;;
  7520. *nto* | *qnx*)
  7521. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7522. # it will coredump.
  7523. lt_prog_compiler_pic='-fPIC -shared'
  7524. ;;
  7525. osf3* | osf4* | osf5*)
  7526. lt_prog_compiler_wl='-Wl,'
  7527. # All OSF/1 code is PIC.
  7528. lt_prog_compiler_static='-non_shared'
  7529. ;;
  7530. rdos*)
  7531. lt_prog_compiler_static='-non_shared'
  7532. ;;
  7533. solaris*)
  7534. lt_prog_compiler_pic='-KPIC'
  7535. lt_prog_compiler_static='-Bstatic'
  7536. case $cc_basename in
  7537. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7538. lt_prog_compiler_wl='-Qoption ld ';;
  7539. *)
  7540. lt_prog_compiler_wl='-Wl,';;
  7541. esac
  7542. ;;
  7543. sunos4*)
  7544. lt_prog_compiler_wl='-Qoption ld '
  7545. lt_prog_compiler_pic='-PIC'
  7546. lt_prog_compiler_static='-Bstatic'
  7547. ;;
  7548. sysv4 | sysv4.2uw2* | sysv4.3*)
  7549. lt_prog_compiler_wl='-Wl,'
  7550. lt_prog_compiler_pic='-KPIC'
  7551. lt_prog_compiler_static='-Bstatic'
  7552. ;;
  7553. sysv4*MP*)
  7554. if test -d /usr/nec; then
  7555. lt_prog_compiler_pic='-Kconform_pic'
  7556. lt_prog_compiler_static='-Bstatic'
  7557. fi
  7558. ;;
  7559. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7560. lt_prog_compiler_wl='-Wl,'
  7561. lt_prog_compiler_pic='-KPIC'
  7562. lt_prog_compiler_static='-Bstatic'
  7563. ;;
  7564. unicos*)
  7565. lt_prog_compiler_wl='-Wl,'
  7566. lt_prog_compiler_can_build_shared=no
  7567. ;;
  7568. uts4*)
  7569. lt_prog_compiler_pic='-pic'
  7570. lt_prog_compiler_static='-Bstatic'
  7571. ;;
  7572. *)
  7573. lt_prog_compiler_can_build_shared=no
  7574. ;;
  7575. esac
  7576. fi
  7577. case $host_os in
  7578. # For platforms that do not support PIC, -DPIC is meaningless:
  7579. *djgpp*)
  7580. lt_prog_compiler_pic=
  7581. ;;
  7582. *)
  7583. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7584. ;;
  7585. esac
  7586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7587. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7588. if ${lt_cv_prog_compiler_pic+:} false; then :
  7589. $as_echo_n "(cached) " >&6
  7590. else
  7591. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7592. fi
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7594. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7595. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7596. #
  7597. # Check to make sure the PIC flag actually works.
  7598. #
  7599. if test -n "$lt_prog_compiler_pic"; then
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7601. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7602. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7603. $as_echo_n "(cached) " >&6
  7604. else
  7605. lt_cv_prog_compiler_pic_works=no
  7606. ac_outfile=conftest.$ac_objext
  7607. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7608. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7609. # Insert the option either (1) after the last *FLAGS variable, or
  7610. # (2) before a word containing "conftest.", or (3) at the end.
  7611. # Note that $ac_compile itself does not contain backslashes and begins
  7612. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7613. # The option is referenced via a variable to avoid confusing sed.
  7614. lt_compile=`echo "$ac_compile" | $SED \
  7615. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7616. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7617. -e 's:$: $lt_compiler_flag:'`
  7618. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7619. (eval "$lt_compile" 2>conftest.err)
  7620. ac_status=$?
  7621. cat conftest.err >&5
  7622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7623. if (exit $ac_status) && test -s "$ac_outfile"; then
  7624. # The compiler can only warn and ignore the option if not recognized
  7625. # So say no if there are warnings other than the usual output.
  7626. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7627. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7628. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7629. lt_cv_prog_compiler_pic_works=yes
  7630. fi
  7631. fi
  7632. $RM conftest*
  7633. fi
  7634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7635. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7636. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7637. case $lt_prog_compiler_pic in
  7638. "" | " "*) ;;
  7639. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7640. esac
  7641. else
  7642. lt_prog_compiler_pic=
  7643. lt_prog_compiler_can_build_shared=no
  7644. fi
  7645. fi
  7646. #
  7647. # Check to make sure the static flag actually works.
  7648. #
  7649. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7651. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7652. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7653. $as_echo_n "(cached) " >&6
  7654. else
  7655. lt_cv_prog_compiler_static_works=no
  7656. save_LDFLAGS=$LDFLAGS
  7657. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7658. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7659. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7660. # The linker can only warn and ignore the option if not recognized
  7661. # So say no if there are warnings
  7662. if test -s conftest.err; then
  7663. # Append any errors to the config.log.
  7664. cat conftest.err 1>&5
  7665. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7666. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7667. if diff conftest.exp conftest.er2 >/dev/null; then
  7668. lt_cv_prog_compiler_static_works=yes
  7669. fi
  7670. else
  7671. lt_cv_prog_compiler_static_works=yes
  7672. fi
  7673. fi
  7674. $RM -r conftest*
  7675. LDFLAGS=$save_LDFLAGS
  7676. fi
  7677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7678. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7679. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7680. :
  7681. else
  7682. lt_prog_compiler_static=
  7683. fi
  7684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7685. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7686. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7687. $as_echo_n "(cached) " >&6
  7688. else
  7689. lt_cv_prog_compiler_c_o=no
  7690. $RM -r conftest 2>/dev/null
  7691. mkdir conftest
  7692. cd conftest
  7693. mkdir out
  7694. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7695. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7696. # Insert the option either (1) after the last *FLAGS variable, or
  7697. # (2) before a word containing "conftest.", or (3) at the end.
  7698. # Note that $ac_compile itself does not contain backslashes and begins
  7699. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7700. lt_compile=`echo "$ac_compile" | $SED \
  7701. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7702. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7703. -e 's:$: $lt_compiler_flag:'`
  7704. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7705. (eval "$lt_compile" 2>out/conftest.err)
  7706. ac_status=$?
  7707. cat out/conftest.err >&5
  7708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7709. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7710. then
  7711. # The compiler can only warn and ignore the option if not recognized
  7712. # So say no if there are warnings
  7713. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7714. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7715. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7716. lt_cv_prog_compiler_c_o=yes
  7717. fi
  7718. fi
  7719. chmod u+w . 2>&5
  7720. $RM conftest*
  7721. # SGI C++ compiler will create directory out/ii_files/ for
  7722. # template instantiation
  7723. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7724. $RM out/* && rmdir out
  7725. cd ..
  7726. $RM -r conftest
  7727. $RM conftest*
  7728. fi
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7730. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7732. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7733. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7734. $as_echo_n "(cached) " >&6
  7735. else
  7736. lt_cv_prog_compiler_c_o=no
  7737. $RM -r conftest 2>/dev/null
  7738. mkdir conftest
  7739. cd conftest
  7740. mkdir out
  7741. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7742. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7743. # Insert the option either (1) after the last *FLAGS variable, or
  7744. # (2) before a word containing "conftest.", or (3) at the end.
  7745. # Note that $ac_compile itself does not contain backslashes and begins
  7746. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7747. lt_compile=`echo "$ac_compile" | $SED \
  7748. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7749. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7750. -e 's:$: $lt_compiler_flag:'`
  7751. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7752. (eval "$lt_compile" 2>out/conftest.err)
  7753. ac_status=$?
  7754. cat out/conftest.err >&5
  7755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7756. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7757. then
  7758. # The compiler can only warn and ignore the option if not recognized
  7759. # So say no if there are warnings
  7760. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7761. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7762. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7763. lt_cv_prog_compiler_c_o=yes
  7764. fi
  7765. fi
  7766. chmod u+w . 2>&5
  7767. $RM conftest*
  7768. # SGI C++ compiler will create directory out/ii_files/ for
  7769. # template instantiation
  7770. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7771. $RM out/* && rmdir out
  7772. cd ..
  7773. $RM -r conftest
  7774. $RM conftest*
  7775. fi
  7776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7777. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7778. hard_links=nottested
  7779. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7780. # do not overwrite the value of need_locks provided by the user
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7782. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7783. hard_links=yes
  7784. $RM conftest*
  7785. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7786. touch conftest.a
  7787. ln conftest.a conftest.b 2>&5 || hard_links=no
  7788. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7790. $as_echo "$hard_links" >&6; }
  7791. if test no = "$hard_links"; then
  7792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7793. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7794. need_locks=warn
  7795. fi
  7796. else
  7797. need_locks=no
  7798. fi
  7799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7800. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7801. runpath_var=
  7802. allow_undefined_flag=
  7803. always_export_symbols=no
  7804. archive_cmds=
  7805. archive_expsym_cmds=
  7806. compiler_needs_object=no
  7807. enable_shared_with_static_runtimes=no
  7808. export_dynamic_flag_spec=
  7809. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7810. hardcode_automatic=no
  7811. hardcode_direct=no
  7812. hardcode_direct_absolute=no
  7813. hardcode_libdir_flag_spec=
  7814. hardcode_libdir_separator=
  7815. hardcode_minus_L=no
  7816. hardcode_shlibpath_var=unsupported
  7817. inherit_rpath=no
  7818. link_all_deplibs=unknown
  7819. module_cmds=
  7820. module_expsym_cmds=
  7821. old_archive_from_new_cmds=
  7822. old_archive_from_expsyms_cmds=
  7823. thread_safe_flag_spec=
  7824. whole_archive_flag_spec=
  7825. # include_expsyms should be a list of space-separated symbols to be *always*
  7826. # included in the symbol list
  7827. include_expsyms=
  7828. # exclude_expsyms can be an extended regexp of symbols to exclude
  7829. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7830. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7831. # as well as any symbol that contains 'd'.
  7832. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7833. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7834. # platforms (ab)use it in PIC code, but their linkers get confused if
  7835. # the symbol is explicitly referenced. Since portable code cannot
  7836. # rely on this symbol name, it's probably fine to never include it in
  7837. # preloaded symbol tables.
  7838. # Exclude shared library initialization/finalization symbols.
  7839. extract_expsyms_cmds=
  7840. case $host_os in
  7841. cygwin* | mingw* | pw32* | cegcc*)
  7842. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7843. # When not using gcc, we currently assume that we are using
  7844. # Microsoft Visual C++.
  7845. if test yes != "$GCC"; then
  7846. with_gnu_ld=no
  7847. fi
  7848. ;;
  7849. interix*)
  7850. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7851. with_gnu_ld=yes
  7852. ;;
  7853. openbsd* | bitrig*)
  7854. with_gnu_ld=no
  7855. ;;
  7856. esac
  7857. ld_shlibs=yes
  7858. # On some targets, GNU ld is compatible enough with the native linker
  7859. # that we're better off using the native interface for both.
  7860. lt_use_gnu_ld_interface=no
  7861. if test yes = "$with_gnu_ld"; then
  7862. case $host_os in
  7863. aix*)
  7864. # The AIX port of GNU ld has always aspired to compatibility
  7865. # with the native linker. However, as the warning in the GNU ld
  7866. # block says, versions before 2.19.5* couldn't really create working
  7867. # shared libraries, regardless of the interface used.
  7868. case `$LD -v 2>&1` in
  7869. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7870. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7871. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7872. *)
  7873. lt_use_gnu_ld_interface=yes
  7874. ;;
  7875. esac
  7876. ;;
  7877. *)
  7878. lt_use_gnu_ld_interface=yes
  7879. ;;
  7880. esac
  7881. fi
  7882. if test yes = "$lt_use_gnu_ld_interface"; then
  7883. # If archive_cmds runs LD, not CC, wlarc should be empty
  7884. wlarc='$wl'
  7885. # Set some defaults for GNU ld with shared library support. These
  7886. # are reset later if shared libraries are not supported. Putting them
  7887. # here allows them to be overridden if necessary.
  7888. runpath_var=LD_RUN_PATH
  7889. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7890. export_dynamic_flag_spec='$wl--export-dynamic'
  7891. # ancient GNU ld didn't support --whole-archive et. al.
  7892. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7893. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7894. else
  7895. whole_archive_flag_spec=
  7896. fi
  7897. supports_anon_versioning=no
  7898. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7899. *GNU\ gold*) supports_anon_versioning=yes ;;
  7900. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7901. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7902. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7903. *\ 2.11.*) ;; # other 2.11 versions
  7904. *) supports_anon_versioning=yes ;;
  7905. esac
  7906. # See if GNU ld supports shared libraries.
  7907. case $host_os in
  7908. aix[3-9]*)
  7909. # On AIX/PPC, the GNU linker is very broken
  7910. if test ia64 != "$host_cpu"; then
  7911. ld_shlibs=no
  7912. cat <<_LT_EOF 1>&2
  7913. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7914. *** to be unable to reliably create shared libraries on AIX.
  7915. *** Therefore, libtool is disabling shared libraries support. If you
  7916. *** really care for shared libraries, you may want to install binutils
  7917. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7918. *** You will then need to restart the configuration process.
  7919. _LT_EOF
  7920. fi
  7921. ;;
  7922. amigaos*)
  7923. case $host_cpu in
  7924. powerpc)
  7925. # see comment about AmigaOS4 .so support
  7926. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7927. archive_expsym_cmds=''
  7928. ;;
  7929. m68k)
  7930. 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)'
  7931. hardcode_libdir_flag_spec='-L$libdir'
  7932. hardcode_minus_L=yes
  7933. ;;
  7934. esac
  7935. ;;
  7936. beos*)
  7937. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7938. allow_undefined_flag=unsupported
  7939. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7940. # support --undefined. This deserves some investigation. FIXME
  7941. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7942. else
  7943. ld_shlibs=no
  7944. fi
  7945. ;;
  7946. cygwin* | mingw* | pw32* | cegcc*)
  7947. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7948. # as there is no search path for DLLs.
  7949. hardcode_libdir_flag_spec='-L$libdir'
  7950. export_dynamic_flag_spec='$wl--export-all-symbols'
  7951. allow_undefined_flag=unsupported
  7952. always_export_symbols=no
  7953. enable_shared_with_static_runtimes=yes
  7954. 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'
  7955. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7956. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7957. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7958. # If the export-symbols file already is a .def file, use it as
  7959. # is; otherwise, prepend EXPORTS...
  7960. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7961. cp $export_symbols $output_objdir/$soname.def;
  7962. else
  7963. echo EXPORTS > $output_objdir/$soname.def;
  7964. cat $export_symbols >> $output_objdir/$soname.def;
  7965. fi~
  7966. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7967. else
  7968. ld_shlibs=no
  7969. fi
  7970. ;;
  7971. haiku*)
  7972. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7973. link_all_deplibs=yes
  7974. ;;
  7975. os2*)
  7976. hardcode_libdir_flag_spec='-L$libdir'
  7977. hardcode_minus_L=yes
  7978. allow_undefined_flag=unsupported
  7979. shrext_cmds=.dll
  7980. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7981. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7982. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7983. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7984. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7985. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7986. emximp -o $lib $output_objdir/$libname.def'
  7987. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7988. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7989. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7990. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7991. prefix_cmds="$SED"~
  7992. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7993. prefix_cmds="$prefix_cmds -e 1d";
  7994. fi~
  7995. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7996. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7997. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7998. emximp -o $lib $output_objdir/$libname.def'
  7999. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8000. enable_shared_with_static_runtimes=yes
  8001. file_list_spec='@'
  8002. ;;
  8003. interix[3-9]*)
  8004. hardcode_direct=no
  8005. hardcode_shlibpath_var=no
  8006. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8007. export_dynamic_flag_spec='$wl-E'
  8008. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8009. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8010. # default) and relocated if they conflict, which is a slow very memory
  8011. # consuming and fragmenting process. To avoid this, we pick a random,
  8012. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8013. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8014. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8015. 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'
  8016. ;;
  8017. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8018. tmp_diet=no
  8019. if test linux-dietlibc = "$host_os"; then
  8020. case $cc_basename in
  8021. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8022. esac
  8023. fi
  8024. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8025. && test no = "$tmp_diet"
  8026. then
  8027. tmp_addflag=' $pic_flag'
  8028. tmp_sharedflag='-shared'
  8029. case $cc_basename,$host_cpu in
  8030. pgcc*) # Portland Group C compiler
  8031. 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'
  8032. tmp_addflag=' $pic_flag'
  8033. ;;
  8034. pgf77* | pgf90* | pgf95* | pgfortran*)
  8035. # Portland Group f77 and f90 compilers
  8036. 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'
  8037. tmp_addflag=' $pic_flag -Mnomain' ;;
  8038. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8039. tmp_addflag=' -i_dynamic' ;;
  8040. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8041. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8042. ifc* | ifort*) # Intel Fortran compiler
  8043. tmp_addflag=' -nofor_main' ;;
  8044. lf95*) # Lahey Fortran 8.1
  8045. whole_archive_flag_spec=
  8046. tmp_sharedflag='--shared' ;;
  8047. nagfor*) # NAGFOR 5.3
  8048. tmp_sharedflag='-Wl,-shared' ;;
  8049. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8050. tmp_sharedflag='-qmkshrobj'
  8051. tmp_addflag= ;;
  8052. nvcc*) # Cuda Compiler Driver 2.2
  8053. 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'
  8054. compiler_needs_object=yes
  8055. ;;
  8056. esac
  8057. case `$CC -V 2>&1 | sed 5q` in
  8058. *Sun\ C*) # Sun C 5.9
  8059. 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'
  8060. compiler_needs_object=yes
  8061. tmp_sharedflag='-G' ;;
  8062. *Sun\ F*) # Sun Fortran 8.3
  8063. tmp_sharedflag='-G' ;;
  8064. esac
  8065. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8066. if test yes = "$supports_anon_versioning"; then
  8067. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8068. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8069. echo "local: *; };" >> $output_objdir/$libname.ver~
  8070. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8071. fi
  8072. case $cc_basename in
  8073. tcc*)
  8074. export_dynamic_flag_spec='-rdynamic'
  8075. ;;
  8076. xlf* | bgf* | bgxlf* | mpixlf*)
  8077. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8078. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8079. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8080. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8081. if test yes = "$supports_anon_versioning"; then
  8082. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8083. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8084. echo "local: *; };" >> $output_objdir/$libname.ver~
  8085. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8086. fi
  8087. ;;
  8088. esac
  8089. else
  8090. ld_shlibs=no
  8091. fi
  8092. ;;
  8093. netbsd*)
  8094. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8095. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8096. wlarc=
  8097. else
  8098. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8099. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8100. fi
  8101. ;;
  8102. solaris*)
  8103. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8104. ld_shlibs=no
  8105. cat <<_LT_EOF 1>&2
  8106. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8107. *** create shared libraries on Solaris systems. Therefore, libtool
  8108. *** is disabling shared libraries support. We urge you to upgrade GNU
  8109. *** binutils to release 2.9.1 or newer. Another option is to modify
  8110. *** your PATH or compiler configuration so that the native linker is
  8111. *** used, and then restart.
  8112. _LT_EOF
  8113. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8114. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8115. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8116. else
  8117. ld_shlibs=no
  8118. fi
  8119. ;;
  8120. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8121. case `$LD -v 2>&1` in
  8122. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8123. ld_shlibs=no
  8124. cat <<_LT_EOF 1>&2
  8125. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8126. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8127. *** is disabling shared libraries support. We urge you to upgrade GNU
  8128. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8129. *** your PATH or compiler configuration so that the native linker is
  8130. *** used, and then restart.
  8131. _LT_EOF
  8132. ;;
  8133. *)
  8134. # For security reasons, it is highly recommended that you always
  8135. # use absolute paths for naming shared libraries, and exclude the
  8136. # DT_RUNPATH tag from executables and libraries. But doing so
  8137. # requires that you compile everything twice, which is a pain.
  8138. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8139. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8140. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8141. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8142. else
  8143. ld_shlibs=no
  8144. fi
  8145. ;;
  8146. esac
  8147. ;;
  8148. sunos4*)
  8149. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8150. wlarc=
  8151. hardcode_direct=yes
  8152. hardcode_shlibpath_var=no
  8153. ;;
  8154. *)
  8155. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8156. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8157. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8158. else
  8159. ld_shlibs=no
  8160. fi
  8161. ;;
  8162. esac
  8163. if test no = "$ld_shlibs"; then
  8164. runpath_var=
  8165. hardcode_libdir_flag_spec=
  8166. export_dynamic_flag_spec=
  8167. whole_archive_flag_spec=
  8168. fi
  8169. else
  8170. # PORTME fill in a description of your system's linker (not GNU ld)
  8171. case $host_os in
  8172. aix3*)
  8173. allow_undefined_flag=unsupported
  8174. always_export_symbols=yes
  8175. 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'
  8176. # Note: this linker hardcodes the directories in LIBPATH if there
  8177. # are no directories specified by -L.
  8178. hardcode_minus_L=yes
  8179. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8180. # Neither direct hardcoding nor static linking is supported with a
  8181. # broken collect2.
  8182. hardcode_direct=unsupported
  8183. fi
  8184. ;;
  8185. aix[4-9]*)
  8186. if test ia64 = "$host_cpu"; then
  8187. # On IA64, the linker does run time linking by default, so we don't
  8188. # have to do anything special.
  8189. aix_use_runtimelinking=no
  8190. exp_sym_flag='-Bexport'
  8191. no_entry_flag=
  8192. else
  8193. # If we're using GNU nm, then we don't want the "-C" option.
  8194. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8195. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8196. # weak defined symbols like other global defined symbols, whereas
  8197. # GNU nm marks them as "W".
  8198. # While the 'weak' keyword is ignored in the Export File, we need
  8199. # it in the Import File for the 'aix-soname' feature, so we have
  8200. # to replace the "-B" option with "-P" for AIX nm.
  8201. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8202. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8203. else
  8204. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8205. fi
  8206. aix_use_runtimelinking=no
  8207. # Test if we are trying to use run time linking or normal
  8208. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8209. # have runtime linking enabled, and use it for executables.
  8210. # For shared libraries, we enable/disable runtime linking
  8211. # depending on the kind of the shared library created -
  8212. # when "with_aix_soname,aix_use_runtimelinking" is:
  8213. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8214. # "aix,yes" lib.so shared, rtl:yes, for executables
  8215. # lib.a static archive
  8216. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8217. # lib.a(lib.so.V) shared, rtl:no, for executables
  8218. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8219. # lib.a(lib.so.V) shared, rtl:no
  8220. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8221. # lib.a static archive
  8222. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8223. for ld_flag in $LDFLAGS; do
  8224. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8225. aix_use_runtimelinking=yes
  8226. break
  8227. fi
  8228. done
  8229. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8230. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8231. # so we don't have lib.a shared libs to link our executables.
  8232. # We have to force runtime linking in this case.
  8233. aix_use_runtimelinking=yes
  8234. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8235. fi
  8236. ;;
  8237. esac
  8238. exp_sym_flag='-bexport'
  8239. no_entry_flag='-bnoentry'
  8240. fi
  8241. # When large executables or shared objects are built, AIX ld can
  8242. # have problems creating the table of contents. If linking a library
  8243. # or program results in "error TOC overflow" add -mminimal-toc to
  8244. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8245. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8246. archive_cmds=''
  8247. hardcode_direct=yes
  8248. hardcode_direct_absolute=yes
  8249. hardcode_libdir_separator=':'
  8250. link_all_deplibs=yes
  8251. file_list_spec='$wl-f,'
  8252. case $with_aix_soname,$aix_use_runtimelinking in
  8253. aix,*) ;; # traditional, no import file
  8254. svr4,* | *,yes) # use import file
  8255. # The Import File defines what to hardcode.
  8256. hardcode_direct=no
  8257. hardcode_direct_absolute=no
  8258. ;;
  8259. esac
  8260. if test yes = "$GCC"; then
  8261. case $host_os in aix4.[012]|aix4.[012].*)
  8262. # We only want to do this on AIX 4.2 and lower, the check
  8263. # below for broken collect2 doesn't work under 4.3+
  8264. collect2name=`$CC -print-prog-name=collect2`
  8265. if test -f "$collect2name" &&
  8266. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8267. then
  8268. # We have reworked collect2
  8269. :
  8270. else
  8271. # We have old collect2
  8272. hardcode_direct=unsupported
  8273. # It fails to find uninstalled libraries when the uninstalled
  8274. # path is not listed in the libpath. Setting hardcode_minus_L
  8275. # to unsupported forces relinking
  8276. hardcode_minus_L=yes
  8277. hardcode_libdir_flag_spec='-L$libdir'
  8278. hardcode_libdir_separator=
  8279. fi
  8280. ;;
  8281. esac
  8282. shared_flag='-shared'
  8283. if test yes = "$aix_use_runtimelinking"; then
  8284. shared_flag="$shared_flag "'$wl-G'
  8285. fi
  8286. # Need to ensure runtime linking is disabled for the traditional
  8287. # shared library, or the linker may eventually find shared libraries
  8288. # /with/ Import File - we do not want to mix them.
  8289. shared_flag_aix='-shared'
  8290. shared_flag_svr4='-shared $wl-G'
  8291. else
  8292. # not using gcc
  8293. if test ia64 = "$host_cpu"; then
  8294. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8295. # chokes on -Wl,-G. The following line is correct:
  8296. shared_flag='-G'
  8297. else
  8298. if test yes = "$aix_use_runtimelinking"; then
  8299. shared_flag='$wl-G'
  8300. else
  8301. shared_flag='$wl-bM:SRE'
  8302. fi
  8303. shared_flag_aix='$wl-bM:SRE'
  8304. shared_flag_svr4='$wl-G'
  8305. fi
  8306. fi
  8307. export_dynamic_flag_spec='$wl-bexpall'
  8308. # It seems that -bexpall does not export symbols beginning with
  8309. # underscore (_), so it is better to generate a list of symbols to export.
  8310. always_export_symbols=yes
  8311. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8312. # Warning - without using the other runtime loading flags (-brtl),
  8313. # -berok will link without error, but may produce a broken library.
  8314. allow_undefined_flag='-berok'
  8315. # Determine the default libpath from the value encoded in an
  8316. # empty executable.
  8317. if test set = "${lt_cv_aix_libpath+set}"; then
  8318. aix_libpath=$lt_cv_aix_libpath
  8319. else
  8320. if ${lt_cv_aix_libpath_+:} false; then :
  8321. $as_echo_n "(cached) " >&6
  8322. else
  8323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8324. /* end confdefs.h. */
  8325. int
  8326. main ()
  8327. {
  8328. ;
  8329. return 0;
  8330. }
  8331. _ACEOF
  8332. if ac_fn_c_try_link "$LINENO"; then :
  8333. lt_aix_libpath_sed='
  8334. /Import File Strings/,/^$/ {
  8335. /^0/ {
  8336. s/^0 *\([^ ]*\) *$/\1/
  8337. p
  8338. }
  8339. }'
  8340. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8341. # Check for a 64-bit object if we didn't find anything.
  8342. if test -z "$lt_cv_aix_libpath_"; then
  8343. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8344. fi
  8345. fi
  8346. rm -f core conftest.err conftest.$ac_objext \
  8347. conftest$ac_exeext conftest.$ac_ext
  8348. if test -z "$lt_cv_aix_libpath_"; then
  8349. lt_cv_aix_libpath_=/usr/lib:/lib
  8350. fi
  8351. fi
  8352. aix_libpath=$lt_cv_aix_libpath_
  8353. fi
  8354. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8355. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8356. else
  8357. if test ia64 = "$host_cpu"; then
  8358. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8359. allow_undefined_flag="-z nodefs"
  8360. 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"
  8361. else
  8362. # Determine the default libpath from the value encoded in an
  8363. # empty executable.
  8364. if test set = "${lt_cv_aix_libpath+set}"; then
  8365. aix_libpath=$lt_cv_aix_libpath
  8366. else
  8367. if ${lt_cv_aix_libpath_+:} false; then :
  8368. $as_echo_n "(cached) " >&6
  8369. else
  8370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8371. /* end confdefs.h. */
  8372. int
  8373. main ()
  8374. {
  8375. ;
  8376. return 0;
  8377. }
  8378. _ACEOF
  8379. if ac_fn_c_try_link "$LINENO"; then :
  8380. lt_aix_libpath_sed='
  8381. /Import File Strings/,/^$/ {
  8382. /^0/ {
  8383. s/^0 *\([^ ]*\) *$/\1/
  8384. p
  8385. }
  8386. }'
  8387. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8388. # Check for a 64-bit object if we didn't find anything.
  8389. if test -z "$lt_cv_aix_libpath_"; then
  8390. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8391. fi
  8392. fi
  8393. rm -f core conftest.err conftest.$ac_objext \
  8394. conftest$ac_exeext conftest.$ac_ext
  8395. if test -z "$lt_cv_aix_libpath_"; then
  8396. lt_cv_aix_libpath_=/usr/lib:/lib
  8397. fi
  8398. fi
  8399. aix_libpath=$lt_cv_aix_libpath_
  8400. fi
  8401. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8402. # Warning - without using the other run time loading flags,
  8403. # -berok will link without error, but may produce a broken library.
  8404. no_undefined_flag=' $wl-bernotok'
  8405. allow_undefined_flag=' $wl-berok'
  8406. if test yes = "$with_gnu_ld"; then
  8407. # We only use this code for GNU lds that support --whole-archive.
  8408. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8409. else
  8410. # Exported symbols can be pulled into shared objects from archives
  8411. whole_archive_flag_spec='$convenience'
  8412. fi
  8413. archive_cmds_need_lc=yes
  8414. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8415. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8416. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8417. if test svr4 != "$with_aix_soname"; then
  8418. # This is similar to how AIX traditionally builds its shared libraries.
  8419. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8420. fi
  8421. if test aix != "$with_aix_soname"; then
  8422. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8423. else
  8424. # used by -dlpreopen to get the symbols
  8425. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8426. fi
  8427. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8428. fi
  8429. fi
  8430. ;;
  8431. amigaos*)
  8432. case $host_cpu in
  8433. powerpc)
  8434. # see comment about AmigaOS4 .so support
  8435. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8436. archive_expsym_cmds=''
  8437. ;;
  8438. m68k)
  8439. 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)'
  8440. hardcode_libdir_flag_spec='-L$libdir'
  8441. hardcode_minus_L=yes
  8442. ;;
  8443. esac
  8444. ;;
  8445. bsdi[45]*)
  8446. export_dynamic_flag_spec=-rdynamic
  8447. ;;
  8448. cygwin* | mingw* | pw32* | cegcc*)
  8449. # When not using gcc, we currently assume that we are using
  8450. # Microsoft Visual C++.
  8451. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8452. # no search path for DLLs.
  8453. case $cc_basename in
  8454. cl*)
  8455. # Native MSVC
  8456. hardcode_libdir_flag_spec=' '
  8457. allow_undefined_flag=unsupported
  8458. always_export_symbols=yes
  8459. file_list_spec='@'
  8460. # Tell ltmain to make .lib files, not .a files.
  8461. libext=lib
  8462. # Tell ltmain to make .dll files, not .so files.
  8463. shrext_cmds=.dll
  8464. # FIXME: Setting linknames here is a bad hack.
  8465. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8466. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8467. cp "$export_symbols" "$output_objdir/$soname.def";
  8468. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8469. else
  8470. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8471. fi~
  8472. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8473. linknames='
  8474. # The linker will not automatically build a static lib if we build a DLL.
  8475. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8476. enable_shared_with_static_runtimes=yes
  8477. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8478. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8479. # Don't use ranlib
  8480. old_postinstall_cmds='chmod 644 $oldlib'
  8481. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8482. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8483. case $lt_outputfile in
  8484. *.exe|*.EXE) ;;
  8485. *)
  8486. lt_outputfile=$lt_outputfile.exe
  8487. lt_tool_outputfile=$lt_tool_outputfile.exe
  8488. ;;
  8489. esac~
  8490. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8491. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8492. $RM "$lt_outputfile.manifest";
  8493. fi'
  8494. ;;
  8495. *)
  8496. # Assume MSVC wrapper
  8497. hardcode_libdir_flag_spec=' '
  8498. allow_undefined_flag=unsupported
  8499. # Tell ltmain to make .lib files, not .a files.
  8500. libext=lib
  8501. # Tell ltmain to make .dll files, not .so files.
  8502. shrext_cmds=.dll
  8503. # FIXME: Setting linknames here is a bad hack.
  8504. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8505. # The linker will automatically build a .lib file if we build a DLL.
  8506. old_archive_from_new_cmds='true'
  8507. # FIXME: Should let the user specify the lib program.
  8508. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8509. enable_shared_with_static_runtimes=yes
  8510. ;;
  8511. esac
  8512. ;;
  8513. darwin* | rhapsody*)
  8514. archive_cmds_need_lc=no
  8515. hardcode_direct=no
  8516. hardcode_automatic=yes
  8517. hardcode_shlibpath_var=unsupported
  8518. if test yes = "$lt_cv_ld_force_load"; then
  8519. 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\"`'
  8520. else
  8521. whole_archive_flag_spec=''
  8522. fi
  8523. link_all_deplibs=yes
  8524. allow_undefined_flag=$_lt_dar_allow_undefined
  8525. case $cc_basename in
  8526. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8527. *) _lt_dar_can_shared=$GCC ;;
  8528. esac
  8529. if test yes = "$_lt_dar_can_shared"; then
  8530. output_verbose_link_cmd=func_echo_all
  8531. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8532. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8533. 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"
  8534. 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"
  8535. else
  8536. ld_shlibs=no
  8537. fi
  8538. ;;
  8539. dgux*)
  8540. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8541. hardcode_libdir_flag_spec='-L$libdir'
  8542. hardcode_shlibpath_var=no
  8543. ;;
  8544. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8545. # support. Future versions do this automatically, but an explicit c++rt0.o
  8546. # does not break anything, and helps significantly (at the cost of a little
  8547. # extra space).
  8548. freebsd2.2*)
  8549. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8550. hardcode_libdir_flag_spec='-R$libdir'
  8551. hardcode_direct=yes
  8552. hardcode_shlibpath_var=no
  8553. ;;
  8554. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8555. freebsd2.*)
  8556. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8557. hardcode_direct=yes
  8558. hardcode_minus_L=yes
  8559. hardcode_shlibpath_var=no
  8560. ;;
  8561. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8562. freebsd* | dragonfly* | midnightbsd*)
  8563. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8564. hardcode_libdir_flag_spec='-R$libdir'
  8565. hardcode_direct=yes
  8566. hardcode_shlibpath_var=no
  8567. ;;
  8568. hpux9*)
  8569. if test yes = "$GCC"; then
  8570. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8571. else
  8572. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8573. fi
  8574. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8575. hardcode_libdir_separator=:
  8576. hardcode_direct=yes
  8577. # hardcode_minus_L: Not really in the search PATH,
  8578. # but as the default location of the library.
  8579. hardcode_minus_L=yes
  8580. export_dynamic_flag_spec='$wl-E'
  8581. ;;
  8582. hpux10*)
  8583. if test yes,no = "$GCC,$with_gnu_ld"; then
  8584. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8585. else
  8586. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8587. fi
  8588. if test no = "$with_gnu_ld"; then
  8589. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8590. hardcode_libdir_separator=:
  8591. hardcode_direct=yes
  8592. hardcode_direct_absolute=yes
  8593. export_dynamic_flag_spec='$wl-E'
  8594. # hardcode_minus_L: Not really in the search PATH,
  8595. # but as the default location of the library.
  8596. hardcode_minus_L=yes
  8597. fi
  8598. ;;
  8599. hpux11*)
  8600. if test yes,no = "$GCC,$with_gnu_ld"; then
  8601. case $host_cpu in
  8602. hppa*64*)
  8603. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8604. ;;
  8605. ia64*)
  8606. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8607. ;;
  8608. *)
  8609. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8610. ;;
  8611. esac
  8612. else
  8613. case $host_cpu in
  8614. hppa*64*)
  8615. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8616. ;;
  8617. ia64*)
  8618. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8619. ;;
  8620. *)
  8621. # Older versions of the 11.00 compiler do not understand -b yet
  8622. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8624. $as_echo_n "checking if $CC understands -b... " >&6; }
  8625. if ${lt_cv_prog_compiler__b+:} false; then :
  8626. $as_echo_n "(cached) " >&6
  8627. else
  8628. lt_cv_prog_compiler__b=no
  8629. save_LDFLAGS=$LDFLAGS
  8630. LDFLAGS="$LDFLAGS -b"
  8631. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8632. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8633. # The linker can only warn and ignore the option if not recognized
  8634. # So say no if there are warnings
  8635. if test -s conftest.err; then
  8636. # Append any errors to the config.log.
  8637. cat conftest.err 1>&5
  8638. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8639. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8640. if diff conftest.exp conftest.er2 >/dev/null; then
  8641. lt_cv_prog_compiler__b=yes
  8642. fi
  8643. else
  8644. lt_cv_prog_compiler__b=yes
  8645. fi
  8646. fi
  8647. $RM -r conftest*
  8648. LDFLAGS=$save_LDFLAGS
  8649. fi
  8650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8651. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8652. if test yes = "$lt_cv_prog_compiler__b"; then
  8653. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8654. else
  8655. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8656. fi
  8657. ;;
  8658. esac
  8659. fi
  8660. if test no = "$with_gnu_ld"; then
  8661. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8662. hardcode_libdir_separator=:
  8663. case $host_cpu in
  8664. hppa*64*|ia64*)
  8665. hardcode_direct=no
  8666. hardcode_shlibpath_var=no
  8667. ;;
  8668. *)
  8669. hardcode_direct=yes
  8670. hardcode_direct_absolute=yes
  8671. export_dynamic_flag_spec='$wl-E'
  8672. # hardcode_minus_L: Not really in the search PATH,
  8673. # but as the default location of the library.
  8674. hardcode_minus_L=yes
  8675. ;;
  8676. esac
  8677. fi
  8678. ;;
  8679. irix5* | irix6* | nonstopux*)
  8680. if test yes = "$GCC"; then
  8681. 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'
  8682. # Try to use the -exported_symbol ld option, if it does not
  8683. # work, assume that -exports_file does not work either and
  8684. # implicitly export all symbols.
  8685. # This should be the same for all languages, so no per-tag cache variable.
  8686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8687. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8688. if ${lt_cv_irix_exported_symbol+:} false; then :
  8689. $as_echo_n "(cached) " >&6
  8690. else
  8691. save_LDFLAGS=$LDFLAGS
  8692. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8694. /* end confdefs.h. */
  8695. int foo (void) { return 0; }
  8696. _ACEOF
  8697. if ac_fn_c_try_link "$LINENO"; then :
  8698. lt_cv_irix_exported_symbol=yes
  8699. else
  8700. lt_cv_irix_exported_symbol=no
  8701. fi
  8702. rm -f core conftest.err conftest.$ac_objext \
  8703. conftest$ac_exeext conftest.$ac_ext
  8704. LDFLAGS=$save_LDFLAGS
  8705. fi
  8706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8707. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8708. if test yes = "$lt_cv_irix_exported_symbol"; then
  8709. 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'
  8710. fi
  8711. else
  8712. 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'
  8713. 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'
  8714. fi
  8715. archive_cmds_need_lc='no'
  8716. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8717. hardcode_libdir_separator=:
  8718. inherit_rpath=yes
  8719. link_all_deplibs=yes
  8720. ;;
  8721. linux*)
  8722. case $cc_basename in
  8723. tcc*)
  8724. # Fabrice Bellard et al's Tiny C Compiler
  8725. ld_shlibs=yes
  8726. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8727. ;;
  8728. esac
  8729. ;;
  8730. netbsd*)
  8731. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8732. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8733. else
  8734. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8735. fi
  8736. hardcode_libdir_flag_spec='-R$libdir'
  8737. hardcode_direct=yes
  8738. hardcode_shlibpath_var=no
  8739. ;;
  8740. newsos6)
  8741. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8742. hardcode_direct=yes
  8743. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8744. hardcode_libdir_separator=:
  8745. hardcode_shlibpath_var=no
  8746. ;;
  8747. *nto* | *qnx*)
  8748. ;;
  8749. openbsd* | bitrig*)
  8750. if test -f /usr/libexec/ld.so; then
  8751. hardcode_direct=yes
  8752. hardcode_shlibpath_var=no
  8753. hardcode_direct_absolute=yes
  8754. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8755. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8756. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8757. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8758. export_dynamic_flag_spec='$wl-E'
  8759. else
  8760. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8761. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8762. fi
  8763. else
  8764. ld_shlibs=no
  8765. fi
  8766. ;;
  8767. os2*)
  8768. hardcode_libdir_flag_spec='-L$libdir'
  8769. hardcode_minus_L=yes
  8770. allow_undefined_flag=unsupported
  8771. shrext_cmds=.dll
  8772. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8773. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8774. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8775. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8776. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8777. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8778. emximp -o $lib $output_objdir/$libname.def'
  8779. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8780. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8781. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8782. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8783. prefix_cmds="$SED"~
  8784. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8785. prefix_cmds="$prefix_cmds -e 1d";
  8786. fi~
  8787. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8788. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8789. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8790. emximp -o $lib $output_objdir/$libname.def'
  8791. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8792. enable_shared_with_static_runtimes=yes
  8793. file_list_spec='@'
  8794. ;;
  8795. osf3*)
  8796. if test yes = "$GCC"; then
  8797. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8798. 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'
  8799. else
  8800. allow_undefined_flag=' -expect_unresolved \*'
  8801. 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'
  8802. fi
  8803. archive_cmds_need_lc='no'
  8804. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8805. hardcode_libdir_separator=:
  8806. ;;
  8807. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8808. if test yes = "$GCC"; then
  8809. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8810. 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'
  8811. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8812. else
  8813. allow_undefined_flag=' -expect_unresolved \*'
  8814. 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'
  8815. 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~
  8816. $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'
  8817. # Both c and cxx compiler support -rpath directly
  8818. hardcode_libdir_flag_spec='-rpath $libdir'
  8819. fi
  8820. archive_cmds_need_lc='no'
  8821. hardcode_libdir_separator=:
  8822. ;;
  8823. solaris*)
  8824. no_undefined_flag=' -z defs'
  8825. if test yes = "$GCC"; then
  8826. wlarc='$wl'
  8827. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8828. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8829. $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'
  8830. else
  8831. case `$CC -V 2>&1` in
  8832. *"Compilers 5.0"*)
  8833. wlarc=''
  8834. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8835. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8836. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8837. ;;
  8838. *)
  8839. wlarc='$wl'
  8840. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8841. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8842. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8843. ;;
  8844. esac
  8845. fi
  8846. hardcode_libdir_flag_spec='-R$libdir'
  8847. hardcode_shlibpath_var=no
  8848. case $host_os in
  8849. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8850. *)
  8851. # The compiler driver will combine and reorder linker options,
  8852. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8853. # but is careful enough not to reorder.
  8854. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8855. if test yes = "$GCC"; then
  8856. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8857. else
  8858. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8859. fi
  8860. ;;
  8861. esac
  8862. link_all_deplibs=yes
  8863. ;;
  8864. sunos4*)
  8865. if test sequent = "$host_vendor"; then
  8866. # Use $CC to link under sequent, because it throws in some extra .o
  8867. # files that make .init and .fini sections work.
  8868. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8869. else
  8870. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8871. fi
  8872. hardcode_libdir_flag_spec='-L$libdir'
  8873. hardcode_direct=yes
  8874. hardcode_minus_L=yes
  8875. hardcode_shlibpath_var=no
  8876. ;;
  8877. sysv4)
  8878. case $host_vendor in
  8879. sni)
  8880. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8881. hardcode_direct=yes # is this really true???
  8882. ;;
  8883. siemens)
  8884. ## LD is ld it makes a PLAMLIB
  8885. ## CC just makes a GrossModule.
  8886. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8887. reload_cmds='$CC -r -o $output$reload_objs'
  8888. hardcode_direct=no
  8889. ;;
  8890. motorola)
  8891. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8892. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8893. ;;
  8894. esac
  8895. runpath_var='LD_RUN_PATH'
  8896. hardcode_shlibpath_var=no
  8897. ;;
  8898. sysv4.3*)
  8899. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8900. hardcode_shlibpath_var=no
  8901. export_dynamic_flag_spec='-Bexport'
  8902. ;;
  8903. sysv4*MP*)
  8904. if test -d /usr/nec; then
  8905. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8906. hardcode_shlibpath_var=no
  8907. runpath_var=LD_RUN_PATH
  8908. hardcode_runpath_var=yes
  8909. ld_shlibs=yes
  8910. fi
  8911. ;;
  8912. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8913. no_undefined_flag='$wl-z,text'
  8914. archive_cmds_need_lc=no
  8915. hardcode_shlibpath_var=no
  8916. runpath_var='LD_RUN_PATH'
  8917. if test yes = "$GCC"; then
  8918. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8919. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8920. else
  8921. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8922. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8923. fi
  8924. ;;
  8925. sysv5* | sco3.2v5* | sco5v6*)
  8926. # Note: We CANNOT use -z defs as we might desire, because we do not
  8927. # link with -lc, and that would cause any symbols used from libc to
  8928. # always be unresolved, which means just about no library would
  8929. # ever link correctly. If we're not using GNU ld we use -z text
  8930. # though, which does catch some bad symbols but isn't as heavy-handed
  8931. # as -z defs.
  8932. no_undefined_flag='$wl-z,text'
  8933. allow_undefined_flag='$wl-z,nodefs'
  8934. archive_cmds_need_lc=no
  8935. hardcode_shlibpath_var=no
  8936. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8937. hardcode_libdir_separator=':'
  8938. link_all_deplibs=yes
  8939. export_dynamic_flag_spec='$wl-Bexport'
  8940. runpath_var='LD_RUN_PATH'
  8941. if test yes = "$GCC"; then
  8942. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8943. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8944. else
  8945. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8946. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8947. fi
  8948. ;;
  8949. uts4*)
  8950. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8951. hardcode_libdir_flag_spec='-L$libdir'
  8952. hardcode_shlibpath_var=no
  8953. ;;
  8954. *)
  8955. ld_shlibs=no
  8956. ;;
  8957. esac
  8958. if test sni = "$host_vendor"; then
  8959. case $host in
  8960. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8961. export_dynamic_flag_spec='$wl-Blargedynsym'
  8962. ;;
  8963. esac
  8964. fi
  8965. fi
  8966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8967. $as_echo "$ld_shlibs" >&6; }
  8968. test no = "$ld_shlibs" && can_build_shared=no
  8969. with_gnu_ld=$with_gnu_ld
  8970. #
  8971. # Do we need to explicitly link libc?
  8972. #
  8973. case "x$archive_cmds_need_lc" in
  8974. x|xyes)
  8975. # Assume -lc should be added
  8976. archive_cmds_need_lc=yes
  8977. if test yes,yes = "$GCC,$enable_shared"; then
  8978. case $archive_cmds in
  8979. *'~'*)
  8980. # FIXME: we may have to deal with multi-command sequences.
  8981. ;;
  8982. '$CC '*)
  8983. # Test whether the compiler implicitly links with -lc since on some
  8984. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8985. # to ld, don't add -lc before -lgcc.
  8986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8987. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8988. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8989. $as_echo_n "(cached) " >&6
  8990. else
  8991. $RM conftest*
  8992. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8993. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8994. (eval $ac_compile) 2>&5
  8995. ac_status=$?
  8996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8997. test $ac_status = 0; } 2>conftest.err; then
  8998. soname=conftest
  8999. lib=conftest
  9000. libobjs=conftest.$ac_objext
  9001. deplibs=
  9002. wl=$lt_prog_compiler_wl
  9003. pic_flag=$lt_prog_compiler_pic
  9004. compiler_flags=-v
  9005. linker_flags=-v
  9006. verstring=
  9007. output_objdir=.
  9008. libname=conftest
  9009. lt_save_allow_undefined_flag=$allow_undefined_flag
  9010. allow_undefined_flag=
  9011. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9012. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9013. ac_status=$?
  9014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9015. test $ac_status = 0; }
  9016. then
  9017. lt_cv_archive_cmds_need_lc=no
  9018. else
  9019. lt_cv_archive_cmds_need_lc=yes
  9020. fi
  9021. allow_undefined_flag=$lt_save_allow_undefined_flag
  9022. else
  9023. cat conftest.err 1>&5
  9024. fi
  9025. $RM conftest*
  9026. fi
  9027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9028. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9029. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9030. ;;
  9031. esac
  9032. fi
  9033. ;;
  9034. esac
  9035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9036. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9037. if test yes = "$GCC"; then
  9038. case $host_os in
  9039. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9040. *) lt_awk_arg='/^libraries:/' ;;
  9041. esac
  9042. case $host_os in
  9043. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9044. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9045. esac
  9046. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9047. case $lt_search_path_spec in
  9048. *\;*)
  9049. # if the path contains ";" then we assume it to be the separator
  9050. # otherwise default to the standard path separator (i.e. ":") - it is
  9051. # assumed that no part of a normal pathname contains ";" but that should
  9052. # okay in the real world where ";" in dirpaths is itself problematic.
  9053. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9054. ;;
  9055. *)
  9056. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9057. ;;
  9058. esac
  9059. # Ok, now we have the path, separated by spaces, we can step through it
  9060. # and add multilib dir if necessary...
  9061. lt_tmp_lt_search_path_spec=
  9062. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9063. # ...but if some path component already ends with the multilib dir we assume
  9064. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9065. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9066. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9067. lt_multi_os_dir=
  9068. ;;
  9069. esac
  9070. for lt_sys_path in $lt_search_path_spec; do
  9071. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9072. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9073. elif test -n "$lt_multi_os_dir"; then
  9074. test -d "$lt_sys_path" && \
  9075. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9076. fi
  9077. done
  9078. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9079. BEGIN {RS = " "; FS = "/|\n";} {
  9080. lt_foo = "";
  9081. lt_count = 0;
  9082. for (lt_i = NF; lt_i > 0; lt_i--) {
  9083. if ($lt_i != "" && $lt_i != ".") {
  9084. if ($lt_i == "..") {
  9085. lt_count++;
  9086. } else {
  9087. if (lt_count == 0) {
  9088. lt_foo = "/" $lt_i lt_foo;
  9089. } else {
  9090. lt_count--;
  9091. }
  9092. }
  9093. }
  9094. }
  9095. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9096. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9097. }'`
  9098. # AWK program above erroneously prepends '/' to C:/dos/paths
  9099. # for these hosts.
  9100. case $host_os in
  9101. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9102. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9103. esac
  9104. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9105. else
  9106. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9107. fi
  9108. library_names_spec=
  9109. libname_spec='lib$name'
  9110. soname_spec=
  9111. shrext_cmds=.so
  9112. postinstall_cmds=
  9113. postuninstall_cmds=
  9114. finish_cmds=
  9115. finish_eval=
  9116. shlibpath_var=
  9117. shlibpath_overrides_runpath=unknown
  9118. version_type=none
  9119. dynamic_linker="$host_os ld.so"
  9120. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9121. need_lib_prefix=unknown
  9122. hardcode_into_libs=no
  9123. # when you set need_version to no, make sure it does not cause -set_version
  9124. # flags to be left without arguments
  9125. need_version=unknown
  9126. case $host_os in
  9127. aix3*)
  9128. version_type=linux # correct to gnu/linux during the next big refactor
  9129. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9130. shlibpath_var=LIBPATH
  9131. # AIX 3 has no versioning support, so we append a major version to the name.
  9132. soname_spec='$libname$release$shared_ext$major'
  9133. ;;
  9134. aix[4-9]*)
  9135. version_type=linux # correct to gnu/linux during the next big refactor
  9136. need_lib_prefix=no
  9137. need_version=no
  9138. hardcode_into_libs=yes
  9139. if test ia64 = "$host_cpu"; then
  9140. # AIX 5 supports IA64
  9141. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9142. shlibpath_var=LD_LIBRARY_PATH
  9143. else
  9144. # With GCC up to 2.95.x, collect2 would create an import file
  9145. # for dependence libraries. The import file would start with
  9146. # the line '#! .'. This would cause the generated library to
  9147. # depend on '.', always an invalid library. This was fixed in
  9148. # development snapshots of GCC prior to 3.0.
  9149. case $host_os in
  9150. aix4 | aix4.[01] | aix4.[01].*)
  9151. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9152. echo ' yes '
  9153. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9154. :
  9155. else
  9156. can_build_shared=no
  9157. fi
  9158. ;;
  9159. esac
  9160. # Using Import Files as archive members, it is possible to support
  9161. # filename-based versioning of shared library archives on AIX. While
  9162. # this would work for both with and without runtime linking, it will
  9163. # prevent static linking of such archives. So we do filename-based
  9164. # shared library versioning with .so extension only, which is used
  9165. # when both runtime linking and shared linking is enabled.
  9166. # Unfortunately, runtime linking may impact performance, so we do
  9167. # not want this to be the default eventually. Also, we use the
  9168. # versioned .so libs for executables only if there is the -brtl
  9169. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9170. # To allow for filename-based versioning support, we need to create
  9171. # libNAME.so.V as an archive file, containing:
  9172. # *) an Import File, referring to the versioned filename of the
  9173. # archive as well as the shared archive member, telling the
  9174. # bitwidth (32 or 64) of that shared object, and providing the
  9175. # list of exported symbols of that shared object, eventually
  9176. # decorated with the 'weak' keyword
  9177. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9178. # it being seen by the linker.
  9179. # At run time we better use the real file rather than another symlink,
  9180. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9181. case $with_aix_soname,$aix_use_runtimelinking in
  9182. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9183. # soname into executable. Probably we can add versioning support to
  9184. # collect2, so additional links can be useful in future.
  9185. aix,yes) # traditional libtool
  9186. dynamic_linker='AIX unversionable lib.so'
  9187. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9188. # instead of lib<name>.a to let people know that these are not
  9189. # typical AIX shared libraries.
  9190. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9191. ;;
  9192. aix,no) # traditional AIX only
  9193. dynamic_linker='AIX lib.a(lib.so.V)'
  9194. # We preserve .a as extension for shared libraries through AIX4.2
  9195. # and later when we are not doing run time linking.
  9196. library_names_spec='$libname$release.a $libname.a'
  9197. soname_spec='$libname$release$shared_ext$major'
  9198. ;;
  9199. svr4,*) # full svr4 only
  9200. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9201. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9202. # We do not specify a path in Import Files, so LIBPATH fires.
  9203. shlibpath_overrides_runpath=yes
  9204. ;;
  9205. *,yes) # both, prefer svr4
  9206. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9207. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9208. # unpreferred sharedlib libNAME.a needs extra handling
  9209. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9210. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9211. # We do not specify a path in Import Files, so LIBPATH fires.
  9212. shlibpath_overrides_runpath=yes
  9213. ;;
  9214. *,no) # both, prefer aix
  9215. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9216. library_names_spec='$libname$release.a $libname.a'
  9217. soname_spec='$libname$release$shared_ext$major'
  9218. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9219. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9220. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9221. ;;
  9222. esac
  9223. shlibpath_var=LIBPATH
  9224. fi
  9225. ;;
  9226. amigaos*)
  9227. case $host_cpu in
  9228. powerpc)
  9229. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9230. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9231. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9232. ;;
  9233. m68k)
  9234. library_names_spec='$libname.ixlibrary $libname.a'
  9235. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9236. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9237. ;;
  9238. esac
  9239. ;;
  9240. beos*)
  9241. library_names_spec='$libname$shared_ext'
  9242. dynamic_linker="$host_os ld.so"
  9243. shlibpath_var=LIBRARY_PATH
  9244. ;;
  9245. bsdi[45]*)
  9246. version_type=linux # correct to gnu/linux during the next big refactor
  9247. need_version=no
  9248. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9249. soname_spec='$libname$release$shared_ext$major'
  9250. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9251. shlibpath_var=LD_LIBRARY_PATH
  9252. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9253. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9254. # the default ld.so.conf also contains /usr/contrib/lib and
  9255. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9256. # libtool to hard-code these into programs
  9257. ;;
  9258. cygwin* | mingw* | pw32* | cegcc*)
  9259. version_type=windows
  9260. shrext_cmds=.dll
  9261. need_version=no
  9262. need_lib_prefix=no
  9263. case $GCC,$cc_basename in
  9264. yes,*)
  9265. # gcc
  9266. library_names_spec='$libname.dll.a'
  9267. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9268. postinstall_cmds='base_file=`basename \$file`~
  9269. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9270. dldir=$destdir/`dirname \$dlpath`~
  9271. test -d \$dldir || mkdir -p \$dldir~
  9272. $install_prog $dir/$dlname \$dldir/$dlname~
  9273. chmod a+x \$dldir/$dlname~
  9274. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9275. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9276. fi'
  9277. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9278. dlpath=$dir/\$dldll~
  9279. $RM \$dlpath'
  9280. shlibpath_overrides_runpath=yes
  9281. case $host_os in
  9282. cygwin*)
  9283. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9284. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9285. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9286. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9287. ;;
  9288. mingw* | cegcc*)
  9289. # MinGW DLLs use traditional 'lib' prefix
  9290. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9291. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9292. ;;
  9293. pw32*)
  9294. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9295. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9296. ;;
  9297. esac
  9298. dynamic_linker='Win32 ld.exe'
  9299. ;;
  9300. *,cl*)
  9301. # Native MSVC
  9302. libname_spec='$name'
  9303. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9304. library_names_spec='$libname.dll.lib'
  9305. case $build_os in
  9306. mingw*)
  9307. sys_lib_search_path_spec=
  9308. lt_save_ifs=$IFS
  9309. IFS=';'
  9310. for lt_path in $LIB
  9311. do
  9312. IFS=$lt_save_ifs
  9313. # Let DOS variable expansion print the short 8.3 style file name.
  9314. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9315. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9316. done
  9317. IFS=$lt_save_ifs
  9318. # Convert to MSYS style.
  9319. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9320. ;;
  9321. cygwin*)
  9322. # Convert to unix form, then to dos form, then back to unix form
  9323. # but this time dos style (no spaces!) so that the unix form looks
  9324. # like /cygdrive/c/PROGRA~1:/cygdr...
  9325. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9326. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9327. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9328. ;;
  9329. *)
  9330. sys_lib_search_path_spec=$LIB
  9331. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9332. # It is most probably a Windows format PATH.
  9333. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9334. else
  9335. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9336. fi
  9337. # FIXME: find the short name or the path components, as spaces are
  9338. # common. (e.g. "Program Files" -> "PROGRA~1")
  9339. ;;
  9340. esac
  9341. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9342. postinstall_cmds='base_file=`basename \$file`~
  9343. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9344. dldir=$destdir/`dirname \$dlpath`~
  9345. test -d \$dldir || mkdir -p \$dldir~
  9346. $install_prog $dir/$dlname \$dldir/$dlname'
  9347. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9348. dlpath=$dir/\$dldll~
  9349. $RM \$dlpath'
  9350. shlibpath_overrides_runpath=yes
  9351. dynamic_linker='Win32 link.exe'
  9352. ;;
  9353. *)
  9354. # Assume MSVC wrapper
  9355. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9356. dynamic_linker='Win32 ld.exe'
  9357. ;;
  9358. esac
  9359. # FIXME: first we should search . and the directory the executable is in
  9360. shlibpath_var=PATH
  9361. ;;
  9362. darwin* | rhapsody*)
  9363. dynamic_linker="$host_os dyld"
  9364. version_type=darwin
  9365. need_lib_prefix=no
  9366. need_version=no
  9367. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9368. soname_spec='$libname$release$major$shared_ext'
  9369. shlibpath_overrides_runpath=yes
  9370. shlibpath_var=DYLD_LIBRARY_PATH
  9371. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9372. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9373. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9374. ;;
  9375. dgux*)
  9376. version_type=linux # correct to gnu/linux during the next big refactor
  9377. need_lib_prefix=no
  9378. need_version=no
  9379. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9380. soname_spec='$libname$release$shared_ext$major'
  9381. shlibpath_var=LD_LIBRARY_PATH
  9382. ;;
  9383. freebsd* | dragonfly* | midnightbsd*)
  9384. # DragonFly does not have aout. When/if they implement a new
  9385. # versioning mechanism, adjust this.
  9386. if test -x /usr/bin/objformat; then
  9387. objformat=`/usr/bin/objformat`
  9388. else
  9389. case $host_os in
  9390. freebsd[23].*) objformat=aout ;;
  9391. *) objformat=elf ;;
  9392. esac
  9393. fi
  9394. version_type=freebsd-$objformat
  9395. case $version_type in
  9396. freebsd-elf*)
  9397. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9398. soname_spec='$libname$release$shared_ext$major'
  9399. need_version=no
  9400. need_lib_prefix=no
  9401. ;;
  9402. freebsd-*)
  9403. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9404. need_version=yes
  9405. ;;
  9406. esac
  9407. shlibpath_var=LD_LIBRARY_PATH
  9408. case $host_os in
  9409. freebsd2.*)
  9410. shlibpath_overrides_runpath=yes
  9411. ;;
  9412. freebsd3.[01]* | freebsdelf3.[01]*)
  9413. shlibpath_overrides_runpath=yes
  9414. hardcode_into_libs=yes
  9415. ;;
  9416. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9417. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9418. shlibpath_overrides_runpath=no
  9419. hardcode_into_libs=yes
  9420. ;;
  9421. *) # from 4.6 on, and DragonFly
  9422. shlibpath_overrides_runpath=yes
  9423. hardcode_into_libs=yes
  9424. ;;
  9425. esac
  9426. ;;
  9427. haiku*)
  9428. version_type=linux # correct to gnu/linux during the next big refactor
  9429. need_lib_prefix=no
  9430. need_version=no
  9431. dynamic_linker="$host_os runtime_loader"
  9432. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9433. soname_spec='$libname$release$shared_ext$major'
  9434. shlibpath_var=LIBRARY_PATH
  9435. shlibpath_overrides_runpath=no
  9436. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9437. hardcode_into_libs=yes
  9438. ;;
  9439. hpux9* | hpux10* | hpux11*)
  9440. # Give a soname corresponding to the major version so that dld.sl refuses to
  9441. # link against other versions.
  9442. version_type=sunos
  9443. need_lib_prefix=no
  9444. need_version=no
  9445. case $host_cpu in
  9446. ia64*)
  9447. shrext_cmds='.so'
  9448. hardcode_into_libs=yes
  9449. dynamic_linker="$host_os dld.so"
  9450. shlibpath_var=LD_LIBRARY_PATH
  9451. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9452. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9453. soname_spec='$libname$release$shared_ext$major'
  9454. if test 32 = "$HPUX_IA64_MODE"; then
  9455. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9456. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9457. else
  9458. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9459. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9460. fi
  9461. ;;
  9462. hppa*64*)
  9463. shrext_cmds='.sl'
  9464. hardcode_into_libs=yes
  9465. dynamic_linker="$host_os dld.sl"
  9466. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9467. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9468. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9469. soname_spec='$libname$release$shared_ext$major'
  9470. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9471. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9472. ;;
  9473. *)
  9474. shrext_cmds='.sl'
  9475. dynamic_linker="$host_os dld.sl"
  9476. shlibpath_var=SHLIB_PATH
  9477. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9478. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9479. soname_spec='$libname$release$shared_ext$major'
  9480. ;;
  9481. esac
  9482. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9483. postinstall_cmds='chmod 555 $lib'
  9484. # or fails outright, so override atomically:
  9485. install_override_mode=555
  9486. ;;
  9487. interix[3-9]*)
  9488. version_type=linux # correct to gnu/linux during the next big refactor
  9489. need_lib_prefix=no
  9490. need_version=no
  9491. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9492. soname_spec='$libname$release$shared_ext$major'
  9493. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9494. shlibpath_var=LD_LIBRARY_PATH
  9495. shlibpath_overrides_runpath=no
  9496. hardcode_into_libs=yes
  9497. ;;
  9498. irix5* | irix6* | nonstopux*)
  9499. case $host_os in
  9500. nonstopux*) version_type=nonstopux ;;
  9501. *)
  9502. if test yes = "$lt_cv_prog_gnu_ld"; then
  9503. version_type=linux # correct to gnu/linux during the next big refactor
  9504. else
  9505. version_type=irix
  9506. fi ;;
  9507. esac
  9508. need_lib_prefix=no
  9509. need_version=no
  9510. soname_spec='$libname$release$shared_ext$major'
  9511. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9512. case $host_os in
  9513. irix5* | nonstopux*)
  9514. libsuff= shlibsuff=
  9515. ;;
  9516. *)
  9517. case $LD in # libtool.m4 will add one of these switches to LD
  9518. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9519. libsuff= shlibsuff= libmagic=32-bit;;
  9520. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9521. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9522. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9523. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9524. *) libsuff= shlibsuff= libmagic=never-match;;
  9525. esac
  9526. ;;
  9527. esac
  9528. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9529. shlibpath_overrides_runpath=no
  9530. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9531. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9532. hardcode_into_libs=yes
  9533. ;;
  9534. # No shared lib support for Linux oldld, aout, or coff.
  9535. linux*oldld* | linux*aout* | linux*coff*)
  9536. dynamic_linker=no
  9537. ;;
  9538. linux*android*)
  9539. version_type=none # Android doesn't support versioned libraries.
  9540. need_lib_prefix=no
  9541. need_version=no
  9542. library_names_spec='$libname$release$shared_ext'
  9543. soname_spec='$libname$release$shared_ext'
  9544. finish_cmds=
  9545. shlibpath_var=LD_LIBRARY_PATH
  9546. shlibpath_overrides_runpath=yes
  9547. # This implies no fast_install, which is unacceptable.
  9548. # Some rework will be needed to allow for fast_install
  9549. # before this can be enabled.
  9550. hardcode_into_libs=yes
  9551. dynamic_linker='Android linker'
  9552. # Don't embed -rpath directories since the linker doesn't support them.
  9553. hardcode_libdir_flag_spec='-L$libdir'
  9554. ;;
  9555. # This must be glibc/ELF.
  9556. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9557. version_type=linux # correct to gnu/linux during the next big refactor
  9558. need_lib_prefix=no
  9559. need_version=no
  9560. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9561. soname_spec='$libname$release$shared_ext$major'
  9562. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9563. shlibpath_var=LD_LIBRARY_PATH
  9564. shlibpath_overrides_runpath=no
  9565. # Some binutils ld are patched to set DT_RUNPATH
  9566. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9567. $as_echo_n "(cached) " >&6
  9568. else
  9569. lt_cv_shlibpath_overrides_runpath=no
  9570. save_LDFLAGS=$LDFLAGS
  9571. save_libdir=$libdir
  9572. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9573. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9575. /* end confdefs.h. */
  9576. int
  9577. main ()
  9578. {
  9579. ;
  9580. return 0;
  9581. }
  9582. _ACEOF
  9583. if ac_fn_c_try_link "$LINENO"; then :
  9584. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9585. lt_cv_shlibpath_overrides_runpath=yes
  9586. fi
  9587. fi
  9588. rm -f core conftest.err conftest.$ac_objext \
  9589. conftest$ac_exeext conftest.$ac_ext
  9590. LDFLAGS=$save_LDFLAGS
  9591. libdir=$save_libdir
  9592. fi
  9593. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9594. # This implies no fast_install, which is unacceptable.
  9595. # Some rework will be needed to allow for fast_install
  9596. # before this can be enabled.
  9597. hardcode_into_libs=yes
  9598. # Add ABI-specific directories to the system library path.
  9599. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9600. # Ideally, we could use ldconfig to report *all* directores which are
  9601. # searched for libraries, however this is still not possible. Aside from not
  9602. # being certain /sbin/ldconfig is available, command
  9603. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9604. # even though it is searched at run-time. Try to do the best guess by
  9605. # appending ld.so.conf contents (and includes) to the search path.
  9606. if test -f /etc/ld.so.conf; then
  9607. 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' ' '`
  9608. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9609. fi
  9610. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9611. # powerpc, because MkLinux only supported shared libraries with the
  9612. # GNU dynamic linker. Since this was broken with cross compilers,
  9613. # most powerpc-linux boxes support dynamic linking these days and
  9614. # people can always --disable-shared, the test was removed, and we
  9615. # assume the GNU/Linux dynamic linker is in use.
  9616. dynamic_linker='GNU/Linux ld.so'
  9617. ;;
  9618. netbsd*)
  9619. version_type=sunos
  9620. need_lib_prefix=no
  9621. need_version=no
  9622. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9623. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9624. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9625. dynamic_linker='NetBSD (a.out) ld.so'
  9626. else
  9627. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9628. soname_spec='$libname$release$shared_ext$major'
  9629. dynamic_linker='NetBSD ld.elf_so'
  9630. fi
  9631. shlibpath_var=LD_LIBRARY_PATH
  9632. shlibpath_overrides_runpath=yes
  9633. hardcode_into_libs=yes
  9634. ;;
  9635. newsos6)
  9636. version_type=linux # correct to gnu/linux during the next big refactor
  9637. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9638. shlibpath_var=LD_LIBRARY_PATH
  9639. shlibpath_overrides_runpath=yes
  9640. ;;
  9641. *nto* | *qnx*)
  9642. version_type=qnx
  9643. need_lib_prefix=no
  9644. need_version=no
  9645. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9646. soname_spec='$libname$release$shared_ext$major'
  9647. shlibpath_var=LD_LIBRARY_PATH
  9648. shlibpath_overrides_runpath=no
  9649. hardcode_into_libs=yes
  9650. dynamic_linker='ldqnx.so'
  9651. ;;
  9652. openbsd* | bitrig*)
  9653. version_type=sunos
  9654. sys_lib_dlsearch_path_spec=/usr/lib
  9655. need_lib_prefix=no
  9656. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9657. need_version=no
  9658. else
  9659. need_version=yes
  9660. fi
  9661. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9662. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9663. shlibpath_var=LD_LIBRARY_PATH
  9664. shlibpath_overrides_runpath=yes
  9665. ;;
  9666. os2*)
  9667. libname_spec='$name'
  9668. shrext_cmds=.dll
  9669. need_lib_prefix=no
  9670. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9671. # SDL customization: removed versioning support.
  9672. # version_type=windows
  9673. # need_version=no
  9674. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9675. # v=$($ECHO $release$versuffix | tr -d .-);
  9676. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9677. # $ECHO $n$v`$shared_ext'
  9678. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9679. library_names_spec='${libname}_dll.$libext'
  9680. dynamic_linker='OS/2 ld.exe'
  9681. shlibpath_var=BEGINLIBPATH
  9682. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9683. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9684. postinstall_cmds='base_file=`basename \$file`~
  9685. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9686. dldir=$destdir/`dirname \$dlpath`~
  9687. test -d \$dldir || mkdir -p \$dldir~
  9688. $install_prog $dir/$dlname \$dldir/$dlname~
  9689. chmod a+x \$dldir/$dlname~
  9690. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9691. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9692. fi'
  9693. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9694. dlpath=$dir/\$dldll~
  9695. $RM \$dlpath'
  9696. ;;
  9697. osf3* | osf4* | osf5*)
  9698. version_type=osf
  9699. need_lib_prefix=no
  9700. need_version=no
  9701. soname_spec='$libname$release$shared_ext$major'
  9702. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9703. shlibpath_var=LD_LIBRARY_PATH
  9704. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9705. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9706. ;;
  9707. rdos*)
  9708. dynamic_linker=no
  9709. ;;
  9710. solaris*)
  9711. version_type=linux # correct to gnu/linux during the next big refactor
  9712. need_lib_prefix=no
  9713. need_version=no
  9714. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9715. soname_spec='$libname$release$shared_ext$major'
  9716. shlibpath_var=LD_LIBRARY_PATH
  9717. shlibpath_overrides_runpath=yes
  9718. hardcode_into_libs=yes
  9719. # ldd complains unless libraries are executable
  9720. postinstall_cmds='chmod +x $lib'
  9721. ;;
  9722. sunos4*)
  9723. version_type=sunos
  9724. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9725. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9726. shlibpath_var=LD_LIBRARY_PATH
  9727. shlibpath_overrides_runpath=yes
  9728. if test yes = "$with_gnu_ld"; then
  9729. need_lib_prefix=no
  9730. fi
  9731. need_version=yes
  9732. ;;
  9733. sysv4 | sysv4.3*)
  9734. version_type=linux # correct to gnu/linux during the next big refactor
  9735. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9736. soname_spec='$libname$release$shared_ext$major'
  9737. shlibpath_var=LD_LIBRARY_PATH
  9738. case $host_vendor in
  9739. sni)
  9740. shlibpath_overrides_runpath=no
  9741. need_lib_prefix=no
  9742. runpath_var=LD_RUN_PATH
  9743. ;;
  9744. siemens)
  9745. need_lib_prefix=no
  9746. ;;
  9747. motorola)
  9748. need_lib_prefix=no
  9749. need_version=no
  9750. shlibpath_overrides_runpath=no
  9751. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9752. ;;
  9753. esac
  9754. ;;
  9755. sysv4*MP*)
  9756. if test -d /usr/nec; then
  9757. version_type=linux # correct to gnu/linux during the next big refactor
  9758. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9759. soname_spec='$libname$shared_ext.$major'
  9760. shlibpath_var=LD_LIBRARY_PATH
  9761. fi
  9762. ;;
  9763. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9764. version_type=sco
  9765. need_lib_prefix=no
  9766. need_version=no
  9767. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9768. soname_spec='$libname$release$shared_ext$major'
  9769. shlibpath_var=LD_LIBRARY_PATH
  9770. shlibpath_overrides_runpath=yes
  9771. hardcode_into_libs=yes
  9772. if test yes = "$with_gnu_ld"; then
  9773. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9774. else
  9775. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9776. case $host_os in
  9777. sco3.2v5*)
  9778. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9779. ;;
  9780. esac
  9781. fi
  9782. sys_lib_dlsearch_path_spec='/usr/lib'
  9783. ;;
  9784. tpf*)
  9785. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9786. version_type=linux # correct to gnu/linux during the next big refactor
  9787. need_lib_prefix=no
  9788. need_version=no
  9789. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9790. shlibpath_var=LD_LIBRARY_PATH
  9791. shlibpath_overrides_runpath=no
  9792. hardcode_into_libs=yes
  9793. ;;
  9794. uts4*)
  9795. version_type=linux # correct to gnu/linux during the next big refactor
  9796. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9797. soname_spec='$libname$release$shared_ext$major'
  9798. shlibpath_var=LD_LIBRARY_PATH
  9799. ;;
  9800. *)
  9801. dynamic_linker=no
  9802. ;;
  9803. esac
  9804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9805. $as_echo "$dynamic_linker" >&6; }
  9806. test no = "$dynamic_linker" && can_build_shared=no
  9807. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9808. if test yes = "$GCC"; then
  9809. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9810. fi
  9811. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9812. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9813. fi
  9814. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9815. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9816. fi
  9817. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9818. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9819. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9820. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9821. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9822. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9824. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9825. hardcode_action=
  9826. if test -n "$hardcode_libdir_flag_spec" ||
  9827. test -n "$runpath_var" ||
  9828. test yes = "$hardcode_automatic"; then
  9829. # We can hardcode non-existent directories.
  9830. if test no != "$hardcode_direct" &&
  9831. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9832. # have to relink, otherwise we might link with an installed library
  9833. # when we should be linking with a yet-to-be-installed one
  9834. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9835. test no != "$hardcode_minus_L"; then
  9836. # Linking always hardcodes the temporary library directory.
  9837. hardcode_action=relink
  9838. else
  9839. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9840. hardcode_action=immediate
  9841. fi
  9842. else
  9843. # We cannot hardcode anything, or else we can only hardcode existing
  9844. # directories.
  9845. hardcode_action=unsupported
  9846. fi
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9848. $as_echo "$hardcode_action" >&6; }
  9849. if test relink = "$hardcode_action" ||
  9850. test yes = "$inherit_rpath"; then
  9851. # Fast installation is not supported
  9852. enable_fast_install=no
  9853. elif test yes = "$shlibpath_overrides_runpath" ||
  9854. test no = "$enable_shared"; then
  9855. # Fast installation is not necessary
  9856. enable_fast_install=needless
  9857. fi
  9858. if test yes != "$enable_dlopen"; then
  9859. enable_dlopen=unknown
  9860. enable_dlopen_self=unknown
  9861. enable_dlopen_self_static=unknown
  9862. else
  9863. lt_cv_dlopen=no
  9864. lt_cv_dlopen_libs=
  9865. case $host_os in
  9866. beos*)
  9867. lt_cv_dlopen=load_add_on
  9868. lt_cv_dlopen_libs=
  9869. lt_cv_dlopen_self=yes
  9870. ;;
  9871. mingw* | pw32* | cegcc*)
  9872. lt_cv_dlopen=LoadLibrary
  9873. lt_cv_dlopen_libs=
  9874. ;;
  9875. cygwin*)
  9876. lt_cv_dlopen=dlopen
  9877. lt_cv_dlopen_libs=
  9878. ;;
  9879. darwin*)
  9880. # if libdl is installed we need to link against it
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9882. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9883. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9884. $as_echo_n "(cached) " >&6
  9885. else
  9886. ac_check_lib_save_LIBS=$LIBS
  9887. LIBS="-ldl $LIBS"
  9888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9889. /* end confdefs.h. */
  9890. /* Override any GCC internal prototype to avoid an error.
  9891. Use char because int might match the return type of a GCC
  9892. builtin and then its argument prototype would still apply. */
  9893. #ifdef __cplusplus
  9894. extern "C"
  9895. #endif
  9896. char dlopen ();
  9897. int
  9898. main ()
  9899. {
  9900. return dlopen ();
  9901. ;
  9902. return 0;
  9903. }
  9904. _ACEOF
  9905. if ac_fn_c_try_link "$LINENO"; then :
  9906. ac_cv_lib_dl_dlopen=yes
  9907. else
  9908. ac_cv_lib_dl_dlopen=no
  9909. fi
  9910. rm -f core conftest.err conftest.$ac_objext \
  9911. conftest$ac_exeext conftest.$ac_ext
  9912. LIBS=$ac_check_lib_save_LIBS
  9913. fi
  9914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9915. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9916. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9917. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9918. else
  9919. lt_cv_dlopen=dyld
  9920. lt_cv_dlopen_libs=
  9921. lt_cv_dlopen_self=yes
  9922. fi
  9923. ;;
  9924. tpf*)
  9925. # Don't try to run any link tests for TPF. We know it's impossible
  9926. # because TPF is a cross-compiler, and we know how we open DSOs.
  9927. lt_cv_dlopen=dlopen
  9928. lt_cv_dlopen_libs=
  9929. lt_cv_dlopen_self=no
  9930. ;;
  9931. *)
  9932. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9933. if test "x$ac_cv_func_shl_load" = xyes; then :
  9934. lt_cv_dlopen=shl_load
  9935. else
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9937. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9938. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9939. $as_echo_n "(cached) " >&6
  9940. else
  9941. ac_check_lib_save_LIBS=$LIBS
  9942. LIBS="-ldld $LIBS"
  9943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9944. /* end confdefs.h. */
  9945. /* Override any GCC internal prototype to avoid an error.
  9946. Use char because int might match the return type of a GCC
  9947. builtin and then its argument prototype would still apply. */
  9948. #ifdef __cplusplus
  9949. extern "C"
  9950. #endif
  9951. char shl_load ();
  9952. int
  9953. main ()
  9954. {
  9955. return shl_load ();
  9956. ;
  9957. return 0;
  9958. }
  9959. _ACEOF
  9960. if ac_fn_c_try_link "$LINENO"; then :
  9961. ac_cv_lib_dld_shl_load=yes
  9962. else
  9963. ac_cv_lib_dld_shl_load=no
  9964. fi
  9965. rm -f core conftest.err conftest.$ac_objext \
  9966. conftest$ac_exeext conftest.$ac_ext
  9967. LIBS=$ac_check_lib_save_LIBS
  9968. fi
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9970. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9971. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9972. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9973. else
  9974. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9975. if test "x$ac_cv_func_dlopen" = xyes; then :
  9976. lt_cv_dlopen=dlopen
  9977. else
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9979. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9980. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9981. $as_echo_n "(cached) " >&6
  9982. else
  9983. ac_check_lib_save_LIBS=$LIBS
  9984. LIBS="-ldl $LIBS"
  9985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9986. /* end confdefs.h. */
  9987. /* Override any GCC internal prototype to avoid an error.
  9988. Use char because int might match the return type of a GCC
  9989. builtin and then its argument prototype would still apply. */
  9990. #ifdef __cplusplus
  9991. extern "C"
  9992. #endif
  9993. char dlopen ();
  9994. int
  9995. main ()
  9996. {
  9997. return dlopen ();
  9998. ;
  9999. return 0;
  10000. }
  10001. _ACEOF
  10002. if ac_fn_c_try_link "$LINENO"; then :
  10003. ac_cv_lib_dl_dlopen=yes
  10004. else
  10005. ac_cv_lib_dl_dlopen=no
  10006. fi
  10007. rm -f core conftest.err conftest.$ac_objext \
  10008. conftest$ac_exeext conftest.$ac_ext
  10009. LIBS=$ac_check_lib_save_LIBS
  10010. fi
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10012. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10013. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10014. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10015. else
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10017. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10018. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10019. $as_echo_n "(cached) " >&6
  10020. else
  10021. ac_check_lib_save_LIBS=$LIBS
  10022. LIBS="-lsvld $LIBS"
  10023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10024. /* end confdefs.h. */
  10025. /* Override any GCC internal prototype to avoid an error.
  10026. Use char because int might match the return type of a GCC
  10027. builtin and then its argument prototype would still apply. */
  10028. #ifdef __cplusplus
  10029. extern "C"
  10030. #endif
  10031. char dlopen ();
  10032. int
  10033. main ()
  10034. {
  10035. return dlopen ();
  10036. ;
  10037. return 0;
  10038. }
  10039. _ACEOF
  10040. if ac_fn_c_try_link "$LINENO"; then :
  10041. ac_cv_lib_svld_dlopen=yes
  10042. else
  10043. ac_cv_lib_svld_dlopen=no
  10044. fi
  10045. rm -f core conftest.err conftest.$ac_objext \
  10046. conftest$ac_exeext conftest.$ac_ext
  10047. LIBS=$ac_check_lib_save_LIBS
  10048. fi
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10050. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10051. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10052. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10053. else
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10055. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10056. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10057. $as_echo_n "(cached) " >&6
  10058. else
  10059. ac_check_lib_save_LIBS=$LIBS
  10060. LIBS="-ldld $LIBS"
  10061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10062. /* end confdefs.h. */
  10063. /* Override any GCC internal prototype to avoid an error.
  10064. Use char because int might match the return type of a GCC
  10065. builtin and then its argument prototype would still apply. */
  10066. #ifdef __cplusplus
  10067. extern "C"
  10068. #endif
  10069. char dld_link ();
  10070. int
  10071. main ()
  10072. {
  10073. return dld_link ();
  10074. ;
  10075. return 0;
  10076. }
  10077. _ACEOF
  10078. if ac_fn_c_try_link "$LINENO"; then :
  10079. ac_cv_lib_dld_dld_link=yes
  10080. else
  10081. ac_cv_lib_dld_dld_link=no
  10082. fi
  10083. rm -f core conftest.err conftest.$ac_objext \
  10084. conftest$ac_exeext conftest.$ac_ext
  10085. LIBS=$ac_check_lib_save_LIBS
  10086. fi
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10088. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10089. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10090. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10091. fi
  10092. fi
  10093. fi
  10094. fi
  10095. fi
  10096. fi
  10097. ;;
  10098. esac
  10099. if test no = "$lt_cv_dlopen"; then
  10100. enable_dlopen=no
  10101. else
  10102. enable_dlopen=yes
  10103. fi
  10104. case $lt_cv_dlopen in
  10105. dlopen)
  10106. save_CPPFLAGS=$CPPFLAGS
  10107. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10108. save_LDFLAGS=$LDFLAGS
  10109. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10110. save_LIBS=$LIBS
  10111. LIBS="$lt_cv_dlopen_libs $LIBS"
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10113. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10114. if ${lt_cv_dlopen_self+:} false; then :
  10115. $as_echo_n "(cached) " >&6
  10116. else
  10117. if test yes = "$cross_compiling"; then :
  10118. lt_cv_dlopen_self=cross
  10119. else
  10120. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10121. lt_status=$lt_dlunknown
  10122. cat > conftest.$ac_ext <<_LT_EOF
  10123. #line $LINENO "configure"
  10124. #include "confdefs.h"
  10125. #if HAVE_DLFCN_H
  10126. #include <dlfcn.h>
  10127. #endif
  10128. #include <stdio.h>
  10129. #ifdef RTLD_GLOBAL
  10130. # define LT_DLGLOBAL RTLD_GLOBAL
  10131. #else
  10132. # ifdef DL_GLOBAL
  10133. # define LT_DLGLOBAL DL_GLOBAL
  10134. # else
  10135. # define LT_DLGLOBAL 0
  10136. # endif
  10137. #endif
  10138. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10139. find out it does not work in some platform. */
  10140. #ifndef LT_DLLAZY_OR_NOW
  10141. # ifdef RTLD_LAZY
  10142. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10143. # else
  10144. # ifdef DL_LAZY
  10145. # define LT_DLLAZY_OR_NOW DL_LAZY
  10146. # else
  10147. # ifdef RTLD_NOW
  10148. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10149. # else
  10150. # ifdef DL_NOW
  10151. # define LT_DLLAZY_OR_NOW DL_NOW
  10152. # else
  10153. # define LT_DLLAZY_OR_NOW 0
  10154. # endif
  10155. # endif
  10156. # endif
  10157. # endif
  10158. #endif
  10159. /* When -fvisibility=hidden is used, assume the code has been annotated
  10160. correspondingly for the symbols needed. */
  10161. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10162. int fnord () __attribute__((visibility("default")));
  10163. #endif
  10164. int fnord () { return 42; }
  10165. int main ()
  10166. {
  10167. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10168. int status = $lt_dlunknown;
  10169. if (self)
  10170. {
  10171. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10172. else
  10173. {
  10174. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10175. else puts (dlerror ());
  10176. }
  10177. /* dlclose (self); */
  10178. }
  10179. else
  10180. puts (dlerror ());
  10181. return status;
  10182. }
  10183. _LT_EOF
  10184. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10185. (eval $ac_link) 2>&5
  10186. ac_status=$?
  10187. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10188. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10189. (./conftest; exit; ) >&5 2>/dev/null
  10190. lt_status=$?
  10191. case x$lt_status in
  10192. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10193. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10194. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10195. esac
  10196. else :
  10197. # compilation failed
  10198. lt_cv_dlopen_self=no
  10199. fi
  10200. fi
  10201. rm -fr conftest*
  10202. fi
  10203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10204. $as_echo "$lt_cv_dlopen_self" >&6; }
  10205. if test yes = "$lt_cv_dlopen_self"; then
  10206. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10208. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10209. if ${lt_cv_dlopen_self_static+:} false; then :
  10210. $as_echo_n "(cached) " >&6
  10211. else
  10212. if test yes = "$cross_compiling"; then :
  10213. lt_cv_dlopen_self_static=cross
  10214. else
  10215. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10216. lt_status=$lt_dlunknown
  10217. cat > conftest.$ac_ext <<_LT_EOF
  10218. #line $LINENO "configure"
  10219. #include "confdefs.h"
  10220. #if HAVE_DLFCN_H
  10221. #include <dlfcn.h>
  10222. #endif
  10223. #include <stdio.h>
  10224. #ifdef RTLD_GLOBAL
  10225. # define LT_DLGLOBAL RTLD_GLOBAL
  10226. #else
  10227. # ifdef DL_GLOBAL
  10228. # define LT_DLGLOBAL DL_GLOBAL
  10229. # else
  10230. # define LT_DLGLOBAL 0
  10231. # endif
  10232. #endif
  10233. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10234. find out it does not work in some platform. */
  10235. #ifndef LT_DLLAZY_OR_NOW
  10236. # ifdef RTLD_LAZY
  10237. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10238. # else
  10239. # ifdef DL_LAZY
  10240. # define LT_DLLAZY_OR_NOW DL_LAZY
  10241. # else
  10242. # ifdef RTLD_NOW
  10243. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10244. # else
  10245. # ifdef DL_NOW
  10246. # define LT_DLLAZY_OR_NOW DL_NOW
  10247. # else
  10248. # define LT_DLLAZY_OR_NOW 0
  10249. # endif
  10250. # endif
  10251. # endif
  10252. # endif
  10253. #endif
  10254. /* When -fvisibility=hidden is used, assume the code has been annotated
  10255. correspondingly for the symbols needed. */
  10256. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10257. int fnord () __attribute__((visibility("default")));
  10258. #endif
  10259. int fnord () { return 42; }
  10260. int main ()
  10261. {
  10262. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10263. int status = $lt_dlunknown;
  10264. if (self)
  10265. {
  10266. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10267. else
  10268. {
  10269. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10270. else puts (dlerror ());
  10271. }
  10272. /* dlclose (self); */
  10273. }
  10274. else
  10275. puts (dlerror ());
  10276. return status;
  10277. }
  10278. _LT_EOF
  10279. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10280. (eval $ac_link) 2>&5
  10281. ac_status=$?
  10282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10283. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10284. (./conftest; exit; ) >&5 2>/dev/null
  10285. lt_status=$?
  10286. case x$lt_status in
  10287. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10288. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10289. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10290. esac
  10291. else :
  10292. # compilation failed
  10293. lt_cv_dlopen_self_static=no
  10294. fi
  10295. fi
  10296. rm -fr conftest*
  10297. fi
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10299. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10300. fi
  10301. CPPFLAGS=$save_CPPFLAGS
  10302. LDFLAGS=$save_LDFLAGS
  10303. LIBS=$save_LIBS
  10304. ;;
  10305. esac
  10306. case $lt_cv_dlopen_self in
  10307. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10308. *) enable_dlopen_self=unknown ;;
  10309. esac
  10310. case $lt_cv_dlopen_self_static in
  10311. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10312. *) enable_dlopen_self_static=unknown ;;
  10313. esac
  10314. fi
  10315. striplib=
  10316. old_striplib=
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10318. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10319. if test -z "$STRIP"; then
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10321. $as_echo "no" >&6; }
  10322. else
  10323. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10324. old_striplib="$STRIP --strip-debug"
  10325. striplib="$STRIP --strip-unneeded"
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10327. $as_echo "yes" >&6; }
  10328. else
  10329. case $host_os in
  10330. darwin*)
  10331. # FIXME - insert some real tests, host_os isn't really good enough
  10332. striplib="$STRIP -x"
  10333. old_striplib="$STRIP -S"
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10335. $as_echo "yes" >&6; }
  10336. ;;
  10337. freebsd*)
  10338. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10339. old_striplib="$STRIP --strip-debug"
  10340. striplib="$STRIP --strip-unneeded"
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10342. $as_echo "yes" >&6; }
  10343. else
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10345. $as_echo "no" >&6; }
  10346. fi
  10347. ;;
  10348. *)
  10349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10350. $as_echo "no" >&6; }
  10351. ;;
  10352. esac
  10353. fi
  10354. fi
  10355. # Report what library types will actually be built
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10357. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10359. $as_echo "$can_build_shared" >&6; }
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10361. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10362. test no = "$can_build_shared" && enable_shared=no
  10363. # On AIX, shared libraries and static libraries use the same namespace, and
  10364. # are all built from PIC.
  10365. case $host_os in
  10366. aix3*)
  10367. test yes = "$enable_shared" && enable_static=no
  10368. if test -n "$RANLIB"; then
  10369. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10370. postinstall_cmds='$RANLIB $lib'
  10371. fi
  10372. ;;
  10373. aix[4-9]*)
  10374. if test ia64 != "$host_cpu"; then
  10375. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10376. yes,aix,yes) ;; # shared object as lib.so file only
  10377. yes,svr4,*) ;; # shared object as lib.so archive member only
  10378. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10379. esac
  10380. fi
  10381. ;;
  10382. esac
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10384. $as_echo "$enable_shared" >&6; }
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10386. $as_echo_n "checking whether to build static libraries... " >&6; }
  10387. # Make sure either enable_shared or enable_static is yes.
  10388. test yes = "$enable_shared" || enable_static=yes
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10390. $as_echo "$enable_static" >&6; }
  10391. fi
  10392. ac_ext=c
  10393. ac_cpp='$CPP $CPPFLAGS'
  10394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10397. CC=$lt_save_CC
  10398. ac_config_commands="$ac_config_commands libtool"
  10399. # Only expand once:
  10400. if test -n "$ac_tool_prefix"; then
  10401. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10402. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10404. $as_echo_n "checking for $ac_word... " >&6; }
  10405. if ${ac_cv_prog_RC+:} false; then :
  10406. $as_echo_n "(cached) " >&6
  10407. else
  10408. if test -n "$RC"; then
  10409. ac_cv_prog_RC="$RC" # Let the user override the test.
  10410. else
  10411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10412. for as_dir in $PATH
  10413. do
  10414. IFS=$as_save_IFS
  10415. test -z "$as_dir" && as_dir=.
  10416. for ac_exec_ext in '' $ac_executable_extensions; do
  10417. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10418. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10420. break 2
  10421. fi
  10422. done
  10423. done
  10424. IFS=$as_save_IFS
  10425. fi
  10426. fi
  10427. RC=$ac_cv_prog_RC
  10428. if test -n "$RC"; then
  10429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10430. $as_echo "$RC" >&6; }
  10431. else
  10432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10433. $as_echo "no" >&6; }
  10434. fi
  10435. fi
  10436. if test -z "$ac_cv_prog_RC"; then
  10437. ac_ct_RC=$RC
  10438. # Extract the first word of "windres", so it can be a program name with args.
  10439. set dummy windres; ac_word=$2
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10441. $as_echo_n "checking for $ac_word... " >&6; }
  10442. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10443. $as_echo_n "(cached) " >&6
  10444. else
  10445. if test -n "$ac_ct_RC"; then
  10446. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10447. else
  10448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10449. for as_dir in $PATH
  10450. do
  10451. IFS=$as_save_IFS
  10452. test -z "$as_dir" && as_dir=.
  10453. for ac_exec_ext in '' $ac_executable_extensions; do
  10454. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10455. ac_cv_prog_ac_ct_RC="windres"
  10456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10457. break 2
  10458. fi
  10459. done
  10460. done
  10461. IFS=$as_save_IFS
  10462. fi
  10463. fi
  10464. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10465. if test -n "$ac_ct_RC"; then
  10466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10467. $as_echo "$ac_ct_RC" >&6; }
  10468. else
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10470. $as_echo "no" >&6; }
  10471. fi
  10472. if test "x$ac_ct_RC" = x; then
  10473. RC=""
  10474. else
  10475. case $cross_compiling:$ac_tool_warned in
  10476. yes:)
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10478. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10479. ac_tool_warned=yes ;;
  10480. esac
  10481. RC=$ac_ct_RC
  10482. fi
  10483. else
  10484. RC="$ac_cv_prog_RC"
  10485. fi
  10486. # Source file extension for RC test sources.
  10487. ac_ext=rc
  10488. # Object file extension for compiled RC test sources.
  10489. objext=o
  10490. objext_RC=$objext
  10491. # Code to be used in simple compile tests
  10492. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10493. # Code to be used in simple link tests
  10494. lt_simple_link_test_code=$lt_simple_compile_test_code
  10495. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10496. # If no C compiler was specified, use CC.
  10497. LTCC=${LTCC-"$CC"}
  10498. # If no C compiler flags were specified, use CFLAGS.
  10499. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10500. # Allow CC to be a program name with arguments.
  10501. compiler=$CC
  10502. # save warnings/boilerplate of simple test code
  10503. ac_outfile=conftest.$ac_objext
  10504. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10505. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10506. _lt_compiler_boilerplate=`cat conftest.err`
  10507. $RM conftest*
  10508. ac_outfile=conftest.$ac_objext
  10509. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10510. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10511. _lt_linker_boilerplate=`cat conftest.err`
  10512. $RM -r conftest*
  10513. # Allow CC to be a program name with arguments.
  10514. lt_save_CC=$CC
  10515. lt_save_CFLAGS=$CFLAGS
  10516. lt_save_GCC=$GCC
  10517. GCC=
  10518. CC=${RC-"windres"}
  10519. CFLAGS=
  10520. compiler=$CC
  10521. compiler_RC=$CC
  10522. func_cc_basename $compiler
  10523. cc_basename=$func_cc_basename_result
  10524. lt_cv_prog_compiler_c_o_RC=yes
  10525. if test -n "$compiler"; then
  10526. :
  10527. fi
  10528. GCC=$lt_save_GCC
  10529. ac_ext=c
  10530. ac_cpp='$CPP $CPPFLAGS'
  10531. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10532. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10533. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10534. CC=$lt_save_CC
  10535. CFLAGS=$lt_save_CFLAGS
  10536. # For historical reasons, the library name redundantly includes the major
  10537. # version twice: libSDL2-2.0.so.0.
  10538. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  10539. LT_RELEASE=2.0
  10540. # Increment this if there is an incompatible change - but if that happens,
  10541. # we should rename the library from SDL2 to SDL3, at which point this would
  10542. # reset to 0 anyway.
  10543. LT_MAJOR=0
  10544. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10545. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  10546. LT_REVISION=$SDL_INTERFACE_AGE
  10547. ac_ext=c
  10548. ac_cpp='$CPP $CPPFLAGS'
  10549. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10550. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10551. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10552. if test -n "$ac_tool_prefix"; then
  10553. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10554. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10556. $as_echo_n "checking for $ac_word... " >&6; }
  10557. if ${ac_cv_prog_CC+:} false; then :
  10558. $as_echo_n "(cached) " >&6
  10559. else
  10560. if test -n "$CC"; then
  10561. ac_cv_prog_CC="$CC" # Let the user override the test.
  10562. else
  10563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10564. for as_dir in $PATH
  10565. do
  10566. IFS=$as_save_IFS
  10567. test -z "$as_dir" && as_dir=.
  10568. for ac_exec_ext in '' $ac_executable_extensions; do
  10569. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10570. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10572. break 2
  10573. fi
  10574. done
  10575. done
  10576. IFS=$as_save_IFS
  10577. fi
  10578. fi
  10579. CC=$ac_cv_prog_CC
  10580. if test -n "$CC"; then
  10581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10582. $as_echo "$CC" >&6; }
  10583. else
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10585. $as_echo "no" >&6; }
  10586. fi
  10587. fi
  10588. if test -z "$ac_cv_prog_CC"; then
  10589. ac_ct_CC=$CC
  10590. # Extract the first word of "gcc", so it can be a program name with args.
  10591. set dummy gcc; ac_word=$2
  10592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10593. $as_echo_n "checking for $ac_word... " >&6; }
  10594. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10595. $as_echo_n "(cached) " >&6
  10596. else
  10597. if test -n "$ac_ct_CC"; then
  10598. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10599. else
  10600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10601. for as_dir in $PATH
  10602. do
  10603. IFS=$as_save_IFS
  10604. test -z "$as_dir" && as_dir=.
  10605. for ac_exec_ext in '' $ac_executable_extensions; do
  10606. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10607. ac_cv_prog_ac_ct_CC="gcc"
  10608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10609. break 2
  10610. fi
  10611. done
  10612. done
  10613. IFS=$as_save_IFS
  10614. fi
  10615. fi
  10616. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10617. if test -n "$ac_ct_CC"; then
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10619. $as_echo "$ac_ct_CC" >&6; }
  10620. else
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10622. $as_echo "no" >&6; }
  10623. fi
  10624. if test "x$ac_ct_CC" = x; then
  10625. CC=""
  10626. else
  10627. case $cross_compiling:$ac_tool_warned in
  10628. yes:)
  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10630. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10631. ac_tool_warned=yes ;;
  10632. esac
  10633. CC=$ac_ct_CC
  10634. fi
  10635. else
  10636. CC="$ac_cv_prog_CC"
  10637. fi
  10638. if test -z "$CC"; then
  10639. if test -n "$ac_tool_prefix"; then
  10640. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10641. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10643. $as_echo_n "checking for $ac_word... " >&6; }
  10644. if ${ac_cv_prog_CC+:} false; then :
  10645. $as_echo_n "(cached) " >&6
  10646. else
  10647. if test -n "$CC"; then
  10648. ac_cv_prog_CC="$CC" # Let the user override the test.
  10649. else
  10650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10651. for as_dir in $PATH
  10652. do
  10653. IFS=$as_save_IFS
  10654. test -z "$as_dir" && as_dir=.
  10655. for ac_exec_ext in '' $ac_executable_extensions; do
  10656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10657. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10659. break 2
  10660. fi
  10661. done
  10662. done
  10663. IFS=$as_save_IFS
  10664. fi
  10665. fi
  10666. CC=$ac_cv_prog_CC
  10667. if test -n "$CC"; then
  10668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10669. $as_echo "$CC" >&6; }
  10670. else
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10672. $as_echo "no" >&6; }
  10673. fi
  10674. fi
  10675. fi
  10676. if test -z "$CC"; then
  10677. # Extract the first word of "cc", so it can be a program name with args.
  10678. set dummy cc; ac_word=$2
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10680. $as_echo_n "checking for $ac_word... " >&6; }
  10681. if ${ac_cv_prog_CC+:} false; then :
  10682. $as_echo_n "(cached) " >&6
  10683. else
  10684. if test -n "$CC"; then
  10685. ac_cv_prog_CC="$CC" # Let the user override the test.
  10686. else
  10687. ac_prog_rejected=no
  10688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10689. for as_dir in $PATH
  10690. do
  10691. IFS=$as_save_IFS
  10692. test -z "$as_dir" && as_dir=.
  10693. for ac_exec_ext in '' $ac_executable_extensions; do
  10694. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10695. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10696. ac_prog_rejected=yes
  10697. continue
  10698. fi
  10699. ac_cv_prog_CC="cc"
  10700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10701. break 2
  10702. fi
  10703. done
  10704. done
  10705. IFS=$as_save_IFS
  10706. if test $ac_prog_rejected = yes; then
  10707. # We found a bogon in the path, so make sure we never use it.
  10708. set dummy $ac_cv_prog_CC
  10709. shift
  10710. if test $# != 0; then
  10711. # We chose a different compiler from the bogus one.
  10712. # However, it has the same basename, so the bogon will be chosen
  10713. # first if we set CC to just the basename; use the full file name.
  10714. shift
  10715. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10716. fi
  10717. fi
  10718. fi
  10719. fi
  10720. CC=$ac_cv_prog_CC
  10721. if test -n "$CC"; then
  10722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10723. $as_echo "$CC" >&6; }
  10724. else
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10726. $as_echo "no" >&6; }
  10727. fi
  10728. fi
  10729. if test -z "$CC"; then
  10730. if test -n "$ac_tool_prefix"; then
  10731. for ac_prog in cl.exe
  10732. do
  10733. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10734. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10736. $as_echo_n "checking for $ac_word... " >&6; }
  10737. if ${ac_cv_prog_CC+:} false; then :
  10738. $as_echo_n "(cached) " >&6
  10739. else
  10740. if test -n "$CC"; then
  10741. ac_cv_prog_CC="$CC" # Let the user override the test.
  10742. else
  10743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10744. for as_dir in $PATH
  10745. do
  10746. IFS=$as_save_IFS
  10747. test -z "$as_dir" && as_dir=.
  10748. for ac_exec_ext in '' $ac_executable_extensions; do
  10749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10750. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10752. break 2
  10753. fi
  10754. done
  10755. done
  10756. IFS=$as_save_IFS
  10757. fi
  10758. fi
  10759. CC=$ac_cv_prog_CC
  10760. if test -n "$CC"; then
  10761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10762. $as_echo "$CC" >&6; }
  10763. else
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10765. $as_echo "no" >&6; }
  10766. fi
  10767. test -n "$CC" && break
  10768. done
  10769. fi
  10770. if test -z "$CC"; then
  10771. ac_ct_CC=$CC
  10772. for ac_prog in cl.exe
  10773. do
  10774. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10775. set dummy $ac_prog; ac_word=$2
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10777. $as_echo_n "checking for $ac_word... " >&6; }
  10778. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10779. $as_echo_n "(cached) " >&6
  10780. else
  10781. if test -n "$ac_ct_CC"; then
  10782. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10783. else
  10784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10785. for as_dir in $PATH
  10786. do
  10787. IFS=$as_save_IFS
  10788. test -z "$as_dir" && as_dir=.
  10789. for ac_exec_ext in '' $ac_executable_extensions; do
  10790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10791. ac_cv_prog_ac_ct_CC="$ac_prog"
  10792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10793. break 2
  10794. fi
  10795. done
  10796. done
  10797. IFS=$as_save_IFS
  10798. fi
  10799. fi
  10800. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10801. if test -n "$ac_ct_CC"; then
  10802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10803. $as_echo "$ac_ct_CC" >&6; }
  10804. else
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10806. $as_echo "no" >&6; }
  10807. fi
  10808. test -n "$ac_ct_CC" && break
  10809. done
  10810. if test "x$ac_ct_CC" = x; then
  10811. CC=""
  10812. else
  10813. case $cross_compiling:$ac_tool_warned in
  10814. yes:)
  10815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10816. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10817. ac_tool_warned=yes ;;
  10818. esac
  10819. CC=$ac_ct_CC
  10820. fi
  10821. fi
  10822. fi
  10823. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10824. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10825. as_fn_error $? "no acceptable C compiler found in \$PATH
  10826. See \`config.log' for more details" "$LINENO" 5; }
  10827. # Provide some information about the compiler.
  10828. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10829. set X $ac_compile
  10830. ac_compiler=$2
  10831. for ac_option in --version -v -V -qversion; do
  10832. { { ac_try="$ac_compiler $ac_option >&5"
  10833. case "(($ac_try" in
  10834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10835. *) ac_try_echo=$ac_try;;
  10836. esac
  10837. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10838. $as_echo "$ac_try_echo"; } >&5
  10839. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10840. ac_status=$?
  10841. if test -s conftest.err; then
  10842. sed '10a\
  10843. ... rest of stderr output deleted ...
  10844. 10q' conftest.err >conftest.er1
  10845. cat conftest.er1 >&5
  10846. fi
  10847. rm -f conftest.er1 conftest.err
  10848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10849. test $ac_status = 0; }
  10850. done
  10851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10852. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10853. if ${ac_cv_c_compiler_gnu+:} false; then :
  10854. $as_echo_n "(cached) " >&6
  10855. else
  10856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10857. /* end confdefs.h. */
  10858. int
  10859. main ()
  10860. {
  10861. #ifndef __GNUC__
  10862. choke me
  10863. #endif
  10864. ;
  10865. return 0;
  10866. }
  10867. _ACEOF
  10868. if ac_fn_c_try_compile "$LINENO"; then :
  10869. ac_compiler_gnu=yes
  10870. else
  10871. ac_compiler_gnu=no
  10872. fi
  10873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10874. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10875. fi
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10877. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10878. if test $ac_compiler_gnu = yes; then
  10879. GCC=yes
  10880. else
  10881. GCC=
  10882. fi
  10883. ac_test_CFLAGS=${CFLAGS+set}
  10884. ac_save_CFLAGS=$CFLAGS
  10885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10886. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10887. if ${ac_cv_prog_cc_g+:} false; then :
  10888. $as_echo_n "(cached) " >&6
  10889. else
  10890. ac_save_c_werror_flag=$ac_c_werror_flag
  10891. ac_c_werror_flag=yes
  10892. ac_cv_prog_cc_g=no
  10893. CFLAGS="-g"
  10894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10895. /* end confdefs.h. */
  10896. int
  10897. main ()
  10898. {
  10899. ;
  10900. return 0;
  10901. }
  10902. _ACEOF
  10903. if ac_fn_c_try_compile "$LINENO"; then :
  10904. ac_cv_prog_cc_g=yes
  10905. else
  10906. CFLAGS=""
  10907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10908. /* end confdefs.h. */
  10909. int
  10910. main ()
  10911. {
  10912. ;
  10913. return 0;
  10914. }
  10915. _ACEOF
  10916. if ac_fn_c_try_compile "$LINENO"; then :
  10917. else
  10918. ac_c_werror_flag=$ac_save_c_werror_flag
  10919. CFLAGS="-g"
  10920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10921. /* end confdefs.h. */
  10922. int
  10923. main ()
  10924. {
  10925. ;
  10926. return 0;
  10927. }
  10928. _ACEOF
  10929. if ac_fn_c_try_compile "$LINENO"; then :
  10930. ac_cv_prog_cc_g=yes
  10931. fi
  10932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10933. fi
  10934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10935. fi
  10936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10937. ac_c_werror_flag=$ac_save_c_werror_flag
  10938. fi
  10939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10940. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10941. if test "$ac_test_CFLAGS" = set; then
  10942. CFLAGS=$ac_save_CFLAGS
  10943. elif test $ac_cv_prog_cc_g = yes; then
  10944. if test "$GCC" = yes; then
  10945. CFLAGS="-g -O2"
  10946. else
  10947. CFLAGS="-g"
  10948. fi
  10949. else
  10950. if test "$GCC" = yes; then
  10951. CFLAGS="-O2"
  10952. else
  10953. CFLAGS=
  10954. fi
  10955. fi
  10956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10957. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10958. if ${ac_cv_prog_cc_c89+:} false; then :
  10959. $as_echo_n "(cached) " >&6
  10960. else
  10961. ac_cv_prog_cc_c89=no
  10962. ac_save_CC=$CC
  10963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10964. /* end confdefs.h. */
  10965. #include <stdarg.h>
  10966. #include <stdio.h>
  10967. struct stat;
  10968. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10969. struct buf { int x; };
  10970. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10971. static char *e (p, i)
  10972. char **p;
  10973. int i;
  10974. {
  10975. return p[i];
  10976. }
  10977. static char *f (char * (*g) (char **, int), char **p, ...)
  10978. {
  10979. char *s;
  10980. va_list v;
  10981. va_start (v,p);
  10982. s = g (p, va_arg (v,int));
  10983. va_end (v);
  10984. return s;
  10985. }
  10986. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10987. function prototypes and stuff, but not '\xHH' hex character constants.
  10988. These don't provoke an error unfortunately, instead are silently treated
  10989. as 'x'. The following induces an error, until -std is added to get
  10990. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10991. array size at least. It's necessary to write '\x00'==0 to get something
  10992. that's true only with -std. */
  10993. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10994. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10995. inside strings and character constants. */
  10996. #define FOO(x) 'x'
  10997. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10998. int test (int i, double x);
  10999. struct s1 {int (*f) (int a);};
  11000. struct s2 {int (*f) (double a);};
  11001. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11002. int argc;
  11003. char **argv;
  11004. int
  11005. main ()
  11006. {
  11007. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11008. ;
  11009. return 0;
  11010. }
  11011. _ACEOF
  11012. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11013. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11014. do
  11015. CC="$ac_save_CC $ac_arg"
  11016. if ac_fn_c_try_compile "$LINENO"; then :
  11017. ac_cv_prog_cc_c89=$ac_arg
  11018. fi
  11019. rm -f core conftest.err conftest.$ac_objext
  11020. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11021. done
  11022. rm -f conftest.$ac_ext
  11023. CC=$ac_save_CC
  11024. fi
  11025. # AC_CACHE_VAL
  11026. case "x$ac_cv_prog_cc_c89" in
  11027. x)
  11028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11029. $as_echo "none needed" >&6; } ;;
  11030. xno)
  11031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11032. $as_echo "unsupported" >&6; } ;;
  11033. *)
  11034. CC="$CC $ac_cv_prog_cc_c89"
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11036. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11037. esac
  11038. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11039. fi
  11040. ac_ext=c
  11041. ac_cpp='$CPP $CPPFLAGS'
  11042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11045. ac_ext=cpp
  11046. ac_cpp='$CXXCPP $CPPFLAGS'
  11047. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11048. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11049. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11050. if test -z "$CXX"; then
  11051. if test -n "$CCC"; then
  11052. CXX=$CCC
  11053. else
  11054. if test -n "$ac_tool_prefix"; then
  11055. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11056. do
  11057. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11058. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11060. $as_echo_n "checking for $ac_word... " >&6; }
  11061. if ${ac_cv_prog_CXX+:} false; then :
  11062. $as_echo_n "(cached) " >&6
  11063. else
  11064. if test -n "$CXX"; then
  11065. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11066. else
  11067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11068. for as_dir in $PATH
  11069. do
  11070. IFS=$as_save_IFS
  11071. test -z "$as_dir" && as_dir=.
  11072. for ac_exec_ext in '' $ac_executable_extensions; do
  11073. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11074. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11076. break 2
  11077. fi
  11078. done
  11079. done
  11080. IFS=$as_save_IFS
  11081. fi
  11082. fi
  11083. CXX=$ac_cv_prog_CXX
  11084. if test -n "$CXX"; then
  11085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11086. $as_echo "$CXX" >&6; }
  11087. else
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11089. $as_echo "no" >&6; }
  11090. fi
  11091. test -n "$CXX" && break
  11092. done
  11093. fi
  11094. if test -z "$CXX"; then
  11095. ac_ct_CXX=$CXX
  11096. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11097. do
  11098. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11099. set dummy $ac_prog; ac_word=$2
  11100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11101. $as_echo_n "checking for $ac_word... " >&6; }
  11102. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11103. $as_echo_n "(cached) " >&6
  11104. else
  11105. if test -n "$ac_ct_CXX"; then
  11106. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11107. else
  11108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11109. for as_dir in $PATH
  11110. do
  11111. IFS=$as_save_IFS
  11112. test -z "$as_dir" && as_dir=.
  11113. for ac_exec_ext in '' $ac_executable_extensions; do
  11114. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11115. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11117. break 2
  11118. fi
  11119. done
  11120. done
  11121. IFS=$as_save_IFS
  11122. fi
  11123. fi
  11124. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11125. if test -n "$ac_ct_CXX"; then
  11126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11127. $as_echo "$ac_ct_CXX" >&6; }
  11128. else
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11130. $as_echo "no" >&6; }
  11131. fi
  11132. test -n "$ac_ct_CXX" && break
  11133. done
  11134. if test "x$ac_ct_CXX" = x; then
  11135. CXX="g++"
  11136. else
  11137. case $cross_compiling:$ac_tool_warned in
  11138. yes:)
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11140. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11141. ac_tool_warned=yes ;;
  11142. esac
  11143. CXX=$ac_ct_CXX
  11144. fi
  11145. fi
  11146. fi
  11147. fi
  11148. # Provide some information about the compiler.
  11149. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11150. set X $ac_compile
  11151. ac_compiler=$2
  11152. for ac_option in --version -v -V -qversion; do
  11153. { { ac_try="$ac_compiler $ac_option >&5"
  11154. case "(($ac_try" in
  11155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11156. *) ac_try_echo=$ac_try;;
  11157. esac
  11158. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11159. $as_echo "$ac_try_echo"; } >&5
  11160. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11161. ac_status=$?
  11162. if test -s conftest.err; then
  11163. sed '10a\
  11164. ... rest of stderr output deleted ...
  11165. 10q' conftest.err >conftest.er1
  11166. cat conftest.er1 >&5
  11167. fi
  11168. rm -f conftest.er1 conftest.err
  11169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11170. test $ac_status = 0; }
  11171. done
  11172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11173. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11174. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11175. $as_echo_n "(cached) " >&6
  11176. else
  11177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11178. /* end confdefs.h. */
  11179. int
  11180. main ()
  11181. {
  11182. #ifndef __GNUC__
  11183. choke me
  11184. #endif
  11185. ;
  11186. return 0;
  11187. }
  11188. _ACEOF
  11189. if ac_fn_cxx_try_compile "$LINENO"; then :
  11190. ac_compiler_gnu=yes
  11191. else
  11192. ac_compiler_gnu=no
  11193. fi
  11194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11195. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11196. fi
  11197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11198. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11199. if test $ac_compiler_gnu = yes; then
  11200. GXX=yes
  11201. else
  11202. GXX=
  11203. fi
  11204. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11205. ac_save_CXXFLAGS=$CXXFLAGS
  11206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11207. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11208. if ${ac_cv_prog_cxx_g+:} false; then :
  11209. $as_echo_n "(cached) " >&6
  11210. else
  11211. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11212. ac_cxx_werror_flag=yes
  11213. ac_cv_prog_cxx_g=no
  11214. CXXFLAGS="-g"
  11215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11216. /* end confdefs.h. */
  11217. int
  11218. main ()
  11219. {
  11220. ;
  11221. return 0;
  11222. }
  11223. _ACEOF
  11224. if ac_fn_cxx_try_compile "$LINENO"; then :
  11225. ac_cv_prog_cxx_g=yes
  11226. else
  11227. CXXFLAGS=""
  11228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11229. /* end confdefs.h. */
  11230. int
  11231. main ()
  11232. {
  11233. ;
  11234. return 0;
  11235. }
  11236. _ACEOF
  11237. if ac_fn_cxx_try_compile "$LINENO"; then :
  11238. else
  11239. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11240. CXXFLAGS="-g"
  11241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11242. /* end confdefs.h. */
  11243. int
  11244. main ()
  11245. {
  11246. ;
  11247. return 0;
  11248. }
  11249. _ACEOF
  11250. if ac_fn_cxx_try_compile "$LINENO"; then :
  11251. ac_cv_prog_cxx_g=yes
  11252. fi
  11253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11254. fi
  11255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11256. fi
  11257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11258. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11259. fi
  11260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11261. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11262. if test "$ac_test_CXXFLAGS" = set; then
  11263. CXXFLAGS=$ac_save_CXXFLAGS
  11264. elif test $ac_cv_prog_cxx_g = yes; then
  11265. if test "$GXX" = yes; then
  11266. CXXFLAGS="-g -O2"
  11267. else
  11268. CXXFLAGS="-g"
  11269. fi
  11270. else
  11271. if test "$GXX" = yes; then
  11272. CXXFLAGS="-O2"
  11273. else
  11274. CXXFLAGS=
  11275. fi
  11276. fi
  11277. ac_ext=c
  11278. ac_cpp='$CPP $CPPFLAGS'
  11279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11282. func_stripname_cnf ()
  11283. {
  11284. case $2 in
  11285. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11286. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11287. esac
  11288. } # func_stripname_cnf
  11289. if test -n "$CXX" && ( test no != "$CXX" &&
  11290. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11291. (test g++ != "$CXX"))); then
  11292. ac_ext=cpp
  11293. ac_cpp='$CXXCPP $CPPFLAGS'
  11294. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11295. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11296. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11298. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11299. if test -z "$CXXCPP"; then
  11300. if ${ac_cv_prog_CXXCPP+:} false; then :
  11301. $as_echo_n "(cached) " >&6
  11302. else
  11303. # Double quotes because CXXCPP needs to be expanded
  11304. for CXXCPP in "$CXX -E" "/lib/cpp"
  11305. do
  11306. ac_preproc_ok=false
  11307. for ac_cxx_preproc_warn_flag in '' yes
  11308. do
  11309. # Use a header file that comes with gcc, so configuring glibc
  11310. # with a fresh cross-compiler works.
  11311. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11312. # <limits.h> exists even on freestanding compilers.
  11313. # On the NeXT, cc -E runs the code through the compiler's parser,
  11314. # not just through cpp. "Syntax error" is here to catch this case.
  11315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11316. /* end confdefs.h. */
  11317. #ifdef __STDC__
  11318. # include <limits.h>
  11319. #else
  11320. # include <assert.h>
  11321. #endif
  11322. Syntax error
  11323. _ACEOF
  11324. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11325. else
  11326. # Broken: fails on valid input.
  11327. continue
  11328. fi
  11329. rm -f conftest.err conftest.i conftest.$ac_ext
  11330. # OK, works on sane cases. Now check whether nonexistent headers
  11331. # can be detected and how.
  11332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11333. /* end confdefs.h. */
  11334. #include <ac_nonexistent.h>
  11335. _ACEOF
  11336. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11337. # Broken: success on invalid input.
  11338. continue
  11339. else
  11340. # Passes both tests.
  11341. ac_preproc_ok=:
  11342. break
  11343. fi
  11344. rm -f conftest.err conftest.i conftest.$ac_ext
  11345. done
  11346. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11347. rm -f conftest.i conftest.err conftest.$ac_ext
  11348. if $ac_preproc_ok; then :
  11349. break
  11350. fi
  11351. done
  11352. ac_cv_prog_CXXCPP=$CXXCPP
  11353. fi
  11354. CXXCPP=$ac_cv_prog_CXXCPP
  11355. else
  11356. ac_cv_prog_CXXCPP=$CXXCPP
  11357. fi
  11358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11359. $as_echo "$CXXCPP" >&6; }
  11360. ac_preproc_ok=false
  11361. for ac_cxx_preproc_warn_flag in '' yes
  11362. do
  11363. # Use a header file that comes with gcc, so configuring glibc
  11364. # with a fresh cross-compiler works.
  11365. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11366. # <limits.h> exists even on freestanding compilers.
  11367. # On the NeXT, cc -E runs the code through the compiler's parser,
  11368. # not just through cpp. "Syntax error" is here to catch this case.
  11369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11370. /* end confdefs.h. */
  11371. #ifdef __STDC__
  11372. # include <limits.h>
  11373. #else
  11374. # include <assert.h>
  11375. #endif
  11376. Syntax error
  11377. _ACEOF
  11378. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11379. else
  11380. # Broken: fails on valid input.
  11381. continue
  11382. fi
  11383. rm -f conftest.err conftest.i conftest.$ac_ext
  11384. # OK, works on sane cases. Now check whether nonexistent headers
  11385. # can be detected and how.
  11386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11387. /* end confdefs.h. */
  11388. #include <ac_nonexistent.h>
  11389. _ACEOF
  11390. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11391. # Broken: success on invalid input.
  11392. continue
  11393. else
  11394. # Passes both tests.
  11395. ac_preproc_ok=:
  11396. break
  11397. fi
  11398. rm -f conftest.err conftest.i conftest.$ac_ext
  11399. done
  11400. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11401. rm -f conftest.i conftest.err conftest.$ac_ext
  11402. if $ac_preproc_ok; then :
  11403. else
  11404. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11405. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11406. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11407. See \`config.log' for more details" "$LINENO" 5; }
  11408. fi
  11409. ac_ext=c
  11410. ac_cpp='$CPP $CPPFLAGS'
  11411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11414. else
  11415. _lt_caught_CXX_error=yes
  11416. fi
  11417. ac_ext=cpp
  11418. ac_cpp='$CXXCPP $CPPFLAGS'
  11419. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11420. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11421. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11422. archive_cmds_need_lc_CXX=no
  11423. allow_undefined_flag_CXX=
  11424. always_export_symbols_CXX=no
  11425. archive_expsym_cmds_CXX=
  11426. compiler_needs_object_CXX=no
  11427. export_dynamic_flag_spec_CXX=
  11428. hardcode_direct_CXX=no
  11429. hardcode_direct_absolute_CXX=no
  11430. hardcode_libdir_flag_spec_CXX=
  11431. hardcode_libdir_separator_CXX=
  11432. hardcode_minus_L_CXX=no
  11433. hardcode_shlibpath_var_CXX=unsupported
  11434. hardcode_automatic_CXX=no
  11435. inherit_rpath_CXX=no
  11436. module_cmds_CXX=
  11437. module_expsym_cmds_CXX=
  11438. link_all_deplibs_CXX=unknown
  11439. old_archive_cmds_CXX=$old_archive_cmds
  11440. reload_flag_CXX=$reload_flag
  11441. reload_cmds_CXX=$reload_cmds
  11442. no_undefined_flag_CXX=
  11443. whole_archive_flag_spec_CXX=
  11444. enable_shared_with_static_runtimes_CXX=no
  11445. # Source file extension for C++ test sources.
  11446. ac_ext=cpp
  11447. # Object file extension for compiled C++ test sources.
  11448. objext=o
  11449. objext_CXX=$objext
  11450. # No sense in running all these tests if we already determined that
  11451. # the CXX compiler isn't working. Some variables (like enable_shared)
  11452. # are currently assumed to apply to all compilers on this platform,
  11453. # and will be corrupted by setting them based on a non-working compiler.
  11454. if test yes != "$_lt_caught_CXX_error"; then
  11455. # Code to be used in simple compile tests
  11456. lt_simple_compile_test_code="int some_variable = 0;"
  11457. # Code to be used in simple link tests
  11458. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11459. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11460. # If no C compiler was specified, use CC.
  11461. LTCC=${LTCC-"$CC"}
  11462. # If no C compiler flags were specified, use CFLAGS.
  11463. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11464. # Allow CC to be a program name with arguments.
  11465. compiler=$CC
  11466. # save warnings/boilerplate of simple test code
  11467. ac_outfile=conftest.$ac_objext
  11468. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11469. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11470. _lt_compiler_boilerplate=`cat conftest.err`
  11471. $RM conftest*
  11472. ac_outfile=conftest.$ac_objext
  11473. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11474. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11475. _lt_linker_boilerplate=`cat conftest.err`
  11476. $RM -r conftest*
  11477. # Allow CC to be a program name with arguments.
  11478. lt_save_CC=$CC
  11479. lt_save_CFLAGS=$CFLAGS
  11480. lt_save_LD=$LD
  11481. lt_save_GCC=$GCC
  11482. GCC=$GXX
  11483. lt_save_with_gnu_ld=$with_gnu_ld
  11484. lt_save_path_LD=$lt_cv_path_LD
  11485. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11486. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11487. else
  11488. $as_unset lt_cv_prog_gnu_ld
  11489. fi
  11490. if test -n "${lt_cv_path_LDCXX+set}"; then
  11491. lt_cv_path_LD=$lt_cv_path_LDCXX
  11492. else
  11493. $as_unset lt_cv_path_LD
  11494. fi
  11495. test -z "${LDCXX+set}" || LD=$LDCXX
  11496. CC=${CXX-"c++"}
  11497. CFLAGS=$CXXFLAGS
  11498. compiler=$CC
  11499. compiler_CXX=$CC
  11500. func_cc_basename $compiler
  11501. cc_basename=$func_cc_basename_result
  11502. if test -n "$compiler"; then
  11503. # We don't want -fno-exception when compiling C++ code, so set the
  11504. # no_builtin_flag separately
  11505. if test yes = "$GXX"; then
  11506. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11507. else
  11508. lt_prog_compiler_no_builtin_flag_CXX=
  11509. fi
  11510. if test yes = "$GXX"; then
  11511. # Set up default GNU C++ configuration
  11512. # Check whether --with-gnu-ld was given.
  11513. if test "${with_gnu_ld+set}" = set; then :
  11514. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11515. else
  11516. with_gnu_ld=no
  11517. fi
  11518. ac_prog=ld
  11519. if test yes = "$GCC"; then
  11520. # Check if gcc -print-prog-name=ld gives a path.
  11521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11522. $as_echo_n "checking for ld used by $CC... " >&6; }
  11523. case $host in
  11524. *-*-mingw*)
  11525. # gcc leaves a trailing carriage return, which upsets mingw
  11526. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11527. *)
  11528. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11529. esac
  11530. case $ac_prog in
  11531. # Accept absolute paths.
  11532. [\\/]* | ?:[\\/]*)
  11533. re_direlt='/[^/][^/]*/\.\./'
  11534. # Canonicalize the pathname of ld
  11535. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11536. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11537. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11538. done
  11539. test -z "$LD" && LD=$ac_prog
  11540. ;;
  11541. "")
  11542. # If it fails, then pretend we aren't using GCC.
  11543. ac_prog=ld
  11544. ;;
  11545. *)
  11546. # If it is relative, then search for the first ld in PATH.
  11547. with_gnu_ld=unknown
  11548. ;;
  11549. esac
  11550. elif test yes = "$with_gnu_ld"; then
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11552. $as_echo_n "checking for GNU ld... " >&6; }
  11553. else
  11554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11555. $as_echo_n "checking for non-GNU ld... " >&6; }
  11556. fi
  11557. if ${lt_cv_path_LD+:} false; then :
  11558. $as_echo_n "(cached) " >&6
  11559. else
  11560. if test -z "$LD"; then
  11561. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11562. for ac_dir in $PATH; do
  11563. IFS=$lt_save_ifs
  11564. test -z "$ac_dir" && ac_dir=.
  11565. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11566. lt_cv_path_LD=$ac_dir/$ac_prog
  11567. # Check to see if the program is GNU ld. I'd rather use --version,
  11568. # but apparently some variants of GNU ld only accept -v.
  11569. # Break only if it was the GNU/non-GNU ld that we prefer.
  11570. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11571. *GNU* | *'with BFD'*)
  11572. test no != "$with_gnu_ld" && break
  11573. ;;
  11574. *)
  11575. test yes != "$with_gnu_ld" && break
  11576. ;;
  11577. esac
  11578. fi
  11579. done
  11580. IFS=$lt_save_ifs
  11581. else
  11582. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11583. fi
  11584. fi
  11585. LD=$lt_cv_path_LD
  11586. if test -n "$LD"; then
  11587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11588. $as_echo "$LD" >&6; }
  11589. else
  11590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11591. $as_echo "no" >&6; }
  11592. fi
  11593. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11595. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11596. if ${lt_cv_prog_gnu_ld+:} false; then :
  11597. $as_echo_n "(cached) " >&6
  11598. else
  11599. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11600. case `$LD -v 2>&1 </dev/null` in
  11601. *GNU* | *'with BFD'*)
  11602. lt_cv_prog_gnu_ld=yes
  11603. ;;
  11604. *)
  11605. lt_cv_prog_gnu_ld=no
  11606. ;;
  11607. esac
  11608. fi
  11609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11610. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11611. with_gnu_ld=$lt_cv_prog_gnu_ld
  11612. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11613. # archiving commands below assume that GNU ld is being used.
  11614. if test yes = "$with_gnu_ld"; then
  11615. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11616. 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'
  11617. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11618. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11619. # If archive_cmds runs LD, not CC, wlarc should be empty
  11620. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11621. # investigate it a little bit more. (MM)
  11622. wlarc='$wl'
  11623. # ancient GNU ld didn't support --whole-archive et. al.
  11624. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11625. $GREP 'no-whole-archive' > /dev/null; then
  11626. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11627. else
  11628. whole_archive_flag_spec_CXX=
  11629. fi
  11630. else
  11631. with_gnu_ld=no
  11632. wlarc=
  11633. # A generic and very simple default shared library creation
  11634. # command for GNU C++ for the case where it uses the native
  11635. # linker, instead of GNU ld. If possible, this setting should
  11636. # overridden to take advantage of the native linker features on
  11637. # the platform it is being used on.
  11638. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11639. fi
  11640. # Commands to make compiler produce verbose output that lists
  11641. # what "hidden" libraries, object files and flags are used when
  11642. # linking a shared library.
  11643. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11644. else
  11645. GXX=no
  11646. with_gnu_ld=no
  11647. wlarc=
  11648. fi
  11649. # PORTME: fill in a description of your system's C++ link characteristics
  11650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11651. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11652. ld_shlibs_CXX=yes
  11653. case $host_os in
  11654. aix3*)
  11655. # FIXME: insert proper C++ library support
  11656. ld_shlibs_CXX=no
  11657. ;;
  11658. aix[4-9]*)
  11659. if test ia64 = "$host_cpu"; then
  11660. # On IA64, the linker does run time linking by default, so we don't
  11661. # have to do anything special.
  11662. aix_use_runtimelinking=no
  11663. exp_sym_flag='-Bexport'
  11664. no_entry_flag=
  11665. else
  11666. aix_use_runtimelinking=no
  11667. # Test if we are trying to use run time linking or normal
  11668. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11669. # have runtime linking enabled, and use it for executables.
  11670. # For shared libraries, we enable/disable runtime linking
  11671. # depending on the kind of the shared library created -
  11672. # when "with_aix_soname,aix_use_runtimelinking" is:
  11673. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11674. # "aix,yes" lib.so shared, rtl:yes, for executables
  11675. # lib.a static archive
  11676. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11677. # lib.a(lib.so.V) shared, rtl:no, for executables
  11678. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11679. # lib.a(lib.so.V) shared, rtl:no
  11680. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11681. # lib.a static archive
  11682. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11683. for ld_flag in $LDFLAGS; do
  11684. case $ld_flag in
  11685. *-brtl*)
  11686. aix_use_runtimelinking=yes
  11687. break
  11688. ;;
  11689. esac
  11690. done
  11691. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11692. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11693. # so we don't have lib.a shared libs to link our executables.
  11694. # We have to force runtime linking in this case.
  11695. aix_use_runtimelinking=yes
  11696. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11697. fi
  11698. ;;
  11699. esac
  11700. exp_sym_flag='-bexport'
  11701. no_entry_flag='-bnoentry'
  11702. fi
  11703. # When large executables or shared objects are built, AIX ld can
  11704. # have problems creating the table of contents. If linking a library
  11705. # or program results in "error TOC overflow" add -mminimal-toc to
  11706. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11707. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11708. archive_cmds_CXX=''
  11709. hardcode_direct_CXX=yes
  11710. hardcode_direct_absolute_CXX=yes
  11711. hardcode_libdir_separator_CXX=':'
  11712. link_all_deplibs_CXX=yes
  11713. file_list_spec_CXX='$wl-f,'
  11714. case $with_aix_soname,$aix_use_runtimelinking in
  11715. aix,*) ;; # no import file
  11716. svr4,* | *,yes) # use import file
  11717. # The Import File defines what to hardcode.
  11718. hardcode_direct_CXX=no
  11719. hardcode_direct_absolute_CXX=no
  11720. ;;
  11721. esac
  11722. if test yes = "$GXX"; then
  11723. case $host_os in aix4.[012]|aix4.[012].*)
  11724. # We only want to do this on AIX 4.2 and lower, the check
  11725. # below for broken collect2 doesn't work under 4.3+
  11726. collect2name=`$CC -print-prog-name=collect2`
  11727. if test -f "$collect2name" &&
  11728. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11729. then
  11730. # We have reworked collect2
  11731. :
  11732. else
  11733. # We have old collect2
  11734. hardcode_direct_CXX=unsupported
  11735. # It fails to find uninstalled libraries when the uninstalled
  11736. # path is not listed in the libpath. Setting hardcode_minus_L
  11737. # to unsupported forces relinking
  11738. hardcode_minus_L_CXX=yes
  11739. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11740. hardcode_libdir_separator_CXX=
  11741. fi
  11742. esac
  11743. shared_flag='-shared'
  11744. if test yes = "$aix_use_runtimelinking"; then
  11745. shared_flag=$shared_flag' $wl-G'
  11746. fi
  11747. # Need to ensure runtime linking is disabled for the traditional
  11748. # shared library, or the linker may eventually find shared libraries
  11749. # /with/ Import File - we do not want to mix them.
  11750. shared_flag_aix='-shared'
  11751. shared_flag_svr4='-shared $wl-G'
  11752. else
  11753. # not using gcc
  11754. if test ia64 = "$host_cpu"; then
  11755. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11756. # chokes on -Wl,-G. The following line is correct:
  11757. shared_flag='-G'
  11758. else
  11759. if test yes = "$aix_use_runtimelinking"; then
  11760. shared_flag='$wl-G'
  11761. else
  11762. shared_flag='$wl-bM:SRE'
  11763. fi
  11764. shared_flag_aix='$wl-bM:SRE'
  11765. shared_flag_svr4='$wl-G'
  11766. fi
  11767. fi
  11768. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11769. # It seems that -bexpall does not export symbols beginning with
  11770. # underscore (_), so it is better to generate a list of symbols to
  11771. # export.
  11772. always_export_symbols_CXX=yes
  11773. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11774. # Warning - without using the other runtime loading flags (-brtl),
  11775. # -berok will link without error, but may produce a broken library.
  11776. # The "-G" linker flag allows undefined symbols.
  11777. no_undefined_flag_CXX='-bernotok'
  11778. # Determine the default libpath from the value encoded in an empty
  11779. # executable.
  11780. if test set = "${lt_cv_aix_libpath+set}"; then
  11781. aix_libpath=$lt_cv_aix_libpath
  11782. else
  11783. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11784. $as_echo_n "(cached) " >&6
  11785. else
  11786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11787. /* end confdefs.h. */
  11788. int
  11789. main ()
  11790. {
  11791. ;
  11792. return 0;
  11793. }
  11794. _ACEOF
  11795. if ac_fn_cxx_try_link "$LINENO"; then :
  11796. lt_aix_libpath_sed='
  11797. /Import File Strings/,/^$/ {
  11798. /^0/ {
  11799. s/^0 *\([^ ]*\) *$/\1/
  11800. p
  11801. }
  11802. }'
  11803. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11804. # Check for a 64-bit object if we didn't find anything.
  11805. if test -z "$lt_cv_aix_libpath__CXX"; then
  11806. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11807. fi
  11808. fi
  11809. rm -f core conftest.err conftest.$ac_objext \
  11810. conftest$ac_exeext conftest.$ac_ext
  11811. if test -z "$lt_cv_aix_libpath__CXX"; then
  11812. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11813. fi
  11814. fi
  11815. aix_libpath=$lt_cv_aix_libpath__CXX
  11816. fi
  11817. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11818. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  11819. else
  11820. if test ia64 = "$host_cpu"; then
  11821. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11822. allow_undefined_flag_CXX="-z nodefs"
  11823. 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"
  11824. else
  11825. # Determine the default libpath from the value encoded in an
  11826. # empty executable.
  11827. if test set = "${lt_cv_aix_libpath+set}"; then
  11828. aix_libpath=$lt_cv_aix_libpath
  11829. else
  11830. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11831. $as_echo_n "(cached) " >&6
  11832. else
  11833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11834. /* end confdefs.h. */
  11835. int
  11836. main ()
  11837. {
  11838. ;
  11839. return 0;
  11840. }
  11841. _ACEOF
  11842. if ac_fn_cxx_try_link "$LINENO"; then :
  11843. lt_aix_libpath_sed='
  11844. /Import File Strings/,/^$/ {
  11845. /^0/ {
  11846. s/^0 *\([^ ]*\) *$/\1/
  11847. p
  11848. }
  11849. }'
  11850. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11851. # Check for a 64-bit object if we didn't find anything.
  11852. if test -z "$lt_cv_aix_libpath__CXX"; then
  11853. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11854. fi
  11855. fi
  11856. rm -f core conftest.err conftest.$ac_objext \
  11857. conftest$ac_exeext conftest.$ac_ext
  11858. if test -z "$lt_cv_aix_libpath__CXX"; then
  11859. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11860. fi
  11861. fi
  11862. aix_libpath=$lt_cv_aix_libpath__CXX
  11863. fi
  11864. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11865. # Warning - without using the other run time loading flags,
  11866. # -berok will link without error, but may produce a broken library.
  11867. no_undefined_flag_CXX=' $wl-bernotok'
  11868. allow_undefined_flag_CXX=' $wl-berok'
  11869. if test yes = "$with_gnu_ld"; then
  11870. # We only use this code for GNU lds that support --whole-archive.
  11871. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11872. else
  11873. # Exported symbols can be pulled into shared objects from archives
  11874. whole_archive_flag_spec_CXX='$convenience'
  11875. fi
  11876. archive_cmds_need_lc_CXX=yes
  11877. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11878. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11879. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11880. if test svr4 != "$with_aix_soname"; then
  11881. # This is similar to how AIX traditionally builds its shared
  11882. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11883. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  11884. fi
  11885. if test aix != "$with_aix_soname"; then
  11886. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  11887. else
  11888. # used by -dlpreopen to get the symbols
  11889. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11890. fi
  11891. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11892. fi
  11893. fi
  11894. ;;
  11895. beos*)
  11896. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11897. allow_undefined_flag_CXX=unsupported
  11898. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11899. # support --undefined. This deserves some investigation. FIXME
  11900. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11901. else
  11902. ld_shlibs_CXX=no
  11903. fi
  11904. ;;
  11905. chorus*)
  11906. case $cc_basename in
  11907. *)
  11908. # FIXME: insert proper C++ library support
  11909. ld_shlibs_CXX=no
  11910. ;;
  11911. esac
  11912. ;;
  11913. cygwin* | mingw* | pw32* | cegcc*)
  11914. case $GXX,$cc_basename in
  11915. ,cl* | no,cl*)
  11916. # Native MSVC
  11917. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11918. # no search path for DLLs.
  11919. hardcode_libdir_flag_spec_CXX=' '
  11920. allow_undefined_flag_CXX=unsupported
  11921. always_export_symbols_CXX=yes
  11922. file_list_spec_CXX='@'
  11923. # Tell ltmain to make .lib files, not .a files.
  11924. libext=lib
  11925. # Tell ltmain to make .dll files, not .so files.
  11926. shrext_cmds=.dll
  11927. # FIXME: Setting linknames here is a bad hack.
  11928. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11929. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11930. cp "$export_symbols" "$output_objdir/$soname.def";
  11931. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11932. else
  11933. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11934. fi~
  11935. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11936. linknames='
  11937. # The linker will not automatically build a static lib if we build a DLL.
  11938. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11939. enable_shared_with_static_runtimes_CXX=yes
  11940. # Don't use ranlib
  11941. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11942. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11943. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11944. case $lt_outputfile in
  11945. *.exe|*.EXE) ;;
  11946. *)
  11947. lt_outputfile=$lt_outputfile.exe
  11948. lt_tool_outputfile=$lt_tool_outputfile.exe
  11949. ;;
  11950. esac~
  11951. func_to_tool_file "$lt_outputfile"~
  11952. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11953. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11954. $RM "$lt_outputfile.manifest";
  11955. fi'
  11956. ;;
  11957. *)
  11958. # g++
  11959. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11960. # as there is no search path for DLLs.
  11961. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11962. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11963. allow_undefined_flag_CXX=unsupported
  11964. always_export_symbols_CXX=no
  11965. enable_shared_with_static_runtimes_CXX=yes
  11966. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11967. 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'
  11968. # If the export-symbols file already is a .def file, use it as
  11969. # is; otherwise, prepend EXPORTS...
  11970. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11971. cp $export_symbols $output_objdir/$soname.def;
  11972. else
  11973. echo EXPORTS > $output_objdir/$soname.def;
  11974. cat $export_symbols >> $output_objdir/$soname.def;
  11975. fi~
  11976. $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'
  11977. else
  11978. ld_shlibs_CXX=no
  11979. fi
  11980. ;;
  11981. esac
  11982. ;;
  11983. darwin* | rhapsody*)
  11984. archive_cmds_need_lc_CXX=no
  11985. hardcode_direct_CXX=no
  11986. hardcode_automatic_CXX=yes
  11987. hardcode_shlibpath_var_CXX=unsupported
  11988. if test yes = "$lt_cv_ld_force_load"; then
  11989. 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\"`'
  11990. else
  11991. whole_archive_flag_spec_CXX=''
  11992. fi
  11993. link_all_deplibs_CXX=yes
  11994. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11995. case $cc_basename in
  11996. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11997. *) _lt_dar_can_shared=$GCC ;;
  11998. esac
  11999. if test yes = "$_lt_dar_can_shared"; then
  12000. output_verbose_link_cmd=func_echo_all
  12001. 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"
  12002. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12003. 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"
  12004. 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"
  12005. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12006. 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"
  12007. 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"
  12008. fi
  12009. else
  12010. ld_shlibs_CXX=no
  12011. fi
  12012. ;;
  12013. os2*)
  12014. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12015. hardcode_minus_L_CXX=yes
  12016. allow_undefined_flag_CXX=unsupported
  12017. shrext_cmds=.dll
  12018. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12019. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12020. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12021. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12022. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12023. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12024. emximp -o $lib $output_objdir/$libname.def'
  12025. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12026. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12027. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12028. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12029. prefix_cmds="$SED"~
  12030. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12031. prefix_cmds="$prefix_cmds -e 1d";
  12032. fi~
  12033. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12034. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12035. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12036. emximp -o $lib $output_objdir/$libname.def'
  12037. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12038. enable_shared_with_static_runtimes_CXX=yes
  12039. file_list_spec_CXX='@'
  12040. ;;
  12041. dgux*)
  12042. case $cc_basename in
  12043. ec++*)
  12044. # FIXME: insert proper C++ library support
  12045. ld_shlibs_CXX=no
  12046. ;;
  12047. ghcx*)
  12048. # Green Hills C++ Compiler
  12049. # FIXME: insert proper C++ library support
  12050. ld_shlibs_CXX=no
  12051. ;;
  12052. *)
  12053. # FIXME: insert proper C++ library support
  12054. ld_shlibs_CXX=no
  12055. ;;
  12056. esac
  12057. ;;
  12058. freebsd2.*)
  12059. # C++ shared libraries reported to be fairly broken before
  12060. # switch to ELF
  12061. ld_shlibs_CXX=no
  12062. ;;
  12063. freebsd-elf*)
  12064. archive_cmds_need_lc_CXX=no
  12065. ;;
  12066. freebsd* | dragonfly* | midnightbsd*)
  12067. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12068. # conventions
  12069. ld_shlibs_CXX=yes
  12070. ;;
  12071. haiku*)
  12072. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12073. link_all_deplibs_CXX=yes
  12074. ;;
  12075. hpux9*)
  12076. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12077. hardcode_libdir_separator_CXX=:
  12078. export_dynamic_flag_spec_CXX='$wl-E'
  12079. hardcode_direct_CXX=yes
  12080. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12081. # but as the default
  12082. # location of the library.
  12083. case $cc_basename in
  12084. CC*)
  12085. # FIXME: insert proper C++ library support
  12086. ld_shlibs_CXX=no
  12087. ;;
  12088. aCC*)
  12089. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12090. # Commands to make compiler produce verbose output that lists
  12091. # what "hidden" libraries, object files and flags are used when
  12092. # linking a shared library.
  12093. #
  12094. # There doesn't appear to be a way to prevent this compiler from
  12095. # explicitly linking system object files so we need to strip them
  12096. # from the output so that they don't get included in the library
  12097. # dependencies.
  12098. 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"'
  12099. ;;
  12100. *)
  12101. if test yes = "$GXX"; then
  12102. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12103. else
  12104. # FIXME: insert proper C++ library support
  12105. ld_shlibs_CXX=no
  12106. fi
  12107. ;;
  12108. esac
  12109. ;;
  12110. hpux10*|hpux11*)
  12111. if test no = "$with_gnu_ld"; then
  12112. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12113. hardcode_libdir_separator_CXX=:
  12114. case $host_cpu in
  12115. hppa*64*|ia64*)
  12116. ;;
  12117. *)
  12118. export_dynamic_flag_spec_CXX='$wl-E'
  12119. ;;
  12120. esac
  12121. fi
  12122. case $host_cpu in
  12123. hppa*64*|ia64*)
  12124. hardcode_direct_CXX=no
  12125. hardcode_shlibpath_var_CXX=no
  12126. ;;
  12127. *)
  12128. hardcode_direct_CXX=yes
  12129. hardcode_direct_absolute_CXX=yes
  12130. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12131. # but as the default
  12132. # location of the library.
  12133. ;;
  12134. esac
  12135. case $cc_basename in
  12136. CC*)
  12137. # FIXME: insert proper C++ library support
  12138. ld_shlibs_CXX=no
  12139. ;;
  12140. aCC*)
  12141. case $host_cpu in
  12142. hppa*64*)
  12143. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12144. ;;
  12145. ia64*)
  12146. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12147. ;;
  12148. *)
  12149. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12150. ;;
  12151. esac
  12152. # Commands to make compiler produce verbose output that lists
  12153. # what "hidden" libraries, object files and flags are used when
  12154. # linking a shared library.
  12155. #
  12156. # There doesn't appear to be a way to prevent this compiler from
  12157. # explicitly linking system object files so we need to strip them
  12158. # from the output so that they don't get included in the library
  12159. # dependencies.
  12160. 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"'
  12161. ;;
  12162. *)
  12163. if test yes = "$GXX"; then
  12164. if test no = "$with_gnu_ld"; then
  12165. case $host_cpu in
  12166. hppa*64*)
  12167. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12168. ;;
  12169. ia64*)
  12170. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12171. ;;
  12172. *)
  12173. 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'
  12174. ;;
  12175. esac
  12176. fi
  12177. else
  12178. # FIXME: insert proper C++ library support
  12179. ld_shlibs_CXX=no
  12180. fi
  12181. ;;
  12182. esac
  12183. ;;
  12184. interix[3-9]*)
  12185. hardcode_direct_CXX=no
  12186. hardcode_shlibpath_var_CXX=no
  12187. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12188. export_dynamic_flag_spec_CXX='$wl-E'
  12189. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12190. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12191. # default) and relocated if they conflict, which is a slow very memory
  12192. # consuming and fragmenting process. To avoid this, we pick a random,
  12193. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12194. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12195. 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'
  12196. 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'
  12197. ;;
  12198. irix5* | irix6*)
  12199. case $cc_basename in
  12200. CC*)
  12201. # SGI C++
  12202. 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'
  12203. # Archives containing C++ object files must be created using
  12204. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12205. # necessary to make sure instantiated templates are included
  12206. # in the archive.
  12207. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12208. ;;
  12209. *)
  12210. if test yes = "$GXX"; then
  12211. if test no = "$with_gnu_ld"; then
  12212. 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'
  12213. else
  12214. 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'
  12215. fi
  12216. fi
  12217. link_all_deplibs_CXX=yes
  12218. ;;
  12219. esac
  12220. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12221. hardcode_libdir_separator_CXX=:
  12222. inherit_rpath_CXX=yes
  12223. ;;
  12224. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12225. case $cc_basename in
  12226. KCC*)
  12227. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12228. # KCC will only create a shared library if the output file
  12229. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12230. # to its proper name (with version) after linking.
  12231. 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'
  12232. 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'
  12233. # Commands to make compiler produce verbose output that lists
  12234. # what "hidden" libraries, object files and flags are used when
  12235. # linking a shared library.
  12236. #
  12237. # There doesn't appear to be a way to prevent this compiler from
  12238. # explicitly linking system object files so we need to strip them
  12239. # from the output so that they don't get included in the library
  12240. # dependencies.
  12241. 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"'
  12242. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12243. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12244. # Archives containing C++ object files must be created using
  12245. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12246. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12247. ;;
  12248. icpc* | ecpc* )
  12249. # Intel C++
  12250. with_gnu_ld=yes
  12251. # version 8.0 and above of icpc choke on multiply defined symbols
  12252. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12253. # earlier do not add the objects themselves.
  12254. case `$CC -V 2>&1` in
  12255. *"Version 7."*)
  12256. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12257. 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'
  12258. ;;
  12259. *) # Version 8.0 or newer
  12260. tmp_idyn=
  12261. case $host_cpu in
  12262. ia64*) tmp_idyn=' -i_dynamic';;
  12263. esac
  12264. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12265. 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'
  12266. ;;
  12267. esac
  12268. archive_cmds_need_lc_CXX=no
  12269. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12270. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12271. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12272. ;;
  12273. pgCC* | pgcpp*)
  12274. # Portland Group C++ compiler
  12275. case `$CC -V` in
  12276. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12277. prelink_cmds_CXX='tpldir=Template.dir~
  12278. rm -rf $tpldir~
  12279. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12280. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12281. old_archive_cmds_CXX='tpldir=Template.dir~
  12282. rm -rf $tpldir~
  12283. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12284. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12285. $RANLIB $oldlib'
  12286. archive_cmds_CXX='tpldir=Template.dir~
  12287. rm -rf $tpldir~
  12288. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12289. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12290. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12291. rm -rf $tpldir~
  12292. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12293. $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'
  12294. ;;
  12295. *) # Version 6 and above use weak symbols
  12296. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12297. 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'
  12298. ;;
  12299. esac
  12300. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12301. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12302. 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'
  12303. ;;
  12304. cxx*)
  12305. # Compaq C++
  12306. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12307. 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'
  12308. runpath_var=LD_RUN_PATH
  12309. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12310. hardcode_libdir_separator_CXX=:
  12311. # Commands to make compiler produce verbose output that lists
  12312. # what "hidden" libraries, object files and flags are used when
  12313. # linking a shared library.
  12314. #
  12315. # There doesn't appear to be a way to prevent this compiler from
  12316. # explicitly linking system object files so we need to strip them
  12317. # from the output so that they don't get included in the library
  12318. # dependencies.
  12319. 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'
  12320. ;;
  12321. xl* | mpixl* | bgxl*)
  12322. # IBM XL 8.0 on PPC, with GNU ld
  12323. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12324. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12325. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12326. if test yes = "$supports_anon_versioning"; then
  12327. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12328. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12329. echo "local: *; };" >> $output_objdir/$libname.ver~
  12330. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12331. fi
  12332. ;;
  12333. *)
  12334. case `$CC -V 2>&1 | sed 5q` in
  12335. *Sun\ C*)
  12336. # Sun C++ 5.9
  12337. no_undefined_flag_CXX=' -zdefs'
  12338. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12339. 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'
  12340. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12341. 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'
  12342. compiler_needs_object_CXX=yes
  12343. # Not sure whether something based on
  12344. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12345. # would be better.
  12346. output_verbose_link_cmd='func_echo_all'
  12347. # Archives containing C++ object files must be created using
  12348. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12349. # necessary to make sure instantiated templates are included
  12350. # in the archive.
  12351. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12352. ;;
  12353. esac
  12354. ;;
  12355. esac
  12356. ;;
  12357. lynxos*)
  12358. # FIXME: insert proper C++ library support
  12359. ld_shlibs_CXX=no
  12360. ;;
  12361. m88k*)
  12362. # FIXME: insert proper C++ library support
  12363. ld_shlibs_CXX=no
  12364. ;;
  12365. mvs*)
  12366. case $cc_basename in
  12367. cxx*)
  12368. # FIXME: insert proper C++ library support
  12369. ld_shlibs_CXX=no
  12370. ;;
  12371. *)
  12372. # FIXME: insert proper C++ library support
  12373. ld_shlibs_CXX=no
  12374. ;;
  12375. esac
  12376. ;;
  12377. netbsd*)
  12378. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12379. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12380. wlarc=
  12381. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12382. hardcode_direct_CXX=yes
  12383. hardcode_shlibpath_var_CXX=no
  12384. fi
  12385. # Workaround some broken pre-1.5 toolchains
  12386. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12387. ;;
  12388. *nto* | *qnx*)
  12389. ld_shlibs_CXX=yes
  12390. ;;
  12391. openbsd* | bitrig*)
  12392. if test -f /usr/libexec/ld.so; then
  12393. hardcode_direct_CXX=yes
  12394. hardcode_shlibpath_var_CXX=no
  12395. hardcode_direct_absolute_CXX=yes
  12396. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12397. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12398. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12399. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12400. export_dynamic_flag_spec_CXX='$wl-E'
  12401. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12402. fi
  12403. output_verbose_link_cmd=func_echo_all
  12404. else
  12405. ld_shlibs_CXX=no
  12406. fi
  12407. ;;
  12408. osf3* | osf4* | osf5*)
  12409. case $cc_basename in
  12410. KCC*)
  12411. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12412. # KCC will only create a shared library if the output file
  12413. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12414. # to its proper name (with version) after linking.
  12415. 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'
  12416. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12417. hardcode_libdir_separator_CXX=:
  12418. # Archives containing C++ object files must be created using
  12419. # the KAI C++ compiler.
  12420. case $host in
  12421. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12422. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12423. esac
  12424. ;;
  12425. RCC*)
  12426. # Rational C++ 2.4.1
  12427. # FIXME: insert proper C++ library support
  12428. ld_shlibs_CXX=no
  12429. ;;
  12430. cxx*)
  12431. case $host in
  12432. osf3*)
  12433. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12434. 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'
  12435. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12436. ;;
  12437. *)
  12438. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12439. 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'
  12440. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12441. echo "-hidden">> $lib.exp~
  12442. $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~
  12443. $RM $lib.exp'
  12444. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12445. ;;
  12446. esac
  12447. hardcode_libdir_separator_CXX=:
  12448. # Commands to make compiler produce verbose output that lists
  12449. # what "hidden" libraries, object files and flags are used when
  12450. # linking a shared library.
  12451. #
  12452. # There doesn't appear to be a way to prevent this compiler from
  12453. # explicitly linking system object files so we need to strip them
  12454. # from the output so that they don't get included in the library
  12455. # dependencies.
  12456. 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"'
  12457. ;;
  12458. *)
  12459. if test yes,no = "$GXX,$with_gnu_ld"; then
  12460. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12461. case $host in
  12462. osf3*)
  12463. 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'
  12464. ;;
  12465. *)
  12466. 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'
  12467. ;;
  12468. esac
  12469. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12470. hardcode_libdir_separator_CXX=:
  12471. # Commands to make compiler produce verbose output that lists
  12472. # what "hidden" libraries, object files and flags are used when
  12473. # linking a shared library.
  12474. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12475. else
  12476. # FIXME: insert proper C++ library support
  12477. ld_shlibs_CXX=no
  12478. fi
  12479. ;;
  12480. esac
  12481. ;;
  12482. psos*)
  12483. # FIXME: insert proper C++ library support
  12484. ld_shlibs_CXX=no
  12485. ;;
  12486. sunos4*)
  12487. case $cc_basename in
  12488. CC*)
  12489. # Sun C++ 4.x
  12490. # FIXME: insert proper C++ library support
  12491. ld_shlibs_CXX=no
  12492. ;;
  12493. lcc*)
  12494. # Lucid
  12495. # FIXME: insert proper C++ library support
  12496. ld_shlibs_CXX=no
  12497. ;;
  12498. *)
  12499. # FIXME: insert proper C++ library support
  12500. ld_shlibs_CXX=no
  12501. ;;
  12502. esac
  12503. ;;
  12504. solaris*)
  12505. case $cc_basename in
  12506. CC* | sunCC*)
  12507. # Sun C++ 4.2, 5.x and Centerline C++
  12508. archive_cmds_need_lc_CXX=yes
  12509. no_undefined_flag_CXX=' -zdefs'
  12510. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12511. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12512. $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'
  12513. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12514. hardcode_shlibpath_var_CXX=no
  12515. case $host_os in
  12516. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12517. *)
  12518. # The compiler driver will combine and reorder linker options,
  12519. # but understands '-z linker_flag'.
  12520. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12521. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12522. ;;
  12523. esac
  12524. link_all_deplibs_CXX=yes
  12525. output_verbose_link_cmd='func_echo_all'
  12526. # Archives containing C++ object files must be created using
  12527. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12528. # necessary to make sure instantiated templates are included
  12529. # in the archive.
  12530. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12531. ;;
  12532. gcx*)
  12533. # Green Hills C++ Compiler
  12534. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12535. # The C++ compiler must be used to create the archive.
  12536. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12537. ;;
  12538. *)
  12539. # GNU C++ compiler with Solaris linker
  12540. if test yes,no = "$GXX,$with_gnu_ld"; then
  12541. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12542. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12543. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12544. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12545. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12546. # Commands to make compiler produce verbose output that lists
  12547. # what "hidden" libraries, object files and flags are used when
  12548. # linking a shared library.
  12549. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12550. else
  12551. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12552. # platform.
  12553. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12554. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12555. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12556. # Commands to make compiler produce verbose output that lists
  12557. # what "hidden" libraries, object files and flags are used when
  12558. # linking a shared library.
  12559. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12560. fi
  12561. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12562. case $host_os in
  12563. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12564. *)
  12565. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12566. ;;
  12567. esac
  12568. fi
  12569. ;;
  12570. esac
  12571. ;;
  12572. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12573. no_undefined_flag_CXX='$wl-z,text'
  12574. archive_cmds_need_lc_CXX=no
  12575. hardcode_shlibpath_var_CXX=no
  12576. runpath_var='LD_RUN_PATH'
  12577. case $cc_basename in
  12578. CC*)
  12579. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12580. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12581. ;;
  12582. *)
  12583. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12584. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12585. ;;
  12586. esac
  12587. ;;
  12588. sysv5* | sco3.2v5* | sco5v6*)
  12589. # Note: We CANNOT use -z defs as we might desire, because we do not
  12590. # link with -lc, and that would cause any symbols used from libc to
  12591. # always be unresolved, which means just about no library would
  12592. # ever link correctly. If we're not using GNU ld we use -z text
  12593. # though, which does catch some bad symbols but isn't as heavy-handed
  12594. # as -z defs.
  12595. no_undefined_flag_CXX='$wl-z,text'
  12596. allow_undefined_flag_CXX='$wl-z,nodefs'
  12597. archive_cmds_need_lc_CXX=no
  12598. hardcode_shlibpath_var_CXX=no
  12599. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12600. hardcode_libdir_separator_CXX=':'
  12601. link_all_deplibs_CXX=yes
  12602. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12603. runpath_var='LD_RUN_PATH'
  12604. case $cc_basename in
  12605. CC*)
  12606. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12607. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12608. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12609. '"$old_archive_cmds_CXX"
  12610. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12611. '"$reload_cmds_CXX"
  12612. ;;
  12613. *)
  12614. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12615. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12616. ;;
  12617. esac
  12618. ;;
  12619. tandem*)
  12620. case $cc_basename in
  12621. NCC*)
  12622. # NonStop-UX NCC 3.20
  12623. # FIXME: insert proper C++ library support
  12624. ld_shlibs_CXX=no
  12625. ;;
  12626. *)
  12627. # FIXME: insert proper C++ library support
  12628. ld_shlibs_CXX=no
  12629. ;;
  12630. esac
  12631. ;;
  12632. vxworks*)
  12633. # FIXME: insert proper C++ library support
  12634. ld_shlibs_CXX=no
  12635. ;;
  12636. *)
  12637. # FIXME: insert proper C++ library support
  12638. ld_shlibs_CXX=no
  12639. ;;
  12640. esac
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12642. $as_echo "$ld_shlibs_CXX" >&6; }
  12643. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12644. GCC_CXX=$GXX
  12645. LD_CXX=$LD
  12646. ## CAVEAT EMPTOR:
  12647. ## There is no encapsulation within the following macros, do not change
  12648. ## the running order or otherwise move them around unless you know exactly
  12649. ## what you are doing...
  12650. # Dependencies to place before and after the object being linked:
  12651. predep_objects_CXX=
  12652. postdep_objects_CXX=
  12653. predeps_CXX=
  12654. postdeps_CXX=
  12655. compiler_lib_search_path_CXX=
  12656. cat > conftest.$ac_ext <<_LT_EOF
  12657. class Foo
  12658. {
  12659. public:
  12660. Foo (void) { a = 0; }
  12661. private:
  12662. int a;
  12663. };
  12664. _LT_EOF
  12665. _lt_libdeps_save_CFLAGS=$CFLAGS
  12666. case "$CC $CFLAGS " in #(
  12667. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12668. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12669. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12670. esac
  12671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12672. (eval $ac_compile) 2>&5
  12673. ac_status=$?
  12674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12675. test $ac_status = 0; }; then
  12676. # Parse the compiler output and extract the necessary
  12677. # objects, libraries and library flags.
  12678. # Sentinel used to keep track of whether or not we are before
  12679. # the conftest object file.
  12680. pre_test_object_deps_done=no
  12681. for p in `eval "$output_verbose_link_cmd"`; do
  12682. case $prev$p in
  12683. -L* | -R* | -l*)
  12684. # Some compilers place space between "-{L,R}" and the path.
  12685. # Remove the space.
  12686. if test x-L = "x$p" ||
  12687. test x-R = "x$p" ||
  12688. test x-l = "x$p"; then
  12689. prev=$p
  12690. continue
  12691. fi
  12692. # Expand the sysroot to ease extracting the directories later.
  12693. if test -z "$prev"; then
  12694. case $p in
  12695. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12696. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12697. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12698. esac
  12699. fi
  12700. case $p in
  12701. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12702. esac
  12703. if test no = "$pre_test_object_deps_done"; then
  12704. case $prev in
  12705. -L | -R)
  12706. # Internal compiler library paths should come after those
  12707. # provided the user. The postdeps already come after the
  12708. # user supplied libs so there is no need to process them.
  12709. if test -z "$compiler_lib_search_path_CXX"; then
  12710. compiler_lib_search_path_CXX=$prev$p
  12711. else
  12712. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12713. fi
  12714. ;;
  12715. # The "-l" case would never come before the object being
  12716. # linked, so don't bother handling this case.
  12717. esac
  12718. else
  12719. if test -z "$postdeps_CXX"; then
  12720. postdeps_CXX=$prev$p
  12721. else
  12722. postdeps_CXX="${postdeps_CXX} $prev$p"
  12723. fi
  12724. fi
  12725. prev=
  12726. ;;
  12727. *.lto.$objext) ;; # Ignore GCC LTO objects
  12728. *.$objext)
  12729. # This assumes that the test object file only shows up
  12730. # once in the compiler output.
  12731. if test "$p" = "conftest.$objext"; then
  12732. pre_test_object_deps_done=yes
  12733. continue
  12734. fi
  12735. if test no = "$pre_test_object_deps_done"; then
  12736. if test -z "$predep_objects_CXX"; then
  12737. predep_objects_CXX=$p
  12738. else
  12739. predep_objects_CXX="$predep_objects_CXX $p"
  12740. fi
  12741. else
  12742. if test -z "$postdep_objects_CXX"; then
  12743. postdep_objects_CXX=$p
  12744. else
  12745. postdep_objects_CXX="$postdep_objects_CXX $p"
  12746. fi
  12747. fi
  12748. ;;
  12749. *) ;; # Ignore the rest.
  12750. esac
  12751. done
  12752. # Clean up.
  12753. rm -f a.out a.exe
  12754. else
  12755. echo "libtool.m4: error: problem compiling CXX test program"
  12756. fi
  12757. $RM -f confest.$objext
  12758. CFLAGS=$_lt_libdeps_save_CFLAGS
  12759. # PORTME: override above test on systems where it is broken
  12760. case $host_os in
  12761. interix[3-9]*)
  12762. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12763. # hack all around it, let's just trust "g++" to DTRT.
  12764. predep_objects_CXX=
  12765. postdep_objects_CXX=
  12766. postdeps_CXX=
  12767. ;;
  12768. esac
  12769. case " $postdeps_CXX " in
  12770. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12771. esac
  12772. compiler_lib_search_dirs_CXX=
  12773. if test -n "${compiler_lib_search_path_CXX}"; then
  12774. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12775. fi
  12776. lt_prog_compiler_wl_CXX=
  12777. lt_prog_compiler_pic_CXX=
  12778. lt_prog_compiler_static_CXX=
  12779. # C++ specific cases for pic, static, wl, etc.
  12780. if test yes = "$GXX"; then
  12781. lt_prog_compiler_wl_CXX='-Wl,'
  12782. lt_prog_compiler_static_CXX='-static'
  12783. case $host_os in
  12784. aix*)
  12785. # All AIX code is PIC.
  12786. if test ia64 = "$host_cpu"; then
  12787. # AIX 5 now supports IA64 processor
  12788. lt_prog_compiler_static_CXX='-Bstatic'
  12789. fi
  12790. lt_prog_compiler_pic_CXX='-fPIC'
  12791. ;;
  12792. amigaos*)
  12793. case $host_cpu in
  12794. powerpc)
  12795. # see comment about AmigaOS4 .so support
  12796. lt_prog_compiler_pic_CXX='-fPIC'
  12797. ;;
  12798. m68k)
  12799. # FIXME: we need at least 68020 code to build shared libraries, but
  12800. # adding the '-m68020' flag to GCC prevents building anything better,
  12801. # like '-m68040'.
  12802. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12803. ;;
  12804. esac
  12805. ;;
  12806. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12807. # PIC is the default for these OSes.
  12808. ;;
  12809. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12810. # This hack is so that the source file can tell whether it is being
  12811. # built for inclusion in a dll (and should export symbols for example).
  12812. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12813. # (--disable-auto-import) libraries
  12814. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12815. case $host_os in
  12816. os2*)
  12817. lt_prog_compiler_static_CXX='$wl-static'
  12818. ;;
  12819. esac
  12820. ;;
  12821. darwin* | rhapsody*)
  12822. # PIC is the default on this platform
  12823. # Common symbols not allowed in MH_DYLIB files
  12824. lt_prog_compiler_pic_CXX='-fno-common'
  12825. ;;
  12826. *djgpp*)
  12827. # DJGPP does not support shared libraries at all
  12828. lt_prog_compiler_pic_CXX=
  12829. ;;
  12830. haiku*)
  12831. # PIC is the default for Haiku.
  12832. # The "-static" flag exists, but is broken.
  12833. lt_prog_compiler_static_CXX=
  12834. ;;
  12835. interix[3-9]*)
  12836. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12837. # Instead, we relocate shared libraries at runtime.
  12838. ;;
  12839. sysv4*MP*)
  12840. if test -d /usr/nec; then
  12841. lt_prog_compiler_pic_CXX=-Kconform_pic
  12842. fi
  12843. ;;
  12844. hpux*)
  12845. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12846. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12847. # sets the default TLS model and affects inlining.
  12848. case $host_cpu in
  12849. hppa*64*)
  12850. ;;
  12851. *)
  12852. lt_prog_compiler_pic_CXX='-fPIC'
  12853. ;;
  12854. esac
  12855. ;;
  12856. *qnx* | *nto*)
  12857. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12858. # it will coredump.
  12859. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12860. ;;
  12861. *)
  12862. lt_prog_compiler_pic_CXX='-fPIC'
  12863. ;;
  12864. esac
  12865. else
  12866. case $host_os in
  12867. aix[4-9]*)
  12868. # All AIX code is PIC.
  12869. if test ia64 = "$host_cpu"; then
  12870. # AIX 5 now supports IA64 processor
  12871. lt_prog_compiler_static_CXX='-Bstatic'
  12872. else
  12873. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12874. fi
  12875. ;;
  12876. chorus*)
  12877. case $cc_basename in
  12878. cxch68*)
  12879. # Green Hills C++ Compiler
  12880. # _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"
  12881. ;;
  12882. esac
  12883. ;;
  12884. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12885. # This hack is so that the source file can tell whether it is being
  12886. # built for inclusion in a dll (and should export symbols for example).
  12887. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12888. ;;
  12889. dgux*)
  12890. case $cc_basename in
  12891. ec++*)
  12892. lt_prog_compiler_pic_CXX='-KPIC'
  12893. ;;
  12894. ghcx*)
  12895. # Green Hills C++ Compiler
  12896. lt_prog_compiler_pic_CXX='-pic'
  12897. ;;
  12898. *)
  12899. ;;
  12900. esac
  12901. ;;
  12902. freebsd* | dragonfly* | midnightbsd*)
  12903. # FreeBSD uses GNU C++
  12904. ;;
  12905. hpux9* | hpux10* | hpux11*)
  12906. case $cc_basename in
  12907. CC*)
  12908. lt_prog_compiler_wl_CXX='-Wl,'
  12909. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12910. if test ia64 != "$host_cpu"; then
  12911. lt_prog_compiler_pic_CXX='+Z'
  12912. fi
  12913. ;;
  12914. aCC*)
  12915. lt_prog_compiler_wl_CXX='-Wl,'
  12916. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12917. case $host_cpu in
  12918. hppa*64*|ia64*)
  12919. # +Z the default
  12920. ;;
  12921. *)
  12922. lt_prog_compiler_pic_CXX='+Z'
  12923. ;;
  12924. esac
  12925. ;;
  12926. *)
  12927. ;;
  12928. esac
  12929. ;;
  12930. interix*)
  12931. # This is c89, which is MS Visual C++ (no shared libs)
  12932. # Anyone wants to do a port?
  12933. ;;
  12934. irix5* | irix6* | nonstopux*)
  12935. case $cc_basename in
  12936. CC*)
  12937. lt_prog_compiler_wl_CXX='-Wl,'
  12938. lt_prog_compiler_static_CXX='-non_shared'
  12939. # CC pic flag -KPIC is the default.
  12940. ;;
  12941. *)
  12942. ;;
  12943. esac
  12944. ;;
  12945. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12946. case $cc_basename in
  12947. KCC*)
  12948. # KAI C++ Compiler
  12949. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12950. lt_prog_compiler_pic_CXX='-fPIC'
  12951. ;;
  12952. ecpc* )
  12953. # old Intel C++ for x86_64, which still supported -KPIC.
  12954. lt_prog_compiler_wl_CXX='-Wl,'
  12955. lt_prog_compiler_pic_CXX='-KPIC'
  12956. lt_prog_compiler_static_CXX='-static'
  12957. ;;
  12958. icpc* )
  12959. # Intel C++, used to be incompatible with GCC.
  12960. # ICC 10 doesn't accept -KPIC any more.
  12961. lt_prog_compiler_wl_CXX='-Wl,'
  12962. lt_prog_compiler_pic_CXX='-fPIC'
  12963. lt_prog_compiler_static_CXX='-static'
  12964. ;;
  12965. pgCC* | pgcpp*)
  12966. # Portland Group C++ compiler
  12967. lt_prog_compiler_wl_CXX='-Wl,'
  12968. lt_prog_compiler_pic_CXX='-fpic'
  12969. lt_prog_compiler_static_CXX='-Bstatic'
  12970. ;;
  12971. cxx*)
  12972. # Compaq C++
  12973. # Make sure the PIC flag is empty. It appears that all Alpha
  12974. # Linux and Compaq Tru64 Unix objects are PIC.
  12975. lt_prog_compiler_pic_CXX=
  12976. lt_prog_compiler_static_CXX='-non_shared'
  12977. ;;
  12978. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12979. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12980. lt_prog_compiler_wl_CXX='-Wl,'
  12981. lt_prog_compiler_pic_CXX='-qpic'
  12982. lt_prog_compiler_static_CXX='-qstaticlink'
  12983. ;;
  12984. *)
  12985. case `$CC -V 2>&1 | sed 5q` in
  12986. *Sun\ C*)
  12987. # Sun C++ 5.9
  12988. lt_prog_compiler_pic_CXX='-KPIC'
  12989. lt_prog_compiler_static_CXX='-Bstatic'
  12990. lt_prog_compiler_wl_CXX='-Qoption ld '
  12991. ;;
  12992. esac
  12993. ;;
  12994. esac
  12995. ;;
  12996. lynxos*)
  12997. ;;
  12998. m88k*)
  12999. ;;
  13000. mvs*)
  13001. case $cc_basename in
  13002. cxx*)
  13003. lt_prog_compiler_pic_CXX='-W c,exportall'
  13004. ;;
  13005. *)
  13006. ;;
  13007. esac
  13008. ;;
  13009. netbsd*)
  13010. ;;
  13011. *qnx* | *nto*)
  13012. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13013. # it will coredump.
  13014. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13015. ;;
  13016. osf3* | osf4* | osf5*)
  13017. case $cc_basename in
  13018. KCC*)
  13019. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13020. ;;
  13021. RCC*)
  13022. # Rational C++ 2.4.1
  13023. lt_prog_compiler_pic_CXX='-pic'
  13024. ;;
  13025. cxx*)
  13026. # Digital/Compaq C++
  13027. lt_prog_compiler_wl_CXX='-Wl,'
  13028. # Make sure the PIC flag is empty. It appears that all Alpha
  13029. # Linux and Compaq Tru64 Unix objects are PIC.
  13030. lt_prog_compiler_pic_CXX=
  13031. lt_prog_compiler_static_CXX='-non_shared'
  13032. ;;
  13033. *)
  13034. ;;
  13035. esac
  13036. ;;
  13037. psos*)
  13038. ;;
  13039. solaris*)
  13040. case $cc_basename in
  13041. CC* | sunCC*)
  13042. # Sun C++ 4.2, 5.x and Centerline C++
  13043. lt_prog_compiler_pic_CXX='-KPIC'
  13044. lt_prog_compiler_static_CXX='-Bstatic'
  13045. lt_prog_compiler_wl_CXX='-Qoption ld '
  13046. ;;
  13047. gcx*)
  13048. # Green Hills C++ Compiler
  13049. lt_prog_compiler_pic_CXX='-PIC'
  13050. ;;
  13051. *)
  13052. ;;
  13053. esac
  13054. ;;
  13055. sunos4*)
  13056. case $cc_basename in
  13057. CC*)
  13058. # Sun C++ 4.x
  13059. lt_prog_compiler_pic_CXX='-pic'
  13060. lt_prog_compiler_static_CXX='-Bstatic'
  13061. ;;
  13062. lcc*)
  13063. # Lucid
  13064. lt_prog_compiler_pic_CXX='-pic'
  13065. ;;
  13066. *)
  13067. ;;
  13068. esac
  13069. ;;
  13070. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13071. case $cc_basename in
  13072. CC*)
  13073. lt_prog_compiler_wl_CXX='-Wl,'
  13074. lt_prog_compiler_pic_CXX='-KPIC'
  13075. lt_prog_compiler_static_CXX='-Bstatic'
  13076. ;;
  13077. esac
  13078. ;;
  13079. tandem*)
  13080. case $cc_basename in
  13081. NCC*)
  13082. # NonStop-UX NCC 3.20
  13083. lt_prog_compiler_pic_CXX='-KPIC'
  13084. ;;
  13085. *)
  13086. ;;
  13087. esac
  13088. ;;
  13089. vxworks*)
  13090. ;;
  13091. *)
  13092. lt_prog_compiler_can_build_shared_CXX=no
  13093. ;;
  13094. esac
  13095. fi
  13096. case $host_os in
  13097. # For platforms that do not support PIC, -DPIC is meaningless:
  13098. *djgpp*)
  13099. lt_prog_compiler_pic_CXX=
  13100. ;;
  13101. *)
  13102. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13103. ;;
  13104. esac
  13105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13106. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13107. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13108. $as_echo_n "(cached) " >&6
  13109. else
  13110. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13111. fi
  13112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13113. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13114. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13115. #
  13116. # Check to make sure the PIC flag actually works.
  13117. #
  13118. if test -n "$lt_prog_compiler_pic_CXX"; then
  13119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13120. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13121. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13122. $as_echo_n "(cached) " >&6
  13123. else
  13124. lt_cv_prog_compiler_pic_works_CXX=no
  13125. ac_outfile=conftest.$ac_objext
  13126. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13127. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13128. # Insert the option either (1) after the last *FLAGS variable, or
  13129. # (2) before a word containing "conftest.", or (3) at the end.
  13130. # Note that $ac_compile itself does not contain backslashes and begins
  13131. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13132. # The option is referenced via a variable to avoid confusing sed.
  13133. lt_compile=`echo "$ac_compile" | $SED \
  13134. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13135. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13136. -e 's:$: $lt_compiler_flag:'`
  13137. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13138. (eval "$lt_compile" 2>conftest.err)
  13139. ac_status=$?
  13140. cat conftest.err >&5
  13141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13142. if (exit $ac_status) && test -s "$ac_outfile"; then
  13143. # The compiler can only warn and ignore the option if not recognized
  13144. # So say no if there are warnings other than the usual output.
  13145. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13146. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13147. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13148. lt_cv_prog_compiler_pic_works_CXX=yes
  13149. fi
  13150. fi
  13151. $RM conftest*
  13152. fi
  13153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13154. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13155. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13156. case $lt_prog_compiler_pic_CXX in
  13157. "" | " "*) ;;
  13158. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13159. esac
  13160. else
  13161. lt_prog_compiler_pic_CXX=
  13162. lt_prog_compiler_can_build_shared_CXX=no
  13163. fi
  13164. fi
  13165. #
  13166. # Check to make sure the static flag actually works.
  13167. #
  13168. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13170. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13171. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13172. $as_echo_n "(cached) " >&6
  13173. else
  13174. lt_cv_prog_compiler_static_works_CXX=no
  13175. save_LDFLAGS=$LDFLAGS
  13176. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13177. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13178. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13179. # The linker can only warn and ignore the option if not recognized
  13180. # So say no if there are warnings
  13181. if test -s conftest.err; then
  13182. # Append any errors to the config.log.
  13183. cat conftest.err 1>&5
  13184. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13185. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13186. if diff conftest.exp conftest.er2 >/dev/null; then
  13187. lt_cv_prog_compiler_static_works_CXX=yes
  13188. fi
  13189. else
  13190. lt_cv_prog_compiler_static_works_CXX=yes
  13191. fi
  13192. fi
  13193. $RM -r conftest*
  13194. LDFLAGS=$save_LDFLAGS
  13195. fi
  13196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13197. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13198. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13199. :
  13200. else
  13201. lt_prog_compiler_static_CXX=
  13202. fi
  13203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13204. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13205. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13206. $as_echo_n "(cached) " >&6
  13207. else
  13208. lt_cv_prog_compiler_c_o_CXX=no
  13209. $RM -r conftest 2>/dev/null
  13210. mkdir conftest
  13211. cd conftest
  13212. mkdir out
  13213. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13214. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13215. # Insert the option either (1) after the last *FLAGS variable, or
  13216. # (2) before a word containing "conftest.", or (3) at the end.
  13217. # Note that $ac_compile itself does not contain backslashes and begins
  13218. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13219. lt_compile=`echo "$ac_compile" | $SED \
  13220. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13221. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13222. -e 's:$: $lt_compiler_flag:'`
  13223. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13224. (eval "$lt_compile" 2>out/conftest.err)
  13225. ac_status=$?
  13226. cat out/conftest.err >&5
  13227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13228. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13229. then
  13230. # The compiler can only warn and ignore the option if not recognized
  13231. # So say no if there are warnings
  13232. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13233. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13234. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13235. lt_cv_prog_compiler_c_o_CXX=yes
  13236. fi
  13237. fi
  13238. chmod u+w . 2>&5
  13239. $RM conftest*
  13240. # SGI C++ compiler will create directory out/ii_files/ for
  13241. # template instantiation
  13242. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13243. $RM out/* && rmdir out
  13244. cd ..
  13245. $RM -r conftest
  13246. $RM conftest*
  13247. fi
  13248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13249. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13251. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13252. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13253. $as_echo_n "(cached) " >&6
  13254. else
  13255. lt_cv_prog_compiler_c_o_CXX=no
  13256. $RM -r conftest 2>/dev/null
  13257. mkdir conftest
  13258. cd conftest
  13259. mkdir out
  13260. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13261. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13262. # Insert the option either (1) after the last *FLAGS variable, or
  13263. # (2) before a word containing "conftest.", or (3) at the end.
  13264. # Note that $ac_compile itself does not contain backslashes and begins
  13265. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13266. lt_compile=`echo "$ac_compile" | $SED \
  13267. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13268. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13269. -e 's:$: $lt_compiler_flag:'`
  13270. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13271. (eval "$lt_compile" 2>out/conftest.err)
  13272. ac_status=$?
  13273. cat out/conftest.err >&5
  13274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13275. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13276. then
  13277. # The compiler can only warn and ignore the option if not recognized
  13278. # So say no if there are warnings
  13279. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13280. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13281. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13282. lt_cv_prog_compiler_c_o_CXX=yes
  13283. fi
  13284. fi
  13285. chmod u+w . 2>&5
  13286. $RM conftest*
  13287. # SGI C++ compiler will create directory out/ii_files/ for
  13288. # template instantiation
  13289. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13290. $RM out/* && rmdir out
  13291. cd ..
  13292. $RM -r conftest
  13293. $RM conftest*
  13294. fi
  13295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13296. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13297. hard_links=nottested
  13298. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13299. # do not overwrite the value of need_locks provided by the user
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13301. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13302. hard_links=yes
  13303. $RM conftest*
  13304. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13305. touch conftest.a
  13306. ln conftest.a conftest.b 2>&5 || hard_links=no
  13307. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13309. $as_echo "$hard_links" >&6; }
  13310. if test no = "$hard_links"; then
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13312. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13313. need_locks=warn
  13314. fi
  13315. else
  13316. need_locks=no
  13317. fi
  13318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13319. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13320. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13321. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13322. case $host_os in
  13323. aix[4-9]*)
  13324. # If we're using GNU nm, then we don't want the "-C" option.
  13325. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13326. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13327. # weak defined symbols like other global defined symbols, whereas
  13328. # GNU nm marks them as "W".
  13329. # While the 'weak' keyword is ignored in the Export File, we need
  13330. # it in the Import File for the 'aix-soname' feature, so we have
  13331. # to replace the "-B" option with "-P" for AIX nm.
  13332. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13333. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  13334. else
  13335. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13336. fi
  13337. ;;
  13338. pw32*)
  13339. export_symbols_cmds_CXX=$ltdll_cmds
  13340. ;;
  13341. cygwin* | mingw* | cegcc*)
  13342. case $cc_basename in
  13343. cl*)
  13344. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13345. ;;
  13346. *)
  13347. 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'
  13348. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13349. ;;
  13350. esac
  13351. ;;
  13352. *)
  13353. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13354. ;;
  13355. esac
  13356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13357. $as_echo "$ld_shlibs_CXX" >&6; }
  13358. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13359. with_gnu_ld_CXX=$with_gnu_ld
  13360. #
  13361. # Do we need to explicitly link libc?
  13362. #
  13363. case "x$archive_cmds_need_lc_CXX" in
  13364. x|xyes)
  13365. # Assume -lc should be added
  13366. archive_cmds_need_lc_CXX=yes
  13367. if test yes,yes = "$GCC,$enable_shared"; then
  13368. case $archive_cmds_CXX in
  13369. *'~'*)
  13370. # FIXME: we may have to deal with multi-command sequences.
  13371. ;;
  13372. '$CC '*)
  13373. # Test whether the compiler implicitly links with -lc since on some
  13374. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13375. # to ld, don't add -lc before -lgcc.
  13376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13377. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13378. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13379. $as_echo_n "(cached) " >&6
  13380. else
  13381. $RM conftest*
  13382. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13383. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13384. (eval $ac_compile) 2>&5
  13385. ac_status=$?
  13386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13387. test $ac_status = 0; } 2>conftest.err; then
  13388. soname=conftest
  13389. lib=conftest
  13390. libobjs=conftest.$ac_objext
  13391. deplibs=
  13392. wl=$lt_prog_compiler_wl_CXX
  13393. pic_flag=$lt_prog_compiler_pic_CXX
  13394. compiler_flags=-v
  13395. linker_flags=-v
  13396. verstring=
  13397. output_objdir=.
  13398. libname=conftest
  13399. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13400. allow_undefined_flag_CXX=
  13401. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13402. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13403. ac_status=$?
  13404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13405. test $ac_status = 0; }
  13406. then
  13407. lt_cv_archive_cmds_need_lc_CXX=no
  13408. else
  13409. lt_cv_archive_cmds_need_lc_CXX=yes
  13410. fi
  13411. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13412. else
  13413. cat conftest.err 1>&5
  13414. fi
  13415. $RM conftest*
  13416. fi
  13417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13418. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13419. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13420. ;;
  13421. esac
  13422. fi
  13423. ;;
  13424. esac
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13426. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13427. library_names_spec=
  13428. libname_spec='lib$name'
  13429. soname_spec=
  13430. shrext_cmds=.so
  13431. postinstall_cmds=
  13432. postuninstall_cmds=
  13433. finish_cmds=
  13434. finish_eval=
  13435. shlibpath_var=
  13436. shlibpath_overrides_runpath=unknown
  13437. version_type=none
  13438. dynamic_linker="$host_os ld.so"
  13439. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13440. need_lib_prefix=unknown
  13441. hardcode_into_libs=no
  13442. # when you set need_version to no, make sure it does not cause -set_version
  13443. # flags to be left without arguments
  13444. need_version=unknown
  13445. case $host_os in
  13446. aix3*)
  13447. version_type=linux # correct to gnu/linux during the next big refactor
  13448. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13449. shlibpath_var=LIBPATH
  13450. # AIX 3 has no versioning support, so we append a major version to the name.
  13451. soname_spec='$libname$release$shared_ext$major'
  13452. ;;
  13453. aix[4-9]*)
  13454. version_type=linux # correct to gnu/linux during the next big refactor
  13455. need_lib_prefix=no
  13456. need_version=no
  13457. hardcode_into_libs=yes
  13458. if test ia64 = "$host_cpu"; then
  13459. # AIX 5 supports IA64
  13460. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13461. shlibpath_var=LD_LIBRARY_PATH
  13462. else
  13463. # With GCC up to 2.95.x, collect2 would create an import file
  13464. # for dependence libraries. The import file would start with
  13465. # the line '#! .'. This would cause the generated library to
  13466. # depend on '.', always an invalid library. This was fixed in
  13467. # development snapshots of GCC prior to 3.0.
  13468. case $host_os in
  13469. aix4 | aix4.[01] | aix4.[01].*)
  13470. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13471. echo ' yes '
  13472. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13473. :
  13474. else
  13475. can_build_shared=no
  13476. fi
  13477. ;;
  13478. esac
  13479. # Using Import Files as archive members, it is possible to support
  13480. # filename-based versioning of shared library archives on AIX. While
  13481. # this would work for both with and without runtime linking, it will
  13482. # prevent static linking of such archives. So we do filename-based
  13483. # shared library versioning with .so extension only, which is used
  13484. # when both runtime linking and shared linking is enabled.
  13485. # Unfortunately, runtime linking may impact performance, so we do
  13486. # not want this to be the default eventually. Also, we use the
  13487. # versioned .so libs for executables only if there is the -brtl
  13488. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13489. # To allow for filename-based versioning support, we need to create
  13490. # libNAME.so.V as an archive file, containing:
  13491. # *) an Import File, referring to the versioned filename of the
  13492. # archive as well as the shared archive member, telling the
  13493. # bitwidth (32 or 64) of that shared object, and providing the
  13494. # list of exported symbols of that shared object, eventually
  13495. # decorated with the 'weak' keyword
  13496. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13497. # it being seen by the linker.
  13498. # At run time we better use the real file rather than another symlink,
  13499. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13500. case $with_aix_soname,$aix_use_runtimelinking in
  13501. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13502. # soname into executable. Probably we can add versioning support to
  13503. # collect2, so additional links can be useful in future.
  13504. aix,yes) # traditional libtool
  13505. dynamic_linker='AIX unversionable lib.so'
  13506. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13507. # instead of lib<name>.a to let people know that these are not
  13508. # typical AIX shared libraries.
  13509. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13510. ;;
  13511. aix,no) # traditional AIX only
  13512. dynamic_linker='AIX lib.a(lib.so.V)'
  13513. # We preserve .a as extension for shared libraries through AIX4.2
  13514. # and later when we are not doing run time linking.
  13515. library_names_spec='$libname$release.a $libname.a'
  13516. soname_spec='$libname$release$shared_ext$major'
  13517. ;;
  13518. svr4,*) # full svr4 only
  13519. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13520. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13521. # We do not specify a path in Import Files, so LIBPATH fires.
  13522. shlibpath_overrides_runpath=yes
  13523. ;;
  13524. *,yes) # both, prefer svr4
  13525. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13526. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13527. # unpreferred sharedlib libNAME.a needs extra handling
  13528. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13529. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13530. # We do not specify a path in Import Files, so LIBPATH fires.
  13531. shlibpath_overrides_runpath=yes
  13532. ;;
  13533. *,no) # both, prefer aix
  13534. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13535. library_names_spec='$libname$release.a $libname.a'
  13536. soname_spec='$libname$release$shared_ext$major'
  13537. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13538. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13539. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13540. ;;
  13541. esac
  13542. shlibpath_var=LIBPATH
  13543. fi
  13544. ;;
  13545. amigaos*)
  13546. case $host_cpu in
  13547. powerpc)
  13548. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13549. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13550. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13551. ;;
  13552. m68k)
  13553. library_names_spec='$libname.ixlibrary $libname.a'
  13554. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13555. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13556. ;;
  13557. esac
  13558. ;;
  13559. beos*)
  13560. library_names_spec='$libname$shared_ext'
  13561. dynamic_linker="$host_os ld.so"
  13562. shlibpath_var=LIBRARY_PATH
  13563. ;;
  13564. bsdi[45]*)
  13565. version_type=linux # correct to gnu/linux during the next big refactor
  13566. need_version=no
  13567. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13568. soname_spec='$libname$release$shared_ext$major'
  13569. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13570. shlibpath_var=LD_LIBRARY_PATH
  13571. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13572. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13573. # the default ld.so.conf also contains /usr/contrib/lib and
  13574. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13575. # libtool to hard-code these into programs
  13576. ;;
  13577. cygwin* | mingw* | pw32* | cegcc*)
  13578. version_type=windows
  13579. shrext_cmds=.dll
  13580. need_version=no
  13581. need_lib_prefix=no
  13582. case $GCC,$cc_basename in
  13583. yes,*)
  13584. # gcc
  13585. library_names_spec='$libname.dll.a'
  13586. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13587. postinstall_cmds='base_file=`basename \$file`~
  13588. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13589. dldir=$destdir/`dirname \$dlpath`~
  13590. test -d \$dldir || mkdir -p \$dldir~
  13591. $install_prog $dir/$dlname \$dldir/$dlname~
  13592. chmod a+x \$dldir/$dlname~
  13593. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13594. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13595. fi'
  13596. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13597. dlpath=$dir/\$dldll~
  13598. $RM \$dlpath'
  13599. shlibpath_overrides_runpath=yes
  13600. case $host_os in
  13601. cygwin*)
  13602. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13603. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13604. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13605. ;;
  13606. mingw* | cegcc*)
  13607. # MinGW DLLs use traditional 'lib' prefix
  13608. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13609. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13610. ;;
  13611. pw32*)
  13612. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13613. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13614. ;;
  13615. esac
  13616. dynamic_linker='Win32 ld.exe'
  13617. ;;
  13618. *,cl*)
  13619. # Native MSVC
  13620. libname_spec='$name'
  13621. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13622. library_names_spec='$libname.dll.lib'
  13623. case $build_os in
  13624. mingw*)
  13625. sys_lib_search_path_spec=
  13626. lt_save_ifs=$IFS
  13627. IFS=';'
  13628. for lt_path in $LIB
  13629. do
  13630. IFS=$lt_save_ifs
  13631. # Let DOS variable expansion print the short 8.3 style file name.
  13632. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13633. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13634. done
  13635. IFS=$lt_save_ifs
  13636. # Convert to MSYS style.
  13637. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13638. ;;
  13639. cygwin*)
  13640. # Convert to unix form, then to dos form, then back to unix form
  13641. # but this time dos style (no spaces!) so that the unix form looks
  13642. # like /cygdrive/c/PROGRA~1:/cygdr...
  13643. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13644. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13645. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13646. ;;
  13647. *)
  13648. sys_lib_search_path_spec=$LIB
  13649. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13650. # It is most probably a Windows format PATH.
  13651. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13652. else
  13653. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13654. fi
  13655. # FIXME: find the short name or the path components, as spaces are
  13656. # common. (e.g. "Program Files" -> "PROGRA~1")
  13657. ;;
  13658. esac
  13659. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13660. postinstall_cmds='base_file=`basename \$file`~
  13661. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13662. dldir=$destdir/`dirname \$dlpath`~
  13663. test -d \$dldir || mkdir -p \$dldir~
  13664. $install_prog $dir/$dlname \$dldir/$dlname'
  13665. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13666. dlpath=$dir/\$dldll~
  13667. $RM \$dlpath'
  13668. shlibpath_overrides_runpath=yes
  13669. dynamic_linker='Win32 link.exe'
  13670. ;;
  13671. *)
  13672. # Assume MSVC wrapper
  13673. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13674. dynamic_linker='Win32 ld.exe'
  13675. ;;
  13676. esac
  13677. # FIXME: first we should search . and the directory the executable is in
  13678. shlibpath_var=PATH
  13679. ;;
  13680. darwin* | rhapsody*)
  13681. dynamic_linker="$host_os dyld"
  13682. version_type=darwin
  13683. need_lib_prefix=no
  13684. need_version=no
  13685. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13686. soname_spec='$libname$release$major$shared_ext'
  13687. shlibpath_overrides_runpath=yes
  13688. shlibpath_var=DYLD_LIBRARY_PATH
  13689. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13690. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13691. ;;
  13692. dgux*)
  13693. version_type=linux # correct to gnu/linux during the next big refactor
  13694. need_lib_prefix=no
  13695. need_version=no
  13696. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13697. soname_spec='$libname$release$shared_ext$major'
  13698. shlibpath_var=LD_LIBRARY_PATH
  13699. ;;
  13700. freebsd* | dragonfly* | midnightbsd*)
  13701. # DragonFly does not have aout. When/if they implement a new
  13702. # versioning mechanism, adjust this.
  13703. if test -x /usr/bin/objformat; then
  13704. objformat=`/usr/bin/objformat`
  13705. else
  13706. case $host_os in
  13707. freebsd[23].*) objformat=aout ;;
  13708. *) objformat=elf ;;
  13709. esac
  13710. fi
  13711. version_type=freebsd-$objformat
  13712. case $version_type in
  13713. freebsd-elf*)
  13714. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13715. soname_spec='$libname$release$shared_ext$major'
  13716. need_version=no
  13717. need_lib_prefix=no
  13718. ;;
  13719. freebsd-*)
  13720. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13721. need_version=yes
  13722. ;;
  13723. esac
  13724. shlibpath_var=LD_LIBRARY_PATH
  13725. case $host_os in
  13726. freebsd2.*)
  13727. shlibpath_overrides_runpath=yes
  13728. ;;
  13729. freebsd3.[01]* | freebsdelf3.[01]*)
  13730. shlibpath_overrides_runpath=yes
  13731. hardcode_into_libs=yes
  13732. ;;
  13733. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13734. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13735. shlibpath_overrides_runpath=no
  13736. hardcode_into_libs=yes
  13737. ;;
  13738. *) # from 4.6 on, and DragonFly
  13739. shlibpath_overrides_runpath=yes
  13740. hardcode_into_libs=yes
  13741. ;;
  13742. esac
  13743. ;;
  13744. haiku*)
  13745. version_type=linux # correct to gnu/linux during the next big refactor
  13746. need_lib_prefix=no
  13747. need_version=no
  13748. dynamic_linker="$host_os runtime_loader"
  13749. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13750. soname_spec='$libname$release$shared_ext$major'
  13751. shlibpath_var=LIBRARY_PATH
  13752. shlibpath_overrides_runpath=no
  13753. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13754. hardcode_into_libs=yes
  13755. ;;
  13756. hpux9* | hpux10* | hpux11*)
  13757. # Give a soname corresponding to the major version so that dld.sl refuses to
  13758. # link against other versions.
  13759. version_type=sunos
  13760. need_lib_prefix=no
  13761. need_version=no
  13762. case $host_cpu in
  13763. ia64*)
  13764. shrext_cmds='.so'
  13765. hardcode_into_libs=yes
  13766. dynamic_linker="$host_os dld.so"
  13767. shlibpath_var=LD_LIBRARY_PATH
  13768. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13769. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13770. soname_spec='$libname$release$shared_ext$major'
  13771. if test 32 = "$HPUX_IA64_MODE"; then
  13772. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13773. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13774. else
  13775. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13776. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13777. fi
  13778. ;;
  13779. hppa*64*)
  13780. shrext_cmds='.sl'
  13781. hardcode_into_libs=yes
  13782. dynamic_linker="$host_os dld.sl"
  13783. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13784. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13785. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13786. soname_spec='$libname$release$shared_ext$major'
  13787. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13788. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13789. ;;
  13790. *)
  13791. shrext_cmds='.sl'
  13792. dynamic_linker="$host_os dld.sl"
  13793. shlibpath_var=SHLIB_PATH
  13794. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13796. soname_spec='$libname$release$shared_ext$major'
  13797. ;;
  13798. esac
  13799. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13800. postinstall_cmds='chmod 555 $lib'
  13801. # or fails outright, so override atomically:
  13802. install_override_mode=555
  13803. ;;
  13804. interix[3-9]*)
  13805. version_type=linux # correct to gnu/linux during the next big refactor
  13806. need_lib_prefix=no
  13807. need_version=no
  13808. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13809. soname_spec='$libname$release$shared_ext$major'
  13810. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13811. shlibpath_var=LD_LIBRARY_PATH
  13812. shlibpath_overrides_runpath=no
  13813. hardcode_into_libs=yes
  13814. ;;
  13815. irix5* | irix6* | nonstopux*)
  13816. case $host_os in
  13817. nonstopux*) version_type=nonstopux ;;
  13818. *)
  13819. if test yes = "$lt_cv_prog_gnu_ld"; then
  13820. version_type=linux # correct to gnu/linux during the next big refactor
  13821. else
  13822. version_type=irix
  13823. fi ;;
  13824. esac
  13825. need_lib_prefix=no
  13826. need_version=no
  13827. soname_spec='$libname$release$shared_ext$major'
  13828. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13829. case $host_os in
  13830. irix5* | nonstopux*)
  13831. libsuff= shlibsuff=
  13832. ;;
  13833. *)
  13834. case $LD in # libtool.m4 will add one of these switches to LD
  13835. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13836. libsuff= shlibsuff= libmagic=32-bit;;
  13837. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13838. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13839. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13840. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13841. *) libsuff= shlibsuff= libmagic=never-match;;
  13842. esac
  13843. ;;
  13844. esac
  13845. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13846. shlibpath_overrides_runpath=no
  13847. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13848. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13849. hardcode_into_libs=yes
  13850. ;;
  13851. # No shared lib support for Linux oldld, aout, or coff.
  13852. linux*oldld* | linux*aout* | linux*coff*)
  13853. dynamic_linker=no
  13854. ;;
  13855. linux*android*)
  13856. version_type=none # Android doesn't support versioned libraries.
  13857. need_lib_prefix=no
  13858. need_version=no
  13859. library_names_spec='$libname$release$shared_ext'
  13860. soname_spec='$libname$release$shared_ext'
  13861. finish_cmds=
  13862. shlibpath_var=LD_LIBRARY_PATH
  13863. shlibpath_overrides_runpath=yes
  13864. # This implies no fast_install, which is unacceptable.
  13865. # Some rework will be needed to allow for fast_install
  13866. # before this can be enabled.
  13867. hardcode_into_libs=yes
  13868. dynamic_linker='Android linker'
  13869. # Don't embed -rpath directories since the linker doesn't support them.
  13870. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13871. ;;
  13872. # This must be glibc/ELF.
  13873. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13874. version_type=linux # correct to gnu/linux during the next big refactor
  13875. need_lib_prefix=no
  13876. need_version=no
  13877. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13878. soname_spec='$libname$release$shared_ext$major'
  13879. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13880. shlibpath_var=LD_LIBRARY_PATH
  13881. shlibpath_overrides_runpath=no
  13882. # Some binutils ld are patched to set DT_RUNPATH
  13883. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13884. $as_echo_n "(cached) " >&6
  13885. else
  13886. lt_cv_shlibpath_overrides_runpath=no
  13887. save_LDFLAGS=$LDFLAGS
  13888. save_libdir=$libdir
  13889. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13890. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13892. /* end confdefs.h. */
  13893. int
  13894. main ()
  13895. {
  13896. ;
  13897. return 0;
  13898. }
  13899. _ACEOF
  13900. if ac_fn_cxx_try_link "$LINENO"; then :
  13901. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13902. lt_cv_shlibpath_overrides_runpath=yes
  13903. fi
  13904. fi
  13905. rm -f core conftest.err conftest.$ac_objext \
  13906. conftest$ac_exeext conftest.$ac_ext
  13907. LDFLAGS=$save_LDFLAGS
  13908. libdir=$save_libdir
  13909. fi
  13910. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13911. # This implies no fast_install, which is unacceptable.
  13912. # Some rework will be needed to allow for fast_install
  13913. # before this can be enabled.
  13914. hardcode_into_libs=yes
  13915. # Add ABI-specific directories to the system library path.
  13916. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13917. # Ideally, we could use ldconfig to report *all* directores which are
  13918. # searched for libraries, however this is still not possible. Aside from not
  13919. # being certain /sbin/ldconfig is available, command
  13920. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13921. # even though it is searched at run-time. Try to do the best guess by
  13922. # appending ld.so.conf contents (and includes) to the search path.
  13923. if test -f /etc/ld.so.conf; then
  13924. 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' ' '`
  13925. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13926. fi
  13927. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13928. # powerpc, because MkLinux only supported shared libraries with the
  13929. # GNU dynamic linker. Since this was broken with cross compilers,
  13930. # most powerpc-linux boxes support dynamic linking these days and
  13931. # people can always --disable-shared, the test was removed, and we
  13932. # assume the GNU/Linux dynamic linker is in use.
  13933. dynamic_linker='GNU/Linux ld.so'
  13934. ;;
  13935. netbsd*)
  13936. version_type=sunos
  13937. need_lib_prefix=no
  13938. need_version=no
  13939. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13940. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13941. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13942. dynamic_linker='NetBSD (a.out) ld.so'
  13943. else
  13944. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13945. soname_spec='$libname$release$shared_ext$major'
  13946. dynamic_linker='NetBSD ld.elf_so'
  13947. fi
  13948. shlibpath_var=LD_LIBRARY_PATH
  13949. shlibpath_overrides_runpath=yes
  13950. hardcode_into_libs=yes
  13951. ;;
  13952. newsos6)
  13953. version_type=linux # correct to gnu/linux during the next big refactor
  13954. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13955. shlibpath_var=LD_LIBRARY_PATH
  13956. shlibpath_overrides_runpath=yes
  13957. ;;
  13958. *nto* | *qnx*)
  13959. version_type=qnx
  13960. need_lib_prefix=no
  13961. need_version=no
  13962. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13963. soname_spec='$libname$release$shared_ext$major'
  13964. shlibpath_var=LD_LIBRARY_PATH
  13965. shlibpath_overrides_runpath=no
  13966. hardcode_into_libs=yes
  13967. dynamic_linker='ldqnx.so'
  13968. ;;
  13969. openbsd* | bitrig*)
  13970. version_type=sunos
  13971. sys_lib_dlsearch_path_spec=/usr/lib
  13972. need_lib_prefix=no
  13973. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13974. need_version=no
  13975. else
  13976. need_version=yes
  13977. fi
  13978. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13979. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13980. shlibpath_var=LD_LIBRARY_PATH
  13981. shlibpath_overrides_runpath=yes
  13982. ;;
  13983. os2*)
  13984. libname_spec='$name'
  13985. shrext_cmds=.dll
  13986. need_lib_prefix=no
  13987. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13988. # SDL customization: removed versioning support.
  13989. # version_type=windows
  13990. # need_version=no
  13991. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13992. # v=$($ECHO $release$versuffix | tr -d .-);
  13993. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13994. # $ECHO $n$v`$shared_ext'
  13995. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13996. library_names_spec='${libname}_dll.$libext'
  13997. dynamic_linker='OS/2 ld.exe'
  13998. shlibpath_var=BEGINLIBPATH
  13999. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14000. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14001. postinstall_cmds='base_file=`basename \$file`~
  14002. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14003. dldir=$destdir/`dirname \$dlpath`~
  14004. test -d \$dldir || mkdir -p \$dldir~
  14005. $install_prog $dir/$dlname \$dldir/$dlname~
  14006. chmod a+x \$dldir/$dlname~
  14007. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14008. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14009. fi'
  14010. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14011. dlpath=$dir/\$dldll~
  14012. $RM \$dlpath'
  14013. ;;
  14014. osf3* | osf4* | osf5*)
  14015. version_type=osf
  14016. need_lib_prefix=no
  14017. need_version=no
  14018. soname_spec='$libname$release$shared_ext$major'
  14019. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14020. shlibpath_var=LD_LIBRARY_PATH
  14021. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14022. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14023. ;;
  14024. rdos*)
  14025. dynamic_linker=no
  14026. ;;
  14027. solaris*)
  14028. version_type=linux # correct to gnu/linux during the next big refactor
  14029. need_lib_prefix=no
  14030. need_version=no
  14031. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14032. soname_spec='$libname$release$shared_ext$major'
  14033. shlibpath_var=LD_LIBRARY_PATH
  14034. shlibpath_overrides_runpath=yes
  14035. hardcode_into_libs=yes
  14036. # ldd complains unless libraries are executable
  14037. postinstall_cmds='chmod +x $lib'
  14038. ;;
  14039. sunos4*)
  14040. version_type=sunos
  14041. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14042. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14043. shlibpath_var=LD_LIBRARY_PATH
  14044. shlibpath_overrides_runpath=yes
  14045. if test yes = "$with_gnu_ld"; then
  14046. need_lib_prefix=no
  14047. fi
  14048. need_version=yes
  14049. ;;
  14050. sysv4 | sysv4.3*)
  14051. version_type=linux # correct to gnu/linux during the next big refactor
  14052. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14053. soname_spec='$libname$release$shared_ext$major'
  14054. shlibpath_var=LD_LIBRARY_PATH
  14055. case $host_vendor in
  14056. sni)
  14057. shlibpath_overrides_runpath=no
  14058. need_lib_prefix=no
  14059. runpath_var=LD_RUN_PATH
  14060. ;;
  14061. siemens)
  14062. need_lib_prefix=no
  14063. ;;
  14064. motorola)
  14065. need_lib_prefix=no
  14066. need_version=no
  14067. shlibpath_overrides_runpath=no
  14068. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14069. ;;
  14070. esac
  14071. ;;
  14072. sysv4*MP*)
  14073. if test -d /usr/nec; then
  14074. version_type=linux # correct to gnu/linux during the next big refactor
  14075. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14076. soname_spec='$libname$shared_ext.$major'
  14077. shlibpath_var=LD_LIBRARY_PATH
  14078. fi
  14079. ;;
  14080. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14081. version_type=sco
  14082. need_lib_prefix=no
  14083. need_version=no
  14084. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14085. soname_spec='$libname$release$shared_ext$major'
  14086. shlibpath_var=LD_LIBRARY_PATH
  14087. shlibpath_overrides_runpath=yes
  14088. hardcode_into_libs=yes
  14089. if test yes = "$with_gnu_ld"; then
  14090. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14091. else
  14092. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14093. case $host_os in
  14094. sco3.2v5*)
  14095. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14096. ;;
  14097. esac
  14098. fi
  14099. sys_lib_dlsearch_path_spec='/usr/lib'
  14100. ;;
  14101. tpf*)
  14102. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14103. version_type=linux # correct to gnu/linux during the next big refactor
  14104. need_lib_prefix=no
  14105. need_version=no
  14106. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14107. shlibpath_var=LD_LIBRARY_PATH
  14108. shlibpath_overrides_runpath=no
  14109. hardcode_into_libs=yes
  14110. ;;
  14111. uts4*)
  14112. version_type=linux # correct to gnu/linux during the next big refactor
  14113. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14114. soname_spec='$libname$release$shared_ext$major'
  14115. shlibpath_var=LD_LIBRARY_PATH
  14116. ;;
  14117. *)
  14118. dynamic_linker=no
  14119. ;;
  14120. esac
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14122. $as_echo "$dynamic_linker" >&6; }
  14123. test no = "$dynamic_linker" && can_build_shared=no
  14124. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14125. if test yes = "$GCC"; then
  14126. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14127. fi
  14128. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14129. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14130. fi
  14131. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14132. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14133. fi
  14134. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14135. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14136. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14137. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14138. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14139. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14141. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14142. hardcode_action_CXX=
  14143. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14144. test -n "$runpath_var_CXX" ||
  14145. test yes = "$hardcode_automatic_CXX"; then
  14146. # We can hardcode non-existent directories.
  14147. if test no != "$hardcode_direct_CXX" &&
  14148. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14149. # have to relink, otherwise we might link with an installed library
  14150. # when we should be linking with a yet-to-be-installed one
  14151. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14152. test no != "$hardcode_minus_L_CXX"; then
  14153. # Linking always hardcodes the temporary library directory.
  14154. hardcode_action_CXX=relink
  14155. else
  14156. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14157. hardcode_action_CXX=immediate
  14158. fi
  14159. else
  14160. # We cannot hardcode anything, or else we can only hardcode existing
  14161. # directories.
  14162. hardcode_action_CXX=unsupported
  14163. fi
  14164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14165. $as_echo "$hardcode_action_CXX" >&6; }
  14166. if test relink = "$hardcode_action_CXX" ||
  14167. test yes = "$inherit_rpath_CXX"; then
  14168. # Fast installation is not supported
  14169. enable_fast_install=no
  14170. elif test yes = "$shlibpath_overrides_runpath" ||
  14171. test no = "$enable_shared"; then
  14172. # Fast installation is not necessary
  14173. enable_fast_install=needless
  14174. fi
  14175. fi # test -n "$compiler"
  14176. CC=$lt_save_CC
  14177. CFLAGS=$lt_save_CFLAGS
  14178. LDCXX=$LD
  14179. LD=$lt_save_LD
  14180. GCC=$lt_save_GCC
  14181. with_gnu_ld=$lt_save_with_gnu_ld
  14182. lt_cv_path_LDCXX=$lt_cv_path_LD
  14183. lt_cv_path_LD=$lt_save_path_LD
  14184. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14185. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14186. fi # test yes != "$_lt_caught_CXX_error"
  14187. ac_ext=c
  14188. ac_cpp='$CPP $CPPFLAGS'
  14189. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14190. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14191. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14192. # Find a good install program. We prefer a C program (faster),
  14193. # so one script is as good as another. But avoid the broken or
  14194. # incompatible versions:
  14195. # SysV /etc/install, /usr/sbin/install
  14196. # SunOS /usr/etc/install
  14197. # IRIX /sbin/install
  14198. # AIX /bin/install
  14199. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14200. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14201. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14202. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14203. # OS/2's system install, which has a completely different semantic
  14204. # ./install, which can be erroneously created by make from ./install.sh.
  14205. # Reject install programs that cannot install multiple files.
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14207. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14208. if test -z "$INSTALL"; then
  14209. if ${ac_cv_path_install+:} false; then :
  14210. $as_echo_n "(cached) " >&6
  14211. else
  14212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14213. for as_dir in $PATH
  14214. do
  14215. IFS=$as_save_IFS
  14216. test -z "$as_dir" && as_dir=.
  14217. # Account for people who put trailing slashes in PATH elements.
  14218. case $as_dir/ in #((
  14219. ./ | .// | /[cC]/* | \
  14220. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14221. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14222. /usr/ucb/* ) ;;
  14223. *)
  14224. # OSF1 and SCO ODT 3.0 have their own names for install.
  14225. # Don't use installbsd from OSF since it installs stuff as root
  14226. # by default.
  14227. for ac_prog in ginstall scoinst install; do
  14228. for ac_exec_ext in '' $ac_executable_extensions; do
  14229. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14230. if test $ac_prog = install &&
  14231. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14232. # AIX install. It has an incompatible calling convention.
  14233. :
  14234. elif test $ac_prog = install &&
  14235. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14236. # program-specific install script used by HP pwplus--don't use.
  14237. :
  14238. else
  14239. rm -rf conftest.one conftest.two conftest.dir
  14240. echo one > conftest.one
  14241. echo two > conftest.two
  14242. mkdir conftest.dir
  14243. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14244. test -s conftest.one && test -s conftest.two &&
  14245. test -s conftest.dir/conftest.one &&
  14246. test -s conftest.dir/conftest.two
  14247. then
  14248. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14249. break 3
  14250. fi
  14251. fi
  14252. fi
  14253. done
  14254. done
  14255. ;;
  14256. esac
  14257. done
  14258. IFS=$as_save_IFS
  14259. rm -rf conftest.one conftest.two conftest.dir
  14260. fi
  14261. if test "${ac_cv_path_install+set}" = set; then
  14262. INSTALL=$ac_cv_path_install
  14263. else
  14264. # As a last resort, use the slow shell script. Don't cache a
  14265. # value for INSTALL within a source directory, because that will
  14266. # break other packages using the cache if that directory is
  14267. # removed, or if the value is a relative name.
  14268. INSTALL=$ac_install_sh
  14269. fi
  14270. fi
  14271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14272. $as_echo "$INSTALL" >&6; }
  14273. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14274. # It thinks the first close brace ends the variable substitution.
  14275. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14276. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14277. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14279. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14280. set x ${MAKE-make}
  14281. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14282. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14283. $as_echo_n "(cached) " >&6
  14284. else
  14285. cat >conftest.make <<\_ACEOF
  14286. SHELL = /bin/sh
  14287. all:
  14288. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14289. _ACEOF
  14290. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14291. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14292. *@@@%%%=?*=@@@%%%*)
  14293. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14294. *)
  14295. eval ac_cv_prog_make_${ac_make}_set=no;;
  14296. esac
  14297. rm -f conftest.make
  14298. fi
  14299. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14301. $as_echo "yes" >&6; }
  14302. SET_MAKE=
  14303. else
  14304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14305. $as_echo "no" >&6; }
  14306. SET_MAKE="MAKE=${MAKE-make}"
  14307. fi
  14308. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14309. if test -n "$ac_tool_prefix"; then
  14310. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14311. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14313. $as_echo_n "checking for $ac_word... " >&6; }
  14314. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14315. $as_echo_n "(cached) " >&6
  14316. else
  14317. case $PKG_CONFIG in
  14318. [\\/]* | ?:[\\/]*)
  14319. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14320. ;;
  14321. *)
  14322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14323. for as_dir in $PATH
  14324. do
  14325. IFS=$as_save_IFS
  14326. test -z "$as_dir" && as_dir=.
  14327. for ac_exec_ext in '' $ac_executable_extensions; do
  14328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14329. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14331. break 2
  14332. fi
  14333. done
  14334. done
  14335. IFS=$as_save_IFS
  14336. ;;
  14337. esac
  14338. fi
  14339. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14340. if test -n "$PKG_CONFIG"; then
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14342. $as_echo "$PKG_CONFIG" >&6; }
  14343. else
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14345. $as_echo "no" >&6; }
  14346. fi
  14347. fi
  14348. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14349. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14350. # Extract the first word of "pkg-config", so it can be a program name with args.
  14351. set dummy pkg-config; ac_word=$2
  14352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14353. $as_echo_n "checking for $ac_word... " >&6; }
  14354. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14355. $as_echo_n "(cached) " >&6
  14356. else
  14357. case $ac_pt_PKG_CONFIG in
  14358. [\\/]* | ?:[\\/]*)
  14359. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14360. ;;
  14361. *)
  14362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14363. for as_dir in $PATH
  14364. do
  14365. IFS=$as_save_IFS
  14366. test -z "$as_dir" && as_dir=.
  14367. for ac_exec_ext in '' $ac_executable_extensions; do
  14368. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14369. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14371. break 2
  14372. fi
  14373. done
  14374. done
  14375. IFS=$as_save_IFS
  14376. ;;
  14377. esac
  14378. fi
  14379. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14380. if test -n "$ac_pt_PKG_CONFIG"; then
  14381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14382. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14383. else
  14384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14385. $as_echo "no" >&6; }
  14386. fi
  14387. if test "x$ac_pt_PKG_CONFIG" = x; then
  14388. PKG_CONFIG=""
  14389. else
  14390. case $cross_compiling:$ac_tool_warned in
  14391. yes:)
  14392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14393. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14394. ac_tool_warned=yes ;;
  14395. esac
  14396. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14397. fi
  14398. else
  14399. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14400. fi
  14401. fi
  14402. if test -n "$PKG_CONFIG"; then
  14403. _pkg_min_version=0.9.0
  14404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14405. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14406. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14408. $as_echo "yes" >&6; }
  14409. else
  14410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14411. $as_echo "no" >&6; }
  14412. PKG_CONFIG=""
  14413. fi
  14414. fi
  14415. case "$host" in
  14416. *-*-mingw*)
  14417. # Except on msys, where make can't handle full pathnames (bug 1972)
  14418. ;;
  14419. *)
  14420. srcdir=`cd $srcdir && pwd`
  14421. ;;
  14422. esac
  14423. INCLUDE="-I$srcdir/include"
  14424. case "$host" in
  14425. *-*-nto-qnx*)
  14426. ;;
  14427. *)
  14428. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14429. ;;
  14430. esac
  14431. case "$host" in
  14432. *-*-haiku*)
  14433. LINKER='$(CXX)'
  14434. LIBTOOLLINKERTAG='CXX'
  14435. ;;
  14436. *)
  14437. LINKER='$(CC)'
  14438. LIBTOOLLINKERTAG='CC'
  14439. ;;
  14440. esac
  14441. if test x$srcdir != x.; then
  14442. INCLUDE="-Iinclude $INCLUDE"
  14443. elif test -d .git; then
  14444. as_fn_error $? "
  14445. *** When building from a git clone you should configure and build in a
  14446. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14447. " "$LINENO" 5
  14448. fi
  14449. BASE_CFLAGS=""
  14450. BASE_LDFLAGS=""
  14451. case "$host" in
  14452. *-*-cygwin*)
  14453. # We build SDL on cygwin without the UNIX emulation layer
  14454. save_CFLAGS="$CFLAGS"
  14455. have_no_cygwin=no
  14456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14457. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14458. CFLAGS="$save_CFLAGS -mno-cygwin"
  14459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14460. /* end confdefs.h. */
  14461. int
  14462. main ()
  14463. {
  14464. ;
  14465. return 0;
  14466. }
  14467. _ACEOF
  14468. if ac_fn_c_try_compile "$LINENO"; then :
  14469. have_no_cygwin=yes
  14470. fi
  14471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14473. $as_echo "$have_no_cygwin" >&6; }
  14474. CFLAGS="$save_CFLAGS"
  14475. if test x$have_no_cygwin = xyes; then
  14476. BASE_CFLAGS="-mno-cygwin"
  14477. BASE_LDFLAGS="-mno-cygwin"
  14478. fi
  14479. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14480. ;;
  14481. esac
  14482. # Uncomment the following line if you want to force SDL and applications
  14483. # built with it to be compiled for a particular architecture.
  14484. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14485. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14486. # The default optimization for SDL is -O3 (Bug #31)
  14487. if test "x$orig_CFLAGS" = x; then
  14488. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14489. fi
  14490. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14491. BUILD_LDFLAGS="$LDFLAGS"
  14492. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14493. ## These are common directories to find software packages
  14494. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14495. # if test -d $path/include; then
  14496. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14497. # fi
  14498. # if test -d $path/lib; then
  14499. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14500. # fi
  14501. #done
  14502. SDL_CFLAGS="$BASE_CFLAGS"
  14503. SDL_LIBS="-lSDL2"
  14504. if test "x$BASE_LDFLAGS" != x; then
  14505. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14506. fi
  14507. if test "x$EXTRA_CFLAGS" != x; then
  14508. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14509. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14510. fi
  14511. if test "x$EXTRA_LDFLAGS" != x; then
  14512. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14513. fi
  14514. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14515. find_lib()
  14516. {
  14517. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14518. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14519. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14520. if test "$cross_compiling" = yes; then
  14521. host_lib_path=""
  14522. else
  14523. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14524. fi
  14525. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14526. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14527. if test x$lib != x; then
  14528. echo $lib
  14529. return
  14530. fi
  14531. done
  14532. # Try again, this time allowing more than one version digit after the .so
  14533. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14534. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14535. if test x$lib != x; then
  14536. echo $lib
  14537. return
  14538. fi
  14539. done
  14540. }
  14541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14542. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14543. if ${ac_cv_c_const+:} false; then :
  14544. $as_echo_n "(cached) " >&6
  14545. else
  14546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14547. /* end confdefs.h. */
  14548. int
  14549. main ()
  14550. {
  14551. #ifndef __cplusplus
  14552. /* Ultrix mips cc rejects this sort of thing. */
  14553. typedef int charset[2];
  14554. const charset cs = { 0, 0 };
  14555. /* SunOS 4.1.1 cc rejects this. */
  14556. char const *const *pcpcc;
  14557. char **ppc;
  14558. /* NEC SVR4.0.2 mips cc rejects this. */
  14559. struct point {int x, y;};
  14560. static struct point const zero = {0,0};
  14561. /* AIX XL C 1.02.0.0 rejects this.
  14562. It does not let you subtract one const X* pointer from another in
  14563. an arm of an if-expression whose if-part is not a constant
  14564. expression */
  14565. const char *g = "string";
  14566. pcpcc = &g + (g ? g-g : 0);
  14567. /* HPUX 7.0 cc rejects these. */
  14568. ++pcpcc;
  14569. ppc = (char**) pcpcc;
  14570. pcpcc = (char const *const *) ppc;
  14571. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14572. char tx;
  14573. char *t = &tx;
  14574. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14575. *t++ = 0;
  14576. if (s) return 0;
  14577. }
  14578. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14579. int x[] = {25, 17};
  14580. const int *foo = &x[0];
  14581. ++foo;
  14582. }
  14583. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14584. typedef const int *iptr;
  14585. iptr p = 0;
  14586. ++p;
  14587. }
  14588. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14589. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14590. struct s { int j; const int *ap[3]; } bx;
  14591. struct s *b = &bx; b->j = 5;
  14592. }
  14593. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14594. const int foo = 10;
  14595. if (!foo) return 0;
  14596. }
  14597. return !cs[0] && !zero.x;
  14598. #endif
  14599. ;
  14600. return 0;
  14601. }
  14602. _ACEOF
  14603. if ac_fn_c_try_compile "$LINENO"; then :
  14604. ac_cv_c_const=yes
  14605. else
  14606. ac_cv_c_const=no
  14607. fi
  14608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14609. fi
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14611. $as_echo "$ac_cv_c_const" >&6; }
  14612. if test $ac_cv_c_const = no; then
  14613. $as_echo "#define const /**/" >>confdefs.h
  14614. fi
  14615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14616. $as_echo_n "checking for inline... " >&6; }
  14617. if ${ac_cv_c_inline+:} false; then :
  14618. $as_echo_n "(cached) " >&6
  14619. else
  14620. ac_cv_c_inline=no
  14621. for ac_kw in inline __inline__ __inline; do
  14622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14623. /* end confdefs.h. */
  14624. #ifndef __cplusplus
  14625. typedef int foo_t;
  14626. static $ac_kw foo_t static_foo () {return 0; }
  14627. $ac_kw foo_t foo () {return 0; }
  14628. #endif
  14629. _ACEOF
  14630. if ac_fn_c_try_compile "$LINENO"; then :
  14631. ac_cv_c_inline=$ac_kw
  14632. fi
  14633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14634. test "$ac_cv_c_inline" != no && break
  14635. done
  14636. fi
  14637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14638. $as_echo "$ac_cv_c_inline" >&6; }
  14639. case $ac_cv_c_inline in
  14640. inline | yes) ;;
  14641. *)
  14642. case $ac_cv_c_inline in
  14643. no) ac_val=;;
  14644. *) ac_val=$ac_cv_c_inline;;
  14645. esac
  14646. cat >>confdefs.h <<_ACEOF
  14647. #ifndef __cplusplus
  14648. #define inline $ac_val
  14649. #endif
  14650. _ACEOF
  14651. ;;
  14652. esac
  14653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14654. $as_echo_n "checking for working volatile... " >&6; }
  14655. if ${ac_cv_c_volatile+:} false; then :
  14656. $as_echo_n "(cached) " >&6
  14657. else
  14658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14659. /* end confdefs.h. */
  14660. int
  14661. main ()
  14662. {
  14663. volatile int x;
  14664. int * volatile y = (int *) 0;
  14665. return !x && !y;
  14666. ;
  14667. return 0;
  14668. }
  14669. _ACEOF
  14670. if ac_fn_c_try_compile "$LINENO"; then :
  14671. ac_cv_c_volatile=yes
  14672. else
  14673. ac_cv_c_volatile=no
  14674. fi
  14675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14676. fi
  14677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14678. $as_echo "$ac_cv_c_volatile" >&6; }
  14679. if test $ac_cv_c_volatile = no; then
  14680. $as_echo "#define volatile /**/" >>confdefs.h
  14681. fi
  14682. # Check whether --enable-assertions was given.
  14683. if test "${enable_assertions+set}" = set; then :
  14684. enableval=$enable_assertions;
  14685. else
  14686. enable_assertions=auto
  14687. fi
  14688. case "$enable_assertions" in
  14689. auto) # Use optimization settings to determine assertion level
  14690. ;;
  14691. disabled)
  14692. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14693. ;;
  14694. release)
  14695. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14696. ;;
  14697. enabled)
  14698. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14699. ;;
  14700. paranoid)
  14701. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14702. ;;
  14703. *)
  14704. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14705. ;;
  14706. esac
  14707. cat >>confdefs.h <<_ACEOF
  14708. #define SDL_BUILD_MAJOR_VERSION $SDL_MAJOR_VERSION
  14709. _ACEOF
  14710. cat >>confdefs.h <<_ACEOF
  14711. #define SDL_BUILD_MINOR_VERSION $SDL_MINOR_VERSION
  14712. _ACEOF
  14713. cat >>confdefs.h <<_ACEOF
  14714. #define SDL_BUILD_MICRO_VERSION $SDL_MICRO_VERSION
  14715. _ACEOF
  14716. # Check whether --enable-dependency-tracking was given.
  14717. if test "${enable_dependency_tracking+set}" = set; then :
  14718. enableval=$enable_dependency_tracking;
  14719. else
  14720. enable_dependency_tracking=yes
  14721. fi
  14722. if test x$enable_dependency_tracking = xyes; then
  14723. have_gcc_mmd_mt=no
  14724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14725. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14727. /* end confdefs.h. */
  14728. #if !defined(__GNUC__) || __GNUC__ < 3
  14729. #error Dependency tracking requires GCC 3.0 or newer
  14730. #endif
  14731. int
  14732. main ()
  14733. {
  14734. ;
  14735. return 0;
  14736. }
  14737. _ACEOF
  14738. if ac_fn_c_try_compile "$LINENO"; then :
  14739. have_gcc_mmd_mt=yes
  14740. fi
  14741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14743. $as_echo "$have_gcc_mmd_mt" >&6; }
  14744. if test x$have_gcc_mmd_mt = xyes; then
  14745. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14746. fi
  14747. fi
  14748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14749. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14750. have_no_undefined=no
  14751. case "$host" in
  14752. *-*-openbsd*)
  14753. ;;
  14754. *)
  14755. save_LDFLAGS="$LDFLAGS"
  14756. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14758. /* end confdefs.h. */
  14759. int
  14760. main ()
  14761. {
  14762. ;
  14763. return 0;
  14764. }
  14765. _ACEOF
  14766. if ac_fn_c_try_link "$LINENO"; then :
  14767. have_no_undefined=yes
  14768. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14769. fi
  14770. rm -f core conftest.err conftest.$ac_objext \
  14771. conftest$ac_exeext conftest.$ac_ext
  14772. LDFLAGS="$save_LDFLAGS"
  14773. ;;
  14774. esac
  14775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14776. $as_echo "$have_no_undefined" >&6; }
  14777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14778. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14779. have_dynamicbase=no
  14780. case "$host" in
  14781. *)
  14782. save_LDFLAGS="$LDFLAGS"
  14783. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14785. /* end confdefs.h. */
  14786. int
  14787. main ()
  14788. {
  14789. ;
  14790. return 0;
  14791. }
  14792. _ACEOF
  14793. if ac_fn_c_try_link "$LINENO"; then :
  14794. have_dynamicbase=yes
  14795. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14796. fi
  14797. rm -f core conftest.err conftest.$ac_objext \
  14798. conftest$ac_exeext conftest.$ac_ext
  14799. LDFLAGS="$save_LDFLAGS"
  14800. ;;
  14801. esac
  14802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14803. $as_echo "$have_dynamicbase" >&6; }
  14804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14805. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14806. have_nxcompat=no
  14807. case "$host" in
  14808. *)
  14809. save_LDFLAGS="$LDFLAGS"
  14810. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14812. /* end confdefs.h. */
  14813. int
  14814. main ()
  14815. {
  14816. ;
  14817. return 0;
  14818. }
  14819. _ACEOF
  14820. if ac_fn_c_try_link "$LINENO"; then :
  14821. have_nxcompat=yes
  14822. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14823. fi
  14824. rm -f core conftest.err conftest.$ac_objext \
  14825. conftest$ac_exeext conftest.$ac_ext
  14826. LDFLAGS="$save_LDFLAGS"
  14827. ;;
  14828. esac
  14829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14830. $as_echo "$have_nxcompat" >&6; }
  14831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14832. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14833. have_high_entropy_va=no
  14834. case "$host" in
  14835. *)
  14836. save_LDFLAGS="$LDFLAGS"
  14837. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14839. /* end confdefs.h. */
  14840. int
  14841. main ()
  14842. {
  14843. ;
  14844. return 0;
  14845. }
  14846. _ACEOF
  14847. if ac_fn_c_try_link "$LINENO"; then :
  14848. have_high_entropy_va=yes
  14849. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14850. fi
  14851. rm -f core conftest.err conftest.$ac_objext \
  14852. conftest$ac_exeext conftest.$ac_ext
  14853. LDFLAGS="$save_LDFLAGS"
  14854. ;;
  14855. esac
  14856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14857. $as_echo "$have_high_entropy_va" >&6; }
  14858. # Check whether --enable-libc was given.
  14859. if test "${enable_libc+set}" = set; then :
  14860. enableval=$enable_libc;
  14861. else
  14862. enable_libc=yes
  14863. fi
  14864. if test x$enable_libc = xyes; then
  14865. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14867. $as_echo_n "checking for ANSI C header files... " >&6; }
  14868. if ${ac_cv_header_stdc+:} false; then :
  14869. $as_echo_n "(cached) " >&6
  14870. else
  14871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14872. /* end confdefs.h. */
  14873. #include <stdlib.h>
  14874. #include <stdarg.h>
  14875. #include <string.h>
  14876. #include <float.h>
  14877. int
  14878. main ()
  14879. {
  14880. ;
  14881. return 0;
  14882. }
  14883. _ACEOF
  14884. if ac_fn_c_try_compile "$LINENO"; then :
  14885. ac_cv_header_stdc=yes
  14886. else
  14887. ac_cv_header_stdc=no
  14888. fi
  14889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14890. if test $ac_cv_header_stdc = yes; then
  14891. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14893. /* end confdefs.h. */
  14894. #include <string.h>
  14895. _ACEOF
  14896. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14897. $EGREP "memchr" >/dev/null 2>&1; then :
  14898. else
  14899. ac_cv_header_stdc=no
  14900. fi
  14901. rm -f conftest*
  14902. fi
  14903. if test $ac_cv_header_stdc = yes; then
  14904. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14906. /* end confdefs.h. */
  14907. #include <stdlib.h>
  14908. _ACEOF
  14909. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14910. $EGREP "free" >/dev/null 2>&1; then :
  14911. else
  14912. ac_cv_header_stdc=no
  14913. fi
  14914. rm -f conftest*
  14915. fi
  14916. if test $ac_cv_header_stdc = yes; then
  14917. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14918. if test "$cross_compiling" = yes; then :
  14919. :
  14920. else
  14921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14922. /* end confdefs.h. */
  14923. #include <ctype.h>
  14924. #include <stdlib.h>
  14925. #if ((' ' & 0x0FF) == 0x020)
  14926. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14927. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14928. #else
  14929. # define ISLOWER(c) \
  14930. (('a' <= (c) && (c) <= 'i') \
  14931. || ('j' <= (c) && (c) <= 'r') \
  14932. || ('s' <= (c) && (c) <= 'z'))
  14933. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14934. #endif
  14935. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14936. int
  14937. main ()
  14938. {
  14939. int i;
  14940. for (i = 0; i < 256; i++)
  14941. if (XOR (islower (i), ISLOWER (i))
  14942. || toupper (i) != TOUPPER (i))
  14943. return 2;
  14944. return 0;
  14945. }
  14946. _ACEOF
  14947. if ac_fn_c_try_run "$LINENO"; then :
  14948. else
  14949. ac_cv_header_stdc=no
  14950. fi
  14951. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14952. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14953. fi
  14954. fi
  14955. fi
  14956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14957. $as_echo "$ac_cv_header_stdc" >&6; }
  14958. if test $ac_cv_header_stdc = yes; then
  14959. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14960. fi
  14961. 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
  14962. do :
  14963. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14964. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14965. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14966. cat >>confdefs.h <<_ACEOF
  14967. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14968. _ACEOF
  14969. fi
  14970. done
  14971. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14972. if test "x$ac_cv_type_size_t" = xyes; then :
  14973. else
  14974. cat >>confdefs.h <<_ACEOF
  14975. #define size_t unsigned int
  14976. _ACEOF
  14977. fi
  14978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14979. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14980. if ${ac_cv_define_M_PI+:} false; then :
  14981. $as_echo_n "(cached) " >&6
  14982. else
  14983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14984. /* end confdefs.h. */
  14985. #include <math.h>
  14986. #ifdef M_PI
  14987. YES_IS_DEFINED
  14988. #endif
  14989. _ACEOF
  14990. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14991. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14992. ac_cv_define_M_PI=yes
  14993. else
  14994. ac_cv_define_M_PI=no
  14995. fi
  14996. rm -f conftest*
  14997. fi
  14998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14999. $as_echo "$ac_cv_define_M_PI" >&6; }
  15000. if test "$ac_cv_define_M_PI" = "yes" ; then
  15001. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  15002. fi
  15003. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  15004. # for constant arguments. Useless!
  15005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  15006. $as_echo_n "checking for working alloca.h... " >&6; }
  15007. if ${ac_cv_working_alloca_h+:} false; then :
  15008. $as_echo_n "(cached) " >&6
  15009. else
  15010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15011. /* end confdefs.h. */
  15012. #include <alloca.h>
  15013. int
  15014. main ()
  15015. {
  15016. char *p = (char *) alloca (2 * sizeof (int));
  15017. if (p) return 0;
  15018. ;
  15019. return 0;
  15020. }
  15021. _ACEOF
  15022. if ac_fn_c_try_link "$LINENO"; then :
  15023. ac_cv_working_alloca_h=yes
  15024. else
  15025. ac_cv_working_alloca_h=no
  15026. fi
  15027. rm -f core conftest.err conftest.$ac_objext \
  15028. conftest$ac_exeext conftest.$ac_ext
  15029. fi
  15030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15031. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15032. if test $ac_cv_working_alloca_h = yes; then
  15033. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15034. fi
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15036. $as_echo_n "checking for alloca... " >&6; }
  15037. if ${ac_cv_func_alloca_works+:} false; then :
  15038. $as_echo_n "(cached) " >&6
  15039. else
  15040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15041. /* end confdefs.h. */
  15042. #ifdef __GNUC__
  15043. # define alloca __builtin_alloca
  15044. #else
  15045. # ifdef _MSC_VER
  15046. # include <malloc.h>
  15047. # define alloca _alloca
  15048. # else
  15049. # ifdef HAVE_ALLOCA_H
  15050. # include <alloca.h>
  15051. # else
  15052. # ifdef _AIX
  15053. #pragma alloca
  15054. # else
  15055. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15056. void *alloca (size_t);
  15057. # endif
  15058. # endif
  15059. # endif
  15060. # endif
  15061. #endif
  15062. int
  15063. main ()
  15064. {
  15065. char *p = (char *) alloca (1);
  15066. if (p) return 0;
  15067. ;
  15068. return 0;
  15069. }
  15070. _ACEOF
  15071. if ac_fn_c_try_link "$LINENO"; then :
  15072. ac_cv_func_alloca_works=yes
  15073. else
  15074. ac_cv_func_alloca_works=no
  15075. fi
  15076. rm -f core conftest.err conftest.$ac_objext \
  15077. conftest$ac_exeext conftest.$ac_ext
  15078. fi
  15079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15080. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15081. if test $ac_cv_func_alloca_works = yes; then
  15082. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15083. else
  15084. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15085. # that cause trouble. Some versions do not even contain alloca or
  15086. # contain a buggy version. If you still want to use their alloca,
  15087. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15088. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15089. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15091. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15092. if ${ac_cv_os_cray+:} false; then :
  15093. $as_echo_n "(cached) " >&6
  15094. else
  15095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15096. /* end confdefs.h. */
  15097. #if defined CRAY && ! defined CRAY2
  15098. webecray
  15099. #else
  15100. wenotbecray
  15101. #endif
  15102. _ACEOF
  15103. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15104. $EGREP "webecray" >/dev/null 2>&1; then :
  15105. ac_cv_os_cray=yes
  15106. else
  15107. ac_cv_os_cray=no
  15108. fi
  15109. rm -f conftest*
  15110. fi
  15111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15112. $as_echo "$ac_cv_os_cray" >&6; }
  15113. if test $ac_cv_os_cray = yes; then
  15114. for ac_func in _getb67 GETB67 getb67; do
  15115. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15116. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15117. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15118. cat >>confdefs.h <<_ACEOF
  15119. #define CRAY_STACKSEG_END $ac_func
  15120. _ACEOF
  15121. break
  15122. fi
  15123. done
  15124. fi
  15125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15126. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15127. if ${ac_cv_c_stack_direction+:} false; then :
  15128. $as_echo_n "(cached) " >&6
  15129. else
  15130. if test "$cross_compiling" = yes; then :
  15131. ac_cv_c_stack_direction=0
  15132. else
  15133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15134. /* end confdefs.h. */
  15135. $ac_includes_default
  15136. int
  15137. find_stack_direction (int *addr, int depth)
  15138. {
  15139. int dir, dummy = 0;
  15140. if (! addr)
  15141. addr = &dummy;
  15142. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15143. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15144. return dir + dummy;
  15145. }
  15146. int
  15147. main (int argc, char **argv)
  15148. {
  15149. return find_stack_direction (0, argc + !argv + 20) < 0;
  15150. }
  15151. _ACEOF
  15152. if ac_fn_c_try_run "$LINENO"; then :
  15153. ac_cv_c_stack_direction=1
  15154. else
  15155. ac_cv_c_stack_direction=-1
  15156. fi
  15157. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15158. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15159. fi
  15160. fi
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15162. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15163. cat >>confdefs.h <<_ACEOF
  15164. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15165. _ACEOF
  15166. fi
  15167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15168. $as_echo_n "checking for working memcmp... " >&6; }
  15169. if ${ac_cv_func_memcmp_working+:} false; then :
  15170. $as_echo_n "(cached) " >&6
  15171. else
  15172. if test "$cross_compiling" = yes; then :
  15173. ac_cv_func_memcmp_working=no
  15174. else
  15175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15176. /* end confdefs.h. */
  15177. $ac_includes_default
  15178. int
  15179. main ()
  15180. {
  15181. /* Some versions of memcmp are not 8-bit clean. */
  15182. char c0 = '\100', c1 = '\200', c2 = '\201';
  15183. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15184. return 1;
  15185. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15186. or more and with at least one buffer not starting on a 4-byte boundary.
  15187. William Lewis provided this test program. */
  15188. {
  15189. char foo[21];
  15190. char bar[21];
  15191. int i;
  15192. for (i = 0; i < 4; i++)
  15193. {
  15194. char *a = foo + i;
  15195. char *b = bar + i;
  15196. strcpy (a, "--------01111111");
  15197. strcpy (b, "--------10000000");
  15198. if (memcmp (a, b, 16) >= 0)
  15199. return 1;
  15200. }
  15201. return 0;
  15202. }
  15203. ;
  15204. return 0;
  15205. }
  15206. _ACEOF
  15207. if ac_fn_c_try_run "$LINENO"; then :
  15208. ac_cv_func_memcmp_working=yes
  15209. else
  15210. ac_cv_func_memcmp_working=no
  15211. fi
  15212. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15213. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15214. fi
  15215. fi
  15216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15217. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15218. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15219. *" memcmp.$ac_objext "* ) ;;
  15220. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15221. ;;
  15222. esac
  15223. if test x$ac_cv_func_memcmp_working = xyes; then
  15224. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15225. fi
  15226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15227. $as_echo_n "checking for working strtod... " >&6; }
  15228. if ${ac_cv_func_strtod+:} false; then :
  15229. $as_echo_n "(cached) " >&6
  15230. else
  15231. if test "$cross_compiling" = yes; then :
  15232. ac_cv_func_strtod=no
  15233. else
  15234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15235. /* end confdefs.h. */
  15236. $ac_includes_default
  15237. #ifndef strtod
  15238. double strtod ();
  15239. #endif
  15240. int
  15241. main()
  15242. {
  15243. {
  15244. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15245. char *string = " +69";
  15246. char *term;
  15247. double value;
  15248. value = strtod (string, &term);
  15249. if (value != 69 || term != (string + 4))
  15250. return 1;
  15251. }
  15252. {
  15253. /* Under Solaris 2.4, strtod returns the wrong value for the
  15254. terminating character under some conditions. */
  15255. char *string = "NaN";
  15256. char *term;
  15257. strtod (string, &term);
  15258. if (term != string && *(term - 1) == 0)
  15259. return 1;
  15260. }
  15261. return 0;
  15262. }
  15263. _ACEOF
  15264. if ac_fn_c_try_run "$LINENO"; then :
  15265. ac_cv_func_strtod=yes
  15266. else
  15267. ac_cv_func_strtod=no
  15268. fi
  15269. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15270. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15271. fi
  15272. fi
  15273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15274. $as_echo "$ac_cv_func_strtod" >&6; }
  15275. if test $ac_cv_func_strtod = no; then
  15276. case " $LIBOBJS " in
  15277. *" strtod.$ac_objext "* ) ;;
  15278. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15279. ;;
  15280. esac
  15281. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15282. if test "x$ac_cv_func_pow" = xyes; then :
  15283. fi
  15284. if test $ac_cv_func_pow = no; then
  15285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15286. $as_echo_n "checking for pow in -lm... " >&6; }
  15287. if ${ac_cv_lib_m_pow+:} false; then :
  15288. $as_echo_n "(cached) " >&6
  15289. else
  15290. ac_check_lib_save_LIBS=$LIBS
  15291. LIBS="-lm $LIBS"
  15292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15293. /* end confdefs.h. */
  15294. /* Override any GCC internal prototype to avoid an error.
  15295. Use char because int might match the return type of a GCC
  15296. builtin and then its argument prototype would still apply. */
  15297. #ifdef __cplusplus
  15298. extern "C"
  15299. #endif
  15300. char pow ();
  15301. int
  15302. main ()
  15303. {
  15304. return pow ();
  15305. ;
  15306. return 0;
  15307. }
  15308. _ACEOF
  15309. if ac_fn_c_try_link "$LINENO"; then :
  15310. ac_cv_lib_m_pow=yes
  15311. else
  15312. ac_cv_lib_m_pow=no
  15313. fi
  15314. rm -f core conftest.err conftest.$ac_objext \
  15315. conftest$ac_exeext conftest.$ac_ext
  15316. LIBS=$ac_check_lib_save_LIBS
  15317. fi
  15318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15319. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15320. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15321. POW_LIB=-lm
  15322. else
  15323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15324. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15325. fi
  15326. fi
  15327. fi
  15328. if test x$ac_cv_func_strtod = xyes; then
  15329. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15330. fi
  15331. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15332. if test "x$ac_cv_func_mprotect" = xyes; then :
  15333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15334. /* end confdefs.h. */
  15335. #include <sys/types.h>
  15336. #include <sys/mman.h>
  15337. int
  15338. main ()
  15339. {
  15340. ;
  15341. return 0;
  15342. }
  15343. _ACEOF
  15344. if ac_fn_c_try_compile "$LINENO"; then :
  15345. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15346. fi
  15347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15348. fi
  15349. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv bsearch 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
  15350. do :
  15351. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15352. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15353. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15354. cat >>confdefs.h <<_ACEOF
  15355. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15356. _ACEOF
  15357. fi
  15358. done
  15359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15360. $as_echo_n "checking for pow in -lm... " >&6; }
  15361. if ${ac_cv_lib_m_pow+:} false; then :
  15362. $as_echo_n "(cached) " >&6
  15363. else
  15364. ac_check_lib_save_LIBS=$LIBS
  15365. LIBS="-lm $LIBS"
  15366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15367. /* end confdefs.h. */
  15368. /* Override any GCC internal prototype to avoid an error.
  15369. Use char because int might match the return type of a GCC
  15370. builtin and then its argument prototype would still apply. */
  15371. #ifdef __cplusplus
  15372. extern "C"
  15373. #endif
  15374. char pow ();
  15375. int
  15376. main ()
  15377. {
  15378. return pow ();
  15379. ;
  15380. return 0;
  15381. }
  15382. _ACEOF
  15383. if ac_fn_c_try_link "$LINENO"; then :
  15384. ac_cv_lib_m_pow=yes
  15385. else
  15386. ac_cv_lib_m_pow=no
  15387. fi
  15388. rm -f core conftest.err conftest.$ac_objext \
  15389. conftest$ac_exeext conftest.$ac_ext
  15390. LIBS=$ac_check_lib_save_LIBS
  15391. fi
  15392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15393. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15394. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15395. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15396. fi
  15397. 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
  15398. do :
  15399. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15400. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15401. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15402. cat >>confdefs.h <<_ACEOF
  15403. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15404. _ACEOF
  15405. fi
  15406. done
  15407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15408. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15409. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15410. $as_echo_n "(cached) " >&6
  15411. else
  15412. ac_check_lib_save_LIBS=$LIBS
  15413. LIBS="-liconv $LIBS"
  15414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15415. /* end confdefs.h. */
  15416. /* Override any GCC internal prototype to avoid an error.
  15417. Use char because int might match the return type of a GCC
  15418. builtin and then its argument prototype would still apply. */
  15419. #ifdef __cplusplus
  15420. extern "C"
  15421. #endif
  15422. char iconv_open ();
  15423. int
  15424. main ()
  15425. {
  15426. return iconv_open ();
  15427. ;
  15428. return 0;
  15429. }
  15430. _ACEOF
  15431. if ac_fn_c_try_link "$LINENO"; then :
  15432. ac_cv_lib_iconv_iconv_open=yes
  15433. else
  15434. ac_cv_lib_iconv_iconv_open=no
  15435. fi
  15436. rm -f core conftest.err conftest.$ac_objext \
  15437. conftest$ac_exeext conftest.$ac_ext
  15438. LIBS=$ac_check_lib_save_LIBS
  15439. fi
  15440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15441. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15442. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15443. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15444. fi
  15445. for ac_func in iconv
  15446. do :
  15447. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15448. if test "x$ac_cv_func_iconv" = xyes; then :
  15449. cat >>confdefs.h <<_ACEOF
  15450. #define HAVE_ICONV 1
  15451. _ACEOF
  15452. fi
  15453. done
  15454. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15455. "
  15456. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15457. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15458. fi
  15459. for ac_header in libunwind.h
  15460. do :
  15461. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15462. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15463. cat >>confdefs.h <<_ACEOF
  15464. #define HAVE_LIBUNWIND_H 1
  15465. _ACEOF
  15466. fi
  15467. done
  15468. fi
  15469. # Check whether --enable-gcc-atomics was given.
  15470. if test "${enable_gcc_atomics+set}" = set; then :
  15471. enableval=$enable_gcc_atomics;
  15472. else
  15473. enable_gcc_atomics=yes
  15474. fi
  15475. if test x$enable_gcc_atomics = xyes; then
  15476. have_gcc_atomics=no
  15477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15478. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15480. /* end confdefs.h. */
  15481. int
  15482. main ()
  15483. {
  15484. int a;
  15485. void *x, *y, *z;
  15486. __sync_lock_test_and_set(&a, 4);
  15487. __sync_lock_test_and_set(&x, y);
  15488. __sync_fetch_and_add(&a, 1);
  15489. __sync_bool_compare_and_swap(&a, 5, 10);
  15490. __sync_bool_compare_and_swap(&x, y, z);
  15491. ;
  15492. return 0;
  15493. }
  15494. _ACEOF
  15495. if ac_fn_c_try_link "$LINENO"; then :
  15496. have_gcc_atomics=yes
  15497. fi
  15498. rm -f core conftest.err conftest.$ac_objext \
  15499. conftest$ac_exeext conftest.$ac_ext
  15500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15501. $as_echo "$have_gcc_atomics" >&6; }
  15502. if test x$have_gcc_atomics = xyes; then
  15503. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15504. else
  15505. # See if we have the minimum operation needed for GCC atomics
  15506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15507. /* end confdefs.h. */
  15508. int
  15509. main ()
  15510. {
  15511. int a;
  15512. __sync_lock_test_and_set(&a, 1);
  15513. __sync_lock_release(&a);
  15514. ;
  15515. return 0;
  15516. }
  15517. _ACEOF
  15518. if ac_fn_c_try_link "$LINENO"; then :
  15519. have_gcc_sync_lock_test_and_set=yes
  15520. fi
  15521. rm -f core conftest.err conftest.$ac_objext \
  15522. conftest$ac_exeext conftest.$ac_ext
  15523. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15524. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15525. fi
  15526. fi
  15527. fi
  15528. # Standard C sources
  15529. SOURCES="$SOURCES $srcdir/src/*.c"
  15530. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15531. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15532. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15533. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15534. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15535. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15536. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15537. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15538. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15539. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15540. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15541. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15542. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15543. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15544. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15545. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15546. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15547. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15548. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15549. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15550. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15551. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15552. case "$host" in
  15553. *-*-emscripten*)
  15554. default_atomic=no
  15555. ;;
  15556. *)
  15557. default_atomic=yes
  15558. ;;
  15559. esac
  15560. # Check whether --enable-atomic was given.
  15561. if test "${enable_atomic+set}" = set; then :
  15562. enableval=$enable_atomic;
  15563. else
  15564. enable_atomic=$default_atomic
  15565. fi
  15566. if test x$enable_atomic != xyes; then
  15567. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15568. else
  15569. SUMMARY_modules="${SUMMARY_modules} atomic"
  15570. fi
  15571. # Check whether --enable-audio was given.
  15572. if test "${enable_audio+set}" = set; then :
  15573. enableval=$enable_audio;
  15574. else
  15575. enable_audio=yes
  15576. fi
  15577. if test x$enable_audio != xyes; then
  15578. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15579. else
  15580. SUMMARY_modules="${SUMMARY_modules} audio"
  15581. fi
  15582. # Check whether --enable-video was given.
  15583. if test "${enable_video+set}" = set; then :
  15584. enableval=$enable_video;
  15585. else
  15586. enable_video=yes
  15587. fi
  15588. if test x$enable_video != xyes; then
  15589. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15590. else
  15591. SUMMARY_modules="${SUMMARY_modules} video"
  15592. fi
  15593. # Check whether --enable-render was given.
  15594. if test "${enable_render+set}" = set; then :
  15595. enableval=$enable_render;
  15596. else
  15597. enable_render=yes
  15598. fi
  15599. if test x$enable_render != xyes; then
  15600. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15601. else
  15602. SUMMARY_modules="${SUMMARY_modules} render"
  15603. fi
  15604. # Check whether --enable-events was given.
  15605. if test "${enable_events+set}" = set; then :
  15606. enableval=$enable_events;
  15607. else
  15608. enable_events=yes
  15609. fi
  15610. if test x$enable_events != xyes; then
  15611. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15612. else
  15613. SUMMARY_modules="${SUMMARY_modules} events"
  15614. fi
  15615. # Check whether --enable-joystick was given.
  15616. if test "${enable_joystick+set}" = set; then :
  15617. enableval=$enable_joystick;
  15618. else
  15619. enable_joystick=yes
  15620. fi
  15621. if test x$enable_joystick != xyes; then
  15622. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15623. else
  15624. SUMMARY_modules="${SUMMARY_modules} joystick"
  15625. fi
  15626. # Check whether --enable-haptic was given.
  15627. if test "${enable_haptic+set}" = set; then :
  15628. enableval=$enable_haptic;
  15629. else
  15630. enable_haptic=yes
  15631. fi
  15632. if test x$enable_haptic != xyes; then
  15633. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15634. else
  15635. SUMMARY_modules="${SUMMARY_modules} haptic"
  15636. fi
  15637. # Check whether --enable-hidapi was given.
  15638. if test "${enable_hidapi+set}" = set; then :
  15639. enableval=$enable_hidapi;
  15640. else
  15641. enable_hidapi=yes
  15642. fi
  15643. if test x$enable_hidapi != xyes; then
  15644. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15645. else
  15646. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15647. fi
  15648. # Check whether --enable-sensor was given.
  15649. if test "${enable_sensor+set}" = set; then :
  15650. enableval=$enable_sensor;
  15651. else
  15652. enable_sensor=yes
  15653. fi
  15654. if test x$enable_sensor != xyes; then
  15655. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15656. else
  15657. SUMMARY_modules="${SUMMARY_modules} sensor"
  15658. fi
  15659. # Check whether --enable-power was given.
  15660. if test "${enable_power+set}" = set; then :
  15661. enableval=$enable_power;
  15662. else
  15663. enable_power=yes
  15664. fi
  15665. if test x$enable_power != xyes; then
  15666. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15667. else
  15668. SUMMARY_modules="${SUMMARY_modules} power"
  15669. fi
  15670. # Check whether --enable-filesystem was given.
  15671. if test "${enable_filesystem+set}" = set; then :
  15672. enableval=$enable_filesystem;
  15673. else
  15674. enable_filesystem=yes
  15675. fi
  15676. if test x$enable_filesystem != xyes; then
  15677. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15678. else
  15679. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15680. fi
  15681. # Check whether --enable-threads was given.
  15682. if test "${enable_threads+set}" = set; then :
  15683. enableval=$enable_threads;
  15684. else
  15685. enable_threads=yes
  15686. fi
  15687. if test x$enable_threads != xyes; then
  15688. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15689. else
  15690. SUMMARY_modules="${SUMMARY_modules} threads"
  15691. fi
  15692. # Check whether --enable-timers was given.
  15693. if test "${enable_timers+set}" = set; then :
  15694. enableval=$enable_timers;
  15695. else
  15696. enable_timers=yes
  15697. fi
  15698. if test x$enable_timers != xyes; then
  15699. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15700. else
  15701. SUMMARY_modules="${SUMMARY_modules} timers"
  15702. fi
  15703. # Check whether --enable-file was given.
  15704. if test "${enable_file+set}" = set; then :
  15705. enableval=$enable_file;
  15706. else
  15707. enable_file=yes
  15708. fi
  15709. if test x$enable_file != xyes; then
  15710. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15711. else
  15712. SUMMARY_modules="${SUMMARY_modules} file"
  15713. fi
  15714. # Check whether --enable-misc was given.
  15715. if test "${enable_misc+set}" = set; then :
  15716. enableval=$enable_misc;
  15717. else
  15718. enable_misc=yes
  15719. fi
  15720. if test x$enable_misc != xyes; then
  15721. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15722. else
  15723. SUMMARY_modules="${SUMMARY_modules} misc"
  15724. fi
  15725. # Check whether --enable-locale was given.
  15726. if test "${enable_locale+set}" = set; then :
  15727. enableval=$enable_locale;
  15728. else
  15729. enable_locale=yes
  15730. fi
  15731. if test x$enable_locale != xyes; then
  15732. $as_echo "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  15733. else
  15734. SUMMARY_modules="${SUMMARY_modules} locale"
  15735. fi
  15736. # Check whether --enable-loadso was given.
  15737. if test "${enable_loadso+set}" = set; then :
  15738. enableval=$enable_loadso;
  15739. else
  15740. enable_loadso=yes
  15741. fi
  15742. if test x$enable_loadso != xyes; then
  15743. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15744. else
  15745. SUMMARY_modules="${SUMMARY_modules} loadso"
  15746. fi
  15747. # Check whether --enable-cpuinfo was given.
  15748. if test "${enable_cpuinfo+set}" = set; then :
  15749. enableval=$enable_cpuinfo;
  15750. else
  15751. enable_cpuinfo=yes
  15752. fi
  15753. if test x$enable_cpuinfo != xyes; then
  15754. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15755. else
  15756. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15757. fi
  15758. # Check whether --enable-assembly was given.
  15759. if test "${enable_assembly+set}" = set; then :
  15760. enableval=$enable_assembly;
  15761. else
  15762. enable_assembly=yes
  15763. fi
  15764. if test x$enable_assembly = xyes; then
  15765. SUMMARY_modules="${SUMMARY_modules} assembly"
  15766. # Make sure that we don't generate floating point code that would
  15767. # cause illegal instruction exceptions on older processors
  15768. case "$host" in
  15769. *-*-darwin*)
  15770. # Don't need to worry about Apple hardware, it's all SSE capable
  15771. default_ssemath=yes
  15772. ;;
  15773. *64-*-*)
  15774. # x86 64-bit architectures all have SSE instructions
  15775. default_ssemath=yes
  15776. ;;
  15777. *)
  15778. default_ssemath=no
  15779. ;;
  15780. esac
  15781. # Check whether --enable-ssemath was given.
  15782. if test "${enable_ssemath+set}" = set; then :
  15783. enableval=$enable_ssemath;
  15784. else
  15785. enable_ssemath=$default_ssemath
  15786. fi
  15787. if test x$enable_ssemath = xno; then
  15788. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15789. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15790. fi
  15791. fi
  15792. # Check whether --enable-mmx was given.
  15793. if test "${enable_mmx+set}" = set; then :
  15794. enableval=$enable_mmx;
  15795. else
  15796. enable_mmx=yes
  15797. fi
  15798. if test x$enable_mmx = xyes; then
  15799. save_CFLAGS="$CFLAGS"
  15800. have_gcc_mmx=no
  15801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15802. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15803. mmx_CFLAGS="-mmmx"
  15804. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15806. /* end confdefs.h. */
  15807. #ifdef __MINGW32__
  15808. #include <_mingw.h>
  15809. #ifdef __MINGW64_VERSION_MAJOR
  15810. #include <intrin.h>
  15811. #else
  15812. #include <mmintrin.h>
  15813. #endif
  15814. #else
  15815. #include <mmintrin.h>
  15816. #endif
  15817. #ifndef __MMX__
  15818. #error Assembler CPP flag not enabled
  15819. #endif
  15820. int
  15821. main ()
  15822. {
  15823. ;
  15824. return 0;
  15825. }
  15826. _ACEOF
  15827. if ac_fn_c_try_compile "$LINENO"; then :
  15828. have_gcc_mmx=yes
  15829. fi
  15830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15832. $as_echo "$have_gcc_mmx" >&6; }
  15833. CFLAGS="$save_CFLAGS"
  15834. if test x$have_gcc_mmx = xyes; then
  15835. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15836. SUMMARY_math="${SUMMARY_math} mmx"
  15837. fi
  15838. fi
  15839. # Check whether --enable-3dnow was given.
  15840. if test "${enable_3dnow+set}" = set; then :
  15841. enableval=$enable_3dnow;
  15842. else
  15843. enable_3dnow=yes
  15844. fi
  15845. if test x$enable_3dnow = xyes; then
  15846. save_CFLAGS="$CFLAGS"
  15847. have_gcc_3dnow=no
  15848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15849. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15850. amd3dnow_CFLAGS="-m3dnow"
  15851. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15853. /* end confdefs.h. */
  15854. #include <mm3dnow.h>
  15855. #ifndef __3dNOW__
  15856. #error Assembler CPP flag not enabled
  15857. #endif
  15858. int
  15859. main ()
  15860. {
  15861. void *p = 0;
  15862. _m_prefetch(p);
  15863. ;
  15864. return 0;
  15865. }
  15866. _ACEOF
  15867. if ac_fn_c_try_link "$LINENO"; then :
  15868. have_gcc_3dnow=yes
  15869. fi
  15870. rm -f core conftest.err conftest.$ac_objext \
  15871. conftest$ac_exeext conftest.$ac_ext
  15872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15873. $as_echo "$have_gcc_3dnow" >&6; }
  15874. CFLAGS="$save_CFLAGS"
  15875. if test x$have_gcc_3dnow = xyes; then
  15876. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15877. SUMMARY_math="${SUMMARY_math} 3dnow"
  15878. fi
  15879. fi
  15880. # Check whether --enable-sse was given.
  15881. if test "${enable_sse+set}" = set; then :
  15882. enableval=$enable_sse;
  15883. else
  15884. enable_sse=yes
  15885. fi
  15886. if test x$enable_sse = xyes; then
  15887. save_CFLAGS="$CFLAGS"
  15888. have_gcc_sse=no
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15890. $as_echo_n "checking for GCC -msse option... " >&6; }
  15891. sse_CFLAGS="-msse"
  15892. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15894. /* end confdefs.h. */
  15895. #ifdef __MINGW32__
  15896. #include <_mingw.h>
  15897. #ifdef __MINGW64_VERSION_MAJOR
  15898. #include <intrin.h>
  15899. #else
  15900. #include <xmmintrin.h>
  15901. #endif
  15902. #else
  15903. #include <xmmintrin.h>
  15904. #endif
  15905. #ifndef __SSE__
  15906. #error Assembler CPP flag not enabled
  15907. #endif
  15908. int
  15909. main ()
  15910. {
  15911. ;
  15912. return 0;
  15913. }
  15914. _ACEOF
  15915. if ac_fn_c_try_compile "$LINENO"; then :
  15916. have_gcc_sse=yes
  15917. fi
  15918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15920. $as_echo "$have_gcc_sse" >&6; }
  15921. CFLAGS="$save_CFLAGS"
  15922. if test x$have_gcc_sse = xyes; then
  15923. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15924. SUMMARY_math="${SUMMARY_math} sse"
  15925. fi
  15926. fi
  15927. # Check whether --enable-sse2 was given.
  15928. if test "${enable_sse2+set}" = set; then :
  15929. enableval=$enable_sse2;
  15930. else
  15931. enable_sse2=$default_ssemath
  15932. fi
  15933. if test x$enable_sse2 = xyes; then
  15934. save_CFLAGS="$CFLAGS"
  15935. have_gcc_sse2=no
  15936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15937. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15938. sse2_CFLAGS="-msse2"
  15939. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15941. /* end confdefs.h. */
  15942. #ifdef __MINGW32__
  15943. #include <_mingw.h>
  15944. #ifdef __MINGW64_VERSION_MAJOR
  15945. #include <intrin.h>
  15946. #else
  15947. #include <emmintrin.h>
  15948. #endif
  15949. #else
  15950. #include <emmintrin.h>
  15951. #endif
  15952. #ifndef __SSE2__
  15953. #error Assembler CPP flag not enabled
  15954. #endif
  15955. int
  15956. main ()
  15957. {
  15958. ;
  15959. return 0;
  15960. }
  15961. _ACEOF
  15962. if ac_fn_c_try_compile "$LINENO"; then :
  15963. have_gcc_sse2=yes
  15964. fi
  15965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15967. $as_echo "$have_gcc_sse2" >&6; }
  15968. CFLAGS="$save_CFLAGS"
  15969. if test x$have_gcc_sse2 = xyes; then
  15970. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15971. SUMMARY_math="${SUMMARY_math} sse2"
  15972. fi
  15973. fi
  15974. # Check whether --enable-sse3 was given.
  15975. if test "${enable_sse3+set}" = set; then :
  15976. enableval=$enable_sse3;
  15977. else
  15978. enable_sse3=$default_ssemath
  15979. fi
  15980. if test x$enable_sse3 = xyes; then
  15981. save_CFLAGS="$CFLAGS"
  15982. have_gcc_sse3=no
  15983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15984. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15985. sse3_CFLAGS="-msse3"
  15986. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15988. /* end confdefs.h. */
  15989. #ifdef __MINGW32__
  15990. #include <_mingw.h>
  15991. #ifdef __MINGW64_VERSION_MAJOR
  15992. #include <intrin.h>
  15993. #else
  15994. #include <pmmintrin.h>
  15995. #endif
  15996. #else
  15997. #include <pmmintrin.h>
  15998. #endif
  15999. #ifndef __SSE2__
  16000. #error Assembler CPP flag not enabled
  16001. #endif
  16002. int
  16003. main ()
  16004. {
  16005. ;
  16006. return 0;
  16007. }
  16008. _ACEOF
  16009. if ac_fn_c_try_compile "$LINENO"; then :
  16010. have_gcc_sse3=yes
  16011. fi
  16012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  16014. $as_echo "$have_gcc_sse3" >&6; }
  16015. CFLAGS="$save_CFLAGS"
  16016. if test x$have_gcc_sse3 = xyes; then
  16017. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  16018. SUMMARY_math="${SUMMARY_math} sse3"
  16019. fi
  16020. fi
  16021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  16022. $as_echo_n "checking for immintrin.h... " >&6; }
  16023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16024. /* end confdefs.h. */
  16025. #include <immintrin.h>
  16026. int
  16027. main ()
  16028. {
  16029. ;
  16030. return 0;
  16031. }
  16032. _ACEOF
  16033. if ac_fn_c_try_compile "$LINENO"; then :
  16034. have_immintrin_h_hdr=yes
  16035. else
  16036. have_immintrin_h_hdr=no
  16037. fi
  16038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16040. $as_echo "$have_immintrin_h_hdr" >&6; }
  16041. if test x$have_immintrin_h_hdr = xyes; then
  16042. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16043. fi
  16044. # Check whether --enable-altivec was given.
  16045. if test "${enable_altivec+set}" = set; then :
  16046. enableval=$enable_altivec;
  16047. else
  16048. enable_altivec=yes
  16049. fi
  16050. if test x$enable_altivec = xyes; then
  16051. save_CFLAGS="$CFLAGS"
  16052. have_gcc_altivec=no
  16053. have_altivec_h_hdr=no
  16054. altivec_CFLAGS="-maltivec"
  16055. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16057. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16059. /* end confdefs.h. */
  16060. #include <altivec.h>
  16061. vector unsigned int vzero() {
  16062. return vec_splat_u32(0);
  16063. }
  16064. int
  16065. main ()
  16066. {
  16067. ;
  16068. return 0;
  16069. }
  16070. _ACEOF
  16071. if ac_fn_c_try_compile "$LINENO"; then :
  16072. have_gcc_altivec=yes
  16073. have_altivec_h_hdr=yes
  16074. fi
  16075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16077. $as_echo "$have_gcc_altivec" >&6; }
  16078. if test x$have_gcc_altivec = xno; then
  16079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16080. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16082. /* end confdefs.h. */
  16083. vector unsigned int vzero() {
  16084. return vec_splat_u32(0);
  16085. }
  16086. int
  16087. main ()
  16088. {
  16089. ;
  16090. return 0;
  16091. }
  16092. _ACEOF
  16093. if ac_fn_c_try_compile "$LINENO"; then :
  16094. have_gcc_altivec=yes
  16095. fi
  16096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16098. $as_echo "$have_gcc_altivec" >&6; }
  16099. fi
  16100. if test x$have_gcc_altivec = xno; then
  16101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16102. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16103. altivec_CFLAGS="-faltivec"
  16104. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16106. /* end confdefs.h. */
  16107. #include <altivec.h>
  16108. vector unsigned int vzero() {
  16109. return vec_splat_u32(0);
  16110. }
  16111. int
  16112. main ()
  16113. {
  16114. ;
  16115. return 0;
  16116. }
  16117. _ACEOF
  16118. if ac_fn_c_try_compile "$LINENO"; then :
  16119. have_gcc_altivec=yes
  16120. have_altivec_h_hdr=yes
  16121. fi
  16122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16124. $as_echo "$have_gcc_altivec" >&6; }
  16125. fi
  16126. if test x$have_gcc_altivec = xno; then
  16127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16128. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16130. /* end confdefs.h. */
  16131. vector unsigned int vzero() {
  16132. return vec_splat_u32(0);
  16133. }
  16134. int
  16135. main ()
  16136. {
  16137. ;
  16138. return 0;
  16139. }
  16140. _ACEOF
  16141. if ac_fn_c_try_compile "$LINENO"; then :
  16142. have_gcc_altivec=yes
  16143. fi
  16144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16146. $as_echo "$have_gcc_altivec" >&6; }
  16147. fi
  16148. CFLAGS="$save_CFLAGS"
  16149. if test x$have_gcc_altivec = xyes; then
  16150. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16151. if test x$have_altivec_h_hdr = xyes; then
  16152. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16153. fi
  16154. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16155. SUMMARY_math="${SUMMARY_math} altivec"
  16156. fi
  16157. fi
  16158. fi
  16159. CheckOSS()
  16160. {
  16161. # Check whether --enable-oss was given.
  16162. if test "${enable_oss+set}" = set; then :
  16163. enableval=$enable_oss;
  16164. else
  16165. enable_oss=maybe
  16166. fi
  16167. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16168. # use sndio instead. So on there, we default to disabled. You can force
  16169. # it on if you really want, though.
  16170. if test x$enable_oss = xmaybe; then
  16171. enable_oss=yes
  16172. case "$host" in
  16173. *-*-openbsd*)
  16174. enable_oss=no;;
  16175. esac
  16176. fi
  16177. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16179. $as_echo_n "checking for OSS audio support... " >&6; }
  16180. have_oss=no
  16181. if test x$have_oss != xyes; then
  16182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16183. /* end confdefs.h. */
  16184. #include <sys/soundcard.h>
  16185. int
  16186. main ()
  16187. {
  16188. int arg = SNDCTL_DSP_SETFRAGMENT;
  16189. ;
  16190. return 0;
  16191. }
  16192. _ACEOF
  16193. if ac_fn_c_try_compile "$LINENO"; then :
  16194. have_oss=yes
  16195. fi
  16196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16197. fi
  16198. if test x$have_oss != xyes; then
  16199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16200. /* end confdefs.h. */
  16201. #include <soundcard.h>
  16202. int
  16203. main ()
  16204. {
  16205. int arg = SNDCTL_DSP_SETFRAGMENT;
  16206. ;
  16207. return 0;
  16208. }
  16209. _ACEOF
  16210. if ac_fn_c_try_compile "$LINENO"; then :
  16211. have_oss=yes
  16212. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16213. fi
  16214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16215. fi
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16217. $as_echo "$have_oss" >&6; }
  16218. if test x$have_oss = xyes; then
  16219. SUMMARY_audio="${SUMMARY_audio} oss"
  16220. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16221. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16222. have_audio=yes
  16223. # We may need to link with ossaudio emulation library
  16224. case "$host" in
  16225. *-*-openbsd*|*-*-netbsd*)
  16226. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16227. esac
  16228. fi
  16229. fi
  16230. }
  16231. CheckALSA()
  16232. {
  16233. # Check whether --enable-alsa was given.
  16234. if test "${enable_alsa+set}" = set; then :
  16235. enableval=$enable_alsa;
  16236. else
  16237. enable_alsa=yes
  16238. fi
  16239. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16240. alsa_save_CFLAGS="$CFLAGS"
  16241. alsa_save_LDFLAGS="$LDFLAGS"
  16242. alsa_save_LIBS="$LIBS"
  16243. alsa_found=yes
  16244. # Check whether --with-alsa-prefix was given.
  16245. if test "${with_alsa_prefix+set}" = set; then :
  16246. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16247. else
  16248. alsa_prefix=""
  16249. fi
  16250. # Check whether --with-alsa-inc-prefix was given.
  16251. if test "${with_alsa_inc_prefix+set}" = set; then :
  16252. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16253. else
  16254. alsa_inc_prefix=""
  16255. fi
  16256. # Check whether --enable-alsatest was given.
  16257. if test "${enable_alsatest+set}" = set; then :
  16258. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16259. else
  16260. enable_alsatest=yes
  16261. fi
  16262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16263. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16264. if test "$alsa_inc_prefix" != "" ; then
  16265. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16266. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16267. fi
  16268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16269. $as_echo "$ALSA_CFLAGS" >&6; }
  16270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16271. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16272. if test "$alsa_prefix" != "" ; then
  16273. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16274. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16275. fi
  16276. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16277. LIBS=`echo $LIBS | sed 's/-lm//'`
  16278. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16279. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16280. LIBS=`echo $LIBS | sed 's/ //'`
  16281. LIBS="$ALSA_LIBS $LIBS"
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16283. $as_echo "$ALSA_LIBS" >&6; }
  16284. min_alsa_version=1.0.11
  16285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16286. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16287. no_alsa=""
  16288. alsa_min_major_version=`echo $min_alsa_version | \
  16289. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16290. alsa_min_minor_version=`echo $min_alsa_version | \
  16291. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16292. alsa_min_micro_version=`echo $min_alsa_version | \
  16293. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16294. ac_ext=c
  16295. ac_cpp='$CPP $CPPFLAGS'
  16296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16300. /* end confdefs.h. */
  16301. #include <alsa/asoundlib.h>
  16302. int
  16303. main ()
  16304. {
  16305. /* ensure backward compatibility */
  16306. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16307. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16308. #endif
  16309. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16310. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16311. #endif
  16312. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16313. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16314. #endif
  16315. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16316. exit(0);
  16317. # else
  16318. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16319. # error not present
  16320. # endif
  16321. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16322. exit(0);
  16323. # else
  16324. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16325. # error not present
  16326. # endif
  16327. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16328. # error not present
  16329. # endif
  16330. # endif
  16331. # endif
  16332. exit(0);
  16333. ;
  16334. return 0;
  16335. }
  16336. _ACEOF
  16337. if ac_fn_c_try_compile "$LINENO"; then :
  16338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16339. $as_echo "found." >&6; }
  16340. else
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16342. $as_echo "not present." >&6; }
  16343. alsa_found=no
  16344. fi
  16345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16346. ac_ext=c
  16347. ac_cpp='$CPP $CPPFLAGS'
  16348. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16349. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16350. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16351. if test "x$enable_alsatest" = "xyes"; then
  16352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16353. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16354. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16355. $as_echo_n "(cached) " >&6
  16356. else
  16357. ac_check_lib_save_LIBS=$LIBS
  16358. LIBS="-lasound $LIBS"
  16359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16360. /* end confdefs.h. */
  16361. /* Override any GCC internal prototype to avoid an error.
  16362. Use char because int might match the return type of a GCC
  16363. builtin and then its argument prototype would still apply. */
  16364. #ifdef __cplusplus
  16365. extern "C"
  16366. #endif
  16367. char snd_ctl_open ();
  16368. int
  16369. main ()
  16370. {
  16371. return snd_ctl_open ();
  16372. ;
  16373. return 0;
  16374. }
  16375. _ACEOF
  16376. if ac_fn_c_try_link "$LINENO"; then :
  16377. ac_cv_lib_asound_snd_ctl_open=yes
  16378. else
  16379. ac_cv_lib_asound_snd_ctl_open=no
  16380. fi
  16381. rm -f core conftest.err conftest.$ac_objext \
  16382. conftest$ac_exeext conftest.$ac_ext
  16383. LIBS=$ac_check_lib_save_LIBS
  16384. fi
  16385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16386. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16387. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16388. cat >>confdefs.h <<_ACEOF
  16389. #define HAVE_LIBASOUND 1
  16390. _ACEOF
  16391. LIBS="-lasound $LIBS"
  16392. else
  16393. alsa_found=no
  16394. fi
  16395. fi
  16396. if test "x$alsa_found" = "xyes" ; then
  16397. have_alsa=yes
  16398. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16399. LIBS=`echo $LIBS | sed 's/ //'`
  16400. LIBS="-lasound $LIBS"
  16401. fi
  16402. if test "x$alsa_found" = "xno" ; then
  16403. have_alsa=no
  16404. CFLAGS="$alsa_save_CFLAGS"
  16405. LDFLAGS="$alsa_save_LDFLAGS"
  16406. LIBS="$alsa_save_LIBS"
  16407. ALSA_CFLAGS=""
  16408. ALSA_LIBS=""
  16409. fi
  16410. # Restore all flags from before the ALSA detection runs
  16411. CFLAGS="$alsa_save_CFLAGS"
  16412. LDFLAGS="$alsa_save_LDFLAGS"
  16413. LIBS="$alsa_save_LIBS"
  16414. if test x$have_alsa = xyes; then
  16415. # Check whether --enable-alsa-shared was given.
  16416. if test "${enable_alsa_shared+set}" = set; then :
  16417. enableval=$enable_alsa_shared;
  16418. else
  16419. enable_alsa_shared=yes
  16420. fi
  16421. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16422. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16423. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16424. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16425. if test x$have_loadso != xyes && \
  16426. test x$enable_alsa_shared = xyes; then
  16427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16428. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16429. fi
  16430. if test x$have_loadso = xyes && \
  16431. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16432. echo "-- dynamic libasound -> $alsa_lib"
  16433. cat >>confdefs.h <<_ACEOF
  16434. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16435. _ACEOF
  16436. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16437. else
  16438. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16439. SUMMARY_audio="${SUMMARY_audio} alsa"
  16440. fi
  16441. have_audio=yes
  16442. fi
  16443. fi
  16444. }
  16445. CheckJACK()
  16446. {
  16447. # Check whether --enable-jack was given.
  16448. if test "${enable_jack+set}" = set; then :
  16449. enableval=$enable_jack;
  16450. else
  16451. enable_jack=yes
  16452. fi
  16453. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16454. pkg_failed=no
  16455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16456. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16457. if test -n "$JACK_CFLAGS"; then
  16458. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16459. elif test -n "$PKG_CONFIG"; then
  16460. if test -n "$PKG_CONFIG" && \
  16461. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16462. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16463. ac_status=$?
  16464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16465. test $ac_status = 0; }; then
  16466. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16467. test "x$?" != "x0" && pkg_failed=yes
  16468. else
  16469. pkg_failed=yes
  16470. fi
  16471. else
  16472. pkg_failed=untried
  16473. fi
  16474. if test -n "$JACK_LIBS"; then
  16475. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16476. elif test -n "$PKG_CONFIG"; then
  16477. if test -n "$PKG_CONFIG" && \
  16478. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16479. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16480. ac_status=$?
  16481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16482. test $ac_status = 0; }; then
  16483. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16484. test "x$?" != "x0" && pkg_failed=yes
  16485. else
  16486. pkg_failed=yes
  16487. fi
  16488. else
  16489. pkg_failed=untried
  16490. fi
  16491. if test $pkg_failed = yes; then
  16492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16493. $as_echo "no" >&6; }
  16494. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16495. _pkg_short_errors_supported=yes
  16496. else
  16497. _pkg_short_errors_supported=no
  16498. fi
  16499. if test $_pkg_short_errors_supported = yes; then
  16500. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16501. else
  16502. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16503. fi
  16504. # Put the nasty error message in config.log where it belongs
  16505. echo "$JACK_PKG_ERRORS" >&5
  16506. audio_jack=no
  16507. elif test $pkg_failed = untried; then
  16508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16509. $as_echo "no" >&6; }
  16510. audio_jack=no
  16511. else
  16512. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16513. JACK_LIBS=$pkg_cv_JACK_LIBS
  16514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16515. $as_echo "yes" >&6; }
  16516. audio_jack=yes
  16517. fi
  16518. if test x$audio_jack = xyes; then
  16519. # Check whether --enable-jack-shared was given.
  16520. if test "${enable_jack_shared+set}" = set; then :
  16521. enableval=$enable_jack_shared;
  16522. else
  16523. enable_jack_shared=yes
  16524. fi
  16525. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16526. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16527. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16528. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16529. if test x$have_loadso != xyes && \
  16530. test x$enable_jack_shared = xyes; then
  16531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16532. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16533. fi
  16534. if test x$have_loadso = xyes && \
  16535. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16536. echo "-- dynamic libjack -> $jack_lib"
  16537. cat >>confdefs.h <<_ACEOF
  16538. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16539. _ACEOF
  16540. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16541. case "$host" in
  16542. # On Solaris, jack must be linked deferred explicitly
  16543. # to prevent undefined symbol failures.
  16544. *-*-solaris*)
  16545. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16546. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16547. esac
  16548. else
  16549. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16550. SUMMARY_audio="${SUMMARY_audio} jack"
  16551. fi
  16552. have_audio=yes
  16553. fi
  16554. fi
  16555. }
  16556. CheckESD()
  16557. {
  16558. # Check whether --enable-esd was given.
  16559. if test "${enable_esd+set}" = set; then :
  16560. enableval=$enable_esd;
  16561. else
  16562. enable_esd=yes
  16563. fi
  16564. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16565. # Check whether --with-esd-prefix was given.
  16566. if test "${with_esd_prefix+set}" = set; then :
  16567. withval=$with_esd_prefix; esd_prefix="$withval"
  16568. else
  16569. esd_prefix=""
  16570. fi
  16571. # Check whether --with-esd-exec-prefix was given.
  16572. if test "${with_esd_exec_prefix+set}" = set; then :
  16573. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16574. else
  16575. esd_exec_prefix=""
  16576. fi
  16577. # Check whether --enable-esdtest was given.
  16578. if test "${enable_esdtest+set}" = set; then :
  16579. enableval=$enable_esdtest;
  16580. else
  16581. enable_esdtest=yes
  16582. fi
  16583. if test x$esd_exec_prefix != x ; then
  16584. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16585. if test x${ESD_CONFIG+set} != xset ; then
  16586. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16587. fi
  16588. fi
  16589. if test x$esd_prefix != x ; then
  16590. esd_args="$esd_args --prefix=$esd_prefix"
  16591. if test x${ESD_CONFIG+set} != xset ; then
  16592. ESD_CONFIG=$esd_prefix/bin/esd-config
  16593. fi
  16594. fi
  16595. # Extract the first word of "esd-config", so it can be a program name with args.
  16596. set dummy esd-config; ac_word=$2
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16598. $as_echo_n "checking for $ac_word... " >&6; }
  16599. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16600. $as_echo_n "(cached) " >&6
  16601. else
  16602. case $ESD_CONFIG in
  16603. [\\/]* | ?:[\\/]*)
  16604. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16605. ;;
  16606. *)
  16607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16608. for as_dir in $PATH
  16609. do
  16610. IFS=$as_save_IFS
  16611. test -z "$as_dir" && as_dir=.
  16612. for ac_exec_ext in '' $ac_executable_extensions; do
  16613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16614. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16616. break 2
  16617. fi
  16618. done
  16619. done
  16620. IFS=$as_save_IFS
  16621. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16622. ;;
  16623. esac
  16624. fi
  16625. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16626. if test -n "$ESD_CONFIG"; then
  16627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16628. $as_echo "$ESD_CONFIG" >&6; }
  16629. else
  16630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16631. $as_echo "no" >&6; }
  16632. fi
  16633. min_esd_version=0.2.8
  16634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16635. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16636. no_esd=""
  16637. if test "$ESD_CONFIG" = "no" ; then
  16638. no_esd=yes
  16639. else
  16640. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16641. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16642. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16643. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16644. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16645. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16646. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16647. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16648. if test "x$enable_esdtest" = "xyes" ; then
  16649. ac_ext=c
  16650. ac_cpp='$CPP $CPPFLAGS'
  16651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16654. ac_save_CFLAGS="$CFLAGS"
  16655. ac_save_LIBS="$LIBS"
  16656. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16657. LIBS="$LIBS $ESD_LIBS"
  16658. rm -f conf.esdtest
  16659. if test "$cross_compiling" = yes; then :
  16660. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16661. else
  16662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16663. /* end confdefs.h. */
  16664. #include <stdio.h>
  16665. #include <stdlib.h>
  16666. #include <esd.h>
  16667. int main (void)
  16668. {
  16669. int major, minor, micro;
  16670. FILE *fp = fopen("conf.esdtest", "w");
  16671. if (fp) fclose(fp);
  16672. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16673. printf("%s, bad version string\n", "$min_esd_version");
  16674. exit(1);
  16675. }
  16676. if (($esd_major_version > major) ||
  16677. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16678. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16679. {
  16680. return 0;
  16681. }
  16682. else
  16683. {
  16684. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16685. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16686. printf("*** best to upgrade to the required version.\n");
  16687. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16688. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16689. printf("*** config.cache before re-running configure\n");
  16690. return 1;
  16691. }
  16692. }
  16693. _ACEOF
  16694. if ac_fn_c_try_run "$LINENO"; then :
  16695. else
  16696. no_esd=yes
  16697. fi
  16698. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16699. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16700. fi
  16701. CFLAGS="$ac_save_CFLAGS"
  16702. LIBS="$ac_save_LIBS"
  16703. ac_ext=c
  16704. ac_cpp='$CPP $CPPFLAGS'
  16705. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16706. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16707. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16708. fi
  16709. fi
  16710. if test "x$no_esd" = x ; then
  16711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16712. $as_echo "yes" >&6; }
  16713. have_esd=yes
  16714. else
  16715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16716. $as_echo "no" >&6; }
  16717. if test "$ESD_CONFIG" = "no" ; then
  16718. echo "*** The esd-config script installed by ESD could not be found"
  16719. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16720. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16721. echo "*** full path to esd-config."
  16722. else
  16723. if test -f conf.esdtest ; then
  16724. :
  16725. else
  16726. echo "*** Could not run ESD test program, checking why..."
  16727. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16728. LIBS="$LIBS $ESD_LIBS"
  16729. ac_ext=c
  16730. ac_cpp='$CPP $CPPFLAGS'
  16731. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16732. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16733. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16735. /* end confdefs.h. */
  16736. #include <stdio.h>
  16737. #include <esd.h>
  16738. int
  16739. main ()
  16740. {
  16741. return 0;
  16742. ;
  16743. return 0;
  16744. }
  16745. _ACEOF
  16746. if ac_fn_c_try_link "$LINENO"; then :
  16747. echo "*** The test program compiled, but did not run. This usually means"
  16748. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16749. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16750. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16751. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16752. echo "*** is required on your system"
  16753. echo "***"
  16754. echo "*** If you have an old version installed, it is best to remove it, although"
  16755. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16756. else
  16757. echo "*** The test program failed to compile or link. See the file config.log for the"
  16758. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16759. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16760. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16761. fi
  16762. rm -f core conftest.err conftest.$ac_objext \
  16763. conftest$ac_exeext conftest.$ac_ext
  16764. CFLAGS="$ac_save_CFLAGS"
  16765. LIBS="$ac_save_LIBS"
  16766. ac_ext=c
  16767. ac_cpp='$CPP $CPPFLAGS'
  16768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16771. fi
  16772. fi
  16773. ESD_CFLAGS=""
  16774. ESD_LIBS=""
  16775. have_esd=no
  16776. fi
  16777. rm -f conf.esdtest
  16778. if test x$have_esd = xyes; then
  16779. # Check whether --enable-esd-shared was given.
  16780. if test "${enable_esd_shared+set}" = set; then :
  16781. enableval=$enable_esd_shared;
  16782. else
  16783. enable_esd_shared=yes
  16784. fi
  16785. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16786. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16787. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16788. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16789. if test x$have_loadso != xyes && \
  16790. test x$enable_esd_shared = xyes; then
  16791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16792. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16793. fi
  16794. if test x$have_loadso = xyes && \
  16795. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16796. echo "-- dynamic libesd -> $esd_lib"
  16797. cat >>confdefs.h <<_ACEOF
  16798. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16799. _ACEOF
  16800. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16801. else
  16802. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16803. SUMMARY_audio="${SUMMARY_audio} esd"
  16804. fi
  16805. have_audio=yes
  16806. fi
  16807. fi
  16808. }
  16809. CheckPipewire()
  16810. {
  16811. # Check whether --enable-pipewire was given.
  16812. if test "${enable_pipewire+set}" = set; then :
  16813. enableval=$enable_pipewire;
  16814. else
  16815. enable_pipewire=yes
  16816. fi
  16817. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16818. pkg_failed=no
  16819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16820. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16821. if test -n "$PIPEWIRE_CFLAGS"; then
  16822. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16823. elif test -n "$PKG_CONFIG"; then
  16824. if test -n "$PKG_CONFIG" && \
  16825. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16826. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16827. ac_status=$?
  16828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16829. test $ac_status = 0; }; then
  16830. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16831. test "x$?" != "x0" && pkg_failed=yes
  16832. else
  16833. pkg_failed=yes
  16834. fi
  16835. else
  16836. pkg_failed=untried
  16837. fi
  16838. if test -n "$PIPEWIRE_LIBS"; then
  16839. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16840. elif test -n "$PKG_CONFIG"; then
  16841. if test -n "$PKG_CONFIG" && \
  16842. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16843. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16844. ac_status=$?
  16845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16846. test $ac_status = 0; }; then
  16847. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16848. test "x$?" != "x0" && pkg_failed=yes
  16849. else
  16850. pkg_failed=yes
  16851. fi
  16852. else
  16853. pkg_failed=untried
  16854. fi
  16855. if test $pkg_failed = yes; then
  16856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16857. $as_echo "no" >&6; }
  16858. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16859. _pkg_short_errors_supported=yes
  16860. else
  16861. _pkg_short_errors_supported=no
  16862. fi
  16863. if test $_pkg_short_errors_supported = yes; then
  16864. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16865. else
  16866. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16867. fi
  16868. # Put the nasty error message in config.log where it belongs
  16869. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16870. audio_pipewire=no
  16871. elif test $pkg_failed = untried; then
  16872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16873. $as_echo "no" >&6; }
  16874. audio_pipewire=no
  16875. else
  16876. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16877. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16879. $as_echo "yes" >&6; }
  16880. audio_pipewire=yes
  16881. fi
  16882. if test x$audio_pipewire = xyes; then
  16883. # Check whether --enable-pipewire-shared was given.
  16884. if test "${enable_pipewire_shared+set}" = set; then :
  16885. enableval=$enable_pipewire_shared;
  16886. else
  16887. enable_pipewire_shared=yes
  16888. fi
  16889. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16890. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16891. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16892. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16893. if test x$have_loadso != xyes && \
  16894. test x$enable_pipewire_shared = xyes; then
  16895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16896. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16897. fi
  16898. if test x$have_loadso = xyes && \
  16899. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16900. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16901. cat >>confdefs.h <<_ACEOF
  16902. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16903. _ACEOF
  16904. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16905. else
  16906. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16907. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16908. fi
  16909. have_audio=yes
  16910. fi
  16911. fi
  16912. }
  16913. CheckPulseAudio()
  16914. {
  16915. # Check whether --enable-pulseaudio was given.
  16916. if test "${enable_pulseaudio+set}" = set; then :
  16917. enableval=$enable_pulseaudio;
  16918. else
  16919. enable_pulseaudio=yes
  16920. fi
  16921. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16922. pkg_failed=no
  16923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16924. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16925. if test -n "$PULSEAUDIO_CFLAGS"; then
  16926. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16927. elif test -n "$PKG_CONFIG"; then
  16928. if test -n "$PKG_CONFIG" && \
  16929. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16930. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16931. ac_status=$?
  16932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16933. test $ac_status = 0; }; then
  16934. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16935. test "x$?" != "x0" && pkg_failed=yes
  16936. else
  16937. pkg_failed=yes
  16938. fi
  16939. else
  16940. pkg_failed=untried
  16941. fi
  16942. if test -n "$PULSEAUDIO_LIBS"; then
  16943. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16944. elif test -n "$PKG_CONFIG"; then
  16945. if test -n "$PKG_CONFIG" && \
  16946. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16947. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16948. ac_status=$?
  16949. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16950. test $ac_status = 0; }; then
  16951. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16952. test "x$?" != "x0" && pkg_failed=yes
  16953. else
  16954. pkg_failed=yes
  16955. fi
  16956. else
  16957. pkg_failed=untried
  16958. fi
  16959. if test $pkg_failed = yes; then
  16960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16961. $as_echo "no" >&6; }
  16962. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16963. _pkg_short_errors_supported=yes
  16964. else
  16965. _pkg_short_errors_supported=no
  16966. fi
  16967. if test $_pkg_short_errors_supported = yes; then
  16968. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16969. else
  16970. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16971. fi
  16972. # Put the nasty error message in config.log where it belongs
  16973. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16974. audio_pulseaudio=no
  16975. elif test $pkg_failed = untried; then
  16976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16977. $as_echo "no" >&6; }
  16978. audio_pulseaudio=no
  16979. else
  16980. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16981. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16983. $as_echo "yes" >&6; }
  16984. audio_pulseaudio=yes
  16985. fi
  16986. if test x$audio_pulseaudio = xyes; then
  16987. # Check whether --enable-pulseaudio-shared was given.
  16988. if test "${enable_pulseaudio_shared+set}" = set; then :
  16989. enableval=$enable_pulseaudio_shared;
  16990. else
  16991. enable_pulseaudio_shared=yes
  16992. fi
  16993. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16994. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16995. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16996. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16997. if test x$have_loadso != xyes && \
  16998. test x$enable_pulseaudio_shared = xyes; then
  16999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  17000. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  17001. fi
  17002. if test x$have_loadso = xyes && \
  17003. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  17004. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  17005. cat >>confdefs.h <<_ACEOF
  17006. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  17007. _ACEOF
  17008. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  17009. case "$host" in
  17010. # On Solaris, pulseaudio must be linked deferred explicitly
  17011. # to prevent undefined symbol failures.
  17012. *-*-solaris*)
  17013. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  17014. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  17015. esac
  17016. else
  17017. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  17018. SUMMARY_audio="${SUMMARY_audio} pulse"
  17019. fi
  17020. have_audio=yes
  17021. fi
  17022. fi
  17023. }
  17024. CheckARTSC()
  17025. {
  17026. # Check whether --enable-arts was given.
  17027. if test "${enable_arts+set}" = set; then :
  17028. enableval=$enable_arts;
  17029. else
  17030. enable_arts=yes
  17031. fi
  17032. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  17033. # Extract the first word of "artsc-config", so it can be a program name with args.
  17034. set dummy artsc-config; ac_word=$2
  17035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17036. $as_echo_n "checking for $ac_word... " >&6; }
  17037. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17038. $as_echo_n "(cached) " >&6
  17039. else
  17040. case $ARTSCONFIG in
  17041. [\\/]* | ?:[\\/]*)
  17042. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17043. ;;
  17044. *)
  17045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17046. for as_dir in $PATH
  17047. do
  17048. IFS=$as_save_IFS
  17049. test -z "$as_dir" && as_dir=.
  17050. for ac_exec_ext in '' $ac_executable_extensions; do
  17051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17052. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17054. break 2
  17055. fi
  17056. done
  17057. done
  17058. IFS=$as_save_IFS
  17059. ;;
  17060. esac
  17061. fi
  17062. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17063. if test -n "$ARTSCONFIG"; then
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17065. $as_echo "$ARTSCONFIG" >&6; }
  17066. else
  17067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17068. $as_echo "no" >&6; }
  17069. fi
  17070. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17071. : # arts isn't installed
  17072. else
  17073. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17074. ARTS_LIBS=`$ARTSCONFIG --libs`
  17075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17076. $as_echo_n "checking for aRts development environment... " >&6; }
  17077. audio_arts=no
  17078. save_CFLAGS="$CFLAGS"
  17079. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17081. /* end confdefs.h. */
  17082. #include <artsc.h>
  17083. int
  17084. main ()
  17085. {
  17086. arts_stream_t stream;
  17087. ;
  17088. return 0;
  17089. }
  17090. _ACEOF
  17091. if ac_fn_c_try_compile "$LINENO"; then :
  17092. audio_arts=yes
  17093. fi
  17094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17095. CFLAGS="$save_CFLAGS"
  17096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17097. $as_echo "$audio_arts" >&6; }
  17098. if test x$audio_arts = xyes; then
  17099. # Check whether --enable-arts-shared was given.
  17100. if test "${enable_arts_shared+set}" = set; then :
  17101. enableval=$enable_arts_shared;
  17102. else
  17103. enable_arts_shared=yes
  17104. fi
  17105. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17106. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17107. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17108. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17109. if test x$have_loadso != xyes && \
  17110. test x$enable_arts_shared = xyes; then
  17111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17112. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17113. fi
  17114. if test x$have_loadso = xyes && \
  17115. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17116. echo "-- dynamic libartsc -> $arts_lib"
  17117. cat >>confdefs.h <<_ACEOF
  17118. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17119. _ACEOF
  17120. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17121. else
  17122. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17123. SUMMARY_audio="${SUMMARY_audio} arts"
  17124. fi
  17125. have_audio=yes
  17126. fi
  17127. fi
  17128. fi
  17129. }
  17130. CheckNAS()
  17131. {
  17132. # Check whether --enable-nas was given.
  17133. if test "${enable_nas+set}" = set; then :
  17134. enableval=$enable_nas;
  17135. else
  17136. enable_nas=yes
  17137. fi
  17138. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17139. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17140. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17141. have_nas_hdr=yes
  17142. fi
  17143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17144. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17145. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17146. $as_echo_n "(cached) " >&6
  17147. else
  17148. ac_check_lib_save_LIBS=$LIBS
  17149. LIBS="-laudio $LIBS"
  17150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17151. /* end confdefs.h. */
  17152. /* Override any GCC internal prototype to avoid an error.
  17153. Use char because int might match the return type of a GCC
  17154. builtin and then its argument prototype would still apply. */
  17155. #ifdef __cplusplus
  17156. extern "C"
  17157. #endif
  17158. char AuOpenServer ();
  17159. int
  17160. main ()
  17161. {
  17162. return AuOpenServer ();
  17163. ;
  17164. return 0;
  17165. }
  17166. _ACEOF
  17167. if ac_fn_c_try_link "$LINENO"; then :
  17168. ac_cv_lib_audio_AuOpenServer=yes
  17169. else
  17170. ac_cv_lib_audio_AuOpenServer=no
  17171. fi
  17172. rm -f core conftest.err conftest.$ac_objext \
  17173. conftest$ac_exeext conftest.$ac_ext
  17174. LIBS=$ac_check_lib_save_LIBS
  17175. fi
  17176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17177. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17178. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17179. have_nas_lib=yes
  17180. fi
  17181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17182. $as_echo_n "checking for NAS audio support... " >&6; }
  17183. have_nas=no
  17184. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17185. have_nas=yes
  17186. NAS_LIBS="-laudio"
  17187. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17188. have_nas=yes
  17189. NAS_CFLAGS="-I/usr/X11R6/include/"
  17190. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17191. fi
  17192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17193. $as_echo "$have_nas" >&6; }
  17194. if test x$have_nas = xyes; then
  17195. # Check whether --enable-nas-shared was given.
  17196. if test "${enable_nas_shared+set}" = set; then :
  17197. enableval=$enable_nas_shared;
  17198. else
  17199. enable_nas_shared=yes
  17200. fi
  17201. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17202. if test x$have_loadso != xyes && \
  17203. test x$enable_nas_shared = xyes; then
  17204. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17205. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17206. fi
  17207. if test x$have_loadso = xyes && \
  17208. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17209. echo "-- dynamic libaudio -> $nas_lib"
  17210. cat >>confdefs.h <<_ACEOF
  17211. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17212. _ACEOF
  17213. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17214. else
  17215. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17216. SUMMARY_audio="${SUMMARY_audio} nas"
  17217. fi
  17218. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17219. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17220. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17221. have_audio=yes
  17222. fi
  17223. fi
  17224. }
  17225. CheckSNDIO()
  17226. {
  17227. # Check whether --enable-sndio was given.
  17228. if test "${enable_sndio+set}" = set; then :
  17229. enableval=$enable_sndio;
  17230. else
  17231. enable_sndio=yes
  17232. fi
  17233. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17234. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17235. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17236. have_sndio_hdr=yes
  17237. fi
  17238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17239. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17240. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17241. $as_echo_n "(cached) " >&6
  17242. else
  17243. ac_check_lib_save_LIBS=$LIBS
  17244. LIBS="-lsndio $LIBS"
  17245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17246. /* end confdefs.h. */
  17247. /* Override any GCC internal prototype to avoid an error.
  17248. Use char because int might match the return type of a GCC
  17249. builtin and then its argument prototype would still apply. */
  17250. #ifdef __cplusplus
  17251. extern "C"
  17252. #endif
  17253. char sio_open ();
  17254. int
  17255. main ()
  17256. {
  17257. return sio_open ();
  17258. ;
  17259. return 0;
  17260. }
  17261. _ACEOF
  17262. if ac_fn_c_try_link "$LINENO"; then :
  17263. ac_cv_lib_sndio_sio_open=yes
  17264. else
  17265. ac_cv_lib_sndio_sio_open=no
  17266. fi
  17267. rm -f core conftest.err conftest.$ac_objext \
  17268. conftest$ac_exeext conftest.$ac_ext
  17269. LIBS=$ac_check_lib_save_LIBS
  17270. fi
  17271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17272. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17273. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17274. have_sndio_lib=yes
  17275. fi
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17277. $as_echo_n "checking for sndio audio support... " >&6; }
  17278. have_sndio=no
  17279. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17280. have_sndio=yes
  17281. SNDIO_LIBS="-lsndio"
  17282. fi
  17283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17284. $as_echo "$have_sndio" >&6; }
  17285. if test x$have_sndio = xyes; then
  17286. # Check whether --enable-sndio-shared was given.
  17287. if test "${enable_sndio_shared+set}" = set; then :
  17288. enableval=$enable_sndio_shared;
  17289. else
  17290. enable_sndio_shared=yes
  17291. fi
  17292. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17293. if test x$have_loadso != xyes && \
  17294. test x$enable_sndio_shared = xyes; then
  17295. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17296. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17297. fi
  17298. if test x$have_loadso = xyes && \
  17299. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17300. echo "-- dynamic libsndio -> $sndio_lib"
  17301. cat >>confdefs.h <<_ACEOF
  17302. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17303. _ACEOF
  17304. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17305. else
  17306. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17307. SUMMARY_audio="${SUMMARY_audio} sndio"
  17308. fi
  17309. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17310. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17311. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17312. have_audio=yes
  17313. fi
  17314. fi
  17315. }
  17316. CheckFusionSound()
  17317. {
  17318. # Check whether --enable-fusionsound was given.
  17319. if test "${enable_fusionsound+set}" = set; then :
  17320. enableval=$enable_fusionsound;
  17321. else
  17322. enable_fusionsound=no
  17323. fi
  17324. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17325. pkg_failed=no
  17326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17327. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17328. if test -n "$FUSIONSOUND_CFLAGS"; then
  17329. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17330. elif test -n "$PKG_CONFIG"; then
  17331. if test -n "$PKG_CONFIG" && \
  17332. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17333. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17334. ac_status=$?
  17335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17336. test $ac_status = 0; }; then
  17337. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17338. test "x$?" != "x0" && pkg_failed=yes
  17339. else
  17340. pkg_failed=yes
  17341. fi
  17342. else
  17343. pkg_failed=untried
  17344. fi
  17345. if test -n "$FUSIONSOUND_LIBS"; then
  17346. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17347. elif test -n "$PKG_CONFIG"; then
  17348. if test -n "$PKG_CONFIG" && \
  17349. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17350. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17351. ac_status=$?
  17352. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17353. test $ac_status = 0; }; then
  17354. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17355. test "x$?" != "x0" && pkg_failed=yes
  17356. else
  17357. pkg_failed=yes
  17358. fi
  17359. else
  17360. pkg_failed=untried
  17361. fi
  17362. if test $pkg_failed = yes; then
  17363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17364. $as_echo "no" >&6; }
  17365. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17366. _pkg_short_errors_supported=yes
  17367. else
  17368. _pkg_short_errors_supported=no
  17369. fi
  17370. if test $_pkg_short_errors_supported = yes; then
  17371. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17372. else
  17373. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17374. fi
  17375. # Put the nasty error message in config.log where it belongs
  17376. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17377. fusionsound=no
  17378. elif test $pkg_failed = untried; then
  17379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17380. $as_echo "no" >&6; }
  17381. fusionsound=no
  17382. else
  17383. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17384. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17386. $as_echo "yes" >&6; }
  17387. fusionsound=yes
  17388. fi
  17389. if test x$fusionsound = xyes; then
  17390. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17391. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17392. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17393. # Check whether --enable-fusionsound-shared was given.
  17394. if test "${enable_fusionsound_shared+set}" = set; then :
  17395. enableval=$enable_fusionsound_shared;
  17396. else
  17397. enable_fusionsound_shared=yes
  17398. fi
  17399. fusionsound_shared=no
  17400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17401. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17402. if test x$have_loadso != xyes && \
  17403. test x$enable_fusionsound_shared = xyes; then
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17405. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17406. fi
  17407. if test x$have_loadso = xyes && \
  17408. test x$enable_fusionsound_shared = xyes; then
  17409. cat >>confdefs.h <<_ACEOF
  17410. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17411. _ACEOF
  17412. fusionsound_shared=yes
  17413. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17414. else
  17415. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17416. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17417. fi
  17418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17419. $as_echo "$fusionsound_shared" >&6; }
  17420. have_audio=yes
  17421. fi
  17422. fi
  17423. }
  17424. CheckDiskAudio()
  17425. {
  17426. # Check whether --enable-diskaudio was given.
  17427. if test "${enable_diskaudio+set}" = set; then :
  17428. enableval=$enable_diskaudio;
  17429. else
  17430. enable_diskaudio=yes
  17431. fi
  17432. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17433. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17434. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17435. SUMMARY_audio="${SUMMARY_audio} disk"
  17436. have_audio=yes
  17437. fi
  17438. }
  17439. CheckDummyAudio()
  17440. {
  17441. # Check whether --enable-dummyaudio was given.
  17442. if test "${enable_dummyaudio+set}" = set; then :
  17443. enableval=$enable_dummyaudio;
  17444. else
  17445. enable_dummyaudio=yes
  17446. fi
  17447. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17448. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17449. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17450. SUMMARY_audio="${SUMMARY_audio} dummy"
  17451. have_audio=yes
  17452. fi
  17453. }
  17454. CheckLibSampleRate()
  17455. {
  17456. # Check whether --enable-libsamplerate was given.
  17457. if test "${enable_libsamplerate+set}" = set; then :
  17458. enableval=$enable_libsamplerate;
  17459. else
  17460. enable_libsamplerate=yes
  17461. fi
  17462. if test x$enable_libsamplerate = xyes; then
  17463. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17464. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17465. have_samplerate_h_hdr=yes
  17466. else
  17467. have_samplerate_h_hdr=no
  17468. fi
  17469. if test x$have_samplerate_h_hdr = xyes; then
  17470. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17471. # Check whether --enable-libsamplerate-shared was given.
  17472. if test "${enable_libsamplerate_shared+set}" = set; then :
  17473. enableval=$enable_libsamplerate_shared;
  17474. else
  17475. enable_libsamplerate_shared=yes
  17476. fi
  17477. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17478. if test x$have_loadso != xyes && \
  17479. test x$enable_libsamplerate_shared = xyes; then
  17480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17481. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17482. fi
  17483. if test x$have_loadso = xyes && \
  17484. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17485. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17486. cat >>confdefs.h <<_ACEOF
  17487. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17488. _ACEOF
  17489. else
  17490. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17491. fi
  17492. fi
  17493. fi
  17494. }
  17495. CheckARM()
  17496. {
  17497. # Check whether --enable-arm-simd was given.
  17498. if test "${enable_arm_simd+set}" = set; then :
  17499. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17500. else
  17501. enable_arm_simd=no
  17502. fi
  17503. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17504. save_CFLAGS="$CFLAGS"
  17505. have_arm_simd=no
  17506. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17508. $as_echo_n "checking for ARM SIMD... " >&6; }
  17509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17510. /* end confdefs.h. */
  17511. .text
  17512. .arch armv6
  17513. .object_arch armv4
  17514. .arm
  17515. .altmacro
  17516. #ifndef __ARM_EABI__
  17517. #error EABI is required (to be sure that calling conventions are compatible)
  17518. #endif
  17519. pld [r0]
  17520. uqadd8 r0, r0, r0
  17521. _ACEOF
  17522. if ac_fn_c_try_compile "$LINENO"; then :
  17523. have_arm_simd=yes
  17524. fi
  17525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17527. $as_echo "$have_arm_simd" >&6; }
  17528. CFLAGS="$save_CFLAGS"
  17529. if test x$have_arm_simd = xyes; then
  17530. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17531. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17532. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17533. fi
  17534. fi
  17535. }
  17536. CheckNEON()
  17537. {
  17538. # Check whether --enable-arm-neon was given.
  17539. if test "${enable_arm_neon+set}" = set; then :
  17540. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17541. else
  17542. enable_arm_neon=no
  17543. fi
  17544. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17545. save_CFLAGS="$CFLAGS"
  17546. have_arm_neon=no
  17547. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17549. $as_echo_n "checking for ARM NEON... " >&6; }
  17550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17551. /* end confdefs.h. */
  17552. .text
  17553. .fpu neon
  17554. .arch armv7a
  17555. .object_arch armv4
  17556. .eabi_attribute 10, 0
  17557. .arm
  17558. .altmacro
  17559. #ifndef __ARM_EABI__
  17560. #error EABI is required (to be sure that calling conventions are compatible)
  17561. #endif
  17562. pld [r0]
  17563. vmovn.u16 d0, q0
  17564. _ACEOF
  17565. if ac_fn_c_try_compile "$LINENO"; then :
  17566. have_arm_neon=yes
  17567. fi
  17568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17570. $as_echo "$have_arm_neon" >&6; }
  17571. CFLAGS="$save_CFLAGS"
  17572. if test x$have_arm_neon = xyes; then
  17573. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17574. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17575. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17576. fi
  17577. fi
  17578. }
  17579. CheckObjectiveCARC()
  17580. {
  17581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  17582. $as_echo_n "checking for clang -fobjc-arc option... " >&6; }
  17583. have_clang_objc_arc=no
  17584. save_CFLAGS="$CFLAGS"
  17585. CFLAGS="$save_CFLAGS -fobjc-arc"
  17586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17587. /* end confdefs.h. */
  17588. int x = 0;
  17589. int
  17590. main ()
  17591. {
  17592. ;
  17593. return 0;
  17594. }
  17595. _ACEOF
  17596. if ac_fn_c_try_compile "$LINENO"; then :
  17597. have_clang_objc_arc=yes
  17598. fi
  17599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  17601. $as_echo "$have_clang_objc_arc" >&6; }
  17602. CFLAGS="$save_CFLAGS"
  17603. if test x$have_clang_objc_arc = xyes; then
  17604. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  17605. fi
  17606. }
  17607. CheckVisibilityHidden()
  17608. {
  17609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17610. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17611. have_gcc_fvisibility=no
  17612. visibility_CFLAGS="-fvisibility=hidden"
  17613. save_CFLAGS="$CFLAGS"
  17614. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17616. /* end confdefs.h. */
  17617. #if !defined(__GNUC__) || __GNUC__ < 4
  17618. #error SDL only uses visibility attributes in GCC 4 or newer
  17619. #endif
  17620. int
  17621. main ()
  17622. {
  17623. ;
  17624. return 0;
  17625. }
  17626. _ACEOF
  17627. if ac_fn_c_try_compile "$LINENO"; then :
  17628. have_gcc_fvisibility=yes
  17629. fi
  17630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17632. $as_echo "$have_gcc_fvisibility" >&6; }
  17633. CFLAGS="$save_CFLAGS"
  17634. if test x$have_gcc_fvisibility = xyes; then
  17635. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17636. fi
  17637. }
  17638. CheckNoStrictAliasing()
  17639. {
  17640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17641. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17642. have_gcc_no_strict_aliasing=no
  17643. save_CFLAGS="$CFLAGS"
  17644. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17646. /* end confdefs.h. */
  17647. int x = 0;
  17648. int
  17649. main ()
  17650. {
  17651. ;
  17652. return 0;
  17653. }
  17654. _ACEOF
  17655. if ac_fn_c_try_compile "$LINENO"; then :
  17656. have_gcc_no_strict_aliasing=yes
  17657. fi
  17658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17660. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17661. CFLAGS="$save_CFLAGS"
  17662. if test x$have_gcc_no_strict_aliasing = xyes; then
  17663. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17664. fi
  17665. }
  17666. CheckStackBoundary()
  17667. {
  17668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17669. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17670. have_gcc_preferred_stack_boundary=no
  17671. save_CFLAGS="$CFLAGS"
  17672. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17674. /* end confdefs.h. */
  17675. int x = 0;
  17676. int
  17677. main ()
  17678. {
  17679. ;
  17680. return 0;
  17681. }
  17682. _ACEOF
  17683. if ac_fn_c_try_compile "$LINENO"; then :
  17684. have_gcc_preferred_stack_boundary=yes
  17685. fi
  17686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17688. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17689. CFLAGS="$save_CFLAGS"
  17690. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17691. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17692. fi
  17693. }
  17694. CheckDeclarationAfterStatement()
  17695. {
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17697. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17698. have_gcc_declaration_after_statement=no
  17699. save_CFLAGS="$CFLAGS"
  17700. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17702. /* end confdefs.h. */
  17703. int x = 0;
  17704. int
  17705. main ()
  17706. {
  17707. ;
  17708. return 0;
  17709. }
  17710. _ACEOF
  17711. if ac_fn_c_try_compile "$LINENO"; then :
  17712. have_gcc_declaration_after_statement=yes
  17713. fi
  17714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17716. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17717. CFLAGS="$save_CFLAGS"
  17718. if test x$have_gcc_declaration_after_statement = xyes; then
  17719. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17720. fi
  17721. }
  17722. CheckWarnAll()
  17723. {
  17724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17725. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17726. have_gcc_Wall=no
  17727. save_CFLAGS="$CFLAGS"
  17728. CFLAGS="$save_CFLAGS -Wall"
  17729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17730. /* end confdefs.h. */
  17731. int x = 0;
  17732. int
  17733. main ()
  17734. {
  17735. ;
  17736. return 0;
  17737. }
  17738. _ACEOF
  17739. if ac_fn_c_try_compile "$LINENO"; then :
  17740. have_gcc_Wall=yes
  17741. fi
  17742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17744. $as_echo "$have_gcc_Wall" >&6; }
  17745. CFLAGS="$save_CFLAGS"
  17746. if test x$have_gcc_Wall = xyes; then
  17747. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17749. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17750. need_gcc_Wno_multichar=no
  17751. case "$host" in
  17752. *-*-haiku*)
  17753. need_gcc_Wno_multichar=yes
  17754. ;;
  17755. esac
  17756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17757. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17758. if test x$need_gcc_Wno_multichar = xyes; then
  17759. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17760. fi
  17761. fi
  17762. }
  17763. CheckWayland()
  17764. {
  17765. # Check whether --enable-video-wayland was given.
  17766. if test "${enable_video_wayland+set}" = set; then :
  17767. enableval=$enable_video_wayland;
  17768. else
  17769. enable_video_wayland=yes
  17770. fi
  17771. # Check whether --enable-video-wayland-qt-touch was given.
  17772. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17773. enableval=$enable_video_wayland_qt_touch;
  17774. else
  17775. enable_video_wayland_qt_touch=yes
  17776. fi
  17777. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17779. $as_echo_n "checking for Wayland support... " >&6; }
  17780. video_wayland=no
  17781. if test x$video_opengl_egl = xyes && \
  17782. test x$video_opengles_v2 = xyes; then
  17783. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17784. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17785. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17786. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17787. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17788. WAYLAND_SCANNER_CODE_MODE=private-code
  17789. else
  17790. WAYLAND_SCANNER_CODE_MODE=code
  17791. fi
  17792. video_wayland=yes
  17793. fi
  17794. fi
  17795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17796. $as_echo "$video_wayland" >&6; }
  17797. if test x$video_wayland = xyes; then
  17798. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17799. if test x$enable_video_wayland_qt_touch = xyes; then
  17800. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17801. fi
  17802. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17803. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17804. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17805. # Check whether --enable-wayland-shared was given.
  17806. if test "${enable_wayland_shared+set}" = set; then :
  17807. enableval=$enable_wayland_shared;
  17808. else
  17809. enable_wayland_shared=maybe
  17810. fi
  17811. case "$host" in
  17812. *)
  17813. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17814. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17815. if test x$wayland_egl_lib = x; then
  17816. # This works in Ubuntu 13.10, maybe others
  17817. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17818. fi
  17819. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17820. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17821. ;;
  17822. esac
  17823. if test x$enable_wayland_shared = xmaybe; then
  17824. enable_wayland_shared=yes
  17825. fi
  17826. if test x$have_loadso != xyes && \
  17827. test x$enable_wayland_shared = xyes; then
  17828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17829. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17830. enable_wayland_shared=no
  17831. fi
  17832. if test x$have_loadso = xyes && \
  17833. test x$enable_wayland_shared = xyes && \
  17834. test x$wayland_client_lib != x && \
  17835. test x$wayland_egl_lib != x && \
  17836. test x$wayland_cursor_lib != x && \
  17837. test x$xkbcommon_lib != x; then
  17838. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17839. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17840. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17841. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17842. cat >>confdefs.h <<_ACEOF
  17843. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17844. _ACEOF
  17845. cat >>confdefs.h <<_ACEOF
  17846. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17847. _ACEOF
  17848. cat >>confdefs.h <<_ACEOF
  17849. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17850. _ACEOF
  17851. cat >>confdefs.h <<_ACEOF
  17852. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17853. _ACEOF
  17854. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17855. else
  17856. enable_wayland_shared=no
  17857. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17858. SUMMARY_video="${SUMMARY_video} wayland"
  17859. fi
  17860. have_video=yes
  17861. # Check whether --enable-libdecor was given.
  17862. if test "${enable_libdecor+set}" = set; then :
  17863. enableval=$enable_libdecor;
  17864. else
  17865. enable_libdecor=yes
  17866. fi
  17867. if test x$enable_libdecor = xyes; then
  17868. pkg_failed=no
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  17870. $as_echo_n "checking for libdecor-0... " >&6; }
  17871. if test -n "$DECOR_CFLAGS"; then
  17872. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  17873. elif test -n "$PKG_CONFIG"; then
  17874. if test -n "$PKG_CONFIG" && \
  17875. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17876. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17877. ac_status=$?
  17878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17879. test $ac_status = 0; }; then
  17880. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  17881. test "x$?" != "x0" && pkg_failed=yes
  17882. else
  17883. pkg_failed=yes
  17884. fi
  17885. else
  17886. pkg_failed=untried
  17887. fi
  17888. if test -n "$DECOR_LIBS"; then
  17889. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  17890. elif test -n "$PKG_CONFIG"; then
  17891. if test -n "$PKG_CONFIG" && \
  17892. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17893. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17894. ac_status=$?
  17895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17896. test $ac_status = 0; }; then
  17897. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  17898. test "x$?" != "x0" && pkg_failed=yes
  17899. else
  17900. pkg_failed=yes
  17901. fi
  17902. else
  17903. pkg_failed=untried
  17904. fi
  17905. if test $pkg_failed = yes; then
  17906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17907. $as_echo "no" >&6; }
  17908. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17909. _pkg_short_errors_supported=yes
  17910. else
  17911. _pkg_short_errors_supported=no
  17912. fi
  17913. if test $_pkg_short_errors_supported = yes; then
  17914. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  17915. else
  17916. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  17917. fi
  17918. # Put the nasty error message in config.log where it belongs
  17919. echo "$DECOR_PKG_ERRORS" >&5
  17920. video_libdecor=no
  17921. elif test $pkg_failed = untried; then
  17922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17923. $as_echo "no" >&6; }
  17924. video_libdecor=no
  17925. else
  17926. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  17927. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  17928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17929. $as_echo "yes" >&6; }
  17930. video_libdecor=yes
  17931. fi
  17932. if test x$video_libdecor = xyes; then
  17933. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  17934. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17935. # Check whether --enable-libdecor-shared was given.
  17936. if test "${enable_libdecor_shared+set}" = set; then :
  17937. enableval=$enable_libdecor_shared;
  17938. else
  17939. enable_libdecor_shared=yes
  17940. fi
  17941. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17942. if test x$enable_wayland_shared != xyes; then
  17943. enable_libdecor_shared=no
  17944. fi
  17945. if test x$have_loadso != xyes && \
  17946. test x$enable_libdecor_shared = xyes; then
  17947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17948. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17949. fi
  17950. if test x$have_loadso = xyes && \
  17951. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17952. echo "-- dynamic libdecor -> $decor_lib"
  17953. cat >>confdefs.h <<_ACEOF
  17954. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17955. _ACEOF
  17956. else
  17957. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  17958. fi
  17959. fi
  17960. fi
  17961. fi
  17962. fi
  17963. }
  17964. CheckNativeClient()
  17965. {
  17966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17967. /* end confdefs.h. */
  17968. #if !defined(__native_client__)
  17969. #error "NO NACL"
  17970. #endif
  17971. int
  17972. main ()
  17973. {
  17974. ;
  17975. return 0;
  17976. }
  17977. _ACEOF
  17978. if ac_fn_c_try_compile "$LINENO"; then :
  17979. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17980. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17981. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17982. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17983. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17984. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17985. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17986. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17987. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17988. SUMMARY_audio="${SUMMARY_audio} nacl"
  17989. have_audio=yes
  17990. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17991. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17992. have_video=yes
  17993. fi
  17994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17995. }
  17996. CheckRPI()
  17997. {
  17998. # Check whether --enable-video-rpi was given.
  17999. if test "${enable_video_rpi+set}" = set; then :
  18000. enableval=$enable_video_rpi;
  18001. else
  18002. enable_video_rpi=yes
  18003. fi
  18004. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  18005. pkg_failed=no
  18006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  18007. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  18008. if test -n "$RPI_CFLAGS"; then
  18009. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  18010. elif test -n "$PKG_CONFIG"; then
  18011. if test -n "$PKG_CONFIG" && \
  18012. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18013. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18014. ac_status=$?
  18015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18016. test $ac_status = 0; }; then
  18017. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  18018. test "x$?" != "x0" && pkg_failed=yes
  18019. else
  18020. pkg_failed=yes
  18021. fi
  18022. else
  18023. pkg_failed=untried
  18024. fi
  18025. if test -n "$RPI_LIBS"; then
  18026. pkg_cv_RPI_LIBS="$RPI_LIBS"
  18027. elif test -n "$PKG_CONFIG"; then
  18028. if test -n "$PKG_CONFIG" && \
  18029. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18030. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18031. ac_status=$?
  18032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18033. test $ac_status = 0; }; then
  18034. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  18035. test "x$?" != "x0" && pkg_failed=yes
  18036. else
  18037. pkg_failed=yes
  18038. fi
  18039. else
  18040. pkg_failed=untried
  18041. fi
  18042. if test $pkg_failed = yes; then
  18043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18044. $as_echo "no" >&6; }
  18045. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18046. _pkg_short_errors_supported=yes
  18047. else
  18048. _pkg_short_errors_supported=no
  18049. fi
  18050. if test $_pkg_short_errors_supported = yes; then
  18051. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18052. else
  18053. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18054. fi
  18055. # Put the nasty error message in config.log where it belongs
  18056. echo "$RPI_PKG_ERRORS" >&5
  18057. video_rpi=no
  18058. elif test $pkg_failed = untried; then
  18059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18060. $as_echo "no" >&6; }
  18061. video_rpi=no
  18062. else
  18063. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  18064. RPI_LIBS=$pkg_cv_RPI_LIBS
  18065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18066. $as_echo "yes" >&6; }
  18067. video_rpi=yes
  18068. fi
  18069. if test x$video_rpi = xno; then
  18070. if test x$ARCH = xnetbsd; then
  18071. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  18072. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  18073. else
  18074. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  18075. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  18076. fi
  18077. fi
  18078. # Save the original compiler flags and libraries
  18079. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18080. # Add the Raspberry Pi compiler flags and libraries
  18081. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  18082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  18083. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  18084. have_video_rpi=no
  18085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18086. /* end confdefs.h. */
  18087. #include <bcm_host.h>
  18088. #include <EGL/eglplatform.h>
  18089. int
  18090. main ()
  18091. {
  18092. EGL_DISPMANX_WINDOW_T window;
  18093. bcm_host_init();
  18094. ;
  18095. return 0;
  18096. }
  18097. _ACEOF
  18098. if ac_fn_c_try_link "$LINENO"; then :
  18099. have_video_rpi=yes
  18100. fi
  18101. rm -f core conftest.err conftest.$ac_objext \
  18102. conftest$ac_exeext conftest.$ac_ext
  18103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18104. $as_echo "$have_video_rpi" >&6; }
  18105. # Restore the compiler flags and libraries
  18106. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18107. if test x$have_video_rpi = xyes; then
  18108. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18109. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18110. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18111. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18112. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18113. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18114. SUMMARY_video="${SUMMARY_video} rpi"
  18115. have_video=yes
  18116. fi
  18117. fi
  18118. }
  18119. CheckX11()
  18120. {
  18121. # Check whether --enable-video-x11 was given.
  18122. if test "${enable_video_x11+set}" = set; then :
  18123. enableval=$enable_video_x11;
  18124. else
  18125. enable_video_x11=yes
  18126. fi
  18127. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18128. case "$host" in
  18129. *-*-darwin*)
  18130. # This isn't necessary for X11, but fixes GLX detection
  18131. if test "x$x_includes" = xNONE && \
  18132. test "x$x_libraries" = xNONE && \
  18133. test -d /opt/X11/include && \
  18134. test -d /opt/X11/lib; then
  18135. x_includes="/opt/X11/include"
  18136. x_libraries="/opt/X11/lib"
  18137. fi
  18138. ;;
  18139. esac
  18140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18141. $as_echo_n "checking for X... " >&6; }
  18142. # Check whether --with-x was given.
  18143. if test "${with_x+set}" = set; then :
  18144. withval=$with_x;
  18145. fi
  18146. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18147. if test "x$with_x" = xno; then
  18148. # The user explicitly disabled X.
  18149. have_x=disabled
  18150. else
  18151. case $x_includes,$x_libraries in #(
  18152. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18153. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18154. $as_echo_n "(cached) " >&6
  18155. else
  18156. # One or both of the vars are not set, and there is no cached value.
  18157. ac_x_includes=no
  18158. ac_x_libraries=no
  18159. # Do we need to do anything special at all?
  18160. ac_save_LIBS=$LIBS
  18161. LIBS="-lX11 $LIBS"
  18162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18163. /* end confdefs.h. */
  18164. #include <X11/Xlib.h>
  18165. int
  18166. main ()
  18167. {
  18168. XrmInitialize ()
  18169. ;
  18170. return 0;
  18171. }
  18172. _ACEOF
  18173. if ac_fn_c_try_link "$LINENO"; then :
  18174. # We can compile and link X programs with no special options.
  18175. ac_x_includes=
  18176. ac_x_libraries=
  18177. fi
  18178. rm -f core conftest.err conftest.$ac_objext \
  18179. conftest$ac_exeext conftest.$ac_ext
  18180. LIBS="$ac_save_LIBS"
  18181. # If that didn't work, only try xmkmf and filesystem searches
  18182. # for native compilation.
  18183. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18184. rm -f -r conftest.dir
  18185. if mkdir conftest.dir; then
  18186. cd conftest.dir
  18187. cat >Imakefile <<'_ACEOF'
  18188. incroot:
  18189. @echo incroot='${INCROOT}'
  18190. usrlibdir:
  18191. @echo usrlibdir='${USRLIBDIR}'
  18192. libdir:
  18193. @echo libdir='${LIBDIR}'
  18194. _ACEOF
  18195. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18196. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18197. for ac_var in incroot usrlibdir libdir; do
  18198. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18199. done
  18200. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18201. for ac_extension in a so sl dylib la dll; do
  18202. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18203. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18204. ac_im_usrlibdir=$ac_im_libdir; break
  18205. fi
  18206. done
  18207. # Screen out bogus values from the imake configuration. They are
  18208. # bogus both because they are the default anyway, and because
  18209. # using them would break gcc on systems where it needs fixed includes.
  18210. case $ac_im_incroot in
  18211. /usr/include) ac_x_includes= ;;
  18212. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18213. esac
  18214. case $ac_im_usrlibdir in
  18215. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18216. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18217. esac
  18218. fi
  18219. cd ..
  18220. rm -f -r conftest.dir
  18221. fi
  18222. # Standard set of common directories for X headers.
  18223. # Check X11 before X11Rn because it is often a symlink to the current release.
  18224. ac_x_header_dirs='
  18225. /usr/X11/include
  18226. /usr/X11R7/include
  18227. /usr/X11R6/include
  18228. /usr/X11R5/include
  18229. /usr/X11R4/include
  18230. /usr/include/X11
  18231. /usr/include/X11R7
  18232. /usr/include/X11R6
  18233. /usr/include/X11R5
  18234. /usr/include/X11R4
  18235. /usr/local/X11/include
  18236. /usr/local/X11R7/include
  18237. /usr/local/X11R6/include
  18238. /usr/local/X11R5/include
  18239. /usr/local/X11R4/include
  18240. /usr/local/include/X11
  18241. /usr/local/include/X11R7
  18242. /usr/local/include/X11R6
  18243. /usr/local/include/X11R5
  18244. /usr/local/include/X11R4
  18245. /opt/X11/include
  18246. /usr/X386/include
  18247. /usr/x386/include
  18248. /usr/XFree86/include/X11
  18249. /usr/include
  18250. /usr/local/include
  18251. /usr/unsupported/include
  18252. /usr/athena/include
  18253. /usr/local/x11r5/include
  18254. /usr/lpp/Xamples/include
  18255. /usr/openwin/include
  18256. /usr/openwin/share/include'
  18257. if test "$ac_x_includes" = no; then
  18258. # Guess where to find include files, by looking for Xlib.h.
  18259. # First, try using that file with no special directory specified.
  18260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18261. /* end confdefs.h. */
  18262. #include <X11/Xlib.h>
  18263. _ACEOF
  18264. if ac_fn_c_try_cpp "$LINENO"; then :
  18265. # We can compile using X headers with no special include directory.
  18266. ac_x_includes=
  18267. else
  18268. for ac_dir in $ac_x_header_dirs; do
  18269. if test -r "$ac_dir/X11/Xlib.h"; then
  18270. ac_x_includes=$ac_dir
  18271. break
  18272. fi
  18273. done
  18274. fi
  18275. rm -f conftest.err conftest.i conftest.$ac_ext
  18276. fi # $ac_x_includes = no
  18277. if test "$ac_x_libraries" = no; then
  18278. # Check for the libraries.
  18279. # See if we find them without any special options.
  18280. # Don't add to $LIBS permanently.
  18281. ac_save_LIBS=$LIBS
  18282. LIBS="-lX11 $LIBS"
  18283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18284. /* end confdefs.h. */
  18285. #include <X11/Xlib.h>
  18286. int
  18287. main ()
  18288. {
  18289. XrmInitialize ()
  18290. ;
  18291. return 0;
  18292. }
  18293. _ACEOF
  18294. if ac_fn_c_try_link "$LINENO"; then :
  18295. LIBS=$ac_save_LIBS
  18296. # We can link X programs with no special library path.
  18297. ac_x_libraries=
  18298. else
  18299. LIBS=$ac_save_LIBS
  18300. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18301. do
  18302. # Don't even attempt the hair of trying to link an X program!
  18303. for ac_extension in a so sl dylib la dll; do
  18304. if test -r "$ac_dir/libX11.$ac_extension"; then
  18305. ac_x_libraries=$ac_dir
  18306. break 2
  18307. fi
  18308. done
  18309. done
  18310. fi
  18311. rm -f core conftest.err conftest.$ac_objext \
  18312. conftest$ac_exeext conftest.$ac_ext
  18313. fi # $ac_x_libraries = no
  18314. fi
  18315. # Record the results.
  18316. case $ac_x_includes,$ac_x_libraries in #(
  18317. no,* | *,no | *\'*) :
  18318. # Didn't find X, or a directory has "'" in its name.
  18319. ac_cv_have_x="have_x=no" ;; #(
  18320. *) :
  18321. # Record where we found X for the cache.
  18322. ac_cv_have_x="have_x=yes\
  18323. ac_x_includes='$ac_x_includes'\
  18324. ac_x_libraries='$ac_x_libraries'" ;;
  18325. esac
  18326. fi
  18327. ;; #(
  18328. *) have_x=yes;;
  18329. esac
  18330. eval "$ac_cv_have_x"
  18331. fi # $with_x != no
  18332. if test "$have_x" != yes; then
  18333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18334. $as_echo "$have_x" >&6; }
  18335. no_x=yes
  18336. else
  18337. # If each of the values was on the command line, it overrides each guess.
  18338. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18339. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18340. # Update the cache value to reflect the command line values.
  18341. ac_cv_have_x="have_x=yes\
  18342. ac_x_includes='$x_includes'\
  18343. ac_x_libraries='$x_libraries'"
  18344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18345. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18346. fi
  18347. if test "$no_x" = yes; then
  18348. # Not all programs may use this symbol, but it does not hurt to define it.
  18349. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18350. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18351. else
  18352. if test -n "$x_includes"; then
  18353. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18354. fi
  18355. # It would also be nice to do this for all -L options, not just this one.
  18356. if test -n "$x_libraries"; then
  18357. X_LIBS="$X_LIBS -L$x_libraries"
  18358. # For Solaris; some versions of Sun CC require a space after -R and
  18359. # others require no space. Words are not sufficient . . . .
  18360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18361. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18362. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18363. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18364. ac_c_werror_flag=yes
  18365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18366. /* end confdefs.h. */
  18367. int
  18368. main ()
  18369. {
  18370. ;
  18371. return 0;
  18372. }
  18373. _ACEOF
  18374. if ac_fn_c_try_link "$LINENO"; then :
  18375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18376. $as_echo "no" >&6; }
  18377. X_LIBS="$X_LIBS -R$x_libraries"
  18378. else
  18379. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18381. /* end confdefs.h. */
  18382. int
  18383. main ()
  18384. {
  18385. ;
  18386. return 0;
  18387. }
  18388. _ACEOF
  18389. if ac_fn_c_try_link "$LINENO"; then :
  18390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18391. $as_echo "yes" >&6; }
  18392. X_LIBS="$X_LIBS -R $x_libraries"
  18393. else
  18394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18395. $as_echo "neither works" >&6; }
  18396. fi
  18397. rm -f core conftest.err conftest.$ac_objext \
  18398. conftest$ac_exeext conftest.$ac_ext
  18399. fi
  18400. rm -f core conftest.err conftest.$ac_objext \
  18401. conftest$ac_exeext conftest.$ac_ext
  18402. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18403. LIBS=$ac_xsave_LIBS
  18404. fi
  18405. # Check for system-dependent libraries X programs must link with.
  18406. # Do this before checking for the system-independent R6 libraries
  18407. # (-lICE), since we may need -lsocket or whatever for X linking.
  18408. if test "$ISC" = yes; then
  18409. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18410. else
  18411. # Martyn Johnson says this is needed for Ultrix, if the X
  18412. # libraries were built with DECnet support. And Karl Berry says
  18413. # the Alpha needs dnet_stub (dnet does not exist).
  18414. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18416. /* end confdefs.h. */
  18417. /* Override any GCC internal prototype to avoid an error.
  18418. Use char because int might match the return type of a GCC
  18419. builtin and then its argument prototype would still apply. */
  18420. #ifdef __cplusplus
  18421. extern "C"
  18422. #endif
  18423. char XOpenDisplay ();
  18424. int
  18425. main ()
  18426. {
  18427. return XOpenDisplay ();
  18428. ;
  18429. return 0;
  18430. }
  18431. _ACEOF
  18432. if ac_fn_c_try_link "$LINENO"; then :
  18433. else
  18434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18435. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18436. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18437. $as_echo_n "(cached) " >&6
  18438. else
  18439. ac_check_lib_save_LIBS=$LIBS
  18440. LIBS="-ldnet $LIBS"
  18441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18442. /* end confdefs.h. */
  18443. /* Override any GCC internal prototype to avoid an error.
  18444. Use char because int might match the return type of a GCC
  18445. builtin and then its argument prototype would still apply. */
  18446. #ifdef __cplusplus
  18447. extern "C"
  18448. #endif
  18449. char dnet_ntoa ();
  18450. int
  18451. main ()
  18452. {
  18453. return dnet_ntoa ();
  18454. ;
  18455. return 0;
  18456. }
  18457. _ACEOF
  18458. if ac_fn_c_try_link "$LINENO"; then :
  18459. ac_cv_lib_dnet_dnet_ntoa=yes
  18460. else
  18461. ac_cv_lib_dnet_dnet_ntoa=no
  18462. fi
  18463. rm -f core conftest.err conftest.$ac_objext \
  18464. conftest$ac_exeext conftest.$ac_ext
  18465. LIBS=$ac_check_lib_save_LIBS
  18466. fi
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18468. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18469. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18470. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18471. fi
  18472. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18474. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18475. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18476. $as_echo_n "(cached) " >&6
  18477. else
  18478. ac_check_lib_save_LIBS=$LIBS
  18479. LIBS="-ldnet_stub $LIBS"
  18480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18481. /* end confdefs.h. */
  18482. /* Override any GCC internal prototype to avoid an error.
  18483. Use char because int might match the return type of a GCC
  18484. builtin and then its argument prototype would still apply. */
  18485. #ifdef __cplusplus
  18486. extern "C"
  18487. #endif
  18488. char dnet_ntoa ();
  18489. int
  18490. main ()
  18491. {
  18492. return dnet_ntoa ();
  18493. ;
  18494. return 0;
  18495. }
  18496. _ACEOF
  18497. if ac_fn_c_try_link "$LINENO"; then :
  18498. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18499. else
  18500. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18501. fi
  18502. rm -f core conftest.err conftest.$ac_objext \
  18503. conftest$ac_exeext conftest.$ac_ext
  18504. LIBS=$ac_check_lib_save_LIBS
  18505. fi
  18506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18507. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18508. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18509. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18510. fi
  18511. fi
  18512. fi
  18513. rm -f core conftest.err conftest.$ac_objext \
  18514. conftest$ac_exeext conftest.$ac_ext
  18515. LIBS="$ac_xsave_LIBS"
  18516. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18517. # to get the SysV transport functions.
  18518. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18519. # needs -lnsl.
  18520. # The nsl library prevents programs from opening the X display
  18521. # on Irix 5.2, according to T.E. Dickey.
  18522. # The functions gethostbyname, getservbyname, and inet_addr are
  18523. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18524. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18525. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18526. fi
  18527. if test $ac_cv_func_gethostbyname = no; then
  18528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18529. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18530. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18531. $as_echo_n "(cached) " >&6
  18532. else
  18533. ac_check_lib_save_LIBS=$LIBS
  18534. LIBS="-lnsl $LIBS"
  18535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18536. /* end confdefs.h. */
  18537. /* Override any GCC internal prototype to avoid an error.
  18538. Use char because int might match the return type of a GCC
  18539. builtin and then its argument prototype would still apply. */
  18540. #ifdef __cplusplus
  18541. extern "C"
  18542. #endif
  18543. char gethostbyname ();
  18544. int
  18545. main ()
  18546. {
  18547. return gethostbyname ();
  18548. ;
  18549. return 0;
  18550. }
  18551. _ACEOF
  18552. if ac_fn_c_try_link "$LINENO"; then :
  18553. ac_cv_lib_nsl_gethostbyname=yes
  18554. else
  18555. ac_cv_lib_nsl_gethostbyname=no
  18556. fi
  18557. rm -f core conftest.err conftest.$ac_objext \
  18558. conftest$ac_exeext conftest.$ac_ext
  18559. LIBS=$ac_check_lib_save_LIBS
  18560. fi
  18561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18562. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18563. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18564. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18565. fi
  18566. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18568. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18569. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18570. $as_echo_n "(cached) " >&6
  18571. else
  18572. ac_check_lib_save_LIBS=$LIBS
  18573. LIBS="-lbsd $LIBS"
  18574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18575. /* end confdefs.h. */
  18576. /* Override any GCC internal prototype to avoid an error.
  18577. Use char because int might match the return type of a GCC
  18578. builtin and then its argument prototype would still apply. */
  18579. #ifdef __cplusplus
  18580. extern "C"
  18581. #endif
  18582. char gethostbyname ();
  18583. int
  18584. main ()
  18585. {
  18586. return gethostbyname ();
  18587. ;
  18588. return 0;
  18589. }
  18590. _ACEOF
  18591. if ac_fn_c_try_link "$LINENO"; then :
  18592. ac_cv_lib_bsd_gethostbyname=yes
  18593. else
  18594. ac_cv_lib_bsd_gethostbyname=no
  18595. fi
  18596. rm -f core conftest.err conftest.$ac_objext \
  18597. conftest$ac_exeext conftest.$ac_ext
  18598. LIBS=$ac_check_lib_save_LIBS
  18599. fi
  18600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18601. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18602. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18603. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18604. fi
  18605. fi
  18606. fi
  18607. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18608. # socket/setsockopt and other routines are undefined under SCO ODT
  18609. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18610. # on later versions), says Simon Leinen: it contains gethostby*
  18611. # variants that don't use the name server (or something). -lsocket
  18612. # must be given before -lnsl if both are needed. We assume that
  18613. # if connect needs -lnsl, so does gethostbyname.
  18614. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18615. if test "x$ac_cv_func_connect" = xyes; then :
  18616. fi
  18617. if test $ac_cv_func_connect = no; then
  18618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18619. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18620. if ${ac_cv_lib_socket_connect+:} false; then :
  18621. $as_echo_n "(cached) " >&6
  18622. else
  18623. ac_check_lib_save_LIBS=$LIBS
  18624. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18626. /* end confdefs.h. */
  18627. /* Override any GCC internal prototype to avoid an error.
  18628. Use char because int might match the return type of a GCC
  18629. builtin and then its argument prototype would still apply. */
  18630. #ifdef __cplusplus
  18631. extern "C"
  18632. #endif
  18633. char connect ();
  18634. int
  18635. main ()
  18636. {
  18637. return connect ();
  18638. ;
  18639. return 0;
  18640. }
  18641. _ACEOF
  18642. if ac_fn_c_try_link "$LINENO"; then :
  18643. ac_cv_lib_socket_connect=yes
  18644. else
  18645. ac_cv_lib_socket_connect=no
  18646. fi
  18647. rm -f core conftest.err conftest.$ac_objext \
  18648. conftest$ac_exeext conftest.$ac_ext
  18649. LIBS=$ac_check_lib_save_LIBS
  18650. fi
  18651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18652. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18653. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18654. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18655. fi
  18656. fi
  18657. # Guillermo Gomez says -lposix is necessary on A/UX.
  18658. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18659. if test "x$ac_cv_func_remove" = xyes; then :
  18660. fi
  18661. if test $ac_cv_func_remove = no; then
  18662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18663. $as_echo_n "checking for remove in -lposix... " >&6; }
  18664. if ${ac_cv_lib_posix_remove+:} false; then :
  18665. $as_echo_n "(cached) " >&6
  18666. else
  18667. ac_check_lib_save_LIBS=$LIBS
  18668. LIBS="-lposix $LIBS"
  18669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18670. /* end confdefs.h. */
  18671. /* Override any GCC internal prototype to avoid an error.
  18672. Use char because int might match the return type of a GCC
  18673. builtin and then its argument prototype would still apply. */
  18674. #ifdef __cplusplus
  18675. extern "C"
  18676. #endif
  18677. char remove ();
  18678. int
  18679. main ()
  18680. {
  18681. return remove ();
  18682. ;
  18683. return 0;
  18684. }
  18685. _ACEOF
  18686. if ac_fn_c_try_link "$LINENO"; then :
  18687. ac_cv_lib_posix_remove=yes
  18688. else
  18689. ac_cv_lib_posix_remove=no
  18690. fi
  18691. rm -f core conftest.err conftest.$ac_objext \
  18692. conftest$ac_exeext conftest.$ac_ext
  18693. LIBS=$ac_check_lib_save_LIBS
  18694. fi
  18695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18696. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18697. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18698. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18699. fi
  18700. fi
  18701. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18702. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18703. if test "x$ac_cv_func_shmat" = xyes; then :
  18704. fi
  18705. if test $ac_cv_func_shmat = no; then
  18706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18707. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18708. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18709. $as_echo_n "(cached) " >&6
  18710. else
  18711. ac_check_lib_save_LIBS=$LIBS
  18712. LIBS="-lipc $LIBS"
  18713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18714. /* end confdefs.h. */
  18715. /* Override any GCC internal prototype to avoid an error.
  18716. Use char because int might match the return type of a GCC
  18717. builtin and then its argument prototype would still apply. */
  18718. #ifdef __cplusplus
  18719. extern "C"
  18720. #endif
  18721. char shmat ();
  18722. int
  18723. main ()
  18724. {
  18725. return shmat ();
  18726. ;
  18727. return 0;
  18728. }
  18729. _ACEOF
  18730. if ac_fn_c_try_link "$LINENO"; then :
  18731. ac_cv_lib_ipc_shmat=yes
  18732. else
  18733. ac_cv_lib_ipc_shmat=no
  18734. fi
  18735. rm -f core conftest.err conftest.$ac_objext \
  18736. conftest$ac_exeext conftest.$ac_ext
  18737. LIBS=$ac_check_lib_save_LIBS
  18738. fi
  18739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18740. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18741. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18742. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18743. fi
  18744. fi
  18745. fi
  18746. # Check for libraries that X11R6 Xt/Xaw programs need.
  18747. ac_save_LDFLAGS=$LDFLAGS
  18748. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18749. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18750. # check for ICE first), but we must link in the order -lSM -lICE or
  18751. # we get undefined symbols. So assume we have SM if we have ICE.
  18752. # These have to be linked with before -lX11, unlike the other
  18753. # libraries we check for below, so use a different variable.
  18754. # John Interrante, Karl Berry
  18755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18756. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18757. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18758. $as_echo_n "(cached) " >&6
  18759. else
  18760. ac_check_lib_save_LIBS=$LIBS
  18761. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18763. /* end confdefs.h. */
  18764. /* Override any GCC internal prototype to avoid an error.
  18765. Use char because int might match the return type of a GCC
  18766. builtin and then its argument prototype would still apply. */
  18767. #ifdef __cplusplus
  18768. extern "C"
  18769. #endif
  18770. char IceConnectionNumber ();
  18771. int
  18772. main ()
  18773. {
  18774. return IceConnectionNumber ();
  18775. ;
  18776. return 0;
  18777. }
  18778. _ACEOF
  18779. if ac_fn_c_try_link "$LINENO"; then :
  18780. ac_cv_lib_ICE_IceConnectionNumber=yes
  18781. else
  18782. ac_cv_lib_ICE_IceConnectionNumber=no
  18783. fi
  18784. rm -f core conftest.err conftest.$ac_objext \
  18785. conftest$ac_exeext conftest.$ac_ext
  18786. LIBS=$ac_check_lib_save_LIBS
  18787. fi
  18788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18789. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18790. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18791. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18792. fi
  18793. LDFLAGS=$ac_save_LDFLAGS
  18794. fi
  18795. if test x$have_x = xyes; then
  18796. # Check whether --enable-x11-shared was given.
  18797. if test "${enable_x11_shared+set}" = set; then :
  18798. enableval=$enable_x11_shared;
  18799. else
  18800. enable_x11_shared=maybe
  18801. fi
  18802. case "$host" in
  18803. *-*-darwin*)
  18804. # Apple now puts this in /opt/X11
  18805. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18806. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18807. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18808. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18809. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18810. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18811. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18812. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18813. ;;
  18814. *-*-openbsd*)
  18815. x11_lib='libX11.so'
  18816. x11ext_lib='libXext.so'
  18817. xcursor_lib='libXcursor.so'
  18818. xinput_lib='libXi.so'
  18819. xfixes_lib='libXfixes.so'
  18820. xrandr_lib='libXrandr.so'
  18821. xrender_lib='libXrender.so'
  18822. xss_lib='libXss.so'
  18823. ;;
  18824. *)
  18825. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18826. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18827. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18828. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18829. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18830. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18831. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18832. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18833. ;;
  18834. esac
  18835. if test x$ac_cv_func_shmat != xyes; then
  18836. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18837. fi
  18838. CFLAGS="$CFLAGS $X_CFLAGS"
  18839. LDFLAGS="$LDFLAGS $X_LIBS"
  18840. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18841. #include <X11/Xproto.h>
  18842. "
  18843. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18844. have_xext_h_hdr=yes
  18845. else
  18846. have_xext_h_hdr=no
  18847. fi
  18848. if test x$have_xext_h_hdr != xyes; then
  18849. as_fn_error $? "
  18850. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18851. " "$LINENO" 5
  18852. fi
  18853. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18854. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18855. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18856. # Needed so SDL applications can include SDL_syswm.h
  18857. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18858. if test x$enable_x11_shared = xmaybe; then
  18859. enable_x11_shared=yes
  18860. fi
  18861. if test x$have_loadso != xyes && \
  18862. test x$enable_x11_shared = xyes; then
  18863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18864. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18865. enable_x11_shared=no
  18866. fi
  18867. if test x$have_loadso = xyes && \
  18868. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18869. echo "-- dynamic libX11 -> $x11_lib"
  18870. echo "-- dynamic libX11ext -> $x11ext_lib"
  18871. cat >>confdefs.h <<_ACEOF
  18872. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18873. _ACEOF
  18874. cat >>confdefs.h <<_ACEOF
  18875. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18876. _ACEOF
  18877. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18878. else
  18879. enable_x11_shared=no
  18880. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18881. SUMMARY_video="${SUMMARY_video} x11"
  18882. fi
  18883. have_video=yes
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18885. $as_echo_n "checking for XGenericEvent... " >&6; }
  18886. have_XGenericEvent=no
  18887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18888. /* end confdefs.h. */
  18889. #include <X11/Xlib.h>
  18890. int
  18891. main ()
  18892. {
  18893. Display *display;
  18894. XEvent event;
  18895. XGenericEventCookie *cookie = &event.xcookie;
  18896. XNextEvent(display, &event);
  18897. XGetEventData(display, cookie);
  18898. XFreeEventData(display, cookie);
  18899. ;
  18900. return 0;
  18901. }
  18902. _ACEOF
  18903. if ac_fn_c_try_compile "$LINENO"; then :
  18904. have_XGenericEvent=yes
  18905. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18906. fi
  18907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18909. $as_echo "$have_XGenericEvent" >&6; }
  18910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18911. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18912. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18913. $as_echo_n "(cached) " >&6
  18914. else
  18915. ac_check_lib_save_LIBS=$LIBS
  18916. LIBS="-lX11 $LIBS"
  18917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18918. /* end confdefs.h. */
  18919. /* Override any GCC internal prototype to avoid an error.
  18920. Use char because int might match the return type of a GCC
  18921. builtin and then its argument prototype would still apply. */
  18922. #ifdef __cplusplus
  18923. extern "C"
  18924. #endif
  18925. char XkbKeycodeToKeysym ();
  18926. int
  18927. main ()
  18928. {
  18929. return XkbKeycodeToKeysym ();
  18930. ;
  18931. return 0;
  18932. }
  18933. _ACEOF
  18934. if ac_fn_c_try_link "$LINENO"; then :
  18935. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18936. else
  18937. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18938. fi
  18939. rm -f core conftest.err conftest.$ac_objext \
  18940. conftest$ac_exeext conftest.$ac_ext
  18941. LIBS=$ac_check_lib_save_LIBS
  18942. fi
  18943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18944. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18945. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18946. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18947. fi
  18948. # Check whether --enable-video-x11-xcursor was given.
  18949. if test "${enable_video_x11_xcursor+set}" = set; then :
  18950. enableval=$enable_video_x11_xcursor;
  18951. else
  18952. enable_video_x11_xcursor=yes
  18953. fi
  18954. if test x$enable_video_x11_xcursor = xyes; then
  18955. definitely_enable_video_x11_xcursor=no
  18956. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18957. "
  18958. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18959. have_xcursor_h_hdr=yes
  18960. else
  18961. have_xcursor_h_hdr=no
  18962. fi
  18963. if test x$have_xcursor_h_hdr = xyes; then
  18964. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18965. echo "-- dynamic libXcursor -> $xcursor_lib"
  18966. cat >>confdefs.h <<_ACEOF
  18967. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18968. _ACEOF
  18969. definitely_enable_video_x11_xcursor=yes
  18970. else
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18972. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18973. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18974. $as_echo_n "(cached) " >&6
  18975. else
  18976. ac_check_lib_save_LIBS=$LIBS
  18977. LIBS="-lXcursor $LIBS"
  18978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18979. /* end confdefs.h. */
  18980. /* Override any GCC internal prototype to avoid an error.
  18981. Use char because int might match the return type of a GCC
  18982. builtin and then its argument prototype would still apply. */
  18983. #ifdef __cplusplus
  18984. extern "C"
  18985. #endif
  18986. char XcursorImageCreate ();
  18987. int
  18988. main ()
  18989. {
  18990. return XcursorImageCreate ();
  18991. ;
  18992. return 0;
  18993. }
  18994. _ACEOF
  18995. if ac_fn_c_try_link "$LINENO"; then :
  18996. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18997. else
  18998. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18999. fi
  19000. rm -f core conftest.err conftest.$ac_objext \
  19001. conftest$ac_exeext conftest.$ac_ext
  19002. LIBS=$ac_check_lib_save_LIBS
  19003. fi
  19004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  19005. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  19006. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  19007. have_xcursor_lib=yes
  19008. fi
  19009. if test x$have_xcursor_lib = xyes ; then
  19010. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  19011. definitely_enable_video_x11_xcursor=yes
  19012. fi
  19013. fi
  19014. fi
  19015. fi
  19016. if test x$definitely_enable_video_x11_xcursor = xyes; then
  19017. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  19018. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  19019. fi
  19020. # Check whether --enable-video-x11-xdbe was given.
  19021. if test "${enable_video_x11_xdbe+set}" = set; then :
  19022. enableval=$enable_video_x11_xdbe;
  19023. else
  19024. enable_video_x11_xdbe=yes
  19025. fi
  19026. if test x$enable_video_x11_xdbe = xyes; then
  19027. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  19028. "
  19029. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  19030. have_dbe_h_hdr=yes
  19031. else
  19032. have_dbe_h_hdr=no
  19033. fi
  19034. if test x$have_dbe_h_hdr = xyes; then
  19035. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  19036. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  19037. fi
  19038. fi
  19039. # Check whether --enable-video-x11-xinput was given.
  19040. if test "${enable_video_x11_xinput+set}" = set; then :
  19041. enableval=$enable_video_x11_xinput;
  19042. else
  19043. enable_video_x11_xinput=yes
  19044. fi
  19045. if test x$enable_video_x11_xinput = xyes; then
  19046. definitely_enable_video_x11_xinput=no
  19047. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19048. "
  19049. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19050. have_xinput_h_hdr=yes
  19051. else
  19052. have_xinput_h_hdr=no
  19053. fi
  19054. if test x$have_xinput_h_hdr = xyes; then
  19055. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19056. echo "-- dynamic libXi -> $xinput_lib"
  19057. cat >>confdefs.h <<_ACEOF
  19058. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19059. _ACEOF
  19060. definitely_enable_video_x11_xinput=yes
  19061. else
  19062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19063. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19064. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19065. $as_echo_n "(cached) " >&6
  19066. else
  19067. ac_check_lib_save_LIBS=$LIBS
  19068. LIBS="-lXi $LIBS"
  19069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19070. /* end confdefs.h. */
  19071. /* Override any GCC internal prototype to avoid an error.
  19072. Use char because int might match the return type of a GCC
  19073. builtin and then its argument prototype would still apply. */
  19074. #ifdef __cplusplus
  19075. extern "C"
  19076. #endif
  19077. char XOpenDevice ();
  19078. int
  19079. main ()
  19080. {
  19081. return XOpenDevice ();
  19082. ;
  19083. return 0;
  19084. }
  19085. _ACEOF
  19086. if ac_fn_c_try_link "$LINENO"; then :
  19087. ac_cv_lib_Xi_XOpenDevice=yes
  19088. else
  19089. ac_cv_lib_Xi_XOpenDevice=no
  19090. fi
  19091. rm -f core conftest.err conftest.$ac_objext \
  19092. conftest$ac_exeext conftest.$ac_ext
  19093. LIBS=$ac_check_lib_save_LIBS
  19094. fi
  19095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19096. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19097. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19098. have_xinput_lib=yes
  19099. fi
  19100. if test x$have_xinput_lib = xyes ; then
  19101. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19102. definitely_enable_video_x11_xinput=yes
  19103. fi
  19104. fi
  19105. fi
  19106. fi
  19107. if test x$definitely_enable_video_x11_xinput = xyes; then
  19108. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19109. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19111. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19112. have_xinput2_multitouch=no
  19113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19114. /* end confdefs.h. */
  19115. #include <X11/Xlib.h>
  19116. #include <X11/Xproto.h>
  19117. #include <X11/extensions/XInput2.h>
  19118. int
  19119. main ()
  19120. {
  19121. int event_type = XI_TouchBegin;
  19122. XITouchClassInfo *t;
  19123. ;
  19124. return 0;
  19125. }
  19126. _ACEOF
  19127. if ac_fn_c_try_compile "$LINENO"; then :
  19128. have_xinput2_multitouch=yes
  19129. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19130. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19131. fi
  19132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19134. $as_echo "$have_xinput2_multitouch" >&6; }
  19135. fi
  19136. # Check whether --enable-video-x11-xfixes was given.
  19137. if test "${enable_video_x11_xfixes+set}" = set; then :
  19138. enableval=$enable_video_x11_xfixes;
  19139. else
  19140. enable_video_x11_xfixes=yes
  19141. fi
  19142. if test x$enable_video_x11_xfixes = xyes; then
  19143. definitely_enable_video_x11_xfixes=no
  19144. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19146. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19148. /* end confdefs.h. */
  19149. #include <X11/Xlib.h>
  19150. #include <X11/Xproto.h>
  19151. #include <X11/extensions/XInput2.h>
  19152. #include <X11/extensions/Xfixes.h>
  19153. int
  19154. main ()
  19155. {
  19156. BarrierEventID b;
  19157. ;
  19158. return 0;
  19159. }
  19160. _ACEOF
  19161. if ac_fn_c_try_compile "$LINENO"; then :
  19162. have_xfixes_h_hdr=yes
  19163. else
  19164. have_xfixes_h_hdr=no
  19165. fi
  19166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19168. $as_echo "$have_xfixes_h_hdr" >&6; }
  19169. if test x$have_xfixes_h_hdr = xyes; then
  19170. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19171. echo "-- dynamic libXfixes -> $xfixes_lib"
  19172. cat >>confdefs.h <<_ACEOF
  19173. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19174. _ACEOF
  19175. definitely_enable_video_x11_xfixes=yes
  19176. else
  19177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19178. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19179. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19180. $as_echo_n "(cached) " >&6
  19181. else
  19182. ac_check_lib_save_LIBS=$LIBS
  19183. LIBS="-lXfixes $LIBS"
  19184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19185. /* end confdefs.h. */
  19186. /* Override any GCC internal prototype to avoid an error.
  19187. Use char because int might match the return type of a GCC
  19188. builtin and then its argument prototype would still apply. */
  19189. #ifdef __cplusplus
  19190. extern "C"
  19191. #endif
  19192. char XFixesCreatePointerBarrier ();
  19193. int
  19194. main ()
  19195. {
  19196. return XFixesCreatePointerBarrier ();
  19197. ;
  19198. return 0;
  19199. }
  19200. _ACEOF
  19201. if ac_fn_c_try_link "$LINENO"; then :
  19202. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19203. else
  19204. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19205. fi
  19206. rm -f core conftest.err conftest.$ac_objext \
  19207. conftest$ac_exeext conftest.$ac_ext
  19208. LIBS=$ac_check_lib_save_LIBS
  19209. fi
  19210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19211. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19212. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19213. have_xfixes_lib=yes
  19214. fi
  19215. if test x$have_xfixes_lib = xyes ; then
  19216. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19217. definitely_enable_video_x11_xfixes=yes
  19218. fi
  19219. fi
  19220. fi
  19221. fi
  19222. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19223. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19224. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19225. fi
  19226. # Check whether --enable-video-x11-xrandr was given.
  19227. if test "${enable_video_x11_xrandr+set}" = set; then :
  19228. enableval=$enable_video_x11_xrandr;
  19229. else
  19230. enable_video_x11_xrandr=yes
  19231. fi
  19232. if test x$enable_video_x11_xrandr = xyes; then
  19233. definitely_enable_video_x11_xrandr=no
  19234. have_xrandr_h_hdr=no
  19235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19236. /* end confdefs.h. */
  19237. #include <X11/Xlib.h>
  19238. #include <X11/extensions/Xrandr.h>
  19239. int
  19240. main ()
  19241. {
  19242. XRRScreenResources *res = NULL;
  19243. ;
  19244. return 0;
  19245. }
  19246. _ACEOF
  19247. if ac_fn_c_try_compile "$LINENO"; then :
  19248. have_xrandr_h_hdr=yes
  19249. fi
  19250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19251. if test x$have_xrandr_h_hdr = xyes; then
  19252. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19253. echo "-- dynamic libXrandr -> $xrandr_lib"
  19254. cat >>confdefs.h <<_ACEOF
  19255. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19256. _ACEOF
  19257. definitely_enable_video_x11_xrandr=yes
  19258. else
  19259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19260. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19261. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19262. $as_echo_n "(cached) " >&6
  19263. else
  19264. ac_check_lib_save_LIBS=$LIBS
  19265. LIBS="-lXrandr $LIBS"
  19266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19267. /* end confdefs.h. */
  19268. /* Override any GCC internal prototype to avoid an error.
  19269. Use char because int might match the return type of a GCC
  19270. builtin and then its argument prototype would still apply. */
  19271. #ifdef __cplusplus
  19272. extern "C"
  19273. #endif
  19274. char XRRQueryExtension ();
  19275. int
  19276. main ()
  19277. {
  19278. return XRRQueryExtension ();
  19279. ;
  19280. return 0;
  19281. }
  19282. _ACEOF
  19283. if ac_fn_c_try_link "$LINENO"; then :
  19284. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19285. else
  19286. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19287. fi
  19288. rm -f core conftest.err conftest.$ac_objext \
  19289. conftest$ac_exeext conftest.$ac_ext
  19290. LIBS=$ac_check_lib_save_LIBS
  19291. fi
  19292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19293. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19294. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19295. have_xrandr_lib=yes
  19296. fi
  19297. if test x$have_xrandr_lib = xyes ; then
  19298. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19299. definitely_enable_video_x11_xrandr=yes
  19300. fi
  19301. fi
  19302. fi
  19303. fi
  19304. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19305. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19306. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19307. fi
  19308. # Check whether --enable-video-x11-scrnsaver was given.
  19309. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19310. enableval=$enable_video_x11_scrnsaver;
  19311. else
  19312. enable_video_x11_scrnsaver=yes
  19313. fi
  19314. if test x$enable_video_x11_scrnsaver = xyes; then
  19315. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19316. "
  19317. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19318. have_scrnsaver_h_hdr=yes
  19319. else
  19320. have_scrnsaver_h_hdr=no
  19321. fi
  19322. if test x$have_scrnsaver_h_hdr = xyes; then
  19323. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19324. echo "-- dynamic libXss -> $xss_lib"
  19325. cat >>confdefs.h <<_ACEOF
  19326. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19327. _ACEOF
  19328. definitely_enable_video_x11_scrnsaver=yes
  19329. else
  19330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19331. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19332. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19333. $as_echo_n "(cached) " >&6
  19334. else
  19335. ac_check_lib_save_LIBS=$LIBS
  19336. LIBS="-lXss $LIBS"
  19337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19338. /* end confdefs.h. */
  19339. /* Override any GCC internal prototype to avoid an error.
  19340. Use char because int might match the return type of a GCC
  19341. builtin and then its argument prototype would still apply. */
  19342. #ifdef __cplusplus
  19343. extern "C"
  19344. #endif
  19345. char XScreenSaverSuspend ();
  19346. int
  19347. main ()
  19348. {
  19349. return XScreenSaverSuspend ();
  19350. ;
  19351. return 0;
  19352. }
  19353. _ACEOF
  19354. if ac_fn_c_try_link "$LINENO"; then :
  19355. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19356. else
  19357. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19358. fi
  19359. rm -f core conftest.err conftest.$ac_objext \
  19360. conftest$ac_exeext conftest.$ac_ext
  19361. LIBS=$ac_check_lib_save_LIBS
  19362. fi
  19363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19364. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19365. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19366. have_xss_lib=yes
  19367. fi
  19368. if test x$have_xss_lib = xyes ; then
  19369. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19370. definitely_enable_video_x11_scrnsaver=yes
  19371. fi
  19372. fi
  19373. fi
  19374. fi
  19375. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19376. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19377. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19378. fi
  19379. # Check whether --enable-video-x11-xshape was given.
  19380. if test "${enable_video_x11_xshape+set}" = set; then :
  19381. enableval=$enable_video_x11_xshape;
  19382. else
  19383. enable_video_x11_xshape=yes
  19384. fi
  19385. if test x$enable_video_x11_xshape = xyes; then
  19386. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19387. "
  19388. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19389. have_shape_h_hdr=yes
  19390. else
  19391. have_shape_h_hdr=no
  19392. fi
  19393. if test x$have_shape_h_hdr = xyes; then
  19394. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19395. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19396. fi
  19397. fi
  19398. fi
  19399. fi
  19400. if test x$have_x != xyes; then
  19401. # Prevent Mesa from including X11 headers
  19402. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19403. fi
  19404. }
  19405. CheckVivanteVideo()
  19406. {
  19407. # Check whether --enable-video-vivante was given.
  19408. if test "${enable_video_vivante+set}" = set; then :
  19409. enableval=$enable_video_vivante;
  19410. else
  19411. enable_video_vivante=yes
  19412. fi
  19413. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19415. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19416. have_vivante_vdk=no
  19417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19418. /* end confdefs.h. */
  19419. #define LINUX
  19420. #define EGL_API_FB
  19421. #include <gc_vdk.h>
  19422. int
  19423. main ()
  19424. {
  19425. ;
  19426. return 0;
  19427. }
  19428. _ACEOF
  19429. if ac_fn_c_try_compile "$LINENO"; then :
  19430. have_vivante_vdk=yes
  19431. fi
  19432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19434. $as_echo "$have_vivante_vdk" >&6; }
  19435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19436. $as_echo_n "checking for Vivante FB API... " >&6; }
  19437. have_vivante_egl=no
  19438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19439. /* end confdefs.h. */
  19440. #define LINUX
  19441. #define EGL_API_FB
  19442. #include <EGL/eglvivante.h>
  19443. int
  19444. main ()
  19445. {
  19446. ;
  19447. return 0;
  19448. }
  19449. _ACEOF
  19450. if ac_fn_c_try_compile "$LINENO"; then :
  19451. have_vivante_egl=yes
  19452. fi
  19453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19455. $as_echo "$have_vivante_egl" >&6; }
  19456. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19457. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19458. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19459. if test x$have_vivante_vdk = xyes; then
  19460. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19462. fi
  19463. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19464. SUMMARY_video="${SUMMARY_video} vivante"
  19465. have_video=yes
  19466. fi
  19467. fi
  19468. }
  19469. CheckHaikuVideo()
  19470. {
  19471. if test x$enable_video = xyes; then
  19472. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19473. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19474. have_video=yes
  19475. SUMMARY_video="${SUMMARY_video} haiku"
  19476. fi
  19477. }
  19478. CheckCOCOA()
  19479. {
  19480. # Check whether --enable-video-cocoa was given.
  19481. if test "${enable_video_cocoa+set}" = set; then :
  19482. enableval=$enable_video_cocoa;
  19483. else
  19484. enable_video_cocoa=yes
  19485. fi
  19486. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19487. save_CFLAGS="$CFLAGS"
  19488. CFLAGS="$CFLAGS -x objective-c"
  19489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19490. $as_echo_n "checking for Cocoa framework... " >&6; }
  19491. have_cocoa=no
  19492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19493. /* end confdefs.h. */
  19494. #import <Cocoa/Cocoa.h>
  19495. int
  19496. main ()
  19497. {
  19498. ;
  19499. return 0;
  19500. }
  19501. _ACEOF
  19502. if ac_fn_c_try_compile "$LINENO"; then :
  19503. have_cocoa=yes
  19504. fi
  19505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19507. $as_echo "$have_cocoa" >&6; }
  19508. CFLAGS="$save_CFLAGS"
  19509. if test x$have_cocoa = xyes; then
  19510. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19511. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19512. SUMMARY_video="${SUMMARY_video} cocoa"
  19513. have_video=yes
  19514. fi
  19515. fi
  19516. }
  19517. CheckMETAL()
  19518. {
  19519. # Check whether --enable-video-metal was given.
  19520. if test "${enable_video_metal+set}" = set; then :
  19521. enableval=$enable_video_metal;
  19522. else
  19523. enable_video_metal=yes
  19524. fi
  19525. # Check whether --enable-render-metal was given.
  19526. if test "${enable_render_metal+set}" = set; then :
  19527. enableval=$enable_render_metal;
  19528. else
  19529. enable_render_metal=yes
  19530. fi
  19531. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19532. save_CFLAGS="$CFLAGS"
  19533. CFLAGS="$CFLAGS -x objective-c"
  19534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19535. $as_echo_n "checking for Metal framework... " >&6; }
  19536. have_metal=no
  19537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19538. /* end confdefs.h. */
  19539. #import <Cocoa/Cocoa.h>
  19540. #import <Metal/Metal.h>
  19541. #import <QuartzCore/CAMetalLayer.h>
  19542. #if TARGET_CPU_X86
  19543. #error Metal doesn't work on this configuration
  19544. #endif
  19545. int
  19546. main ()
  19547. {
  19548. ;
  19549. return 0;
  19550. }
  19551. _ACEOF
  19552. if ac_fn_c_try_compile "$LINENO"; then :
  19553. have_metal=yes
  19554. fi
  19555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19556. CFLAGS="$save_CFLAGS"
  19557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19558. $as_echo "$have_metal" >&6; }
  19559. if test x$have_metal = xyes; then
  19560. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19561. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19562. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19563. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19564. fi
  19565. SUMMARY_video="${SUMMARY_video} metal"
  19566. else
  19567. enable_video_metal=no
  19568. enable_render_metal=no
  19569. fi
  19570. fi
  19571. }
  19572. CheckDirectFB()
  19573. {
  19574. # Check whether --enable-video-directfb was given.
  19575. if test "${enable_video_directfb+set}" = set; then :
  19576. enableval=$enable_video_directfb;
  19577. else
  19578. enable_video_directfb=no
  19579. fi
  19580. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19581. pkg_failed=no
  19582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19583. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19584. if test -n "$DIRECTFB_CFLAGS"; then
  19585. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19586. elif test -n "$PKG_CONFIG"; then
  19587. if test -n "$PKG_CONFIG" && \
  19588. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19589. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19590. ac_status=$?
  19591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19592. test $ac_status = 0; }; then
  19593. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19594. test "x$?" != "x0" && pkg_failed=yes
  19595. else
  19596. pkg_failed=yes
  19597. fi
  19598. else
  19599. pkg_failed=untried
  19600. fi
  19601. if test -n "$DIRECTFB_LIBS"; then
  19602. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19603. elif test -n "$PKG_CONFIG"; then
  19604. if test -n "$PKG_CONFIG" && \
  19605. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19606. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19607. ac_status=$?
  19608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19609. test $ac_status = 0; }; then
  19610. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19611. test "x$?" != "x0" && pkg_failed=yes
  19612. else
  19613. pkg_failed=yes
  19614. fi
  19615. else
  19616. pkg_failed=untried
  19617. fi
  19618. if test $pkg_failed = yes; then
  19619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19620. $as_echo "no" >&6; }
  19621. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19622. _pkg_short_errors_supported=yes
  19623. else
  19624. _pkg_short_errors_supported=no
  19625. fi
  19626. if test $_pkg_short_errors_supported = yes; then
  19627. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19628. else
  19629. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19630. fi
  19631. # Put the nasty error message in config.log where it belongs
  19632. echo "$DIRECTFB_PKG_ERRORS" >&5
  19633. video_directfb=no
  19634. elif test $pkg_failed = untried; then
  19635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19636. $as_echo "no" >&6; }
  19637. video_directfb=no
  19638. else
  19639. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19640. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19642. $as_echo "yes" >&6; }
  19643. video_directfb=yes
  19644. fi
  19645. if test x$video_directfb = xyes; then
  19646. # SuSE 11.1 installs directfb-config without directfb-devel
  19647. save_CPPFLAGS="$CPPFLAGS"
  19648. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19649. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19650. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19651. have_directfb_hdr=yes
  19652. else
  19653. have_directfb_hdr=no
  19654. fi
  19655. CPPFLAGS="$save_CPPFLAGS"
  19656. video_directfb=$have_directfb_hdr
  19657. fi
  19658. if test x$video_directfb = xyes; then
  19659. # Check whether --enable-directfb-shared was given.
  19660. if test "${enable_directfb_shared+set}" = set; then :
  19661. enableval=$enable_directfb_shared;
  19662. else
  19663. enable_directfb_shared=yes
  19664. fi
  19665. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19666. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19667. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19668. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19669. directfb_shared=no
  19670. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19671. if test x$have_loadso != xyes && \
  19672. test x$enable_directfb_shared = xyes; then
  19673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19674. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19675. fi
  19676. if test x$have_loadso = xyes && \
  19677. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19678. directfb_shared=yes
  19679. echo "-- dynamic libdirectfb -> $directfb_lib"
  19680. cat >>confdefs.h <<_ACEOF
  19681. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19682. _ACEOF
  19683. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19684. else
  19685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19686. SUMMARY_video="${SUMMARY_video} directfb"
  19687. fi
  19688. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19689. have_video=yes
  19690. fi
  19691. fi
  19692. }
  19693. CheckKMSDRM()
  19694. {
  19695. # Check whether --enable-video-kmsdrm was given.
  19696. if test "${enable_video_kmsdrm+set}" = set; then :
  19697. enableval=$enable_video_kmsdrm;
  19698. else
  19699. enable_video_kmsdrm=yes
  19700. fi
  19701. if test x$enable_video = xyes && \
  19702. test x$enable_video_kmsdrm = xyes && \
  19703. test x$video_opengl_egl = xyes; then
  19704. video_kmsdrm=no
  19705. pkg_failed=no
  19706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19707. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19708. if test -n "$LIBDRM_CFLAGS"; then
  19709. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19710. elif test -n "$PKG_CONFIG"; then
  19711. if test -n "$PKG_CONFIG" && \
  19712. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19713. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19714. ac_status=$?
  19715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19716. test $ac_status = 0; }; then
  19717. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19718. test "x$?" != "x0" && pkg_failed=yes
  19719. else
  19720. pkg_failed=yes
  19721. fi
  19722. else
  19723. pkg_failed=untried
  19724. fi
  19725. if test -n "$LIBDRM_LIBS"; then
  19726. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19727. elif test -n "$PKG_CONFIG"; then
  19728. if test -n "$PKG_CONFIG" && \
  19729. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19730. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19731. ac_status=$?
  19732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19733. test $ac_status = 0; }; then
  19734. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19735. test "x$?" != "x0" && pkg_failed=yes
  19736. else
  19737. pkg_failed=yes
  19738. fi
  19739. else
  19740. pkg_failed=untried
  19741. fi
  19742. if test $pkg_failed = yes; then
  19743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19744. $as_echo "no" >&6; }
  19745. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19746. _pkg_short_errors_supported=yes
  19747. else
  19748. _pkg_short_errors_supported=no
  19749. fi
  19750. if test $_pkg_short_errors_supported = yes; then
  19751. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19752. else
  19753. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19754. fi
  19755. # Put the nasty error message in config.log where it belongs
  19756. echo "$LIBDRM_PKG_ERRORS" >&5
  19757. libdrm_avail=no
  19758. elif test $pkg_failed = untried; then
  19759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19760. $as_echo "no" >&6; }
  19761. libdrm_avail=no
  19762. else
  19763. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19764. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19766. $as_echo "yes" >&6; }
  19767. libdrm_avail=yes
  19768. fi
  19769. pkg_failed=no
  19770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19771. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19772. if test -n "$LIBGBM_CFLAGS"; then
  19773. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19774. elif test -n "$PKG_CONFIG"; then
  19775. if test -n "$PKG_CONFIG" && \
  19776. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19777. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19778. ac_status=$?
  19779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19780. test $ac_status = 0; }; then
  19781. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19782. test "x$?" != "x0" && pkg_failed=yes
  19783. else
  19784. pkg_failed=yes
  19785. fi
  19786. else
  19787. pkg_failed=untried
  19788. fi
  19789. if test -n "$LIBGBM_LIBS"; then
  19790. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19791. elif test -n "$PKG_CONFIG"; then
  19792. if test -n "$PKG_CONFIG" && \
  19793. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19794. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19795. ac_status=$?
  19796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19797. test $ac_status = 0; }; then
  19798. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19799. test "x$?" != "x0" && pkg_failed=yes
  19800. else
  19801. pkg_failed=yes
  19802. fi
  19803. else
  19804. pkg_failed=untried
  19805. fi
  19806. if test $pkg_failed = yes; then
  19807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19808. $as_echo "no" >&6; }
  19809. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19810. _pkg_short_errors_supported=yes
  19811. else
  19812. _pkg_short_errors_supported=no
  19813. fi
  19814. if test $_pkg_short_errors_supported = yes; then
  19815. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19816. else
  19817. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19818. fi
  19819. # Put the nasty error message in config.log where it belongs
  19820. echo "$LIBGBM_PKG_ERRORS" >&5
  19821. libgbm_avail=no
  19822. elif test $pkg_failed = untried; then
  19823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19824. $as_echo "no" >&6; }
  19825. libgbm_avail=no
  19826. else
  19827. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19828. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19830. $as_echo "yes" >&6; }
  19831. libgbm_avail=yes
  19832. fi
  19833. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19834. video_kmsdrm=yes
  19835. fi
  19836. if test x$video_kmsdrm = xyes; then
  19837. # Check whether --enable-kmsdrm-shared was given.
  19838. if test "${enable_kmsdrm_shared+set}" = set; then :
  19839. enableval=$enable_kmsdrm_shared;
  19840. else
  19841. enable_kmsdrm_shared=yes
  19842. fi
  19843. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19844. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19845. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19847. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19848. kmsdrm_shared=no
  19849. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19850. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19851. if test x$have_loadso != xyes && \
  19852. test x$enable_kmsdrm_shared = xyes; then
  19853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19854. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19855. fi
  19856. if test x$have_loadso = xyes && \
  19857. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19858. kmsdrm_shared=yes
  19859. cat >>confdefs.h <<_ACEOF
  19860. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19861. _ACEOF
  19862. cat >>confdefs.h <<_ACEOF
  19863. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19864. _ACEOF
  19865. cat >>confdefs.h <<_ACEOF
  19866. #define HAVE_KMSDRM_SHARED "TRUE"
  19867. _ACEOF
  19868. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19869. else
  19870. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19871. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19872. fi
  19873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19874. $as_echo "$kmsdrm_shared" >&6; }
  19875. if test x$kmsdrm_shared = xyes; then
  19876. echo "-- dynamic libdrm -> $drm_lib"
  19877. echo "-- dynamic libgbm -> $gbm_lib"
  19878. fi
  19879. have_video=yes
  19880. fi
  19881. fi
  19882. }
  19883. CheckDummyVideo()
  19884. {
  19885. # Check whether --enable-video-dummy was given.
  19886. if test "${enable_video_dummy+set}" = set; then :
  19887. enableval=$enable_video_dummy;
  19888. else
  19889. enable_video_dummy=yes
  19890. fi
  19891. if test x$enable_video_dummy = xyes; then
  19892. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19893. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19894. have_video=yes
  19895. SUMMARY_video="${SUMMARY_video} dummy"
  19896. fi
  19897. }
  19898. CheckOffscreenVideo()
  19899. {
  19900. # Check whether --enable-video-offscreen was given.
  19901. if test "${enable_video_offscreen+set}" = set; then :
  19902. enableval=$enable_video_offscreen;
  19903. else
  19904. enable_video_offscreen=no
  19905. fi
  19906. if test x$enable_video_offscreen = xyes; then
  19907. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19908. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19909. have_video=yes
  19910. SUMMARY_video="${SUMMARY_video} offscreen"
  19911. fi
  19912. }
  19913. CheckQNXVideo()
  19914. {
  19915. if test x$enable_video = xyes; then
  19916. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19917. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19918. have_video=yes
  19919. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19920. SUMMARY_video="${SUMMARY_video} qnx"
  19921. fi
  19922. }
  19923. CheckQNXAudio()
  19924. {
  19925. if test x$enable_audio = xyes; then
  19926. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19927. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19928. have_audio=yes
  19929. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19930. SUMMARY_audio="${SUMMARY_audio} qsa"
  19931. fi
  19932. }
  19933. # Check whether --enable-video-opengl was given.
  19934. if test "${enable_video_opengl+set}" = set; then :
  19935. enableval=$enable_video_opengl;
  19936. else
  19937. enable_video_opengl=yes
  19938. fi
  19939. CheckGLX()
  19940. {
  19941. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19943. $as_echo_n "checking for GLX support... " >&6; }
  19944. video_opengl_glx=no
  19945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19946. /* end confdefs.h. */
  19947. #include <GL/glx.h>
  19948. int
  19949. main ()
  19950. {
  19951. ;
  19952. return 0;
  19953. }
  19954. _ACEOF
  19955. if ac_fn_c_try_compile "$LINENO"; then :
  19956. video_opengl_glx=yes
  19957. fi
  19958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19960. $as_echo "$video_opengl_glx" >&6; }
  19961. if test x$video_opengl_glx = xyes; then
  19962. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19963. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19964. fi
  19965. fi
  19966. }
  19967. # Check whether --enable-video-opengles was given.
  19968. if test "${enable_video_opengles+set}" = set; then :
  19969. enableval=$enable_video_opengles;
  19970. else
  19971. enable_video_opengles=yes
  19972. fi
  19973. # Check whether --enable-video-opengles1 was given.
  19974. if test "${enable_video_opengles1+set}" = set; then :
  19975. enableval=$enable_video_opengles1;
  19976. else
  19977. enable_video_opengles1=yes
  19978. fi
  19979. # Check whether --enable-video-opengles2 was given.
  19980. if test "${enable_video_opengles2+set}" = set; then :
  19981. enableval=$enable_video_opengles2;
  19982. else
  19983. enable_video_opengles2=yes
  19984. fi
  19985. CheckEGL()
  19986. {
  19987. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19989. $as_echo_n "checking for EGL support... " >&6; }
  19990. video_opengl_egl=no
  19991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19992. /* end confdefs.h. */
  19993. #define LINUX
  19994. #define EGL_API_FB
  19995. #define MESA_EGL_NO_X11_HEADERS
  19996. #define EGL_NO_X11
  19997. #include <EGL/egl.h>
  19998. #include <EGL/eglext.h>
  19999. int
  20000. main ()
  20001. {
  20002. ;
  20003. return 0;
  20004. }
  20005. _ACEOF
  20006. if ac_fn_c_try_compile "$LINENO"; then :
  20007. video_opengl_egl=yes
  20008. fi
  20009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20011. $as_echo "$video_opengl_egl" >&6; }
  20012. if test x$video_opengl_egl = xyes; then
  20013. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20014. fi
  20015. fi
  20016. }
  20017. CheckOpenGL()
  20018. {
  20019. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20021. $as_echo_n "checking for OpenGL headers... " >&6; }
  20022. video_opengl=no
  20023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20024. /* end confdefs.h. */
  20025. #include <GL/gl.h>
  20026. #include <GL/glext.h>
  20027. int
  20028. main ()
  20029. {
  20030. ;
  20031. return 0;
  20032. }
  20033. _ACEOF
  20034. if ac_fn_c_try_compile "$LINENO"; then :
  20035. video_opengl=yes
  20036. fi
  20037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20039. $as_echo "$video_opengl" >&6; }
  20040. if test x$video_opengl = xyes; then
  20041. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20042. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20043. SUMMARY_video="${SUMMARY_video} opengl"
  20044. fi
  20045. fi
  20046. }
  20047. CheckOpenGLES()
  20048. {
  20049. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20050. if test x$enable_video_opengles1 = xyes; then
  20051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20052. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20053. video_opengles_v1=no
  20054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20055. /* end confdefs.h. */
  20056. #include <GLES/gl.h>
  20057. #include <GLES/glext.h>
  20058. int
  20059. main ()
  20060. {
  20061. ;
  20062. return 0;
  20063. }
  20064. _ACEOF
  20065. if ac_fn_c_try_compile "$LINENO"; then :
  20066. video_opengles_v1=yes
  20067. fi
  20068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20070. $as_echo "$video_opengles_v1" >&6; }
  20071. if test x$video_opengles_v1 = xyes; then
  20072. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20073. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20074. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20075. fi
  20076. fi
  20077. if test x$enable_video_opengles2 = xyes; then
  20078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20079. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20080. video_opengles_v2=no
  20081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20082. /* end confdefs.h. */
  20083. #include <GLES2/gl2.h>
  20084. #include <GLES2/gl2ext.h>
  20085. int
  20086. main ()
  20087. {
  20088. ;
  20089. return 0;
  20090. }
  20091. _ACEOF
  20092. if ac_fn_c_try_compile "$LINENO"; then :
  20093. video_opengles_v2=yes
  20094. fi
  20095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20097. $as_echo "$video_opengles_v2" >&6; }
  20098. if test x$video_opengles_v2 = xyes; then
  20099. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20100. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20101. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20102. fi
  20103. fi
  20104. fi
  20105. }
  20106. CheckWINDOWSGL()
  20107. {
  20108. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20109. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20110. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20111. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20112. SUMMARY_video="${SUMMARY_video} opengl"
  20113. fi
  20114. }
  20115. CheckWINDOWSGLES()
  20116. {
  20117. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20119. $as_echo_n "checking for EGL support... " >&6; }
  20120. video_opengl_egl=no
  20121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20122. /* end confdefs.h. */
  20123. #include <EGL/egl.h>
  20124. int
  20125. main ()
  20126. {
  20127. ;
  20128. return 0;
  20129. }
  20130. _ACEOF
  20131. if ac_fn_c_try_compile "$LINENO"; then :
  20132. video_opengl_egl=yes
  20133. fi
  20134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20136. $as_echo "$video_opengl_egl" >&6; }
  20137. if test x$video_opengl_egl = xyes; then
  20138. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20139. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20140. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20141. fi
  20142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20143. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20144. video_opengles_v2=no
  20145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20146. /* end confdefs.h. */
  20147. #include <GLES2/gl2.h>
  20148. #include <GLES2/gl2ext.h>
  20149. int
  20150. main ()
  20151. {
  20152. ;
  20153. return 0;
  20154. }
  20155. _ACEOF
  20156. if ac_fn_c_try_compile "$LINENO"; then :
  20157. video_opengles_v2=yes
  20158. fi
  20159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20161. $as_echo "$video_opengles_v2" >&6; }
  20162. if test x$video_opengles_v2 = xyes; then
  20163. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20164. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20165. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20166. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20167. fi
  20168. fi
  20169. }
  20170. CheckHaikuGL()
  20171. {
  20172. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20173. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20174. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20175. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20177. SUMMARY_video="${SUMMARY_video} opengl"
  20178. fi
  20179. }
  20180. CheckMacGL()
  20181. {
  20182. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20183. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20184. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20185. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20186. SUMMARY_video="${SUMMARY_video} opengl"
  20187. fi
  20188. }
  20189. CheckMacGLES()
  20190. {
  20191. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20192. video_opengl_egl=yes
  20193. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20194. video_opengles_v2=yes
  20195. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20196. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20197. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20198. fi
  20199. }
  20200. CheckEmscriptenGLES()
  20201. {
  20202. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20204. $as_echo_n "checking for EGL support... " >&6; }
  20205. video_opengl_egl=no
  20206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20207. /* end confdefs.h. */
  20208. #include <EGL/egl.h>
  20209. int
  20210. main ()
  20211. {
  20212. ;
  20213. return 0;
  20214. }
  20215. _ACEOF
  20216. if ac_fn_c_try_compile "$LINENO"; then :
  20217. video_opengl_egl=yes
  20218. fi
  20219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20221. $as_echo "$video_opengl_egl" >&6; }
  20222. if test x$video_opengl_egl = xyes; then
  20223. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20224. fi
  20225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20226. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20227. video_opengles_v2=no
  20228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20229. /* end confdefs.h. */
  20230. #include <GLES2/gl2.h>
  20231. #include <GLES2/gl2ext.h>
  20232. int
  20233. main ()
  20234. {
  20235. ;
  20236. return 0;
  20237. }
  20238. _ACEOF
  20239. if ac_fn_c_try_compile "$LINENO"; then :
  20240. video_opengles_v2=yes
  20241. fi
  20242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20244. $as_echo "$video_opengles_v2" >&6; }
  20245. if test x$video_opengles_v2 = xyes; then
  20246. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20247. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20248. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20249. fi
  20250. fi
  20251. }
  20252. # Check whether --enable-video-vulkan was given.
  20253. if test "${enable_video_vulkan+set}" = set; then :
  20254. enableval=$enable_video_vulkan;
  20255. else
  20256. enable_video_vulkan=yes
  20257. fi
  20258. CheckVulkan()
  20259. {
  20260. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20261. case "$host" in
  20262. *-*-android*)
  20263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20264. /* end confdefs.h. */
  20265. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20266. #error Vulkan doesn't work on this configuration
  20267. #endif
  20268. int
  20269. main ()
  20270. {
  20271. ;
  20272. return 0;
  20273. }
  20274. _ACEOF
  20275. if ac_fn_c_try_compile "$LINENO"; then :
  20276. else
  20277. enable_video_vulkan=no
  20278. fi
  20279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20280. ;;
  20281. *-*-darwin*)
  20282. save_CFLAGS="$CFLAGS"
  20283. CFLAGS="$CFLAGS -x objective-c"
  20284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20285. /* end confdefs.h. */
  20286. #include <Cocoa/Cocoa.h>
  20287. #include <Metal/Metal.h>
  20288. #include <QuartzCore/CAMetalLayer.h>
  20289. #if TARGET_CPU_X86
  20290. #error Vulkan doesn't work on this configuration
  20291. #endif
  20292. int
  20293. main ()
  20294. {
  20295. ;
  20296. return 0;
  20297. }
  20298. _ACEOF
  20299. if ac_fn_c_try_compile "$LINENO"; then :
  20300. else
  20301. enable_video_vulkan=no
  20302. fi
  20303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20304. CFLAGS="$save_CFLAGS"
  20305. ;;
  20306. *)
  20307. ;;
  20308. esac
  20309. if test x$enable_video_vulkan = xno; then
  20310. # For reasons I am totally unable to see, I get an undefined macro error if
  20311. # I put this in the AC_TRY_COMPILE.
  20312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20313. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20314. fi
  20315. fi
  20316. if test x$have_loadso != xyes; then
  20317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20318. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20319. enable_video_vulkan=no
  20320. fi
  20321. if test x$enable_video_vulkan = xyes; then
  20322. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20323. SUMMARY_video="${SUMMARY_video} vulkan"
  20324. fi
  20325. }
  20326. CheckInputEvents()
  20327. {
  20328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20329. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20330. use_input_events=no
  20331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20332. /* end confdefs.h. */
  20333. #include <linux/input.h>
  20334. int
  20335. main ()
  20336. {
  20337. #ifndef EVIOCGNAME
  20338. #error EVIOCGNAME() ioctl not available
  20339. #endif
  20340. ;
  20341. return 0;
  20342. }
  20343. _ACEOF
  20344. if ac_fn_c_try_compile "$LINENO"; then :
  20345. use_input_events=yes
  20346. fi
  20347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20349. $as_echo "$use_input_events" >&6; }
  20350. if test x$use_input_events = xyes; then
  20351. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20352. SUMMARY_input="${SUMMARY_input} linuxev"
  20353. fi
  20354. }
  20355. CheckInputKD()
  20356. {
  20357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20358. $as_echo_n "checking for Linux kd.h... " >&6; }
  20359. use_input_kd=no
  20360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20361. /* end confdefs.h. */
  20362. #include <linux/kd.h>
  20363. #include <linux/keyboard.h>
  20364. int
  20365. main ()
  20366. {
  20367. struct kbentry kbe;
  20368. kbe.kb_table = KG_CTRL;
  20369. ioctl(0, KDGKBENT, &kbe);
  20370. ;
  20371. return 0;
  20372. }
  20373. _ACEOF
  20374. if ac_fn_c_try_compile "$LINENO"; then :
  20375. use_input_kd=yes
  20376. fi
  20377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20379. $as_echo "$use_input_kd" >&6; }
  20380. if test x$use_input_kd = xyes; then
  20381. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20382. SUMMARY_input="${SUMMARY_input} linuxkd"
  20383. fi
  20384. }
  20385. CheckInputKBIO()
  20386. {
  20387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20388. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20389. use_input_kbio=no
  20390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20391. /* end confdefs.h. */
  20392. #include <sys/kbio.h>
  20393. #include <sys/ioctl.h>
  20394. int
  20395. main ()
  20396. {
  20397. accentmap_t accTable;
  20398. ioctl(0, KDENABIO, 1);
  20399. ;
  20400. return 0;
  20401. }
  20402. _ACEOF
  20403. if ac_fn_c_try_compile "$LINENO"; then :
  20404. use_input_kbio=yes
  20405. fi
  20406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20408. $as_echo "$use_input_kbio" >&6; }
  20409. if test x$use_input_kbio = xyes; then
  20410. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20411. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20412. fi
  20413. }
  20414. CheckInputWSCONS()
  20415. {
  20416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20417. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20418. use_input_wscons=no
  20419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20420. /* end confdefs.h. */
  20421. #include <sys/time.h>
  20422. #include <dev/wscons/wsconsio.h>
  20423. #include <dev/wscons/wsksymdef.h>
  20424. #include <dev/wscons/wsksymvar.h>
  20425. #include <sys/ioctl.h>
  20426. int
  20427. main ()
  20428. {
  20429. struct wskbd_map_data data;
  20430. ioctl(0, WSKBDIO_GETMAP, &data);
  20431. ;
  20432. return 0;
  20433. }
  20434. _ACEOF
  20435. if ac_fn_c_try_compile "$LINENO"; then :
  20436. use_input_wscons=yes
  20437. fi
  20438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20440. $as_echo "$use_input_wscons" >&6; }
  20441. if test x$use_input_wscons = xyes; then
  20442. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20443. SUMMARY_input="${SUMMARY_input} wscons"
  20444. fi
  20445. }
  20446. CheckLibUDev()
  20447. {
  20448. # Check whether --enable-libudev was given.
  20449. if test "${enable_libudev+set}" = set; then :
  20450. enableval=$enable_libudev;
  20451. else
  20452. enable_libudev=yes
  20453. fi
  20454. if test x$enable_libudev = xyes; then
  20455. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20456. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20457. have_libudev_h_hdr=yes
  20458. else
  20459. have_libudev_h_hdr=no
  20460. fi
  20461. if test x$have_libudev_h_hdr = xyes; then
  20462. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20463. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20464. if test x$udev_lib != x; then
  20465. echo "-- dynamic udev -> $udev_lib"
  20466. cat >>confdefs.h <<_ACEOF
  20467. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20468. _ACEOF
  20469. fi
  20470. fi
  20471. fi
  20472. }
  20473. CheckDBus()
  20474. {
  20475. # Check whether --enable-dbus was given.
  20476. if test "${enable_dbus+set}" = set; then :
  20477. enableval=$enable_dbus;
  20478. else
  20479. enable_dbus=yes
  20480. fi
  20481. if test x$enable_dbus = xyes; then
  20482. pkg_failed=no
  20483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20484. $as_echo_n "checking for dbus-1... " >&6; }
  20485. if test -n "$DBUS_CFLAGS"; then
  20486. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20487. elif test -n "$PKG_CONFIG"; then
  20488. if test -n "$PKG_CONFIG" && \
  20489. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20490. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20491. ac_status=$?
  20492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20493. test $ac_status = 0; }; then
  20494. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20495. test "x$?" != "x0" && pkg_failed=yes
  20496. else
  20497. pkg_failed=yes
  20498. fi
  20499. else
  20500. pkg_failed=untried
  20501. fi
  20502. if test -n "$DBUS_LIBS"; then
  20503. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20504. elif test -n "$PKG_CONFIG"; then
  20505. if test -n "$PKG_CONFIG" && \
  20506. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20507. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20508. ac_status=$?
  20509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20510. test $ac_status = 0; }; then
  20511. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20512. test "x$?" != "x0" && pkg_failed=yes
  20513. else
  20514. pkg_failed=yes
  20515. fi
  20516. else
  20517. pkg_failed=untried
  20518. fi
  20519. if test $pkg_failed = yes; then
  20520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20521. $as_echo "no" >&6; }
  20522. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20523. _pkg_short_errors_supported=yes
  20524. else
  20525. _pkg_short_errors_supported=no
  20526. fi
  20527. if test $_pkg_short_errors_supported = yes; then
  20528. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20529. else
  20530. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20531. fi
  20532. # Put the nasty error message in config.log where it belongs
  20533. echo "$DBUS_PKG_ERRORS" >&5
  20534. have_dbus=no
  20535. elif test $pkg_failed = untried; then
  20536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20537. $as_echo "no" >&6; }
  20538. have_dbus=no
  20539. else
  20540. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20541. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20543. $as_echo "yes" >&6; }
  20544. have_dbus=yes
  20545. fi
  20546. save_CPPFLAGS="$CPPFLAGS"
  20547. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20548. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20549. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20550. have_dbus_dbus_h_hdr=yes
  20551. else
  20552. have_dbus_dbus_h_hdr=no
  20553. fi
  20554. CPPFLAGS="$save_CPPFLAGS"
  20555. if test x$have_dbus_dbus_h_hdr = xyes; then
  20556. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20557. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20558. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20559. fi
  20560. fi
  20561. }
  20562. CheckIME()
  20563. {
  20564. # Check whether --enable-ime was given.
  20565. if test "${enable_ime+set}" = set; then :
  20566. enableval=$enable_ime;
  20567. else
  20568. enable_ime=yes
  20569. fi
  20570. if test x$enable_ime = xyes; then
  20571. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20572. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20573. fi
  20574. }
  20575. CheckInotify()
  20576. {
  20577. save_LIBS="$LIBS"
  20578. case "$host" in
  20579. *-*-freebsd*) LIBS="$LIBS -linotify"
  20580. ;;
  20581. esac
  20582. for ac_header in sys/inotify.h
  20583. do :
  20584. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20585. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20586. cat >>confdefs.h <<_ACEOF
  20587. #define HAVE_SYS_INOTIFY_H 1
  20588. _ACEOF
  20589. have_inotify_inotify_h_hdr=yes
  20590. fi
  20591. done
  20592. for ac_func in inotify_init
  20593. do :
  20594. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20595. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20596. cat >>confdefs.h <<_ACEOF
  20597. #define HAVE_INOTIFY_INIT 1
  20598. _ACEOF
  20599. have_inotify=yes
  20600. fi
  20601. done
  20602. for ac_func in inotify_init1
  20603. do :
  20604. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20605. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20606. cat >>confdefs.h <<_ACEOF
  20607. #define HAVE_INOTIFY_INIT1 1
  20608. _ACEOF
  20609. fi
  20610. done
  20611. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20612. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20613. case "$host" in
  20614. *-*-freebsd*)
  20615. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20616. ;;
  20617. esac
  20618. fi
  20619. LIBS="$save_LIBS"
  20620. }
  20621. CheckIBus()
  20622. {
  20623. # Check whether --enable-ibus was given.
  20624. if test "${enable_ibus+set}" = set; then :
  20625. enableval=$enable_ibus;
  20626. else
  20627. enable_ibus=yes
  20628. fi
  20629. if test x$enable_ibus = xyes; then
  20630. pkg_failed=no
  20631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20632. $as_echo_n "checking for ibus-1.0... " >&6; }
  20633. if test -n "$IBUS_CFLAGS"; then
  20634. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20635. elif test -n "$PKG_CONFIG"; then
  20636. if test -n "$PKG_CONFIG" && \
  20637. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20638. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20639. ac_status=$?
  20640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20641. test $ac_status = 0; }; then
  20642. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20643. test "x$?" != "x0" && pkg_failed=yes
  20644. else
  20645. pkg_failed=yes
  20646. fi
  20647. else
  20648. pkg_failed=untried
  20649. fi
  20650. if test -n "$IBUS_LIBS"; then
  20651. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20652. elif test -n "$PKG_CONFIG"; then
  20653. if test -n "$PKG_CONFIG" && \
  20654. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20655. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20656. ac_status=$?
  20657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20658. test $ac_status = 0; }; then
  20659. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20660. test "x$?" != "x0" && pkg_failed=yes
  20661. else
  20662. pkg_failed=yes
  20663. fi
  20664. else
  20665. pkg_failed=untried
  20666. fi
  20667. if test $pkg_failed = yes; then
  20668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20669. $as_echo "no" >&6; }
  20670. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20671. _pkg_short_errors_supported=yes
  20672. else
  20673. _pkg_short_errors_supported=no
  20674. fi
  20675. if test $_pkg_short_errors_supported = yes; then
  20676. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20677. else
  20678. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20679. fi
  20680. # Put the nasty error message in config.log where it belongs
  20681. echo "$IBUS_PKG_ERRORS" >&5
  20682. have_ibus=no
  20683. elif test $pkg_failed = untried; then
  20684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20685. $as_echo "no" >&6; }
  20686. have_ibus=no
  20687. else
  20688. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20689. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20691. $as_echo "yes" >&6; }
  20692. have_ibus=yes
  20693. fi
  20694. save_CPPFLAGS="$CPPFLAGS"
  20695. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20696. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20697. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20698. have_ibus_ibus_h_hdr=yes
  20699. else
  20700. have_ibus_ibus_h_hdr=no
  20701. fi
  20702. CPPFLAGS="$save_CPPFLAGS"
  20703. if test x$have_ibus_ibus_h_hdr = xyes; then
  20704. if test x$enable_ime != xyes; then
  20705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20706. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20707. have_ibus_ibus_h_hdr=no
  20708. elif test x$enable_dbus != xyes; then
  20709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20710. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20711. have_ibus_ibus_h_hdr=no
  20712. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20713. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20714. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20715. have_ibus_ibus_h_hdr=no
  20716. else
  20717. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20718. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20719. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20720. fi
  20721. fi
  20722. fi
  20723. }
  20724. CheckFcitx()
  20725. {
  20726. # Check whether --enable-fcitx was given.
  20727. if test "${enable_fcitx+set}" = set; then :
  20728. enableval=$enable_fcitx;
  20729. else
  20730. enable_fcitx=yes
  20731. fi
  20732. if test x$enable_fcitx = xyes; then
  20733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20734. $as_echo_n "checking for fcitx support... " >&6; }
  20735. have_fcitx=no
  20736. if test x$enable_ime != xyes; then
  20737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20738. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20739. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20741. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20742. else
  20743. have_fcitx=yes
  20744. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20745. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20746. fi
  20747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20748. $as_echo "$have_fcitx" >&6; }
  20749. fi
  20750. }
  20751. CheckJoystickMFI()
  20752. {
  20753. # Check whether --enable-joystick-mfi was given.
  20754. if test "${enable_joystick_mfi+set}" = set; then :
  20755. enableval=$enable_joystick_mfi;
  20756. else
  20757. enable_joystick_mfi=yes
  20758. fi
  20759. if test x$enable_joystick_mfi = xyes; then
  20760. save_CFLAGS="$CFLAGS"
  20761. save_LDFLAGS="$LDFLAGS"
  20762. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20763. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20765. $as_echo_n "checking for GameController framework... " >&6; }
  20766. enable_joystick_mfi=no
  20767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20768. /* end confdefs.h. */
  20769. #include <AvailabilityMacros.h>
  20770. #include <TargetConditionals.h>
  20771. #import <GameController/GameController.h>
  20772. int
  20773. main ()
  20774. {
  20775. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20776. #error GameController framework doesn't work on this configuration
  20777. #endif
  20778. #if TARGET_CPU_X86
  20779. #error GameController framework doesn't work on this configuration
  20780. #endif
  20781. ;
  20782. return 0;
  20783. }
  20784. _ACEOF
  20785. if ac_fn_c_try_link "$LINENO"; then :
  20786. enable_joystick_mfi=yes
  20787. fi
  20788. rm -f core conftest.err conftest.$ac_objext \
  20789. conftest$ac_exeext conftest.$ac_ext
  20790. CFLAGS="$save_CFLAGS"
  20791. LDFLAGS="$save_LDFLAGS"
  20792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20793. $as_echo "$enable_joystick_mfi" >&6; }
  20794. if test x$enable_joystick_mfi = xyes; then
  20795. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20796. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20797. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20798. fi
  20799. fi
  20800. }
  20801. CheckPTHREAD()
  20802. {
  20803. case "$host" in
  20804. *-*-emscripten*)
  20805. enable_pthreads_default=no
  20806. ;;
  20807. *)
  20808. enable_pthreads_default=yes
  20809. ;;
  20810. esac
  20811. # Check whether --enable-pthreads was given.
  20812. if test "${enable_pthreads+set}" = set; then :
  20813. enableval=$enable_pthreads;
  20814. else
  20815. enable_pthreads=maybe
  20816. fi
  20817. # Check whether --enable-pthread-sem was given.
  20818. if test "${enable_pthread_sem+set}" = set; then :
  20819. enableval=$enable_pthread_sem;
  20820. else
  20821. enable_pthread_sem=maybe
  20822. fi
  20823. if test x$enable_pthreads = xmaybe; then
  20824. enable_pthreads=$enable_pthreads_default
  20825. fi
  20826. if test x$enable_pthread_sem = xmaybe; then
  20827. enable_pthread_sem=$enable_pthreads
  20828. fi
  20829. case "$host" in
  20830. *-*-android*)
  20831. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20832. pthread_lib=""
  20833. ;;
  20834. *-*-linux*|*-*-uclinux*)
  20835. pthread_cflags="-D_REENTRANT"
  20836. pthread_lib="-lpthread"
  20837. ;;
  20838. *-*-bsdi*)
  20839. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20840. pthread_lib=""
  20841. ;;
  20842. *-*-darwin*)
  20843. pthread_cflags="-D_THREAD_SAFE"
  20844. # causes Carbon.p complaints?
  20845. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20846. ;;
  20847. *-*-freebsd*|*-*-dragonfly*)
  20848. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20849. pthread_lib="-pthread"
  20850. ;;
  20851. *-*-netbsd*)
  20852. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20853. pthread_lib="-lpthread"
  20854. ;;
  20855. *-*-openbsd*)
  20856. pthread_cflags="-D_REENTRANT"
  20857. pthread_lib="-pthread"
  20858. ;;
  20859. *-*-solaris2.9)
  20860. # From Solaris 9+, posix4's preferred name is rt.
  20861. pthread_cflags="-D_REENTRANT"
  20862. pthread_lib="-lpthread -lrt"
  20863. ;;
  20864. *-*-solaris2.10)
  20865. # Solaris 10+ merged pthread into libc.
  20866. pthread_cflags="-D_REENTRANT"
  20867. pthread_lib="-lrt"
  20868. ;;
  20869. *-*-solaris*)
  20870. # Solaris 11+ merged rt into libc.
  20871. pthread_cflags="-D_REENTRANT"
  20872. pthread_lib=""
  20873. ;;
  20874. *-*-sysv5*)
  20875. pthread_cflags="-D_REENTRANT -Kthread"
  20876. pthread_lib=""
  20877. ;;
  20878. *-*-aix*)
  20879. pthread_cflags="-D_REENTRANT -mthreads"
  20880. pthread_lib="-lpthread"
  20881. ;;
  20882. *-*-hpux11*)
  20883. pthread_cflags="-D_REENTRANT"
  20884. pthread_lib="-L/usr/lib -lpthread"
  20885. ;;
  20886. *-*-haiku*)
  20887. pthread_cflags="-D_REENTRANT"
  20888. pthread_lib=""
  20889. ;;
  20890. *-*-nto*)
  20891. pthread_cflags="-D_REENTRANT"
  20892. pthread_lib=""
  20893. ;;
  20894. *-*-emscripten*)
  20895. pthread_cflags="-D_REENTRANT -pthread"
  20896. pthread_lib="-pthread"
  20897. ;;
  20898. *)
  20899. pthread_cflags="-D_REENTRANT"
  20900. pthread_lib="-lpthread"
  20901. ;;
  20902. esac
  20903. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20904. # Save the original compiler flags and libraries
  20905. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20906. # Add the pthread compiler flags and libraries
  20907. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20908. # Check to see if we have pthread support on this system
  20909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20910. $as_echo_n "checking for pthreads... " >&6; }
  20911. use_pthreads=no
  20912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20913. /* end confdefs.h. */
  20914. #include <pthread.h>
  20915. int
  20916. main ()
  20917. {
  20918. pthread_attr_t type;
  20919. pthread_attr_init(&type);
  20920. ;
  20921. return 0;
  20922. }
  20923. _ACEOF
  20924. if ac_fn_c_try_link "$LINENO"; then :
  20925. use_pthreads=yes
  20926. fi
  20927. rm -f core conftest.err conftest.$ac_objext \
  20928. conftest$ac_exeext conftest.$ac_ext
  20929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20930. $as_echo "$use_pthreads" >&6; }
  20931. # Restore the compiler flags and libraries
  20932. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20933. # Do futher testing if we have pthread support...
  20934. if test x$use_pthreads = xyes; then
  20935. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20936. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20938. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20939. # Save the original compiler flags and libraries
  20940. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20941. # Add the pthread compiler flags and libraries
  20942. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20943. # Check to see if recursive mutexes are available
  20944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20945. $as_echo_n "checking for recursive mutexes... " >&6; }
  20946. has_recursive_mutexes=no
  20947. if test x$has_recursive_mutexes = xno; then
  20948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20949. /* end confdefs.h. */
  20950. #define _GNU_SOURCE 1
  20951. #include <pthread.h>
  20952. int
  20953. main ()
  20954. {
  20955. pthread_mutexattr_t attr;
  20956. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20957. ;
  20958. return 0;
  20959. }
  20960. _ACEOF
  20961. if ac_fn_c_try_link "$LINENO"; then :
  20962. has_recursive_mutexes=yes
  20963. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20964. fi
  20965. rm -f core conftest.err conftest.$ac_objext \
  20966. conftest$ac_exeext conftest.$ac_ext
  20967. fi
  20968. if test x$has_recursive_mutexes = xno; then
  20969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20970. /* end confdefs.h. */
  20971. #define _GNU_SOURCE 1
  20972. #include <pthread.h>
  20973. int
  20974. main ()
  20975. {
  20976. pthread_mutexattr_t attr;
  20977. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20978. ;
  20979. return 0;
  20980. }
  20981. _ACEOF
  20982. if ac_fn_c_try_link "$LINENO"; then :
  20983. has_recursive_mutexes=yes
  20984. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20985. fi
  20986. rm -f core conftest.err conftest.$ac_objext \
  20987. conftest$ac_exeext conftest.$ac_ext
  20988. fi
  20989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20990. $as_echo "$has_recursive_mutexes" >&6; }
  20991. # Check to see if pthread semaphore support is missing
  20992. if test x$enable_pthread_sem = xyes; then
  20993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20994. $as_echo_n "checking for pthread semaphores... " >&6; }
  20995. have_pthread_sem=no
  20996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20997. /* end confdefs.h. */
  20998. #include <pthread.h>
  20999. #include <semaphore.h>
  21000. int
  21001. main ()
  21002. {
  21003. ;
  21004. return 0;
  21005. }
  21006. _ACEOF
  21007. if ac_fn_c_try_compile "$LINENO"; then :
  21008. have_pthread_sem=yes
  21009. fi
  21010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21012. $as_echo "$have_pthread_sem" >&6; }
  21013. fi
  21014. if test x$have_pthread_sem = xyes; then
  21015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21016. $as_echo_n "checking for sem_timedwait... " >&6; }
  21017. have_sem_timedwait=no
  21018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21019. /* end confdefs.h. */
  21020. #include <pthread.h>
  21021. #include <semaphore.h>
  21022. int
  21023. main ()
  21024. {
  21025. sem_timedwait(NULL, NULL);
  21026. ;
  21027. return 0;
  21028. }
  21029. _ACEOF
  21030. if ac_fn_c_try_link "$LINENO"; then :
  21031. have_sem_timedwait=yes
  21032. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21033. fi
  21034. rm -f core conftest.err conftest.$ac_objext \
  21035. conftest$ac_exeext conftest.$ac_ext
  21036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21037. $as_echo "$have_sem_timedwait" >&6; }
  21038. fi
  21039. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21040. "
  21041. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21042. have_pthread_np_h=yes
  21043. else
  21044. have_pthread_np_h=no
  21045. fi
  21046. if test x$have_pthread_np_h = xyes; then
  21047. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21048. fi
  21049. # Check to see if pthread naming is available
  21050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21051. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21053. /* end confdefs.h. */
  21054. /* Override any GCC internal prototype to avoid an error.
  21055. Use char because int might match the return type of a GCC
  21056. builtin and then its argument prototype would still apply. */
  21057. #ifdef __cplusplus
  21058. extern "C"
  21059. #endif
  21060. char pthread_setname_np ();
  21061. int
  21062. main ()
  21063. {
  21064. return pthread_setname_np ();
  21065. ;
  21066. return 0;
  21067. }
  21068. _ACEOF
  21069. if ac_fn_c_try_link "$LINENO"; then :
  21070. has_pthread_setname_np=yes
  21071. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21072. else
  21073. has_pthread_setname_np=no
  21074. fi
  21075. rm -f core conftest.err conftest.$ac_objext \
  21076. conftest$ac_exeext conftest.$ac_ext
  21077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21078. $as_echo "$has_pthread_setname_np" >&6; }
  21079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21080. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21082. /* end confdefs.h. */
  21083. /* Override any GCC internal prototype to avoid an error.
  21084. Use char because int might match the return type of a GCC
  21085. builtin and then its argument prototype would still apply. */
  21086. #ifdef __cplusplus
  21087. extern "C"
  21088. #endif
  21089. char pthread_set_name_np ();
  21090. int
  21091. main ()
  21092. {
  21093. return pthread_set_name_np ();
  21094. ;
  21095. return 0;
  21096. }
  21097. _ACEOF
  21098. if ac_fn_c_try_link "$LINENO"; then :
  21099. has_pthread_set_name_np=yes
  21100. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21101. else
  21102. has_pthread_set_name_np=no
  21103. fi
  21104. rm -f core conftest.err conftest.$ac_objext \
  21105. conftest$ac_exeext conftest.$ac_ext
  21106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21107. $as_echo "$has_pthread_set_name_np" >&6; }
  21108. # Restore the compiler flags and libraries
  21109. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21110. # Basic thread creation functions
  21111. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21112. # Semaphores
  21113. # We can fake these with mutexes and condition variables if necessary
  21114. if test x$have_pthread_sem = xyes; then
  21115. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21116. else
  21117. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21118. fi
  21119. # Mutexes
  21120. # We can fake these with semaphores if necessary
  21121. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21122. # Condition variables
  21123. # We can fake these with semaphores and mutexes if necessary
  21124. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21125. # Thread local storage
  21126. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21127. have_threads=yes
  21128. fi
  21129. fi
  21130. }
  21131. CheckWINDOWS()
  21132. {
  21133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21134. $as_echo_n "checking Windows compiler... " >&6; }
  21135. have_win32_gcc=no
  21136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21137. /* end confdefs.h. */
  21138. #include <windows.h>
  21139. int
  21140. main ()
  21141. {
  21142. ;
  21143. return 0;
  21144. }
  21145. _ACEOF
  21146. if ac_fn_c_try_compile "$LINENO"; then :
  21147. have_win32_gcc=yes
  21148. fi
  21149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21151. $as_echo "$have_win32_gcc" >&6; }
  21152. if test x$have_win32_gcc != xyes; then
  21153. as_fn_error $? "
  21154. *** Your compiler ($CC) does not produce Windows executables!
  21155. " "$LINENO" 5
  21156. fi
  21157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21158. $as_echo_n "checking Windows CE... " >&6; }
  21159. have_wince=no
  21160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21161. /* end confdefs.h. */
  21162. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21163. #error This is not Windows CE
  21164. #endif
  21165. int
  21166. main ()
  21167. {
  21168. ;
  21169. return 0;
  21170. }
  21171. _ACEOF
  21172. if ac_fn_c_try_compile "$LINENO"; then :
  21173. have_wince=yes
  21174. as_fn_error $? "
  21175. *** Sorry, Windows CE is no longer supported.
  21176. " "$LINENO" 5
  21177. fi
  21178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21180. $as_echo "$have_wince" >&6; }
  21181. # This fixes Windows stack alignment with newer GCC
  21182. CheckStackBoundary
  21183. # headers needed elsewhere
  21184. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  21185. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  21186. have_tpcshrd_h=yes
  21187. fi
  21188. if test x$have_tpcshrd_h = xyes; then
  21189. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  21190. fi
  21191. ac_fn_c_check_header_mongrel "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  21192. if test "x$ac_cv_header_roapi_h" = xyes; then :
  21193. have_roapi_h=yes
  21194. fi
  21195. if test x$have_roapi_h = xyes; then
  21196. $as_echo "#define HAVE_ROAPI_H 1" >>confdefs.h
  21197. fi
  21198. }
  21199. CheckOS2()
  21200. {
  21201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21202. $as_echo_n "checking OS/2 compiler... " >&6; }
  21203. have_os2_gcc=no
  21204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21205. /* end confdefs.h. */
  21206. #include <os2.h>
  21207. int
  21208. main ()
  21209. {
  21210. ;
  21211. return 0;
  21212. }
  21213. _ACEOF
  21214. if ac_fn_c_try_compile "$LINENO"; then :
  21215. have_os2_gcc=yes
  21216. fi
  21217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21219. $as_echo "$have_os2_gcc" >&6; }
  21220. if test x$have_os2_gcc != xyes; then
  21221. as_fn_error $? "
  21222. *** Your compiler ($CC) does not produce OS/2 executables!
  21223. " "$LINENO" 5
  21224. fi
  21225. }
  21226. CheckDIRECTX()
  21227. {
  21228. # Check whether --enable-directx was given.
  21229. if test "${enable_directx+set}" = set; then :
  21230. enableval=$enable_directx;
  21231. else
  21232. enable_directx=yes
  21233. fi
  21234. if test x$enable_directx = xyes; then
  21235. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21236. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21237. have_d3d=yes
  21238. fi
  21239. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21240. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21241. have_d3d11=yes
  21242. fi
  21243. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21244. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21245. have_ddraw=yes
  21246. fi
  21247. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21248. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21249. have_dsound=yes
  21250. fi
  21251. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21252. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21253. have_dinput=yes
  21254. fi
  21255. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21256. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21257. have_dxgi=yes
  21258. fi
  21259. if test x$have_ddraw = xyes; then
  21260. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21261. fi
  21262. if test x$have_dinput = xyes; then
  21263. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21264. fi
  21265. if test x$have_dsound = xyes; then
  21266. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21267. fi
  21268. if test x$have_dxgi = xyes; then
  21269. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21270. fi
  21271. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21272. # FIXME: ...so force it off for now.
  21273. case "$host" in
  21274. *-*-cygwin*)
  21275. have_dinput=false
  21276. ;;
  21277. esac
  21278. fi
  21279. # Check whether --enable-xinput was given.
  21280. if test "${enable_xinput+set}" = set; then :
  21281. enableval=$enable_xinput;
  21282. else
  21283. enable_xinput=yes
  21284. fi
  21285. if test x$enable_xinput = xyes; then
  21286. have_xinput_gamepadex=no
  21287. have_xinput_stateex=no
  21288. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21289. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21290. have_xinput=yes
  21291. fi
  21292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21293. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21295. /* end confdefs.h. */
  21296. #include <windows.h>
  21297. #include <xinput.h>
  21298. XINPUT_GAMEPAD_EX x1;
  21299. int
  21300. main ()
  21301. {
  21302. ;
  21303. return 0;
  21304. }
  21305. _ACEOF
  21306. if ac_fn_c_try_compile "$LINENO"; then :
  21307. have_xinput_gamepadex=yes
  21308. fi
  21309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21311. $as_echo "$have_xinput_gamepadex" >&6; }
  21312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21313. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21315. /* end confdefs.h. */
  21316. #include <windows.h>
  21317. #include <xinput.h>
  21318. XINPUT_STATE_EX s1;
  21319. int
  21320. main ()
  21321. {
  21322. ;
  21323. return 0;
  21324. }
  21325. _ACEOF
  21326. if ac_fn_c_try_compile "$LINENO"; then :
  21327. have_xinput_stateex=yes
  21328. fi
  21329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21331. $as_echo "$have_xinput_stateex" >&6; }
  21332. if test x$have_xinput = xyes; then
  21333. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21334. fi
  21335. if test x$have_xinput_gamepadex = xyes; then
  21336. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21337. fi
  21338. if test x$have_xinput_stateex = xyes; then
  21339. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21340. fi
  21341. fi
  21342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21343. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21345. /* end confdefs.h. */
  21346. #define COBJMACROS
  21347. #include <windows.gaming.input.h>
  21348. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21349. int
  21350. main ()
  21351. {
  21352. ;
  21353. return 0;
  21354. }
  21355. _ACEOF
  21356. if ac_fn_c_try_compile "$LINENO"; then :
  21357. have_wgi=yes
  21358. else
  21359. have_wgi=no
  21360. fi
  21361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21363. $as_echo "$have_wgi" >&6; }
  21364. if test x$have_wgi = xyes; then
  21365. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21366. fi
  21367. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21368. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21369. have_wasapi=yes
  21370. fi
  21371. if test x$have_wasapi = xyes; then
  21372. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21373. fi
  21374. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21375. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21376. else
  21377. have_wasapi=no
  21378. fi
  21379. if test x$have_wasapi = xyes; then
  21380. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21381. fi
  21382. # Check whether --enable-wasapi was given.
  21383. if test "${enable_wasapi+set}" = set; then :
  21384. enableval=$enable_wasapi;
  21385. else
  21386. enable_wasapi=yes
  21387. fi
  21388. }
  21389. CheckDLOPEN()
  21390. {
  21391. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21392. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21393. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21394. have_dlfcn_h=yes
  21395. else
  21396. have_dlfcn_h=no
  21397. fi
  21398. have_dlopen=no
  21399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21400. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21401. if ${ac_cv_lib_c_dlopen+:} false; then :
  21402. $as_echo_n "(cached) " >&6
  21403. else
  21404. ac_check_lib_save_LIBS=$LIBS
  21405. LIBS="-lc $LIBS"
  21406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21407. /* end confdefs.h. */
  21408. /* Override any GCC internal prototype to avoid an error.
  21409. Use char because int might match the return type of a GCC
  21410. builtin and then its argument prototype would still apply. */
  21411. #ifdef __cplusplus
  21412. extern "C"
  21413. #endif
  21414. char dlopen ();
  21415. int
  21416. main ()
  21417. {
  21418. return dlopen ();
  21419. ;
  21420. return 0;
  21421. }
  21422. _ACEOF
  21423. if ac_fn_c_try_link "$LINENO"; then :
  21424. ac_cv_lib_c_dlopen=yes
  21425. else
  21426. ac_cv_lib_c_dlopen=no
  21427. fi
  21428. rm -f core conftest.err conftest.$ac_objext \
  21429. conftest$ac_exeext conftest.$ac_ext
  21430. LIBS=$ac_check_lib_save_LIBS
  21431. fi
  21432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21433. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21434. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21435. have_dlopen=yes
  21436. else
  21437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21438. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21439. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21440. $as_echo_n "(cached) " >&6
  21441. else
  21442. ac_check_lib_save_LIBS=$LIBS
  21443. LIBS="-ldl $LIBS"
  21444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21445. /* end confdefs.h. */
  21446. /* Override any GCC internal prototype to avoid an error.
  21447. Use char because int might match the return type of a GCC
  21448. builtin and then its argument prototype would still apply. */
  21449. #ifdef __cplusplus
  21450. extern "C"
  21451. #endif
  21452. char dlopen ();
  21453. int
  21454. main ()
  21455. {
  21456. return dlopen ();
  21457. ;
  21458. return 0;
  21459. }
  21460. _ACEOF
  21461. if ac_fn_c_try_link "$LINENO"; then :
  21462. ac_cv_lib_dl_dlopen=yes
  21463. else
  21464. ac_cv_lib_dl_dlopen=no
  21465. fi
  21466. rm -f core conftest.err conftest.$ac_objext \
  21467. conftest$ac_exeext conftest.$ac_ext
  21468. LIBS=$ac_check_lib_save_LIBS
  21469. fi
  21470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21471. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21472. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21473. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21474. fi
  21475. fi
  21476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21477. $as_echo_n "checking for dlopen... " >&6; }
  21478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21479. $as_echo "$have_dlopen" >&6; }
  21480. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21481. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21482. if test x$enable_loadso = xyes; then
  21483. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21484. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21485. have_loadso=yes
  21486. fi
  21487. fi
  21488. }
  21489. CheckO_CLOEXEC()
  21490. {
  21491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21492. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21494. /* end confdefs.h. */
  21495. #include <fcntl.h>
  21496. int flag = O_CLOEXEC;
  21497. int
  21498. main ()
  21499. {
  21500. ;
  21501. return 0;
  21502. }
  21503. _ACEOF
  21504. if ac_fn_c_try_compile "$LINENO"; then :
  21505. have_o_cloexec=yes
  21506. else
  21507. have_o_cloexec=no
  21508. fi
  21509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21511. $as_echo "$have_o_cloexec" >&6; }
  21512. if test $have_o_cloexec = yes; then
  21513. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21514. fi
  21515. }
  21516. CheckUSBHID()
  21517. {
  21518. case "$host" in
  21519. *-*-*bsd*|*-*-dragonfly*)
  21520. if test x$enable_joystick = xyes; then
  21521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21522. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21523. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21524. $as_echo_n "(cached) " >&6
  21525. else
  21526. ac_check_lib_save_LIBS=$LIBS
  21527. LIBS="-lusbhid $LIBS"
  21528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21529. /* end confdefs.h. */
  21530. /* Override any GCC internal prototype to avoid an error.
  21531. Use char because int might match the return type of a GCC
  21532. builtin and then its argument prototype would still apply. */
  21533. #ifdef __cplusplus
  21534. extern "C"
  21535. #endif
  21536. char hid_init ();
  21537. int
  21538. main ()
  21539. {
  21540. return hid_init ();
  21541. ;
  21542. return 0;
  21543. }
  21544. _ACEOF
  21545. if ac_fn_c_try_link "$LINENO"; then :
  21546. ac_cv_lib_usbhid_hid_init=yes
  21547. else
  21548. ac_cv_lib_usbhid_hid_init=no
  21549. fi
  21550. rm -f core conftest.err conftest.$ac_objext \
  21551. conftest$ac_exeext conftest.$ac_ext
  21552. LIBS=$ac_check_lib_save_LIBS
  21553. fi
  21554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21555. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21556. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21557. have_libusbhid=yes
  21558. fi
  21559. if test x$have_libusbhid = xyes; then
  21560. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21561. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21562. USB_CFLAGS="-DHAVE_USBHID_H"
  21563. fi
  21564. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21565. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21566. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21567. fi
  21568. USB_LIBS="$USB_LIBS -lusbhid"
  21569. else
  21570. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21571. if test "x$ac_cv_header_usb_h" = xyes; then :
  21572. USB_CFLAGS="-DHAVE_USB_H"
  21573. fi
  21574. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21575. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21576. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21577. fi
  21578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21579. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21580. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21581. $as_echo_n "(cached) " >&6
  21582. else
  21583. ac_check_lib_save_LIBS=$LIBS
  21584. LIBS="-lusb $LIBS"
  21585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21586. /* end confdefs.h. */
  21587. /* Override any GCC internal prototype to avoid an error.
  21588. Use char because int might match the return type of a GCC
  21589. builtin and then its argument prototype would still apply. */
  21590. #ifdef __cplusplus
  21591. extern "C"
  21592. #endif
  21593. char hid_init ();
  21594. int
  21595. main ()
  21596. {
  21597. return hid_init ();
  21598. ;
  21599. return 0;
  21600. }
  21601. _ACEOF
  21602. if ac_fn_c_try_link "$LINENO"; then :
  21603. ac_cv_lib_usb_hid_init=yes
  21604. else
  21605. ac_cv_lib_usb_hid_init=no
  21606. fi
  21607. rm -f core conftest.err conftest.$ac_objext \
  21608. conftest$ac_exeext conftest.$ac_ext
  21609. LIBS=$ac_check_lib_save_LIBS
  21610. fi
  21611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21612. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21613. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21614. USB_LIBS="$USB_LIBS -lusb"
  21615. fi
  21616. fi
  21617. save_CFLAGS="$CFLAGS"
  21618. CFLAGS="$CFLAGS $USB_CFLAGS"
  21619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21620. $as_echo_n "checking for usbhid... " >&6; }
  21621. have_usbhid=no
  21622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21623. /* end confdefs.h. */
  21624. #include <sys/types.h>
  21625. #if defined(HAVE_USB_H)
  21626. #include <usb.h>
  21627. #endif
  21628. #ifdef __DragonFly__
  21629. # include <bus/u4b/usb.h>
  21630. # include <bus/u4b/usbhid.h>
  21631. #else
  21632. # include <dev/usb/usb.h>
  21633. # include <dev/usb/usbhid.h>
  21634. #endif
  21635. #if defined(HAVE_USBHID_H)
  21636. #include <usbhid.h>
  21637. #elif defined(HAVE_LIBUSB_H)
  21638. #include <libusb.h>
  21639. #elif defined(HAVE_LIBUSBHID_H)
  21640. #include <libusbhid.h>
  21641. #endif
  21642. int
  21643. main ()
  21644. {
  21645. struct report_desc *repdesc;
  21646. struct usb_ctl_report *repbuf;
  21647. hid_kind_t hidkind;
  21648. ;
  21649. return 0;
  21650. }
  21651. _ACEOF
  21652. if ac_fn_c_try_compile "$LINENO"; then :
  21653. have_usbhid=yes
  21654. fi
  21655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21657. $as_echo "$have_usbhid" >&6; }
  21658. if test x$have_usbhid = xyes; then
  21659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21660. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21661. have_usbhid_ucr_data=no
  21662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21663. /* end confdefs.h. */
  21664. #include <sys/types.h>
  21665. #if defined(HAVE_USB_H)
  21666. #include <usb.h>
  21667. #endif
  21668. #ifdef __DragonFly__
  21669. # include <bus/u4b/usb.h>
  21670. # include <bus/u4b/usbhid.h>
  21671. #else
  21672. # include <dev/usb/usb.h>
  21673. # include <dev/usb/usbhid.h>
  21674. #endif
  21675. #if defined(HAVE_USBHID_H)
  21676. #include <usbhid.h>
  21677. #elif defined(HAVE_LIBUSB_H)
  21678. #include <libusb.h>
  21679. #elif defined(HAVE_LIBUSBHID_H)
  21680. #include <libusbhid.h>
  21681. #endif
  21682. int
  21683. main ()
  21684. {
  21685. struct usb_ctl_report buf;
  21686. if (buf.ucr_data) { }
  21687. ;
  21688. return 0;
  21689. }
  21690. _ACEOF
  21691. if ac_fn_c_try_compile "$LINENO"; then :
  21692. have_usbhid_ucr_data=yes
  21693. fi
  21694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21695. if test x$have_usbhid_ucr_data = xyes; then
  21696. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21697. fi
  21698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21699. $as_echo "$have_usbhid_ucr_data" >&6; }
  21700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21701. $as_echo_n "checking for new usbhid API... " >&6; }
  21702. have_usbhid_new=no
  21703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21704. /* end confdefs.h. */
  21705. #include <sys/types.h>
  21706. #if defined(HAVE_USB_H)
  21707. #include <usb.h>
  21708. #endif
  21709. #ifdef __DragonFly__
  21710. #include <bus/u4b/usb.h>
  21711. #include <bus/u4b/usbhid.h>
  21712. #else
  21713. #include <dev/usb/usb.h>
  21714. #include <dev/usb/usbhid.h>
  21715. #endif
  21716. #if defined(HAVE_USBHID_H)
  21717. #include <usbhid.h>
  21718. #elif defined(HAVE_LIBUSB_H)
  21719. #include <libusb.h>
  21720. #elif defined(HAVE_LIBUSBHID_H)
  21721. #include <libusbhid.h>
  21722. #endif
  21723. int
  21724. main ()
  21725. {
  21726. report_desc_t d;
  21727. hid_start_parse(d, 1, 1);
  21728. ;
  21729. return 0;
  21730. }
  21731. _ACEOF
  21732. if ac_fn_c_try_compile "$LINENO"; then :
  21733. have_usbhid_new=yes
  21734. fi
  21735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21736. if test x$have_usbhid_new = xyes; then
  21737. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21738. fi
  21739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21740. $as_echo "$have_usbhid_new" >&6; }
  21741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21742. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21743. have_machine_joystick=no
  21744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21745. /* end confdefs.h. */
  21746. #include <machine/joystick.h>
  21747. int
  21748. main ()
  21749. {
  21750. struct joystick t;
  21751. ;
  21752. return 0;
  21753. }
  21754. _ACEOF
  21755. if ac_fn_c_try_compile "$LINENO"; then :
  21756. have_machine_joystick=yes
  21757. fi
  21758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21759. if test x$have_machine_joystick = xyes; then
  21760. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21761. fi
  21762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21763. $as_echo "$have_machine_joystick" >&6; }
  21764. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21765. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21766. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21767. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21768. have_joystick=yes
  21769. fi
  21770. CFLAGS="$save_CFLAGS"
  21771. fi
  21772. ;;
  21773. esac
  21774. }
  21775. CheckHIDAPI()
  21776. {
  21777. # Check whether --enable-hidapi-joystick was given.
  21778. if test "${enable_hidapi_joystick+set}" = set; then :
  21779. enableval=$enable_hidapi_joystick;
  21780. else
  21781. enable_hidapi_joystick=yes
  21782. fi
  21783. # Check whether --enable-hidapi-libusb was given.
  21784. if test "${enable_hidapi_libusb+set}" = set; then :
  21785. enableval=$enable_hidapi_libusb;
  21786. else
  21787. enable_hidapi_libusb=maybe
  21788. fi
  21789. if test x$enable_hidapi = xyes; then
  21790. case "$host" in
  21791. # libusb does not support iOS
  21792. *-ios-* )
  21793. enable_hidapi_libusb=no
  21794. ;;
  21795. # On the other hand, *BSD specifically uses libusb only
  21796. *-*-*bsd* )
  21797. enable_hidapi_libusb=yes
  21798. require_hidapi_libusb=yes
  21799. ;;
  21800. *-*-os2* )
  21801. enable_hidapi_libusb=yes
  21802. ;;
  21803. esac
  21804. hidapi_support=yes
  21805. if test x$enable_hidapi_libusb = xyes; then
  21806. pkg_failed=no
  21807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21808. $as_echo_n "checking for libusb-1.0... " >&6; }
  21809. if test -n "$LIBUSB_CFLAGS"; then
  21810. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21811. elif test -n "$PKG_CONFIG"; then
  21812. if test -n "$PKG_CONFIG" && \
  21813. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21814. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21815. ac_status=$?
  21816. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21817. test $ac_status = 0; }; then
  21818. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21819. test "x$?" != "x0" && pkg_failed=yes
  21820. else
  21821. pkg_failed=yes
  21822. fi
  21823. else
  21824. pkg_failed=untried
  21825. fi
  21826. if test -n "$LIBUSB_LIBS"; then
  21827. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21828. elif test -n "$PKG_CONFIG"; then
  21829. if test -n "$PKG_CONFIG" && \
  21830. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21831. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21832. ac_status=$?
  21833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21834. test $ac_status = 0; }; then
  21835. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21836. test "x$?" != "x0" && pkg_failed=yes
  21837. else
  21838. pkg_failed=yes
  21839. fi
  21840. else
  21841. pkg_failed=untried
  21842. fi
  21843. if test $pkg_failed = yes; then
  21844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21845. $as_echo "no" >&6; }
  21846. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21847. _pkg_short_errors_supported=yes
  21848. else
  21849. _pkg_short_errors_supported=no
  21850. fi
  21851. if test $_pkg_short_errors_supported = yes; then
  21852. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21853. else
  21854. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21855. fi
  21856. # Put the nasty error message in config.log where it belongs
  21857. echo "$LIBUSB_PKG_ERRORS" >&5
  21858. have_libusb=no
  21859. elif test $pkg_failed = untried; then
  21860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21861. $as_echo "no" >&6; }
  21862. have_libusb=no
  21863. else
  21864. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21865. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21867. $as_echo "yes" >&6; }
  21868. have_libusb=yes
  21869. fi
  21870. save_CPPFLAGS="$CPPFLAGS"
  21871. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21872. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21873. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21874. have_libusb_h=yes
  21875. else
  21876. have_libusb_h=no
  21877. fi
  21878. CPPFLAGS="$save_CPPFLAGS"
  21879. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21880. hidapi_support=no
  21881. fi
  21882. fi
  21883. if test x$hidapi_support = xyes; then
  21884. if test x$have_libusb_h = xyes; then
  21885. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21886. if test x$require_hidapi_libusb = xyes; then
  21887. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21888. else
  21889. if test x$have_loadso != xyes; then
  21890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21891. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21892. fi
  21893. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21894. libusb_lib=""
  21895. case "$host" in
  21896. *-*-darwin* )
  21897. libusb_lib="libusb-1.0.0.dylib"
  21898. ;;
  21899. *-*-cygwin* | *-*-mingw* )
  21900. libusb_lib="libusb-1.0.dll"
  21901. ;;
  21902. *-*-os2* )
  21903. libusb_lib="usb100.dll"
  21904. ;;
  21905. esac
  21906. if test x$libusb_lib = x; then
  21907. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21908. fi
  21909. cat >>confdefs.h <<_ACEOF
  21910. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21911. _ACEOF
  21912. fi
  21913. fi
  21914. fi
  21915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21916. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21918. $as_echo "$hidapi_support" >&6; }
  21919. fi
  21920. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21921. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21922. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21923. fi
  21924. }
  21925. CheckClockGettime()
  21926. {
  21927. # Check whether --enable-clock_gettime was given.
  21928. if test "${enable_clock_gettime+set}" = set; then :
  21929. enableval=$enable_clock_gettime;
  21930. else
  21931. enable_clock_gettime=yes
  21932. fi
  21933. if test x$enable_clock_gettime = xyes; then
  21934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21935. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21936. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21937. $as_echo_n "(cached) " >&6
  21938. else
  21939. ac_check_lib_save_LIBS=$LIBS
  21940. LIBS="-lrt $LIBS"
  21941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21942. /* end confdefs.h. */
  21943. /* Override any GCC internal prototype to avoid an error.
  21944. Use char because int might match the return type of a GCC
  21945. builtin and then its argument prototype would still apply. */
  21946. #ifdef __cplusplus
  21947. extern "C"
  21948. #endif
  21949. char clock_gettime ();
  21950. int
  21951. main ()
  21952. {
  21953. return clock_gettime ();
  21954. ;
  21955. return 0;
  21956. }
  21957. _ACEOF
  21958. if ac_fn_c_try_link "$LINENO"; then :
  21959. ac_cv_lib_rt_clock_gettime=yes
  21960. else
  21961. ac_cv_lib_rt_clock_gettime=no
  21962. fi
  21963. rm -f core conftest.err conftest.$ac_objext \
  21964. conftest$ac_exeext conftest.$ac_ext
  21965. LIBS=$ac_check_lib_save_LIBS
  21966. fi
  21967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21968. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21969. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21970. have_clock_gettime=yes
  21971. fi
  21972. if test x$have_clock_gettime = xyes; then
  21973. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21974. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21975. else
  21976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21977. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21978. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21979. $as_echo_n "(cached) " >&6
  21980. else
  21981. ac_check_lib_save_LIBS=$LIBS
  21982. LIBS="-lc $LIBS"
  21983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21984. /* end confdefs.h. */
  21985. /* Override any GCC internal prototype to avoid an error.
  21986. Use char because int might match the return type of a GCC
  21987. builtin and then its argument prototype would still apply. */
  21988. #ifdef __cplusplus
  21989. extern "C"
  21990. #endif
  21991. char clock_gettime ();
  21992. int
  21993. main ()
  21994. {
  21995. return clock_gettime ();
  21996. ;
  21997. return 0;
  21998. }
  21999. _ACEOF
  22000. if ac_fn_c_try_link "$LINENO"; then :
  22001. ac_cv_lib_c_clock_gettime=yes
  22002. else
  22003. ac_cv_lib_c_clock_gettime=no
  22004. fi
  22005. rm -f core conftest.err conftest.$ac_objext \
  22006. conftest$ac_exeext conftest.$ac_ext
  22007. LIBS=$ac_check_lib_save_LIBS
  22008. fi
  22009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22010. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22011. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22012. have_clock_gettime=yes
  22013. fi
  22014. if test x$have_clock_gettime = xyes; then
  22015. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22017. fi
  22018. fi
  22019. fi
  22020. }
  22021. CheckLinuxVersion()
  22022. {
  22023. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22024. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22025. have_linux_version_h=yes
  22026. fi
  22027. if test x$have_linux_version_h = xyes; then
  22028. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22029. fi
  22030. }
  22031. CheckRPATH()
  22032. {
  22033. # Check whether --enable-rpath was given.
  22034. if test "${enable_rpath+set}" = set; then :
  22035. enableval=$enable_rpath;
  22036. else
  22037. enable_rpath=yes
  22038. fi
  22039. }
  22040. CheckEventSignals()
  22041. {
  22042. # Check whether --enable-backgrounding-signal was given.
  22043. if test "${enable_backgrounding_signal+set}" = set; then :
  22044. enableval=$enable_backgrounding_signal;
  22045. else
  22046. enable_backgrounding_signal=no
  22047. fi
  22048. if test x$enable_backgrounding_signal != xno; then
  22049. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22050. fi
  22051. # Check whether --enable-foregrounding-signal was given.
  22052. if test "${enable_foregrounding_signal+set}" = set; then :
  22053. enableval=$enable_foregrounding_signal;
  22054. else
  22055. enable_foregrounding_signal=no
  22056. fi
  22057. if test x$enable_foregrounding_signal != xno; then
  22058. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22059. fi
  22060. }
  22061. CheckVirtualJoystick()
  22062. {
  22063. # Check whether --enable-joystick-virtual was given.
  22064. if test "${enable_joystick_virtual+set}" = set; then :
  22065. enableval=$enable_joystick_virtual;
  22066. else
  22067. enable_joystick_virtual=yes
  22068. fi
  22069. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22070. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22071. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22072. have_joystick_virtual=yes
  22073. fi
  22074. }
  22075. CheckWarnAll
  22076. CheckNoStrictAliasing
  22077. CheckEventSignals
  22078. have_locale=no
  22079. case "$host" in
  22080. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22081. case "$host" in
  22082. *-*-android*)
  22083. # Android
  22084. ARCH=android
  22085. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22086. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22087. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22088. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22089. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22090. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22091. if test x$enable_video = xyes; then
  22092. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22093. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22094. SUMMARY_video="${SUMMARY_video} android"
  22095. have_video=yes
  22096. fi
  22097. ;;
  22098. *-*-linux*) ARCH=linux ;;
  22099. *-*-uclinux*) ARCH=linux ;;
  22100. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22101. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22102. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22103. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22104. *-*-bsdi*) ARCH=bsdi ;;
  22105. *-*-freebsd*) ARCH=freebsd ;;
  22106. *-*-dragonfly*) ARCH=freebsd ;;
  22107. *-*-netbsd*) ARCH=netbsd ;;
  22108. *-*-openbsd*) ARCH=openbsd ;;
  22109. *-*-sysv5*) ARCH=sysv5 ;;
  22110. *-*-solaris*) ARCH=solaris ;;
  22111. *-*-hpux*) ARCH=hpux ;;
  22112. *-*-aix*) ARCH=aix ;;
  22113. *-*-minix*) ARCH=minix ;;
  22114. *-*-nto*) ARCH=nto
  22115. CheckQNXVideo
  22116. ;;
  22117. esac
  22118. CheckVisibilityHidden
  22119. CheckDeclarationAfterStatement
  22120. CheckDummyVideo
  22121. CheckOffscreenVideo
  22122. CheckDiskAudio
  22123. CheckDummyAudio
  22124. CheckDLOPEN
  22125. CheckARM
  22126. CheckNEON
  22127. CheckO_CLOEXEC
  22128. CheckOSS
  22129. CheckALSA
  22130. CheckPipewire
  22131. CheckPulseAudio
  22132. CheckJACK
  22133. CheckARTSC
  22134. CheckESD
  22135. CheckNAS
  22136. CheckSNDIO
  22137. CheckFusionSound
  22138. CheckLibSampleRate
  22139. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22140. CheckRPI
  22141. CheckX11
  22142. CheckDirectFB
  22143. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22144. CheckEGL
  22145. CheckKMSDRM
  22146. CheckGLX
  22147. CheckOpenGL
  22148. CheckOpenGLES
  22149. CheckVulkan
  22150. CheckWayland
  22151. CheckInputEvents
  22152. CheckLibUDev
  22153. CheckDBus
  22154. CheckIME
  22155. CheckInotify
  22156. CheckIBus
  22157. CheckFcitx
  22158. case $ARCH in
  22159. linux)
  22160. CheckInputKD
  22161. ;;
  22162. freebsd)
  22163. CheckInputKBIO
  22164. ;;
  22165. openbsd|netbsd)
  22166. CheckInputWSCONS
  22167. ;;
  22168. esac
  22169. CheckUSBHID
  22170. CheckHIDAPI
  22171. CheckPTHREAD
  22172. CheckClockGettime
  22173. CheckLinuxVersion
  22174. CheckRPATH
  22175. CheckVivanteVideo
  22176. # Set up files for the misc library
  22177. if test x$enable_misc = xyes; then
  22178. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22179. have_misc=yes
  22180. fi
  22181. # Set up files for the locale library
  22182. if test x$enable_locale = xyes; then
  22183. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22184. have_locale=yes
  22185. fi
  22186. # Set up files for the audio library
  22187. if test x$enable_audio = xyes; then
  22188. case $ARCH in
  22189. sysv5|solaris|hpux)
  22190. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22191. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22192. SUMMARY_audio="${SUMMARY_audio} sun"
  22193. have_audio=yes
  22194. ;;
  22195. netbsd) # Don't use this on OpenBSD, it's busted.
  22196. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22197. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22198. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22199. have_audio=yes
  22200. ;;
  22201. aix)
  22202. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22203. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22204. SUMMARY_audio="${SUMMARY_audio} paudio"
  22205. have_audio=yes
  22206. ;;
  22207. android)
  22208. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22209. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22210. SUMMARY_audio="${SUMMARY_audio} android"
  22211. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22212. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22213. SUMMARY_audio="${SUMMARY_audio} openslES"
  22214. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22215. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22216. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22217. have_audio=yes
  22218. ;;
  22219. nto)
  22220. CheckQNXAudio
  22221. ;;
  22222. esac
  22223. fi
  22224. # Set up files for the joystick library
  22225. if test x$enable_joystick = xyes; then
  22226. case $ARCH in
  22227. linux)
  22228. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22229. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22230. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22231. have_joystick=yes
  22232. ;;
  22233. freebsd)
  22234. if test x$use_input_events = xyes; then
  22235. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22236. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22237. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22238. have_joystick=yes
  22239. fi
  22240. ;;
  22241. android)
  22242. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22243. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22244. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22245. have_joystick=yes
  22246. ;;
  22247. esac
  22248. fi
  22249. # Set up files for the haptic library
  22250. if test x$enable_haptic = xyes; then
  22251. case $ARCH in
  22252. linux|freebsd)
  22253. if test x$use_input_events = xyes; then
  22254. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22255. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22256. have_haptic=yes
  22257. fi
  22258. ;;
  22259. android)
  22260. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22261. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22262. have_haptic=yes
  22263. ;;
  22264. esac
  22265. fi
  22266. # Set up files for the sensor library
  22267. if test x$enable_sensor = xyes; then
  22268. case $ARCH in
  22269. android)
  22270. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22271. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22272. have_sensor=yes
  22273. ;;
  22274. esac
  22275. fi
  22276. # Set up files for the power library
  22277. if test x$enable_power = xyes; then
  22278. case $ARCH in
  22279. linux)
  22280. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22281. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22282. have_power=yes
  22283. ;;
  22284. android)
  22285. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22286. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22287. have_power=yes
  22288. ;;
  22289. esac
  22290. fi
  22291. # Set up files for the filesystem library
  22292. if test x$enable_filesystem = xyes; then
  22293. case $ARCH in
  22294. android)
  22295. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22296. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22297. have_filesystem=yes
  22298. ;;
  22299. *)
  22300. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22301. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22302. have_filesystem=yes
  22303. ;;
  22304. esac
  22305. fi
  22306. # Set up files for the timer library
  22307. if test x$enable_timers = xyes; then
  22308. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22309. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22310. have_timers=yes
  22311. fi
  22312. # Set up files for udev hotplugging support
  22313. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22314. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22315. fi
  22316. # Set up files for evdev input
  22317. if test x$use_input_events = xyes; then
  22318. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22319. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22320. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22321. fi
  22322. # Set up files for wscons input
  22323. if test x$use_input_wscons = xyes; then
  22324. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22325. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22326. fi
  22327. # Set up other core UNIX files
  22328. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22329. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22330. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22331. ;;
  22332. *-*-cygwin* | *-*-mingw*)
  22333. ARCH=win32
  22334. if test "$build" != "$host"; then # cross-compiling
  22335. # Default cross-compile location
  22336. ac_default_prefix=/usr/local/cross-tools/$host
  22337. else
  22338. # Look for the location of the tools and install there
  22339. if test "$BUILD_PREFIX" != ""; then
  22340. ac_default_prefix=$BUILD_PREFIX
  22341. fi
  22342. fi
  22343. if test x$enable_loadso = xyes; then
  22344. have_loadso=yes
  22345. fi
  22346. CheckDeclarationAfterStatement
  22347. CheckDummyVideo
  22348. CheckOffscreenVideo
  22349. CheckDiskAudio
  22350. CheckDummyAudio
  22351. CheckWINDOWS
  22352. CheckWINDOWSGL
  22353. CheckWINDOWSGLES
  22354. CheckVulkan
  22355. CheckDIRECTX
  22356. CheckHIDAPI
  22357. # Set up the core platform files
  22358. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22359. # Set up files for the misc library
  22360. if test x$enable_misc = xyes; then
  22361. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22362. have_misc=yes
  22363. fi
  22364. # Use the Windows locale APIs.
  22365. if test x$enable_locale = xyes; then
  22366. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22367. have_locale=yes
  22368. fi
  22369. # Set up files for the video library
  22370. if test x$enable_video = xyes; then
  22371. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22372. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22373. have_video=yes
  22374. # Check whether --enable-render-d3d was given.
  22375. if test "${enable_render_d3d+set}" = set; then :
  22376. enableval=$enable_render_d3d;
  22377. else
  22378. enable_render_d3d=yes
  22379. fi
  22380. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22381. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22382. SUMMARY_video="${SUMMARY_video} d3d9"
  22383. fi
  22384. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22385. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22386. SUMMARY_video="${SUMMARY_video} d3d11"
  22387. fi
  22388. fi
  22389. # Set up files for the audio library
  22390. if test x$enable_audio = xyes; then
  22391. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22392. SUMMARY_audio="${SUMMARY_audio} winmm"
  22393. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22394. if test x$have_dsound = xyes; then
  22395. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22396. SUMMARY_audio="${SUMMARY_audio} directsound"
  22397. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22398. fi
  22399. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22400. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22401. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22402. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22403. fi
  22404. have_audio=yes
  22405. fi
  22406. # Set up files for the joystick library
  22407. if test x$enable_joystick = xyes; then
  22408. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22409. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22410. if test x$have_xinput = xyes; then
  22411. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22412. fi
  22413. if test x$have_wgi = xyes; then
  22414. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22415. fi
  22416. if test x$have_dinput = xyes; then
  22417. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22418. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22419. fi
  22420. fi
  22421. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22422. have_joystick=yes
  22423. fi
  22424. if test x$enable_haptic = xyes; then
  22425. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22426. if test x$have_xinput = xyes; then
  22427. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22428. fi
  22429. if test x$have_dinput = xyes; then
  22430. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22431. fi
  22432. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22433. have_haptic=yes
  22434. fi
  22435. fi
  22436. # Set up files for the sensor library
  22437. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22438. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22439. have_winsensors=yes
  22440. else
  22441. have_winsensors=no
  22442. fi
  22443. if test x$have_winsensors = xyes; then
  22444. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22445. fi
  22446. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22447. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22448. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22449. have_sensor=yes
  22450. fi
  22451. # Set up files for the power library
  22452. if test x$enable_power = xyes; then
  22453. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22454. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22455. have_power=yes
  22456. fi
  22457. # Set up files for the filesystem library
  22458. if test x$enable_filesystem = xyes; then
  22459. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22460. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22461. have_filesystem=yes
  22462. fi
  22463. # Set up files for the thread library
  22464. if test x$enable_threads = xyes; then
  22465. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22466. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22467. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22468. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22469. have_threads=yes
  22470. fi
  22471. # Set up files for the timer library
  22472. if test x$enable_timers = xyes; then
  22473. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22474. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22475. have_timers=yes
  22476. fi
  22477. # Set up files for the shared object loading library
  22478. if test x$enable_loadso = xyes; then
  22479. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22480. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22481. fi
  22482. # Set up the system libraries we need
  22483. if test -f /lib/w32api/libuuid.a; then
  22484. LIBUUID=/lib/w32api/libuuid.a
  22485. else
  22486. LIBUUID=-luuid
  22487. fi
  22488. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22489. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22490. # The Windows platform requires special setup
  22491. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22492. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22493. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22494. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22495. # Check to see if this is a mingw or cygwin build
  22496. have_mingw32=
  22497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22498. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22499. if ${ac_cv_lib_mingw32_main+:} false; then :
  22500. $as_echo_n "(cached) " >&6
  22501. else
  22502. ac_check_lib_save_LIBS=$LIBS
  22503. LIBS="-lmingw32 $LIBS"
  22504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22505. /* end confdefs.h. */
  22506. int
  22507. main ()
  22508. {
  22509. return main ();
  22510. ;
  22511. return 0;
  22512. }
  22513. _ACEOF
  22514. if ac_fn_c_try_link "$LINENO"; then :
  22515. ac_cv_lib_mingw32_main=yes
  22516. else
  22517. ac_cv_lib_mingw32_main=no
  22518. fi
  22519. rm -f core conftest.err conftest.$ac_objext \
  22520. conftest$ac_exeext conftest.$ac_ext
  22521. LIBS=$ac_check_lib_save_LIBS
  22522. fi
  22523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22524. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22525. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22526. have_mingw32=yes
  22527. fi
  22528. if test x$have_mingw32 = xyes; then
  22529. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22530. else
  22531. SDL_LIBS="-lcygwin $SDL_LIBS"
  22532. fi
  22533. ;;
  22534. *-*-beos*)
  22535. as_fn_error $? "
  22536. *** BeOS support has been removed as of SDL 2.0.2.
  22537. " "$LINENO" 5
  22538. ;;
  22539. *-*-haiku*)
  22540. ARCH=haiku
  22541. ac_default_prefix=/boot/system
  22542. CheckDummyVideo
  22543. CheckOffscreenVideo
  22544. CheckDiskAudio
  22545. CheckDummyAudio
  22546. CheckDLOPEN
  22547. CheckO_CLOEXEC
  22548. CheckHaikuVideo
  22549. CheckHaikuGL
  22550. CheckPTHREAD
  22551. # Set up files for the audio library
  22552. if test x$enable_audio = xyes; then
  22553. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22554. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22555. SUMMARY_audio="${SUMMARY_audio} haiku"
  22556. have_audio=yes
  22557. fi
  22558. # Set up files for the joystick library
  22559. if test x$enable_joystick = xyes; then
  22560. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22561. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22562. have_joystick=yes
  22563. fi
  22564. # Set up files for the timer library
  22565. if test x$enable_timers = xyes; then
  22566. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22567. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22568. have_timers=yes
  22569. fi
  22570. # Set up files for the system power library
  22571. if test x$enable_power = xyes; then
  22572. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22573. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22574. have_power=yes
  22575. fi
  22576. # Set up files for the system filesystem library
  22577. if test x$enable_filesystem = xyes; then
  22578. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22579. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22580. have_filesystem=yes
  22581. fi
  22582. # Set up files for the misc library
  22583. if test x$enable_misc = xyes; then
  22584. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22585. have_misc=yes
  22586. fi
  22587. # Set up files for the locale library
  22588. if test x$enable_locale = xyes; then
  22589. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22590. have_locale=yes
  22591. fi
  22592. # The Haiku platform requires special setup.
  22593. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22594. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22595. ;;
  22596. *-ios-*)
  22597. ARCH=ios
  22598. CheckVisibilityHidden
  22599. CheckDeclarationAfterStatement
  22600. CheckDummyVideo
  22601. CheckOffscreenVideo
  22602. CheckDiskAudio
  22603. CheckDummyAudio
  22604. CheckDLOPEN
  22605. CheckO_CLOEXEC
  22606. CheckMETAL
  22607. CheckVulkan
  22608. CheckPTHREAD
  22609. # Set up files for the misc library
  22610. if test x$enable_misc = xyes; then
  22611. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22612. have_misc=yes
  22613. fi
  22614. # Set up files for the locale library
  22615. if test x$enable_locale = xyes; then
  22616. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22617. have_locale=yes
  22618. fi
  22619. # Set up files for the audio library
  22620. if test x$enable_audio = xyes; then
  22621. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22622. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22623. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22624. have_audio=yes
  22625. fi
  22626. # Set up files for the joystick library
  22627. if test x$enable_joystick = xyes; then
  22628. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22629. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22630. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22631. have_joystick=yes
  22632. else
  22633. # Need this code for accelerometer as joystick support
  22634. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22635. fi
  22636. # Set up files for the haptic library
  22637. #if test x$enable_haptic = xyes; then
  22638. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22639. # have_haptic=yes
  22640. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22641. #fi
  22642. # Set up files for the sensor library
  22643. if test x$enable_sensor = xyes; then
  22644. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22645. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22646. have_sensor=yes
  22647. fi
  22648. # Set up files for the power library
  22649. if test x$enable_power = xyes; then
  22650. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22651. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22652. have_power=yes
  22653. fi
  22654. # Set up files for the filesystem library
  22655. if test x$enable_filesystem = xyes; then
  22656. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22657. have_filesystem=yes
  22658. fi
  22659. # Set up additional files for the file library
  22660. if test x$enable_file = xyes; then
  22661. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22662. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22663. fi
  22664. # Set up files for the timer library
  22665. if test x$enable_timers = xyes; then
  22666. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22667. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22668. have_timers=yes
  22669. fi
  22670. # Set up other core UNIX files
  22671. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22672. # The iOS platform requires special setup.
  22673. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22674. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22675. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22676. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22677. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22678. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22679. SUMMARY_video="${SUMMARY_video} uikit"
  22680. have_video=yes
  22681. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22682. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22683. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22684. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22686. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22687. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22688. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22689. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22690. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22691. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22692. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22693. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22694. fi
  22695. ;;
  22696. *-*-darwin* )
  22697. # This could be either full "Mac OS X", or plain "Darwin" which is
  22698. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22699. # Next line is broken, and a few files below require Mac OS X (full)
  22700. ARCH=macosx
  22701. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22702. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22703. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22704. CheckObjectiveCARC
  22705. CheckVisibilityHidden
  22706. CheckDeclarationAfterStatement
  22707. CheckDummyVideo
  22708. CheckOffscreenVideo
  22709. CheckDiskAudio
  22710. CheckDummyAudio
  22711. CheckDLOPEN
  22712. CheckO_CLOEXEC
  22713. CheckCOCOA
  22714. CheckMETAL
  22715. CheckX11
  22716. CheckMacGL
  22717. CheckMacGLES
  22718. CheckGLX
  22719. CheckOpenGL
  22720. CheckVulkan
  22721. CheckPTHREAD
  22722. CheckHIDAPI
  22723. # Set up files for the misc library
  22724. if test x$enable_misc = xyes; then
  22725. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22726. have_misc=yes
  22727. fi
  22728. # Set up files for the locale library
  22729. if test x$enable_locale = xyes; then
  22730. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22731. have_locale=yes
  22732. fi
  22733. # Set up files for the audio library
  22734. if test x$enable_audio = xyes; then
  22735. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22736. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22737. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22738. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22739. have_audio=yes
  22740. fi
  22741. # Set up files for the joystick library
  22742. if test x$enable_joystick = xyes; then
  22743. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22744. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22745. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22746. CheckJoystickMFI
  22747. have_joystick=yes
  22748. fi
  22749. # Set up files for the haptic library
  22750. if test x$enable_haptic = xyes; then
  22751. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22752. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22753. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22754. have_haptic=yes
  22755. fi
  22756. # Set up files for the power library
  22757. if test x$enable_power = xyes; then
  22758. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22759. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22760. have_power=yes
  22761. fi
  22762. # Set up files for the filesystem library
  22763. if test x$enable_filesystem = xyes; then
  22764. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22765. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22766. have_filesystem=yes
  22767. fi
  22768. # Set up files for the timer library
  22769. if test x$enable_timers = xyes; then
  22770. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22771. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22772. have_timers=yes
  22773. fi
  22774. # Set up additional files for the file library
  22775. if test x$enable_file = xyes; then
  22776. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22777. fi
  22778. # Set up other core UNIX files
  22779. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22780. # The Mac OS X platform requires special setup.
  22781. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22782. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22783. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22784. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22785. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22786. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22787. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22788. fi
  22789. ;;
  22790. *-nacl|*-pnacl)
  22791. ARCH=nacl
  22792. CheckNativeClient
  22793. CheckDummyAudio
  22794. CheckDummyVideo
  22795. CheckOffscreenVideo
  22796. CheckInputEvents
  22797. CheckPTHREAD
  22798. CheckO_CLOEXEC
  22799. # Set up files for the timer library
  22800. if test x$enable_timers = xyes; then
  22801. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22802. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22803. have_timers=yes
  22804. fi
  22805. if test x$enable_filesystem = xyes; then
  22806. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22807. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22808. have_filesystem=yes
  22809. fi
  22810. ;;
  22811. *-*-emscripten* )
  22812. if test x$enable_video = xyes; then
  22813. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22814. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22815. have_video=yes
  22816. SUMMARY_video="${SUMMARY_video} emscripten"
  22817. fi
  22818. if test x$enable_audio = xyes; then
  22819. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22820. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22821. have_audio=yes
  22822. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22823. fi
  22824. CheckVisibilityHidden
  22825. CheckDeclarationAfterStatement
  22826. CheckDummyVideo
  22827. CheckOffscreenVideo
  22828. CheckDiskAudio
  22829. CheckDummyAudio
  22830. CheckPTHREAD
  22831. CheckDLOPEN
  22832. CheckClockGettime
  22833. CheckEmscriptenGLES
  22834. # Set up files for the misc library
  22835. if test x$enable_misc = xyes; then
  22836. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  22837. have_misc=yes
  22838. fi
  22839. # Set up files for the power library
  22840. if test x$enable_power = xyes; then
  22841. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22842. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22843. have_power=yes
  22844. fi
  22845. # Set up files for the joystick library
  22846. if test x$enable_joystick = xyes; then
  22847. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22848. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22849. have_joystick=yes
  22850. fi
  22851. # Set up files for the filesystem library
  22852. if test x$enable_filesystem = xyes; then
  22853. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22854. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22855. have_filesystem=yes
  22856. fi
  22857. # Set up files for the timer library
  22858. if test x$enable_timers = xyes; then
  22859. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22860. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22861. have_timers=yes
  22862. fi
  22863. # Set up files for the locale library
  22864. if test x$enable_locale = xyes; then
  22865. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22866. have_locale=yes
  22867. fi
  22868. ;;
  22869. *-*-riscos*)
  22870. ARCH=riscos
  22871. CheckVisibilityHidden
  22872. CheckDeclarationAfterStatement
  22873. CheckDummyVideo
  22874. CheckOffscreenVideo
  22875. CheckDiskAudio
  22876. CheckDummyAudio
  22877. CheckDLOPEN
  22878. CheckO_CLOEXEC
  22879. CheckOSS
  22880. CheckPTHREAD
  22881. CheckClockGettime
  22882. # Set up files for the misc library
  22883. if test x$enable_misc = xyes; then
  22884. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22885. have_misc=yes
  22886. fi
  22887. # Set up files for the video library
  22888. if test x$enable_video = xyes; then
  22889. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22890. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22891. have_video=yes
  22892. SUMMARY_video="${SUMMARY_video} riscos"
  22893. fi
  22894. # Set up files for the filesystem library
  22895. if test x$enable_filesystem = xyes; then
  22896. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22897. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22898. have_filesystem=yes
  22899. fi
  22900. # Set up files for the timer library
  22901. if test x$enable_timers = xyes; then
  22902. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22903. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22904. have_timers=yes
  22905. fi
  22906. ;;
  22907. *-*-os2*)
  22908. ARCH=os2
  22909. if test "$build" != "$host"; then # cross-compiling
  22910. # Default cross-compile location
  22911. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  22912. else
  22913. # Look for the location of the tools and install there
  22914. if test "$BUILD_PREFIX" != ""; then
  22915. ac_default_prefix=$BUILD_PREFIX
  22916. fi
  22917. fi
  22918. enable_static=no # disable static builds
  22919. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  22920. CheckOS2
  22921. CheckDeclarationAfterStatement
  22922. CheckDummyVideo
  22923. CheckDiskAudio
  22924. CheckDummyAudio
  22925. CheckHIDAPI
  22926. # Set up the core platform files
  22927. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  22928. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  22929. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  22930. fi
  22931. # Use the Unix locale APIs.
  22932. if test x$enable_locale = xyes; then
  22933. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22934. have_locale=yes
  22935. fi
  22936. # Set up files for the video library
  22937. if test x$enable_video = xyes; then
  22938. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  22939. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  22940. have_video=yes
  22941. SUMMARY_video="${SUMMARY_video} os/2"
  22942. fi
  22943. # Set up files for the audio library
  22944. if test x$enable_audio = xyes; then
  22945. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  22946. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  22947. have_audio=yes
  22948. SUMMARY_audio="${SUMMARY_audio} os/2"
  22949. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  22950. fi
  22951. # Set up files for the thread library
  22952. if test x$enable_threads = xyes; then
  22953. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  22954. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  22955. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22956. have_threads=yes
  22957. fi
  22958. # Set up files for the timer library
  22959. if test x$enable_timers = xyes; then
  22960. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  22961. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  22962. have_timers=yes
  22963. fi
  22964. # Set up files for the shared object loading library
  22965. if test x$enable_loadso = xyes; then
  22966. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  22967. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  22968. have_loadso=yes
  22969. fi
  22970. # Set up files for the filesystem library
  22971. if test x$enable_filesystem = xyes; then
  22972. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  22973. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  22974. have_filesystem=yes
  22975. fi
  22976. # Set up files for the joystick library
  22977. if test x$enable_joystick = xyes; then
  22978. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  22979. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  22980. have_joystick=yes
  22981. fi
  22982. ;;
  22983. *)
  22984. as_fn_error $? "
  22985. *** Unsupported host: Please add to configure.ac
  22986. " "$LINENO" 5
  22987. ;;
  22988. esac
  22989. CheckVirtualJoystick
  22990. # Check whether to install sdl2-config
  22991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22992. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22993. # Check whether --enable-sdl2-config was given.
  22994. if test "${enable_sdl2_config+set}" = set; then :
  22995. enableval=$enable_sdl2_config; case "${enableval}" in
  22996. yes) enable_sdl2_config="TRUE" ;;
  22997. no) enable_sdl2_config="FALSE" ;;
  22998. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22999. esac
  23000. else
  23001. enable_sdl2_config="TRUE"
  23002. fi
  23003. if test "$enable_sdl2_config" = "TRUE"; then
  23004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23005. $as_echo "yes" >&6; }
  23006. else
  23007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23008. $as_echo "no" >&6; }
  23009. fi
  23010. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  23011. # Verify that we have all the platform specific files we need
  23012. if test x$have_audio != xyes; then
  23013. if test x$enable_audio = xyes; then
  23014. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  23015. fi
  23016. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  23017. fi
  23018. if test x$have_video != xyes; then
  23019. if test x$enable_video = xyes; then
  23020. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  23021. fi
  23022. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  23023. fi
  23024. if test x$have_misc != xyes; then
  23025. if test x$enable_misc = xyes; then
  23026. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  23027. fi
  23028. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23029. fi
  23030. if test x$have_locale != xyes; then
  23031. if test x$enable_locale = xyes; then
  23032. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  23033. fi
  23034. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23035. fi
  23036. if test x$have_joystick != xyes; then
  23037. if test x$enable_joystick = xyes; then
  23038. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23039. fi
  23040. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23041. fi
  23042. if test x$have_haptic != xyes; then
  23043. if test x$enable_haptic = xyes; then
  23044. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23045. fi
  23046. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23047. fi
  23048. if test x$have_sensor != xyes; then
  23049. if test x$enable_sensor = xyes; then
  23050. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23051. fi
  23052. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23053. fi
  23054. if test x$have_threads != xyes; then
  23055. if test x$enable_threads = xyes; then
  23056. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23057. fi
  23058. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23059. fi
  23060. if test x$have_timers != xyes; then
  23061. if test x$enable_timers = xyes; then
  23062. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23063. fi
  23064. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23065. fi
  23066. if test x$have_filesystem != xyes; then
  23067. if test x$enable_filesystem = xyes; then
  23068. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23069. fi
  23070. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23071. fi
  23072. if test x$have_loadso != xyes; then
  23073. if test x$enable_loadso = xyes; then
  23074. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23075. fi
  23076. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23077. fi
  23078. if test x$SDLMAIN_SOURCES = x; then
  23079. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23080. fi
  23081. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23082. if test x$video_wayland = xyes; then
  23083. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23084. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23085. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23086. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23087. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23088. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23089. echo ;\
  23090. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23091. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23092. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23093. echo ;\
  23094. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23095. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23096. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23097. echo ;\
  23098. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23099. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23100. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23101. done ;\
  23102. echo ;\
  23103. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23104. fi
  23105. OBJECTS=`echo $SOURCES`
  23106. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23107. for EXT in asm cc m c S; do
  23108. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23109. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23110. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23111. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23112. done
  23113. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23114. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23115. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23116. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23117. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23118. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23119. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23120. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23121. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23122. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23123. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23124. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23125. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23126. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23127. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23128. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23129. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23130. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23131. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23132. # Set runtime shared library paths as needed
  23133. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23134. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23135. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23137. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23138. have_enable_new_dtags=no
  23139. save_LDFLAGS="$LDFLAGS"
  23140. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23142. /* end confdefs.h. */
  23143. int
  23144. main ()
  23145. {
  23146. ;
  23147. return 0;
  23148. }
  23149. _ACEOF
  23150. if ac_fn_c_try_link "$LINENO"; then :
  23151. have_enable_new_dtags=yes
  23152. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23153. fi
  23154. rm -f core conftest.err conftest.$ac_objext \
  23155. conftest$ac_exeext conftest.$ac_ext
  23156. LDFLAGS="$save_LDFLAGS"
  23157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23158. $as_echo "$have_enable_new_dtags" >&6; }
  23159. fi
  23160. if test $ARCH = solaris; then
  23161. SDL_RLD_FLAGS="-R\${libdir}"
  23162. fi
  23163. else
  23164. SDL_RLD_FLAGS=""
  23165. fi
  23166. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23167. eval pkg_prefix=$prefix
  23168. eval pkg_cmakedir=$libdir/cmake/SDL2
  23169. cmake_prefix_relpath="$(echo -n "$pkg_cmakedir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
  23170. if test x$enable_shared = xyes; then
  23171. PKGCONFIG_LIBS_PRIV="
  23172. Libs.private:"
  23173. ENABLE_SHARED_TRUE=
  23174. ENABLE_SHARED_FALSE="#"
  23175. else
  23176. PKGCONFIG_LIBS_PRIV=
  23177. ENABLE_SHARED_TRUE="#"
  23178. ENABLE_SHARED_FALSE=
  23179. fi
  23180. if test x$enable_static = xyes; then
  23181. ENABLE_STATIC_TRUE=
  23182. ENABLE_STATIC_FALSE="#"
  23183. else
  23184. ENABLE_STATIC_TRUE="#"
  23185. ENABLE_STATIC_FALSE=
  23186. fi
  23187. cat >Makefile.rules <<__EOF__
  23188. # Build rules for objects
  23189. -include \$(OBJECTS:.lo=.d)
  23190. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23191. $srcdir/src/SDL.c: update-revision
  23192. $DEPENDS
  23193. $VERSION_DEPENDS
  23194. $SDLMAIN_DEPENDS
  23195. $SDLTEST_DEPENDS
  23196. $WAYLAND_PROTOCOLS_DEPENDS
  23197. __EOF__
  23198. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23199. ac_config_commands="$ac_config_commands sdl2_config"
  23200. SUMMARY="SDL2 Configure Summary:\n"
  23201. if test x$enable_shared = xyes; then
  23202. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23203. fi
  23204. if test x$enable_static = xyes; then
  23205. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23206. fi
  23207. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23208. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23209. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23210. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23211. if test x$have_x = xyes; then
  23212. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23213. fi
  23214. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23215. if test x$have_joystick_virtual = xyes; then
  23216. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23217. else
  23218. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23219. fi
  23220. if test x$have_samplerate_h_hdr = xyes; then
  23221. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23222. else
  23223. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23224. fi
  23225. if test x$have_libudev_h_hdr = xyes; then
  23226. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23227. else
  23228. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23229. fi
  23230. if test x$have_dbus_dbus_h_hdr = xyes; then
  23231. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23232. else
  23233. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23234. fi
  23235. if test x$enable_ime = xyes; then
  23236. SUMMARY="${SUMMARY}Using ime : YES\n"
  23237. else
  23238. SUMMARY="${SUMMARY}Using ime : NO\n"
  23239. fi
  23240. if test x$have_ibus_ibus_h_hdr = xyes; then
  23241. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23242. else
  23243. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23244. fi
  23245. if test x$have_fcitx = xyes; then
  23246. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23247. else
  23248. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23249. fi
  23250. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23251. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23252. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23253. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23254. SUMMARY="${SUMMARY}configure script with:\n"
  23255. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23256. fi
  23257. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23258. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23259. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23260. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23261. SUMMARY="${SUMMARY}configure script with:\n"
  23262. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23263. fi
  23264. ac_config_commands="$ac_config_commands summary"
  23265. cat >confcache <<\_ACEOF
  23266. # This file is a shell script that caches the results of configure
  23267. # tests run on this system so they can be shared between configure
  23268. # scripts and configure runs, see configure's option --config-cache.
  23269. # It is not useful on other systems. If it contains results you don't
  23270. # want to keep, you may remove or edit it.
  23271. #
  23272. # config.status only pays attention to the cache file if you give it
  23273. # the --recheck option to rerun configure.
  23274. #
  23275. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23276. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23277. # following values.
  23278. _ACEOF
  23279. # The following way of writing the cache mishandles newlines in values,
  23280. # but we know of no workaround that is simple, portable, and efficient.
  23281. # So, we kill variables containing newlines.
  23282. # Ultrix sh set writes to stderr and can't be redirected directly,
  23283. # and sets the high bit in the cache file unless we assign to the vars.
  23284. (
  23285. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23286. eval ac_val=\$$ac_var
  23287. case $ac_val in #(
  23288. *${as_nl}*)
  23289. case $ac_var in #(
  23290. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23291. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23292. esac
  23293. case $ac_var in #(
  23294. _ | IFS | as_nl) ;; #(
  23295. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23296. *) { eval $ac_var=; unset $ac_var;} ;;
  23297. esac ;;
  23298. esac
  23299. done
  23300. (set) 2>&1 |
  23301. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23302. *${as_nl}ac_space=\ *)
  23303. # `set' does not quote correctly, so add quotes: double-quote
  23304. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23305. sed -n \
  23306. "s/'/'\\\\''/g;
  23307. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23308. ;; #(
  23309. *)
  23310. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23311. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23312. ;;
  23313. esac |
  23314. sort
  23315. ) |
  23316. sed '
  23317. /^ac_cv_env_/b end
  23318. t clear
  23319. :clear
  23320. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23321. t end
  23322. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23323. :end' >>confcache
  23324. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23325. if test -w "$cache_file"; then
  23326. if test "x$cache_file" != "x/dev/null"; then
  23327. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23328. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23329. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23330. cat confcache >"$cache_file"
  23331. else
  23332. case $cache_file in #(
  23333. */* | ?:*)
  23334. mv -f confcache "$cache_file"$$ &&
  23335. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23336. *)
  23337. mv -f confcache "$cache_file" ;;
  23338. esac
  23339. fi
  23340. fi
  23341. else
  23342. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23343. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23344. fi
  23345. fi
  23346. rm -f confcache
  23347. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23348. # Let make expand exec_prefix.
  23349. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23350. DEFS=-DHAVE_CONFIG_H
  23351. ac_libobjs=
  23352. ac_ltlibobjs=
  23353. U=
  23354. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23355. # 1. Remove the extension, and $U if already installed.
  23356. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23357. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23358. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23359. # will be set to the directory where LIBOBJS objects are built.
  23360. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23361. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23362. done
  23363. LIBOBJS=$ac_libobjs
  23364. LTLIBOBJS=$ac_ltlibobjs
  23365. : "${CONFIG_STATUS=./config.status}"
  23366. ac_write_fail=0
  23367. ac_clean_files_save=$ac_clean_files
  23368. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23369. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23370. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23371. as_write_fail=0
  23372. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23373. #! $SHELL
  23374. # Generated by $as_me.
  23375. # Run this file to recreate the current configuration.
  23376. # Compiler output produced by configure, useful for debugging
  23377. # configure, is in config.log if it exists.
  23378. debug=false
  23379. ac_cs_recheck=false
  23380. ac_cs_silent=false
  23381. SHELL=\${CONFIG_SHELL-$SHELL}
  23382. export SHELL
  23383. _ASEOF
  23384. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23385. ## -------------------- ##
  23386. ## M4sh Initialization. ##
  23387. ## -------------------- ##
  23388. # Be more Bourne compatible
  23389. DUALCASE=1; export DUALCASE # for MKS sh
  23390. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23391. emulate sh
  23392. NULLCMD=:
  23393. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23394. # is contrary to our usage. Disable this feature.
  23395. alias -g '${1+"$@"}'='"$@"'
  23396. setopt NO_GLOB_SUBST
  23397. else
  23398. case `(set -o) 2>/dev/null` in #(
  23399. *posix*) :
  23400. set -o posix ;; #(
  23401. *) :
  23402. ;;
  23403. esac
  23404. fi
  23405. as_nl='
  23406. '
  23407. export as_nl
  23408. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23409. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23410. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23411. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23412. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23413. # but without wasting forks for bash or zsh.
  23414. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23415. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23416. as_echo='print -r --'
  23417. as_echo_n='print -rn --'
  23418. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23419. as_echo='printf %s\n'
  23420. as_echo_n='printf %s'
  23421. else
  23422. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23423. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23424. as_echo_n='/usr/ucb/echo -n'
  23425. else
  23426. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23427. as_echo_n_body='eval
  23428. arg=$1;
  23429. case $arg in #(
  23430. *"$as_nl"*)
  23431. expr "X$arg" : "X\\(.*\\)$as_nl";
  23432. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23433. esac;
  23434. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23435. '
  23436. export as_echo_n_body
  23437. as_echo_n='sh -c $as_echo_n_body as_echo'
  23438. fi
  23439. export as_echo_body
  23440. as_echo='sh -c $as_echo_body as_echo'
  23441. fi
  23442. # The user is always right.
  23443. if test "${PATH_SEPARATOR+set}" != set; then
  23444. PATH_SEPARATOR=:
  23445. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23446. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23447. PATH_SEPARATOR=';'
  23448. }
  23449. fi
  23450. # IFS
  23451. # We need space, tab and new line, in precisely that order. Quoting is
  23452. # there to prevent editors from complaining about space-tab.
  23453. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23454. # splitting by setting IFS to empty value.)
  23455. IFS=" "" $as_nl"
  23456. # Find who we are. Look in the path if we contain no directory separator.
  23457. as_myself=
  23458. case $0 in #((
  23459. *[\\/]* ) as_myself=$0 ;;
  23460. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23461. for as_dir in $PATH
  23462. do
  23463. IFS=$as_save_IFS
  23464. test -z "$as_dir" && as_dir=.
  23465. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23466. done
  23467. IFS=$as_save_IFS
  23468. ;;
  23469. esac
  23470. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23471. # in which case we are not to be found in the path.
  23472. if test "x$as_myself" = x; then
  23473. as_myself=$0
  23474. fi
  23475. if test ! -f "$as_myself"; then
  23476. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23477. exit 1
  23478. fi
  23479. # Unset variables that we do not need and which cause bugs (e.g. in
  23480. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23481. # suppresses any "Segmentation fault" message there. '((' could
  23482. # trigger a bug in pdksh 5.2.14.
  23483. for as_var in BASH_ENV ENV MAIL MAILPATH
  23484. do eval test x\${$as_var+set} = xset \
  23485. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23486. done
  23487. PS1='$ '
  23488. PS2='> '
  23489. PS4='+ '
  23490. # NLS nuisances.
  23491. LC_ALL=C
  23492. export LC_ALL
  23493. LANGUAGE=C
  23494. export LANGUAGE
  23495. # CDPATH.
  23496. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23497. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23498. # ----------------------------------------
  23499. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23500. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23501. # script with STATUS, using 1 if that was 0.
  23502. as_fn_error ()
  23503. {
  23504. as_status=$1; test $as_status -eq 0 && as_status=1
  23505. if test "$4"; then
  23506. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23507. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23508. fi
  23509. $as_echo "$as_me: error: $2" >&2
  23510. as_fn_exit $as_status
  23511. } # as_fn_error
  23512. # as_fn_set_status STATUS
  23513. # -----------------------
  23514. # Set $? to STATUS, without forking.
  23515. as_fn_set_status ()
  23516. {
  23517. return $1
  23518. } # as_fn_set_status
  23519. # as_fn_exit STATUS
  23520. # -----------------
  23521. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23522. as_fn_exit ()
  23523. {
  23524. set +e
  23525. as_fn_set_status $1
  23526. exit $1
  23527. } # as_fn_exit
  23528. # as_fn_unset VAR
  23529. # ---------------
  23530. # Portably unset VAR.
  23531. as_fn_unset ()
  23532. {
  23533. { eval $1=; unset $1;}
  23534. }
  23535. as_unset=as_fn_unset
  23536. # as_fn_append VAR VALUE
  23537. # ----------------------
  23538. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23539. # advantage of any shell optimizations that allow amortized linear growth over
  23540. # repeated appends, instead of the typical quadratic growth present in naive
  23541. # implementations.
  23542. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23543. eval 'as_fn_append ()
  23544. {
  23545. eval $1+=\$2
  23546. }'
  23547. else
  23548. as_fn_append ()
  23549. {
  23550. eval $1=\$$1\$2
  23551. }
  23552. fi # as_fn_append
  23553. # as_fn_arith ARG...
  23554. # ------------------
  23555. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23556. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23557. # must be portable across $(()) and expr.
  23558. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23559. eval 'as_fn_arith ()
  23560. {
  23561. as_val=$(( $* ))
  23562. }'
  23563. else
  23564. as_fn_arith ()
  23565. {
  23566. as_val=`expr "$@" || test $? -eq 1`
  23567. }
  23568. fi # as_fn_arith
  23569. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23570. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23571. as_expr=expr
  23572. else
  23573. as_expr=false
  23574. fi
  23575. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23576. as_basename=basename
  23577. else
  23578. as_basename=false
  23579. fi
  23580. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23581. as_dirname=dirname
  23582. else
  23583. as_dirname=false
  23584. fi
  23585. as_me=`$as_basename -- "$0" ||
  23586. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23587. X"$0" : 'X\(//\)$' \| \
  23588. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23589. $as_echo X/"$0" |
  23590. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23591. s//\1/
  23592. q
  23593. }
  23594. /^X\/\(\/\/\)$/{
  23595. s//\1/
  23596. q
  23597. }
  23598. /^X\/\(\/\).*/{
  23599. s//\1/
  23600. q
  23601. }
  23602. s/.*/./; q'`
  23603. # Avoid depending upon Character Ranges.
  23604. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23605. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23606. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23607. as_cr_digits='0123456789'
  23608. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23609. ECHO_C= ECHO_N= ECHO_T=
  23610. case `echo -n x` in #(((((
  23611. -n*)
  23612. case `echo 'xy\c'` in
  23613. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23614. xy) ECHO_C='\c';;
  23615. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23616. ECHO_T=' ';;
  23617. esac;;
  23618. *)
  23619. ECHO_N='-n';;
  23620. esac
  23621. rm -f conf$$ conf$$.exe conf$$.file
  23622. if test -d conf$$.dir; then
  23623. rm -f conf$$.dir/conf$$.file
  23624. else
  23625. rm -f conf$$.dir
  23626. mkdir conf$$.dir 2>/dev/null
  23627. fi
  23628. if (echo >conf$$.file) 2>/dev/null; then
  23629. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23630. as_ln_s='ln -s'
  23631. # ... but there are two gotchas:
  23632. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23633. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23634. # In both cases, we have to default to `cp -pR'.
  23635. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23636. as_ln_s='cp -pR'
  23637. elif ln conf$$.file conf$$ 2>/dev/null; then
  23638. as_ln_s=ln
  23639. else
  23640. as_ln_s='cp -pR'
  23641. fi
  23642. else
  23643. as_ln_s='cp -pR'
  23644. fi
  23645. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23646. rmdir conf$$.dir 2>/dev/null
  23647. # as_fn_mkdir_p
  23648. # -------------
  23649. # Create "$as_dir" as a directory, including parents if necessary.
  23650. as_fn_mkdir_p ()
  23651. {
  23652. case $as_dir in #(
  23653. -*) as_dir=./$as_dir;;
  23654. esac
  23655. test -d "$as_dir" || eval $as_mkdir_p || {
  23656. as_dirs=
  23657. while :; do
  23658. case $as_dir in #(
  23659. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23660. *) as_qdir=$as_dir;;
  23661. esac
  23662. as_dirs="'$as_qdir' $as_dirs"
  23663. as_dir=`$as_dirname -- "$as_dir" ||
  23664. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23665. X"$as_dir" : 'X\(//\)[^/]' \| \
  23666. X"$as_dir" : 'X\(//\)$' \| \
  23667. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23668. $as_echo X"$as_dir" |
  23669. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23670. s//\1/
  23671. q
  23672. }
  23673. /^X\(\/\/\)[^/].*/{
  23674. s//\1/
  23675. q
  23676. }
  23677. /^X\(\/\/\)$/{
  23678. s//\1/
  23679. q
  23680. }
  23681. /^X\(\/\).*/{
  23682. s//\1/
  23683. q
  23684. }
  23685. s/.*/./; q'`
  23686. test -d "$as_dir" && break
  23687. done
  23688. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23689. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23690. } # as_fn_mkdir_p
  23691. if mkdir -p . 2>/dev/null; then
  23692. as_mkdir_p='mkdir -p "$as_dir"'
  23693. else
  23694. test -d ./-p && rmdir ./-p
  23695. as_mkdir_p=false
  23696. fi
  23697. # as_fn_executable_p FILE
  23698. # -----------------------
  23699. # Test if FILE is an executable regular file.
  23700. as_fn_executable_p ()
  23701. {
  23702. test -f "$1" && test -x "$1"
  23703. } # as_fn_executable_p
  23704. as_test_x='test -x'
  23705. as_executable_p=as_fn_executable_p
  23706. # Sed expression to map a string onto a valid CPP name.
  23707. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23708. # Sed expression to map a string onto a valid variable name.
  23709. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23710. exec 6>&1
  23711. ## ----------------------------------- ##
  23712. ## Main body of $CONFIG_STATUS script. ##
  23713. ## ----------------------------------- ##
  23714. _ASEOF
  23715. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23716. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23717. # Save the log message, to keep $0 and so on meaningful, and to
  23718. # report actual input values of CONFIG_FILES etc. instead of their
  23719. # values after options handling.
  23720. ac_log="
  23721. This file was extended by $as_me, which was
  23722. generated by GNU Autoconf 2.69. Invocation command line was
  23723. CONFIG_FILES = $CONFIG_FILES
  23724. CONFIG_HEADERS = $CONFIG_HEADERS
  23725. CONFIG_LINKS = $CONFIG_LINKS
  23726. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23727. $ $0 $@
  23728. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23729. "
  23730. _ACEOF
  23731. case $ac_config_files in *"
  23732. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23733. esac
  23734. case $ac_config_headers in *"
  23735. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23736. esac
  23737. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23738. # Files that config.status was made for.
  23739. config_files="$ac_config_files"
  23740. config_headers="$ac_config_headers"
  23741. config_commands="$ac_config_commands"
  23742. _ACEOF
  23743. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23744. ac_cs_usage="\
  23745. \`$as_me' instantiates files and other configuration actions
  23746. from templates according to the current configuration. Unless the files
  23747. and actions are specified as TAGs, all are instantiated by default.
  23748. Usage: $0 [OPTION]... [TAG]...
  23749. -h, --help print this help, then exit
  23750. -V, --version print version number and configuration settings, then exit
  23751. --config print configuration, then exit
  23752. -q, --quiet, --silent
  23753. do not print progress messages
  23754. -d, --debug don't remove temporary files
  23755. --recheck update $as_me by reconfiguring in the same conditions
  23756. --file=FILE[:TEMPLATE]
  23757. instantiate the configuration file FILE
  23758. --header=FILE[:TEMPLATE]
  23759. instantiate the configuration header FILE
  23760. Configuration files:
  23761. $config_files
  23762. Configuration headers:
  23763. $config_headers
  23764. Configuration commands:
  23765. $config_commands
  23766. Report bugs to the package provider."
  23767. _ACEOF
  23768. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23769. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23770. ac_cs_version="\\
  23771. config.status
  23772. configured by $0, generated by GNU Autoconf 2.69,
  23773. with options \\"\$ac_cs_config\\"
  23774. Copyright (C) 2012 Free Software Foundation, Inc.
  23775. This config.status script is free software; the Free Software Foundation
  23776. gives unlimited permission to copy, distribute and modify it."
  23777. ac_pwd='$ac_pwd'
  23778. srcdir='$srcdir'
  23779. INSTALL='$INSTALL'
  23780. AWK='$AWK'
  23781. test -n "\$AWK" || AWK=awk
  23782. _ACEOF
  23783. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23784. # The default lists apply if the user does not specify any file.
  23785. ac_need_defaults=:
  23786. while test $# != 0
  23787. do
  23788. case $1 in
  23789. --*=?*)
  23790. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23791. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23792. ac_shift=:
  23793. ;;
  23794. --*=)
  23795. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23796. ac_optarg=
  23797. ac_shift=:
  23798. ;;
  23799. *)
  23800. ac_option=$1
  23801. ac_optarg=$2
  23802. ac_shift=shift
  23803. ;;
  23804. esac
  23805. case $ac_option in
  23806. # Handling of the options.
  23807. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23808. ac_cs_recheck=: ;;
  23809. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23810. $as_echo "$ac_cs_version"; exit ;;
  23811. --config | --confi | --conf | --con | --co | --c )
  23812. $as_echo "$ac_cs_config"; exit ;;
  23813. --debug | --debu | --deb | --de | --d | -d )
  23814. debug=: ;;
  23815. --file | --fil | --fi | --f )
  23816. $ac_shift
  23817. case $ac_optarg in
  23818. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23819. '') as_fn_error $? "missing file argument" ;;
  23820. esac
  23821. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23822. ac_need_defaults=false;;
  23823. --header | --heade | --head | --hea )
  23824. $ac_shift
  23825. case $ac_optarg in
  23826. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23827. esac
  23828. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23829. ac_need_defaults=false;;
  23830. --he | --h)
  23831. # Conflict between --help and --header
  23832. as_fn_error $? "ambiguous option: \`$1'
  23833. Try \`$0 --help' for more information.";;
  23834. --help | --hel | -h )
  23835. $as_echo "$ac_cs_usage"; exit ;;
  23836. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23837. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23838. ac_cs_silent=: ;;
  23839. # This is an error.
  23840. -*) as_fn_error $? "unrecognized option: \`$1'
  23841. Try \`$0 --help' for more information." ;;
  23842. *) as_fn_append ac_config_targets " $1"
  23843. ac_need_defaults=false ;;
  23844. esac
  23845. shift
  23846. done
  23847. ac_configure_extra_args=
  23848. if $ac_cs_silent; then
  23849. exec 6>/dev/null
  23850. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23851. fi
  23852. _ACEOF
  23853. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23854. if \$ac_cs_recheck; then
  23855. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23856. shift
  23857. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23858. CONFIG_SHELL='$SHELL'
  23859. export CONFIG_SHELL
  23860. exec "\$@"
  23861. fi
  23862. _ACEOF
  23863. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23864. exec 5>>config.log
  23865. {
  23866. echo
  23867. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23868. ## Running $as_me. ##
  23869. _ASBOX
  23870. $as_echo "$ac_log"
  23871. } >&5
  23872. _ACEOF
  23873. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23874. #
  23875. # INIT-COMMANDS
  23876. #
  23877. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23878. # if CDPATH is set.
  23879. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23880. sed_quote_subst='$sed_quote_subst'
  23881. double_quote_subst='$double_quote_subst'
  23882. delay_variable_subst='$delay_variable_subst'
  23883. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23884. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23885. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23886. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23887. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23888. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23889. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23890. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23891. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23892. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  23893. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23894. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23895. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23896. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23897. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23898. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23899. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23900. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23901. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23902. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23903. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23904. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23905. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23906. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23907. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23908. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23909. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23910. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23911. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23912. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23913. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23914. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23915. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23916. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23917. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23918. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23919. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23920. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23921. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23922. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23923. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23924. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23925. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23926. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23927. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23928. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23929. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23930. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23931. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23932. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23933. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23934. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23935. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23936. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23937. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23938. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23939. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23940. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  23941. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23942. 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"`'
  23943. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  23944. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23945. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23946. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  23947. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23948. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23949. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23950. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23951. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23952. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23953. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23954. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23955. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23956. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23957. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23958. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23959. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23960. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23961. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23962. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23963. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23964. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23965. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23966. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23967. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23968. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23969. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23970. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23971. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23972. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23973. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23974. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23975. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23976. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23977. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23978. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23979. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23980. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23981. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23982. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23983. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23984. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23985. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23986. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23987. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23988. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23989. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23990. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23991. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23992. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23993. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23994. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23995. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23996. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23997. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23998. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23999. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24000. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  24001. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  24002. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24003. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24004. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24005. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24006. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24007. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24008. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24009. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24010. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24011. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  24012. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  24013. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24014. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24015. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24016. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24017. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24018. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24019. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24020. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24021. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24022. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24023. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24024. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24025. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  24026. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24027. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  24028. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24029. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24030. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24031. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24032. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24033. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24034. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24035. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24036. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24037. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24038. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24039. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24040. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24041. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24042. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24043. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24044. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24045. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24046. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24047. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24048. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24049. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24050. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24051. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24052. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24053. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24054. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24055. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24056. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24057. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24058. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24059. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24060. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24061. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24062. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24063. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24064. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24065. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24066. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24067. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24068. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24069. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24070. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24071. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24072. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24073. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24074. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24075. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24076. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24077. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24078. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24079. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24080. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24081. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24082. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24083. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24084. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24085. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24086. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24087. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24088. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24089. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24090. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24091. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24092. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24093. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24094. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24095. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24096. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24097. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24098. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24099. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24100. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24101. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24102. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24103. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24104. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24105. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24106. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24107. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24108. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24109. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24110. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24111. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24112. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24113. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24114. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24115. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24116. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24117. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24118. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24119. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24120. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24121. LTCC='$LTCC'
  24122. LTCFLAGS='$LTCFLAGS'
  24123. compiler='$compiler_DEFAULT'
  24124. # A function that is used when there is no print builtin or printf.
  24125. func_fallback_echo ()
  24126. {
  24127. eval 'cat <<_LTECHO_EOF
  24128. \$1
  24129. _LTECHO_EOF'
  24130. }
  24131. # Quote evaled strings.
  24132. for var in AS \
  24133. DLLTOOL \
  24134. OBJDUMP \
  24135. SHELL \
  24136. ECHO \
  24137. PATH_SEPARATOR \
  24138. SED \
  24139. GREP \
  24140. EGREP \
  24141. FGREP \
  24142. LD \
  24143. NM \
  24144. LN_S \
  24145. lt_SP2NL \
  24146. lt_NL2SP \
  24147. reload_flag \
  24148. deplibs_check_method \
  24149. file_magic_cmd \
  24150. file_magic_glob \
  24151. want_nocaseglob \
  24152. sharedlib_from_linklib_cmd \
  24153. AR \
  24154. AR_FLAGS \
  24155. archiver_list_spec \
  24156. STRIP \
  24157. RANLIB \
  24158. CC \
  24159. CFLAGS \
  24160. compiler \
  24161. lt_cv_sys_global_symbol_pipe \
  24162. lt_cv_sys_global_symbol_to_cdecl \
  24163. lt_cv_sys_global_symbol_to_import \
  24164. lt_cv_sys_global_symbol_to_c_name_address \
  24165. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24166. lt_cv_nm_interface \
  24167. nm_file_list_spec \
  24168. lt_cv_truncate_bin \
  24169. lt_prog_compiler_no_builtin_flag \
  24170. lt_prog_compiler_pic \
  24171. lt_prog_compiler_wl \
  24172. lt_prog_compiler_static \
  24173. lt_cv_prog_compiler_c_o \
  24174. need_locks \
  24175. MANIFEST_TOOL \
  24176. DSYMUTIL \
  24177. NMEDIT \
  24178. LIPO \
  24179. OTOOL \
  24180. OTOOL64 \
  24181. shrext_cmds \
  24182. export_dynamic_flag_spec \
  24183. whole_archive_flag_spec \
  24184. compiler_needs_object \
  24185. with_gnu_ld \
  24186. allow_undefined_flag \
  24187. no_undefined_flag \
  24188. hardcode_libdir_flag_spec \
  24189. hardcode_libdir_separator \
  24190. exclude_expsyms \
  24191. include_expsyms \
  24192. file_list_spec \
  24193. variables_saved_for_relink \
  24194. libname_spec \
  24195. library_names_spec \
  24196. soname_spec \
  24197. install_override_mode \
  24198. finish_eval \
  24199. old_striplib \
  24200. striplib \
  24201. compiler_lib_search_dirs \
  24202. predep_objects \
  24203. postdep_objects \
  24204. predeps \
  24205. postdeps \
  24206. compiler_lib_search_path \
  24207. LD_RC \
  24208. LD_CXX \
  24209. reload_flag_RC \
  24210. reload_flag_CXX \
  24211. compiler_RC \
  24212. compiler_CXX \
  24213. lt_prog_compiler_no_builtin_flag_RC \
  24214. lt_prog_compiler_no_builtin_flag_CXX \
  24215. lt_prog_compiler_pic_RC \
  24216. lt_prog_compiler_pic_CXX \
  24217. lt_prog_compiler_wl_RC \
  24218. lt_prog_compiler_wl_CXX \
  24219. lt_prog_compiler_static_RC \
  24220. lt_prog_compiler_static_CXX \
  24221. lt_cv_prog_compiler_c_o_RC \
  24222. lt_cv_prog_compiler_c_o_CXX \
  24223. export_dynamic_flag_spec_RC \
  24224. export_dynamic_flag_spec_CXX \
  24225. whole_archive_flag_spec_RC \
  24226. whole_archive_flag_spec_CXX \
  24227. compiler_needs_object_RC \
  24228. compiler_needs_object_CXX \
  24229. with_gnu_ld_RC \
  24230. with_gnu_ld_CXX \
  24231. allow_undefined_flag_RC \
  24232. allow_undefined_flag_CXX \
  24233. no_undefined_flag_RC \
  24234. no_undefined_flag_CXX \
  24235. hardcode_libdir_flag_spec_RC \
  24236. hardcode_libdir_flag_spec_CXX \
  24237. hardcode_libdir_separator_RC \
  24238. hardcode_libdir_separator_CXX \
  24239. exclude_expsyms_RC \
  24240. exclude_expsyms_CXX \
  24241. include_expsyms_RC \
  24242. include_expsyms_CXX \
  24243. file_list_spec_RC \
  24244. file_list_spec_CXX \
  24245. compiler_lib_search_dirs_RC \
  24246. compiler_lib_search_dirs_CXX \
  24247. predep_objects_RC \
  24248. predep_objects_CXX \
  24249. postdep_objects_RC \
  24250. postdep_objects_CXX \
  24251. predeps_RC \
  24252. predeps_CXX \
  24253. postdeps_RC \
  24254. postdeps_CXX \
  24255. compiler_lib_search_path_RC \
  24256. compiler_lib_search_path_CXX; do
  24257. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24258. *[\\\\\\\`\\"\\\$]*)
  24259. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24260. ;;
  24261. *)
  24262. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24263. ;;
  24264. esac
  24265. done
  24266. # Double-quote double-evaled strings.
  24267. for var in reload_cmds \
  24268. old_postinstall_cmds \
  24269. old_postuninstall_cmds \
  24270. old_archive_cmds \
  24271. extract_expsyms_cmds \
  24272. old_archive_from_new_cmds \
  24273. old_archive_from_expsyms_cmds \
  24274. archive_cmds \
  24275. archive_expsym_cmds \
  24276. module_cmds \
  24277. module_expsym_cmds \
  24278. export_symbols_cmds \
  24279. prelink_cmds \
  24280. postlink_cmds \
  24281. postinstall_cmds \
  24282. postuninstall_cmds \
  24283. finish_cmds \
  24284. sys_lib_search_path_spec \
  24285. configure_time_dlsearch_path \
  24286. configure_time_lt_sys_library_path \
  24287. reload_cmds_RC \
  24288. reload_cmds_CXX \
  24289. old_archive_cmds_RC \
  24290. old_archive_cmds_CXX \
  24291. old_archive_from_new_cmds_RC \
  24292. old_archive_from_new_cmds_CXX \
  24293. old_archive_from_expsyms_cmds_RC \
  24294. old_archive_from_expsyms_cmds_CXX \
  24295. archive_cmds_RC \
  24296. archive_cmds_CXX \
  24297. archive_expsym_cmds_RC \
  24298. archive_expsym_cmds_CXX \
  24299. module_cmds_RC \
  24300. module_cmds_CXX \
  24301. module_expsym_cmds_RC \
  24302. module_expsym_cmds_CXX \
  24303. export_symbols_cmds_RC \
  24304. export_symbols_cmds_CXX \
  24305. prelink_cmds_RC \
  24306. prelink_cmds_CXX \
  24307. postlink_cmds_RC \
  24308. postlink_cmds_CXX; do
  24309. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24310. *[\\\\\\\`\\"\\\$]*)
  24311. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24312. ;;
  24313. *)
  24314. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24315. ;;
  24316. esac
  24317. done
  24318. ac_aux_dir='$ac_aux_dir'
  24319. # See if we are running on zsh, and set the options that allow our
  24320. # commands through without removal of \ escapes INIT.
  24321. if test -n "\${ZSH_VERSION+set}"; then
  24322. setopt NO_GLOB_SUBST
  24323. fi
  24324. PACKAGE='$PACKAGE'
  24325. VERSION='$VERSION'
  24326. RM='$RM'
  24327. ofile='$ofile'
  24328. SUMMARY="$SUMMARY"
  24329. _ACEOF
  24330. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24331. # Handling of arguments.
  24332. for ac_config_target in $ac_config_targets
  24333. do
  24334. case $ac_config_target in
  24335. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24336. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24337. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24338. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24339. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24340. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24341. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24342. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24343. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24344. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24345. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24346. esac
  24347. done
  24348. # If the user did not use the arguments to specify the items to instantiate,
  24349. # then the envvar interface is used. Set only those that are not.
  24350. # We use the long form for the default assignment because of an extremely
  24351. # bizarre bug on SunOS 4.1.3.
  24352. if $ac_need_defaults; then
  24353. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24354. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24355. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24356. fi
  24357. # Have a temporary directory for convenience. Make it in the build tree
  24358. # simply because there is no reason against having it here, and in addition,
  24359. # creating and moving files from /tmp can sometimes cause problems.
  24360. # Hook for its removal unless debugging.
  24361. # Note that there is a small window in which the directory will not be cleaned:
  24362. # after its creation but before its name has been assigned to `$tmp'.
  24363. $debug ||
  24364. {
  24365. tmp= ac_tmp=
  24366. trap 'exit_status=$?
  24367. : "${ac_tmp:=$tmp}"
  24368. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24369. ' 0
  24370. trap 'as_fn_exit 1' 1 2 13 15
  24371. }
  24372. # Create a (secure) tmp directory for tmp files.
  24373. {
  24374. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24375. test -d "$tmp"
  24376. } ||
  24377. {
  24378. tmp=./conf$$-$RANDOM
  24379. (umask 077 && mkdir "$tmp")
  24380. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24381. ac_tmp=$tmp
  24382. # Set up the scripts for CONFIG_FILES section.
  24383. # No need to generate them if there are no CONFIG_FILES.
  24384. # This happens for instance with `./config.status config.h'.
  24385. if test -n "$CONFIG_FILES"; then
  24386. ac_cr=`echo X | tr X '\015'`
  24387. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24388. # But we know of no other shell where ac_cr would be empty at this
  24389. # point, so we can use a bashism as a fallback.
  24390. if test "x$ac_cr" = x; then
  24391. eval ac_cr=\$\'\\r\'
  24392. fi
  24393. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24394. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24395. ac_cs_awk_cr='\\r'
  24396. else
  24397. ac_cs_awk_cr=$ac_cr
  24398. fi
  24399. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24400. _ACEOF
  24401. {
  24402. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24403. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24404. echo "_ACEOF"
  24405. } >conf$$subs.sh ||
  24406. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24407. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24408. ac_delim='%!_!# '
  24409. for ac_last_try in false false false false false :; do
  24410. . ./conf$$subs.sh ||
  24411. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24412. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24413. if test $ac_delim_n = $ac_delim_num; then
  24414. break
  24415. elif $ac_last_try; then
  24416. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24417. else
  24418. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24419. fi
  24420. done
  24421. rm -f conf$$subs.sh
  24422. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24423. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24424. _ACEOF
  24425. sed -n '
  24426. h
  24427. s/^/S["/; s/!.*/"]=/
  24428. p
  24429. g
  24430. s/^[^!]*!//
  24431. :repl
  24432. t repl
  24433. s/'"$ac_delim"'$//
  24434. t delim
  24435. :nl
  24436. h
  24437. s/\(.\{148\}\)..*/\1/
  24438. t more1
  24439. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24440. p
  24441. n
  24442. b repl
  24443. :more1
  24444. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24445. p
  24446. g
  24447. s/.\{148\}//
  24448. t nl
  24449. :delim
  24450. h
  24451. s/\(.\{148\}\)..*/\1/
  24452. t more2
  24453. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24454. p
  24455. b
  24456. :more2
  24457. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24458. p
  24459. g
  24460. s/.\{148\}//
  24461. t delim
  24462. ' <conf$$subs.awk | sed '
  24463. /^[^""]/{
  24464. N
  24465. s/\n//
  24466. }
  24467. ' >>$CONFIG_STATUS || ac_write_fail=1
  24468. rm -f conf$$subs.awk
  24469. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24470. _ACAWK
  24471. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24472. for (key in S) S_is_set[key] = 1
  24473. FS = ""
  24474. }
  24475. {
  24476. line = $ 0
  24477. nfields = split(line, field, "@")
  24478. substed = 0
  24479. len = length(field[1])
  24480. for (i = 2; i < nfields; i++) {
  24481. key = field[i]
  24482. keylen = length(key)
  24483. if (S_is_set[key]) {
  24484. value = S[key]
  24485. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24486. len += length(value) + length(field[++i])
  24487. substed = 1
  24488. } else
  24489. len += 1 + keylen
  24490. }
  24491. print line
  24492. }
  24493. _ACAWK
  24494. _ACEOF
  24495. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24496. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24497. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24498. else
  24499. cat
  24500. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24501. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24502. _ACEOF
  24503. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24504. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24505. # trailing colons and then remove the whole line if VPATH becomes empty
  24506. # (actually we leave an empty line to preserve line numbers).
  24507. if test "x$srcdir" = x.; then
  24508. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24509. h
  24510. s///
  24511. s/^/:/
  24512. s/[ ]*$/:/
  24513. s/:\$(srcdir):/:/g
  24514. s/:\${srcdir}:/:/g
  24515. s/:@srcdir@:/:/g
  24516. s/^:*//
  24517. s/:*$//
  24518. x
  24519. s/\(=[ ]*\).*/\1/
  24520. G
  24521. s/\n//
  24522. s/^[^=]*=[ ]*$//
  24523. }'
  24524. fi
  24525. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24526. fi # test -n "$CONFIG_FILES"
  24527. # Set up the scripts for CONFIG_HEADERS section.
  24528. # No need to generate them if there are no CONFIG_HEADERS.
  24529. # This happens for instance with `./config.status Makefile'.
  24530. if test -n "$CONFIG_HEADERS"; then
  24531. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24532. BEGIN {
  24533. _ACEOF
  24534. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24535. # here-document in config.status, that substitutes the proper values into
  24536. # config.h.in to produce config.h.
  24537. # Create a delimiter string that does not exist in confdefs.h, to ease
  24538. # handling of long lines.
  24539. ac_delim='%!_!# '
  24540. for ac_last_try in false false :; do
  24541. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24542. if test -z "$ac_tt"; then
  24543. break
  24544. elif $ac_last_try; then
  24545. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24546. else
  24547. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24548. fi
  24549. done
  24550. # For the awk script, D is an array of macro values keyed by name,
  24551. # likewise P contains macro parameters if any. Preserve backslash
  24552. # newline sequences.
  24553. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24554. sed -n '
  24555. s/.\{148\}/&'"$ac_delim"'/g
  24556. t rset
  24557. :rset
  24558. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24559. t def
  24560. d
  24561. :def
  24562. s/\\$//
  24563. t bsnl
  24564. s/["\\]/\\&/g
  24565. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24566. D["\1"]=" \3"/p
  24567. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24568. d
  24569. :bsnl
  24570. s/["\\]/\\&/g
  24571. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24572. D["\1"]=" \3\\\\\\n"\\/p
  24573. t cont
  24574. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24575. t cont
  24576. d
  24577. :cont
  24578. n
  24579. s/.\{148\}/&'"$ac_delim"'/g
  24580. t clear
  24581. :clear
  24582. s/\\$//
  24583. t bsnlc
  24584. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24585. d
  24586. :bsnlc
  24587. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24588. b cont
  24589. ' <confdefs.h | sed '
  24590. s/'"$ac_delim"'/"\\\
  24591. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24592. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24593. for (key in D) D_is_set[key] = 1
  24594. FS = ""
  24595. }
  24596. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24597. line = \$ 0
  24598. split(line, arg, " ")
  24599. if (arg[1] == "#") {
  24600. defundef = arg[2]
  24601. mac1 = arg[3]
  24602. } else {
  24603. defundef = substr(arg[1], 2)
  24604. mac1 = arg[2]
  24605. }
  24606. split(mac1, mac2, "(") #)
  24607. macro = mac2[1]
  24608. prefix = substr(line, 1, index(line, defundef) - 1)
  24609. if (D_is_set[macro]) {
  24610. # Preserve the white space surrounding the "#".
  24611. print prefix "define", macro P[macro] D[macro]
  24612. next
  24613. } else {
  24614. # Replace #undef with comments. This is necessary, for example,
  24615. # in the case of _POSIX_SOURCE, which is predefined and required
  24616. # on some systems where configure will not decide to define it.
  24617. if (defundef == "undef") {
  24618. print "/*", prefix defundef, macro, "*/"
  24619. next
  24620. }
  24621. }
  24622. }
  24623. { print }
  24624. _ACAWK
  24625. _ACEOF
  24626. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24627. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24628. fi # test -n "$CONFIG_HEADERS"
  24629. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24630. shift
  24631. for ac_tag
  24632. do
  24633. case $ac_tag in
  24634. :[FHLC]) ac_mode=$ac_tag; continue;;
  24635. esac
  24636. case $ac_mode$ac_tag in
  24637. :[FHL]*:*);;
  24638. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24639. :[FH]-) ac_tag=-:-;;
  24640. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24641. esac
  24642. ac_save_IFS=$IFS
  24643. IFS=:
  24644. set x $ac_tag
  24645. IFS=$ac_save_IFS
  24646. shift
  24647. ac_file=$1
  24648. shift
  24649. case $ac_mode in
  24650. :L) ac_source=$1;;
  24651. :[FH])
  24652. ac_file_inputs=
  24653. for ac_f
  24654. do
  24655. case $ac_f in
  24656. -) ac_f="$ac_tmp/stdin";;
  24657. *) # Look for the file first in the build tree, then in the source tree
  24658. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24659. # because $ac_f cannot contain `:'.
  24660. test -f "$ac_f" ||
  24661. case $ac_f in
  24662. [\\/$]*) false;;
  24663. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24664. esac ||
  24665. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24666. esac
  24667. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24668. as_fn_append ac_file_inputs " '$ac_f'"
  24669. done
  24670. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24671. # use $as_me), people would be surprised to read:
  24672. # /* config.h. Generated by config.status. */
  24673. configure_input='Generated from '`
  24674. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24675. `' by configure.'
  24676. if test x"$ac_file" != x-; then
  24677. configure_input="$ac_file. $configure_input"
  24678. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24679. $as_echo "$as_me: creating $ac_file" >&6;}
  24680. fi
  24681. # Neutralize special characters interpreted by sed in replacement strings.
  24682. case $configure_input in #(
  24683. *\&* | *\|* | *\\* )
  24684. ac_sed_conf_input=`$as_echo "$configure_input" |
  24685. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24686. *) ac_sed_conf_input=$configure_input;;
  24687. esac
  24688. case $ac_tag in
  24689. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24690. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24691. esac
  24692. ;;
  24693. esac
  24694. ac_dir=`$as_dirname -- "$ac_file" ||
  24695. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24696. X"$ac_file" : 'X\(//\)[^/]' \| \
  24697. X"$ac_file" : 'X\(//\)$' \| \
  24698. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24699. $as_echo X"$ac_file" |
  24700. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24701. s//\1/
  24702. q
  24703. }
  24704. /^X\(\/\/\)[^/].*/{
  24705. s//\1/
  24706. q
  24707. }
  24708. /^X\(\/\/\)$/{
  24709. s//\1/
  24710. q
  24711. }
  24712. /^X\(\/\).*/{
  24713. s//\1/
  24714. q
  24715. }
  24716. s/.*/./; q'`
  24717. as_dir="$ac_dir"; as_fn_mkdir_p
  24718. ac_builddir=.
  24719. case "$ac_dir" in
  24720. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24721. *)
  24722. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24723. # A ".." for each directory in $ac_dir_suffix.
  24724. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24725. case $ac_top_builddir_sub in
  24726. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24727. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24728. esac ;;
  24729. esac
  24730. ac_abs_top_builddir=$ac_pwd
  24731. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24732. # for backward compatibility:
  24733. ac_top_builddir=$ac_top_build_prefix
  24734. case $srcdir in
  24735. .) # We are building in place.
  24736. ac_srcdir=.
  24737. ac_top_srcdir=$ac_top_builddir_sub
  24738. ac_abs_top_srcdir=$ac_pwd ;;
  24739. [\\/]* | ?:[\\/]* ) # Absolute name.
  24740. ac_srcdir=$srcdir$ac_dir_suffix;
  24741. ac_top_srcdir=$srcdir
  24742. ac_abs_top_srcdir=$srcdir ;;
  24743. *) # Relative name.
  24744. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24745. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24746. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24747. esac
  24748. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24749. case $ac_mode in
  24750. :F)
  24751. #
  24752. # CONFIG_FILE
  24753. #
  24754. case $INSTALL in
  24755. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24756. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24757. esac
  24758. _ACEOF
  24759. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24760. # If the template does not know about datarootdir, expand it.
  24761. # FIXME: This hack should be removed a few years after 2.60.
  24762. ac_datarootdir_hack=; ac_datarootdir_seen=
  24763. ac_sed_dataroot='
  24764. /datarootdir/ {
  24765. p
  24766. q
  24767. }
  24768. /@datadir@/p
  24769. /@docdir@/p
  24770. /@infodir@/p
  24771. /@localedir@/p
  24772. /@mandir@/p'
  24773. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24774. *datarootdir*) ac_datarootdir_seen=yes;;
  24775. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24777. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24778. _ACEOF
  24779. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24780. ac_datarootdir_hack='
  24781. s&@datadir@&$datadir&g
  24782. s&@docdir@&$docdir&g
  24783. s&@infodir@&$infodir&g
  24784. s&@localedir@&$localedir&g
  24785. s&@mandir@&$mandir&g
  24786. s&\\\${datarootdir}&$datarootdir&g' ;;
  24787. esac
  24788. _ACEOF
  24789. # Neutralize VPATH when `$srcdir' = `.'.
  24790. # Shell code in configure.ac might set extrasub.
  24791. # FIXME: do we really want to maintain this feature?
  24792. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24793. ac_sed_extra="$ac_vpsub
  24794. $extrasub
  24795. _ACEOF
  24796. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24797. :t
  24798. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24799. s|@configure_input@|$ac_sed_conf_input|;t t
  24800. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24801. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24802. s&@srcdir@&$ac_srcdir&;t t
  24803. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24804. s&@top_srcdir@&$ac_top_srcdir&;t t
  24805. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24806. s&@builddir@&$ac_builddir&;t t
  24807. s&@abs_builddir@&$ac_abs_builddir&;t t
  24808. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24809. s&@INSTALL@&$ac_INSTALL&;t t
  24810. $ac_datarootdir_hack
  24811. "
  24812. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24813. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24814. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24815. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24816. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24817. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24819. which seems to be undefined. Please make sure it is defined" >&5
  24820. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24821. which seems to be undefined. Please make sure it is defined" >&2;}
  24822. rm -f "$ac_tmp/stdin"
  24823. case $ac_file in
  24824. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24825. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24826. esac \
  24827. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24828. ;;
  24829. :H)
  24830. #
  24831. # CONFIG_HEADER
  24832. #
  24833. if test x"$ac_file" != x-; then
  24834. {
  24835. $as_echo "/* $configure_input */" \
  24836. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24837. } >"$ac_tmp/config.h" \
  24838. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24839. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24840. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24841. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24842. else
  24843. rm -f "$ac_file"
  24844. mv "$ac_tmp/config.h" "$ac_file" \
  24845. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24846. fi
  24847. else
  24848. $as_echo "/* $configure_input */" \
  24849. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24850. || as_fn_error $? "could not create -" "$LINENO" 5
  24851. fi
  24852. ;;
  24853. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24854. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24855. ;;
  24856. esac
  24857. case $ac_file$ac_mode in
  24858. "libtool":C)
  24859. # See if we are running on zsh, and set the options that allow our
  24860. # commands through without removal of \ escapes.
  24861. if test -n "${ZSH_VERSION+set}"; then
  24862. setopt NO_GLOB_SUBST
  24863. fi
  24864. cfgfile=${ofile}T
  24865. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24866. $RM "$cfgfile"
  24867. cat <<_LT_EOF >> "$cfgfile"
  24868. #! $SHELL
  24869. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24870. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24871. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24872. # Provide generalized library-building support services.
  24873. # Written by Gordon Matzigkeit, 1996
  24874. # Copyright (C) 2014 Free Software Foundation, Inc.
  24875. # This is free software; see the source for copying conditions. There is NO
  24876. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24877. # GNU Libtool is free software; you can redistribute it and/or modify
  24878. # it under the terms of the GNU General Public License as published by
  24879. # the Free Software Foundation; either version 2 of of the License, or
  24880. # (at your option) any later version.
  24881. #
  24882. # As a special exception to the GNU General Public License, if you
  24883. # distribute this file as part of a program or library that is built
  24884. # using GNU Libtool, you may include this file under the same
  24885. # distribution terms that you use for the rest of that program.
  24886. #
  24887. # GNU Libtool is distributed in the hope that it will be useful, but
  24888. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24889. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24890. # GNU General Public License for more details.
  24891. #
  24892. # You should have received a copy of the GNU General Public License
  24893. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  24894. # The names of the tagged configurations supported by this script.
  24895. available_tags='RC CXX '
  24896. # Configured defaults for sys_lib_dlsearch_path munging.
  24897. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  24898. # ### BEGIN LIBTOOL CONFIG
  24899. # Which release of libtool.m4 was used?
  24900. macro_version=$macro_version
  24901. macro_revision=$macro_revision
  24902. # Assembler program.
  24903. AS=$lt_AS
  24904. # DLL creation program.
  24905. DLLTOOL=$lt_DLLTOOL
  24906. # Object dumper program.
  24907. OBJDUMP=$lt_OBJDUMP
  24908. # Whether or not to build shared libraries.
  24909. build_libtool_libs=$enable_shared
  24910. # Whether or not to build static libraries.
  24911. build_old_libs=$enable_static
  24912. # What type of objects to build.
  24913. pic_mode=$pic_mode
  24914. # Whether or not to optimize for fast installation.
  24915. fast_install=$enable_fast_install
  24916. # Shared archive member basename,for filename based shared library versioning on AIX.
  24917. shared_archive_member_spec=$shared_archive_member_spec
  24918. # Shell to use when invoking shell scripts.
  24919. SHELL=$lt_SHELL
  24920. # An echo program that protects backslashes.
  24921. ECHO=$lt_ECHO
  24922. # The PATH separator for the build system.
  24923. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24924. # The host system.
  24925. host_alias=$host_alias
  24926. host=$host
  24927. host_os=$host_os
  24928. # The build system.
  24929. build_alias=$build_alias
  24930. build=$build
  24931. build_os=$build_os
  24932. # A sed program that does not truncate output.
  24933. SED=$lt_SED
  24934. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24935. Xsed="\$SED -e 1s/^X//"
  24936. # A grep program that handles long lines.
  24937. GREP=$lt_GREP
  24938. # An ERE matcher.
  24939. EGREP=$lt_EGREP
  24940. # A literal string matcher.
  24941. FGREP=$lt_FGREP
  24942. # A BSD- or MS-compatible name lister.
  24943. NM=$lt_NM
  24944. # Whether we need soft or hard links.
  24945. LN_S=$lt_LN_S
  24946. # What is the maximum length of a command?
  24947. max_cmd_len=$max_cmd_len
  24948. # Object file suffix (normally "o").
  24949. objext=$ac_objext
  24950. # Executable file suffix (normally "").
  24951. exeext=$exeext
  24952. # whether the shell understands "unset".
  24953. lt_unset=$lt_unset
  24954. # turn spaces into newlines.
  24955. SP2NL=$lt_lt_SP2NL
  24956. # turn newlines into spaces.
  24957. NL2SP=$lt_lt_NL2SP
  24958. # convert \$build file names to \$host format.
  24959. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24960. # convert \$build files to toolchain format.
  24961. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24962. # Method to check whether dependent libraries are shared objects.
  24963. deplibs_check_method=$lt_deplibs_check_method
  24964. # Command to use when deplibs_check_method = "file_magic".
  24965. file_magic_cmd=$lt_file_magic_cmd
  24966. # How to find potential files when deplibs_check_method = "file_magic".
  24967. file_magic_glob=$lt_file_magic_glob
  24968. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24969. want_nocaseglob=$lt_want_nocaseglob
  24970. # Command to associate shared and link libraries.
  24971. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24972. # The archiver.
  24973. AR=$lt_AR
  24974. # Flags to create an archive.
  24975. AR_FLAGS=$lt_AR_FLAGS
  24976. # How to feed a file listing to the archiver.
  24977. archiver_list_spec=$lt_archiver_list_spec
  24978. # A symbol stripping program.
  24979. STRIP=$lt_STRIP
  24980. # Commands used to install an old-style archive.
  24981. RANLIB=$lt_RANLIB
  24982. old_postinstall_cmds=$lt_old_postinstall_cmds
  24983. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24984. # Whether to use a lock for old archive extraction.
  24985. lock_old_archive_extraction=$lock_old_archive_extraction
  24986. # A C compiler.
  24987. LTCC=$lt_CC
  24988. # LTCC compiler flags.
  24989. LTCFLAGS=$lt_CFLAGS
  24990. # Take the output of nm and produce a listing of raw symbols and C names.
  24991. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24992. # Transform the output of nm in a proper C declaration.
  24993. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24994. # Transform the output of nm into a list of symbols to manually relocate.
  24995. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  24996. # Transform the output of nm in a C name address pair.
  24997. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24998. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24999. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  25000. # The name lister interface.
  25001. nm_interface=$lt_lt_cv_nm_interface
  25002. # Specify filename containing input files for \$NM.
  25003. nm_file_list_spec=$lt_nm_file_list_spec
  25004. # The root where to search for dependent libraries,and where our libraries should be installed.
  25005. lt_sysroot=$lt_sysroot
  25006. # Command to truncate a binary pipe.
  25007. lt_truncate_bin=$lt_lt_cv_truncate_bin
  25008. # The name of the directory that contains temporary libtool files.
  25009. objdir=$objdir
  25010. # Used to examine libraries when file_magic_cmd begins with "file".
  25011. MAGIC_CMD=$MAGIC_CMD
  25012. # Must we lock files when doing compilation?
  25013. need_locks=$lt_need_locks
  25014. # Manifest tool.
  25015. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25016. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25017. DSYMUTIL=$lt_DSYMUTIL
  25018. # Tool to change global to local symbols on Mac OS X.
  25019. NMEDIT=$lt_NMEDIT
  25020. # Tool to manipulate fat objects and archives on Mac OS X.
  25021. LIPO=$lt_LIPO
  25022. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25023. OTOOL=$lt_OTOOL
  25024. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25025. OTOOL64=$lt_OTOOL64
  25026. # Old archive suffix (normally "a").
  25027. libext=$libext
  25028. # Shared library suffix (normally ".so").
  25029. shrext_cmds=$lt_shrext_cmds
  25030. # The commands to extract the exported symbol list from a shared archive.
  25031. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25032. # Variables whose values should be saved in libtool wrapper scripts and
  25033. # restored at link time.
  25034. variables_saved_for_relink=$lt_variables_saved_for_relink
  25035. # Do we need the "lib" prefix for modules?
  25036. need_lib_prefix=$need_lib_prefix
  25037. # Do we need a version for libraries?
  25038. need_version=$need_version
  25039. # Library versioning type.
  25040. version_type=$version_type
  25041. # Shared library runtime path variable.
  25042. runpath_var=$runpath_var
  25043. # Shared library path variable.
  25044. shlibpath_var=$shlibpath_var
  25045. # Is shlibpath searched before the hard-coded library search path?
  25046. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25047. # Format of library name prefix.
  25048. libname_spec=$lt_libname_spec
  25049. # List of archive names. First name is the real one, the rest are links.
  25050. # The last name is the one that the linker finds with -lNAME
  25051. library_names_spec=$lt_library_names_spec
  25052. # The coded name of the library, if different from the real name.
  25053. soname_spec=$lt_soname_spec
  25054. # Permission mode override for installation of shared libraries.
  25055. install_override_mode=$lt_install_override_mode
  25056. # Command to use after installation of a shared archive.
  25057. postinstall_cmds=$lt_postinstall_cmds
  25058. # Command to use after uninstallation of a shared archive.
  25059. postuninstall_cmds=$lt_postuninstall_cmds
  25060. # Commands used to finish a libtool library installation in a directory.
  25061. finish_cmds=$lt_finish_cmds
  25062. # As "finish_cmds", except a single script fragment to be evaled but
  25063. # not shown.
  25064. finish_eval=$lt_finish_eval
  25065. # Whether we should hardcode library paths into libraries.
  25066. hardcode_into_libs=$hardcode_into_libs
  25067. # Compile-time system search path for libraries.
  25068. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25069. # Detected run-time system search path for libraries.
  25070. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25071. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25072. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25073. # Whether dlopen is supported.
  25074. dlopen_support=$enable_dlopen
  25075. # Whether dlopen of programs is supported.
  25076. dlopen_self=$enable_dlopen_self
  25077. # Whether dlopen of statically linked programs is supported.
  25078. dlopen_self_static=$enable_dlopen_self_static
  25079. # Commands to strip libraries.
  25080. old_striplib=$lt_old_striplib
  25081. striplib=$lt_striplib
  25082. # The linker used to build libraries.
  25083. LD=$lt_LD
  25084. # How to create reloadable object files.
  25085. reload_flag=$lt_reload_flag
  25086. reload_cmds=$lt_reload_cmds
  25087. # Commands used to build an old-style archive.
  25088. old_archive_cmds=$lt_old_archive_cmds
  25089. # A language specific compiler.
  25090. CC=$lt_compiler
  25091. # Is the compiler the GNU compiler?
  25092. with_gcc=$GCC
  25093. # Compiler flag to turn off builtin functions.
  25094. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25095. # Additional compiler flags for building library objects.
  25096. pic_flag=$lt_lt_prog_compiler_pic
  25097. # How to pass a linker flag through the compiler.
  25098. wl=$lt_lt_prog_compiler_wl
  25099. # Compiler flag to prevent dynamic linking.
  25100. link_static_flag=$lt_lt_prog_compiler_static
  25101. # Does compiler simultaneously support -c and -o options?
  25102. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25103. # Whether or not to add -lc for building shared libraries.
  25104. build_libtool_need_lc=$archive_cmds_need_lc
  25105. # Whether or not to disallow shared libs when runtime libs are static.
  25106. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25107. # Compiler flag to allow reflexive dlopens.
  25108. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25109. # Compiler flag to generate shared objects directly from archives.
  25110. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25111. # Whether the compiler copes with passing no objects directly.
  25112. compiler_needs_object=$lt_compiler_needs_object
  25113. # Create an old-style archive from a shared archive.
  25114. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25115. # Create a temporary old-style archive to link instead of a shared archive.
  25116. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25117. # Commands used to build a shared archive.
  25118. archive_cmds=$lt_archive_cmds
  25119. archive_expsym_cmds=$lt_archive_expsym_cmds
  25120. # Commands used to build a loadable module if different from building
  25121. # a shared archive.
  25122. module_cmds=$lt_module_cmds
  25123. module_expsym_cmds=$lt_module_expsym_cmds
  25124. # Whether we are building with GNU ld or not.
  25125. with_gnu_ld=$lt_with_gnu_ld
  25126. # Flag that allows shared libraries with undefined symbols to be built.
  25127. allow_undefined_flag=$lt_allow_undefined_flag
  25128. # Flag that enforces no undefined symbols.
  25129. no_undefined_flag=$lt_no_undefined_flag
  25130. # Flag to hardcode \$libdir into a binary during linking.
  25131. # This must work even if \$libdir does not exist
  25132. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25133. # Whether we need a single "-rpath" flag with a separated argument.
  25134. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25135. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25136. # DIR into the resulting binary.
  25137. hardcode_direct=$hardcode_direct
  25138. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25139. # DIR into the resulting binary and the resulting library dependency is
  25140. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25141. # library is relocated.
  25142. hardcode_direct_absolute=$hardcode_direct_absolute
  25143. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25144. # into the resulting binary.
  25145. hardcode_minus_L=$hardcode_minus_L
  25146. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25147. # into the resulting binary.
  25148. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25149. # Set to "yes" if building a shared library automatically hardcodes DIR
  25150. # into the library and all subsequent libraries and executables linked
  25151. # against it.
  25152. hardcode_automatic=$hardcode_automatic
  25153. # Set to yes if linker adds runtime paths of dependent libraries
  25154. # to runtime path list.
  25155. inherit_rpath=$inherit_rpath
  25156. # Whether libtool must link a program against all its dependency libraries.
  25157. link_all_deplibs=$link_all_deplibs
  25158. # Set to "yes" if exported symbols are required.
  25159. always_export_symbols=$always_export_symbols
  25160. # The commands to list exported symbols.
  25161. export_symbols_cmds=$lt_export_symbols_cmds
  25162. # Symbols that should not be listed in the preloaded symbols.
  25163. exclude_expsyms=$lt_exclude_expsyms
  25164. # Symbols that must always be exported.
  25165. include_expsyms=$lt_include_expsyms
  25166. # Commands necessary for linking programs (against libraries) with templates.
  25167. prelink_cmds=$lt_prelink_cmds
  25168. # Commands necessary for finishing linking programs.
  25169. postlink_cmds=$lt_postlink_cmds
  25170. # Specify filename containing input files.
  25171. file_list_spec=$lt_file_list_spec
  25172. # How to hardcode a shared library path into an executable.
  25173. hardcode_action=$hardcode_action
  25174. # The directories searched by this compiler when creating a shared library.
  25175. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25176. # Dependencies to place before and after the objects being linked to
  25177. # create a shared library.
  25178. predep_objects=$lt_predep_objects
  25179. postdep_objects=$lt_postdep_objects
  25180. predeps=$lt_predeps
  25181. postdeps=$lt_postdeps
  25182. # The library search path used internally by the compiler when linking
  25183. # a shared library.
  25184. compiler_lib_search_path=$lt_compiler_lib_search_path
  25185. # ### END LIBTOOL CONFIG
  25186. _LT_EOF
  25187. cat <<'_LT_EOF' >> "$cfgfile"
  25188. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25189. # func_munge_path_list VARIABLE PATH
  25190. # -----------------------------------
  25191. # VARIABLE is name of variable containing _space_ separated list of
  25192. # directories to be munged by the contents of PATH, which is string
  25193. # having a format:
  25194. # "DIR[:DIR]:"
  25195. # string "DIR[ DIR]" will be prepended to VARIABLE
  25196. # ":DIR[:DIR]"
  25197. # string "DIR[ DIR]" will be appended to VARIABLE
  25198. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25199. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25200. # "DIRA[ DIRA]" will be appended to VARIABLE
  25201. # "DIR[:DIR]"
  25202. # VARIABLE will be replaced by "DIR[ DIR]"
  25203. func_munge_path_list ()
  25204. {
  25205. case x$2 in
  25206. x)
  25207. ;;
  25208. *:)
  25209. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25210. ;;
  25211. x:*)
  25212. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25213. ;;
  25214. *::*)
  25215. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25216. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25217. ;;
  25218. *)
  25219. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25220. ;;
  25221. esac
  25222. }
  25223. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25224. func_cc_basename ()
  25225. {
  25226. for cc_temp in $*""; do
  25227. case $cc_temp in
  25228. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25229. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25230. \-*) ;;
  25231. *) break;;
  25232. esac
  25233. done
  25234. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25235. }
  25236. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25237. _LT_EOF
  25238. case $host_os in
  25239. aix3*)
  25240. cat <<\_LT_EOF >> "$cfgfile"
  25241. # AIX sometimes has problems with the GCC collect2 program. For some
  25242. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25243. # vanish in a puff of smoke.
  25244. if test set != "${COLLECT_NAMES+set}"; then
  25245. COLLECT_NAMES=
  25246. export COLLECT_NAMES
  25247. fi
  25248. _LT_EOF
  25249. ;;
  25250. esac
  25251. ltmain=$ac_aux_dir/ltmain.sh
  25252. # We use sed instead of cat because bash on DJGPP gets confused if
  25253. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25254. # text mode, it properly converts lines to CR/LF. This bash problem
  25255. # is reportedly fixed, but why not run on old versions too?
  25256. sed '$q' "$ltmain" >> "$cfgfile" \
  25257. || (rm -f "$cfgfile"; exit 1)
  25258. mv -f "$cfgfile" "$ofile" ||
  25259. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25260. chmod +x "$ofile"
  25261. cat <<_LT_EOF >> "$ofile"
  25262. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25263. # The linker used to build libraries.
  25264. LD=$lt_LD_RC
  25265. # How to create reloadable object files.
  25266. reload_flag=$lt_reload_flag_RC
  25267. reload_cmds=$lt_reload_cmds_RC
  25268. # Commands used to build an old-style archive.
  25269. old_archive_cmds=$lt_old_archive_cmds_RC
  25270. # A language specific compiler.
  25271. CC=$lt_compiler_RC
  25272. # Is the compiler the GNU compiler?
  25273. with_gcc=$GCC_RC
  25274. # Compiler flag to turn off builtin functions.
  25275. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25276. # Additional compiler flags for building library objects.
  25277. pic_flag=$lt_lt_prog_compiler_pic_RC
  25278. # How to pass a linker flag through the compiler.
  25279. wl=$lt_lt_prog_compiler_wl_RC
  25280. # Compiler flag to prevent dynamic linking.
  25281. link_static_flag=$lt_lt_prog_compiler_static_RC
  25282. # Does compiler simultaneously support -c and -o options?
  25283. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25284. # Whether or not to add -lc for building shared libraries.
  25285. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25286. # Whether or not to disallow shared libs when runtime libs are static.
  25287. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25288. # Compiler flag to allow reflexive dlopens.
  25289. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25290. # Compiler flag to generate shared objects directly from archives.
  25291. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25292. # Whether the compiler copes with passing no objects directly.
  25293. compiler_needs_object=$lt_compiler_needs_object_RC
  25294. # Create an old-style archive from a shared archive.
  25295. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25296. # Create a temporary old-style archive to link instead of a shared archive.
  25297. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25298. # Commands used to build a shared archive.
  25299. archive_cmds=$lt_archive_cmds_RC
  25300. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25301. # Commands used to build a loadable module if different from building
  25302. # a shared archive.
  25303. module_cmds=$lt_module_cmds_RC
  25304. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25305. # Whether we are building with GNU ld or not.
  25306. with_gnu_ld=$lt_with_gnu_ld_RC
  25307. # Flag that allows shared libraries with undefined symbols to be built.
  25308. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25309. # Flag that enforces no undefined symbols.
  25310. no_undefined_flag=$lt_no_undefined_flag_RC
  25311. # Flag to hardcode \$libdir into a binary during linking.
  25312. # This must work even if \$libdir does not exist
  25313. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25314. # Whether we need a single "-rpath" flag with a separated argument.
  25315. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25316. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25317. # DIR into the resulting binary.
  25318. hardcode_direct=$hardcode_direct_RC
  25319. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25320. # DIR into the resulting binary and the resulting library dependency is
  25321. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25322. # library is relocated.
  25323. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25324. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25325. # into the resulting binary.
  25326. hardcode_minus_L=$hardcode_minus_L_RC
  25327. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25328. # into the resulting binary.
  25329. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25330. # Set to "yes" if building a shared library automatically hardcodes DIR
  25331. # into the library and all subsequent libraries and executables linked
  25332. # against it.
  25333. hardcode_automatic=$hardcode_automatic_RC
  25334. # Set to yes if linker adds runtime paths of dependent libraries
  25335. # to runtime path list.
  25336. inherit_rpath=$inherit_rpath_RC
  25337. # Whether libtool must link a program against all its dependency libraries.
  25338. link_all_deplibs=$link_all_deplibs_RC
  25339. # Set to "yes" if exported symbols are required.
  25340. always_export_symbols=$always_export_symbols_RC
  25341. # The commands to list exported symbols.
  25342. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25343. # Symbols that should not be listed in the preloaded symbols.
  25344. exclude_expsyms=$lt_exclude_expsyms_RC
  25345. # Symbols that must always be exported.
  25346. include_expsyms=$lt_include_expsyms_RC
  25347. # Commands necessary for linking programs (against libraries) with templates.
  25348. prelink_cmds=$lt_prelink_cmds_RC
  25349. # Commands necessary for finishing linking programs.
  25350. postlink_cmds=$lt_postlink_cmds_RC
  25351. # Specify filename containing input files.
  25352. file_list_spec=$lt_file_list_spec_RC
  25353. # How to hardcode a shared library path into an executable.
  25354. hardcode_action=$hardcode_action_RC
  25355. # The directories searched by this compiler when creating a shared library.
  25356. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25357. # Dependencies to place before and after the objects being linked to
  25358. # create a shared library.
  25359. predep_objects=$lt_predep_objects_RC
  25360. postdep_objects=$lt_postdep_objects_RC
  25361. predeps=$lt_predeps_RC
  25362. postdeps=$lt_postdeps_RC
  25363. # The library search path used internally by the compiler when linking
  25364. # a shared library.
  25365. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25366. # ### END LIBTOOL TAG CONFIG: RC
  25367. _LT_EOF
  25368. cat <<_LT_EOF >> "$ofile"
  25369. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25370. # The linker used to build libraries.
  25371. LD=$lt_LD_CXX
  25372. # How to create reloadable object files.
  25373. reload_flag=$lt_reload_flag_CXX
  25374. reload_cmds=$lt_reload_cmds_CXX
  25375. # Commands used to build an old-style archive.
  25376. old_archive_cmds=$lt_old_archive_cmds_CXX
  25377. # A language specific compiler.
  25378. CC=$lt_compiler_CXX
  25379. # Is the compiler the GNU compiler?
  25380. with_gcc=$GCC_CXX
  25381. # Compiler flag to turn off builtin functions.
  25382. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25383. # Additional compiler flags for building library objects.
  25384. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25385. # How to pass a linker flag through the compiler.
  25386. wl=$lt_lt_prog_compiler_wl_CXX
  25387. # Compiler flag to prevent dynamic linking.
  25388. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25389. # Does compiler simultaneously support -c and -o options?
  25390. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25391. # Whether or not to add -lc for building shared libraries.
  25392. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25393. # Whether or not to disallow shared libs when runtime libs are static.
  25394. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25395. # Compiler flag to allow reflexive dlopens.
  25396. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25397. # Compiler flag to generate shared objects directly from archives.
  25398. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25399. # Whether the compiler copes with passing no objects directly.
  25400. compiler_needs_object=$lt_compiler_needs_object_CXX
  25401. # Create an old-style archive from a shared archive.
  25402. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25403. # Create a temporary old-style archive to link instead of a shared archive.
  25404. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25405. # Commands used to build a shared archive.
  25406. archive_cmds=$lt_archive_cmds_CXX
  25407. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25408. # Commands used to build a loadable module if different from building
  25409. # a shared archive.
  25410. module_cmds=$lt_module_cmds_CXX
  25411. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25412. # Whether we are building with GNU ld or not.
  25413. with_gnu_ld=$lt_with_gnu_ld_CXX
  25414. # Flag that allows shared libraries with undefined symbols to be built.
  25415. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25416. # Flag that enforces no undefined symbols.
  25417. no_undefined_flag=$lt_no_undefined_flag_CXX
  25418. # Flag to hardcode \$libdir into a binary during linking.
  25419. # This must work even if \$libdir does not exist
  25420. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25421. # Whether we need a single "-rpath" flag with a separated argument.
  25422. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25423. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25424. # DIR into the resulting binary.
  25425. hardcode_direct=$hardcode_direct_CXX
  25426. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25427. # DIR into the resulting binary and the resulting library dependency is
  25428. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25429. # library is relocated.
  25430. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25431. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25432. # into the resulting binary.
  25433. hardcode_minus_L=$hardcode_minus_L_CXX
  25434. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25435. # into the resulting binary.
  25436. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25437. # Set to "yes" if building a shared library automatically hardcodes DIR
  25438. # into the library and all subsequent libraries and executables linked
  25439. # against it.
  25440. hardcode_automatic=$hardcode_automatic_CXX
  25441. # Set to yes if linker adds runtime paths of dependent libraries
  25442. # to runtime path list.
  25443. inherit_rpath=$inherit_rpath_CXX
  25444. # Whether libtool must link a program against all its dependency libraries.
  25445. link_all_deplibs=$link_all_deplibs_CXX
  25446. # Set to "yes" if exported symbols are required.
  25447. always_export_symbols=$always_export_symbols_CXX
  25448. # The commands to list exported symbols.
  25449. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25450. # Symbols that should not be listed in the preloaded symbols.
  25451. exclude_expsyms=$lt_exclude_expsyms_CXX
  25452. # Symbols that must always be exported.
  25453. include_expsyms=$lt_include_expsyms_CXX
  25454. # Commands necessary for linking programs (against libraries) with templates.
  25455. prelink_cmds=$lt_prelink_cmds_CXX
  25456. # Commands necessary for finishing linking programs.
  25457. postlink_cmds=$lt_postlink_cmds_CXX
  25458. # Specify filename containing input files.
  25459. file_list_spec=$lt_file_list_spec_CXX
  25460. # How to hardcode a shared library path into an executable.
  25461. hardcode_action=$hardcode_action_CXX
  25462. # The directories searched by this compiler when creating a shared library.
  25463. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25464. # Dependencies to place before and after the objects being linked to
  25465. # create a shared library.
  25466. predep_objects=$lt_predep_objects_CXX
  25467. postdep_objects=$lt_postdep_objects_CXX
  25468. predeps=$lt_predeps_CXX
  25469. postdeps=$lt_postdeps_CXX
  25470. # The library search path used internally by the compiler when linking
  25471. # a shared library.
  25472. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25473. # ### END LIBTOOL TAG CONFIG: CXX
  25474. _LT_EOF
  25475. ;;
  25476. "sdl2_config":C) chmod a+x sdl2-config ;;
  25477. "summary":C) printf "$SUMMARY" ;;
  25478. esac
  25479. done # for ac_tag
  25480. as_fn_exit 0
  25481. _ACEOF
  25482. ac_clean_files=$ac_clean_files_save
  25483. test $ac_write_fail = 0 ||
  25484. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25485. # configure is writing to config.log, and then calls config.status.
  25486. # config.status does its own redirection, appending to config.log.
  25487. # Unfortunately, on DOS this fails, as config.log is still kept open
  25488. # by configure, so config.status won't be able to write to it; its
  25489. # output is simply discarded. So we exec the FD to /dev/null,
  25490. # effectively closing config.log, so it can be properly (re)opened and
  25491. # appended to by config.status. When coming back to configure, we
  25492. # need to make the FD available again.
  25493. if test "$no_create" != yes; then
  25494. ac_cs_success=:
  25495. ac_config_status_args=
  25496. test "$silent" = yes &&
  25497. ac_config_status_args="$ac_config_status_args --quiet"
  25498. exec 5>/dev/null
  25499. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25500. exec 5>>config.log
  25501. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25502. # would make configure fail if this is the last instruction.
  25503. $ac_cs_success || as_fn_exit 1
  25504. fi
  25505. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25507. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25508. fi