1
0

configure 799 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279
  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="README.txt"
  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
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. ESD_LIBS
  610. ESD_CFLAGS
  611. ESD_CONFIG
  612. PKG_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_gnu_ld
  723. with_sysroot
  724. enable_libtool_lock
  725. enable_assertions
  726. enable_dependency_tracking
  727. enable_libc
  728. enable_gcc_atomics
  729. enable_atomic
  730. enable_audio
  731. enable_video
  732. enable_render
  733. enable_events
  734. enable_joystick
  735. enable_haptic
  736. enable_power
  737. enable_filesystem
  738. enable_threads
  739. enable_timers
  740. enable_file
  741. enable_loadso
  742. enable_cpuinfo
  743. enable_assembly
  744. enable_ssemath
  745. enable_mmx
  746. enable_3dnow
  747. enable_sse
  748. enable_sse2
  749. enable_sse3
  750. enable_altivec
  751. enable_oss
  752. enable_alsa
  753. with_alsa_prefix
  754. with_alsa_inc_prefix
  755. enable_alsatest
  756. enable_alsa_shared
  757. enable_jack
  758. enable_jack_shared
  759. enable_esd
  760. with_esd_prefix
  761. with_esd_exec_prefix
  762. enable_esdtest
  763. enable_esd_shared
  764. enable_pulseaudio
  765. enable_pulseaudio_shared
  766. enable_arts
  767. enable_arts_shared
  768. enable_nas
  769. enable_nas_shared
  770. enable_sndio
  771. enable_sndio_shared
  772. enable_fusionsound
  773. enable_fusionsound_shared
  774. enable_diskaudio
  775. enable_dummyaudio
  776. enable_libsamplerate
  777. enable_libsamplerate_shared
  778. enable_video_wayland
  779. enable_video_wayland_qt_touch
  780. enable_wayland_shared
  781. enable_video_mir
  782. enable_mir_shared
  783. enable_video_rpi
  784. enable_video_x11
  785. with_x
  786. enable_x11_shared
  787. enable_video_x11_xcursor
  788. enable_video_x11_xdbe
  789. enable_video_x11_xinerama
  790. enable_video_x11_xinput
  791. enable_video_x11_xrandr
  792. enable_video_x11_scrnsaver
  793. enable_video_x11_xshape
  794. enable_video_x11_vm
  795. enable_video_vivante
  796. enable_video_cocoa
  797. enable_video_directfb
  798. enable_directfb_shared
  799. enable_video_kmsdrm
  800. enable_kmsdrm_shared
  801. enable_video_dummy
  802. enable_video_opengl
  803. enable_video_opengles
  804. enable_video_opengles1
  805. enable_video_opengles2
  806. enable_video_vulkan
  807. enable_libudev
  808. enable_dbus
  809. enable_ime
  810. enable_ibus
  811. enable_fcitx
  812. enable_input_tslib
  813. enable_pthreads
  814. enable_pthread_sem
  815. enable_directx
  816. enable_sdl_dlopen
  817. enable_clock_gettime
  818. enable_rpath
  819. enable_render_d3d
  820. '
  821. ac_precious_vars='build_alias
  822. host_alias
  823. target_alias
  824. CC
  825. CFLAGS
  826. LDFLAGS
  827. LIBS
  828. CPPFLAGS
  829. CPP
  830. CXX
  831. CXXFLAGS
  832. CCC
  833. CXXCPP
  834. XMKMF'
  835. # Initialize some variables set by options.
  836. ac_init_help=
  837. ac_init_version=false
  838. ac_unrecognized_opts=
  839. ac_unrecognized_sep=
  840. # The variables have the same names as the options, with
  841. # dashes changed to underlines.
  842. cache_file=/dev/null
  843. exec_prefix=NONE
  844. no_create=
  845. no_recursion=
  846. prefix=NONE
  847. program_prefix=NONE
  848. program_suffix=NONE
  849. program_transform_name=s,x,x,
  850. silent=
  851. site=
  852. srcdir=
  853. verbose=
  854. x_includes=NONE
  855. x_libraries=NONE
  856. # Installation directory options.
  857. # These are left unexpanded so users can "make install exec_prefix=/foo"
  858. # and all the variables that are supposed to be based on exec_prefix
  859. # by default will actually change.
  860. # Use braces instead of parens because sh, perl, etc. also accept them.
  861. # (The list follows the same order as the GNU Coding Standards.)
  862. bindir='${exec_prefix}/bin'
  863. sbindir='${exec_prefix}/sbin'
  864. libexecdir='${exec_prefix}/libexec'
  865. datarootdir='${prefix}/share'
  866. datadir='${datarootdir}'
  867. sysconfdir='${prefix}/etc'
  868. sharedstatedir='${prefix}/com'
  869. localstatedir='${prefix}/var'
  870. includedir='${prefix}/include'
  871. oldincludedir='/usr/include'
  872. docdir='${datarootdir}/doc/${PACKAGE}'
  873. infodir='${datarootdir}/info'
  874. htmldir='${docdir}'
  875. dvidir='${docdir}'
  876. pdfdir='${docdir}'
  877. psdir='${docdir}'
  878. libdir='${exec_prefix}/lib'
  879. localedir='${datarootdir}/locale'
  880. mandir='${datarootdir}/man'
  881. ac_prev=
  882. ac_dashdash=
  883. for ac_option
  884. do
  885. # If the previous option needs an argument, assign it.
  886. if test -n "$ac_prev"; then
  887. eval $ac_prev=\$ac_option
  888. ac_prev=
  889. continue
  890. fi
  891. case $ac_option in
  892. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  893. *=) ac_optarg= ;;
  894. *) ac_optarg=yes ;;
  895. esac
  896. # Accept the important Cygnus configure options, so we can diagnose typos.
  897. case $ac_dashdash$ac_option in
  898. --)
  899. ac_dashdash=yes ;;
  900. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  901. ac_prev=bindir ;;
  902. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  903. bindir=$ac_optarg ;;
  904. -build | --build | --buil | --bui | --bu)
  905. ac_prev=build_alias ;;
  906. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  907. build_alias=$ac_optarg ;;
  908. -cache-file | --cache-file | --cache-fil | --cache-fi \
  909. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  910. ac_prev=cache_file ;;
  911. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  912. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  913. cache_file=$ac_optarg ;;
  914. --config-cache | -C)
  915. cache_file=config.cache ;;
  916. -datadir | --datadir | --datadi | --datad)
  917. ac_prev=datadir ;;
  918. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  919. datadir=$ac_optarg ;;
  920. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  921. | --dataroo | --dataro | --datar)
  922. ac_prev=datarootdir ;;
  923. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  924. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  925. datarootdir=$ac_optarg ;;
  926. -disable-* | --disable-*)
  927. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  928. # Reject names that are not valid shell variable names.
  929. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  930. as_fn_error $? "invalid feature name: $ac_useropt"
  931. ac_useropt_orig=$ac_useropt
  932. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  933. case $ac_user_opts in
  934. *"
  935. "enable_$ac_useropt"
  936. "*) ;;
  937. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  938. ac_unrecognized_sep=', ';;
  939. esac
  940. eval enable_$ac_useropt=no ;;
  941. -docdir | --docdir | --docdi | --doc | --do)
  942. ac_prev=docdir ;;
  943. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  944. docdir=$ac_optarg ;;
  945. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  946. ac_prev=dvidir ;;
  947. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  948. dvidir=$ac_optarg ;;
  949. -enable-* | --enable-*)
  950. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  951. # Reject names that are not valid shell variable names.
  952. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  953. as_fn_error $? "invalid feature name: $ac_useropt"
  954. ac_useropt_orig=$ac_useropt
  955. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  956. case $ac_user_opts in
  957. *"
  958. "enable_$ac_useropt"
  959. "*) ;;
  960. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  961. ac_unrecognized_sep=', ';;
  962. esac
  963. eval enable_$ac_useropt=\$ac_optarg ;;
  964. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  965. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  966. | --exec | --exe | --ex)
  967. ac_prev=exec_prefix ;;
  968. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  969. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  970. | --exec=* | --exe=* | --ex=*)
  971. exec_prefix=$ac_optarg ;;
  972. -gas | --gas | --ga | --g)
  973. # Obsolete; use --with-gas.
  974. with_gas=yes ;;
  975. -help | --help | --hel | --he | -h)
  976. ac_init_help=long ;;
  977. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  978. ac_init_help=recursive ;;
  979. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  980. ac_init_help=short ;;
  981. -host | --host | --hos | --ho)
  982. ac_prev=host_alias ;;
  983. -host=* | --host=* | --hos=* | --ho=*)
  984. host_alias=$ac_optarg ;;
  985. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  986. ac_prev=htmldir ;;
  987. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  988. | --ht=*)
  989. htmldir=$ac_optarg ;;
  990. -includedir | --includedir | --includedi | --included | --include \
  991. | --includ | --inclu | --incl | --inc)
  992. ac_prev=includedir ;;
  993. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  994. | --includ=* | --inclu=* | --incl=* | --inc=*)
  995. includedir=$ac_optarg ;;
  996. -infodir | --infodir | --infodi | --infod | --info | --inf)
  997. ac_prev=infodir ;;
  998. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  999. infodir=$ac_optarg ;;
  1000. -libdir | --libdir | --libdi | --libd)
  1001. ac_prev=libdir ;;
  1002. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1003. libdir=$ac_optarg ;;
  1004. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1005. | --libexe | --libex | --libe)
  1006. ac_prev=libexecdir ;;
  1007. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1008. | --libexe=* | --libex=* | --libe=*)
  1009. libexecdir=$ac_optarg ;;
  1010. -localedir | --localedir | --localedi | --localed | --locale)
  1011. ac_prev=localedir ;;
  1012. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1013. localedir=$ac_optarg ;;
  1014. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1015. | --localstate | --localstat | --localsta | --localst | --locals)
  1016. ac_prev=localstatedir ;;
  1017. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1018. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1019. localstatedir=$ac_optarg ;;
  1020. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1021. ac_prev=mandir ;;
  1022. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1023. mandir=$ac_optarg ;;
  1024. -nfp | --nfp | --nf)
  1025. # Obsolete; use --without-fp.
  1026. with_fp=no ;;
  1027. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1028. | --no-cr | --no-c | -n)
  1029. no_create=yes ;;
  1030. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1031. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1032. no_recursion=yes ;;
  1033. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1034. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1035. | --oldin | --oldi | --old | --ol | --o)
  1036. ac_prev=oldincludedir ;;
  1037. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1038. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1039. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1040. oldincludedir=$ac_optarg ;;
  1041. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1042. ac_prev=prefix ;;
  1043. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1044. prefix=$ac_optarg ;;
  1045. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1046. | --program-pre | --program-pr | --program-p)
  1047. ac_prev=program_prefix ;;
  1048. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1049. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1050. program_prefix=$ac_optarg ;;
  1051. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1052. | --program-suf | --program-su | --program-s)
  1053. ac_prev=program_suffix ;;
  1054. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1055. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1056. program_suffix=$ac_optarg ;;
  1057. -program-transform-name | --program-transform-name \
  1058. | --program-transform-nam | --program-transform-na \
  1059. | --program-transform-n | --program-transform- \
  1060. | --program-transform | --program-transfor \
  1061. | --program-transfo | --program-transf \
  1062. | --program-trans | --program-tran \
  1063. | --progr-tra | --program-tr | --program-t)
  1064. ac_prev=program_transform_name ;;
  1065. -program-transform-name=* | --program-transform-name=* \
  1066. | --program-transform-nam=* | --program-transform-na=* \
  1067. | --program-transform-n=* | --program-transform-=* \
  1068. | --program-transform=* | --program-transfor=* \
  1069. | --program-transfo=* | --program-transf=* \
  1070. | --program-trans=* | --program-tran=* \
  1071. | --progr-tra=* | --program-tr=* | --program-t=*)
  1072. program_transform_name=$ac_optarg ;;
  1073. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1074. ac_prev=pdfdir ;;
  1075. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1076. pdfdir=$ac_optarg ;;
  1077. -psdir | --psdir | --psdi | --psd | --ps)
  1078. ac_prev=psdir ;;
  1079. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1080. psdir=$ac_optarg ;;
  1081. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1082. | -silent | --silent | --silen | --sile | --sil)
  1083. silent=yes ;;
  1084. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1085. ac_prev=sbindir ;;
  1086. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1087. | --sbi=* | --sb=*)
  1088. sbindir=$ac_optarg ;;
  1089. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1090. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1091. | --sharedst | --shareds | --shared | --share | --shar \
  1092. | --sha | --sh)
  1093. ac_prev=sharedstatedir ;;
  1094. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1095. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1096. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1097. | --sha=* | --sh=*)
  1098. sharedstatedir=$ac_optarg ;;
  1099. -site | --site | --sit)
  1100. ac_prev=site ;;
  1101. -site=* | --site=* | --sit=*)
  1102. site=$ac_optarg ;;
  1103. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1104. ac_prev=srcdir ;;
  1105. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1106. srcdir=$ac_optarg ;;
  1107. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1108. | --syscon | --sysco | --sysc | --sys | --sy)
  1109. ac_prev=sysconfdir ;;
  1110. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1111. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1112. sysconfdir=$ac_optarg ;;
  1113. -target | --target | --targe | --targ | --tar | --ta | --t)
  1114. ac_prev=target_alias ;;
  1115. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1116. target_alias=$ac_optarg ;;
  1117. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1118. verbose=yes ;;
  1119. -version | --version | --versio | --versi | --vers | -V)
  1120. ac_init_version=: ;;
  1121. -with-* | --with-*)
  1122. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1123. # Reject names that are not valid shell variable names.
  1124. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1125. as_fn_error $? "invalid package name: $ac_useropt"
  1126. ac_useropt_orig=$ac_useropt
  1127. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1128. case $ac_user_opts in
  1129. *"
  1130. "with_$ac_useropt"
  1131. "*) ;;
  1132. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1133. ac_unrecognized_sep=', ';;
  1134. esac
  1135. eval with_$ac_useropt=\$ac_optarg ;;
  1136. -without-* | --without-*)
  1137. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1138. # Reject names that are not valid shell variable names.
  1139. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1140. as_fn_error $? "invalid package name: $ac_useropt"
  1141. ac_useropt_orig=$ac_useropt
  1142. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1143. case $ac_user_opts in
  1144. *"
  1145. "with_$ac_useropt"
  1146. "*) ;;
  1147. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1148. ac_unrecognized_sep=', ';;
  1149. esac
  1150. eval with_$ac_useropt=no ;;
  1151. --x)
  1152. # Obsolete; use --with-x.
  1153. with_x=yes ;;
  1154. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1155. | --x-incl | --x-inc | --x-in | --x-i)
  1156. ac_prev=x_includes ;;
  1157. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1158. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1159. x_includes=$ac_optarg ;;
  1160. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1161. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1162. ac_prev=x_libraries ;;
  1163. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1164. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1165. x_libraries=$ac_optarg ;;
  1166. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1167. Try \`$0 --help' for more information"
  1168. ;;
  1169. *=*)
  1170. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1171. # Reject names that are not valid shell variable names.
  1172. case $ac_envvar in #(
  1173. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1174. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1175. esac
  1176. eval $ac_envvar=\$ac_optarg
  1177. export $ac_envvar ;;
  1178. *)
  1179. # FIXME: should be removed in autoconf 3.0.
  1180. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1181. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1182. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1183. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1184. ;;
  1185. esac
  1186. done
  1187. if test -n "$ac_prev"; then
  1188. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1189. as_fn_error $? "missing argument to $ac_option"
  1190. fi
  1191. if test -n "$ac_unrecognized_opts"; then
  1192. case $enable_option_checking in
  1193. no) ;;
  1194. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1195. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1196. esac
  1197. fi
  1198. # Check all directory arguments for consistency.
  1199. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1200. datadir sysconfdir sharedstatedir localstatedir includedir \
  1201. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1202. libdir localedir mandir
  1203. do
  1204. eval ac_val=\$$ac_var
  1205. # Remove trailing slashes.
  1206. case $ac_val in
  1207. */ )
  1208. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1209. eval $ac_var=\$ac_val;;
  1210. esac
  1211. # Be sure to have absolute directory names.
  1212. case $ac_val in
  1213. [\\/$]* | ?:[\\/]* ) continue;;
  1214. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1215. esac
  1216. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1217. done
  1218. # There might be people who depend on the old broken behavior: `$host'
  1219. # used to hold the argument of --host etc.
  1220. # FIXME: To remove some day.
  1221. build=$build_alias
  1222. host=$host_alias
  1223. target=$target_alias
  1224. # FIXME: To remove some day.
  1225. if test "x$host_alias" != x; then
  1226. if test "x$build_alias" = x; then
  1227. cross_compiling=maybe
  1228. elif test "x$build_alias" != "x$host_alias"; then
  1229. cross_compiling=yes
  1230. fi
  1231. fi
  1232. ac_tool_prefix=
  1233. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1234. test "$silent" = yes && exec 6>/dev/null
  1235. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1236. ac_ls_di=`ls -di .` &&
  1237. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1238. as_fn_error $? "working directory cannot be determined"
  1239. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1240. as_fn_error $? "pwd does not report name of working directory"
  1241. # Find the source files, if location was not specified.
  1242. if test -z "$srcdir"; then
  1243. ac_srcdir_defaulted=yes
  1244. # Try the directory containing this script, then the parent directory.
  1245. ac_confdir=`$as_dirname -- "$as_myself" ||
  1246. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1247. X"$as_myself" : 'X\(//\)[^/]' \| \
  1248. X"$as_myself" : 'X\(//\)$' \| \
  1249. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1250. $as_echo X"$as_myself" |
  1251. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1252. s//\1/
  1253. q
  1254. }
  1255. /^X\(\/\/\)[^/].*/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)$/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\).*/{
  1264. s//\1/
  1265. q
  1266. }
  1267. s/.*/./; q'`
  1268. srcdir=$ac_confdir
  1269. if test ! -r "$srcdir/$ac_unique_file"; then
  1270. srcdir=..
  1271. fi
  1272. else
  1273. ac_srcdir_defaulted=no
  1274. fi
  1275. if test ! -r "$srcdir/$ac_unique_file"; then
  1276. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1277. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1278. fi
  1279. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1280. ac_abs_confdir=`(
  1281. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1282. pwd)`
  1283. # When building in place, set srcdir=.
  1284. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1285. srcdir=.
  1286. fi
  1287. # Remove unnecessary trailing slashes from srcdir.
  1288. # Double slashes in file names in object file debugging info
  1289. # mess up M-x gdb in Emacs.
  1290. case $srcdir in
  1291. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1292. esac
  1293. for ac_var in $ac_precious_vars; do
  1294. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1295. eval ac_env_${ac_var}_value=\$${ac_var}
  1296. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1297. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1298. done
  1299. #
  1300. # Report the --help message.
  1301. #
  1302. if test "$ac_init_help" = "long"; then
  1303. # Omit some internal or obsolete options to make the list less imposing.
  1304. # This message is too long to be a string in the A/UX 3.1 sh.
  1305. cat <<_ACEOF
  1306. \`configure' configures this package to adapt to many kinds of systems.
  1307. Usage: $0 [OPTION]... [VAR=VALUE]...
  1308. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1309. VAR=VALUE. See below for descriptions of some of the useful variables.
  1310. Defaults for the options are specified in brackets.
  1311. Configuration:
  1312. -h, --help display this help and exit
  1313. --help=short display options specific to this package
  1314. --help=recursive display the short help of all the included packages
  1315. -V, --version display version information and exit
  1316. -q, --quiet, --silent do not print \`checking ...' messages
  1317. --cache-file=FILE cache test results in FILE [disabled]
  1318. -C, --config-cache alias for \`--cache-file=config.cache'
  1319. -n, --no-create do not create output files
  1320. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1321. Installation directories:
  1322. --prefix=PREFIX install architecture-independent files in PREFIX
  1323. [$ac_default_prefix]
  1324. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1325. [PREFIX]
  1326. By default, \`make install' will install all the files in
  1327. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1328. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1329. for instance \`--prefix=\$HOME'.
  1330. For better control, use the options below.
  1331. Fine tuning of the installation directories:
  1332. --bindir=DIR user executables [EPREFIX/bin]
  1333. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1334. --libexecdir=DIR program executables [EPREFIX/libexec]
  1335. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1336. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1337. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1338. --libdir=DIR object code libraries [EPREFIX/lib]
  1339. --includedir=DIR C header files [PREFIX/include]
  1340. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1341. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1342. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1343. --infodir=DIR info documentation [DATAROOTDIR/info]
  1344. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1345. --mandir=DIR man documentation [DATAROOTDIR/man]
  1346. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1347. --htmldir=DIR html documentation [DOCDIR]
  1348. --dvidir=DIR dvi documentation [DOCDIR]
  1349. --pdfdir=DIR pdf documentation [DOCDIR]
  1350. --psdir=DIR ps documentation [DOCDIR]
  1351. _ACEOF
  1352. cat <<\_ACEOF
  1353. X features:
  1354. --x-includes=DIR X include files are in DIR
  1355. --x-libraries=DIR X library files are in DIR
  1356. System types:
  1357. --build=BUILD configure for building on BUILD [guessed]
  1358. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1359. _ACEOF
  1360. fi
  1361. if test -n "$ac_init_help"; then
  1362. cat <<\_ACEOF
  1363. Optional Features:
  1364. --disable-option-checking ignore unrecognized --enable/--with options
  1365. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1366. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1367. --enable-shared[=PKGS] build shared libraries [default=yes]
  1368. --enable-static[=PKGS] build static libraries [default=yes]
  1369. --enable-fast-install[=PKGS]
  1370. optimize for fast installation [default=yes]
  1371. --disable-libtool-lock avoid locking (might break parallel builds)
  1372. --enable-assertions Enable internal sanity checks
  1373. (auto/disabled/release/enabled/paranoid)
  1374. [[default=auto]]
  1375. --enable-dependency-tracking
  1376. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1377. --enable-libc Use the system C library [[default=yes]]
  1378. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1379. --enable-atomic Enable the atomic operations subsystem
  1380. [[default=yes]]
  1381. --enable-audio Enable the audio subsystem [[default=yes]]
  1382. --enable-video Enable the video subsystem [[default=yes]]
  1383. --enable-render Enable the render subsystem [[default=yes]]
  1384. --enable-events Enable the events subsystem [[default=yes]]
  1385. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1386. --enable-haptic Enable the haptic (force feedback) subsystem
  1387. [[default=yes]]
  1388. --enable-power Enable the power subsystem [[default=yes]]
  1389. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1390. --enable-threads Enable the threading subsystem [[default=yes]]
  1391. --enable-timers Enable the timer subsystem [[default=yes]]
  1392. --enable-file Enable the file subsystem [[default=yes]]
  1393. --enable-loadso Enable the shared object loading subsystem
  1394. [[default=yes]]
  1395. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1396. --enable-assembly Enable assembly routines [[default=yes]]
  1397. --enable-ssemath Allow GCC to use SSE floating point math
  1398. [[default=maybe]]
  1399. --enable-mmx use MMX assembly routines [[default=yes]]
  1400. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1401. --enable-sse use SSE assembly routines [[default=yes]]
  1402. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1403. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1404. --enable-altivec use Altivec assembly routines [[default=yes]]
  1405. --enable-oss support the OSS audio API [[default=maybe]]
  1406. --enable-alsa support the ALSA audio API [[default=yes]]
  1407. --disable-alsatest Do not try to compile and run a test Alsa program
  1408. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1409. --enable-jack use JACK audio [[default=yes]]
  1410. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1411. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1412. --disable-esdtest Do not try to compile and run a test ESD program
  1413. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1414. --enable-pulseaudio use PulseAudio [[default=yes]]
  1415. --enable-pulseaudio-shared
  1416. dynamically load PulseAudio support [[default=yes]]
  1417. --enable-arts support the Analog Real Time Synthesizer
  1418. [[default=yes]]
  1419. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1420. --enable-nas support the NAS audio API [[default=yes]]
  1421. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1422. --enable-sndio support the sndio audio API [[default=yes]]
  1423. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1424. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1425. --enable-fusionsound-shared
  1426. dynamically load fusionsound audio support
  1427. [[default=yes]]
  1428. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1429. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1430. --enable-libsamplerate use libsamplerate for audio rate conversion
  1431. [[default=yes]]
  1432. --enable-libsamplerate-shared
  1433. dynamically load libsamplerate [[default=yes]]
  1434. --enable-video-wayland use Wayland video driver [[default=yes]]
  1435. --enable-video-wayland-qt-touch
  1436. QtWayland server support for Wayland video driver
  1437. [[default=yes]]
  1438. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1439. --enable-video-mir use Mir video driver [[default=yes]]
  1440. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1441. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1442. --enable-video-x11 use X11 video driver [[default=yes]]
  1443. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1444. --enable-video-x11-xcursor
  1445. enable X11 Xcursor support [[default=yes]]
  1446. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1447. --enable-video-x11-xinerama
  1448. enable X11 Xinerama support [[default=yes]]
  1449. --enable-video-x11-xinput
  1450. enable X11 XInput extension for manymouse, tablets,
  1451. etc [[default=yes]]
  1452. --enable-video-x11-xrandr
  1453. enable X11 Xrandr extension for fullscreen
  1454. [[default=yes]]
  1455. --enable-video-x11-scrnsaver
  1456. enable X11 screensaver extension [[default=yes]]
  1457. --enable-video-x11-xshape
  1458. enable X11 XShape support [[default=yes]]
  1459. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1460. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1461. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1462. --enable-video-directfb use DirectFB video driver [[default=no]]
  1463. --enable-directfb-shared
  1464. dynamically load directfb support [[default=yes]]
  1465. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1466. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1467. --enable-video-dummy use dummy video driver [[default=yes]]
  1468. --enable-video-opengl include OpenGL support [[default=yes]]
  1469. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1470. --enable-video-opengles1
  1471. include OpenGL ES 1.1 support [[default=yes]]
  1472. --enable-video-opengles2
  1473. include OpenGL ES 2.0 support [[default=yes]]
  1474. --enable-video-vulkan include Vulkan support [[default=yes]]
  1475. --enable-libudev enable libudev support [[default=yes]]
  1476. --enable-dbus enable D-Bus support [[default=yes]]
  1477. --enable-ime enable IME support [[default=yes]]
  1478. --enable-ibus enable IBus support [[default=yes]]
  1479. --enable-fcitx enable fcitx support [[default=yes]]
  1480. --enable-input-tslib use the Touchscreen library for input
  1481. [[default=yes]]
  1482. --enable-pthreads use POSIX threads for multi-threading
  1483. [[default=yes]]
  1484. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1485. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1486. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1487. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1488. UNIX [[default=yes]]
  1489. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1490. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1491. Optional Packages:
  1492. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1493. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1494. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1495. both]
  1496. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1497. --with-sysroot=DIR Search for dependent libraries within DIR
  1498. (or the compiler's sysroot if not specified).
  1499. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1500. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1501. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1502. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1503. --with-x use the X Window System
  1504. Some influential environment variables:
  1505. CC C compiler command
  1506. CFLAGS C compiler flags
  1507. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1508. nonstandard directory <lib dir>
  1509. LIBS libraries to pass to the linker, e.g. -l<library>
  1510. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1511. you have headers in a nonstandard directory <include dir>
  1512. CPP C preprocessor
  1513. CXX C++ compiler command
  1514. CXXFLAGS C++ compiler flags
  1515. CXXCPP C++ preprocessor
  1516. XMKMF Path to xmkmf, Makefile generator for X Window System
  1517. Use these variables to override the choices made by `configure' or to help
  1518. it to find libraries and programs with nonstandard names/locations.
  1519. Report bugs to the package provider.
  1520. _ACEOF
  1521. ac_status=$?
  1522. fi
  1523. if test "$ac_init_help" = "recursive"; then
  1524. # If there are subdirs, report their specific --help.
  1525. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1526. test -d "$ac_dir" ||
  1527. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1528. continue
  1529. ac_builddir=.
  1530. case "$ac_dir" in
  1531. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1532. *)
  1533. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1534. # A ".." for each directory in $ac_dir_suffix.
  1535. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1536. case $ac_top_builddir_sub in
  1537. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1538. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1539. esac ;;
  1540. esac
  1541. ac_abs_top_builddir=$ac_pwd
  1542. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1543. # for backward compatibility:
  1544. ac_top_builddir=$ac_top_build_prefix
  1545. case $srcdir in
  1546. .) # We are building in place.
  1547. ac_srcdir=.
  1548. ac_top_srcdir=$ac_top_builddir_sub
  1549. ac_abs_top_srcdir=$ac_pwd ;;
  1550. [\\/]* | ?:[\\/]* ) # Absolute name.
  1551. ac_srcdir=$srcdir$ac_dir_suffix;
  1552. ac_top_srcdir=$srcdir
  1553. ac_abs_top_srcdir=$srcdir ;;
  1554. *) # Relative name.
  1555. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1556. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1557. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1558. esac
  1559. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1560. cd "$ac_dir" || { ac_status=$?; continue; }
  1561. # Check for guested configure.
  1562. if test -f "$ac_srcdir/configure.gnu"; then
  1563. echo &&
  1564. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1565. elif test -f "$ac_srcdir/configure"; then
  1566. echo &&
  1567. $SHELL "$ac_srcdir/configure" --help=recursive
  1568. else
  1569. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1570. fi || ac_status=$?
  1571. cd "$ac_pwd" || { ac_status=$?; break; }
  1572. done
  1573. fi
  1574. test -n "$ac_init_help" && exit $ac_status
  1575. if $ac_init_version; then
  1576. cat <<\_ACEOF
  1577. configure
  1578. generated by GNU Autoconf 2.69
  1579. Copyright (C) 2012 Free Software Foundation, Inc.
  1580. This configure script is free software; the Free Software Foundation
  1581. gives unlimited permission to copy, distribute and modify it.
  1582. _ACEOF
  1583. exit
  1584. fi
  1585. ## ------------------------ ##
  1586. ## Autoconf initialization. ##
  1587. ## ------------------------ ##
  1588. # ac_fn_c_try_compile LINENO
  1589. # --------------------------
  1590. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1591. ac_fn_c_try_compile ()
  1592. {
  1593. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1594. rm -f conftest.$ac_objext
  1595. if { { ac_try="$ac_compile"
  1596. case "(($ac_try" in
  1597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1598. *) ac_try_echo=$ac_try;;
  1599. esac
  1600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1601. $as_echo "$ac_try_echo"; } >&5
  1602. (eval "$ac_compile") 2>conftest.err
  1603. ac_status=$?
  1604. if test -s conftest.err; then
  1605. grep -v '^ *+' conftest.err >conftest.er1
  1606. cat conftest.er1 >&5
  1607. mv -f conftest.er1 conftest.err
  1608. fi
  1609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1610. test $ac_status = 0; } && {
  1611. test -z "$ac_c_werror_flag" ||
  1612. test ! -s conftest.err
  1613. } && test -s conftest.$ac_objext; then :
  1614. ac_retval=0
  1615. else
  1616. $as_echo "$as_me: failed program was:" >&5
  1617. sed 's/^/| /' conftest.$ac_ext >&5
  1618. ac_retval=1
  1619. fi
  1620. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1621. as_fn_set_status $ac_retval
  1622. } # ac_fn_c_try_compile
  1623. # ac_fn_c_try_link LINENO
  1624. # -----------------------
  1625. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1626. ac_fn_c_try_link ()
  1627. {
  1628. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1629. rm -f conftest.$ac_objext conftest$ac_exeext
  1630. if { { ac_try="$ac_link"
  1631. case "(($ac_try" in
  1632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1633. *) ac_try_echo=$ac_try;;
  1634. esac
  1635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1636. $as_echo "$ac_try_echo"; } >&5
  1637. (eval "$ac_link") 2>conftest.err
  1638. ac_status=$?
  1639. if test -s conftest.err; then
  1640. grep -v '^ *+' conftest.err >conftest.er1
  1641. cat conftest.er1 >&5
  1642. mv -f conftest.er1 conftest.err
  1643. fi
  1644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1645. test $ac_status = 0; } && {
  1646. test -z "$ac_c_werror_flag" ||
  1647. test ! -s conftest.err
  1648. } && test -s conftest$ac_exeext && {
  1649. test "$cross_compiling" = yes ||
  1650. test -x conftest$ac_exeext
  1651. }; then :
  1652. ac_retval=0
  1653. else
  1654. $as_echo "$as_me: failed program was:" >&5
  1655. sed 's/^/| /' conftest.$ac_ext >&5
  1656. ac_retval=1
  1657. fi
  1658. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1659. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1660. # interfere with the next link command; also delete a directory that is
  1661. # left behind by Apple's compiler. We do this before executing the actions.
  1662. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1663. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1664. as_fn_set_status $ac_retval
  1665. } # ac_fn_c_try_link
  1666. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1667. # -------------------------------------------------------
  1668. # Tests whether HEADER exists and can be compiled using the include files in
  1669. # INCLUDES, setting the cache variable VAR accordingly.
  1670. ac_fn_c_check_header_compile ()
  1671. {
  1672. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1674. $as_echo_n "checking for $2... " >&6; }
  1675. if eval \${$3+:} false; then :
  1676. $as_echo_n "(cached) " >&6
  1677. else
  1678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1679. /* end confdefs.h. */
  1680. $4
  1681. #include <$2>
  1682. _ACEOF
  1683. if ac_fn_c_try_compile "$LINENO"; then :
  1684. eval "$3=yes"
  1685. else
  1686. eval "$3=no"
  1687. fi
  1688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1689. fi
  1690. eval ac_res=\$$3
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1692. $as_echo "$ac_res" >&6; }
  1693. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1694. } # ac_fn_c_check_header_compile
  1695. # ac_fn_c_try_cpp LINENO
  1696. # ----------------------
  1697. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1698. ac_fn_c_try_cpp ()
  1699. {
  1700. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1701. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1702. case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1709. ac_status=$?
  1710. if test -s conftest.err; then
  1711. grep -v '^ *+' conftest.err >conftest.er1
  1712. cat conftest.er1 >&5
  1713. mv -f conftest.er1 conftest.err
  1714. fi
  1715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1716. test $ac_status = 0; } > conftest.i && {
  1717. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1718. test ! -s conftest.err
  1719. }; then :
  1720. ac_retval=0
  1721. else
  1722. $as_echo "$as_me: failed program was:" >&5
  1723. sed 's/^/| /' conftest.$ac_ext >&5
  1724. ac_retval=1
  1725. fi
  1726. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1727. as_fn_set_status $ac_retval
  1728. } # ac_fn_c_try_cpp
  1729. # ac_fn_c_try_run LINENO
  1730. # ----------------------
  1731. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1732. # that executables *can* be run.
  1733. ac_fn_c_try_run ()
  1734. {
  1735. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1736. if { { ac_try="$ac_link"
  1737. case "(($ac_try" in
  1738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1739. *) ac_try_echo=$ac_try;;
  1740. esac
  1741. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1742. $as_echo "$ac_try_echo"; } >&5
  1743. (eval "$ac_link") 2>&5
  1744. ac_status=$?
  1745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1746. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  1754. ac_status=$?
  1755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1756. test $ac_status = 0; }; }; then :
  1757. ac_retval=0
  1758. else
  1759. $as_echo "$as_me: program exited with status $ac_status" >&5
  1760. $as_echo "$as_me: failed program was:" >&5
  1761. sed 's/^/| /' conftest.$ac_ext >&5
  1762. ac_retval=$ac_status
  1763. fi
  1764. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1765. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1766. as_fn_set_status $ac_retval
  1767. } # ac_fn_c_try_run
  1768. # ac_fn_c_check_func LINENO FUNC VAR
  1769. # ----------------------------------
  1770. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1771. ac_fn_c_check_func ()
  1772. {
  1773. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1775. $as_echo_n "checking for $2... " >&6; }
  1776. if eval \${$3+:} false; then :
  1777. $as_echo_n "(cached) " >&6
  1778. else
  1779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1780. /* end confdefs.h. */
  1781. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1782. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1783. #define $2 innocuous_$2
  1784. /* System header to define __stub macros and hopefully few prototypes,
  1785. which can conflict with char $2 (); below.
  1786. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1787. <limits.h> exists even on freestanding compilers. */
  1788. #ifdef __STDC__
  1789. # include <limits.h>
  1790. #else
  1791. # include <assert.h>
  1792. #endif
  1793. #undef $2
  1794. /* Override any GCC internal prototype to avoid an error.
  1795. Use char because int might match the return type of a GCC
  1796. builtin and then its argument prototype would still apply. */
  1797. #ifdef __cplusplus
  1798. extern "C"
  1799. #endif
  1800. char $2 ();
  1801. /* The GNU C library defines this for functions which it implements
  1802. to always fail with ENOSYS. Some functions are actually named
  1803. something starting with __ and the normal name is an alias. */
  1804. #if defined __stub_$2 || defined __stub___$2
  1805. choke me
  1806. #endif
  1807. int
  1808. main ()
  1809. {
  1810. return $2 ();
  1811. ;
  1812. return 0;
  1813. }
  1814. _ACEOF
  1815. if ac_fn_c_try_link "$LINENO"; then :
  1816. eval "$3=yes"
  1817. else
  1818. eval "$3=no"
  1819. fi
  1820. rm -f core conftest.err conftest.$ac_objext \
  1821. conftest$ac_exeext conftest.$ac_ext
  1822. fi
  1823. eval ac_res=\$$3
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1825. $as_echo "$ac_res" >&6; }
  1826. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1827. } # ac_fn_c_check_func
  1828. # ac_fn_cxx_try_compile LINENO
  1829. # ----------------------------
  1830. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1831. ac_fn_cxx_try_compile ()
  1832. {
  1833. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1834. rm -f conftest.$ac_objext
  1835. if { { ac_try="$ac_compile"
  1836. case "(($ac_try" in
  1837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1838. *) ac_try_echo=$ac_try;;
  1839. esac
  1840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1841. $as_echo "$ac_try_echo"; } >&5
  1842. (eval "$ac_compile") 2>conftest.err
  1843. ac_status=$?
  1844. if test -s conftest.err; then
  1845. grep -v '^ *+' conftest.err >conftest.er1
  1846. cat conftest.er1 >&5
  1847. mv -f conftest.er1 conftest.err
  1848. fi
  1849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1850. test $ac_status = 0; } && {
  1851. test -z "$ac_cxx_werror_flag" ||
  1852. test ! -s conftest.err
  1853. } && test -s conftest.$ac_objext; then :
  1854. ac_retval=0
  1855. else
  1856. $as_echo "$as_me: failed program was:" >&5
  1857. sed 's/^/| /' conftest.$ac_ext >&5
  1858. ac_retval=1
  1859. fi
  1860. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1861. as_fn_set_status $ac_retval
  1862. } # ac_fn_cxx_try_compile
  1863. # ac_fn_cxx_try_cpp LINENO
  1864. # ------------------------
  1865. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1866. ac_fn_cxx_try_cpp ()
  1867. {
  1868. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1869. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1870. case "(($ac_try" in
  1871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1872. *) ac_try_echo=$ac_try;;
  1873. esac
  1874. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1875. $as_echo "$ac_try_echo"; } >&5
  1876. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1877. ac_status=$?
  1878. if test -s conftest.err; then
  1879. grep -v '^ *+' conftest.err >conftest.er1
  1880. cat conftest.er1 >&5
  1881. mv -f conftest.er1 conftest.err
  1882. fi
  1883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1884. test $ac_status = 0; } > conftest.i && {
  1885. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1886. test ! -s conftest.err
  1887. }; then :
  1888. ac_retval=0
  1889. else
  1890. $as_echo "$as_me: failed program was:" >&5
  1891. sed 's/^/| /' conftest.$ac_ext >&5
  1892. ac_retval=1
  1893. fi
  1894. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1895. as_fn_set_status $ac_retval
  1896. } # ac_fn_cxx_try_cpp
  1897. # ac_fn_cxx_try_link LINENO
  1898. # -------------------------
  1899. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1900. ac_fn_cxx_try_link ()
  1901. {
  1902. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1903. rm -f conftest.$ac_objext conftest$ac_exeext
  1904. if { { ac_try="$ac_link"
  1905. case "(($ac_try" in
  1906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1907. *) ac_try_echo=$ac_try;;
  1908. esac
  1909. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1910. $as_echo "$ac_try_echo"; } >&5
  1911. (eval "$ac_link") 2>conftest.err
  1912. ac_status=$?
  1913. if test -s conftest.err; then
  1914. grep -v '^ *+' conftest.err >conftest.er1
  1915. cat conftest.er1 >&5
  1916. mv -f conftest.er1 conftest.err
  1917. fi
  1918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1919. test $ac_status = 0; } && {
  1920. test -z "$ac_cxx_werror_flag" ||
  1921. test ! -s conftest.err
  1922. } && test -s conftest$ac_exeext && {
  1923. test "$cross_compiling" = yes ||
  1924. test -x conftest$ac_exeext
  1925. }; then :
  1926. ac_retval=0
  1927. else
  1928. $as_echo "$as_me: failed program was:" >&5
  1929. sed 's/^/| /' conftest.$ac_ext >&5
  1930. ac_retval=1
  1931. fi
  1932. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1933. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1934. # interfere with the next link command; also delete a directory that is
  1935. # left behind by Apple's compiler. We do this before executing the actions.
  1936. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1937. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1938. as_fn_set_status $ac_retval
  1939. } # ac_fn_cxx_try_link
  1940. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1941. # -------------------------------------------------------
  1942. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1943. # the include files in INCLUDES and setting the cache variable VAR
  1944. # accordingly.
  1945. ac_fn_c_check_header_mongrel ()
  1946. {
  1947. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1948. if eval \${$3+:} false; then :
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1950. $as_echo_n "checking for $2... " >&6; }
  1951. if eval \${$3+:} false; then :
  1952. $as_echo_n "(cached) " >&6
  1953. fi
  1954. eval ac_res=\$$3
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1956. $as_echo "$ac_res" >&6; }
  1957. else
  1958. # Is the header compilable?
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1960. $as_echo_n "checking $2 usability... " >&6; }
  1961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1962. /* end confdefs.h. */
  1963. $4
  1964. #include <$2>
  1965. _ACEOF
  1966. if ac_fn_c_try_compile "$LINENO"; then :
  1967. ac_header_compiler=yes
  1968. else
  1969. ac_header_compiler=no
  1970. fi
  1971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1973. $as_echo "$ac_header_compiler" >&6; }
  1974. # Is the header present?
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1976. $as_echo_n "checking $2 presence... " >&6; }
  1977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1978. /* end confdefs.h. */
  1979. #include <$2>
  1980. _ACEOF
  1981. if ac_fn_c_try_cpp "$LINENO"; then :
  1982. ac_header_preproc=yes
  1983. else
  1984. ac_header_preproc=no
  1985. fi
  1986. rm -f conftest.err conftest.i conftest.$ac_ext
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1988. $as_echo "$ac_header_preproc" >&6; }
  1989. # So? What about this header?
  1990. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1991. yes:no: )
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1993. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1995. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1996. ;;
  1997. no:yes:* )
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1999. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2001. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2003. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2005. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2007. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2008. ;;
  2009. esac
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2011. $as_echo_n "checking for $2... " >&6; }
  2012. if eval \${$3+:} false; then :
  2013. $as_echo_n "(cached) " >&6
  2014. else
  2015. eval "$3=\$ac_header_compiler"
  2016. fi
  2017. eval ac_res=\$$3
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2019. $as_echo "$ac_res" >&6; }
  2020. fi
  2021. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2022. } # ac_fn_c_check_header_mongrel
  2023. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2024. # -------------------------------------------
  2025. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2026. # variable VAR accordingly.
  2027. ac_fn_c_check_type ()
  2028. {
  2029. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2031. $as_echo_n "checking for $2... " >&6; }
  2032. if eval \${$3+:} false; then :
  2033. $as_echo_n "(cached) " >&6
  2034. else
  2035. eval "$3=no"
  2036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2037. /* end confdefs.h. */
  2038. $4
  2039. int
  2040. main ()
  2041. {
  2042. if (sizeof ($2))
  2043. return 0;
  2044. ;
  2045. return 0;
  2046. }
  2047. _ACEOF
  2048. if ac_fn_c_try_compile "$LINENO"; then :
  2049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2050. /* end confdefs.h. */
  2051. $4
  2052. int
  2053. main ()
  2054. {
  2055. if (sizeof (($2)))
  2056. return 0;
  2057. ;
  2058. return 0;
  2059. }
  2060. _ACEOF
  2061. if ac_fn_c_try_compile "$LINENO"; then :
  2062. else
  2063. eval "$3=yes"
  2064. fi
  2065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2066. fi
  2067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2068. fi
  2069. eval ac_res=\$$3
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2071. $as_echo "$ac_res" >&6; }
  2072. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2073. } # ac_fn_c_check_type
  2074. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2075. # ----------------------------------------------------
  2076. # Tries to find if the field MEMBER exists in type AGGR, after including
  2077. # INCLUDES, setting cache variable VAR accordingly.
  2078. ac_fn_c_check_member ()
  2079. {
  2080. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2082. $as_echo_n "checking for $2.$3... " >&6; }
  2083. if eval \${$4+:} false; then :
  2084. $as_echo_n "(cached) " >&6
  2085. else
  2086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2087. /* end confdefs.h. */
  2088. $5
  2089. int
  2090. main ()
  2091. {
  2092. static $2 ac_aggr;
  2093. if (ac_aggr.$3)
  2094. return 0;
  2095. ;
  2096. return 0;
  2097. }
  2098. _ACEOF
  2099. if ac_fn_c_try_compile "$LINENO"; then :
  2100. eval "$4=yes"
  2101. else
  2102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2103. /* end confdefs.h. */
  2104. $5
  2105. int
  2106. main ()
  2107. {
  2108. static $2 ac_aggr;
  2109. if (sizeof ac_aggr.$3)
  2110. return 0;
  2111. ;
  2112. return 0;
  2113. }
  2114. _ACEOF
  2115. if ac_fn_c_try_compile "$LINENO"; then :
  2116. eval "$4=yes"
  2117. else
  2118. eval "$4=no"
  2119. fi
  2120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2121. fi
  2122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2123. fi
  2124. eval ac_res=\$$4
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2126. $as_echo "$ac_res" >&6; }
  2127. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2128. } # ac_fn_c_check_member
  2129. cat >config.log <<_ACEOF
  2130. This file contains any messages produced by compilers while
  2131. running configure, to aid debugging if configure makes a mistake.
  2132. It was created by $as_me, which was
  2133. generated by GNU Autoconf 2.69. Invocation command line was
  2134. $ $0 $@
  2135. _ACEOF
  2136. exec 5>>config.log
  2137. {
  2138. cat <<_ASUNAME
  2139. ## --------- ##
  2140. ## Platform. ##
  2141. ## --------- ##
  2142. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2143. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2144. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2145. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2146. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2147. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2148. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2149. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2150. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2151. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2152. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2153. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2154. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2155. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2156. _ASUNAME
  2157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2158. for as_dir in $PATH
  2159. do
  2160. IFS=$as_save_IFS
  2161. test -z "$as_dir" && as_dir=.
  2162. $as_echo "PATH: $as_dir"
  2163. done
  2164. IFS=$as_save_IFS
  2165. } >&5
  2166. cat >&5 <<_ACEOF
  2167. ## ----------- ##
  2168. ## Core tests. ##
  2169. ## ----------- ##
  2170. _ACEOF
  2171. # Keep a trace of the command line.
  2172. # Strip out --no-create and --no-recursion so they do not pile up.
  2173. # Strip out --silent because we don't want to record it for future runs.
  2174. # Also quote any args containing shell meta-characters.
  2175. # Make two passes to allow for proper duplicate-argument suppression.
  2176. ac_configure_args=
  2177. ac_configure_args0=
  2178. ac_configure_args1=
  2179. ac_must_keep_next=false
  2180. for ac_pass in 1 2
  2181. do
  2182. for ac_arg
  2183. do
  2184. case $ac_arg in
  2185. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2186. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2187. | -silent | --silent | --silen | --sile | --sil)
  2188. continue ;;
  2189. *\'*)
  2190. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2191. esac
  2192. case $ac_pass in
  2193. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2194. 2)
  2195. as_fn_append ac_configure_args1 " '$ac_arg'"
  2196. if test $ac_must_keep_next = true; then
  2197. ac_must_keep_next=false # Got value, back to normal.
  2198. else
  2199. case $ac_arg in
  2200. *=* | --config-cache | -C | -disable-* | --disable-* \
  2201. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2202. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2203. | -with-* | --with-* | -without-* | --without-* | --x)
  2204. case "$ac_configure_args0 " in
  2205. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2206. esac
  2207. ;;
  2208. -* ) ac_must_keep_next=true ;;
  2209. esac
  2210. fi
  2211. as_fn_append ac_configure_args " '$ac_arg'"
  2212. ;;
  2213. esac
  2214. done
  2215. done
  2216. { ac_configure_args0=; unset ac_configure_args0;}
  2217. { ac_configure_args1=; unset ac_configure_args1;}
  2218. # When interrupted or exit'd, cleanup temporary files, and complete
  2219. # config.log. We remove comments because anyway the quotes in there
  2220. # would cause problems or look ugly.
  2221. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2222. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2223. trap 'exit_status=$?
  2224. # Save into config.log some information that might help in debugging.
  2225. {
  2226. echo
  2227. $as_echo "## ---------------- ##
  2228. ## Cache variables. ##
  2229. ## ---------------- ##"
  2230. echo
  2231. # The following way of writing the cache mishandles newlines in values,
  2232. (
  2233. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2234. eval ac_val=\$$ac_var
  2235. case $ac_val in #(
  2236. *${as_nl}*)
  2237. case $ac_var in #(
  2238. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2239. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2240. esac
  2241. case $ac_var in #(
  2242. _ | IFS | as_nl) ;; #(
  2243. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2244. *) { eval $ac_var=; unset $ac_var;} ;;
  2245. esac ;;
  2246. esac
  2247. done
  2248. (set) 2>&1 |
  2249. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2250. *${as_nl}ac_space=\ *)
  2251. sed -n \
  2252. "s/'\''/'\''\\\\'\'''\''/g;
  2253. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2254. ;; #(
  2255. *)
  2256. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2257. ;;
  2258. esac |
  2259. sort
  2260. )
  2261. echo
  2262. $as_echo "## ----------------- ##
  2263. ## Output variables. ##
  2264. ## ----------------- ##"
  2265. echo
  2266. for ac_var in $ac_subst_vars
  2267. do
  2268. eval ac_val=\$$ac_var
  2269. case $ac_val in
  2270. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2271. esac
  2272. $as_echo "$ac_var='\''$ac_val'\''"
  2273. done | sort
  2274. echo
  2275. if test -n "$ac_subst_files"; then
  2276. $as_echo "## ------------------- ##
  2277. ## File substitutions. ##
  2278. ## ------------------- ##"
  2279. echo
  2280. for ac_var in $ac_subst_files
  2281. do
  2282. eval ac_val=\$$ac_var
  2283. case $ac_val in
  2284. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2285. esac
  2286. $as_echo "$ac_var='\''$ac_val'\''"
  2287. done | sort
  2288. echo
  2289. fi
  2290. if test -s confdefs.h; then
  2291. $as_echo "## ----------- ##
  2292. ## confdefs.h. ##
  2293. ## ----------- ##"
  2294. echo
  2295. cat confdefs.h
  2296. echo
  2297. fi
  2298. test "$ac_signal" != 0 &&
  2299. $as_echo "$as_me: caught signal $ac_signal"
  2300. $as_echo "$as_me: exit $exit_status"
  2301. } >&5
  2302. rm -f core *.core core.conftest.* &&
  2303. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2304. exit $exit_status
  2305. ' 0
  2306. for ac_signal in 1 2 13 15; do
  2307. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2308. done
  2309. ac_signal=0
  2310. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2311. rm -f -r conftest* confdefs.h
  2312. $as_echo "/* confdefs.h */" > confdefs.h
  2313. # Predefined preprocessor variables.
  2314. cat >>confdefs.h <<_ACEOF
  2315. #define PACKAGE_NAME "$PACKAGE_NAME"
  2316. _ACEOF
  2317. cat >>confdefs.h <<_ACEOF
  2318. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2319. _ACEOF
  2320. cat >>confdefs.h <<_ACEOF
  2321. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2322. _ACEOF
  2323. cat >>confdefs.h <<_ACEOF
  2324. #define PACKAGE_STRING "$PACKAGE_STRING"
  2325. _ACEOF
  2326. cat >>confdefs.h <<_ACEOF
  2327. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2328. _ACEOF
  2329. cat >>confdefs.h <<_ACEOF
  2330. #define PACKAGE_URL "$PACKAGE_URL"
  2331. _ACEOF
  2332. # Let the site file select an alternate cache file if it wants to.
  2333. # Prefer an explicitly selected file to automatically selected ones.
  2334. ac_site_file1=NONE
  2335. ac_site_file2=NONE
  2336. if test -n "$CONFIG_SITE"; then
  2337. # We do not want a PATH search for config.site.
  2338. case $CONFIG_SITE in #((
  2339. -*) ac_site_file1=./$CONFIG_SITE;;
  2340. */*) ac_site_file1=$CONFIG_SITE;;
  2341. *) ac_site_file1=./$CONFIG_SITE;;
  2342. esac
  2343. elif test "x$prefix" != xNONE; then
  2344. ac_site_file1=$prefix/share/config.site
  2345. ac_site_file2=$prefix/etc/config.site
  2346. else
  2347. ac_site_file1=$ac_default_prefix/share/config.site
  2348. ac_site_file2=$ac_default_prefix/etc/config.site
  2349. fi
  2350. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2351. do
  2352. test "x$ac_site_file" = xNONE && continue
  2353. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2355. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2356. sed 's/^/| /' "$ac_site_file" >&5
  2357. . "$ac_site_file" \
  2358. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2359. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2360. as_fn_error $? "failed to load site script $ac_site_file
  2361. See \`config.log' for more details" "$LINENO" 5; }
  2362. fi
  2363. done
  2364. if test -r "$cache_file"; then
  2365. # Some versions of bash will fail to source /dev/null (special files
  2366. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2367. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2369. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2370. case $cache_file in
  2371. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2372. *) . "./$cache_file";;
  2373. esac
  2374. fi
  2375. else
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2377. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2378. >$cache_file
  2379. fi
  2380. # Check that the precious variables saved in the cache have kept the same
  2381. # value.
  2382. ac_cache_corrupted=false
  2383. for ac_var in $ac_precious_vars; do
  2384. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2385. eval ac_new_set=\$ac_env_${ac_var}_set
  2386. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2387. eval ac_new_val=\$ac_env_${ac_var}_value
  2388. case $ac_old_set,$ac_new_set in
  2389. set,)
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2391. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2392. ac_cache_corrupted=: ;;
  2393. ,set)
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2395. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2396. ac_cache_corrupted=: ;;
  2397. ,);;
  2398. *)
  2399. if test "x$ac_old_val" != "x$ac_new_val"; then
  2400. # differences in whitespace do not lead to failure.
  2401. ac_old_val_w=`echo x $ac_old_val`
  2402. ac_new_val_w=`echo x $ac_new_val`
  2403. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2405. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2406. ac_cache_corrupted=:
  2407. else
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2409. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2410. eval $ac_var=\$ac_old_val
  2411. fi
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2413. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2415. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2416. fi;;
  2417. esac
  2418. # Pass precious variables to config.status.
  2419. if test "$ac_new_set" = set; then
  2420. case $ac_new_val in
  2421. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2422. *) ac_arg=$ac_var=$ac_new_val ;;
  2423. esac
  2424. case " $ac_configure_args " in
  2425. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2426. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2427. esac
  2428. fi
  2429. done
  2430. if $ac_cache_corrupted; then
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2432. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2434. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2435. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2436. fi
  2437. ## -------------------- ##
  2438. ## Main body of script. ##
  2439. ## -------------------- ##
  2440. ac_ext=c
  2441. ac_cpp='$CPP $CPPFLAGS'
  2442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2445. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2446. ac_aux_dir=
  2447. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2448. if test -f "$ac_dir/install-sh"; then
  2449. ac_aux_dir=$ac_dir
  2450. ac_install_sh="$ac_aux_dir/install-sh -c"
  2451. break
  2452. elif test -f "$ac_dir/install.sh"; then
  2453. ac_aux_dir=$ac_dir
  2454. ac_install_sh="$ac_aux_dir/install.sh -c"
  2455. break
  2456. elif test -f "$ac_dir/shtool"; then
  2457. ac_aux_dir=$ac_dir
  2458. ac_install_sh="$ac_aux_dir/shtool install -c"
  2459. break
  2460. fi
  2461. done
  2462. if test -z "$ac_aux_dir"; then
  2463. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2464. fi
  2465. # These three variables are undocumented and unsupported,
  2466. # and are intended to be withdrawn in a future Autoconf release.
  2467. # They can cause serious problems if a builder's source tree is in a directory
  2468. # whose full name contains unusual characters.
  2469. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2470. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2471. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2472. orig_CFLAGS="$CFLAGS"
  2473. #
  2474. # Making releases:
  2475. # Edit include/SDL_version.h and change the version, then:
  2476. # SDL_MICRO_VERSION += 1;
  2477. # SDL_INTERFACE_AGE += 1;
  2478. # SDL_BINARY_AGE += 1;
  2479. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2480. # if backwards compatibility has been broken,
  2481. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2482. #
  2483. SDL_MAJOR_VERSION=2
  2484. SDL_MINOR_VERSION=0
  2485. SDL_MICRO_VERSION=7
  2486. SDL_INTERFACE_AGE=0
  2487. SDL_BINARY_AGE=7
  2488. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2489. # libtool versioning
  2490. case `pwd` in
  2491. *\ * | *\ *)
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2493. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2494. esac
  2495. macro_version='2.4.2'
  2496. macro_revision='1.3337'
  2497. ltmain="$ac_aux_dir/ltmain.sh"
  2498. # Make sure we can run config.sub.
  2499. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2500. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2502. $as_echo_n "checking build system type... " >&6; }
  2503. if ${ac_cv_build+:} false; then :
  2504. $as_echo_n "(cached) " >&6
  2505. else
  2506. ac_build_alias=$build_alias
  2507. test "x$ac_build_alias" = x &&
  2508. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2509. test "x$ac_build_alias" = x &&
  2510. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2511. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2512. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2513. fi
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2515. $as_echo "$ac_cv_build" >&6; }
  2516. case $ac_cv_build in
  2517. *-*-*) ;;
  2518. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2519. esac
  2520. build=$ac_cv_build
  2521. ac_save_IFS=$IFS; IFS='-'
  2522. set x $ac_cv_build
  2523. shift
  2524. build_cpu=$1
  2525. build_vendor=$2
  2526. shift; shift
  2527. # Remember, the first character of IFS is used to create $*,
  2528. # except with old shells:
  2529. build_os=$*
  2530. IFS=$ac_save_IFS
  2531. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2533. $as_echo_n "checking host system type... " >&6; }
  2534. if ${ac_cv_host+:} false; then :
  2535. $as_echo_n "(cached) " >&6
  2536. else
  2537. if test "x$host_alias" = x; then
  2538. ac_cv_host=$ac_cv_build
  2539. else
  2540. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2541. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2542. fi
  2543. fi
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2545. $as_echo "$ac_cv_host" >&6; }
  2546. case $ac_cv_host in
  2547. *-*-*) ;;
  2548. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2549. esac
  2550. host=$ac_cv_host
  2551. ac_save_IFS=$IFS; IFS='-'
  2552. set x $ac_cv_host
  2553. shift
  2554. host_cpu=$1
  2555. host_vendor=$2
  2556. shift; shift
  2557. # Remember, the first character of IFS is used to create $*,
  2558. # except with old shells:
  2559. host_os=$*
  2560. IFS=$ac_save_IFS
  2561. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2562. # Backslashify metacharacters that are still active within
  2563. # double-quoted strings.
  2564. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2565. # Same as above, but do not quote variable references.
  2566. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2567. # Sed substitution to delay expansion of an escaped shell variable in a
  2568. # double_quote_subst'ed string.
  2569. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2570. # Sed substitution to delay expansion of an escaped single quote.
  2571. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2572. # Sed substitution to avoid accidental globbing in evaled expressions
  2573. no_glob_subst='s/\*/\\\*/g'
  2574. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2575. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2576. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2578. $as_echo_n "checking how to print strings... " >&6; }
  2579. # Test print first, because it will be a builtin if present.
  2580. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2581. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2582. ECHO='print -r --'
  2583. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2584. ECHO='printf %s\n'
  2585. else
  2586. # Use this function as a fallback that always works.
  2587. func_fallback_echo ()
  2588. {
  2589. eval 'cat <<_LTECHO_EOF
  2590. $1
  2591. _LTECHO_EOF'
  2592. }
  2593. ECHO='func_fallback_echo'
  2594. fi
  2595. # func_echo_all arg...
  2596. # Invoke $ECHO with all args, space-separated.
  2597. func_echo_all ()
  2598. {
  2599. $ECHO ""
  2600. }
  2601. case "$ECHO" in
  2602. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2603. $as_echo "printf" >&6; } ;;
  2604. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2605. $as_echo "print -r" >&6; } ;;
  2606. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2607. $as_echo "cat" >&6; } ;;
  2608. esac
  2609. ac_ext=c
  2610. ac_cpp='$CPP $CPPFLAGS'
  2611. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2612. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2613. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2614. if test -n "$ac_tool_prefix"; then
  2615. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2616. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2618. $as_echo_n "checking for $ac_word... " >&6; }
  2619. if ${ac_cv_prog_CC+:} false; then :
  2620. $as_echo_n "(cached) " >&6
  2621. else
  2622. if test -n "$CC"; then
  2623. ac_cv_prog_CC="$CC" # Let the user override the test.
  2624. else
  2625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2626. for as_dir in $PATH
  2627. do
  2628. IFS=$as_save_IFS
  2629. test -z "$as_dir" && as_dir=.
  2630. for ac_exec_ext in '' $ac_executable_extensions; do
  2631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2632. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2634. break 2
  2635. fi
  2636. done
  2637. done
  2638. IFS=$as_save_IFS
  2639. fi
  2640. fi
  2641. CC=$ac_cv_prog_CC
  2642. if test -n "$CC"; then
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2644. $as_echo "$CC" >&6; }
  2645. else
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2647. $as_echo "no" >&6; }
  2648. fi
  2649. fi
  2650. if test -z "$ac_cv_prog_CC"; then
  2651. ac_ct_CC=$CC
  2652. # Extract the first word of "gcc", so it can be a program name with args.
  2653. set dummy gcc; ac_word=$2
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2655. $as_echo_n "checking for $ac_word... " >&6; }
  2656. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2657. $as_echo_n "(cached) " >&6
  2658. else
  2659. if test -n "$ac_ct_CC"; then
  2660. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2661. else
  2662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2663. for as_dir in $PATH
  2664. do
  2665. IFS=$as_save_IFS
  2666. test -z "$as_dir" && as_dir=.
  2667. for ac_exec_ext in '' $ac_executable_extensions; do
  2668. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2669. ac_cv_prog_ac_ct_CC="gcc"
  2670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2671. break 2
  2672. fi
  2673. done
  2674. done
  2675. IFS=$as_save_IFS
  2676. fi
  2677. fi
  2678. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2679. if test -n "$ac_ct_CC"; then
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2681. $as_echo "$ac_ct_CC" >&6; }
  2682. else
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2684. $as_echo "no" >&6; }
  2685. fi
  2686. if test "x$ac_ct_CC" = x; then
  2687. CC=""
  2688. else
  2689. case $cross_compiling:$ac_tool_warned in
  2690. yes:)
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2692. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2693. ac_tool_warned=yes ;;
  2694. esac
  2695. CC=$ac_ct_CC
  2696. fi
  2697. else
  2698. CC="$ac_cv_prog_CC"
  2699. fi
  2700. if test -z "$CC"; then
  2701. if test -n "$ac_tool_prefix"; then
  2702. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2703. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2705. $as_echo_n "checking for $ac_word... " >&6; }
  2706. if ${ac_cv_prog_CC+:} false; then :
  2707. $as_echo_n "(cached) " >&6
  2708. else
  2709. if test -n "$CC"; then
  2710. ac_cv_prog_CC="$CC" # Let the user override the test.
  2711. else
  2712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2713. for as_dir in $PATH
  2714. do
  2715. IFS=$as_save_IFS
  2716. test -z "$as_dir" && as_dir=.
  2717. for ac_exec_ext in '' $ac_executable_extensions; do
  2718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2719. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2721. break 2
  2722. fi
  2723. done
  2724. done
  2725. IFS=$as_save_IFS
  2726. fi
  2727. fi
  2728. CC=$ac_cv_prog_CC
  2729. if test -n "$CC"; then
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2731. $as_echo "$CC" >&6; }
  2732. else
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2734. $as_echo "no" >&6; }
  2735. fi
  2736. fi
  2737. fi
  2738. if test -z "$CC"; then
  2739. # Extract the first word of "cc", so it can be a program name with args.
  2740. set dummy cc; ac_word=$2
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2742. $as_echo_n "checking for $ac_word... " >&6; }
  2743. if ${ac_cv_prog_CC+:} false; then :
  2744. $as_echo_n "(cached) " >&6
  2745. else
  2746. if test -n "$CC"; then
  2747. ac_cv_prog_CC="$CC" # Let the user override the test.
  2748. else
  2749. ac_prog_rejected=no
  2750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2751. for as_dir in $PATH
  2752. do
  2753. IFS=$as_save_IFS
  2754. test -z "$as_dir" && as_dir=.
  2755. for ac_exec_ext in '' $ac_executable_extensions; do
  2756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2757. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2758. ac_prog_rejected=yes
  2759. continue
  2760. fi
  2761. ac_cv_prog_CC="cc"
  2762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2763. break 2
  2764. fi
  2765. done
  2766. done
  2767. IFS=$as_save_IFS
  2768. if test $ac_prog_rejected = yes; then
  2769. # We found a bogon in the path, so make sure we never use it.
  2770. set dummy $ac_cv_prog_CC
  2771. shift
  2772. if test $# != 0; then
  2773. # We chose a different compiler from the bogus one.
  2774. # However, it has the same basename, so the bogon will be chosen
  2775. # first if we set CC to just the basename; use the full file name.
  2776. shift
  2777. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2778. fi
  2779. fi
  2780. fi
  2781. fi
  2782. CC=$ac_cv_prog_CC
  2783. if test -n "$CC"; then
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2785. $as_echo "$CC" >&6; }
  2786. else
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2788. $as_echo "no" >&6; }
  2789. fi
  2790. fi
  2791. if test -z "$CC"; then
  2792. if test -n "$ac_tool_prefix"; then
  2793. for ac_prog in cl.exe
  2794. do
  2795. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2796. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2798. $as_echo_n "checking for $ac_word... " >&6; }
  2799. if ${ac_cv_prog_CC+:} false; then :
  2800. $as_echo_n "(cached) " >&6
  2801. else
  2802. if test -n "$CC"; then
  2803. ac_cv_prog_CC="$CC" # Let the user override the test.
  2804. else
  2805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2806. for as_dir in $PATH
  2807. do
  2808. IFS=$as_save_IFS
  2809. test -z "$as_dir" && as_dir=.
  2810. for ac_exec_ext in '' $ac_executable_extensions; do
  2811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2812. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2814. break 2
  2815. fi
  2816. done
  2817. done
  2818. IFS=$as_save_IFS
  2819. fi
  2820. fi
  2821. CC=$ac_cv_prog_CC
  2822. if test -n "$CC"; then
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2824. $as_echo "$CC" >&6; }
  2825. else
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2827. $as_echo "no" >&6; }
  2828. fi
  2829. test -n "$CC" && break
  2830. done
  2831. fi
  2832. if test -z "$CC"; then
  2833. ac_ct_CC=$CC
  2834. for ac_prog in cl.exe
  2835. do
  2836. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2837. set dummy $ac_prog; ac_word=$2
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2839. $as_echo_n "checking for $ac_word... " >&6; }
  2840. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2841. $as_echo_n "(cached) " >&6
  2842. else
  2843. if test -n "$ac_ct_CC"; then
  2844. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2845. else
  2846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2847. for as_dir in $PATH
  2848. do
  2849. IFS=$as_save_IFS
  2850. test -z "$as_dir" && as_dir=.
  2851. for ac_exec_ext in '' $ac_executable_extensions; do
  2852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2853. ac_cv_prog_ac_ct_CC="$ac_prog"
  2854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2855. break 2
  2856. fi
  2857. done
  2858. done
  2859. IFS=$as_save_IFS
  2860. fi
  2861. fi
  2862. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2863. if test -n "$ac_ct_CC"; then
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2865. $as_echo "$ac_ct_CC" >&6; }
  2866. else
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2868. $as_echo "no" >&6; }
  2869. fi
  2870. test -n "$ac_ct_CC" && break
  2871. done
  2872. if test "x$ac_ct_CC" = x; then
  2873. CC=""
  2874. else
  2875. case $cross_compiling:$ac_tool_warned in
  2876. yes:)
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2878. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2879. ac_tool_warned=yes ;;
  2880. esac
  2881. CC=$ac_ct_CC
  2882. fi
  2883. fi
  2884. fi
  2885. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2886. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2887. as_fn_error $? "no acceptable C compiler found in \$PATH
  2888. See \`config.log' for more details" "$LINENO" 5; }
  2889. # Provide some information about the compiler.
  2890. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2891. set X $ac_compile
  2892. ac_compiler=$2
  2893. for ac_option in --version -v -V -qversion; do
  2894. { { ac_try="$ac_compiler $ac_option >&5"
  2895. case "(($ac_try" in
  2896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2897. *) ac_try_echo=$ac_try;;
  2898. esac
  2899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2900. $as_echo "$ac_try_echo"; } >&5
  2901. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2902. ac_status=$?
  2903. if test -s conftest.err; then
  2904. sed '10a\
  2905. ... rest of stderr output deleted ...
  2906. 10q' conftest.err >conftest.er1
  2907. cat conftest.er1 >&5
  2908. fi
  2909. rm -f conftest.er1 conftest.err
  2910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2911. test $ac_status = 0; }
  2912. done
  2913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2914. /* end confdefs.h. */
  2915. int
  2916. main ()
  2917. {
  2918. ;
  2919. return 0;
  2920. }
  2921. _ACEOF
  2922. ac_clean_files_save=$ac_clean_files
  2923. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2924. # Try to create an executable without -o first, disregard a.out.
  2925. # It will help us diagnose broken compilers, and finding out an intuition
  2926. # of exeext.
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2928. $as_echo_n "checking whether the C compiler works... " >&6; }
  2929. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2930. # The possible output files:
  2931. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2932. ac_rmfiles=
  2933. for ac_file in $ac_files
  2934. do
  2935. case $ac_file in
  2936. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2937. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2938. esac
  2939. done
  2940. rm -f $ac_rmfiles
  2941. if { { ac_try="$ac_link_default"
  2942. case "(($ac_try" in
  2943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2944. *) ac_try_echo=$ac_try;;
  2945. esac
  2946. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2947. $as_echo "$ac_try_echo"; } >&5
  2948. (eval "$ac_link_default") 2>&5
  2949. ac_status=$?
  2950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2951. test $ac_status = 0; }; then :
  2952. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2953. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2954. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2955. # so that the user can short-circuit this test for compilers unknown to
  2956. # Autoconf.
  2957. for ac_file in $ac_files ''
  2958. do
  2959. test -f "$ac_file" || continue
  2960. case $ac_file in
  2961. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2962. ;;
  2963. [ab].out )
  2964. # We found the default executable, but exeext='' is most
  2965. # certainly right.
  2966. break;;
  2967. *.* )
  2968. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2969. then :; else
  2970. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2971. fi
  2972. # We set ac_cv_exeext here because the later test for it is not
  2973. # safe: cross compilers may not add the suffix if given an `-o'
  2974. # argument, so we may need to know it at that point already.
  2975. # Even if this section looks crufty: it has the advantage of
  2976. # actually working.
  2977. break;;
  2978. * )
  2979. break;;
  2980. esac
  2981. done
  2982. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2983. else
  2984. ac_file=''
  2985. fi
  2986. if test -z "$ac_file"; then :
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2988. $as_echo "no" >&6; }
  2989. $as_echo "$as_me: failed program was:" >&5
  2990. sed 's/^/| /' conftest.$ac_ext >&5
  2991. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2992. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2993. as_fn_error 77 "C compiler cannot create executables
  2994. See \`config.log' for more details" "$LINENO" 5; }
  2995. else
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2997. $as_echo "yes" >&6; }
  2998. fi
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3000. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3002. $as_echo "$ac_file" >&6; }
  3003. ac_exeext=$ac_cv_exeext
  3004. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3005. ac_clean_files=$ac_clean_files_save
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3007. $as_echo_n "checking for suffix of executables... " >&6; }
  3008. if { { ac_try="$ac_link"
  3009. case "(($ac_try" in
  3010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3011. *) ac_try_echo=$ac_try;;
  3012. esac
  3013. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3014. $as_echo "$ac_try_echo"; } >&5
  3015. (eval "$ac_link") 2>&5
  3016. ac_status=$?
  3017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3018. test $ac_status = 0; }; then :
  3019. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3020. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3021. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3022. # `rm'.
  3023. for ac_file in conftest.exe conftest conftest.*; do
  3024. test -f "$ac_file" || continue
  3025. case $ac_file in
  3026. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3027. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3028. break;;
  3029. * ) break;;
  3030. esac
  3031. done
  3032. else
  3033. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3035. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3036. See \`config.log' for more details" "$LINENO" 5; }
  3037. fi
  3038. rm -f conftest conftest$ac_cv_exeext
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3040. $as_echo "$ac_cv_exeext" >&6; }
  3041. rm -f conftest.$ac_ext
  3042. EXEEXT=$ac_cv_exeext
  3043. ac_exeext=$EXEEXT
  3044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3045. /* end confdefs.h. */
  3046. #include <stdio.h>
  3047. int
  3048. main ()
  3049. {
  3050. FILE *f = fopen ("conftest.out", "w");
  3051. return ferror (f) || fclose (f) != 0;
  3052. ;
  3053. return 0;
  3054. }
  3055. _ACEOF
  3056. ac_clean_files="$ac_clean_files conftest.out"
  3057. # Check that the compiler produces executables we can run. If not, either
  3058. # the compiler is broken, or we cross compile.
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3060. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3061. if test "$cross_compiling" != yes; then
  3062. { { ac_try="$ac_link"
  3063. case "(($ac_try" in
  3064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3065. *) ac_try_echo=$ac_try;;
  3066. esac
  3067. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3068. $as_echo "$ac_try_echo"; } >&5
  3069. (eval "$ac_link") 2>&5
  3070. ac_status=$?
  3071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3072. test $ac_status = 0; }
  3073. if { ac_try='./conftest$ac_cv_exeext'
  3074. { { case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3079. $as_echo "$ac_try_echo"; } >&5
  3080. (eval "$ac_try") 2>&5
  3081. ac_status=$?
  3082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3083. test $ac_status = 0; }; }; then
  3084. cross_compiling=no
  3085. else
  3086. if test "$cross_compiling" = maybe; then
  3087. cross_compiling=yes
  3088. else
  3089. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3090. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3091. as_fn_error $? "cannot run C compiled programs.
  3092. If you meant to cross compile, use \`--host'.
  3093. See \`config.log' for more details" "$LINENO" 5; }
  3094. fi
  3095. fi
  3096. fi
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3098. $as_echo "$cross_compiling" >&6; }
  3099. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3100. ac_clean_files=$ac_clean_files_save
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3102. $as_echo_n "checking for suffix of object files... " >&6; }
  3103. if ${ac_cv_objext+:} false; then :
  3104. $as_echo_n "(cached) " >&6
  3105. else
  3106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3107. /* end confdefs.h. */
  3108. int
  3109. main ()
  3110. {
  3111. ;
  3112. return 0;
  3113. }
  3114. _ACEOF
  3115. rm -f conftest.o conftest.obj
  3116. if { { ac_try="$ac_compile"
  3117. case "(($ac_try" in
  3118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3119. *) ac_try_echo=$ac_try;;
  3120. esac
  3121. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3122. $as_echo "$ac_try_echo"; } >&5
  3123. (eval "$ac_compile") 2>&5
  3124. ac_status=$?
  3125. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3126. test $ac_status = 0; }; then :
  3127. for ac_file in conftest.o conftest.obj conftest.*; do
  3128. test -f "$ac_file" || continue;
  3129. case $ac_file in
  3130. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3131. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3132. break;;
  3133. esac
  3134. done
  3135. else
  3136. $as_echo "$as_me: failed program was:" >&5
  3137. sed 's/^/| /' conftest.$ac_ext >&5
  3138. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3139. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3140. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3141. See \`config.log' for more details" "$LINENO" 5; }
  3142. fi
  3143. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3144. fi
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3146. $as_echo "$ac_cv_objext" >&6; }
  3147. OBJEXT=$ac_cv_objext
  3148. ac_objext=$OBJEXT
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3150. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3151. if ${ac_cv_c_compiler_gnu+:} false; then :
  3152. $as_echo_n "(cached) " >&6
  3153. else
  3154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3155. /* end confdefs.h. */
  3156. int
  3157. main ()
  3158. {
  3159. #ifndef __GNUC__
  3160. choke me
  3161. #endif
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. if ac_fn_c_try_compile "$LINENO"; then :
  3167. ac_compiler_gnu=yes
  3168. else
  3169. ac_compiler_gnu=no
  3170. fi
  3171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3172. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3173. fi
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3175. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3176. if test $ac_compiler_gnu = yes; then
  3177. GCC=yes
  3178. else
  3179. GCC=
  3180. fi
  3181. ac_test_CFLAGS=${CFLAGS+set}
  3182. ac_save_CFLAGS=$CFLAGS
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3184. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3185. if ${ac_cv_prog_cc_g+:} false; then :
  3186. $as_echo_n "(cached) " >&6
  3187. else
  3188. ac_save_c_werror_flag=$ac_c_werror_flag
  3189. ac_c_werror_flag=yes
  3190. ac_cv_prog_cc_g=no
  3191. CFLAGS="-g"
  3192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3193. /* end confdefs.h. */
  3194. int
  3195. main ()
  3196. {
  3197. ;
  3198. return 0;
  3199. }
  3200. _ACEOF
  3201. if ac_fn_c_try_compile "$LINENO"; then :
  3202. ac_cv_prog_cc_g=yes
  3203. else
  3204. CFLAGS=""
  3205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3206. /* end confdefs.h. */
  3207. int
  3208. main ()
  3209. {
  3210. ;
  3211. return 0;
  3212. }
  3213. _ACEOF
  3214. if ac_fn_c_try_compile "$LINENO"; then :
  3215. else
  3216. ac_c_werror_flag=$ac_save_c_werror_flag
  3217. CFLAGS="-g"
  3218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3219. /* end confdefs.h. */
  3220. int
  3221. main ()
  3222. {
  3223. ;
  3224. return 0;
  3225. }
  3226. _ACEOF
  3227. if ac_fn_c_try_compile "$LINENO"; then :
  3228. ac_cv_prog_cc_g=yes
  3229. fi
  3230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3231. fi
  3232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3233. fi
  3234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3235. ac_c_werror_flag=$ac_save_c_werror_flag
  3236. fi
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3238. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3239. if test "$ac_test_CFLAGS" = set; then
  3240. CFLAGS=$ac_save_CFLAGS
  3241. elif test $ac_cv_prog_cc_g = yes; then
  3242. if test "$GCC" = yes; then
  3243. CFLAGS="-g -O2"
  3244. else
  3245. CFLAGS="-g"
  3246. fi
  3247. else
  3248. if test "$GCC" = yes; then
  3249. CFLAGS="-O2"
  3250. else
  3251. CFLAGS=
  3252. fi
  3253. fi
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3255. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3256. if ${ac_cv_prog_cc_c89+:} false; then :
  3257. $as_echo_n "(cached) " >&6
  3258. else
  3259. ac_cv_prog_cc_c89=no
  3260. ac_save_CC=$CC
  3261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3262. /* end confdefs.h. */
  3263. #include <stdarg.h>
  3264. #include <stdio.h>
  3265. struct stat;
  3266. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3267. struct buf { int x; };
  3268. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3269. static char *e (p, i)
  3270. char **p;
  3271. int i;
  3272. {
  3273. return p[i];
  3274. }
  3275. static char *f (char * (*g) (char **, int), char **p, ...)
  3276. {
  3277. char *s;
  3278. va_list v;
  3279. va_start (v,p);
  3280. s = g (p, va_arg (v,int));
  3281. va_end (v);
  3282. return s;
  3283. }
  3284. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3285. function prototypes and stuff, but not '\xHH' hex character constants.
  3286. These don't provoke an error unfortunately, instead are silently treated
  3287. as 'x'. The following induces an error, until -std is added to get
  3288. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3289. array size at least. It's necessary to write '\x00'==0 to get something
  3290. that's true only with -std. */
  3291. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3292. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3293. inside strings and character constants. */
  3294. #define FOO(x) 'x'
  3295. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3296. int test (int i, double x);
  3297. struct s1 {int (*f) (int a);};
  3298. struct s2 {int (*f) (double a);};
  3299. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3300. int argc;
  3301. char **argv;
  3302. int
  3303. main ()
  3304. {
  3305. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3306. ;
  3307. return 0;
  3308. }
  3309. _ACEOF
  3310. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3311. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3312. do
  3313. CC="$ac_save_CC $ac_arg"
  3314. if ac_fn_c_try_compile "$LINENO"; then :
  3315. ac_cv_prog_cc_c89=$ac_arg
  3316. fi
  3317. rm -f core conftest.err conftest.$ac_objext
  3318. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3319. done
  3320. rm -f conftest.$ac_ext
  3321. CC=$ac_save_CC
  3322. fi
  3323. # AC_CACHE_VAL
  3324. case "x$ac_cv_prog_cc_c89" in
  3325. x)
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3327. $as_echo "none needed" >&6; } ;;
  3328. xno)
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3330. $as_echo "unsupported" >&6; } ;;
  3331. *)
  3332. CC="$CC $ac_cv_prog_cc_c89"
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3334. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3335. esac
  3336. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3337. fi
  3338. ac_ext=c
  3339. ac_cpp='$CPP $CPPFLAGS'
  3340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3344. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3345. if ${ac_cv_path_SED+:} false; then :
  3346. $as_echo_n "(cached) " >&6
  3347. else
  3348. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3349. for ac_i in 1 2 3 4 5 6 7; do
  3350. ac_script="$ac_script$as_nl$ac_script"
  3351. done
  3352. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3353. { ac_script=; unset ac_script;}
  3354. if test -z "$SED"; then
  3355. ac_path_SED_found=false
  3356. # Loop through the user's path and test for each of PROGNAME-LIST
  3357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3358. for as_dir in $PATH
  3359. do
  3360. IFS=$as_save_IFS
  3361. test -z "$as_dir" && as_dir=.
  3362. for ac_prog in sed gsed; do
  3363. for ac_exec_ext in '' $ac_executable_extensions; do
  3364. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3365. as_fn_executable_p "$ac_path_SED" || continue
  3366. # Check for GNU ac_path_SED and select it if it is found.
  3367. # Check for GNU $ac_path_SED
  3368. case `"$ac_path_SED" --version 2>&1` in
  3369. *GNU*)
  3370. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3371. *)
  3372. ac_count=0
  3373. $as_echo_n 0123456789 >"conftest.in"
  3374. while :
  3375. do
  3376. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3377. mv "conftest.tmp" "conftest.in"
  3378. cp "conftest.in" "conftest.nl"
  3379. $as_echo '' >> "conftest.nl"
  3380. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3381. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3382. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3383. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3384. # Best one so far, save it but keep looking for a better one
  3385. ac_cv_path_SED="$ac_path_SED"
  3386. ac_path_SED_max=$ac_count
  3387. fi
  3388. # 10*(2^10) chars as input seems more than enough
  3389. test $ac_count -gt 10 && break
  3390. done
  3391. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3392. esac
  3393. $ac_path_SED_found && break 3
  3394. done
  3395. done
  3396. done
  3397. IFS=$as_save_IFS
  3398. if test -z "$ac_cv_path_SED"; then
  3399. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3400. fi
  3401. else
  3402. ac_cv_path_SED=$SED
  3403. fi
  3404. fi
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3406. $as_echo "$ac_cv_path_SED" >&6; }
  3407. SED="$ac_cv_path_SED"
  3408. rm -f conftest.sed
  3409. test -z "$SED" && SED=sed
  3410. Xsed="$SED -e 1s/^X//"
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3412. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3413. if ${ac_cv_path_GREP+:} false; then :
  3414. $as_echo_n "(cached) " >&6
  3415. else
  3416. if test -z "$GREP"; then
  3417. ac_path_GREP_found=false
  3418. # Loop through the user's path and test for each of PROGNAME-LIST
  3419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3420. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3421. do
  3422. IFS=$as_save_IFS
  3423. test -z "$as_dir" && as_dir=.
  3424. for ac_prog in grep ggrep; do
  3425. for ac_exec_ext in '' $ac_executable_extensions; do
  3426. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3427. as_fn_executable_p "$ac_path_GREP" || continue
  3428. # Check for GNU ac_path_GREP and select it if it is found.
  3429. # Check for GNU $ac_path_GREP
  3430. case `"$ac_path_GREP" --version 2>&1` in
  3431. *GNU*)
  3432. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3433. *)
  3434. ac_count=0
  3435. $as_echo_n 0123456789 >"conftest.in"
  3436. while :
  3437. do
  3438. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3439. mv "conftest.tmp" "conftest.in"
  3440. cp "conftest.in" "conftest.nl"
  3441. $as_echo 'GREP' >> "conftest.nl"
  3442. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3443. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3444. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3445. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3446. # Best one so far, save it but keep looking for a better one
  3447. ac_cv_path_GREP="$ac_path_GREP"
  3448. ac_path_GREP_max=$ac_count
  3449. fi
  3450. # 10*(2^10) chars as input seems more than enough
  3451. test $ac_count -gt 10 && break
  3452. done
  3453. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3454. esac
  3455. $ac_path_GREP_found && break 3
  3456. done
  3457. done
  3458. done
  3459. IFS=$as_save_IFS
  3460. if test -z "$ac_cv_path_GREP"; then
  3461. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3462. fi
  3463. else
  3464. ac_cv_path_GREP=$GREP
  3465. fi
  3466. fi
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3468. $as_echo "$ac_cv_path_GREP" >&6; }
  3469. GREP="$ac_cv_path_GREP"
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3471. $as_echo_n "checking for egrep... " >&6; }
  3472. if ${ac_cv_path_EGREP+:} false; then :
  3473. $as_echo_n "(cached) " >&6
  3474. else
  3475. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3476. then ac_cv_path_EGREP="$GREP -E"
  3477. else
  3478. if test -z "$EGREP"; then
  3479. ac_path_EGREP_found=false
  3480. # Loop through the user's path and test for each of PROGNAME-LIST
  3481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3482. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3483. do
  3484. IFS=$as_save_IFS
  3485. test -z "$as_dir" && as_dir=.
  3486. for ac_prog in egrep; do
  3487. for ac_exec_ext in '' $ac_executable_extensions; do
  3488. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3489. as_fn_executable_p "$ac_path_EGREP" || continue
  3490. # Check for GNU ac_path_EGREP and select it if it is found.
  3491. # Check for GNU $ac_path_EGREP
  3492. case `"$ac_path_EGREP" --version 2>&1` in
  3493. *GNU*)
  3494. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3495. *)
  3496. ac_count=0
  3497. $as_echo_n 0123456789 >"conftest.in"
  3498. while :
  3499. do
  3500. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3501. mv "conftest.tmp" "conftest.in"
  3502. cp "conftest.in" "conftest.nl"
  3503. $as_echo 'EGREP' >> "conftest.nl"
  3504. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3505. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3506. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3507. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3508. # Best one so far, save it but keep looking for a better one
  3509. ac_cv_path_EGREP="$ac_path_EGREP"
  3510. ac_path_EGREP_max=$ac_count
  3511. fi
  3512. # 10*(2^10) chars as input seems more than enough
  3513. test $ac_count -gt 10 && break
  3514. done
  3515. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3516. esac
  3517. $ac_path_EGREP_found && break 3
  3518. done
  3519. done
  3520. done
  3521. IFS=$as_save_IFS
  3522. if test -z "$ac_cv_path_EGREP"; then
  3523. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3524. fi
  3525. else
  3526. ac_cv_path_EGREP=$EGREP
  3527. fi
  3528. fi
  3529. fi
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3531. $as_echo "$ac_cv_path_EGREP" >&6; }
  3532. EGREP="$ac_cv_path_EGREP"
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3534. $as_echo_n "checking for fgrep... " >&6; }
  3535. if ${ac_cv_path_FGREP+:} false; then :
  3536. $as_echo_n "(cached) " >&6
  3537. else
  3538. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3539. then ac_cv_path_FGREP="$GREP -F"
  3540. else
  3541. if test -z "$FGREP"; then
  3542. ac_path_FGREP_found=false
  3543. # Loop through the user's path and test for each of PROGNAME-LIST
  3544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3545. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3546. do
  3547. IFS=$as_save_IFS
  3548. test -z "$as_dir" && as_dir=.
  3549. for ac_prog in fgrep; do
  3550. for ac_exec_ext in '' $ac_executable_extensions; do
  3551. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3552. as_fn_executable_p "$ac_path_FGREP" || continue
  3553. # Check for GNU ac_path_FGREP and select it if it is found.
  3554. # Check for GNU $ac_path_FGREP
  3555. case `"$ac_path_FGREP" --version 2>&1` in
  3556. *GNU*)
  3557. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3558. *)
  3559. ac_count=0
  3560. $as_echo_n 0123456789 >"conftest.in"
  3561. while :
  3562. do
  3563. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3564. mv "conftest.tmp" "conftest.in"
  3565. cp "conftest.in" "conftest.nl"
  3566. $as_echo 'FGREP' >> "conftest.nl"
  3567. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3568. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3569. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3570. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3571. # Best one so far, save it but keep looking for a better one
  3572. ac_cv_path_FGREP="$ac_path_FGREP"
  3573. ac_path_FGREP_max=$ac_count
  3574. fi
  3575. # 10*(2^10) chars as input seems more than enough
  3576. test $ac_count -gt 10 && break
  3577. done
  3578. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3579. esac
  3580. $ac_path_FGREP_found && break 3
  3581. done
  3582. done
  3583. done
  3584. IFS=$as_save_IFS
  3585. if test -z "$ac_cv_path_FGREP"; then
  3586. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3587. fi
  3588. else
  3589. ac_cv_path_FGREP=$FGREP
  3590. fi
  3591. fi
  3592. fi
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3594. $as_echo "$ac_cv_path_FGREP" >&6; }
  3595. FGREP="$ac_cv_path_FGREP"
  3596. test -z "$GREP" && GREP=grep
  3597. # Check whether --with-gnu-ld was given.
  3598. if test "${with_gnu_ld+set}" = set; then :
  3599. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3600. else
  3601. with_gnu_ld=no
  3602. fi
  3603. ac_prog=ld
  3604. if test "$GCC" = yes; then
  3605. # Check if gcc -print-prog-name=ld gives a path.
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3607. $as_echo_n "checking for ld used by $CC... " >&6; }
  3608. case $host in
  3609. *-*-mingw*)
  3610. # gcc leaves a trailing carriage return which upsets mingw
  3611. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3612. *)
  3613. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3614. esac
  3615. case $ac_prog in
  3616. # Accept absolute paths.
  3617. [\\/]* | ?:[\\/]*)
  3618. re_direlt='/[^/][^/]*/\.\./'
  3619. # Canonicalize the pathname of ld
  3620. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3621. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3622. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3623. done
  3624. test -z "$LD" && LD="$ac_prog"
  3625. ;;
  3626. "")
  3627. # If it fails, then pretend we aren't using GCC.
  3628. ac_prog=ld
  3629. ;;
  3630. *)
  3631. # If it is relative, then search for the first ld in PATH.
  3632. with_gnu_ld=unknown
  3633. ;;
  3634. esac
  3635. elif test "$with_gnu_ld" = yes; then
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3637. $as_echo_n "checking for GNU ld... " >&6; }
  3638. else
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3640. $as_echo_n "checking for non-GNU ld... " >&6; }
  3641. fi
  3642. if ${lt_cv_path_LD+:} false; then :
  3643. $as_echo_n "(cached) " >&6
  3644. else
  3645. if test -z "$LD"; then
  3646. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3647. for ac_dir in $PATH; do
  3648. IFS="$lt_save_ifs"
  3649. test -z "$ac_dir" && ac_dir=.
  3650. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3651. lt_cv_path_LD="$ac_dir/$ac_prog"
  3652. # Check to see if the program is GNU ld. I'd rather use --version,
  3653. # but apparently some variants of GNU ld only accept -v.
  3654. # Break only if it was the GNU/non-GNU ld that we prefer.
  3655. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3656. *GNU* | *'with BFD'*)
  3657. test "$with_gnu_ld" != no && break
  3658. ;;
  3659. *)
  3660. test "$with_gnu_ld" != yes && break
  3661. ;;
  3662. esac
  3663. fi
  3664. done
  3665. IFS="$lt_save_ifs"
  3666. else
  3667. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3668. fi
  3669. fi
  3670. LD="$lt_cv_path_LD"
  3671. if test -n "$LD"; then
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3673. $as_echo "$LD" >&6; }
  3674. else
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3676. $as_echo "no" >&6; }
  3677. fi
  3678. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3680. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3681. if ${lt_cv_prog_gnu_ld+:} false; then :
  3682. $as_echo_n "(cached) " >&6
  3683. else
  3684. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3685. case `$LD -v 2>&1 </dev/null` in
  3686. *GNU* | *'with BFD'*)
  3687. lt_cv_prog_gnu_ld=yes
  3688. ;;
  3689. *)
  3690. lt_cv_prog_gnu_ld=no
  3691. ;;
  3692. esac
  3693. fi
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3695. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3696. with_gnu_ld=$lt_cv_prog_gnu_ld
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3698. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3699. if ${lt_cv_path_NM+:} false; then :
  3700. $as_echo_n "(cached) " >&6
  3701. else
  3702. if test -n "$NM"; then
  3703. # Let the user override the test.
  3704. lt_cv_path_NM="$NM"
  3705. else
  3706. lt_nm_to_check="${ac_tool_prefix}nm"
  3707. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3708. lt_nm_to_check="$lt_nm_to_check nm"
  3709. fi
  3710. for lt_tmp_nm in $lt_nm_to_check; do
  3711. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3712. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3713. IFS="$lt_save_ifs"
  3714. test -z "$ac_dir" && ac_dir=.
  3715. tmp_nm="$ac_dir/$lt_tmp_nm"
  3716. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3717. # Check to see if the nm accepts a BSD-compat flag.
  3718. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3719. # nm: unknown option "B" ignored
  3720. # Tru64's nm complains that /dev/null is an invalid object file
  3721. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3722. */dev/null* | *'Invalid file or object type'*)
  3723. lt_cv_path_NM="$tmp_nm -B"
  3724. break
  3725. ;;
  3726. *)
  3727. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3728. */dev/null*)
  3729. lt_cv_path_NM="$tmp_nm -p"
  3730. break
  3731. ;;
  3732. *)
  3733. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3734. continue # so that we can try to find one that supports BSD flags
  3735. ;;
  3736. esac
  3737. ;;
  3738. esac
  3739. fi
  3740. done
  3741. IFS="$lt_save_ifs"
  3742. done
  3743. : ${lt_cv_path_NM=no}
  3744. fi
  3745. fi
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3747. $as_echo "$lt_cv_path_NM" >&6; }
  3748. if test "$lt_cv_path_NM" != "no"; then
  3749. NM="$lt_cv_path_NM"
  3750. else
  3751. # Didn't find any BSD compatible name lister, look for dumpbin.
  3752. if test -n "$DUMPBIN"; then :
  3753. # Let the user override the test.
  3754. else
  3755. if test -n "$ac_tool_prefix"; then
  3756. for ac_prog in dumpbin "link -dump"
  3757. do
  3758. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3759. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3761. $as_echo_n "checking for $ac_word... " >&6; }
  3762. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3763. $as_echo_n "(cached) " >&6
  3764. else
  3765. if test -n "$DUMPBIN"; then
  3766. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3767. else
  3768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3769. for as_dir in $PATH
  3770. do
  3771. IFS=$as_save_IFS
  3772. test -z "$as_dir" && as_dir=.
  3773. for ac_exec_ext in '' $ac_executable_extensions; do
  3774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3775. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3777. break 2
  3778. fi
  3779. done
  3780. done
  3781. IFS=$as_save_IFS
  3782. fi
  3783. fi
  3784. DUMPBIN=$ac_cv_prog_DUMPBIN
  3785. if test -n "$DUMPBIN"; then
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3787. $as_echo "$DUMPBIN" >&6; }
  3788. else
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3790. $as_echo "no" >&6; }
  3791. fi
  3792. test -n "$DUMPBIN" && break
  3793. done
  3794. fi
  3795. if test -z "$DUMPBIN"; then
  3796. ac_ct_DUMPBIN=$DUMPBIN
  3797. for ac_prog in dumpbin "link -dump"
  3798. do
  3799. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3800. set dummy $ac_prog; ac_word=$2
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3802. $as_echo_n "checking for $ac_word... " >&6; }
  3803. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. if test -n "$ac_ct_DUMPBIN"; then
  3807. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3808. else
  3809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3810. for as_dir in $PATH
  3811. do
  3812. IFS=$as_save_IFS
  3813. test -z "$as_dir" && as_dir=.
  3814. for ac_exec_ext in '' $ac_executable_extensions; do
  3815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3816. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3818. break 2
  3819. fi
  3820. done
  3821. done
  3822. IFS=$as_save_IFS
  3823. fi
  3824. fi
  3825. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3826. if test -n "$ac_ct_DUMPBIN"; then
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3828. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3829. else
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3831. $as_echo "no" >&6; }
  3832. fi
  3833. test -n "$ac_ct_DUMPBIN" && break
  3834. done
  3835. if test "x$ac_ct_DUMPBIN" = x; then
  3836. DUMPBIN=":"
  3837. else
  3838. case $cross_compiling:$ac_tool_warned in
  3839. yes:)
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3841. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3842. ac_tool_warned=yes ;;
  3843. esac
  3844. DUMPBIN=$ac_ct_DUMPBIN
  3845. fi
  3846. fi
  3847. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3848. *COFF*)
  3849. DUMPBIN="$DUMPBIN -symbols"
  3850. ;;
  3851. *)
  3852. DUMPBIN=:
  3853. ;;
  3854. esac
  3855. fi
  3856. if test "$DUMPBIN" != ":"; then
  3857. NM="$DUMPBIN"
  3858. fi
  3859. fi
  3860. test -z "$NM" && NM=nm
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3862. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3863. if ${lt_cv_nm_interface+:} false; then :
  3864. $as_echo_n "(cached) " >&6
  3865. else
  3866. lt_cv_nm_interface="BSD nm"
  3867. echo "int some_variable = 0;" > conftest.$ac_ext
  3868. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3869. (eval "$ac_compile" 2>conftest.err)
  3870. cat conftest.err >&5
  3871. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3872. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3873. cat conftest.err >&5
  3874. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3875. cat conftest.out >&5
  3876. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3877. lt_cv_nm_interface="MS dumpbin"
  3878. fi
  3879. rm -f conftest*
  3880. fi
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3882. $as_echo "$lt_cv_nm_interface" >&6; }
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3884. $as_echo_n "checking whether ln -s works... " >&6; }
  3885. LN_S=$as_ln_s
  3886. if test "$LN_S" = "ln -s"; then
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3888. $as_echo "yes" >&6; }
  3889. else
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3891. $as_echo "no, using $LN_S" >&6; }
  3892. fi
  3893. # find the maximum length of command line arguments
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3895. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3896. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3897. $as_echo_n "(cached) " >&6
  3898. else
  3899. i=0
  3900. teststring="ABCD"
  3901. case $build_os in
  3902. msdosdjgpp*)
  3903. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3904. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3905. # during glob expansion). Even if it were fixed, the result of this
  3906. # check would be larger than it should be.
  3907. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3908. ;;
  3909. gnu*)
  3910. # Under GNU Hurd, this test is not required because there is
  3911. # no limit to the length of command line arguments.
  3912. # Libtool will interpret -1 as no limit whatsoever
  3913. lt_cv_sys_max_cmd_len=-1;
  3914. ;;
  3915. cygwin* | mingw* | cegcc*)
  3916. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3917. # about 5 minutes as the teststring grows exponentially.
  3918. # Worse, since 9x/ME are not pre-emptively multitasking,
  3919. # you end up with a "frozen" computer, even though with patience
  3920. # the test eventually succeeds (with a max line length of 256k).
  3921. # Instead, let's just punt: use the minimum linelength reported by
  3922. # all of the supported platforms: 8192 (on NT/2K/XP).
  3923. lt_cv_sys_max_cmd_len=8192;
  3924. ;;
  3925. mint*)
  3926. # On MiNT this can take a long time and run out of memory.
  3927. lt_cv_sys_max_cmd_len=8192;
  3928. ;;
  3929. amigaos*)
  3930. # On AmigaOS with pdksh, this test takes hours, literally.
  3931. # So we just punt and use a minimum line length of 8192.
  3932. lt_cv_sys_max_cmd_len=8192;
  3933. ;;
  3934. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3935. # This has been around since 386BSD, at least. Likely further.
  3936. if test -x /sbin/sysctl; then
  3937. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3938. elif test -x /usr/sbin/sysctl; then
  3939. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3940. else
  3941. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3942. fi
  3943. # And add a safety zone
  3944. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3945. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3946. ;;
  3947. interix*)
  3948. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3949. lt_cv_sys_max_cmd_len=196608
  3950. ;;
  3951. os2*)
  3952. # The test takes a long time on OS/2.
  3953. lt_cv_sys_max_cmd_len=8192
  3954. ;;
  3955. osf*)
  3956. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3957. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3958. # nice to cause kernel panics so lets avoid the loop below.
  3959. # First set a reasonable default.
  3960. lt_cv_sys_max_cmd_len=16384
  3961. #
  3962. if test -x /sbin/sysconfig; then
  3963. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3964. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3965. esac
  3966. fi
  3967. ;;
  3968. sco3.2v5*)
  3969. lt_cv_sys_max_cmd_len=102400
  3970. ;;
  3971. sysv5* | sco5v6* | sysv4.2uw2*)
  3972. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3973. if test -n "$kargmax"; then
  3974. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3975. else
  3976. lt_cv_sys_max_cmd_len=32768
  3977. fi
  3978. ;;
  3979. *)
  3980. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3981. if test -n "$lt_cv_sys_max_cmd_len"; then
  3982. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3983. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3984. else
  3985. # Make teststring a little bigger before we do anything with it.
  3986. # a 1K string should be a reasonable start.
  3987. for i in 1 2 3 4 5 6 7 8 ; do
  3988. teststring=$teststring$teststring
  3989. done
  3990. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3991. # If test is not a shell built-in, we'll probably end up computing a
  3992. # maximum length that is only half of the actual maximum length, but
  3993. # we can't tell.
  3994. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3995. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3996. test $i != 17 # 1/2 MB should be enough
  3997. do
  3998. i=`expr $i + 1`
  3999. teststring=$teststring$teststring
  4000. done
  4001. # Only check the string length outside the loop.
  4002. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4003. teststring=
  4004. # Add a significant safety factor because C++ compilers can tack on
  4005. # massive amounts of additional arguments before passing them to the
  4006. # linker. It appears as though 1/2 is a usable value.
  4007. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4008. fi
  4009. ;;
  4010. esac
  4011. fi
  4012. if test -n $lt_cv_sys_max_cmd_len ; then
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4014. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4015. else
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4017. $as_echo "none" >&6; }
  4018. fi
  4019. max_cmd_len=$lt_cv_sys_max_cmd_len
  4020. : ${CP="cp -f"}
  4021. : ${MV="mv -f"}
  4022. : ${RM="rm -f"}
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4024. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4025. # Try some XSI features
  4026. xsi_shell=no
  4027. ( _lt_dummy="a/b/c"
  4028. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4029. = c,a/b,b/c, \
  4030. && eval 'test $(( 1 + 1 )) -eq 2 \
  4031. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4032. && xsi_shell=yes
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4034. $as_echo "$xsi_shell" >&6; }
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4036. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4037. lt_shell_append=no
  4038. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4039. >/dev/null 2>&1 \
  4040. && lt_shell_append=yes
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4042. $as_echo "$lt_shell_append" >&6; }
  4043. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4044. lt_unset=unset
  4045. else
  4046. lt_unset=false
  4047. fi
  4048. # test EBCDIC or ASCII
  4049. case `echo X|tr X '\101'` in
  4050. A) # ASCII based system
  4051. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4052. lt_SP2NL='tr \040 \012'
  4053. lt_NL2SP='tr \015\012 \040\040'
  4054. ;;
  4055. *) # EBCDIC based system
  4056. lt_SP2NL='tr \100 \n'
  4057. lt_NL2SP='tr \r\n \100\100'
  4058. ;;
  4059. esac
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4061. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4062. if ${lt_cv_to_host_file_cmd+:} false; then :
  4063. $as_echo_n "(cached) " >&6
  4064. else
  4065. case $host in
  4066. *-*-mingw* )
  4067. case $build in
  4068. *-*-mingw* ) # actually msys
  4069. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4070. ;;
  4071. *-*-cygwin* )
  4072. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4073. ;;
  4074. * ) # otherwise, assume *nix
  4075. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4076. ;;
  4077. esac
  4078. ;;
  4079. *-*-cygwin* )
  4080. case $build in
  4081. *-*-mingw* ) # actually msys
  4082. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4083. ;;
  4084. *-*-cygwin* )
  4085. lt_cv_to_host_file_cmd=func_convert_file_noop
  4086. ;;
  4087. * ) # otherwise, assume *nix
  4088. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4089. ;;
  4090. esac
  4091. ;;
  4092. * ) # unhandled hosts (and "normal" native builds)
  4093. lt_cv_to_host_file_cmd=func_convert_file_noop
  4094. ;;
  4095. esac
  4096. fi
  4097. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4099. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4101. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4102. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. #assume ordinary cross tools, or native build.
  4106. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4107. case $host in
  4108. *-*-mingw* )
  4109. case $build in
  4110. *-*-mingw* ) # actually msys
  4111. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4112. ;;
  4113. esac
  4114. ;;
  4115. esac
  4116. fi
  4117. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4119. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4121. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4122. if ${lt_cv_ld_reload_flag+:} false; then :
  4123. $as_echo_n "(cached) " >&6
  4124. else
  4125. lt_cv_ld_reload_flag='-r'
  4126. fi
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4128. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4129. reload_flag=$lt_cv_ld_reload_flag
  4130. case $reload_flag in
  4131. "" | " "*) ;;
  4132. *) reload_flag=" $reload_flag" ;;
  4133. esac
  4134. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4135. case $host_os in
  4136. cygwin* | mingw* | pw32* | cegcc*)
  4137. if test "$GCC" != yes; then
  4138. reload_cmds=false
  4139. fi
  4140. ;;
  4141. darwin*)
  4142. if test "$GCC" = yes; then
  4143. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4144. else
  4145. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4146. fi
  4147. ;;
  4148. esac
  4149. if test -n "$ac_tool_prefix"; then
  4150. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4151. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4153. $as_echo_n "checking for $ac_word... " >&6; }
  4154. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4155. $as_echo_n "(cached) " >&6
  4156. else
  4157. if test -n "$OBJDUMP"; then
  4158. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4159. else
  4160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4161. for as_dir in $PATH
  4162. do
  4163. IFS=$as_save_IFS
  4164. test -z "$as_dir" && as_dir=.
  4165. for ac_exec_ext in '' $ac_executable_extensions; do
  4166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4167. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4169. break 2
  4170. fi
  4171. done
  4172. done
  4173. IFS=$as_save_IFS
  4174. fi
  4175. fi
  4176. OBJDUMP=$ac_cv_prog_OBJDUMP
  4177. if test -n "$OBJDUMP"; then
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4179. $as_echo "$OBJDUMP" >&6; }
  4180. else
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4182. $as_echo "no" >&6; }
  4183. fi
  4184. fi
  4185. if test -z "$ac_cv_prog_OBJDUMP"; then
  4186. ac_ct_OBJDUMP=$OBJDUMP
  4187. # Extract the first word of "objdump", so it can be a program name with args.
  4188. set dummy objdump; ac_word=$2
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4190. $as_echo_n "checking for $ac_word... " >&6; }
  4191. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4192. $as_echo_n "(cached) " >&6
  4193. else
  4194. if test -n "$ac_ct_OBJDUMP"; then
  4195. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4196. else
  4197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4198. for as_dir in $PATH
  4199. do
  4200. IFS=$as_save_IFS
  4201. test -z "$as_dir" && as_dir=.
  4202. for ac_exec_ext in '' $ac_executable_extensions; do
  4203. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4204. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4205. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4206. break 2
  4207. fi
  4208. done
  4209. done
  4210. IFS=$as_save_IFS
  4211. fi
  4212. fi
  4213. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4214. if test -n "$ac_ct_OBJDUMP"; then
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4216. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4217. else
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4219. $as_echo "no" >&6; }
  4220. fi
  4221. if test "x$ac_ct_OBJDUMP" = x; then
  4222. OBJDUMP="false"
  4223. else
  4224. case $cross_compiling:$ac_tool_warned in
  4225. yes:)
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4227. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4228. ac_tool_warned=yes ;;
  4229. esac
  4230. OBJDUMP=$ac_ct_OBJDUMP
  4231. fi
  4232. else
  4233. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4234. fi
  4235. test -z "$OBJDUMP" && OBJDUMP=objdump
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4237. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4238. if ${lt_cv_deplibs_check_method+:} false; then :
  4239. $as_echo_n "(cached) " >&6
  4240. else
  4241. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4242. lt_cv_file_magic_test_file=
  4243. lt_cv_deplibs_check_method='unknown'
  4244. # Need to set the preceding variable on all platforms that support
  4245. # interlibrary dependencies.
  4246. # 'none' -- dependencies not supported.
  4247. # `unknown' -- same as none, but documents that we really don't know.
  4248. # 'pass_all' -- all dependencies passed with no checks.
  4249. # 'test_compile' -- check by making test program.
  4250. # 'file_magic [[regex]]' -- check by looking for files in library path
  4251. # which responds to the $file_magic_cmd with a given extended regex.
  4252. # If you have `file' or equivalent on your system and you're not sure
  4253. # whether `pass_all' will *always* work, you probably want this one.
  4254. case $host_os in
  4255. aix[4-9]*)
  4256. lt_cv_deplibs_check_method=pass_all
  4257. ;;
  4258. beos*)
  4259. lt_cv_deplibs_check_method=pass_all
  4260. ;;
  4261. bsdi[45]*)
  4262. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4263. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4264. lt_cv_file_magic_test_file=/shlib/libc.so
  4265. ;;
  4266. cygwin*)
  4267. # func_win32_libid is a shell function defined in ltmain.sh
  4268. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4269. lt_cv_file_magic_cmd='func_win32_libid'
  4270. lt_cv_deplibs_check_method=pass_all
  4271. ;;
  4272. mingw* | pw32*)
  4273. # Base MSYS/MinGW do not provide the 'file' command needed by
  4274. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4275. # unless we find 'file', for example because we are cross-compiling.
  4276. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4277. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4278. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4279. lt_cv_file_magic_cmd='func_win32_libid'
  4280. else
  4281. # Keep this pattern in sync with the one in func_win32_libid.
  4282. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4283. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4284. fi
  4285. lt_cv_deplibs_check_method=pass_all
  4286. ;;
  4287. cegcc*)
  4288. # use the weaker test based on 'objdump'. See mingw*.
  4289. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4290. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4291. ;;
  4292. darwin* | rhapsody*)
  4293. lt_cv_deplibs_check_method=pass_all
  4294. ;;
  4295. freebsd* | dragonfly*)
  4296. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4297. case $host_cpu in
  4298. i*86 )
  4299. # Not sure whether the presence of OpenBSD here was a mistake.
  4300. # Let's accept both of them until this is cleared up.
  4301. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4302. lt_cv_file_magic_cmd=/usr/bin/file
  4303. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4304. ;;
  4305. esac
  4306. else
  4307. lt_cv_deplibs_check_method=pass_all
  4308. fi
  4309. ;;
  4310. gnu*)
  4311. lt_cv_deplibs_check_method=pass_all
  4312. ;;
  4313. haiku*)
  4314. lt_cv_deplibs_check_method=pass_all
  4315. ;;
  4316. hpux10.20* | hpux11*)
  4317. lt_cv_file_magic_cmd=/usr/bin/file
  4318. case $host_cpu in
  4319. ia64*)
  4320. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4321. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4322. ;;
  4323. hppa*64*)
  4324. 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]'
  4325. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4326. ;;
  4327. *)
  4328. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4329. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4330. ;;
  4331. esac
  4332. ;;
  4333. interix[3-9]*)
  4334. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4335. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4336. ;;
  4337. irix5* | irix6* | nonstopux*)
  4338. case $LD in
  4339. *-32|*"-32 ") libmagic=32-bit;;
  4340. *-n32|*"-n32 ") libmagic=N32;;
  4341. *-64|*"-64 ") libmagic=64-bit;;
  4342. *) libmagic=never-match;;
  4343. esac
  4344. lt_cv_deplibs_check_method=pass_all
  4345. ;;
  4346. # This must be glibc/ELF.
  4347. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4348. lt_cv_deplibs_check_method=pass_all
  4349. ;;
  4350. netbsd*)
  4351. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4352. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4353. else
  4354. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4355. fi
  4356. ;;
  4357. newos6*)
  4358. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4359. lt_cv_file_magic_cmd=/usr/bin/file
  4360. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4361. ;;
  4362. *nto* | *qnx*)
  4363. lt_cv_deplibs_check_method=pass_all
  4364. ;;
  4365. openbsd*)
  4366. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4367. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4368. else
  4369. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4370. fi
  4371. ;;
  4372. osf3* | osf4* | osf5*)
  4373. lt_cv_deplibs_check_method=pass_all
  4374. ;;
  4375. rdos*)
  4376. lt_cv_deplibs_check_method=pass_all
  4377. ;;
  4378. solaris*)
  4379. lt_cv_deplibs_check_method=pass_all
  4380. ;;
  4381. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4382. lt_cv_deplibs_check_method=pass_all
  4383. ;;
  4384. sysv4 | sysv4.3*)
  4385. case $host_vendor in
  4386. motorola)
  4387. 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]'
  4388. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4389. ;;
  4390. ncr)
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. sequent)
  4394. lt_cv_file_magic_cmd='/bin/file'
  4395. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4396. ;;
  4397. sni)
  4398. lt_cv_file_magic_cmd='/bin/file'
  4399. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4400. lt_cv_file_magic_test_file=/lib/libc.so
  4401. ;;
  4402. siemens)
  4403. lt_cv_deplibs_check_method=pass_all
  4404. ;;
  4405. pc)
  4406. lt_cv_deplibs_check_method=pass_all
  4407. ;;
  4408. esac
  4409. ;;
  4410. tpf*)
  4411. lt_cv_deplibs_check_method=pass_all
  4412. ;;
  4413. esac
  4414. fi
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4416. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4417. file_magic_glob=
  4418. want_nocaseglob=no
  4419. if test "$build" = "$host"; then
  4420. case $host_os in
  4421. mingw* | pw32*)
  4422. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4423. want_nocaseglob=yes
  4424. else
  4425. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4426. fi
  4427. ;;
  4428. esac
  4429. fi
  4430. file_magic_cmd=$lt_cv_file_magic_cmd
  4431. deplibs_check_method=$lt_cv_deplibs_check_method
  4432. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4433. if test -n "$ac_tool_prefix"; then
  4434. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4435. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4437. $as_echo_n "checking for $ac_word... " >&6; }
  4438. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4439. $as_echo_n "(cached) " >&6
  4440. else
  4441. if test -n "$DLLTOOL"; then
  4442. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4443. else
  4444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4445. for as_dir in $PATH
  4446. do
  4447. IFS=$as_save_IFS
  4448. test -z "$as_dir" && as_dir=.
  4449. for ac_exec_ext in '' $ac_executable_extensions; do
  4450. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4451. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4453. break 2
  4454. fi
  4455. done
  4456. done
  4457. IFS=$as_save_IFS
  4458. fi
  4459. fi
  4460. DLLTOOL=$ac_cv_prog_DLLTOOL
  4461. if test -n "$DLLTOOL"; then
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4463. $as_echo "$DLLTOOL" >&6; }
  4464. else
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4466. $as_echo "no" >&6; }
  4467. fi
  4468. fi
  4469. if test -z "$ac_cv_prog_DLLTOOL"; then
  4470. ac_ct_DLLTOOL=$DLLTOOL
  4471. # Extract the first word of "dlltool", so it can be a program name with args.
  4472. set dummy dlltool; ac_word=$2
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4474. $as_echo_n "checking for $ac_word... " >&6; }
  4475. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4476. $as_echo_n "(cached) " >&6
  4477. else
  4478. if test -n "$ac_ct_DLLTOOL"; then
  4479. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4480. else
  4481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4482. for as_dir in $PATH
  4483. do
  4484. IFS=$as_save_IFS
  4485. test -z "$as_dir" && as_dir=.
  4486. for ac_exec_ext in '' $ac_executable_extensions; do
  4487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4488. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4490. break 2
  4491. fi
  4492. done
  4493. done
  4494. IFS=$as_save_IFS
  4495. fi
  4496. fi
  4497. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4498. if test -n "$ac_ct_DLLTOOL"; then
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4500. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4501. else
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4503. $as_echo "no" >&6; }
  4504. fi
  4505. if test "x$ac_ct_DLLTOOL" = x; then
  4506. DLLTOOL="false"
  4507. else
  4508. case $cross_compiling:$ac_tool_warned in
  4509. yes:)
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4511. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4512. ac_tool_warned=yes ;;
  4513. esac
  4514. DLLTOOL=$ac_ct_DLLTOOL
  4515. fi
  4516. else
  4517. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4518. fi
  4519. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4521. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4522. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4523. $as_echo_n "(cached) " >&6
  4524. else
  4525. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4526. case $host_os in
  4527. cygwin* | mingw* | pw32* | cegcc*)
  4528. # two different shell functions defined in ltmain.sh
  4529. # decide which to use based on capabilities of $DLLTOOL
  4530. case `$DLLTOOL --help 2>&1` in
  4531. *--identify-strict*)
  4532. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4533. ;;
  4534. *)
  4535. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4536. ;;
  4537. esac
  4538. ;;
  4539. *)
  4540. # fallback: assume linklib IS sharedlib
  4541. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4542. ;;
  4543. esac
  4544. fi
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4546. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4547. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4548. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4549. if test -n "$ac_tool_prefix"; then
  4550. for ac_prog in ar
  4551. do
  4552. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4553. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4555. $as_echo_n "checking for $ac_word... " >&6; }
  4556. if ${ac_cv_prog_AR+:} false; then :
  4557. $as_echo_n "(cached) " >&6
  4558. else
  4559. if test -n "$AR"; then
  4560. ac_cv_prog_AR="$AR" # Let the user override the test.
  4561. else
  4562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4563. for as_dir in $PATH
  4564. do
  4565. IFS=$as_save_IFS
  4566. test -z "$as_dir" && as_dir=.
  4567. for ac_exec_ext in '' $ac_executable_extensions; do
  4568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4569. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4571. break 2
  4572. fi
  4573. done
  4574. done
  4575. IFS=$as_save_IFS
  4576. fi
  4577. fi
  4578. AR=$ac_cv_prog_AR
  4579. if test -n "$AR"; then
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4581. $as_echo "$AR" >&6; }
  4582. else
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4584. $as_echo "no" >&6; }
  4585. fi
  4586. test -n "$AR" && break
  4587. done
  4588. fi
  4589. if test -z "$AR"; then
  4590. ac_ct_AR=$AR
  4591. for ac_prog in ar
  4592. do
  4593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4594. set dummy $ac_prog; ac_word=$2
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4596. $as_echo_n "checking for $ac_word... " >&6; }
  4597. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4598. $as_echo_n "(cached) " >&6
  4599. else
  4600. if test -n "$ac_ct_AR"; then
  4601. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4602. else
  4603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4604. for as_dir in $PATH
  4605. do
  4606. IFS=$as_save_IFS
  4607. test -z "$as_dir" && as_dir=.
  4608. for ac_exec_ext in '' $ac_executable_extensions; do
  4609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4610. ac_cv_prog_ac_ct_AR="$ac_prog"
  4611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4612. break 2
  4613. fi
  4614. done
  4615. done
  4616. IFS=$as_save_IFS
  4617. fi
  4618. fi
  4619. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4620. if test -n "$ac_ct_AR"; then
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4622. $as_echo "$ac_ct_AR" >&6; }
  4623. else
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4625. $as_echo "no" >&6; }
  4626. fi
  4627. test -n "$ac_ct_AR" && break
  4628. done
  4629. if test "x$ac_ct_AR" = x; then
  4630. AR="false"
  4631. else
  4632. case $cross_compiling:$ac_tool_warned in
  4633. yes:)
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4636. ac_tool_warned=yes ;;
  4637. esac
  4638. AR=$ac_ct_AR
  4639. fi
  4640. fi
  4641. : ${AR=ar}
  4642. : ${AR_FLAGS=cru}
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4644. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4645. if ${lt_cv_ar_at_file+:} false; then :
  4646. $as_echo_n "(cached) " >&6
  4647. else
  4648. lt_cv_ar_at_file=no
  4649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4650. /* end confdefs.h. */
  4651. int
  4652. main ()
  4653. {
  4654. ;
  4655. return 0;
  4656. }
  4657. _ACEOF
  4658. if ac_fn_c_try_compile "$LINENO"; then :
  4659. echo conftest.$ac_objext > conftest.lst
  4660. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4661. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4662. (eval $lt_ar_try) 2>&5
  4663. ac_status=$?
  4664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4665. test $ac_status = 0; }
  4666. if test "$ac_status" -eq 0; then
  4667. # Ensure the archiver fails upon bogus file names.
  4668. rm -f conftest.$ac_objext libconftest.a
  4669. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4670. (eval $lt_ar_try) 2>&5
  4671. ac_status=$?
  4672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4673. test $ac_status = 0; }
  4674. if test "$ac_status" -ne 0; then
  4675. lt_cv_ar_at_file=@
  4676. fi
  4677. fi
  4678. rm -f conftest.* libconftest.a
  4679. fi
  4680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4681. fi
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4683. $as_echo "$lt_cv_ar_at_file" >&6; }
  4684. if test "x$lt_cv_ar_at_file" = xno; then
  4685. archiver_list_spec=
  4686. else
  4687. archiver_list_spec=$lt_cv_ar_at_file
  4688. fi
  4689. if test -n "$ac_tool_prefix"; then
  4690. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4691. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4693. $as_echo_n "checking for $ac_word... " >&6; }
  4694. if ${ac_cv_prog_STRIP+:} false; then :
  4695. $as_echo_n "(cached) " >&6
  4696. else
  4697. if test -n "$STRIP"; then
  4698. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4699. else
  4700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4701. for as_dir in $PATH
  4702. do
  4703. IFS=$as_save_IFS
  4704. test -z "$as_dir" && as_dir=.
  4705. for ac_exec_ext in '' $ac_executable_extensions; do
  4706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4707. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4709. break 2
  4710. fi
  4711. done
  4712. done
  4713. IFS=$as_save_IFS
  4714. fi
  4715. fi
  4716. STRIP=$ac_cv_prog_STRIP
  4717. if test -n "$STRIP"; then
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4719. $as_echo "$STRIP" >&6; }
  4720. else
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4722. $as_echo "no" >&6; }
  4723. fi
  4724. fi
  4725. if test -z "$ac_cv_prog_STRIP"; then
  4726. ac_ct_STRIP=$STRIP
  4727. # Extract the first word of "strip", so it can be a program name with args.
  4728. set dummy strip; 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_STRIP+:} false; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. if test -n "$ac_ct_STRIP"; then
  4735. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
  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_STRIP=$ac_cv_prog_ac_ct_STRIP
  4754. if test -n "$ac_ct_STRIP"; then
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4756. $as_echo "$ac_ct_STRIP" >&6; }
  4757. else
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4759. $as_echo "no" >&6; }
  4760. fi
  4761. if test "x$ac_ct_STRIP" = x; then
  4762. STRIP=":"
  4763. else
  4764. case $cross_compiling:$ac_tool_warned in
  4765. yes:)
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4767. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4768. ac_tool_warned=yes ;;
  4769. esac
  4770. STRIP=$ac_ct_STRIP
  4771. fi
  4772. else
  4773. STRIP="$ac_cv_prog_STRIP"
  4774. fi
  4775. test -z "$STRIP" && STRIP=:
  4776. if test -n "$ac_tool_prefix"; then
  4777. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4778. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4780. $as_echo_n "checking for $ac_word... " >&6; }
  4781. if ${ac_cv_prog_RANLIB+:} false; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. if test -n "$RANLIB"; then
  4785. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4786. else
  4787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4788. for as_dir in $PATH
  4789. do
  4790. IFS=$as_save_IFS
  4791. test -z "$as_dir" && as_dir=.
  4792. for ac_exec_ext in '' $ac_executable_extensions; do
  4793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4794. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4796. break 2
  4797. fi
  4798. done
  4799. done
  4800. IFS=$as_save_IFS
  4801. fi
  4802. fi
  4803. RANLIB=$ac_cv_prog_RANLIB
  4804. if test -n "$RANLIB"; then
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4806. $as_echo "$RANLIB" >&6; }
  4807. else
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4809. $as_echo "no" >&6; }
  4810. fi
  4811. fi
  4812. if test -z "$ac_cv_prog_RANLIB"; then
  4813. ac_ct_RANLIB=$RANLIB
  4814. # Extract the first word of "ranlib", so it can be a program name with args.
  4815. set dummy ranlib; ac_word=$2
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4817. $as_echo_n "checking for $ac_word... " >&6; }
  4818. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4819. $as_echo_n "(cached) " >&6
  4820. else
  4821. if test -n "$ac_ct_RANLIB"; then
  4822. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4823. else
  4824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4825. for as_dir in $PATH
  4826. do
  4827. IFS=$as_save_IFS
  4828. test -z "$as_dir" && as_dir=.
  4829. for ac_exec_ext in '' $ac_executable_extensions; do
  4830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4831. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4833. break 2
  4834. fi
  4835. done
  4836. done
  4837. IFS=$as_save_IFS
  4838. fi
  4839. fi
  4840. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4841. if test -n "$ac_ct_RANLIB"; then
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4843. $as_echo "$ac_ct_RANLIB" >&6; }
  4844. else
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4846. $as_echo "no" >&6; }
  4847. fi
  4848. if test "x$ac_ct_RANLIB" = x; then
  4849. RANLIB=":"
  4850. else
  4851. case $cross_compiling:$ac_tool_warned in
  4852. yes:)
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4855. ac_tool_warned=yes ;;
  4856. esac
  4857. RANLIB=$ac_ct_RANLIB
  4858. fi
  4859. else
  4860. RANLIB="$ac_cv_prog_RANLIB"
  4861. fi
  4862. test -z "$RANLIB" && RANLIB=:
  4863. # Determine commands to create old-style static archives.
  4864. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4865. old_postinstall_cmds='chmod 644 $oldlib'
  4866. old_postuninstall_cmds=
  4867. if test -n "$RANLIB"; then
  4868. case $host_os in
  4869. openbsd*)
  4870. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4871. ;;
  4872. *)
  4873. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4874. ;;
  4875. esac
  4876. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4877. fi
  4878. case $host_os in
  4879. darwin*)
  4880. lock_old_archive_extraction=yes ;;
  4881. *)
  4882. lock_old_archive_extraction=no ;;
  4883. esac
  4884. for ac_prog in gawk mawk nawk awk
  4885. do
  4886. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4887. set dummy $ac_prog; ac_word=$2
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4889. $as_echo_n "checking for $ac_word... " >&6; }
  4890. if ${ac_cv_prog_AWK+:} false; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. if test -n "$AWK"; then
  4894. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4895. else
  4896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4897. for as_dir in $PATH
  4898. do
  4899. IFS=$as_save_IFS
  4900. test -z "$as_dir" && as_dir=.
  4901. for ac_exec_ext in '' $ac_executable_extensions; do
  4902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4903. ac_cv_prog_AWK="$ac_prog"
  4904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4905. break 2
  4906. fi
  4907. done
  4908. done
  4909. IFS=$as_save_IFS
  4910. fi
  4911. fi
  4912. AWK=$ac_cv_prog_AWK
  4913. if test -n "$AWK"; then
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4915. $as_echo "$AWK" >&6; }
  4916. else
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4918. $as_echo "no" >&6; }
  4919. fi
  4920. test -n "$AWK" && break
  4921. done
  4922. # If no C compiler was specified, use CC.
  4923. LTCC=${LTCC-"$CC"}
  4924. # If no C compiler flags were specified, use CFLAGS.
  4925. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4926. # Allow CC to be a program name with arguments.
  4927. compiler=$CC
  4928. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4930. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4931. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4932. $as_echo_n "(cached) " >&6
  4933. else
  4934. # These are sane defaults that work on at least a few old systems.
  4935. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4936. # Character class describing NM global symbol codes.
  4937. symcode='[BCDEGRST]'
  4938. # Regexp to match symbols that can be accessed directly from C.
  4939. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4940. # Define system-specific variables.
  4941. case $host_os in
  4942. aix*)
  4943. symcode='[BCDT]'
  4944. ;;
  4945. cygwin* | mingw* | pw32* | cegcc*)
  4946. symcode='[ABCDGISTW]'
  4947. ;;
  4948. hpux*)
  4949. if test "$host_cpu" = ia64; then
  4950. symcode='[ABCDEGRST]'
  4951. fi
  4952. ;;
  4953. irix* | nonstopux*)
  4954. symcode='[BCDEGRST]'
  4955. ;;
  4956. osf*)
  4957. symcode='[BCDEGQRST]'
  4958. ;;
  4959. solaris*)
  4960. symcode='[BDRT]'
  4961. ;;
  4962. sco3.2v5*)
  4963. symcode='[DT]'
  4964. ;;
  4965. sysv4.2uw2*)
  4966. symcode='[DT]'
  4967. ;;
  4968. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4969. symcode='[ABDT]'
  4970. ;;
  4971. sysv4)
  4972. symcode='[DFNSTU]'
  4973. ;;
  4974. esac
  4975. # If we're using GNU nm, then use its standard symbol codes.
  4976. case `$NM -V 2>&1` in
  4977. *GNU* | *'with BFD'*)
  4978. symcode='[ABCDGIRSTW]' ;;
  4979. esac
  4980. # Transform an extracted symbol line into a proper C declaration.
  4981. # Some systems (esp. on ia64) link data and code symbols differently,
  4982. # so use this general approach.
  4983. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4984. # Transform an extracted symbol line into symbol name and symbol address
  4985. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4986. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4987. # Handle CRLF in mingw tool chain
  4988. opt_cr=
  4989. case $build_os in
  4990. mingw*)
  4991. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4992. ;;
  4993. esac
  4994. # Try without a prefix underscore, then with it.
  4995. for ac_symprfx in "" "_"; do
  4996. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4997. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4998. # Write the raw and C identifiers.
  4999. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5000. # Fake it for dumpbin and say T for any non-static function
  5001. # and D for any global variable.
  5002. # Also find C++ and __fastcall symbols from MSVC++,
  5003. # which start with @ or ?.
  5004. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5005. " {last_section=section; section=\$ 3};"\
  5006. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5007. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5008. " \$ 0!~/External *\|/{next};"\
  5009. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5010. " {if(hide[section]) next};"\
  5011. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5012. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5013. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5014. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5015. " ' prfx=^$ac_symprfx"
  5016. else
  5017. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5018. fi
  5019. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5020. # Check to see that the pipe works correctly.
  5021. pipe_works=no
  5022. rm -f conftest*
  5023. cat > conftest.$ac_ext <<_LT_EOF
  5024. #ifdef __cplusplus
  5025. extern "C" {
  5026. #endif
  5027. char nm_test_var;
  5028. void nm_test_func(void);
  5029. void nm_test_func(void){}
  5030. #ifdef __cplusplus
  5031. }
  5032. #endif
  5033. int main(){nm_test_var='a';nm_test_func();return(0);}
  5034. _LT_EOF
  5035. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5036. (eval $ac_compile) 2>&5
  5037. ac_status=$?
  5038. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5039. test $ac_status = 0; }; then
  5040. # Now try to grab the symbols.
  5041. nlist=conftest.nm
  5042. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5043. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5044. ac_status=$?
  5045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5046. test $ac_status = 0; } && test -s "$nlist"; then
  5047. # Try sorting and uniquifying the output.
  5048. if sort "$nlist" | uniq > "$nlist"T; then
  5049. mv -f "$nlist"T "$nlist"
  5050. else
  5051. rm -f "$nlist"T
  5052. fi
  5053. # Make sure that we snagged all the symbols we need.
  5054. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5055. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5056. cat <<_LT_EOF > conftest.$ac_ext
  5057. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5058. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5059. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5060. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5061. # define LT_DLSYM_CONST
  5062. #elif defined(__osf__)
  5063. /* This system does not cope well with relocations in const data. */
  5064. # define LT_DLSYM_CONST
  5065. #else
  5066. # define LT_DLSYM_CONST const
  5067. #endif
  5068. #ifdef __cplusplus
  5069. extern "C" {
  5070. #endif
  5071. _LT_EOF
  5072. # Now generate the symbol file.
  5073. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5074. cat <<_LT_EOF >> conftest.$ac_ext
  5075. /* The mapping between symbol names and symbols. */
  5076. LT_DLSYM_CONST struct {
  5077. const char *name;
  5078. void *address;
  5079. }
  5080. lt__PROGRAM__LTX_preloaded_symbols[] =
  5081. {
  5082. { "@PROGRAM@", (void *) 0 },
  5083. _LT_EOF
  5084. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5085. cat <<\_LT_EOF >> conftest.$ac_ext
  5086. {0, (void *) 0}
  5087. };
  5088. /* This works around a problem in FreeBSD linker */
  5089. #ifdef FREEBSD_WORKAROUND
  5090. static const void *lt_preloaded_setup() {
  5091. return lt__PROGRAM__LTX_preloaded_symbols;
  5092. }
  5093. #endif
  5094. #ifdef __cplusplus
  5095. }
  5096. #endif
  5097. _LT_EOF
  5098. # Now try linking the two files.
  5099. mv conftest.$ac_objext conftstm.$ac_objext
  5100. lt_globsym_save_LIBS=$LIBS
  5101. lt_globsym_save_CFLAGS=$CFLAGS
  5102. LIBS="conftstm.$ac_objext"
  5103. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5104. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5105. (eval $ac_link) 2>&5
  5106. ac_status=$?
  5107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5108. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5109. pipe_works=yes
  5110. fi
  5111. LIBS=$lt_globsym_save_LIBS
  5112. CFLAGS=$lt_globsym_save_CFLAGS
  5113. else
  5114. echo "cannot find nm_test_func in $nlist" >&5
  5115. fi
  5116. else
  5117. echo "cannot find nm_test_var in $nlist" >&5
  5118. fi
  5119. else
  5120. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5121. fi
  5122. else
  5123. echo "$progname: failed program was:" >&5
  5124. cat conftest.$ac_ext >&5
  5125. fi
  5126. rm -rf conftest* conftst*
  5127. # Do not use the global_symbol_pipe unless it works.
  5128. if test "$pipe_works" = yes; then
  5129. break
  5130. else
  5131. lt_cv_sys_global_symbol_pipe=
  5132. fi
  5133. done
  5134. fi
  5135. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5136. lt_cv_sys_global_symbol_to_cdecl=
  5137. fi
  5138. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5140. $as_echo "failed" >&6; }
  5141. else
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5143. $as_echo "ok" >&6; }
  5144. fi
  5145. # Response file support.
  5146. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5147. nm_file_list_spec='@'
  5148. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5149. nm_file_list_spec='@'
  5150. fi
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5152. $as_echo_n "checking for sysroot... " >&6; }
  5153. # Check whether --with-sysroot was given.
  5154. if test "${with_sysroot+set}" = set; then :
  5155. withval=$with_sysroot;
  5156. else
  5157. with_sysroot=no
  5158. fi
  5159. lt_sysroot=
  5160. case ${with_sysroot} in #(
  5161. yes)
  5162. if test "$GCC" = yes; then
  5163. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5164. fi
  5165. ;; #(
  5166. /*)
  5167. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5168. ;; #(
  5169. no|'')
  5170. ;; #(
  5171. *)
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5173. $as_echo "${with_sysroot}" >&6; }
  5174. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5175. ;;
  5176. esac
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5178. $as_echo "${lt_sysroot:-no}" >&6; }
  5179. # Check whether --enable-libtool-lock was given.
  5180. if test "${enable_libtool_lock+set}" = set; then :
  5181. enableval=$enable_libtool_lock;
  5182. fi
  5183. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5184. # Some flags need to be propagated to the compiler or linker for good
  5185. # libtool support.
  5186. case $host in
  5187. ia64-*-hpux*)
  5188. # Find out which ABI we are using.
  5189. echo 'int i;' > conftest.$ac_ext
  5190. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5191. (eval $ac_compile) 2>&5
  5192. ac_status=$?
  5193. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5194. test $ac_status = 0; }; then
  5195. case `/usr/bin/file conftest.$ac_objext` in
  5196. *ELF-32*)
  5197. HPUX_IA64_MODE="32"
  5198. ;;
  5199. *ELF-64*)
  5200. HPUX_IA64_MODE="64"
  5201. ;;
  5202. esac
  5203. fi
  5204. rm -rf conftest*
  5205. ;;
  5206. *-*-irix6*)
  5207. # Find out which ABI we are using.
  5208. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5209. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5210. (eval $ac_compile) 2>&5
  5211. ac_status=$?
  5212. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5213. test $ac_status = 0; }; then
  5214. if test "$lt_cv_prog_gnu_ld" = yes; then
  5215. case `/usr/bin/file conftest.$ac_objext` in
  5216. *32-bit*)
  5217. LD="${LD-ld} -melf32bsmip"
  5218. ;;
  5219. *N32*)
  5220. LD="${LD-ld} -melf32bmipn32"
  5221. ;;
  5222. *64-bit*)
  5223. LD="${LD-ld} -melf64bmip"
  5224. ;;
  5225. esac
  5226. else
  5227. case `/usr/bin/file conftest.$ac_objext` in
  5228. *32-bit*)
  5229. LD="${LD-ld} -32"
  5230. ;;
  5231. *N32*)
  5232. LD="${LD-ld} -n32"
  5233. ;;
  5234. *64-bit*)
  5235. LD="${LD-ld} -64"
  5236. ;;
  5237. esac
  5238. fi
  5239. fi
  5240. rm -rf conftest*
  5241. ;;
  5242. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5243. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5244. # Find out which ABI we are using.
  5245. echo 'int i;' > conftest.$ac_ext
  5246. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5247. (eval $ac_compile) 2>&5
  5248. ac_status=$?
  5249. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5250. test $ac_status = 0; }; then
  5251. case `/usr/bin/file conftest.o` in
  5252. *32-bit*)
  5253. case $host in
  5254. x86_64-*kfreebsd*-gnu)
  5255. LD="${LD-ld} -m elf_i386_fbsd"
  5256. ;;
  5257. x86_64-*linux*)
  5258. LD="${LD-ld} -m elf_i386"
  5259. ;;
  5260. ppc64-*linux*|powerpc64-*linux*)
  5261. LD="${LD-ld} -m elf32ppclinux"
  5262. ;;
  5263. s390x-*linux*)
  5264. LD="${LD-ld} -m elf_s390"
  5265. ;;
  5266. sparc64-*linux*)
  5267. LD="${LD-ld} -m elf32_sparc"
  5268. ;;
  5269. esac
  5270. ;;
  5271. *64-bit*)
  5272. case $host in
  5273. x86_64-*kfreebsd*-gnu)
  5274. LD="${LD-ld} -m elf_x86_64_fbsd"
  5275. ;;
  5276. x86_64-*linux*)
  5277. LD="${LD-ld} -m elf_x86_64"
  5278. ;;
  5279. powerpc64le-*linux*)
  5280. LD="${LD-ld} -m elf64lppc"
  5281. ;;
  5282. powerpc64-*linux*)
  5283. LD="${LD-ld} -m elf64ppc"
  5284. ;;
  5285. s390*-*linux*|s390*-*tpf*)
  5286. LD="${LD-ld} -m elf64_s390"
  5287. ;;
  5288. sparc*-*linux*)
  5289. LD="${LD-ld} -m elf64_sparc"
  5290. ;;
  5291. esac
  5292. ;;
  5293. esac
  5294. fi
  5295. rm -rf conftest*
  5296. ;;
  5297. *-*-sco3.2v5*)
  5298. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5299. SAVE_CFLAGS="$CFLAGS"
  5300. CFLAGS="$CFLAGS -belf"
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5302. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5303. if ${lt_cv_cc_needs_belf+:} false; then :
  5304. $as_echo_n "(cached) " >&6
  5305. else
  5306. ac_ext=c
  5307. ac_cpp='$CPP $CPPFLAGS'
  5308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5312. /* end confdefs.h. */
  5313. int
  5314. main ()
  5315. {
  5316. ;
  5317. return 0;
  5318. }
  5319. _ACEOF
  5320. if ac_fn_c_try_link "$LINENO"; then :
  5321. lt_cv_cc_needs_belf=yes
  5322. else
  5323. lt_cv_cc_needs_belf=no
  5324. fi
  5325. rm -f core conftest.err conftest.$ac_objext \
  5326. conftest$ac_exeext conftest.$ac_ext
  5327. ac_ext=c
  5328. ac_cpp='$CPP $CPPFLAGS'
  5329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5332. fi
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5334. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5335. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5336. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5337. CFLAGS="$SAVE_CFLAGS"
  5338. fi
  5339. ;;
  5340. *-*solaris*)
  5341. # Find out which ABI we are using.
  5342. echo 'int i;' > conftest.$ac_ext
  5343. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5344. (eval $ac_compile) 2>&5
  5345. ac_status=$?
  5346. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5347. test $ac_status = 0; }; then
  5348. case `/usr/bin/file conftest.o` in
  5349. *64-bit*)
  5350. case $lt_cv_prog_gnu_ld in
  5351. yes*)
  5352. case $host in
  5353. i?86-*-solaris*)
  5354. LD="${LD-ld} -m elf_x86_64"
  5355. ;;
  5356. sparc*-*-solaris*)
  5357. LD="${LD-ld} -m elf64_sparc"
  5358. ;;
  5359. esac
  5360. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5361. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5362. LD="${LD-ld}_sol2"
  5363. fi
  5364. ;;
  5365. *)
  5366. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5367. LD="${LD-ld} -64"
  5368. fi
  5369. ;;
  5370. esac
  5371. ;;
  5372. esac
  5373. fi
  5374. rm -rf conftest*
  5375. ;;
  5376. esac
  5377. need_locks="$enable_libtool_lock"
  5378. if test -n "$ac_tool_prefix"; then
  5379. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5380. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5382. $as_echo_n "checking for $ac_word... " >&6; }
  5383. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5384. $as_echo_n "(cached) " >&6
  5385. else
  5386. if test -n "$MANIFEST_TOOL"; then
  5387. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5388. else
  5389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5390. for as_dir in $PATH
  5391. do
  5392. IFS=$as_save_IFS
  5393. test -z "$as_dir" && as_dir=.
  5394. for ac_exec_ext in '' $ac_executable_extensions; do
  5395. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5396. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5398. break 2
  5399. fi
  5400. done
  5401. done
  5402. IFS=$as_save_IFS
  5403. fi
  5404. fi
  5405. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5406. if test -n "$MANIFEST_TOOL"; then
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5408. $as_echo "$MANIFEST_TOOL" >&6; }
  5409. else
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5411. $as_echo "no" >&6; }
  5412. fi
  5413. fi
  5414. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5415. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5416. # Extract the first word of "mt", so it can be a program name with args.
  5417. set dummy mt; ac_word=$2
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5419. $as_echo_n "checking for $ac_word... " >&6; }
  5420. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5421. $as_echo_n "(cached) " >&6
  5422. else
  5423. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5424. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5425. else
  5426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5427. for as_dir in $PATH
  5428. do
  5429. IFS=$as_save_IFS
  5430. test -z "$as_dir" && as_dir=.
  5431. for ac_exec_ext in '' $ac_executable_extensions; do
  5432. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5433. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5435. break 2
  5436. fi
  5437. done
  5438. done
  5439. IFS=$as_save_IFS
  5440. fi
  5441. fi
  5442. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5443. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5445. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5446. else
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5448. $as_echo "no" >&6; }
  5449. fi
  5450. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5451. MANIFEST_TOOL=":"
  5452. else
  5453. case $cross_compiling:$ac_tool_warned in
  5454. yes:)
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5456. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5457. ac_tool_warned=yes ;;
  5458. esac
  5459. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5460. fi
  5461. else
  5462. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5463. fi
  5464. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5466. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5467. if ${lt_cv_path_mainfest_tool+:} false; then :
  5468. $as_echo_n "(cached) " >&6
  5469. else
  5470. lt_cv_path_mainfest_tool=no
  5471. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5472. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5473. cat conftest.err >&5
  5474. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5475. lt_cv_path_mainfest_tool=yes
  5476. fi
  5477. rm -f conftest*
  5478. fi
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5480. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5481. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5482. MANIFEST_TOOL=:
  5483. fi
  5484. case $host_os in
  5485. rhapsody* | darwin*)
  5486. if test -n "$ac_tool_prefix"; then
  5487. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5488. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5490. $as_echo_n "checking for $ac_word... " >&6; }
  5491. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5492. $as_echo_n "(cached) " >&6
  5493. else
  5494. if test -n "$DSYMUTIL"; then
  5495. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5496. else
  5497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5498. for as_dir in $PATH
  5499. do
  5500. IFS=$as_save_IFS
  5501. test -z "$as_dir" && as_dir=.
  5502. for ac_exec_ext in '' $ac_executable_extensions; do
  5503. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5504. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5506. break 2
  5507. fi
  5508. done
  5509. done
  5510. IFS=$as_save_IFS
  5511. fi
  5512. fi
  5513. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5514. if test -n "$DSYMUTIL"; then
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5516. $as_echo "$DSYMUTIL" >&6; }
  5517. else
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5519. $as_echo "no" >&6; }
  5520. fi
  5521. fi
  5522. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5523. ac_ct_DSYMUTIL=$DSYMUTIL
  5524. # Extract the first word of "dsymutil", so it can be a program name with args.
  5525. set dummy dsymutil; ac_word=$2
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5527. $as_echo_n "checking for $ac_word... " >&6; }
  5528. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5529. $as_echo_n "(cached) " >&6
  5530. else
  5531. if test -n "$ac_ct_DSYMUTIL"; then
  5532. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5533. else
  5534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5535. for as_dir in $PATH
  5536. do
  5537. IFS=$as_save_IFS
  5538. test -z "$as_dir" && as_dir=.
  5539. for ac_exec_ext in '' $ac_executable_extensions; do
  5540. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5541. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5543. break 2
  5544. fi
  5545. done
  5546. done
  5547. IFS=$as_save_IFS
  5548. fi
  5549. fi
  5550. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5551. if test -n "$ac_ct_DSYMUTIL"; then
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5553. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5554. else
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5556. $as_echo "no" >&6; }
  5557. fi
  5558. if test "x$ac_ct_DSYMUTIL" = x; then
  5559. DSYMUTIL=":"
  5560. else
  5561. case $cross_compiling:$ac_tool_warned in
  5562. yes:)
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5564. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5565. ac_tool_warned=yes ;;
  5566. esac
  5567. DSYMUTIL=$ac_ct_DSYMUTIL
  5568. fi
  5569. else
  5570. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5571. fi
  5572. if test -n "$ac_tool_prefix"; then
  5573. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5574. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5576. $as_echo_n "checking for $ac_word... " >&6; }
  5577. if ${ac_cv_prog_NMEDIT+:} false; then :
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. if test -n "$NMEDIT"; then
  5581. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. test -z "$as_dir" && as_dir=.
  5588. for ac_exec_ext in '' $ac_executable_extensions; do
  5589. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5590. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5592. break 2
  5593. fi
  5594. done
  5595. done
  5596. IFS=$as_save_IFS
  5597. fi
  5598. fi
  5599. NMEDIT=$ac_cv_prog_NMEDIT
  5600. if test -n "$NMEDIT"; then
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5602. $as_echo "$NMEDIT" >&6; }
  5603. else
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5605. $as_echo "no" >&6; }
  5606. fi
  5607. fi
  5608. if test -z "$ac_cv_prog_NMEDIT"; then
  5609. ac_ct_NMEDIT=$NMEDIT
  5610. # Extract the first word of "nmedit", so it can be a program name with args.
  5611. set dummy nmedit; ac_word=$2
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5613. $as_echo_n "checking for $ac_word... " >&6; }
  5614. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5615. $as_echo_n "(cached) " >&6
  5616. else
  5617. if test -n "$ac_ct_NMEDIT"; then
  5618. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5619. else
  5620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5621. for as_dir in $PATH
  5622. do
  5623. IFS=$as_save_IFS
  5624. test -z "$as_dir" && as_dir=.
  5625. for ac_exec_ext in '' $ac_executable_extensions; do
  5626. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5627. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5629. break 2
  5630. fi
  5631. done
  5632. done
  5633. IFS=$as_save_IFS
  5634. fi
  5635. fi
  5636. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5637. if test -n "$ac_ct_NMEDIT"; then
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5639. $as_echo "$ac_ct_NMEDIT" >&6; }
  5640. else
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5642. $as_echo "no" >&6; }
  5643. fi
  5644. if test "x$ac_ct_NMEDIT" = x; then
  5645. NMEDIT=":"
  5646. else
  5647. case $cross_compiling:$ac_tool_warned in
  5648. yes:)
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5650. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5651. ac_tool_warned=yes ;;
  5652. esac
  5653. NMEDIT=$ac_ct_NMEDIT
  5654. fi
  5655. else
  5656. NMEDIT="$ac_cv_prog_NMEDIT"
  5657. fi
  5658. if test -n "$ac_tool_prefix"; then
  5659. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5660. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5662. $as_echo_n "checking for $ac_word... " >&6; }
  5663. if ${ac_cv_prog_LIPO+:} false; then :
  5664. $as_echo_n "(cached) " >&6
  5665. else
  5666. if test -n "$LIPO"; then
  5667. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5668. else
  5669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5670. for as_dir in $PATH
  5671. do
  5672. IFS=$as_save_IFS
  5673. test -z "$as_dir" && as_dir=.
  5674. for ac_exec_ext in '' $ac_executable_extensions; do
  5675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5676. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5678. break 2
  5679. fi
  5680. done
  5681. done
  5682. IFS=$as_save_IFS
  5683. fi
  5684. fi
  5685. LIPO=$ac_cv_prog_LIPO
  5686. if test -n "$LIPO"; then
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5688. $as_echo "$LIPO" >&6; }
  5689. else
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5691. $as_echo "no" >&6; }
  5692. fi
  5693. fi
  5694. if test -z "$ac_cv_prog_LIPO"; then
  5695. ac_ct_LIPO=$LIPO
  5696. # Extract the first word of "lipo", so it can be a program name with args.
  5697. set dummy lipo; ac_word=$2
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5699. $as_echo_n "checking for $ac_word... " >&6; }
  5700. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5701. $as_echo_n "(cached) " >&6
  5702. else
  5703. if test -n "$ac_ct_LIPO"; then
  5704. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5705. else
  5706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5707. for as_dir in $PATH
  5708. do
  5709. IFS=$as_save_IFS
  5710. test -z "$as_dir" && as_dir=.
  5711. for ac_exec_ext in '' $ac_executable_extensions; do
  5712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5713. ac_cv_prog_ac_ct_LIPO="lipo"
  5714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5715. break 2
  5716. fi
  5717. done
  5718. done
  5719. IFS=$as_save_IFS
  5720. fi
  5721. fi
  5722. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5723. if test -n "$ac_ct_LIPO"; then
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5725. $as_echo "$ac_ct_LIPO" >&6; }
  5726. else
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5728. $as_echo "no" >&6; }
  5729. fi
  5730. if test "x$ac_ct_LIPO" = x; then
  5731. LIPO=":"
  5732. else
  5733. case $cross_compiling:$ac_tool_warned in
  5734. yes:)
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5736. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5737. ac_tool_warned=yes ;;
  5738. esac
  5739. LIPO=$ac_ct_LIPO
  5740. fi
  5741. else
  5742. LIPO="$ac_cv_prog_LIPO"
  5743. fi
  5744. if test -n "$ac_tool_prefix"; then
  5745. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5746. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5748. $as_echo_n "checking for $ac_word... " >&6; }
  5749. if ${ac_cv_prog_OTOOL+:} false; then :
  5750. $as_echo_n "(cached) " >&6
  5751. else
  5752. if test -n "$OTOOL"; then
  5753. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5754. else
  5755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5756. for as_dir in $PATH
  5757. do
  5758. IFS=$as_save_IFS
  5759. test -z "$as_dir" && as_dir=.
  5760. for ac_exec_ext in '' $ac_executable_extensions; do
  5761. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5762. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5764. break 2
  5765. fi
  5766. done
  5767. done
  5768. IFS=$as_save_IFS
  5769. fi
  5770. fi
  5771. OTOOL=$ac_cv_prog_OTOOL
  5772. if test -n "$OTOOL"; then
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5774. $as_echo "$OTOOL" >&6; }
  5775. else
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5777. $as_echo "no" >&6; }
  5778. fi
  5779. fi
  5780. if test -z "$ac_cv_prog_OTOOL"; then
  5781. ac_ct_OTOOL=$OTOOL
  5782. # Extract the first word of "otool", so it can be a program name with args.
  5783. set dummy otool; ac_word=$2
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5785. $as_echo_n "checking for $ac_word... " >&6; }
  5786. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5787. $as_echo_n "(cached) " >&6
  5788. else
  5789. if test -n "$ac_ct_OTOOL"; then
  5790. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5791. else
  5792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5793. for as_dir in $PATH
  5794. do
  5795. IFS=$as_save_IFS
  5796. test -z "$as_dir" && as_dir=.
  5797. for ac_exec_ext in '' $ac_executable_extensions; do
  5798. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5799. ac_cv_prog_ac_ct_OTOOL="otool"
  5800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5801. break 2
  5802. fi
  5803. done
  5804. done
  5805. IFS=$as_save_IFS
  5806. fi
  5807. fi
  5808. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5809. if test -n "$ac_ct_OTOOL"; then
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5811. $as_echo "$ac_ct_OTOOL" >&6; }
  5812. else
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5814. $as_echo "no" >&6; }
  5815. fi
  5816. if test "x$ac_ct_OTOOL" = x; then
  5817. OTOOL=":"
  5818. else
  5819. case $cross_compiling:$ac_tool_warned in
  5820. yes:)
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5822. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5823. ac_tool_warned=yes ;;
  5824. esac
  5825. OTOOL=$ac_ct_OTOOL
  5826. fi
  5827. else
  5828. OTOOL="$ac_cv_prog_OTOOL"
  5829. fi
  5830. if test -n "$ac_tool_prefix"; then
  5831. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5832. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5834. $as_echo_n "checking for $ac_word... " >&6; }
  5835. if ${ac_cv_prog_OTOOL64+:} false; then :
  5836. $as_echo_n "(cached) " >&6
  5837. else
  5838. if test -n "$OTOOL64"; then
  5839. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5840. else
  5841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5842. for as_dir in $PATH
  5843. do
  5844. IFS=$as_save_IFS
  5845. test -z "$as_dir" && as_dir=.
  5846. for ac_exec_ext in '' $ac_executable_extensions; do
  5847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5848. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5850. break 2
  5851. fi
  5852. done
  5853. done
  5854. IFS=$as_save_IFS
  5855. fi
  5856. fi
  5857. OTOOL64=$ac_cv_prog_OTOOL64
  5858. if test -n "$OTOOL64"; then
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5860. $as_echo "$OTOOL64" >&6; }
  5861. else
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5863. $as_echo "no" >&6; }
  5864. fi
  5865. fi
  5866. if test -z "$ac_cv_prog_OTOOL64"; then
  5867. ac_ct_OTOOL64=$OTOOL64
  5868. # Extract the first word of "otool64", so it can be a program name with args.
  5869. set dummy otool64; ac_word=$2
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5871. $as_echo_n "checking for $ac_word... " >&6; }
  5872. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5873. $as_echo_n "(cached) " >&6
  5874. else
  5875. if test -n "$ac_ct_OTOOL64"; then
  5876. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5877. else
  5878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5879. for as_dir in $PATH
  5880. do
  5881. IFS=$as_save_IFS
  5882. test -z "$as_dir" && as_dir=.
  5883. for ac_exec_ext in '' $ac_executable_extensions; do
  5884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5885. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5887. break 2
  5888. fi
  5889. done
  5890. done
  5891. IFS=$as_save_IFS
  5892. fi
  5893. fi
  5894. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5895. if test -n "$ac_ct_OTOOL64"; then
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5897. $as_echo "$ac_ct_OTOOL64" >&6; }
  5898. else
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5900. $as_echo "no" >&6; }
  5901. fi
  5902. if test "x$ac_ct_OTOOL64" = x; then
  5903. OTOOL64=":"
  5904. else
  5905. case $cross_compiling:$ac_tool_warned in
  5906. yes:)
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5908. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5909. ac_tool_warned=yes ;;
  5910. esac
  5911. OTOOL64=$ac_ct_OTOOL64
  5912. fi
  5913. else
  5914. OTOOL64="$ac_cv_prog_OTOOL64"
  5915. fi
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5917. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5918. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5919. $as_echo_n "(cached) " >&6
  5920. else
  5921. lt_cv_apple_cc_single_mod=no
  5922. if test -z "${LT_MULTI_MODULE}"; then
  5923. # By default we will add the -single_module flag. You can override
  5924. # by either setting the environment variable LT_MULTI_MODULE
  5925. # non-empty at configure time, or by adding -multi_module to the
  5926. # link flags.
  5927. rm -rf libconftest.dylib*
  5928. echo "int foo(void){return 1;}" > conftest.c
  5929. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5930. -dynamiclib -Wl,-single_module conftest.c" >&5
  5931. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5932. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5933. _lt_result=$?
  5934. # If there is a non-empty error log, and "single_module"
  5935. # appears in it, assume the flag caused a linker warning
  5936. if test -s conftest.err && $GREP single_module conftest.err; then
  5937. cat conftest.err >&5
  5938. # Otherwise, if the output was created with a 0 exit code from
  5939. # the compiler, it worked.
  5940. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5941. lt_cv_apple_cc_single_mod=yes
  5942. else
  5943. cat conftest.err >&5
  5944. fi
  5945. rm -rf libconftest.dylib*
  5946. rm -f conftest.*
  5947. fi
  5948. fi
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5950. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5952. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5953. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. lt_cv_ld_exported_symbols_list=no
  5957. save_LDFLAGS=$LDFLAGS
  5958. echo "_main" > conftest.sym
  5959. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5961. /* end confdefs.h. */
  5962. int
  5963. main ()
  5964. {
  5965. ;
  5966. return 0;
  5967. }
  5968. _ACEOF
  5969. if ac_fn_c_try_link "$LINENO"; then :
  5970. lt_cv_ld_exported_symbols_list=yes
  5971. else
  5972. lt_cv_ld_exported_symbols_list=no
  5973. fi
  5974. rm -f core conftest.err conftest.$ac_objext \
  5975. conftest$ac_exeext conftest.$ac_ext
  5976. LDFLAGS="$save_LDFLAGS"
  5977. fi
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5979. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5981. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5982. if ${lt_cv_ld_force_load+:} false; then :
  5983. $as_echo_n "(cached) " >&6
  5984. else
  5985. lt_cv_ld_force_load=no
  5986. cat > conftest.c << _LT_EOF
  5987. int forced_loaded() { return 2;}
  5988. _LT_EOF
  5989. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5990. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5991. echo "$AR cru libconftest.a conftest.o" >&5
  5992. $AR cru libconftest.a conftest.o 2>&5
  5993. echo "$RANLIB libconftest.a" >&5
  5994. $RANLIB libconftest.a 2>&5
  5995. cat > conftest.c << _LT_EOF
  5996. int main() { return 0;}
  5997. _LT_EOF
  5998. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5999. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6000. _lt_result=$?
  6001. if test -s conftest.err && $GREP force_load conftest.err; then
  6002. cat conftest.err >&5
  6003. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6004. lt_cv_ld_force_load=yes
  6005. else
  6006. cat conftest.err >&5
  6007. fi
  6008. rm -f conftest.err libconftest.a conftest conftest.c
  6009. rm -rf conftest.dSYM
  6010. fi
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6012. $as_echo "$lt_cv_ld_force_load" >&6; }
  6013. case $host_os in
  6014. rhapsody* | darwin1.[012])
  6015. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6016. darwin1.*)
  6017. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6018. darwin*) # darwin 5.x on
  6019. # if running on 10.5 or later, the deployment target defaults
  6020. # to the OS version, if on x86, and 10.4, the deployment
  6021. # target defaults to 10.4. Don't you love it?
  6022. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6023. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6024. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6025. 10.[012]*)
  6026. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6027. 10.*)
  6028. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6029. esac
  6030. ;;
  6031. esac
  6032. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6033. _lt_dar_single_mod='$single_module'
  6034. fi
  6035. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6036. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6037. else
  6038. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6039. fi
  6040. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6041. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6042. else
  6043. _lt_dsymutil=
  6044. fi
  6045. ;;
  6046. esac
  6047. ac_ext=c
  6048. ac_cpp='$CPP $CPPFLAGS'
  6049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6053. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6054. # On Suns, sometimes $CPP names a directory.
  6055. if test -n "$CPP" && test -d "$CPP"; then
  6056. CPP=
  6057. fi
  6058. if test -z "$CPP"; then
  6059. if ${ac_cv_prog_CPP+:} false; then :
  6060. $as_echo_n "(cached) " >&6
  6061. else
  6062. # Double quotes because CPP needs to be expanded
  6063. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6064. do
  6065. ac_preproc_ok=false
  6066. for ac_c_preproc_warn_flag in '' yes
  6067. do
  6068. # Use a header file that comes with gcc, so configuring glibc
  6069. # with a fresh cross-compiler works.
  6070. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6071. # <limits.h> exists even on freestanding compilers.
  6072. # On the NeXT, cc -E runs the code through the compiler's parser,
  6073. # not just through cpp. "Syntax error" is here to catch this case.
  6074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6075. /* end confdefs.h. */
  6076. #ifdef __STDC__
  6077. # include <limits.h>
  6078. #else
  6079. # include <assert.h>
  6080. #endif
  6081. Syntax error
  6082. _ACEOF
  6083. if ac_fn_c_try_cpp "$LINENO"; then :
  6084. else
  6085. # Broken: fails on valid input.
  6086. continue
  6087. fi
  6088. rm -f conftest.err conftest.i conftest.$ac_ext
  6089. # OK, works on sane cases. Now check whether nonexistent headers
  6090. # can be detected and how.
  6091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6092. /* end confdefs.h. */
  6093. #include <ac_nonexistent.h>
  6094. _ACEOF
  6095. if ac_fn_c_try_cpp "$LINENO"; then :
  6096. # Broken: success on invalid input.
  6097. continue
  6098. else
  6099. # Passes both tests.
  6100. ac_preproc_ok=:
  6101. break
  6102. fi
  6103. rm -f conftest.err conftest.i conftest.$ac_ext
  6104. done
  6105. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6106. rm -f conftest.i conftest.err conftest.$ac_ext
  6107. if $ac_preproc_ok; then :
  6108. break
  6109. fi
  6110. done
  6111. ac_cv_prog_CPP=$CPP
  6112. fi
  6113. CPP=$ac_cv_prog_CPP
  6114. else
  6115. ac_cv_prog_CPP=$CPP
  6116. fi
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6118. $as_echo "$CPP" >&6; }
  6119. ac_preproc_ok=false
  6120. for ac_c_preproc_warn_flag in '' yes
  6121. do
  6122. # Use a header file that comes with gcc, so configuring glibc
  6123. # with a fresh cross-compiler works.
  6124. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6125. # <limits.h> exists even on freestanding compilers.
  6126. # On the NeXT, cc -E runs the code through the compiler's parser,
  6127. # not just through cpp. "Syntax error" is here to catch this case.
  6128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6129. /* end confdefs.h. */
  6130. #ifdef __STDC__
  6131. # include <limits.h>
  6132. #else
  6133. # include <assert.h>
  6134. #endif
  6135. Syntax error
  6136. _ACEOF
  6137. if ac_fn_c_try_cpp "$LINENO"; then :
  6138. else
  6139. # Broken: fails on valid input.
  6140. continue
  6141. fi
  6142. rm -f conftest.err conftest.i conftest.$ac_ext
  6143. # OK, works on sane cases. Now check whether nonexistent headers
  6144. # can be detected and how.
  6145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6146. /* end confdefs.h. */
  6147. #include <ac_nonexistent.h>
  6148. _ACEOF
  6149. if ac_fn_c_try_cpp "$LINENO"; then :
  6150. # Broken: success on invalid input.
  6151. continue
  6152. else
  6153. # Passes both tests.
  6154. ac_preproc_ok=:
  6155. break
  6156. fi
  6157. rm -f conftest.err conftest.i conftest.$ac_ext
  6158. done
  6159. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6160. rm -f conftest.i conftest.err conftest.$ac_ext
  6161. if $ac_preproc_ok; then :
  6162. else
  6163. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6164. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6165. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6166. See \`config.log' for more details" "$LINENO" 5; }
  6167. fi
  6168. ac_ext=c
  6169. ac_cpp='$CPP $CPPFLAGS'
  6170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6174. $as_echo_n "checking for ANSI C header files... " >&6; }
  6175. if ${ac_cv_header_stdc+:} false; then :
  6176. $as_echo_n "(cached) " >&6
  6177. else
  6178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6179. /* end confdefs.h. */
  6180. #include <stdlib.h>
  6181. #include <stdarg.h>
  6182. #include <string.h>
  6183. #include <float.h>
  6184. int
  6185. main ()
  6186. {
  6187. ;
  6188. return 0;
  6189. }
  6190. _ACEOF
  6191. if ac_fn_c_try_compile "$LINENO"; then :
  6192. ac_cv_header_stdc=yes
  6193. else
  6194. ac_cv_header_stdc=no
  6195. fi
  6196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6197. if test $ac_cv_header_stdc = yes; then
  6198. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6200. /* end confdefs.h. */
  6201. #include <string.h>
  6202. _ACEOF
  6203. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6204. $EGREP "memchr" >/dev/null 2>&1; then :
  6205. else
  6206. ac_cv_header_stdc=no
  6207. fi
  6208. rm -f conftest*
  6209. fi
  6210. if test $ac_cv_header_stdc = yes; then
  6211. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6213. /* end confdefs.h. */
  6214. #include <stdlib.h>
  6215. _ACEOF
  6216. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6217. $EGREP "free" >/dev/null 2>&1; then :
  6218. else
  6219. ac_cv_header_stdc=no
  6220. fi
  6221. rm -f conftest*
  6222. fi
  6223. if test $ac_cv_header_stdc = yes; then
  6224. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6225. if test "$cross_compiling" = yes; then :
  6226. :
  6227. else
  6228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6229. /* end confdefs.h. */
  6230. #include <ctype.h>
  6231. #include <stdlib.h>
  6232. #if ((' ' & 0x0FF) == 0x020)
  6233. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6234. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6235. #else
  6236. # define ISLOWER(c) \
  6237. (('a' <= (c) && (c) <= 'i') \
  6238. || ('j' <= (c) && (c) <= 'r') \
  6239. || ('s' <= (c) && (c) <= 'z'))
  6240. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6241. #endif
  6242. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6243. int
  6244. main ()
  6245. {
  6246. int i;
  6247. for (i = 0; i < 256; i++)
  6248. if (XOR (islower (i), ISLOWER (i))
  6249. || toupper (i) != TOUPPER (i))
  6250. return 2;
  6251. return 0;
  6252. }
  6253. _ACEOF
  6254. if ac_fn_c_try_run "$LINENO"; then :
  6255. else
  6256. ac_cv_header_stdc=no
  6257. fi
  6258. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6259. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6260. fi
  6261. fi
  6262. fi
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6264. $as_echo "$ac_cv_header_stdc" >&6; }
  6265. if test $ac_cv_header_stdc = yes; then
  6266. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6267. fi
  6268. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6269. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6270. inttypes.h stdint.h unistd.h
  6271. do :
  6272. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6273. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6274. "
  6275. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6276. cat >>confdefs.h <<_ACEOF
  6277. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6278. _ACEOF
  6279. fi
  6280. done
  6281. for ac_header in dlfcn.h
  6282. do :
  6283. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6284. "
  6285. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6286. cat >>confdefs.h <<_ACEOF
  6287. #define HAVE_DLFCN_H 1
  6288. _ACEOF
  6289. fi
  6290. done
  6291. # Set options
  6292. enable_win32_dll=yes
  6293. case $host in
  6294. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6295. if test -n "$ac_tool_prefix"; then
  6296. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6297. set dummy ${ac_tool_prefix}as; ac_word=$2
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6299. $as_echo_n "checking for $ac_word... " >&6; }
  6300. if ${ac_cv_prog_AS+:} false; then :
  6301. $as_echo_n "(cached) " >&6
  6302. else
  6303. if test -n "$AS"; then
  6304. ac_cv_prog_AS="$AS" # Let the user override the test.
  6305. else
  6306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6307. for as_dir in $PATH
  6308. do
  6309. IFS=$as_save_IFS
  6310. test -z "$as_dir" && as_dir=.
  6311. for ac_exec_ext in '' $ac_executable_extensions; do
  6312. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6313. ac_cv_prog_AS="${ac_tool_prefix}as"
  6314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6315. break 2
  6316. fi
  6317. done
  6318. done
  6319. IFS=$as_save_IFS
  6320. fi
  6321. fi
  6322. AS=$ac_cv_prog_AS
  6323. if test -n "$AS"; then
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6325. $as_echo "$AS" >&6; }
  6326. else
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6328. $as_echo "no" >&6; }
  6329. fi
  6330. fi
  6331. if test -z "$ac_cv_prog_AS"; then
  6332. ac_ct_AS=$AS
  6333. # Extract the first word of "as", so it can be a program name with args.
  6334. set dummy as; ac_word=$2
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6336. $as_echo_n "checking for $ac_word... " >&6; }
  6337. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6338. $as_echo_n "(cached) " >&6
  6339. else
  6340. if test -n "$ac_ct_AS"; then
  6341. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6342. else
  6343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6344. for as_dir in $PATH
  6345. do
  6346. IFS=$as_save_IFS
  6347. test -z "$as_dir" && as_dir=.
  6348. for ac_exec_ext in '' $ac_executable_extensions; do
  6349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6350. ac_cv_prog_ac_ct_AS="as"
  6351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6352. break 2
  6353. fi
  6354. done
  6355. done
  6356. IFS=$as_save_IFS
  6357. fi
  6358. fi
  6359. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6360. if test -n "$ac_ct_AS"; then
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6362. $as_echo "$ac_ct_AS" >&6; }
  6363. else
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6365. $as_echo "no" >&6; }
  6366. fi
  6367. if test "x$ac_ct_AS" = x; then
  6368. AS="false"
  6369. else
  6370. case $cross_compiling:$ac_tool_warned in
  6371. yes:)
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6373. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6374. ac_tool_warned=yes ;;
  6375. esac
  6376. AS=$ac_ct_AS
  6377. fi
  6378. else
  6379. AS="$ac_cv_prog_AS"
  6380. fi
  6381. if test -n "$ac_tool_prefix"; then
  6382. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6383. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6385. $as_echo_n "checking for $ac_word... " >&6; }
  6386. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6387. $as_echo_n "(cached) " >&6
  6388. else
  6389. if test -n "$DLLTOOL"; then
  6390. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6391. else
  6392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6393. for as_dir in $PATH
  6394. do
  6395. IFS=$as_save_IFS
  6396. test -z "$as_dir" && as_dir=.
  6397. for ac_exec_ext in '' $ac_executable_extensions; do
  6398. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6399. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6401. break 2
  6402. fi
  6403. done
  6404. done
  6405. IFS=$as_save_IFS
  6406. fi
  6407. fi
  6408. DLLTOOL=$ac_cv_prog_DLLTOOL
  6409. if test -n "$DLLTOOL"; then
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6411. $as_echo "$DLLTOOL" >&6; }
  6412. else
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6414. $as_echo "no" >&6; }
  6415. fi
  6416. fi
  6417. if test -z "$ac_cv_prog_DLLTOOL"; then
  6418. ac_ct_DLLTOOL=$DLLTOOL
  6419. # Extract the first word of "dlltool", so it can be a program name with args.
  6420. set dummy dlltool; ac_word=$2
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6422. $as_echo_n "checking for $ac_word... " >&6; }
  6423. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6424. $as_echo_n "(cached) " >&6
  6425. else
  6426. if test -n "$ac_ct_DLLTOOL"; then
  6427. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6428. else
  6429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6430. for as_dir in $PATH
  6431. do
  6432. IFS=$as_save_IFS
  6433. test -z "$as_dir" && as_dir=.
  6434. for ac_exec_ext in '' $ac_executable_extensions; do
  6435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6436. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6438. break 2
  6439. fi
  6440. done
  6441. done
  6442. IFS=$as_save_IFS
  6443. fi
  6444. fi
  6445. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6446. if test -n "$ac_ct_DLLTOOL"; then
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6448. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6449. else
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6451. $as_echo "no" >&6; }
  6452. fi
  6453. if test "x$ac_ct_DLLTOOL" = x; then
  6454. DLLTOOL="false"
  6455. else
  6456. case $cross_compiling:$ac_tool_warned in
  6457. yes:)
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6459. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6460. ac_tool_warned=yes ;;
  6461. esac
  6462. DLLTOOL=$ac_ct_DLLTOOL
  6463. fi
  6464. else
  6465. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6466. fi
  6467. if test -n "$ac_tool_prefix"; then
  6468. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6469. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6471. $as_echo_n "checking for $ac_word... " >&6; }
  6472. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6473. $as_echo_n "(cached) " >&6
  6474. else
  6475. if test -n "$OBJDUMP"; then
  6476. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6477. else
  6478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6479. for as_dir in $PATH
  6480. do
  6481. IFS=$as_save_IFS
  6482. test -z "$as_dir" && as_dir=.
  6483. for ac_exec_ext in '' $ac_executable_extensions; do
  6484. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6485. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6487. break 2
  6488. fi
  6489. done
  6490. done
  6491. IFS=$as_save_IFS
  6492. fi
  6493. fi
  6494. OBJDUMP=$ac_cv_prog_OBJDUMP
  6495. if test -n "$OBJDUMP"; then
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6497. $as_echo "$OBJDUMP" >&6; }
  6498. else
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6500. $as_echo "no" >&6; }
  6501. fi
  6502. fi
  6503. if test -z "$ac_cv_prog_OBJDUMP"; then
  6504. ac_ct_OBJDUMP=$OBJDUMP
  6505. # Extract the first word of "objdump", so it can be a program name with args.
  6506. set dummy objdump; ac_word=$2
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6508. $as_echo_n "checking for $ac_word... " >&6; }
  6509. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6510. $as_echo_n "(cached) " >&6
  6511. else
  6512. if test -n "$ac_ct_OBJDUMP"; then
  6513. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6514. else
  6515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6516. for as_dir in $PATH
  6517. do
  6518. IFS=$as_save_IFS
  6519. test -z "$as_dir" && as_dir=.
  6520. for ac_exec_ext in '' $ac_executable_extensions; do
  6521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6522. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6524. break 2
  6525. fi
  6526. done
  6527. done
  6528. IFS=$as_save_IFS
  6529. fi
  6530. fi
  6531. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6532. if test -n "$ac_ct_OBJDUMP"; then
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6534. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6535. else
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6537. $as_echo "no" >&6; }
  6538. fi
  6539. if test "x$ac_ct_OBJDUMP" = x; then
  6540. OBJDUMP="false"
  6541. else
  6542. case $cross_compiling:$ac_tool_warned in
  6543. yes:)
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6545. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6546. ac_tool_warned=yes ;;
  6547. esac
  6548. OBJDUMP=$ac_ct_OBJDUMP
  6549. fi
  6550. else
  6551. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6552. fi
  6553. ;;
  6554. esac
  6555. test -z "$AS" && AS=as
  6556. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6557. test -z "$OBJDUMP" && OBJDUMP=objdump
  6558. enable_dlopen=no
  6559. # Check whether --enable-shared was given.
  6560. if test "${enable_shared+set}" = set; then :
  6561. enableval=$enable_shared; p=${PACKAGE-default}
  6562. case $enableval in
  6563. yes) enable_shared=yes ;;
  6564. no) enable_shared=no ;;
  6565. *)
  6566. enable_shared=no
  6567. # Look at the argument we got. We use all the common list separators.
  6568. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6569. for pkg in $enableval; do
  6570. IFS="$lt_save_ifs"
  6571. if test "X$pkg" = "X$p"; then
  6572. enable_shared=yes
  6573. fi
  6574. done
  6575. IFS="$lt_save_ifs"
  6576. ;;
  6577. esac
  6578. else
  6579. enable_shared=yes
  6580. fi
  6581. # Check whether --enable-static was given.
  6582. if test "${enable_static+set}" = set; then :
  6583. enableval=$enable_static; p=${PACKAGE-default}
  6584. case $enableval in
  6585. yes) enable_static=yes ;;
  6586. no) enable_static=no ;;
  6587. *)
  6588. enable_static=no
  6589. # Look at the argument we got. We use all the common list separators.
  6590. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6591. for pkg in $enableval; do
  6592. IFS="$lt_save_ifs"
  6593. if test "X$pkg" = "X$p"; then
  6594. enable_static=yes
  6595. fi
  6596. done
  6597. IFS="$lt_save_ifs"
  6598. ;;
  6599. esac
  6600. else
  6601. enable_static=yes
  6602. fi
  6603. # Check whether --with-pic was given.
  6604. if test "${with_pic+set}" = set; then :
  6605. withval=$with_pic; lt_p=${PACKAGE-default}
  6606. case $withval in
  6607. yes|no) pic_mode=$withval ;;
  6608. *)
  6609. pic_mode=default
  6610. # Look at the argument we got. We use all the common list separators.
  6611. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6612. for lt_pkg in $withval; do
  6613. IFS="$lt_save_ifs"
  6614. if test "X$lt_pkg" = "X$lt_p"; then
  6615. pic_mode=yes
  6616. fi
  6617. done
  6618. IFS="$lt_save_ifs"
  6619. ;;
  6620. esac
  6621. else
  6622. pic_mode=default
  6623. fi
  6624. test -z "$pic_mode" && pic_mode=default
  6625. # Check whether --enable-fast-install was given.
  6626. if test "${enable_fast_install+set}" = set; then :
  6627. enableval=$enable_fast_install; p=${PACKAGE-default}
  6628. case $enableval in
  6629. yes) enable_fast_install=yes ;;
  6630. no) enable_fast_install=no ;;
  6631. *)
  6632. enable_fast_install=no
  6633. # Look at the argument we got. We use all the common list separators.
  6634. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6635. for pkg in $enableval; do
  6636. IFS="$lt_save_ifs"
  6637. if test "X$pkg" = "X$p"; then
  6638. enable_fast_install=yes
  6639. fi
  6640. done
  6641. IFS="$lt_save_ifs"
  6642. ;;
  6643. esac
  6644. else
  6645. enable_fast_install=yes
  6646. fi
  6647. # This can be used to rebuild libtool when needed
  6648. LIBTOOL_DEPS="$ltmain"
  6649. # Always use our own libtool.
  6650. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6651. test -z "$LN_S" && LN_S="ln -s"
  6652. if test -n "${ZSH_VERSION+set}" ; then
  6653. setopt NO_GLOB_SUBST
  6654. fi
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6656. $as_echo_n "checking for objdir... " >&6; }
  6657. if ${lt_cv_objdir+:} false; then :
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. rm -f .libs 2>/dev/null
  6661. mkdir .libs 2>/dev/null
  6662. if test -d .libs; then
  6663. lt_cv_objdir=.libs
  6664. else
  6665. # MS-DOS does not allow filenames that begin with a dot.
  6666. lt_cv_objdir=_libs
  6667. fi
  6668. rmdir .libs 2>/dev/null
  6669. fi
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6671. $as_echo "$lt_cv_objdir" >&6; }
  6672. objdir=$lt_cv_objdir
  6673. cat >>confdefs.h <<_ACEOF
  6674. #define LT_OBJDIR "$lt_cv_objdir/"
  6675. _ACEOF
  6676. case $host_os in
  6677. aix3*)
  6678. # AIX sometimes has problems with the GCC collect2 program. For some
  6679. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6680. # vanish in a puff of smoke.
  6681. if test "X${COLLECT_NAMES+set}" != Xset; then
  6682. COLLECT_NAMES=
  6683. export COLLECT_NAMES
  6684. fi
  6685. ;;
  6686. esac
  6687. # Global variables:
  6688. ofile=libtool
  6689. can_build_shared=yes
  6690. # All known linkers require a `.a' archive for static linking (except MSVC,
  6691. # which needs '.lib').
  6692. libext=a
  6693. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6694. old_CC="$CC"
  6695. old_CFLAGS="$CFLAGS"
  6696. # Set sane defaults for various variables
  6697. test -z "$CC" && CC=cc
  6698. test -z "$LTCC" && LTCC=$CC
  6699. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6700. test -z "$LD" && LD=ld
  6701. test -z "$ac_objext" && ac_objext=o
  6702. for cc_temp in $compiler""; do
  6703. case $cc_temp in
  6704. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6705. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6706. \-*) ;;
  6707. *) break;;
  6708. esac
  6709. done
  6710. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6711. # Only perform the check for file, if the check method requires it
  6712. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6713. case $deplibs_check_method in
  6714. file_magic*)
  6715. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6717. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6718. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6719. $as_echo_n "(cached) " >&6
  6720. else
  6721. case $MAGIC_CMD in
  6722. [\\/*] | ?:[\\/]*)
  6723. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6724. ;;
  6725. *)
  6726. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6727. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6728. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6729. for ac_dir in $ac_dummy; do
  6730. IFS="$lt_save_ifs"
  6731. test -z "$ac_dir" && ac_dir=.
  6732. if test -f $ac_dir/${ac_tool_prefix}file; then
  6733. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6734. if test -n "$file_magic_test_file"; then
  6735. case $deplibs_check_method in
  6736. "file_magic "*)
  6737. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6738. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6739. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6740. $EGREP "$file_magic_regex" > /dev/null; then
  6741. :
  6742. else
  6743. cat <<_LT_EOF 1>&2
  6744. *** Warning: the command libtool uses to detect shared libraries,
  6745. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6746. *** The result is that libtool may fail to recognize shared libraries
  6747. *** as such. This will affect the creation of libtool libraries that
  6748. *** depend on shared libraries, but programs linked with such libtool
  6749. *** libraries will work regardless of this problem. Nevertheless, you
  6750. *** may want to report the problem to your system manager and/or to
  6751. *** bug-libtool@gnu.org
  6752. _LT_EOF
  6753. fi ;;
  6754. esac
  6755. fi
  6756. break
  6757. fi
  6758. done
  6759. IFS="$lt_save_ifs"
  6760. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6761. ;;
  6762. esac
  6763. fi
  6764. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6765. if test -n "$MAGIC_CMD"; then
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6767. $as_echo "$MAGIC_CMD" >&6; }
  6768. else
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6770. $as_echo "no" >&6; }
  6771. fi
  6772. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6773. if test -n "$ac_tool_prefix"; then
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6775. $as_echo_n "checking for file... " >&6; }
  6776. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6777. $as_echo_n "(cached) " >&6
  6778. else
  6779. case $MAGIC_CMD in
  6780. [\\/*] | ?:[\\/]*)
  6781. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6782. ;;
  6783. *)
  6784. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6785. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6786. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6787. for ac_dir in $ac_dummy; do
  6788. IFS="$lt_save_ifs"
  6789. test -z "$ac_dir" && ac_dir=.
  6790. if test -f $ac_dir/file; then
  6791. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6792. if test -n "$file_magic_test_file"; then
  6793. case $deplibs_check_method in
  6794. "file_magic "*)
  6795. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6796. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6797. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6798. $EGREP "$file_magic_regex" > /dev/null; then
  6799. :
  6800. else
  6801. cat <<_LT_EOF 1>&2
  6802. *** Warning: the command libtool uses to detect shared libraries,
  6803. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6804. *** The result is that libtool may fail to recognize shared libraries
  6805. *** as such. This will affect the creation of libtool libraries that
  6806. *** depend on shared libraries, but programs linked with such libtool
  6807. *** libraries will work regardless of this problem. Nevertheless, you
  6808. *** may want to report the problem to your system manager and/or to
  6809. *** bug-libtool@gnu.org
  6810. _LT_EOF
  6811. fi ;;
  6812. esac
  6813. fi
  6814. break
  6815. fi
  6816. done
  6817. IFS="$lt_save_ifs"
  6818. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6819. ;;
  6820. esac
  6821. fi
  6822. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6823. if test -n "$MAGIC_CMD"; then
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6825. $as_echo "$MAGIC_CMD" >&6; }
  6826. else
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6828. $as_echo "no" >&6; }
  6829. fi
  6830. else
  6831. MAGIC_CMD=:
  6832. fi
  6833. fi
  6834. fi
  6835. ;;
  6836. esac
  6837. # Use C for the default configuration in the libtool script
  6838. lt_save_CC="$CC"
  6839. ac_ext=c
  6840. ac_cpp='$CPP $CPPFLAGS'
  6841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6844. # Source file extension for C test sources.
  6845. ac_ext=c
  6846. # Object file extension for compiled C test sources.
  6847. objext=o
  6848. objext=$objext
  6849. # Code to be used in simple compile tests
  6850. lt_simple_compile_test_code="int some_variable = 0;"
  6851. # Code to be used in simple link tests
  6852. lt_simple_link_test_code='int main(){return(0);}'
  6853. # If no C compiler was specified, use CC.
  6854. LTCC=${LTCC-"$CC"}
  6855. # If no C compiler flags were specified, use CFLAGS.
  6856. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6857. # Allow CC to be a program name with arguments.
  6858. compiler=$CC
  6859. # Save the default compiler, since it gets overwritten when the other
  6860. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6861. compiler_DEFAULT=$CC
  6862. # save warnings/boilerplate of simple test code
  6863. ac_outfile=conftest.$ac_objext
  6864. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6865. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6866. _lt_compiler_boilerplate=`cat conftest.err`
  6867. $RM conftest*
  6868. ac_outfile=conftest.$ac_objext
  6869. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6870. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6871. _lt_linker_boilerplate=`cat conftest.err`
  6872. $RM -r conftest*
  6873. ## CAVEAT EMPTOR:
  6874. ## There is no encapsulation within the following macros, do not change
  6875. ## the running order or otherwise move them around unless you know exactly
  6876. ## what you are doing...
  6877. if test -n "$compiler"; then
  6878. lt_prog_compiler_no_builtin_flag=
  6879. if test "$GCC" = yes; then
  6880. case $cc_basename in
  6881. nvcc*)
  6882. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6883. *)
  6884. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6885. esac
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6887. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6888. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6889. $as_echo_n "(cached) " >&6
  6890. else
  6891. lt_cv_prog_compiler_rtti_exceptions=no
  6892. ac_outfile=conftest.$ac_objext
  6893. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6894. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6895. # Insert the option either (1) after the last *FLAGS variable, or
  6896. # (2) before a word containing "conftest.", or (3) at the end.
  6897. # Note that $ac_compile itself does not contain backslashes and begins
  6898. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6899. # The option is referenced via a variable to avoid confusing sed.
  6900. lt_compile=`echo "$ac_compile" | $SED \
  6901. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6902. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6903. -e 's:$: $lt_compiler_flag:'`
  6904. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6905. (eval "$lt_compile" 2>conftest.err)
  6906. ac_status=$?
  6907. cat conftest.err >&5
  6908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6909. if (exit $ac_status) && test -s "$ac_outfile"; then
  6910. # The compiler can only warn and ignore the option if not recognized
  6911. # So say no if there are warnings other than the usual output.
  6912. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6913. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6914. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6915. lt_cv_prog_compiler_rtti_exceptions=yes
  6916. fi
  6917. fi
  6918. $RM conftest*
  6919. fi
  6920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6921. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6922. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6923. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6924. else
  6925. :
  6926. fi
  6927. fi
  6928. lt_prog_compiler_wl=
  6929. lt_prog_compiler_pic=
  6930. lt_prog_compiler_static=
  6931. if test "$GCC" = yes; then
  6932. lt_prog_compiler_wl='-Wl,'
  6933. lt_prog_compiler_static='-static'
  6934. case $host_os in
  6935. aix*)
  6936. # All AIX code is PIC.
  6937. if test "$host_cpu" = ia64; then
  6938. # AIX 5 now supports IA64 processor
  6939. lt_prog_compiler_static='-Bstatic'
  6940. fi
  6941. ;;
  6942. amigaos*)
  6943. case $host_cpu in
  6944. powerpc)
  6945. # see comment about AmigaOS4 .so support
  6946. lt_prog_compiler_pic='-fPIC'
  6947. ;;
  6948. m68k)
  6949. # FIXME: we need at least 68020 code to build shared libraries, but
  6950. # adding the `-m68020' flag to GCC prevents building anything better,
  6951. # like `-m68040'.
  6952. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6953. ;;
  6954. esac
  6955. ;;
  6956. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6957. # PIC is the default for these OSes.
  6958. ;;
  6959. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6960. # This hack is so that the source file can tell whether it is being
  6961. # built for inclusion in a dll (and should export symbols for example).
  6962. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6963. # (--disable-auto-import) libraries
  6964. lt_prog_compiler_pic='-DDLL_EXPORT'
  6965. ;;
  6966. darwin* | rhapsody*)
  6967. # PIC is the default on this platform
  6968. # Common symbols not allowed in MH_DYLIB files
  6969. lt_prog_compiler_pic='-fno-common'
  6970. ;;
  6971. haiku*)
  6972. # PIC is the default for Haiku.
  6973. # The "-static" flag exists, but is broken.
  6974. lt_prog_compiler_static=
  6975. ;;
  6976. hpux*)
  6977. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6978. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6979. # sets the default TLS model and affects inlining.
  6980. case $host_cpu in
  6981. hppa*64*)
  6982. # +Z the default
  6983. ;;
  6984. *)
  6985. lt_prog_compiler_pic='-fPIC'
  6986. ;;
  6987. esac
  6988. ;;
  6989. interix[3-9]*)
  6990. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6991. # Instead, we relocate shared libraries at runtime.
  6992. ;;
  6993. msdosdjgpp*)
  6994. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6995. # on systems that don't support them.
  6996. lt_prog_compiler_can_build_shared=no
  6997. enable_shared=no
  6998. ;;
  6999. *nto* | *qnx*)
  7000. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7001. # it will coredump.
  7002. lt_prog_compiler_pic='-fPIC -shared'
  7003. ;;
  7004. sysv4*MP*)
  7005. if test -d /usr/nec; then
  7006. lt_prog_compiler_pic=-Kconform_pic
  7007. fi
  7008. ;;
  7009. *)
  7010. lt_prog_compiler_pic='-fPIC'
  7011. ;;
  7012. esac
  7013. case $cc_basename in
  7014. nvcc*) # Cuda Compiler Driver 2.2
  7015. lt_prog_compiler_wl='-Xlinker '
  7016. if test -n "$lt_prog_compiler_pic"; then
  7017. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7018. fi
  7019. ;;
  7020. esac
  7021. else
  7022. # PORTME Check for flag to pass linker flags through the system compiler.
  7023. case $host_os in
  7024. aix*)
  7025. lt_prog_compiler_wl='-Wl,'
  7026. if test "$host_cpu" = ia64; then
  7027. # AIX 5 now supports IA64 processor
  7028. lt_prog_compiler_static='-Bstatic'
  7029. else
  7030. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7031. fi
  7032. ;;
  7033. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7034. # This hack is so that the source file can tell whether it is being
  7035. # built for inclusion in a dll (and should export symbols for example).
  7036. lt_prog_compiler_pic='-DDLL_EXPORT'
  7037. ;;
  7038. hpux9* | hpux10* | hpux11*)
  7039. lt_prog_compiler_wl='-Wl,'
  7040. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7041. # not for PA HP-UX.
  7042. case $host_cpu in
  7043. hppa*64*|ia64*)
  7044. # +Z the default
  7045. ;;
  7046. *)
  7047. lt_prog_compiler_pic='+Z'
  7048. ;;
  7049. esac
  7050. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7051. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7052. ;;
  7053. irix5* | irix6* | nonstopux*)
  7054. lt_prog_compiler_wl='-Wl,'
  7055. # PIC (with -KPIC) is the default.
  7056. lt_prog_compiler_static='-non_shared'
  7057. ;;
  7058. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7059. case $cc_basename in
  7060. # old Intel for x86_64 which still supported -KPIC.
  7061. ecc*)
  7062. lt_prog_compiler_wl='-Wl,'
  7063. lt_prog_compiler_pic='-KPIC'
  7064. lt_prog_compiler_static='-static'
  7065. ;;
  7066. # icc used to be incompatible with GCC.
  7067. # ICC 10 doesn't accept -KPIC any more.
  7068. icc* | ifort*)
  7069. lt_prog_compiler_wl='-Wl,'
  7070. lt_prog_compiler_pic='-fPIC'
  7071. lt_prog_compiler_static='-static'
  7072. ;;
  7073. # Lahey Fortran 8.1.
  7074. lf95*)
  7075. lt_prog_compiler_wl='-Wl,'
  7076. lt_prog_compiler_pic='--shared'
  7077. lt_prog_compiler_static='--static'
  7078. ;;
  7079. nagfor*)
  7080. # NAG Fortran compiler
  7081. lt_prog_compiler_wl='-Wl,-Wl,,'
  7082. lt_prog_compiler_pic='-PIC'
  7083. lt_prog_compiler_static='-Bstatic'
  7084. ;;
  7085. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7086. # Portland Group compilers (*not* the Pentium gcc compiler,
  7087. # which looks to be a dead project)
  7088. lt_prog_compiler_wl='-Wl,'
  7089. lt_prog_compiler_pic='-fpic'
  7090. lt_prog_compiler_static='-Bstatic'
  7091. ;;
  7092. ccc*)
  7093. lt_prog_compiler_wl='-Wl,'
  7094. # All Alpha code is PIC.
  7095. lt_prog_compiler_static='-non_shared'
  7096. ;;
  7097. xl* | bgxl* | bgf* | mpixl*)
  7098. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7099. lt_prog_compiler_wl='-Wl,'
  7100. lt_prog_compiler_pic='-qpic'
  7101. lt_prog_compiler_static='-qstaticlink'
  7102. ;;
  7103. *)
  7104. case `$CC -V 2>&1 | sed 5q` in
  7105. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7106. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7107. lt_prog_compiler_pic='-KPIC'
  7108. lt_prog_compiler_static='-Bstatic'
  7109. lt_prog_compiler_wl=''
  7110. ;;
  7111. *Sun\ F* | *Sun*Fortran*)
  7112. lt_prog_compiler_pic='-KPIC'
  7113. lt_prog_compiler_static='-Bstatic'
  7114. lt_prog_compiler_wl='-Qoption ld '
  7115. ;;
  7116. *Sun\ C*)
  7117. # Sun C 5.9
  7118. lt_prog_compiler_pic='-KPIC'
  7119. lt_prog_compiler_static='-Bstatic'
  7120. lt_prog_compiler_wl='-Wl,'
  7121. ;;
  7122. *Intel*\ [CF]*Compiler*)
  7123. lt_prog_compiler_wl='-Wl,'
  7124. lt_prog_compiler_pic='-fPIC'
  7125. lt_prog_compiler_static='-static'
  7126. ;;
  7127. *Portland\ Group*)
  7128. lt_prog_compiler_wl='-Wl,'
  7129. lt_prog_compiler_pic='-fpic'
  7130. lt_prog_compiler_static='-Bstatic'
  7131. ;;
  7132. esac
  7133. ;;
  7134. esac
  7135. ;;
  7136. newsos6)
  7137. lt_prog_compiler_pic='-KPIC'
  7138. lt_prog_compiler_static='-Bstatic'
  7139. ;;
  7140. *nto* | *qnx*)
  7141. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7142. # it will coredump.
  7143. lt_prog_compiler_pic='-fPIC -shared'
  7144. ;;
  7145. osf3* | osf4* | osf5*)
  7146. lt_prog_compiler_wl='-Wl,'
  7147. # All OSF/1 code is PIC.
  7148. lt_prog_compiler_static='-non_shared'
  7149. ;;
  7150. rdos*)
  7151. lt_prog_compiler_static='-non_shared'
  7152. ;;
  7153. solaris*)
  7154. lt_prog_compiler_pic='-KPIC'
  7155. lt_prog_compiler_static='-Bstatic'
  7156. case $cc_basename in
  7157. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7158. lt_prog_compiler_wl='-Qoption ld ';;
  7159. *)
  7160. lt_prog_compiler_wl='-Wl,';;
  7161. esac
  7162. ;;
  7163. sunos4*)
  7164. lt_prog_compiler_wl='-Qoption ld '
  7165. lt_prog_compiler_pic='-PIC'
  7166. lt_prog_compiler_static='-Bstatic'
  7167. ;;
  7168. sysv4 | sysv4.2uw2* | sysv4.3*)
  7169. lt_prog_compiler_wl='-Wl,'
  7170. lt_prog_compiler_pic='-KPIC'
  7171. lt_prog_compiler_static='-Bstatic'
  7172. ;;
  7173. sysv4*MP*)
  7174. if test -d /usr/nec ;then
  7175. lt_prog_compiler_pic='-Kconform_pic'
  7176. lt_prog_compiler_static='-Bstatic'
  7177. fi
  7178. ;;
  7179. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7180. lt_prog_compiler_wl='-Wl,'
  7181. lt_prog_compiler_pic='-KPIC'
  7182. lt_prog_compiler_static='-Bstatic'
  7183. ;;
  7184. unicos*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. lt_prog_compiler_can_build_shared=no
  7187. ;;
  7188. uts4*)
  7189. lt_prog_compiler_pic='-pic'
  7190. lt_prog_compiler_static='-Bstatic'
  7191. ;;
  7192. *)
  7193. lt_prog_compiler_can_build_shared=no
  7194. ;;
  7195. esac
  7196. fi
  7197. case $host_os in
  7198. # For platforms which do not support PIC, -DPIC is meaningless:
  7199. *djgpp*)
  7200. lt_prog_compiler_pic=
  7201. ;;
  7202. *)
  7203. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7204. ;;
  7205. esac
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7207. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7208. if ${lt_cv_prog_compiler_pic+:} false; then :
  7209. $as_echo_n "(cached) " >&6
  7210. else
  7211. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7212. fi
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7214. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7215. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7216. #
  7217. # Check to make sure the PIC flag actually works.
  7218. #
  7219. if test -n "$lt_prog_compiler_pic"; then
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7221. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7222. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7223. $as_echo_n "(cached) " >&6
  7224. else
  7225. lt_cv_prog_compiler_pic_works=no
  7226. ac_outfile=conftest.$ac_objext
  7227. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7228. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7229. # Insert the option either (1) after the last *FLAGS variable, or
  7230. # (2) before a word containing "conftest.", or (3) at the end.
  7231. # Note that $ac_compile itself does not contain backslashes and begins
  7232. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7233. # The option is referenced via a variable to avoid confusing sed.
  7234. lt_compile=`echo "$ac_compile" | $SED \
  7235. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7236. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7237. -e 's:$: $lt_compiler_flag:'`
  7238. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7239. (eval "$lt_compile" 2>conftest.err)
  7240. ac_status=$?
  7241. cat conftest.err >&5
  7242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7243. if (exit $ac_status) && test -s "$ac_outfile"; then
  7244. # The compiler can only warn and ignore the option if not recognized
  7245. # So say no if there are warnings other than the usual output.
  7246. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7247. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7248. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7249. lt_cv_prog_compiler_pic_works=yes
  7250. fi
  7251. fi
  7252. $RM conftest*
  7253. fi
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7255. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7256. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7257. case $lt_prog_compiler_pic in
  7258. "" | " "*) ;;
  7259. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7260. esac
  7261. else
  7262. lt_prog_compiler_pic=
  7263. lt_prog_compiler_can_build_shared=no
  7264. fi
  7265. fi
  7266. #
  7267. # Check to make sure the static flag actually works.
  7268. #
  7269. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7271. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7272. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7273. $as_echo_n "(cached) " >&6
  7274. else
  7275. lt_cv_prog_compiler_static_works=no
  7276. save_LDFLAGS="$LDFLAGS"
  7277. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7278. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7279. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7280. # The linker can only warn and ignore the option if not recognized
  7281. # So say no if there are warnings
  7282. if test -s conftest.err; then
  7283. # Append any errors to the config.log.
  7284. cat conftest.err 1>&5
  7285. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7286. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7287. if diff conftest.exp conftest.er2 >/dev/null; then
  7288. lt_cv_prog_compiler_static_works=yes
  7289. fi
  7290. else
  7291. lt_cv_prog_compiler_static_works=yes
  7292. fi
  7293. fi
  7294. $RM -r conftest*
  7295. LDFLAGS="$save_LDFLAGS"
  7296. fi
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7298. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7299. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7300. :
  7301. else
  7302. lt_prog_compiler_static=
  7303. fi
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7305. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7306. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7307. $as_echo_n "(cached) " >&6
  7308. else
  7309. lt_cv_prog_compiler_c_o=no
  7310. $RM -r conftest 2>/dev/null
  7311. mkdir conftest
  7312. cd conftest
  7313. mkdir out
  7314. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7315. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7316. # Insert the option either (1) after the last *FLAGS variable, or
  7317. # (2) before a word containing "conftest.", or (3) at the end.
  7318. # Note that $ac_compile itself does not contain backslashes and begins
  7319. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7320. lt_compile=`echo "$ac_compile" | $SED \
  7321. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7322. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7323. -e 's:$: $lt_compiler_flag:'`
  7324. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7325. (eval "$lt_compile" 2>out/conftest.err)
  7326. ac_status=$?
  7327. cat out/conftest.err >&5
  7328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7329. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7330. then
  7331. # The compiler can only warn and ignore the option if not recognized
  7332. # So say no if there are warnings
  7333. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7334. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7335. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7336. lt_cv_prog_compiler_c_o=yes
  7337. fi
  7338. fi
  7339. chmod u+w . 2>&5
  7340. $RM conftest*
  7341. # SGI C++ compiler will create directory out/ii_files/ for
  7342. # template instantiation
  7343. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7344. $RM out/* && rmdir out
  7345. cd ..
  7346. $RM -r conftest
  7347. $RM conftest*
  7348. fi
  7349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7350. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7352. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7353. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7354. $as_echo_n "(cached) " >&6
  7355. else
  7356. lt_cv_prog_compiler_c_o=no
  7357. $RM -r conftest 2>/dev/null
  7358. mkdir conftest
  7359. cd conftest
  7360. mkdir out
  7361. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7362. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7363. # Insert the option either (1) after the last *FLAGS variable, or
  7364. # (2) before a word containing "conftest.", or (3) at the end.
  7365. # Note that $ac_compile itself does not contain backslashes and begins
  7366. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7367. lt_compile=`echo "$ac_compile" | $SED \
  7368. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7369. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7370. -e 's:$: $lt_compiler_flag:'`
  7371. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7372. (eval "$lt_compile" 2>out/conftest.err)
  7373. ac_status=$?
  7374. cat out/conftest.err >&5
  7375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7377. then
  7378. # The compiler can only warn and ignore the option if not recognized
  7379. # So say no if there are warnings
  7380. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7381. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7382. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7383. lt_cv_prog_compiler_c_o=yes
  7384. fi
  7385. fi
  7386. chmod u+w . 2>&5
  7387. $RM conftest*
  7388. # SGI C++ compiler will create directory out/ii_files/ for
  7389. # template instantiation
  7390. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7391. $RM out/* && rmdir out
  7392. cd ..
  7393. $RM -r conftest
  7394. $RM conftest*
  7395. fi
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7397. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7398. hard_links="nottested"
  7399. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7400. # do not overwrite the value of need_locks provided by the user
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7402. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7403. hard_links=yes
  7404. $RM conftest*
  7405. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7406. touch conftest.a
  7407. ln conftest.a conftest.b 2>&5 || hard_links=no
  7408. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7410. $as_echo "$hard_links" >&6; }
  7411. if test "$hard_links" = no; then
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7413. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7414. need_locks=warn
  7415. fi
  7416. else
  7417. need_locks=no
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7420. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7421. runpath_var=
  7422. allow_undefined_flag=
  7423. always_export_symbols=no
  7424. archive_cmds=
  7425. archive_expsym_cmds=
  7426. compiler_needs_object=no
  7427. enable_shared_with_static_runtimes=no
  7428. export_dynamic_flag_spec=
  7429. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7430. hardcode_automatic=no
  7431. hardcode_direct=no
  7432. hardcode_direct_absolute=no
  7433. hardcode_libdir_flag_spec=
  7434. hardcode_libdir_separator=
  7435. hardcode_minus_L=no
  7436. hardcode_shlibpath_var=unsupported
  7437. inherit_rpath=no
  7438. link_all_deplibs=unknown
  7439. module_cmds=
  7440. module_expsym_cmds=
  7441. old_archive_from_new_cmds=
  7442. old_archive_from_expsyms_cmds=
  7443. thread_safe_flag_spec=
  7444. whole_archive_flag_spec=
  7445. # include_expsyms should be a list of space-separated symbols to be *always*
  7446. # included in the symbol list
  7447. include_expsyms=
  7448. # exclude_expsyms can be an extended regexp of symbols to exclude
  7449. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7450. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7451. # as well as any symbol that contains `d'.
  7452. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7453. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7454. # platforms (ab)use it in PIC code, but their linkers get confused if
  7455. # the symbol is explicitly referenced. Since portable code cannot
  7456. # rely on this symbol name, it's probably fine to never include it in
  7457. # preloaded symbol tables.
  7458. # Exclude shared library initialization/finalization symbols.
  7459. extract_expsyms_cmds=
  7460. case $host_os in
  7461. cygwin* | mingw* | pw32* | cegcc*)
  7462. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7463. # When not using gcc, we currently assume that we are using
  7464. # Microsoft Visual C++.
  7465. if test "$GCC" != yes; then
  7466. with_gnu_ld=no
  7467. fi
  7468. ;;
  7469. interix*)
  7470. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7471. with_gnu_ld=yes
  7472. ;;
  7473. openbsd*)
  7474. with_gnu_ld=no
  7475. ;;
  7476. esac
  7477. ld_shlibs=yes
  7478. # On some targets, GNU ld is compatible enough with the native linker
  7479. # that we're better off using the native interface for both.
  7480. lt_use_gnu_ld_interface=no
  7481. if test "$with_gnu_ld" = yes; then
  7482. case $host_os in
  7483. aix*)
  7484. # The AIX port of GNU ld has always aspired to compatibility
  7485. # with the native linker. However, as the warning in the GNU ld
  7486. # block says, versions before 2.19.5* couldn't really create working
  7487. # shared libraries, regardless of the interface used.
  7488. case `$LD -v 2>&1` in
  7489. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7490. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7491. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7492. *)
  7493. lt_use_gnu_ld_interface=yes
  7494. ;;
  7495. esac
  7496. ;;
  7497. *)
  7498. lt_use_gnu_ld_interface=yes
  7499. ;;
  7500. esac
  7501. fi
  7502. if test "$lt_use_gnu_ld_interface" = yes; then
  7503. # If archive_cmds runs LD, not CC, wlarc should be empty
  7504. wlarc='${wl}'
  7505. # Set some defaults for GNU ld with shared library support. These
  7506. # are reset later if shared libraries are not supported. Putting them
  7507. # here allows them to be overridden if necessary.
  7508. runpath_var=LD_RUN_PATH
  7509. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7510. export_dynamic_flag_spec='${wl}--export-dynamic'
  7511. # ancient GNU ld didn't support --whole-archive et. al.
  7512. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7513. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7514. else
  7515. whole_archive_flag_spec=
  7516. fi
  7517. supports_anon_versioning=no
  7518. case `$LD -v 2>&1` in
  7519. *GNU\ gold*) supports_anon_versioning=yes ;;
  7520. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7521. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7522. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7523. *\ 2.11.*) ;; # other 2.11 versions
  7524. *) supports_anon_versioning=yes ;;
  7525. esac
  7526. # See if GNU ld supports shared libraries.
  7527. case $host_os in
  7528. aix[3-9]*)
  7529. # On AIX/PPC, the GNU linker is very broken
  7530. if test "$host_cpu" != ia64; then
  7531. ld_shlibs=no
  7532. cat <<_LT_EOF 1>&2
  7533. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7534. *** to be unable to reliably create shared libraries on AIX.
  7535. *** Therefore, libtool is disabling shared libraries support. If you
  7536. *** really care for shared libraries, you may want to install binutils
  7537. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7538. *** You will then need to restart the configuration process.
  7539. _LT_EOF
  7540. fi
  7541. ;;
  7542. amigaos*)
  7543. case $host_cpu in
  7544. powerpc)
  7545. # see comment about AmigaOS4 .so support
  7546. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7547. archive_expsym_cmds=''
  7548. ;;
  7549. m68k)
  7550. 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)'
  7551. hardcode_libdir_flag_spec='-L$libdir'
  7552. hardcode_minus_L=yes
  7553. ;;
  7554. esac
  7555. ;;
  7556. beos*)
  7557. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7558. allow_undefined_flag=unsupported
  7559. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7560. # support --undefined. This deserves some investigation. FIXME
  7561. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7562. else
  7563. ld_shlibs=no
  7564. fi
  7565. ;;
  7566. cygwin* | mingw* | pw32* | cegcc*)
  7567. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7568. # as there is no search path for DLLs.
  7569. hardcode_libdir_flag_spec='-L$libdir'
  7570. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7571. allow_undefined_flag=unsupported
  7572. always_export_symbols=no
  7573. enable_shared_with_static_runtimes=yes
  7574. 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'
  7575. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7576. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7577. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7578. # If the export-symbols file already is a .def file (1st line
  7579. # is EXPORTS), use it as is; otherwise, prepend...
  7580. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7581. cp $export_symbols $output_objdir/$soname.def;
  7582. else
  7583. echo EXPORTS > $output_objdir/$soname.def;
  7584. cat $export_symbols >> $output_objdir/$soname.def;
  7585. fi~
  7586. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7587. else
  7588. ld_shlibs=no
  7589. fi
  7590. ;;
  7591. haiku*)
  7592. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7593. link_all_deplibs=yes
  7594. ;;
  7595. interix[3-9]*)
  7596. hardcode_direct=no
  7597. hardcode_shlibpath_var=no
  7598. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7599. export_dynamic_flag_spec='${wl}-E'
  7600. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7601. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7602. # default) and relocated if they conflict, which is a slow very memory
  7603. # consuming and fragmenting process. To avoid this, we pick a random,
  7604. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7605. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7606. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7607. 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'
  7608. ;;
  7609. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7610. tmp_diet=no
  7611. if test "$host_os" = linux-dietlibc; then
  7612. case $cc_basename in
  7613. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7614. esac
  7615. fi
  7616. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7617. && test "$tmp_diet" = no
  7618. then
  7619. tmp_addflag=' $pic_flag'
  7620. tmp_sharedflag='-shared'
  7621. case $cc_basename,$host_cpu in
  7622. pgcc*) # Portland Group C compiler
  7623. 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'
  7624. tmp_addflag=' $pic_flag'
  7625. ;;
  7626. pgf77* | pgf90* | pgf95* | pgfortran*)
  7627. # Portland Group f77 and f90 compilers
  7628. 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'
  7629. tmp_addflag=' $pic_flag -Mnomain' ;;
  7630. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7631. tmp_addflag=' -i_dynamic' ;;
  7632. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7633. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7634. ifc* | ifort*) # Intel Fortran compiler
  7635. tmp_addflag=' -nofor_main' ;;
  7636. lf95*) # Lahey Fortran 8.1
  7637. whole_archive_flag_spec=
  7638. tmp_sharedflag='--shared' ;;
  7639. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7640. tmp_sharedflag='-qmkshrobj'
  7641. tmp_addflag= ;;
  7642. nvcc*) # Cuda Compiler Driver 2.2
  7643. 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'
  7644. compiler_needs_object=yes
  7645. ;;
  7646. esac
  7647. case `$CC -V 2>&1 | sed 5q` in
  7648. *Sun\ C*) # Sun C 5.9
  7649. 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'
  7650. compiler_needs_object=yes
  7651. tmp_sharedflag='-G' ;;
  7652. *Sun\ F*) # Sun Fortran 8.3
  7653. tmp_sharedflag='-G' ;;
  7654. esac
  7655. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7656. if test "x$supports_anon_versioning" = xyes; then
  7657. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7658. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7659. echo "local: *; };" >> $output_objdir/$libname.ver~
  7660. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7661. fi
  7662. case $cc_basename in
  7663. xlf* | bgf* | bgxlf* | mpixlf*)
  7664. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7665. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7666. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7667. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7668. if test "x$supports_anon_versioning" = xyes; then
  7669. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7670. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7671. echo "local: *; };" >> $output_objdir/$libname.ver~
  7672. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7673. fi
  7674. ;;
  7675. esac
  7676. else
  7677. ld_shlibs=no
  7678. fi
  7679. ;;
  7680. netbsd*)
  7681. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7682. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7683. wlarc=
  7684. else
  7685. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7686. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7687. fi
  7688. ;;
  7689. solaris*)
  7690. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7691. ld_shlibs=no
  7692. cat <<_LT_EOF 1>&2
  7693. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7694. *** create shared libraries on Solaris systems. Therefore, libtool
  7695. *** is disabling shared libraries support. We urge you to upgrade GNU
  7696. *** binutils to release 2.9.1 or newer. Another option is to modify
  7697. *** your PATH or compiler configuration so that the native linker is
  7698. *** used, and then restart.
  7699. _LT_EOF
  7700. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7701. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7702. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7703. else
  7704. ld_shlibs=no
  7705. fi
  7706. ;;
  7707. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7708. case `$LD -v 2>&1` in
  7709. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7710. ld_shlibs=no
  7711. cat <<_LT_EOF 1>&2
  7712. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7713. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7714. *** is disabling shared libraries support. We urge you to upgrade GNU
  7715. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7716. *** your PATH or compiler configuration so that the native linker is
  7717. *** used, and then restart.
  7718. _LT_EOF
  7719. ;;
  7720. *)
  7721. # For security reasons, it is highly recommended that you always
  7722. # use absolute paths for naming shared libraries, and exclude the
  7723. # DT_RUNPATH tag from executables and libraries. But doing so
  7724. # requires that you compile everything twice, which is a pain.
  7725. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7726. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7727. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7728. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7729. else
  7730. ld_shlibs=no
  7731. fi
  7732. ;;
  7733. esac
  7734. ;;
  7735. sunos4*)
  7736. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7737. wlarc=
  7738. hardcode_direct=yes
  7739. hardcode_shlibpath_var=no
  7740. ;;
  7741. *)
  7742. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7743. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7744. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7745. else
  7746. ld_shlibs=no
  7747. fi
  7748. ;;
  7749. esac
  7750. if test "$ld_shlibs" = no; then
  7751. runpath_var=
  7752. hardcode_libdir_flag_spec=
  7753. export_dynamic_flag_spec=
  7754. whole_archive_flag_spec=
  7755. fi
  7756. else
  7757. # PORTME fill in a description of your system's linker (not GNU ld)
  7758. case $host_os in
  7759. aix3*)
  7760. allow_undefined_flag=unsupported
  7761. always_export_symbols=yes
  7762. 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'
  7763. # Note: this linker hardcodes the directories in LIBPATH if there
  7764. # are no directories specified by -L.
  7765. hardcode_minus_L=yes
  7766. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7767. # Neither direct hardcoding nor static linking is supported with a
  7768. # broken collect2.
  7769. hardcode_direct=unsupported
  7770. fi
  7771. ;;
  7772. aix[4-9]*)
  7773. if test "$host_cpu" = ia64; then
  7774. # On IA64, the linker does run time linking by default, so we don't
  7775. # have to do anything special.
  7776. aix_use_runtimelinking=no
  7777. exp_sym_flag='-Bexport'
  7778. no_entry_flag=""
  7779. else
  7780. # If we're using GNU nm, then we don't want the "-C" option.
  7781. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7782. # Also, AIX nm treats weak defined symbols like other global
  7783. # defined symbols, whereas GNU nm marks them as "W".
  7784. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7785. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7786. else
  7787. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7788. fi
  7789. aix_use_runtimelinking=no
  7790. # Test if we are trying to use run time linking or normal
  7791. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7792. # need to do runtime linking.
  7793. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7794. for ld_flag in $LDFLAGS; do
  7795. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7796. aix_use_runtimelinking=yes
  7797. break
  7798. fi
  7799. done
  7800. ;;
  7801. esac
  7802. exp_sym_flag='-bexport'
  7803. no_entry_flag='-bnoentry'
  7804. fi
  7805. # When large executables or shared objects are built, AIX ld can
  7806. # have problems creating the table of contents. If linking a library
  7807. # or program results in "error TOC overflow" add -mminimal-toc to
  7808. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7809. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7810. archive_cmds=''
  7811. hardcode_direct=yes
  7812. hardcode_direct_absolute=yes
  7813. hardcode_libdir_separator=':'
  7814. link_all_deplibs=yes
  7815. file_list_spec='${wl}-f,'
  7816. if test "$GCC" = yes; then
  7817. case $host_os in aix4.[012]|aix4.[012].*)
  7818. # We only want to do this on AIX 4.2 and lower, the check
  7819. # below for broken collect2 doesn't work under 4.3+
  7820. collect2name=`${CC} -print-prog-name=collect2`
  7821. if test -f "$collect2name" &&
  7822. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7823. then
  7824. # We have reworked collect2
  7825. :
  7826. else
  7827. # We have old collect2
  7828. hardcode_direct=unsupported
  7829. # It fails to find uninstalled libraries when the uninstalled
  7830. # path is not listed in the libpath. Setting hardcode_minus_L
  7831. # to unsupported forces relinking
  7832. hardcode_minus_L=yes
  7833. hardcode_libdir_flag_spec='-L$libdir'
  7834. hardcode_libdir_separator=
  7835. fi
  7836. ;;
  7837. esac
  7838. shared_flag='-shared'
  7839. if test "$aix_use_runtimelinking" = yes; then
  7840. shared_flag="$shared_flag "'${wl}-G'
  7841. fi
  7842. else
  7843. # not using gcc
  7844. if test "$host_cpu" = ia64; then
  7845. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7846. # chokes on -Wl,-G. The following line is correct:
  7847. shared_flag='-G'
  7848. else
  7849. if test "$aix_use_runtimelinking" = yes; then
  7850. shared_flag='${wl}-G'
  7851. else
  7852. shared_flag='${wl}-bM:SRE'
  7853. fi
  7854. fi
  7855. fi
  7856. export_dynamic_flag_spec='${wl}-bexpall'
  7857. # It seems that -bexpall does not export symbols beginning with
  7858. # underscore (_), so it is better to generate a list of symbols to export.
  7859. always_export_symbols=yes
  7860. if test "$aix_use_runtimelinking" = yes; then
  7861. # Warning - without using the other runtime loading flags (-brtl),
  7862. # -berok will link without error, but may produce a broken library.
  7863. allow_undefined_flag='-berok'
  7864. # Determine the default libpath from the value encoded in an
  7865. # empty executable.
  7866. if test "${lt_cv_aix_libpath+set}" = set; then
  7867. aix_libpath=$lt_cv_aix_libpath
  7868. else
  7869. if ${lt_cv_aix_libpath_+:} false; then :
  7870. $as_echo_n "(cached) " >&6
  7871. else
  7872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7873. /* end confdefs.h. */
  7874. int
  7875. main ()
  7876. {
  7877. ;
  7878. return 0;
  7879. }
  7880. _ACEOF
  7881. if ac_fn_c_try_link "$LINENO"; then :
  7882. lt_aix_libpath_sed='
  7883. /Import File Strings/,/^$/ {
  7884. /^0/ {
  7885. s/^0 *\([^ ]*\) *$/\1/
  7886. p
  7887. }
  7888. }'
  7889. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7890. # Check for a 64-bit object if we didn't find anything.
  7891. if test -z "$lt_cv_aix_libpath_"; then
  7892. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7893. fi
  7894. fi
  7895. rm -f core conftest.err conftest.$ac_objext \
  7896. conftest$ac_exeext conftest.$ac_ext
  7897. if test -z "$lt_cv_aix_libpath_"; then
  7898. lt_cv_aix_libpath_="/usr/lib:/lib"
  7899. fi
  7900. fi
  7901. aix_libpath=$lt_cv_aix_libpath_
  7902. fi
  7903. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7904. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7905. else
  7906. if test "$host_cpu" = ia64; then
  7907. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7908. allow_undefined_flag="-z nodefs"
  7909. 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"
  7910. else
  7911. # Determine the default libpath from the value encoded in an
  7912. # empty executable.
  7913. if test "${lt_cv_aix_libpath+set}" = set; then
  7914. aix_libpath=$lt_cv_aix_libpath
  7915. else
  7916. if ${lt_cv_aix_libpath_+:} false; then :
  7917. $as_echo_n "(cached) " >&6
  7918. else
  7919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7920. /* end confdefs.h. */
  7921. int
  7922. main ()
  7923. {
  7924. ;
  7925. return 0;
  7926. }
  7927. _ACEOF
  7928. if ac_fn_c_try_link "$LINENO"; then :
  7929. lt_aix_libpath_sed='
  7930. /Import File Strings/,/^$/ {
  7931. /^0/ {
  7932. s/^0 *\([^ ]*\) *$/\1/
  7933. p
  7934. }
  7935. }'
  7936. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7937. # Check for a 64-bit object if we didn't find anything.
  7938. if test -z "$lt_cv_aix_libpath_"; then
  7939. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7940. fi
  7941. fi
  7942. rm -f core conftest.err conftest.$ac_objext \
  7943. conftest$ac_exeext conftest.$ac_ext
  7944. if test -z "$lt_cv_aix_libpath_"; then
  7945. lt_cv_aix_libpath_="/usr/lib:/lib"
  7946. fi
  7947. fi
  7948. aix_libpath=$lt_cv_aix_libpath_
  7949. fi
  7950. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7951. # Warning - without using the other run time loading flags,
  7952. # -berok will link without error, but may produce a broken library.
  7953. no_undefined_flag=' ${wl}-bernotok'
  7954. allow_undefined_flag=' ${wl}-berok'
  7955. if test "$with_gnu_ld" = yes; then
  7956. # We only use this code for GNU lds that support --whole-archive.
  7957. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7958. else
  7959. # Exported symbols can be pulled into shared objects from archives
  7960. whole_archive_flag_spec='$convenience'
  7961. fi
  7962. archive_cmds_need_lc=yes
  7963. # This is similar to how AIX traditionally builds its shared libraries.
  7964. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7965. fi
  7966. fi
  7967. ;;
  7968. amigaos*)
  7969. case $host_cpu in
  7970. powerpc)
  7971. # see comment about AmigaOS4 .so support
  7972. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7973. archive_expsym_cmds=''
  7974. ;;
  7975. m68k)
  7976. 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)'
  7977. hardcode_libdir_flag_spec='-L$libdir'
  7978. hardcode_minus_L=yes
  7979. ;;
  7980. esac
  7981. ;;
  7982. bsdi[45]*)
  7983. export_dynamic_flag_spec=-rdynamic
  7984. ;;
  7985. cygwin* | mingw* | pw32* | cegcc*)
  7986. # When not using gcc, we currently assume that we are using
  7987. # Microsoft Visual C++.
  7988. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7989. # no search path for DLLs.
  7990. case $cc_basename in
  7991. cl*)
  7992. # Native MSVC
  7993. hardcode_libdir_flag_spec=' '
  7994. allow_undefined_flag=unsupported
  7995. always_export_symbols=yes
  7996. file_list_spec='@'
  7997. # Tell ltmain to make .lib files, not .a files.
  7998. libext=lib
  7999. # Tell ltmain to make .dll files, not .so files.
  8000. shrext_cmds=".dll"
  8001. # FIXME: Setting linknames here is a bad hack.
  8002. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8003. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8004. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8005. else
  8006. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8007. fi~
  8008. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8009. linknames='
  8010. # The linker will not automatically build a static lib if we build a DLL.
  8011. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8012. enable_shared_with_static_runtimes=yes
  8013. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8014. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8015. # Don't use ranlib
  8016. old_postinstall_cmds='chmod 644 $oldlib'
  8017. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8018. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8019. case $lt_outputfile in
  8020. *.exe|*.EXE) ;;
  8021. *)
  8022. lt_outputfile="$lt_outputfile.exe"
  8023. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8024. ;;
  8025. esac~
  8026. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8027. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8028. $RM "$lt_outputfile.manifest";
  8029. fi'
  8030. ;;
  8031. *)
  8032. # Assume MSVC wrapper
  8033. hardcode_libdir_flag_spec=' '
  8034. allow_undefined_flag=unsupported
  8035. # Tell ltmain to make .lib files, not .a files.
  8036. libext=lib
  8037. # Tell ltmain to make .dll files, not .so files.
  8038. shrext_cmds=".dll"
  8039. # FIXME: Setting linknames here is a bad hack.
  8040. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8041. # The linker will automatically build a .lib file if we build a DLL.
  8042. old_archive_from_new_cmds='true'
  8043. # FIXME: Should let the user specify the lib program.
  8044. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8045. enable_shared_with_static_runtimes=yes
  8046. ;;
  8047. esac
  8048. ;;
  8049. darwin* | rhapsody*)
  8050. archive_cmds_need_lc=no
  8051. hardcode_direct=no
  8052. hardcode_automatic=yes
  8053. hardcode_shlibpath_var=unsupported
  8054. if test "$lt_cv_ld_force_load" = "yes"; then
  8055. 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\"`'
  8056. else
  8057. whole_archive_flag_spec=''
  8058. fi
  8059. link_all_deplibs=yes
  8060. allow_undefined_flag="$_lt_dar_allow_undefined"
  8061. case $cc_basename in
  8062. ifort*) _lt_dar_can_shared=yes ;;
  8063. *) _lt_dar_can_shared=$GCC ;;
  8064. esac
  8065. if test "$_lt_dar_can_shared" = "yes"; then
  8066. output_verbose_link_cmd=func_echo_all
  8067. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8068. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8069. 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}"
  8070. 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}"
  8071. else
  8072. ld_shlibs=no
  8073. fi
  8074. ;;
  8075. dgux*)
  8076. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8077. hardcode_libdir_flag_spec='-L$libdir'
  8078. hardcode_shlibpath_var=no
  8079. ;;
  8080. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8081. # support. Future versions do this automatically, but an explicit c++rt0.o
  8082. # does not break anything, and helps significantly (at the cost of a little
  8083. # extra space).
  8084. freebsd2.2*)
  8085. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8086. hardcode_libdir_flag_spec='-R$libdir'
  8087. hardcode_direct=yes
  8088. hardcode_shlibpath_var=no
  8089. ;;
  8090. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8091. freebsd2.*)
  8092. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8093. hardcode_direct=yes
  8094. hardcode_minus_L=yes
  8095. hardcode_shlibpath_var=no
  8096. ;;
  8097. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8098. freebsd* | dragonfly*)
  8099. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8100. hardcode_libdir_flag_spec='-R$libdir'
  8101. hardcode_direct=yes
  8102. hardcode_shlibpath_var=no
  8103. ;;
  8104. hpux9*)
  8105. if test "$GCC" = yes; then
  8106. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8107. else
  8108. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8109. fi
  8110. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8111. hardcode_libdir_separator=:
  8112. hardcode_direct=yes
  8113. # hardcode_minus_L: Not really in the search PATH,
  8114. # but as the default location of the library.
  8115. hardcode_minus_L=yes
  8116. export_dynamic_flag_spec='${wl}-E'
  8117. ;;
  8118. hpux10*)
  8119. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8120. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8121. else
  8122. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8123. fi
  8124. if test "$with_gnu_ld" = no; then
  8125. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8126. hardcode_libdir_separator=:
  8127. hardcode_direct=yes
  8128. hardcode_direct_absolute=yes
  8129. export_dynamic_flag_spec='${wl}-E'
  8130. # hardcode_minus_L: Not really in the search PATH,
  8131. # but as the default location of the library.
  8132. hardcode_minus_L=yes
  8133. fi
  8134. ;;
  8135. hpux11*)
  8136. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8137. case $host_cpu in
  8138. hppa*64*)
  8139. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8140. ;;
  8141. ia64*)
  8142. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8143. ;;
  8144. *)
  8145. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8146. ;;
  8147. esac
  8148. else
  8149. case $host_cpu in
  8150. hppa*64*)
  8151. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8152. ;;
  8153. ia64*)
  8154. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8155. ;;
  8156. *)
  8157. # Older versions of the 11.00 compiler do not understand -b yet
  8158. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8160. $as_echo_n "checking if $CC understands -b... " >&6; }
  8161. if ${lt_cv_prog_compiler__b+:} false; then :
  8162. $as_echo_n "(cached) " >&6
  8163. else
  8164. lt_cv_prog_compiler__b=no
  8165. save_LDFLAGS="$LDFLAGS"
  8166. LDFLAGS="$LDFLAGS -b"
  8167. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8168. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8169. # The linker can only warn and ignore the option if not recognized
  8170. # So say no if there are warnings
  8171. if test -s conftest.err; then
  8172. # Append any errors to the config.log.
  8173. cat conftest.err 1>&5
  8174. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8175. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8176. if diff conftest.exp conftest.er2 >/dev/null; then
  8177. lt_cv_prog_compiler__b=yes
  8178. fi
  8179. else
  8180. lt_cv_prog_compiler__b=yes
  8181. fi
  8182. fi
  8183. $RM -r conftest*
  8184. LDFLAGS="$save_LDFLAGS"
  8185. fi
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8187. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8188. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8189. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8190. else
  8191. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8192. fi
  8193. ;;
  8194. esac
  8195. fi
  8196. if test "$with_gnu_ld" = no; then
  8197. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8198. hardcode_libdir_separator=:
  8199. case $host_cpu in
  8200. hppa*64*|ia64*)
  8201. hardcode_direct=no
  8202. hardcode_shlibpath_var=no
  8203. ;;
  8204. *)
  8205. hardcode_direct=yes
  8206. hardcode_direct_absolute=yes
  8207. export_dynamic_flag_spec='${wl}-E'
  8208. # hardcode_minus_L: Not really in the search PATH,
  8209. # but as the default location of the library.
  8210. hardcode_minus_L=yes
  8211. ;;
  8212. esac
  8213. fi
  8214. ;;
  8215. irix5* | irix6* | nonstopux*)
  8216. if test "$GCC" = yes; then
  8217. 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'
  8218. # Try to use the -exported_symbol ld option, if it does not
  8219. # work, assume that -exports_file does not work either and
  8220. # implicitly export all symbols.
  8221. # This should be the same for all languages, so no per-tag cache variable.
  8222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8223. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8224. if ${lt_cv_irix_exported_symbol+:} false; then :
  8225. $as_echo_n "(cached) " >&6
  8226. else
  8227. save_LDFLAGS="$LDFLAGS"
  8228. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8230. /* end confdefs.h. */
  8231. int foo (void) { return 0; }
  8232. _ACEOF
  8233. if ac_fn_c_try_link "$LINENO"; then :
  8234. lt_cv_irix_exported_symbol=yes
  8235. else
  8236. lt_cv_irix_exported_symbol=no
  8237. fi
  8238. rm -f core conftest.err conftest.$ac_objext \
  8239. conftest$ac_exeext conftest.$ac_ext
  8240. LDFLAGS="$save_LDFLAGS"
  8241. fi
  8242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8243. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8244. if test "$lt_cv_irix_exported_symbol" = yes; then
  8245. 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'
  8246. fi
  8247. else
  8248. 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'
  8249. 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'
  8250. fi
  8251. archive_cmds_need_lc='no'
  8252. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8253. hardcode_libdir_separator=:
  8254. inherit_rpath=yes
  8255. link_all_deplibs=yes
  8256. ;;
  8257. netbsd*)
  8258. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8259. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8260. else
  8261. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8262. fi
  8263. hardcode_libdir_flag_spec='-R$libdir'
  8264. hardcode_direct=yes
  8265. hardcode_shlibpath_var=no
  8266. ;;
  8267. newsos6)
  8268. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8269. hardcode_direct=yes
  8270. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8271. hardcode_libdir_separator=:
  8272. hardcode_shlibpath_var=no
  8273. ;;
  8274. *nto* | *qnx*)
  8275. ;;
  8276. openbsd*)
  8277. if test -f /usr/libexec/ld.so; then
  8278. hardcode_direct=yes
  8279. hardcode_shlibpath_var=no
  8280. hardcode_direct_absolute=yes
  8281. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8282. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8283. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8284. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8285. export_dynamic_flag_spec='${wl}-E'
  8286. else
  8287. case $host_os in
  8288. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8289. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8290. hardcode_libdir_flag_spec='-R$libdir'
  8291. ;;
  8292. *)
  8293. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8294. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8295. ;;
  8296. esac
  8297. fi
  8298. else
  8299. ld_shlibs=no
  8300. fi
  8301. ;;
  8302. os2*)
  8303. hardcode_libdir_flag_spec='-L$libdir'
  8304. hardcode_minus_L=yes
  8305. allow_undefined_flag=unsupported
  8306. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8307. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8308. ;;
  8309. osf3*)
  8310. if test "$GCC" = yes; then
  8311. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8312. 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'
  8313. else
  8314. allow_undefined_flag=' -expect_unresolved \*'
  8315. 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'
  8316. fi
  8317. archive_cmds_need_lc='no'
  8318. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8319. hardcode_libdir_separator=:
  8320. ;;
  8321. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8322. if test "$GCC" = yes; then
  8323. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8324. 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'
  8325. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8326. else
  8327. allow_undefined_flag=' -expect_unresolved \*'
  8328. 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'
  8329. 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~
  8330. $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'
  8331. # Both c and cxx compiler support -rpath directly
  8332. hardcode_libdir_flag_spec='-rpath $libdir'
  8333. fi
  8334. archive_cmds_need_lc='no'
  8335. hardcode_libdir_separator=:
  8336. ;;
  8337. solaris*)
  8338. no_undefined_flag=' -z defs'
  8339. if test "$GCC" = yes; then
  8340. wlarc='${wl}'
  8341. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8342. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8343. $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'
  8344. else
  8345. case `$CC -V 2>&1` in
  8346. *"Compilers 5.0"*)
  8347. wlarc=''
  8348. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8349. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8350. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8351. ;;
  8352. *)
  8353. wlarc='${wl}'
  8354. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8355. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8356. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8357. ;;
  8358. esac
  8359. fi
  8360. hardcode_libdir_flag_spec='-R$libdir'
  8361. hardcode_shlibpath_var=no
  8362. case $host_os in
  8363. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8364. *)
  8365. # The compiler driver will combine and reorder linker options,
  8366. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8367. # but is careful enough not to reorder.
  8368. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8369. if test "$GCC" = yes; then
  8370. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8371. else
  8372. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8373. fi
  8374. ;;
  8375. esac
  8376. link_all_deplibs=yes
  8377. ;;
  8378. sunos4*)
  8379. if test "x$host_vendor" = xsequent; then
  8380. # Use $CC to link under sequent, because it throws in some extra .o
  8381. # files that make .init and .fini sections work.
  8382. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8383. else
  8384. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8385. fi
  8386. hardcode_libdir_flag_spec='-L$libdir'
  8387. hardcode_direct=yes
  8388. hardcode_minus_L=yes
  8389. hardcode_shlibpath_var=no
  8390. ;;
  8391. sysv4)
  8392. case $host_vendor in
  8393. sni)
  8394. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8395. hardcode_direct=yes # is this really true???
  8396. ;;
  8397. siemens)
  8398. ## LD is ld it makes a PLAMLIB
  8399. ## CC just makes a GrossModule.
  8400. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8401. reload_cmds='$CC -r -o $output$reload_objs'
  8402. hardcode_direct=no
  8403. ;;
  8404. motorola)
  8405. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8406. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8407. ;;
  8408. esac
  8409. runpath_var='LD_RUN_PATH'
  8410. hardcode_shlibpath_var=no
  8411. ;;
  8412. sysv4.3*)
  8413. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8414. hardcode_shlibpath_var=no
  8415. export_dynamic_flag_spec='-Bexport'
  8416. ;;
  8417. sysv4*MP*)
  8418. if test -d /usr/nec; then
  8419. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8420. hardcode_shlibpath_var=no
  8421. runpath_var=LD_RUN_PATH
  8422. hardcode_runpath_var=yes
  8423. ld_shlibs=yes
  8424. fi
  8425. ;;
  8426. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8427. no_undefined_flag='${wl}-z,text'
  8428. archive_cmds_need_lc=no
  8429. hardcode_shlibpath_var=no
  8430. runpath_var='LD_RUN_PATH'
  8431. if test "$GCC" = yes; then
  8432. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8433. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8434. else
  8435. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8436. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8437. fi
  8438. ;;
  8439. sysv5* | sco3.2v5* | sco5v6*)
  8440. # Note: We can NOT use -z defs as we might desire, because we do not
  8441. # link with -lc, and that would cause any symbols used from libc to
  8442. # always be unresolved, which means just about no library would
  8443. # ever link correctly. If we're not using GNU ld we use -z text
  8444. # though, which does catch some bad symbols but isn't as heavy-handed
  8445. # as -z defs.
  8446. no_undefined_flag='${wl}-z,text'
  8447. allow_undefined_flag='${wl}-z,nodefs'
  8448. archive_cmds_need_lc=no
  8449. hardcode_shlibpath_var=no
  8450. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8451. hardcode_libdir_separator=':'
  8452. link_all_deplibs=yes
  8453. export_dynamic_flag_spec='${wl}-Bexport'
  8454. runpath_var='LD_RUN_PATH'
  8455. if test "$GCC" = yes; then
  8456. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8457. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8458. else
  8459. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8460. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8461. fi
  8462. ;;
  8463. uts4*)
  8464. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8465. hardcode_libdir_flag_spec='-L$libdir'
  8466. hardcode_shlibpath_var=no
  8467. ;;
  8468. *)
  8469. ld_shlibs=no
  8470. ;;
  8471. esac
  8472. if test x$host_vendor = xsni; then
  8473. case $host in
  8474. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8475. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8476. ;;
  8477. esac
  8478. fi
  8479. fi
  8480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8481. $as_echo "$ld_shlibs" >&6; }
  8482. test "$ld_shlibs" = no && can_build_shared=no
  8483. with_gnu_ld=$with_gnu_ld
  8484. #
  8485. # Do we need to explicitly link libc?
  8486. #
  8487. case "x$archive_cmds_need_lc" in
  8488. x|xyes)
  8489. # Assume -lc should be added
  8490. archive_cmds_need_lc=yes
  8491. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8492. case $archive_cmds in
  8493. *'~'*)
  8494. # FIXME: we may have to deal with multi-command sequences.
  8495. ;;
  8496. '$CC '*)
  8497. # Test whether the compiler implicitly links with -lc since on some
  8498. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8499. # to ld, don't add -lc before -lgcc.
  8500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8501. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8502. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8503. $as_echo_n "(cached) " >&6
  8504. else
  8505. $RM conftest*
  8506. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8507. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8508. (eval $ac_compile) 2>&5
  8509. ac_status=$?
  8510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8511. test $ac_status = 0; } 2>conftest.err; then
  8512. soname=conftest
  8513. lib=conftest
  8514. libobjs=conftest.$ac_objext
  8515. deplibs=
  8516. wl=$lt_prog_compiler_wl
  8517. pic_flag=$lt_prog_compiler_pic
  8518. compiler_flags=-v
  8519. linker_flags=-v
  8520. verstring=
  8521. output_objdir=.
  8522. libname=conftest
  8523. lt_save_allow_undefined_flag=$allow_undefined_flag
  8524. allow_undefined_flag=
  8525. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8526. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8527. ac_status=$?
  8528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8529. test $ac_status = 0; }
  8530. then
  8531. lt_cv_archive_cmds_need_lc=no
  8532. else
  8533. lt_cv_archive_cmds_need_lc=yes
  8534. fi
  8535. allow_undefined_flag=$lt_save_allow_undefined_flag
  8536. else
  8537. cat conftest.err 1>&5
  8538. fi
  8539. $RM conftest*
  8540. fi
  8541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8542. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8543. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8544. ;;
  8545. esac
  8546. fi
  8547. ;;
  8548. esac
  8549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8550. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8551. if test "$GCC" = yes; then
  8552. case $host_os in
  8553. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8554. *) lt_awk_arg="/^libraries:/" ;;
  8555. esac
  8556. case $host_os in
  8557. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8558. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8559. esac
  8560. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8561. case $lt_search_path_spec in
  8562. *\;*)
  8563. # if the path contains ";" then we assume it to be the separator
  8564. # otherwise default to the standard path separator (i.e. ":") - it is
  8565. # assumed that no part of a normal pathname contains ";" but that should
  8566. # okay in the real world where ";" in dirpaths is itself problematic.
  8567. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8568. ;;
  8569. *)
  8570. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8571. ;;
  8572. esac
  8573. # Ok, now we have the path, separated by spaces, we can step through it
  8574. # and add multilib dir if necessary...
  8575. lt_tmp_lt_search_path_spec=
  8576. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8577. # ...but if some path already ends with the multilib dir we assume
  8578. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8579. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8580. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8581. lt_multi_os_dir=
  8582. ;;
  8583. esac
  8584. for lt_sys_path in $lt_search_path_spec; do
  8585. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8586. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8587. elif test -n "$lt_multi_os_dir"; then
  8588. test -d "$lt_sys_path" && \
  8589. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8590. fi
  8591. done
  8592. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8593. BEGIN {RS=" "; FS="/|\n";} {
  8594. lt_foo="";
  8595. lt_count=0;
  8596. for (lt_i = NF; lt_i > 0; lt_i--) {
  8597. if ($lt_i != "" && $lt_i != ".") {
  8598. if ($lt_i == "..") {
  8599. lt_count++;
  8600. } else {
  8601. if (lt_count == 0) {
  8602. lt_foo="/" $lt_i lt_foo;
  8603. } else {
  8604. lt_count--;
  8605. }
  8606. }
  8607. }
  8608. }
  8609. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8610. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8611. }'`
  8612. # AWK program above erroneously prepends '/' to C:/dos/paths
  8613. # for these hosts.
  8614. case $host_os in
  8615. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8616. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8617. esac
  8618. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8619. else
  8620. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8621. fi
  8622. library_names_spec=
  8623. libname_spec='lib$name'
  8624. soname_spec=
  8625. shrext_cmds=".so"
  8626. postinstall_cmds=
  8627. postuninstall_cmds=
  8628. finish_cmds=
  8629. finish_eval=
  8630. shlibpath_var=
  8631. shlibpath_overrides_runpath=unknown
  8632. version_type=none
  8633. dynamic_linker="$host_os ld.so"
  8634. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8635. need_lib_prefix=unknown
  8636. hardcode_into_libs=no
  8637. # when you set need_version to no, make sure it does not cause -set_version
  8638. # flags to be left without arguments
  8639. need_version=unknown
  8640. case $host_os in
  8641. aix3*)
  8642. version_type=linux # correct to gnu/linux during the next big refactor
  8643. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8644. shlibpath_var=LIBPATH
  8645. # AIX 3 has no versioning support, so we append a major version to the name.
  8646. soname_spec='${libname}${release}${shared_ext}$major'
  8647. ;;
  8648. aix[4-9]*)
  8649. version_type=linux # correct to gnu/linux during the next big refactor
  8650. need_lib_prefix=no
  8651. need_version=no
  8652. hardcode_into_libs=yes
  8653. if test "$host_cpu" = ia64; then
  8654. # AIX 5 supports IA64
  8655. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8656. shlibpath_var=LD_LIBRARY_PATH
  8657. else
  8658. # With GCC up to 2.95.x, collect2 would create an import file
  8659. # for dependence libraries. The import file would start with
  8660. # the line `#! .'. This would cause the generated library to
  8661. # depend on `.', always an invalid library. This was fixed in
  8662. # development snapshots of GCC prior to 3.0.
  8663. case $host_os in
  8664. aix4 | aix4.[01] | aix4.[01].*)
  8665. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8666. echo ' yes '
  8667. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8668. :
  8669. else
  8670. can_build_shared=no
  8671. fi
  8672. ;;
  8673. esac
  8674. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8675. # soname into executable. Probably we can add versioning support to
  8676. # collect2, so additional links can be useful in future.
  8677. if test "$aix_use_runtimelinking" = yes; then
  8678. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8679. # instead of lib<name>.a to let people know that these are not
  8680. # typical AIX shared libraries.
  8681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8682. else
  8683. # We preserve .a as extension for shared libraries through AIX4.2
  8684. # and later when we are not doing run time linking.
  8685. library_names_spec='${libname}${release}.a $libname.a'
  8686. soname_spec='${libname}${release}${shared_ext}$major'
  8687. fi
  8688. shlibpath_var=LIBPATH
  8689. fi
  8690. ;;
  8691. amigaos*)
  8692. case $host_cpu in
  8693. powerpc)
  8694. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8695. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8697. ;;
  8698. m68k)
  8699. library_names_spec='$libname.ixlibrary $libname.a'
  8700. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8701. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8702. ;;
  8703. esac
  8704. ;;
  8705. beos*)
  8706. library_names_spec='${libname}${shared_ext}'
  8707. dynamic_linker="$host_os ld.so"
  8708. shlibpath_var=LIBRARY_PATH
  8709. ;;
  8710. bsdi[45]*)
  8711. version_type=linux # correct to gnu/linux during the next big refactor
  8712. need_version=no
  8713. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8714. soname_spec='${libname}${release}${shared_ext}$major'
  8715. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8716. shlibpath_var=LD_LIBRARY_PATH
  8717. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8718. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8719. # the default ld.so.conf also contains /usr/contrib/lib and
  8720. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8721. # libtool to hard-code these into programs
  8722. ;;
  8723. cygwin* | mingw* | pw32* | cegcc*)
  8724. version_type=windows
  8725. shrext_cmds=".dll"
  8726. need_version=no
  8727. need_lib_prefix=no
  8728. case $GCC,$cc_basename in
  8729. yes,*)
  8730. # gcc
  8731. library_names_spec='$libname.dll.a'
  8732. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8733. postinstall_cmds='base_file=`basename \${file}`~
  8734. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8735. dldir=$destdir/`dirname \$dlpath`~
  8736. test -d \$dldir || mkdir -p \$dldir~
  8737. $install_prog $dir/$dlname \$dldir/$dlname~
  8738. chmod a+x \$dldir/$dlname~
  8739. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8740. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8741. fi'
  8742. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8743. dlpath=$dir/\$dldll~
  8744. $RM \$dlpath'
  8745. shlibpath_overrides_runpath=yes
  8746. case $host_os in
  8747. cygwin*)
  8748. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8749. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8750. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8751. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8752. ;;
  8753. mingw* | cegcc*)
  8754. # MinGW DLLs use traditional 'lib' prefix
  8755. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8756. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8757. ;;
  8758. pw32*)
  8759. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8760. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8761. ;;
  8762. esac
  8763. dynamic_linker='Win32 ld.exe'
  8764. ;;
  8765. *,cl*)
  8766. # Native MSVC
  8767. libname_spec='$name'
  8768. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8769. library_names_spec='${libname}.dll.lib'
  8770. case $build_os in
  8771. mingw*)
  8772. sys_lib_search_path_spec=
  8773. lt_save_ifs=$IFS
  8774. IFS=';'
  8775. for lt_path in $LIB
  8776. do
  8777. IFS=$lt_save_ifs
  8778. # Let DOS variable expansion print the short 8.3 style file name.
  8779. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8780. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8781. done
  8782. IFS=$lt_save_ifs
  8783. # Convert to MSYS style.
  8784. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8785. ;;
  8786. cygwin*)
  8787. # Convert to unix form, then to dos form, then back to unix form
  8788. # but this time dos style (no spaces!) so that the unix form looks
  8789. # like /cygdrive/c/PROGRA~1:/cygdr...
  8790. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8791. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8792. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8793. ;;
  8794. *)
  8795. sys_lib_search_path_spec="$LIB"
  8796. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8797. # It is most probably a Windows format PATH.
  8798. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8799. else
  8800. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8801. fi
  8802. # FIXME: find the short name or the path components, as spaces are
  8803. # common. (e.g. "Program Files" -> "PROGRA~1")
  8804. ;;
  8805. esac
  8806. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8807. postinstall_cmds='base_file=`basename \${file}`~
  8808. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8809. dldir=$destdir/`dirname \$dlpath`~
  8810. test -d \$dldir || mkdir -p \$dldir~
  8811. $install_prog $dir/$dlname \$dldir/$dlname'
  8812. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8813. dlpath=$dir/\$dldll~
  8814. $RM \$dlpath'
  8815. shlibpath_overrides_runpath=yes
  8816. dynamic_linker='Win32 link.exe'
  8817. ;;
  8818. *)
  8819. # Assume MSVC wrapper
  8820. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8821. dynamic_linker='Win32 ld.exe'
  8822. ;;
  8823. esac
  8824. # FIXME: first we should search . and the directory the executable is in
  8825. shlibpath_var=PATH
  8826. ;;
  8827. darwin* | rhapsody*)
  8828. dynamic_linker="$host_os dyld"
  8829. version_type=darwin
  8830. need_lib_prefix=no
  8831. need_version=no
  8832. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8833. soname_spec='${libname}${release}${major}$shared_ext'
  8834. shlibpath_overrides_runpath=yes
  8835. shlibpath_var=DYLD_LIBRARY_PATH
  8836. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8837. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8838. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8839. ;;
  8840. dgux*)
  8841. version_type=linux # correct to gnu/linux during the next big refactor
  8842. need_lib_prefix=no
  8843. need_version=no
  8844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8845. soname_spec='${libname}${release}${shared_ext}$major'
  8846. shlibpath_var=LD_LIBRARY_PATH
  8847. ;;
  8848. freebsd* | dragonfly*)
  8849. # DragonFly does not have aout. When/if they implement a new
  8850. # versioning mechanism, adjust this.
  8851. if test -x /usr/bin/objformat; then
  8852. objformat=`/usr/bin/objformat`
  8853. else
  8854. case $host_os in
  8855. freebsd[23].*) objformat=aout ;;
  8856. *) objformat=elf ;;
  8857. esac
  8858. fi
  8859. version_type=freebsd-$objformat
  8860. case $version_type in
  8861. freebsd-elf*)
  8862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8863. need_version=no
  8864. need_lib_prefix=no
  8865. ;;
  8866. freebsd-*)
  8867. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8868. need_version=yes
  8869. ;;
  8870. esac
  8871. shlibpath_var=LD_LIBRARY_PATH
  8872. case $host_os in
  8873. freebsd2.*)
  8874. shlibpath_overrides_runpath=yes
  8875. ;;
  8876. freebsd3.[01]* | freebsdelf3.[01]*)
  8877. shlibpath_overrides_runpath=yes
  8878. hardcode_into_libs=yes
  8879. ;;
  8880. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8881. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8882. shlibpath_overrides_runpath=no
  8883. hardcode_into_libs=yes
  8884. ;;
  8885. *) # from 4.6 on, and DragonFly
  8886. shlibpath_overrides_runpath=yes
  8887. hardcode_into_libs=yes
  8888. ;;
  8889. esac
  8890. ;;
  8891. gnu*)
  8892. version_type=linux # correct to gnu/linux during the next big refactor
  8893. need_lib_prefix=no
  8894. need_version=no
  8895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8896. soname_spec='${libname}${release}${shared_ext}$major'
  8897. shlibpath_var=LD_LIBRARY_PATH
  8898. shlibpath_overrides_runpath=no
  8899. hardcode_into_libs=yes
  8900. ;;
  8901. haiku*)
  8902. version_type=linux # correct to gnu/linux during the next big refactor
  8903. need_lib_prefix=no
  8904. need_version=no
  8905. dynamic_linker="$host_os runtime_loader"
  8906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8907. soname_spec='${libname}${release}${shared_ext}$major'
  8908. shlibpath_var=LIBRARY_PATH
  8909. shlibpath_overrides_runpath=yes
  8910. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8911. hardcode_into_libs=yes
  8912. ;;
  8913. hpux9* | hpux10* | hpux11*)
  8914. # Give a soname corresponding to the major version so that dld.sl refuses to
  8915. # link against other versions.
  8916. version_type=sunos
  8917. need_lib_prefix=no
  8918. need_version=no
  8919. case $host_cpu in
  8920. ia64*)
  8921. shrext_cmds='.so'
  8922. hardcode_into_libs=yes
  8923. dynamic_linker="$host_os dld.so"
  8924. shlibpath_var=LD_LIBRARY_PATH
  8925. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8927. soname_spec='${libname}${release}${shared_ext}$major'
  8928. if test "X$HPUX_IA64_MODE" = X32; then
  8929. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8930. else
  8931. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8932. fi
  8933. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8934. ;;
  8935. hppa*64*)
  8936. shrext_cmds='.sl'
  8937. hardcode_into_libs=yes
  8938. dynamic_linker="$host_os dld.sl"
  8939. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8940. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8942. soname_spec='${libname}${release}${shared_ext}$major'
  8943. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8944. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8945. ;;
  8946. *)
  8947. shrext_cmds='.sl'
  8948. dynamic_linker="$host_os dld.sl"
  8949. shlibpath_var=SHLIB_PATH
  8950. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8951. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8952. soname_spec='${libname}${release}${shared_ext}$major'
  8953. ;;
  8954. esac
  8955. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8956. postinstall_cmds='chmod 555 $lib'
  8957. # or fails outright, so override atomically:
  8958. install_override_mode=555
  8959. ;;
  8960. interix[3-9]*)
  8961. version_type=linux # correct to gnu/linux during the next big refactor
  8962. need_lib_prefix=no
  8963. need_version=no
  8964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8965. soname_spec='${libname}${release}${shared_ext}$major'
  8966. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8967. shlibpath_var=LD_LIBRARY_PATH
  8968. shlibpath_overrides_runpath=no
  8969. hardcode_into_libs=yes
  8970. ;;
  8971. irix5* | irix6* | nonstopux*)
  8972. case $host_os in
  8973. nonstopux*) version_type=nonstopux ;;
  8974. *)
  8975. if test "$lt_cv_prog_gnu_ld" = yes; then
  8976. version_type=linux # correct to gnu/linux during the next big refactor
  8977. else
  8978. version_type=irix
  8979. fi ;;
  8980. esac
  8981. need_lib_prefix=no
  8982. need_version=no
  8983. soname_spec='${libname}${release}${shared_ext}$major'
  8984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8985. case $host_os in
  8986. irix5* | nonstopux*)
  8987. libsuff= shlibsuff=
  8988. ;;
  8989. *)
  8990. case $LD in # libtool.m4 will add one of these switches to LD
  8991. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8992. libsuff= shlibsuff= libmagic=32-bit;;
  8993. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8994. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8995. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8996. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8997. *) libsuff= shlibsuff= libmagic=never-match;;
  8998. esac
  8999. ;;
  9000. esac
  9001. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9002. shlibpath_overrides_runpath=no
  9003. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9004. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9005. hardcode_into_libs=yes
  9006. ;;
  9007. # No shared lib support for Linux oldld, aout, or coff.
  9008. linux*oldld* | linux*aout* | linux*coff*)
  9009. dynamic_linker=no
  9010. ;;
  9011. # This must be glibc/ELF.
  9012. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9013. version_type=linux # correct to gnu/linux during the next big refactor
  9014. need_lib_prefix=no
  9015. need_version=no
  9016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9017. soname_spec='${libname}${release}${shared_ext}$major'
  9018. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9019. shlibpath_var=LD_LIBRARY_PATH
  9020. shlibpath_overrides_runpath=no
  9021. # Some binutils ld are patched to set DT_RUNPATH
  9022. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9023. $as_echo_n "(cached) " >&6
  9024. else
  9025. lt_cv_shlibpath_overrides_runpath=no
  9026. save_LDFLAGS=$LDFLAGS
  9027. save_libdir=$libdir
  9028. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9029. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9031. /* end confdefs.h. */
  9032. int
  9033. main ()
  9034. {
  9035. ;
  9036. return 0;
  9037. }
  9038. _ACEOF
  9039. if ac_fn_c_try_link "$LINENO"; then :
  9040. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9041. lt_cv_shlibpath_overrides_runpath=yes
  9042. fi
  9043. fi
  9044. rm -f core conftest.err conftest.$ac_objext \
  9045. conftest$ac_exeext conftest.$ac_ext
  9046. LDFLAGS=$save_LDFLAGS
  9047. libdir=$save_libdir
  9048. fi
  9049. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9050. # This implies no fast_install, which is unacceptable.
  9051. # Some rework will be needed to allow for fast_install
  9052. # before this can be enabled.
  9053. hardcode_into_libs=yes
  9054. # Append ld.so.conf contents to the search path
  9055. if test -f /etc/ld.so.conf; then
  9056. 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' ' '`
  9057. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9058. fi
  9059. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9060. # powerpc, because MkLinux only supported shared libraries with the
  9061. # GNU dynamic linker. Since this was broken with cross compilers,
  9062. # most powerpc-linux boxes support dynamic linking these days and
  9063. # people can always --disable-shared, the test was removed, and we
  9064. # assume the GNU/Linux dynamic linker is in use.
  9065. dynamic_linker='GNU/Linux ld.so'
  9066. ;;
  9067. netbsd*)
  9068. version_type=sunos
  9069. need_lib_prefix=no
  9070. need_version=no
  9071. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9073. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9074. dynamic_linker='NetBSD (a.out) ld.so'
  9075. else
  9076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9077. soname_spec='${libname}${release}${shared_ext}$major'
  9078. dynamic_linker='NetBSD ld.elf_so'
  9079. fi
  9080. shlibpath_var=LD_LIBRARY_PATH
  9081. shlibpath_overrides_runpath=yes
  9082. hardcode_into_libs=yes
  9083. ;;
  9084. newsos6)
  9085. version_type=linux # correct to gnu/linux during the next big refactor
  9086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9087. shlibpath_var=LD_LIBRARY_PATH
  9088. shlibpath_overrides_runpath=yes
  9089. ;;
  9090. *nto* | *qnx*)
  9091. version_type=qnx
  9092. need_lib_prefix=no
  9093. need_version=no
  9094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9095. soname_spec='${libname}${release}${shared_ext}$major'
  9096. shlibpath_var=LD_LIBRARY_PATH
  9097. shlibpath_overrides_runpath=no
  9098. hardcode_into_libs=yes
  9099. dynamic_linker='ldqnx.so'
  9100. ;;
  9101. openbsd*)
  9102. version_type=sunos
  9103. sys_lib_dlsearch_path_spec="/usr/lib"
  9104. need_lib_prefix=no
  9105. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9106. case $host_os in
  9107. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9108. *) need_version=no ;;
  9109. esac
  9110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9111. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9112. shlibpath_var=LD_LIBRARY_PATH
  9113. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9114. case $host_os in
  9115. openbsd2.[89] | openbsd2.[89].*)
  9116. shlibpath_overrides_runpath=no
  9117. ;;
  9118. *)
  9119. shlibpath_overrides_runpath=yes
  9120. ;;
  9121. esac
  9122. else
  9123. shlibpath_overrides_runpath=yes
  9124. fi
  9125. ;;
  9126. os2*)
  9127. libname_spec='$name'
  9128. shrext_cmds=".dll"
  9129. need_lib_prefix=no
  9130. library_names_spec='$libname${shared_ext} $libname.a'
  9131. dynamic_linker='OS/2 ld.exe'
  9132. shlibpath_var=LIBPATH
  9133. ;;
  9134. osf3* | osf4* | osf5*)
  9135. version_type=osf
  9136. need_lib_prefix=no
  9137. need_version=no
  9138. soname_spec='${libname}${release}${shared_ext}$major'
  9139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9140. shlibpath_var=LD_LIBRARY_PATH
  9141. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9142. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9143. ;;
  9144. rdos*)
  9145. dynamic_linker=no
  9146. ;;
  9147. solaris*)
  9148. version_type=linux # correct to gnu/linux during the next big refactor
  9149. need_lib_prefix=no
  9150. need_version=no
  9151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9152. soname_spec='${libname}${release}${shared_ext}$major'
  9153. shlibpath_var=LD_LIBRARY_PATH
  9154. shlibpath_overrides_runpath=yes
  9155. hardcode_into_libs=yes
  9156. # ldd complains unless libraries are executable
  9157. postinstall_cmds='chmod +x $lib'
  9158. ;;
  9159. sunos4*)
  9160. version_type=sunos
  9161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9162. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9163. shlibpath_var=LD_LIBRARY_PATH
  9164. shlibpath_overrides_runpath=yes
  9165. if test "$with_gnu_ld" = yes; then
  9166. need_lib_prefix=no
  9167. fi
  9168. need_version=yes
  9169. ;;
  9170. sysv4 | sysv4.3*)
  9171. version_type=linux # correct to gnu/linux during the next big refactor
  9172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9173. soname_spec='${libname}${release}${shared_ext}$major'
  9174. shlibpath_var=LD_LIBRARY_PATH
  9175. case $host_vendor in
  9176. sni)
  9177. shlibpath_overrides_runpath=no
  9178. need_lib_prefix=no
  9179. runpath_var=LD_RUN_PATH
  9180. ;;
  9181. siemens)
  9182. need_lib_prefix=no
  9183. ;;
  9184. motorola)
  9185. need_lib_prefix=no
  9186. need_version=no
  9187. shlibpath_overrides_runpath=no
  9188. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9189. ;;
  9190. esac
  9191. ;;
  9192. sysv4*MP*)
  9193. if test -d /usr/nec ;then
  9194. version_type=linux # correct to gnu/linux during the next big refactor
  9195. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9196. soname_spec='$libname${shared_ext}.$major'
  9197. shlibpath_var=LD_LIBRARY_PATH
  9198. fi
  9199. ;;
  9200. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9201. version_type=freebsd-elf
  9202. need_lib_prefix=no
  9203. need_version=no
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9205. soname_spec='${libname}${release}${shared_ext}$major'
  9206. shlibpath_var=LD_LIBRARY_PATH
  9207. shlibpath_overrides_runpath=yes
  9208. hardcode_into_libs=yes
  9209. if test "$with_gnu_ld" = yes; then
  9210. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9211. else
  9212. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9213. case $host_os in
  9214. sco3.2v5*)
  9215. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9216. ;;
  9217. esac
  9218. fi
  9219. sys_lib_dlsearch_path_spec='/usr/lib'
  9220. ;;
  9221. tpf*)
  9222. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9223. version_type=linux # correct to gnu/linux during the next big refactor
  9224. need_lib_prefix=no
  9225. need_version=no
  9226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9227. shlibpath_var=LD_LIBRARY_PATH
  9228. shlibpath_overrides_runpath=no
  9229. hardcode_into_libs=yes
  9230. ;;
  9231. uts4*)
  9232. version_type=linux # correct to gnu/linux during the next big refactor
  9233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9234. soname_spec='${libname}${release}${shared_ext}$major'
  9235. shlibpath_var=LD_LIBRARY_PATH
  9236. ;;
  9237. *)
  9238. dynamic_linker=no
  9239. ;;
  9240. esac
  9241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9242. $as_echo "$dynamic_linker" >&6; }
  9243. test "$dynamic_linker" = no && can_build_shared=no
  9244. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9245. if test "$GCC" = yes; then
  9246. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9247. fi
  9248. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9249. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9250. fi
  9251. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9252. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9253. fi
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9255. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9256. hardcode_action=
  9257. if test -n "$hardcode_libdir_flag_spec" ||
  9258. test -n "$runpath_var" ||
  9259. test "X$hardcode_automatic" = "Xyes" ; then
  9260. # We can hardcode non-existent directories.
  9261. if test "$hardcode_direct" != no &&
  9262. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9263. # have to relink, otherwise we might link with an installed library
  9264. # when we should be linking with a yet-to-be-installed one
  9265. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9266. test "$hardcode_minus_L" != no; then
  9267. # Linking always hardcodes the temporary library directory.
  9268. hardcode_action=relink
  9269. else
  9270. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9271. hardcode_action=immediate
  9272. fi
  9273. else
  9274. # We cannot hardcode anything, or else we can only hardcode existing
  9275. # directories.
  9276. hardcode_action=unsupported
  9277. fi
  9278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9279. $as_echo "$hardcode_action" >&6; }
  9280. if test "$hardcode_action" = relink ||
  9281. test "$inherit_rpath" = yes; then
  9282. # Fast installation is not supported
  9283. enable_fast_install=no
  9284. elif test "$shlibpath_overrides_runpath" = yes ||
  9285. test "$enable_shared" = no; then
  9286. # Fast installation is not necessary
  9287. enable_fast_install=needless
  9288. fi
  9289. if test "x$enable_dlopen" != xyes; then
  9290. enable_dlopen=unknown
  9291. enable_dlopen_self=unknown
  9292. enable_dlopen_self_static=unknown
  9293. else
  9294. lt_cv_dlopen=no
  9295. lt_cv_dlopen_libs=
  9296. case $host_os in
  9297. beos*)
  9298. lt_cv_dlopen="load_add_on"
  9299. lt_cv_dlopen_libs=
  9300. lt_cv_dlopen_self=yes
  9301. ;;
  9302. mingw* | pw32* | cegcc*)
  9303. lt_cv_dlopen="LoadLibrary"
  9304. lt_cv_dlopen_libs=
  9305. ;;
  9306. cygwin*)
  9307. lt_cv_dlopen="dlopen"
  9308. lt_cv_dlopen_libs=
  9309. ;;
  9310. darwin*)
  9311. # if libdl is installed we need to link against it
  9312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9313. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9314. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9315. $as_echo_n "(cached) " >&6
  9316. else
  9317. ac_check_lib_save_LIBS=$LIBS
  9318. LIBS="-ldl $LIBS"
  9319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9320. /* end confdefs.h. */
  9321. /* Override any GCC internal prototype to avoid an error.
  9322. Use char because int might match the return type of a GCC
  9323. builtin and then its argument prototype would still apply. */
  9324. #ifdef __cplusplus
  9325. extern "C"
  9326. #endif
  9327. char dlopen ();
  9328. int
  9329. main ()
  9330. {
  9331. return dlopen ();
  9332. ;
  9333. return 0;
  9334. }
  9335. _ACEOF
  9336. if ac_fn_c_try_link "$LINENO"; then :
  9337. ac_cv_lib_dl_dlopen=yes
  9338. else
  9339. ac_cv_lib_dl_dlopen=no
  9340. fi
  9341. rm -f core conftest.err conftest.$ac_objext \
  9342. conftest$ac_exeext conftest.$ac_ext
  9343. LIBS=$ac_check_lib_save_LIBS
  9344. fi
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9346. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9347. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9348. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9349. else
  9350. lt_cv_dlopen="dyld"
  9351. lt_cv_dlopen_libs=
  9352. lt_cv_dlopen_self=yes
  9353. fi
  9354. ;;
  9355. *)
  9356. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9357. if test "x$ac_cv_func_shl_load" = xyes; then :
  9358. lt_cv_dlopen="shl_load"
  9359. else
  9360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9361. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9362. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9363. $as_echo_n "(cached) " >&6
  9364. else
  9365. ac_check_lib_save_LIBS=$LIBS
  9366. LIBS="-ldld $LIBS"
  9367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9368. /* end confdefs.h. */
  9369. /* Override any GCC internal prototype to avoid an error.
  9370. Use char because int might match the return type of a GCC
  9371. builtin and then its argument prototype would still apply. */
  9372. #ifdef __cplusplus
  9373. extern "C"
  9374. #endif
  9375. char shl_load ();
  9376. int
  9377. main ()
  9378. {
  9379. return shl_load ();
  9380. ;
  9381. return 0;
  9382. }
  9383. _ACEOF
  9384. if ac_fn_c_try_link "$LINENO"; then :
  9385. ac_cv_lib_dld_shl_load=yes
  9386. else
  9387. ac_cv_lib_dld_shl_load=no
  9388. fi
  9389. rm -f core conftest.err conftest.$ac_objext \
  9390. conftest$ac_exeext conftest.$ac_ext
  9391. LIBS=$ac_check_lib_save_LIBS
  9392. fi
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9394. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9395. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9396. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9397. else
  9398. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9399. if test "x$ac_cv_func_dlopen" = xyes; then :
  9400. lt_cv_dlopen="dlopen"
  9401. else
  9402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9403. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9404. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9405. $as_echo_n "(cached) " >&6
  9406. else
  9407. ac_check_lib_save_LIBS=$LIBS
  9408. LIBS="-ldl $LIBS"
  9409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9410. /* end confdefs.h. */
  9411. /* Override any GCC internal prototype to avoid an error.
  9412. Use char because int might match the return type of a GCC
  9413. builtin and then its argument prototype would still apply. */
  9414. #ifdef __cplusplus
  9415. extern "C"
  9416. #endif
  9417. char dlopen ();
  9418. int
  9419. main ()
  9420. {
  9421. return dlopen ();
  9422. ;
  9423. return 0;
  9424. }
  9425. _ACEOF
  9426. if ac_fn_c_try_link "$LINENO"; then :
  9427. ac_cv_lib_dl_dlopen=yes
  9428. else
  9429. ac_cv_lib_dl_dlopen=no
  9430. fi
  9431. rm -f core conftest.err conftest.$ac_objext \
  9432. conftest$ac_exeext conftest.$ac_ext
  9433. LIBS=$ac_check_lib_save_LIBS
  9434. fi
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9436. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9437. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9438. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9439. else
  9440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9441. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9442. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9443. $as_echo_n "(cached) " >&6
  9444. else
  9445. ac_check_lib_save_LIBS=$LIBS
  9446. LIBS="-lsvld $LIBS"
  9447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9448. /* end confdefs.h. */
  9449. /* Override any GCC internal prototype to avoid an error.
  9450. Use char because int might match the return type of a GCC
  9451. builtin and then its argument prototype would still apply. */
  9452. #ifdef __cplusplus
  9453. extern "C"
  9454. #endif
  9455. char dlopen ();
  9456. int
  9457. main ()
  9458. {
  9459. return dlopen ();
  9460. ;
  9461. return 0;
  9462. }
  9463. _ACEOF
  9464. if ac_fn_c_try_link "$LINENO"; then :
  9465. ac_cv_lib_svld_dlopen=yes
  9466. else
  9467. ac_cv_lib_svld_dlopen=no
  9468. fi
  9469. rm -f core conftest.err conftest.$ac_objext \
  9470. conftest$ac_exeext conftest.$ac_ext
  9471. LIBS=$ac_check_lib_save_LIBS
  9472. fi
  9473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9474. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9475. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9476. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9477. else
  9478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9479. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9480. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9481. $as_echo_n "(cached) " >&6
  9482. else
  9483. ac_check_lib_save_LIBS=$LIBS
  9484. LIBS="-ldld $LIBS"
  9485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9486. /* end confdefs.h. */
  9487. /* Override any GCC internal prototype to avoid an error.
  9488. Use char because int might match the return type of a GCC
  9489. builtin and then its argument prototype would still apply. */
  9490. #ifdef __cplusplus
  9491. extern "C"
  9492. #endif
  9493. char dld_link ();
  9494. int
  9495. main ()
  9496. {
  9497. return dld_link ();
  9498. ;
  9499. return 0;
  9500. }
  9501. _ACEOF
  9502. if ac_fn_c_try_link "$LINENO"; then :
  9503. ac_cv_lib_dld_dld_link=yes
  9504. else
  9505. ac_cv_lib_dld_dld_link=no
  9506. fi
  9507. rm -f core conftest.err conftest.$ac_objext \
  9508. conftest$ac_exeext conftest.$ac_ext
  9509. LIBS=$ac_check_lib_save_LIBS
  9510. fi
  9511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9512. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9513. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9514. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9515. fi
  9516. fi
  9517. fi
  9518. fi
  9519. fi
  9520. fi
  9521. ;;
  9522. esac
  9523. if test "x$lt_cv_dlopen" != xno; then
  9524. enable_dlopen=yes
  9525. else
  9526. enable_dlopen=no
  9527. fi
  9528. case $lt_cv_dlopen in
  9529. dlopen)
  9530. save_CPPFLAGS="$CPPFLAGS"
  9531. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9532. save_LDFLAGS="$LDFLAGS"
  9533. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9534. save_LIBS="$LIBS"
  9535. LIBS="$lt_cv_dlopen_libs $LIBS"
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9537. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9538. if ${lt_cv_dlopen_self+:} false; then :
  9539. $as_echo_n "(cached) " >&6
  9540. else
  9541. if test "$cross_compiling" = yes; then :
  9542. lt_cv_dlopen_self=cross
  9543. else
  9544. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9545. lt_status=$lt_dlunknown
  9546. cat > conftest.$ac_ext <<_LT_EOF
  9547. #line $LINENO "configure"
  9548. #include "confdefs.h"
  9549. #if HAVE_DLFCN_H
  9550. #include <dlfcn.h>
  9551. #endif
  9552. #include <stdio.h>
  9553. #ifdef RTLD_GLOBAL
  9554. # define LT_DLGLOBAL RTLD_GLOBAL
  9555. #else
  9556. # ifdef DL_GLOBAL
  9557. # define LT_DLGLOBAL DL_GLOBAL
  9558. # else
  9559. # define LT_DLGLOBAL 0
  9560. # endif
  9561. #endif
  9562. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9563. find out it does not work in some platform. */
  9564. #ifndef LT_DLLAZY_OR_NOW
  9565. # ifdef RTLD_LAZY
  9566. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9567. # else
  9568. # ifdef DL_LAZY
  9569. # define LT_DLLAZY_OR_NOW DL_LAZY
  9570. # else
  9571. # ifdef RTLD_NOW
  9572. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9573. # else
  9574. # ifdef DL_NOW
  9575. # define LT_DLLAZY_OR_NOW DL_NOW
  9576. # else
  9577. # define LT_DLLAZY_OR_NOW 0
  9578. # endif
  9579. # endif
  9580. # endif
  9581. # endif
  9582. #endif
  9583. /* When -fvisbility=hidden is used, assume the code has been annotated
  9584. correspondingly for the symbols needed. */
  9585. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9586. int fnord () __attribute__((visibility("default")));
  9587. #endif
  9588. int fnord () { return 42; }
  9589. int main ()
  9590. {
  9591. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9592. int status = $lt_dlunknown;
  9593. if (self)
  9594. {
  9595. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9596. else
  9597. {
  9598. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9599. else puts (dlerror ());
  9600. }
  9601. /* dlclose (self); */
  9602. }
  9603. else
  9604. puts (dlerror ());
  9605. return status;
  9606. }
  9607. _LT_EOF
  9608. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9609. (eval $ac_link) 2>&5
  9610. ac_status=$?
  9611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9612. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9613. (./conftest; exit; ) >&5 2>/dev/null
  9614. lt_status=$?
  9615. case x$lt_status in
  9616. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9617. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9618. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9619. esac
  9620. else :
  9621. # compilation failed
  9622. lt_cv_dlopen_self=no
  9623. fi
  9624. fi
  9625. rm -fr conftest*
  9626. fi
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9628. $as_echo "$lt_cv_dlopen_self" >&6; }
  9629. if test "x$lt_cv_dlopen_self" = xyes; then
  9630. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9632. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9633. if ${lt_cv_dlopen_self_static+:} false; then :
  9634. $as_echo_n "(cached) " >&6
  9635. else
  9636. if test "$cross_compiling" = yes; then :
  9637. lt_cv_dlopen_self_static=cross
  9638. else
  9639. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9640. lt_status=$lt_dlunknown
  9641. cat > conftest.$ac_ext <<_LT_EOF
  9642. #line $LINENO "configure"
  9643. #include "confdefs.h"
  9644. #if HAVE_DLFCN_H
  9645. #include <dlfcn.h>
  9646. #endif
  9647. #include <stdio.h>
  9648. #ifdef RTLD_GLOBAL
  9649. # define LT_DLGLOBAL RTLD_GLOBAL
  9650. #else
  9651. # ifdef DL_GLOBAL
  9652. # define LT_DLGLOBAL DL_GLOBAL
  9653. # else
  9654. # define LT_DLGLOBAL 0
  9655. # endif
  9656. #endif
  9657. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9658. find out it does not work in some platform. */
  9659. #ifndef LT_DLLAZY_OR_NOW
  9660. # ifdef RTLD_LAZY
  9661. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9662. # else
  9663. # ifdef DL_LAZY
  9664. # define LT_DLLAZY_OR_NOW DL_LAZY
  9665. # else
  9666. # ifdef RTLD_NOW
  9667. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9668. # else
  9669. # ifdef DL_NOW
  9670. # define LT_DLLAZY_OR_NOW DL_NOW
  9671. # else
  9672. # define LT_DLLAZY_OR_NOW 0
  9673. # endif
  9674. # endif
  9675. # endif
  9676. # endif
  9677. #endif
  9678. /* When -fvisbility=hidden is used, assume the code has been annotated
  9679. correspondingly for the symbols needed. */
  9680. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9681. int fnord () __attribute__((visibility("default")));
  9682. #endif
  9683. int fnord () { return 42; }
  9684. int main ()
  9685. {
  9686. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9687. int status = $lt_dlunknown;
  9688. if (self)
  9689. {
  9690. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9691. else
  9692. {
  9693. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9694. else puts (dlerror ());
  9695. }
  9696. /* dlclose (self); */
  9697. }
  9698. else
  9699. puts (dlerror ());
  9700. return status;
  9701. }
  9702. _LT_EOF
  9703. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9704. (eval $ac_link) 2>&5
  9705. ac_status=$?
  9706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9707. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9708. (./conftest; exit; ) >&5 2>/dev/null
  9709. lt_status=$?
  9710. case x$lt_status in
  9711. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9712. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9713. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9714. esac
  9715. else :
  9716. # compilation failed
  9717. lt_cv_dlopen_self_static=no
  9718. fi
  9719. fi
  9720. rm -fr conftest*
  9721. fi
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9723. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9724. fi
  9725. CPPFLAGS="$save_CPPFLAGS"
  9726. LDFLAGS="$save_LDFLAGS"
  9727. LIBS="$save_LIBS"
  9728. ;;
  9729. esac
  9730. case $lt_cv_dlopen_self in
  9731. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9732. *) enable_dlopen_self=unknown ;;
  9733. esac
  9734. case $lt_cv_dlopen_self_static in
  9735. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9736. *) enable_dlopen_self_static=unknown ;;
  9737. esac
  9738. fi
  9739. striplib=
  9740. old_striplib=
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9742. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9743. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9744. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9745. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9747. $as_echo "yes" >&6; }
  9748. else
  9749. # FIXME - insert some real tests, host_os isn't really good enough
  9750. case $host_os in
  9751. darwin*)
  9752. if test -n "$STRIP" ; then
  9753. striplib="$STRIP -x"
  9754. old_striplib="$STRIP -S"
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9756. $as_echo "yes" >&6; }
  9757. else
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9759. $as_echo "no" >&6; }
  9760. fi
  9761. ;;
  9762. *)
  9763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9764. $as_echo "no" >&6; }
  9765. ;;
  9766. esac
  9767. fi
  9768. # Report which library types will actually be built
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9770. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9772. $as_echo "$can_build_shared" >&6; }
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9774. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9775. test "$can_build_shared" = "no" && enable_shared=no
  9776. # On AIX, shared libraries and static libraries use the same namespace, and
  9777. # are all built from PIC.
  9778. case $host_os in
  9779. aix3*)
  9780. test "$enable_shared" = yes && enable_static=no
  9781. if test -n "$RANLIB"; then
  9782. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9783. postinstall_cmds='$RANLIB $lib'
  9784. fi
  9785. ;;
  9786. aix[4-9]*)
  9787. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9788. test "$enable_shared" = yes && enable_static=no
  9789. fi
  9790. ;;
  9791. esac
  9792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9793. $as_echo "$enable_shared" >&6; }
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9795. $as_echo_n "checking whether to build static libraries... " >&6; }
  9796. # Make sure either enable_shared or enable_static is yes.
  9797. test "$enable_shared" = yes || enable_static=yes
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9799. $as_echo "$enable_static" >&6; }
  9800. fi
  9801. ac_ext=c
  9802. ac_cpp='$CPP $CPPFLAGS'
  9803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9806. CC="$lt_save_CC"
  9807. ac_config_commands="$ac_config_commands libtool"
  9808. # Only expand once:
  9809. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9810. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9811. LT_REVISION=$SDL_INTERFACE_AGE
  9812. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9813. ac_ext=c
  9814. ac_cpp='$CPP $CPPFLAGS'
  9815. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9816. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9817. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9818. if test -n "$ac_tool_prefix"; then
  9819. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9820. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9822. $as_echo_n "checking for $ac_word... " >&6; }
  9823. if ${ac_cv_prog_CC+:} false; then :
  9824. $as_echo_n "(cached) " >&6
  9825. else
  9826. if test -n "$CC"; then
  9827. ac_cv_prog_CC="$CC" # Let the user override the test.
  9828. else
  9829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9830. for as_dir in $PATH
  9831. do
  9832. IFS=$as_save_IFS
  9833. test -z "$as_dir" && as_dir=.
  9834. for ac_exec_ext in '' $ac_executable_extensions; do
  9835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9836. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9838. break 2
  9839. fi
  9840. done
  9841. done
  9842. IFS=$as_save_IFS
  9843. fi
  9844. fi
  9845. CC=$ac_cv_prog_CC
  9846. if test -n "$CC"; then
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9848. $as_echo "$CC" >&6; }
  9849. else
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9851. $as_echo "no" >&6; }
  9852. fi
  9853. fi
  9854. if test -z "$ac_cv_prog_CC"; then
  9855. ac_ct_CC=$CC
  9856. # Extract the first word of "gcc", so it can be a program name with args.
  9857. set dummy gcc; ac_word=$2
  9858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9859. $as_echo_n "checking for $ac_word... " >&6; }
  9860. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9861. $as_echo_n "(cached) " >&6
  9862. else
  9863. if test -n "$ac_ct_CC"; then
  9864. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9865. else
  9866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9867. for as_dir in $PATH
  9868. do
  9869. IFS=$as_save_IFS
  9870. test -z "$as_dir" && as_dir=.
  9871. for ac_exec_ext in '' $ac_executable_extensions; do
  9872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9873. ac_cv_prog_ac_ct_CC="gcc"
  9874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9875. break 2
  9876. fi
  9877. done
  9878. done
  9879. IFS=$as_save_IFS
  9880. fi
  9881. fi
  9882. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9883. if test -n "$ac_ct_CC"; then
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9885. $as_echo "$ac_ct_CC" >&6; }
  9886. else
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9888. $as_echo "no" >&6; }
  9889. fi
  9890. if test "x$ac_ct_CC" = x; then
  9891. CC=""
  9892. else
  9893. case $cross_compiling:$ac_tool_warned in
  9894. yes:)
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9897. ac_tool_warned=yes ;;
  9898. esac
  9899. CC=$ac_ct_CC
  9900. fi
  9901. else
  9902. CC="$ac_cv_prog_CC"
  9903. fi
  9904. if test -z "$CC"; then
  9905. if test -n "$ac_tool_prefix"; then
  9906. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9907. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9909. $as_echo_n "checking for $ac_word... " >&6; }
  9910. if ${ac_cv_prog_CC+:} false; then :
  9911. $as_echo_n "(cached) " >&6
  9912. else
  9913. if test -n "$CC"; then
  9914. ac_cv_prog_CC="$CC" # Let the user override the test.
  9915. else
  9916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9917. for as_dir in $PATH
  9918. do
  9919. IFS=$as_save_IFS
  9920. test -z "$as_dir" && as_dir=.
  9921. for ac_exec_ext in '' $ac_executable_extensions; do
  9922. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9923. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9925. break 2
  9926. fi
  9927. done
  9928. done
  9929. IFS=$as_save_IFS
  9930. fi
  9931. fi
  9932. CC=$ac_cv_prog_CC
  9933. if test -n "$CC"; then
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9935. $as_echo "$CC" >&6; }
  9936. else
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9938. $as_echo "no" >&6; }
  9939. fi
  9940. fi
  9941. fi
  9942. if test -z "$CC"; then
  9943. # Extract the first word of "cc", so it can be a program name with args.
  9944. set dummy cc; ac_word=$2
  9945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9946. $as_echo_n "checking for $ac_word... " >&6; }
  9947. if ${ac_cv_prog_CC+:} false; then :
  9948. $as_echo_n "(cached) " >&6
  9949. else
  9950. if test -n "$CC"; then
  9951. ac_cv_prog_CC="$CC" # Let the user override the test.
  9952. else
  9953. ac_prog_rejected=no
  9954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9955. for as_dir in $PATH
  9956. do
  9957. IFS=$as_save_IFS
  9958. test -z "$as_dir" && as_dir=.
  9959. for ac_exec_ext in '' $ac_executable_extensions; do
  9960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9961. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9962. ac_prog_rejected=yes
  9963. continue
  9964. fi
  9965. ac_cv_prog_CC="cc"
  9966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9967. break 2
  9968. fi
  9969. done
  9970. done
  9971. IFS=$as_save_IFS
  9972. if test $ac_prog_rejected = yes; then
  9973. # We found a bogon in the path, so make sure we never use it.
  9974. set dummy $ac_cv_prog_CC
  9975. shift
  9976. if test $# != 0; then
  9977. # We chose a different compiler from the bogus one.
  9978. # However, it has the same basename, so the bogon will be chosen
  9979. # first if we set CC to just the basename; use the full file name.
  9980. shift
  9981. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9982. fi
  9983. fi
  9984. fi
  9985. fi
  9986. CC=$ac_cv_prog_CC
  9987. if test -n "$CC"; then
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9989. $as_echo "$CC" >&6; }
  9990. else
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9992. $as_echo "no" >&6; }
  9993. fi
  9994. fi
  9995. if test -z "$CC"; then
  9996. if test -n "$ac_tool_prefix"; then
  9997. for ac_prog in cl.exe
  9998. do
  9999. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10000. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10002. $as_echo_n "checking for $ac_word... " >&6; }
  10003. if ${ac_cv_prog_CC+:} false; then :
  10004. $as_echo_n "(cached) " >&6
  10005. else
  10006. if test -n "$CC"; then
  10007. ac_cv_prog_CC="$CC" # Let the user override the test.
  10008. else
  10009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10010. for as_dir in $PATH
  10011. do
  10012. IFS=$as_save_IFS
  10013. test -z "$as_dir" && as_dir=.
  10014. for ac_exec_ext in '' $ac_executable_extensions; do
  10015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10016. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10018. break 2
  10019. fi
  10020. done
  10021. done
  10022. IFS=$as_save_IFS
  10023. fi
  10024. fi
  10025. CC=$ac_cv_prog_CC
  10026. if test -n "$CC"; then
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10028. $as_echo "$CC" >&6; }
  10029. else
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10031. $as_echo "no" >&6; }
  10032. fi
  10033. test -n "$CC" && break
  10034. done
  10035. fi
  10036. if test -z "$CC"; then
  10037. ac_ct_CC=$CC
  10038. for ac_prog in cl.exe
  10039. do
  10040. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10041. set dummy $ac_prog; ac_word=$2
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10043. $as_echo_n "checking for $ac_word... " >&6; }
  10044. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10045. $as_echo_n "(cached) " >&6
  10046. else
  10047. if test -n "$ac_ct_CC"; then
  10048. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10049. else
  10050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10051. for as_dir in $PATH
  10052. do
  10053. IFS=$as_save_IFS
  10054. test -z "$as_dir" && as_dir=.
  10055. for ac_exec_ext in '' $ac_executable_extensions; do
  10056. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10057. ac_cv_prog_ac_ct_CC="$ac_prog"
  10058. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10059. break 2
  10060. fi
  10061. done
  10062. done
  10063. IFS=$as_save_IFS
  10064. fi
  10065. fi
  10066. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10067. if test -n "$ac_ct_CC"; then
  10068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10069. $as_echo "$ac_ct_CC" >&6; }
  10070. else
  10071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10072. $as_echo "no" >&6; }
  10073. fi
  10074. test -n "$ac_ct_CC" && break
  10075. done
  10076. if test "x$ac_ct_CC" = x; then
  10077. CC=""
  10078. else
  10079. case $cross_compiling:$ac_tool_warned in
  10080. yes:)
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10082. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10083. ac_tool_warned=yes ;;
  10084. esac
  10085. CC=$ac_ct_CC
  10086. fi
  10087. fi
  10088. fi
  10089. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10090. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10091. as_fn_error $? "no acceptable C compiler found in \$PATH
  10092. See \`config.log' for more details" "$LINENO" 5; }
  10093. # Provide some information about the compiler.
  10094. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10095. set X $ac_compile
  10096. ac_compiler=$2
  10097. for ac_option in --version -v -V -qversion; do
  10098. { { ac_try="$ac_compiler $ac_option >&5"
  10099. case "(($ac_try" in
  10100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10101. *) ac_try_echo=$ac_try;;
  10102. esac
  10103. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10104. $as_echo "$ac_try_echo"; } >&5
  10105. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10106. ac_status=$?
  10107. if test -s conftest.err; then
  10108. sed '10a\
  10109. ... rest of stderr output deleted ...
  10110. 10q' conftest.err >conftest.er1
  10111. cat conftest.er1 >&5
  10112. fi
  10113. rm -f conftest.er1 conftest.err
  10114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10115. test $ac_status = 0; }
  10116. done
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10118. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10119. if ${ac_cv_c_compiler_gnu+:} false; then :
  10120. $as_echo_n "(cached) " >&6
  10121. else
  10122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10123. /* end confdefs.h. */
  10124. int
  10125. main ()
  10126. {
  10127. #ifndef __GNUC__
  10128. choke me
  10129. #endif
  10130. ;
  10131. return 0;
  10132. }
  10133. _ACEOF
  10134. if ac_fn_c_try_compile "$LINENO"; then :
  10135. ac_compiler_gnu=yes
  10136. else
  10137. ac_compiler_gnu=no
  10138. fi
  10139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10140. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10141. fi
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10143. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10144. if test $ac_compiler_gnu = yes; then
  10145. GCC=yes
  10146. else
  10147. GCC=
  10148. fi
  10149. ac_test_CFLAGS=${CFLAGS+set}
  10150. ac_save_CFLAGS=$CFLAGS
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10152. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10153. if ${ac_cv_prog_cc_g+:} false; then :
  10154. $as_echo_n "(cached) " >&6
  10155. else
  10156. ac_save_c_werror_flag=$ac_c_werror_flag
  10157. ac_c_werror_flag=yes
  10158. ac_cv_prog_cc_g=no
  10159. CFLAGS="-g"
  10160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10161. /* end confdefs.h. */
  10162. int
  10163. main ()
  10164. {
  10165. ;
  10166. return 0;
  10167. }
  10168. _ACEOF
  10169. if ac_fn_c_try_compile "$LINENO"; then :
  10170. ac_cv_prog_cc_g=yes
  10171. else
  10172. CFLAGS=""
  10173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10174. /* end confdefs.h. */
  10175. int
  10176. main ()
  10177. {
  10178. ;
  10179. return 0;
  10180. }
  10181. _ACEOF
  10182. if ac_fn_c_try_compile "$LINENO"; then :
  10183. else
  10184. ac_c_werror_flag=$ac_save_c_werror_flag
  10185. CFLAGS="-g"
  10186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10187. /* end confdefs.h. */
  10188. int
  10189. main ()
  10190. {
  10191. ;
  10192. return 0;
  10193. }
  10194. _ACEOF
  10195. if ac_fn_c_try_compile "$LINENO"; then :
  10196. ac_cv_prog_cc_g=yes
  10197. fi
  10198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10199. fi
  10200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10201. fi
  10202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10203. ac_c_werror_flag=$ac_save_c_werror_flag
  10204. fi
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10206. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10207. if test "$ac_test_CFLAGS" = set; then
  10208. CFLAGS=$ac_save_CFLAGS
  10209. elif test $ac_cv_prog_cc_g = yes; then
  10210. if test "$GCC" = yes; then
  10211. CFLAGS="-g -O2"
  10212. else
  10213. CFLAGS="-g"
  10214. fi
  10215. else
  10216. if test "$GCC" = yes; then
  10217. CFLAGS="-O2"
  10218. else
  10219. CFLAGS=
  10220. fi
  10221. fi
  10222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10223. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10224. if ${ac_cv_prog_cc_c89+:} false; then :
  10225. $as_echo_n "(cached) " >&6
  10226. else
  10227. ac_cv_prog_cc_c89=no
  10228. ac_save_CC=$CC
  10229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10230. /* end confdefs.h. */
  10231. #include <stdarg.h>
  10232. #include <stdio.h>
  10233. struct stat;
  10234. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10235. struct buf { int x; };
  10236. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10237. static char *e (p, i)
  10238. char **p;
  10239. int i;
  10240. {
  10241. return p[i];
  10242. }
  10243. static char *f (char * (*g) (char **, int), char **p, ...)
  10244. {
  10245. char *s;
  10246. va_list v;
  10247. va_start (v,p);
  10248. s = g (p, va_arg (v,int));
  10249. va_end (v);
  10250. return s;
  10251. }
  10252. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10253. function prototypes and stuff, but not '\xHH' hex character constants.
  10254. These don't provoke an error unfortunately, instead are silently treated
  10255. as 'x'. The following induces an error, until -std is added to get
  10256. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10257. array size at least. It's necessary to write '\x00'==0 to get something
  10258. that's true only with -std. */
  10259. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10260. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10261. inside strings and character constants. */
  10262. #define FOO(x) 'x'
  10263. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10264. int test (int i, double x);
  10265. struct s1 {int (*f) (int a);};
  10266. struct s2 {int (*f) (double a);};
  10267. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10268. int argc;
  10269. char **argv;
  10270. int
  10271. main ()
  10272. {
  10273. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10274. ;
  10275. return 0;
  10276. }
  10277. _ACEOF
  10278. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10279. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10280. do
  10281. CC="$ac_save_CC $ac_arg"
  10282. if ac_fn_c_try_compile "$LINENO"; then :
  10283. ac_cv_prog_cc_c89=$ac_arg
  10284. fi
  10285. rm -f core conftest.err conftest.$ac_objext
  10286. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10287. done
  10288. rm -f conftest.$ac_ext
  10289. CC=$ac_save_CC
  10290. fi
  10291. # AC_CACHE_VAL
  10292. case "x$ac_cv_prog_cc_c89" in
  10293. x)
  10294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10295. $as_echo "none needed" >&6; } ;;
  10296. xno)
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10298. $as_echo "unsupported" >&6; } ;;
  10299. *)
  10300. CC="$CC $ac_cv_prog_cc_c89"
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10302. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10303. esac
  10304. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10305. fi
  10306. ac_ext=c
  10307. ac_cpp='$CPP $CPPFLAGS'
  10308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10311. ac_ext=cpp
  10312. ac_cpp='$CXXCPP $CPPFLAGS'
  10313. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10314. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10315. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10316. if test -z "$CXX"; then
  10317. if test -n "$CCC"; then
  10318. CXX=$CCC
  10319. else
  10320. if test -n "$ac_tool_prefix"; then
  10321. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10322. do
  10323. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10324. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10326. $as_echo_n "checking for $ac_word... " >&6; }
  10327. if ${ac_cv_prog_CXX+:} false; then :
  10328. $as_echo_n "(cached) " >&6
  10329. else
  10330. if test -n "$CXX"; then
  10331. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10332. else
  10333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10334. for as_dir in $PATH
  10335. do
  10336. IFS=$as_save_IFS
  10337. test -z "$as_dir" && as_dir=.
  10338. for ac_exec_ext in '' $ac_executable_extensions; do
  10339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10340. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10342. break 2
  10343. fi
  10344. done
  10345. done
  10346. IFS=$as_save_IFS
  10347. fi
  10348. fi
  10349. CXX=$ac_cv_prog_CXX
  10350. if test -n "$CXX"; then
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10352. $as_echo "$CXX" >&6; }
  10353. else
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10355. $as_echo "no" >&6; }
  10356. fi
  10357. test -n "$CXX" && break
  10358. done
  10359. fi
  10360. if test -z "$CXX"; then
  10361. ac_ct_CXX=$CXX
  10362. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10363. do
  10364. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10365. set dummy $ac_prog; ac_word=$2
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10367. $as_echo_n "checking for $ac_word... " >&6; }
  10368. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10369. $as_echo_n "(cached) " >&6
  10370. else
  10371. if test -n "$ac_ct_CXX"; then
  10372. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10373. else
  10374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10375. for as_dir in $PATH
  10376. do
  10377. IFS=$as_save_IFS
  10378. test -z "$as_dir" && as_dir=.
  10379. for ac_exec_ext in '' $ac_executable_extensions; do
  10380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10381. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10383. break 2
  10384. fi
  10385. done
  10386. done
  10387. IFS=$as_save_IFS
  10388. fi
  10389. fi
  10390. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10391. if test -n "$ac_ct_CXX"; then
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10393. $as_echo "$ac_ct_CXX" >&6; }
  10394. else
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10396. $as_echo "no" >&6; }
  10397. fi
  10398. test -n "$ac_ct_CXX" && break
  10399. done
  10400. if test "x$ac_ct_CXX" = x; then
  10401. CXX="g++"
  10402. else
  10403. case $cross_compiling:$ac_tool_warned in
  10404. yes:)
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10406. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10407. ac_tool_warned=yes ;;
  10408. esac
  10409. CXX=$ac_ct_CXX
  10410. fi
  10411. fi
  10412. fi
  10413. fi
  10414. # Provide some information about the compiler.
  10415. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10416. set X $ac_compile
  10417. ac_compiler=$2
  10418. for ac_option in --version -v -V -qversion; do
  10419. { { ac_try="$ac_compiler $ac_option >&5"
  10420. case "(($ac_try" in
  10421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10422. *) ac_try_echo=$ac_try;;
  10423. esac
  10424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10425. $as_echo "$ac_try_echo"; } >&5
  10426. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10427. ac_status=$?
  10428. if test -s conftest.err; then
  10429. sed '10a\
  10430. ... rest of stderr output deleted ...
  10431. 10q' conftest.err >conftest.er1
  10432. cat conftest.er1 >&5
  10433. fi
  10434. rm -f conftest.er1 conftest.err
  10435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10436. test $ac_status = 0; }
  10437. done
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10439. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10440. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10441. $as_echo_n "(cached) " >&6
  10442. else
  10443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10444. /* end confdefs.h. */
  10445. int
  10446. main ()
  10447. {
  10448. #ifndef __GNUC__
  10449. choke me
  10450. #endif
  10451. ;
  10452. return 0;
  10453. }
  10454. _ACEOF
  10455. if ac_fn_cxx_try_compile "$LINENO"; then :
  10456. ac_compiler_gnu=yes
  10457. else
  10458. ac_compiler_gnu=no
  10459. fi
  10460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10461. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10462. fi
  10463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10464. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10465. if test $ac_compiler_gnu = yes; then
  10466. GXX=yes
  10467. else
  10468. GXX=
  10469. fi
  10470. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10471. ac_save_CXXFLAGS=$CXXFLAGS
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10473. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10474. if ${ac_cv_prog_cxx_g+:} false; then :
  10475. $as_echo_n "(cached) " >&6
  10476. else
  10477. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10478. ac_cxx_werror_flag=yes
  10479. ac_cv_prog_cxx_g=no
  10480. CXXFLAGS="-g"
  10481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10482. /* end confdefs.h. */
  10483. int
  10484. main ()
  10485. {
  10486. ;
  10487. return 0;
  10488. }
  10489. _ACEOF
  10490. if ac_fn_cxx_try_compile "$LINENO"; then :
  10491. ac_cv_prog_cxx_g=yes
  10492. else
  10493. CXXFLAGS=""
  10494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10495. /* end confdefs.h. */
  10496. int
  10497. main ()
  10498. {
  10499. ;
  10500. return 0;
  10501. }
  10502. _ACEOF
  10503. if ac_fn_cxx_try_compile "$LINENO"; then :
  10504. else
  10505. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10506. CXXFLAGS="-g"
  10507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10508. /* end confdefs.h. */
  10509. int
  10510. main ()
  10511. {
  10512. ;
  10513. return 0;
  10514. }
  10515. _ACEOF
  10516. if ac_fn_cxx_try_compile "$LINENO"; then :
  10517. ac_cv_prog_cxx_g=yes
  10518. fi
  10519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10520. fi
  10521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10522. fi
  10523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10524. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10525. fi
  10526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10527. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10528. if test "$ac_test_CXXFLAGS" = set; then
  10529. CXXFLAGS=$ac_save_CXXFLAGS
  10530. elif test $ac_cv_prog_cxx_g = yes; then
  10531. if test "$GXX" = yes; then
  10532. CXXFLAGS="-g -O2"
  10533. else
  10534. CXXFLAGS="-g"
  10535. fi
  10536. else
  10537. if test "$GXX" = yes; then
  10538. CXXFLAGS="-O2"
  10539. else
  10540. CXXFLAGS=
  10541. fi
  10542. fi
  10543. ac_ext=c
  10544. ac_cpp='$CPP $CPPFLAGS'
  10545. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10546. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10547. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10548. func_stripname_cnf ()
  10549. {
  10550. case ${2} in
  10551. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10552. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10553. esac
  10554. } # func_stripname_cnf
  10555. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10556. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10557. (test "X$CXX" != "Xg++"))) ; then
  10558. ac_ext=cpp
  10559. ac_cpp='$CXXCPP $CPPFLAGS'
  10560. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10561. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10562. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10564. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10565. if test -z "$CXXCPP"; then
  10566. if ${ac_cv_prog_CXXCPP+:} false; then :
  10567. $as_echo_n "(cached) " >&6
  10568. else
  10569. # Double quotes because CXXCPP needs to be expanded
  10570. for CXXCPP in "$CXX -E" "/lib/cpp"
  10571. do
  10572. ac_preproc_ok=false
  10573. for ac_cxx_preproc_warn_flag in '' yes
  10574. do
  10575. # Use a header file that comes with gcc, so configuring glibc
  10576. # with a fresh cross-compiler works.
  10577. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10578. # <limits.h> exists even on freestanding compilers.
  10579. # On the NeXT, cc -E runs the code through the compiler's parser,
  10580. # not just through cpp. "Syntax error" is here to catch this case.
  10581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10582. /* end confdefs.h. */
  10583. #ifdef __STDC__
  10584. # include <limits.h>
  10585. #else
  10586. # include <assert.h>
  10587. #endif
  10588. Syntax error
  10589. _ACEOF
  10590. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10591. else
  10592. # Broken: fails on valid input.
  10593. continue
  10594. fi
  10595. rm -f conftest.err conftest.i conftest.$ac_ext
  10596. # OK, works on sane cases. Now check whether nonexistent headers
  10597. # can be detected and how.
  10598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10599. /* end confdefs.h. */
  10600. #include <ac_nonexistent.h>
  10601. _ACEOF
  10602. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10603. # Broken: success on invalid input.
  10604. continue
  10605. else
  10606. # Passes both tests.
  10607. ac_preproc_ok=:
  10608. break
  10609. fi
  10610. rm -f conftest.err conftest.i conftest.$ac_ext
  10611. done
  10612. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10613. rm -f conftest.i conftest.err conftest.$ac_ext
  10614. if $ac_preproc_ok; then :
  10615. break
  10616. fi
  10617. done
  10618. ac_cv_prog_CXXCPP=$CXXCPP
  10619. fi
  10620. CXXCPP=$ac_cv_prog_CXXCPP
  10621. else
  10622. ac_cv_prog_CXXCPP=$CXXCPP
  10623. fi
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10625. $as_echo "$CXXCPP" >&6; }
  10626. ac_preproc_ok=false
  10627. for ac_cxx_preproc_warn_flag in '' yes
  10628. do
  10629. # Use a header file that comes with gcc, so configuring glibc
  10630. # with a fresh cross-compiler works.
  10631. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10632. # <limits.h> exists even on freestanding compilers.
  10633. # On the NeXT, cc -E runs the code through the compiler's parser,
  10634. # not just through cpp. "Syntax error" is here to catch this case.
  10635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10636. /* end confdefs.h. */
  10637. #ifdef __STDC__
  10638. # include <limits.h>
  10639. #else
  10640. # include <assert.h>
  10641. #endif
  10642. Syntax error
  10643. _ACEOF
  10644. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10645. else
  10646. # Broken: fails on valid input.
  10647. continue
  10648. fi
  10649. rm -f conftest.err conftest.i conftest.$ac_ext
  10650. # OK, works on sane cases. Now check whether nonexistent headers
  10651. # can be detected and how.
  10652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10653. /* end confdefs.h. */
  10654. #include <ac_nonexistent.h>
  10655. _ACEOF
  10656. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10657. # Broken: success on invalid input.
  10658. continue
  10659. else
  10660. # Passes both tests.
  10661. ac_preproc_ok=:
  10662. break
  10663. fi
  10664. rm -f conftest.err conftest.i conftest.$ac_ext
  10665. done
  10666. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10667. rm -f conftest.i conftest.err conftest.$ac_ext
  10668. if $ac_preproc_ok; then :
  10669. else
  10670. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10671. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10672. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10673. See \`config.log' for more details" "$LINENO" 5; }
  10674. fi
  10675. ac_ext=c
  10676. ac_cpp='$CPP $CPPFLAGS'
  10677. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10678. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10679. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10680. else
  10681. _lt_caught_CXX_error=yes
  10682. fi
  10683. ac_ext=cpp
  10684. ac_cpp='$CXXCPP $CPPFLAGS'
  10685. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10686. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10687. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10688. archive_cmds_need_lc_CXX=no
  10689. allow_undefined_flag_CXX=
  10690. always_export_symbols_CXX=no
  10691. archive_expsym_cmds_CXX=
  10692. compiler_needs_object_CXX=no
  10693. export_dynamic_flag_spec_CXX=
  10694. hardcode_direct_CXX=no
  10695. hardcode_direct_absolute_CXX=no
  10696. hardcode_libdir_flag_spec_CXX=
  10697. hardcode_libdir_separator_CXX=
  10698. hardcode_minus_L_CXX=no
  10699. hardcode_shlibpath_var_CXX=unsupported
  10700. hardcode_automatic_CXX=no
  10701. inherit_rpath_CXX=no
  10702. module_cmds_CXX=
  10703. module_expsym_cmds_CXX=
  10704. link_all_deplibs_CXX=unknown
  10705. old_archive_cmds_CXX=$old_archive_cmds
  10706. reload_flag_CXX=$reload_flag
  10707. reload_cmds_CXX=$reload_cmds
  10708. no_undefined_flag_CXX=
  10709. whole_archive_flag_spec_CXX=
  10710. enable_shared_with_static_runtimes_CXX=no
  10711. # Source file extension for C++ test sources.
  10712. ac_ext=cpp
  10713. # Object file extension for compiled C++ test sources.
  10714. objext=o
  10715. objext_CXX=$objext
  10716. # No sense in running all these tests if we already determined that
  10717. # the CXX compiler isn't working. Some variables (like enable_shared)
  10718. # are currently assumed to apply to all compilers on this platform,
  10719. # and will be corrupted by setting them based on a non-working compiler.
  10720. if test "$_lt_caught_CXX_error" != yes; then
  10721. # Code to be used in simple compile tests
  10722. lt_simple_compile_test_code="int some_variable = 0;"
  10723. # Code to be used in simple link tests
  10724. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10725. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10726. # If no C compiler was specified, use CC.
  10727. LTCC=${LTCC-"$CC"}
  10728. # If no C compiler flags were specified, use CFLAGS.
  10729. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10730. # Allow CC to be a program name with arguments.
  10731. compiler=$CC
  10732. # save warnings/boilerplate of simple test code
  10733. ac_outfile=conftest.$ac_objext
  10734. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10735. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10736. _lt_compiler_boilerplate=`cat conftest.err`
  10737. $RM conftest*
  10738. ac_outfile=conftest.$ac_objext
  10739. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10740. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10741. _lt_linker_boilerplate=`cat conftest.err`
  10742. $RM -r conftest*
  10743. # Allow CC to be a program name with arguments.
  10744. lt_save_CC=$CC
  10745. lt_save_CFLAGS=$CFLAGS
  10746. lt_save_LD=$LD
  10747. lt_save_GCC=$GCC
  10748. GCC=$GXX
  10749. lt_save_with_gnu_ld=$with_gnu_ld
  10750. lt_save_path_LD=$lt_cv_path_LD
  10751. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10752. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10753. else
  10754. $as_unset lt_cv_prog_gnu_ld
  10755. fi
  10756. if test -n "${lt_cv_path_LDCXX+set}"; then
  10757. lt_cv_path_LD=$lt_cv_path_LDCXX
  10758. else
  10759. $as_unset lt_cv_path_LD
  10760. fi
  10761. test -z "${LDCXX+set}" || LD=$LDCXX
  10762. CC=${CXX-"c++"}
  10763. CFLAGS=$CXXFLAGS
  10764. compiler=$CC
  10765. compiler_CXX=$CC
  10766. for cc_temp in $compiler""; do
  10767. case $cc_temp in
  10768. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10769. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10770. \-*) ;;
  10771. *) break;;
  10772. esac
  10773. done
  10774. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10775. if test -n "$compiler"; then
  10776. # We don't want -fno-exception when compiling C++ code, so set the
  10777. # no_builtin_flag separately
  10778. if test "$GXX" = yes; then
  10779. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10780. else
  10781. lt_prog_compiler_no_builtin_flag_CXX=
  10782. fi
  10783. if test "$GXX" = yes; then
  10784. # Set up default GNU C++ configuration
  10785. # Check whether --with-gnu-ld was given.
  10786. if test "${with_gnu_ld+set}" = set; then :
  10787. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10788. else
  10789. with_gnu_ld=no
  10790. fi
  10791. ac_prog=ld
  10792. if test "$GCC" = yes; then
  10793. # Check if gcc -print-prog-name=ld gives a path.
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10795. $as_echo_n "checking for ld used by $CC... " >&6; }
  10796. case $host in
  10797. *-*-mingw*)
  10798. # gcc leaves a trailing carriage return which upsets mingw
  10799. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10800. *)
  10801. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10802. esac
  10803. case $ac_prog in
  10804. # Accept absolute paths.
  10805. [\\/]* | ?:[\\/]*)
  10806. re_direlt='/[^/][^/]*/\.\./'
  10807. # Canonicalize the pathname of ld
  10808. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10809. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10810. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10811. done
  10812. test -z "$LD" && LD="$ac_prog"
  10813. ;;
  10814. "")
  10815. # If it fails, then pretend we aren't using GCC.
  10816. ac_prog=ld
  10817. ;;
  10818. *)
  10819. # If it is relative, then search for the first ld in PATH.
  10820. with_gnu_ld=unknown
  10821. ;;
  10822. esac
  10823. elif test "$with_gnu_ld" = yes; then
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10825. $as_echo_n "checking for GNU ld... " >&6; }
  10826. else
  10827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10828. $as_echo_n "checking for non-GNU ld... " >&6; }
  10829. fi
  10830. if ${lt_cv_path_LD+:} false; then :
  10831. $as_echo_n "(cached) " >&6
  10832. else
  10833. if test -z "$LD"; then
  10834. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10835. for ac_dir in $PATH; do
  10836. IFS="$lt_save_ifs"
  10837. test -z "$ac_dir" && ac_dir=.
  10838. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10839. lt_cv_path_LD="$ac_dir/$ac_prog"
  10840. # Check to see if the program is GNU ld. I'd rather use --version,
  10841. # but apparently some variants of GNU ld only accept -v.
  10842. # Break only if it was the GNU/non-GNU ld that we prefer.
  10843. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10844. *GNU* | *'with BFD'*)
  10845. test "$with_gnu_ld" != no && break
  10846. ;;
  10847. *)
  10848. test "$with_gnu_ld" != yes && break
  10849. ;;
  10850. esac
  10851. fi
  10852. done
  10853. IFS="$lt_save_ifs"
  10854. else
  10855. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10856. fi
  10857. fi
  10858. LD="$lt_cv_path_LD"
  10859. if test -n "$LD"; then
  10860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10861. $as_echo "$LD" >&6; }
  10862. else
  10863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10864. $as_echo "no" >&6; }
  10865. fi
  10866. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10868. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10869. if ${lt_cv_prog_gnu_ld+:} false; then :
  10870. $as_echo_n "(cached) " >&6
  10871. else
  10872. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10873. case `$LD -v 2>&1 </dev/null` in
  10874. *GNU* | *'with BFD'*)
  10875. lt_cv_prog_gnu_ld=yes
  10876. ;;
  10877. *)
  10878. lt_cv_prog_gnu_ld=no
  10879. ;;
  10880. esac
  10881. fi
  10882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10883. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10884. with_gnu_ld=$lt_cv_prog_gnu_ld
  10885. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10886. # archiving commands below assume that GNU ld is being used.
  10887. if test "$with_gnu_ld" = yes; then
  10888. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10889. 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'
  10890. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10891. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10892. # If archive_cmds runs LD, not CC, wlarc should be empty
  10893. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10894. # investigate it a little bit more. (MM)
  10895. wlarc='${wl}'
  10896. # ancient GNU ld didn't support --whole-archive et. al.
  10897. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10898. $GREP 'no-whole-archive' > /dev/null; then
  10899. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10900. else
  10901. whole_archive_flag_spec_CXX=
  10902. fi
  10903. else
  10904. with_gnu_ld=no
  10905. wlarc=
  10906. # A generic and very simple default shared library creation
  10907. # command for GNU C++ for the case where it uses the native
  10908. # linker, instead of GNU ld. If possible, this setting should
  10909. # overridden to take advantage of the native linker features on
  10910. # the platform it is being used on.
  10911. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10912. fi
  10913. # Commands to make compiler produce verbose output that lists
  10914. # what "hidden" libraries, object files and flags are used when
  10915. # linking a shared library.
  10916. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10917. else
  10918. GXX=no
  10919. with_gnu_ld=no
  10920. wlarc=
  10921. fi
  10922. # PORTME: fill in a description of your system's C++ link characteristics
  10923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10924. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10925. ld_shlibs_CXX=yes
  10926. case $host_os in
  10927. aix3*)
  10928. # FIXME: insert proper C++ library support
  10929. ld_shlibs_CXX=no
  10930. ;;
  10931. aix[4-9]*)
  10932. if test "$host_cpu" = ia64; then
  10933. # On IA64, the linker does run time linking by default, so we don't
  10934. # have to do anything special.
  10935. aix_use_runtimelinking=no
  10936. exp_sym_flag='-Bexport'
  10937. no_entry_flag=""
  10938. else
  10939. aix_use_runtimelinking=no
  10940. # Test if we are trying to use run time linking or normal
  10941. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10942. # need to do runtime linking.
  10943. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10944. for ld_flag in $LDFLAGS; do
  10945. case $ld_flag in
  10946. *-brtl*)
  10947. aix_use_runtimelinking=yes
  10948. break
  10949. ;;
  10950. esac
  10951. done
  10952. ;;
  10953. esac
  10954. exp_sym_flag='-bexport'
  10955. no_entry_flag='-bnoentry'
  10956. fi
  10957. # When large executables or shared objects are built, AIX ld can
  10958. # have problems creating the table of contents. If linking a library
  10959. # or program results in "error TOC overflow" add -mminimal-toc to
  10960. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10961. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10962. archive_cmds_CXX=''
  10963. hardcode_direct_CXX=yes
  10964. hardcode_direct_absolute_CXX=yes
  10965. hardcode_libdir_separator_CXX=':'
  10966. link_all_deplibs_CXX=yes
  10967. file_list_spec_CXX='${wl}-f,'
  10968. if test "$GXX" = yes; then
  10969. case $host_os in aix4.[012]|aix4.[012].*)
  10970. # We only want to do this on AIX 4.2 and lower, the check
  10971. # below for broken collect2 doesn't work under 4.3+
  10972. collect2name=`${CC} -print-prog-name=collect2`
  10973. if test -f "$collect2name" &&
  10974. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10975. then
  10976. # We have reworked collect2
  10977. :
  10978. else
  10979. # We have old collect2
  10980. hardcode_direct_CXX=unsupported
  10981. # It fails to find uninstalled libraries when the uninstalled
  10982. # path is not listed in the libpath. Setting hardcode_minus_L
  10983. # to unsupported forces relinking
  10984. hardcode_minus_L_CXX=yes
  10985. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10986. hardcode_libdir_separator_CXX=
  10987. fi
  10988. esac
  10989. shared_flag='-shared'
  10990. if test "$aix_use_runtimelinking" = yes; then
  10991. shared_flag="$shared_flag "'${wl}-G'
  10992. fi
  10993. else
  10994. # not using gcc
  10995. if test "$host_cpu" = ia64; then
  10996. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10997. # chokes on -Wl,-G. The following line is correct:
  10998. shared_flag='-G'
  10999. else
  11000. if test "$aix_use_runtimelinking" = yes; then
  11001. shared_flag='${wl}-G'
  11002. else
  11003. shared_flag='${wl}-bM:SRE'
  11004. fi
  11005. fi
  11006. fi
  11007. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11008. # It seems that -bexpall does not export symbols beginning with
  11009. # underscore (_), so it is better to generate a list of symbols to
  11010. # export.
  11011. always_export_symbols_CXX=yes
  11012. if test "$aix_use_runtimelinking" = yes; then
  11013. # Warning - without using the other runtime loading flags (-brtl),
  11014. # -berok will link without error, but may produce a broken library.
  11015. allow_undefined_flag_CXX='-berok'
  11016. # Determine the default libpath from the value encoded in an empty
  11017. # executable.
  11018. if test "${lt_cv_aix_libpath+set}" = set; then
  11019. aix_libpath=$lt_cv_aix_libpath
  11020. else
  11021. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11022. $as_echo_n "(cached) " >&6
  11023. else
  11024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11025. /* end confdefs.h. */
  11026. int
  11027. main ()
  11028. {
  11029. ;
  11030. return 0;
  11031. }
  11032. _ACEOF
  11033. if ac_fn_cxx_try_link "$LINENO"; then :
  11034. lt_aix_libpath_sed='
  11035. /Import File Strings/,/^$/ {
  11036. /^0/ {
  11037. s/^0 *\([^ ]*\) *$/\1/
  11038. p
  11039. }
  11040. }'
  11041. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11042. # Check for a 64-bit object if we didn't find anything.
  11043. if test -z "$lt_cv_aix_libpath__CXX"; then
  11044. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11045. fi
  11046. fi
  11047. rm -f core conftest.err conftest.$ac_objext \
  11048. conftest$ac_exeext conftest.$ac_ext
  11049. if test -z "$lt_cv_aix_libpath__CXX"; then
  11050. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11051. fi
  11052. fi
  11053. aix_libpath=$lt_cv_aix_libpath__CXX
  11054. fi
  11055. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11056. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11057. else
  11058. if test "$host_cpu" = ia64; then
  11059. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11060. allow_undefined_flag_CXX="-z nodefs"
  11061. 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"
  11062. else
  11063. # Determine the default libpath from the value encoded in an
  11064. # empty executable.
  11065. if test "${lt_cv_aix_libpath+set}" = set; then
  11066. aix_libpath=$lt_cv_aix_libpath
  11067. else
  11068. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11069. $as_echo_n "(cached) " >&6
  11070. else
  11071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11072. /* end confdefs.h. */
  11073. int
  11074. main ()
  11075. {
  11076. ;
  11077. return 0;
  11078. }
  11079. _ACEOF
  11080. if ac_fn_cxx_try_link "$LINENO"; then :
  11081. lt_aix_libpath_sed='
  11082. /Import File Strings/,/^$/ {
  11083. /^0/ {
  11084. s/^0 *\([^ ]*\) *$/\1/
  11085. p
  11086. }
  11087. }'
  11088. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11089. # Check for a 64-bit object if we didn't find anything.
  11090. if test -z "$lt_cv_aix_libpath__CXX"; then
  11091. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11092. fi
  11093. fi
  11094. rm -f core conftest.err conftest.$ac_objext \
  11095. conftest$ac_exeext conftest.$ac_ext
  11096. if test -z "$lt_cv_aix_libpath__CXX"; then
  11097. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11098. fi
  11099. fi
  11100. aix_libpath=$lt_cv_aix_libpath__CXX
  11101. fi
  11102. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11103. # Warning - without using the other run time loading flags,
  11104. # -berok will link without error, but may produce a broken library.
  11105. no_undefined_flag_CXX=' ${wl}-bernotok'
  11106. allow_undefined_flag_CXX=' ${wl}-berok'
  11107. if test "$with_gnu_ld" = yes; then
  11108. # We only use this code for GNU lds that support --whole-archive.
  11109. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11110. else
  11111. # Exported symbols can be pulled into shared objects from archives
  11112. whole_archive_flag_spec_CXX='$convenience'
  11113. fi
  11114. archive_cmds_need_lc_CXX=yes
  11115. # This is similar to how AIX traditionally builds its shared
  11116. # libraries.
  11117. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11118. fi
  11119. fi
  11120. ;;
  11121. beos*)
  11122. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11123. allow_undefined_flag_CXX=unsupported
  11124. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11125. # support --undefined. This deserves some investigation. FIXME
  11126. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11127. else
  11128. ld_shlibs_CXX=no
  11129. fi
  11130. ;;
  11131. chorus*)
  11132. case $cc_basename in
  11133. *)
  11134. # FIXME: insert proper C++ library support
  11135. ld_shlibs_CXX=no
  11136. ;;
  11137. esac
  11138. ;;
  11139. cygwin* | mingw* | pw32* | cegcc*)
  11140. case $GXX,$cc_basename in
  11141. ,cl* | no,cl*)
  11142. # Native MSVC
  11143. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11144. # no search path for DLLs.
  11145. hardcode_libdir_flag_spec_CXX=' '
  11146. allow_undefined_flag_CXX=unsupported
  11147. always_export_symbols_CXX=yes
  11148. file_list_spec_CXX='@'
  11149. # Tell ltmain to make .lib files, not .a files.
  11150. libext=lib
  11151. # Tell ltmain to make .dll files, not .so files.
  11152. shrext_cmds=".dll"
  11153. # FIXME: Setting linknames here is a bad hack.
  11154. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11155. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11156. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11157. else
  11158. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11159. fi~
  11160. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11161. linknames='
  11162. # The linker will not automatically build a static lib if we build a DLL.
  11163. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11164. enable_shared_with_static_runtimes_CXX=yes
  11165. # Don't use ranlib
  11166. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11167. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11168. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11169. case $lt_outputfile in
  11170. *.exe|*.EXE) ;;
  11171. *)
  11172. lt_outputfile="$lt_outputfile.exe"
  11173. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11174. ;;
  11175. esac~
  11176. func_to_tool_file "$lt_outputfile"~
  11177. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11178. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11179. $RM "$lt_outputfile.manifest";
  11180. fi'
  11181. ;;
  11182. *)
  11183. # g++
  11184. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11185. # as there is no search path for DLLs.
  11186. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11187. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11188. allow_undefined_flag_CXX=unsupported
  11189. always_export_symbols_CXX=no
  11190. enable_shared_with_static_runtimes_CXX=yes
  11191. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11192. 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'
  11193. # If the export-symbols file already is a .def file (1st line
  11194. # is EXPORTS), use it as is; otherwise, prepend...
  11195. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11196. cp $export_symbols $output_objdir/$soname.def;
  11197. else
  11198. echo EXPORTS > $output_objdir/$soname.def;
  11199. cat $export_symbols >> $output_objdir/$soname.def;
  11200. fi~
  11201. $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'
  11202. else
  11203. ld_shlibs_CXX=no
  11204. fi
  11205. ;;
  11206. esac
  11207. ;;
  11208. darwin* | rhapsody*)
  11209. archive_cmds_need_lc_CXX=no
  11210. hardcode_direct_CXX=no
  11211. hardcode_automatic_CXX=yes
  11212. hardcode_shlibpath_var_CXX=unsupported
  11213. if test "$lt_cv_ld_force_load" = "yes"; then
  11214. 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\"`'
  11215. else
  11216. whole_archive_flag_spec_CXX=''
  11217. fi
  11218. link_all_deplibs_CXX=yes
  11219. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11220. case $cc_basename in
  11221. ifort*) _lt_dar_can_shared=yes ;;
  11222. *) _lt_dar_can_shared=$GCC ;;
  11223. esac
  11224. if test "$_lt_dar_can_shared" = "yes"; then
  11225. output_verbose_link_cmd=func_echo_all
  11226. 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}"
  11227. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11228. 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}"
  11229. 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}"
  11230. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11231. 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}"
  11232. 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}"
  11233. fi
  11234. else
  11235. ld_shlibs_CXX=no
  11236. fi
  11237. ;;
  11238. dgux*)
  11239. case $cc_basename in
  11240. ec++*)
  11241. # FIXME: insert proper C++ library support
  11242. ld_shlibs_CXX=no
  11243. ;;
  11244. ghcx*)
  11245. # Green Hills C++ Compiler
  11246. # FIXME: insert proper C++ library support
  11247. ld_shlibs_CXX=no
  11248. ;;
  11249. *)
  11250. # FIXME: insert proper C++ library support
  11251. ld_shlibs_CXX=no
  11252. ;;
  11253. esac
  11254. ;;
  11255. freebsd2.*)
  11256. # C++ shared libraries reported to be fairly broken before
  11257. # switch to ELF
  11258. ld_shlibs_CXX=no
  11259. ;;
  11260. freebsd-elf*)
  11261. archive_cmds_need_lc_CXX=no
  11262. ;;
  11263. freebsd* | dragonfly*)
  11264. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11265. # conventions
  11266. ld_shlibs_CXX=yes
  11267. ;;
  11268. gnu*)
  11269. ;;
  11270. haiku*)
  11271. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11272. link_all_deplibs_CXX=yes
  11273. ;;
  11274. hpux9*)
  11275. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11276. hardcode_libdir_separator_CXX=:
  11277. export_dynamic_flag_spec_CXX='${wl}-E'
  11278. hardcode_direct_CXX=yes
  11279. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11280. # but as the default
  11281. # location of the library.
  11282. case $cc_basename in
  11283. CC*)
  11284. # FIXME: insert proper C++ library support
  11285. ld_shlibs_CXX=no
  11286. ;;
  11287. aCC*)
  11288. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11289. # Commands to make compiler produce verbose output that lists
  11290. # what "hidden" libraries, object files and flags are used when
  11291. # linking a shared library.
  11292. #
  11293. # There doesn't appear to be a way to prevent this compiler from
  11294. # explicitly linking system object files so we need to strip them
  11295. # from the output so that they don't get included in the library
  11296. # dependencies.
  11297. 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"'
  11298. ;;
  11299. *)
  11300. if test "$GXX" = yes; then
  11301. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11302. else
  11303. # FIXME: insert proper C++ library support
  11304. ld_shlibs_CXX=no
  11305. fi
  11306. ;;
  11307. esac
  11308. ;;
  11309. hpux10*|hpux11*)
  11310. if test $with_gnu_ld = no; then
  11311. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11312. hardcode_libdir_separator_CXX=:
  11313. case $host_cpu in
  11314. hppa*64*|ia64*)
  11315. ;;
  11316. *)
  11317. export_dynamic_flag_spec_CXX='${wl}-E'
  11318. ;;
  11319. esac
  11320. fi
  11321. case $host_cpu in
  11322. hppa*64*|ia64*)
  11323. hardcode_direct_CXX=no
  11324. hardcode_shlibpath_var_CXX=no
  11325. ;;
  11326. *)
  11327. hardcode_direct_CXX=yes
  11328. hardcode_direct_absolute_CXX=yes
  11329. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11330. # but as the default
  11331. # location of the library.
  11332. ;;
  11333. esac
  11334. case $cc_basename in
  11335. CC*)
  11336. # FIXME: insert proper C++ library support
  11337. ld_shlibs_CXX=no
  11338. ;;
  11339. aCC*)
  11340. case $host_cpu in
  11341. hppa*64*)
  11342. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11343. ;;
  11344. ia64*)
  11345. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11346. ;;
  11347. *)
  11348. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11349. ;;
  11350. esac
  11351. # Commands to make compiler produce verbose output that lists
  11352. # what "hidden" libraries, object files and flags are used when
  11353. # linking a shared library.
  11354. #
  11355. # There doesn't appear to be a way to prevent this compiler from
  11356. # explicitly linking system object files so we need to strip them
  11357. # from the output so that they don't get included in the library
  11358. # dependencies.
  11359. 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"'
  11360. ;;
  11361. *)
  11362. if test "$GXX" = yes; then
  11363. if test $with_gnu_ld = no; then
  11364. case $host_cpu in
  11365. hppa*64*)
  11366. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11367. ;;
  11368. ia64*)
  11369. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11370. ;;
  11371. *)
  11372. 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'
  11373. ;;
  11374. esac
  11375. fi
  11376. else
  11377. # FIXME: insert proper C++ library support
  11378. ld_shlibs_CXX=no
  11379. fi
  11380. ;;
  11381. esac
  11382. ;;
  11383. interix[3-9]*)
  11384. hardcode_direct_CXX=no
  11385. hardcode_shlibpath_var_CXX=no
  11386. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11387. export_dynamic_flag_spec_CXX='${wl}-E'
  11388. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11389. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11390. # default) and relocated if they conflict, which is a slow very memory
  11391. # consuming and fragmenting process. To avoid this, we pick a random,
  11392. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11393. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11394. 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'
  11395. 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'
  11396. ;;
  11397. irix5* | irix6*)
  11398. case $cc_basename in
  11399. CC*)
  11400. # SGI C++
  11401. 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'
  11402. # Archives containing C++ object files must be created using
  11403. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11404. # necessary to make sure instantiated templates are included
  11405. # in the archive.
  11406. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11407. ;;
  11408. *)
  11409. if test "$GXX" = yes; then
  11410. if test "$with_gnu_ld" = no; then
  11411. 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'
  11412. else
  11413. 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'
  11414. fi
  11415. fi
  11416. link_all_deplibs_CXX=yes
  11417. ;;
  11418. esac
  11419. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11420. hardcode_libdir_separator_CXX=:
  11421. inherit_rpath_CXX=yes
  11422. ;;
  11423. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11424. case $cc_basename in
  11425. KCC*)
  11426. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11427. # KCC will only create a shared library if the output file
  11428. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11429. # to its proper name (with version) after linking.
  11430. 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'
  11431. 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'
  11432. # Commands to make compiler produce verbose output that lists
  11433. # what "hidden" libraries, object files and flags are used when
  11434. # linking a shared library.
  11435. #
  11436. # There doesn't appear to be a way to prevent this compiler from
  11437. # explicitly linking system object files so we need to strip them
  11438. # from the output so that they don't get included in the library
  11439. # dependencies.
  11440. 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"'
  11441. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11442. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11443. # Archives containing C++ object files must be created using
  11444. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11445. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11446. ;;
  11447. icpc* | ecpc* )
  11448. # Intel C++
  11449. with_gnu_ld=yes
  11450. # version 8.0 and above of icpc choke on multiply defined symbols
  11451. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11452. # earlier do not add the objects themselves.
  11453. case `$CC -V 2>&1` in
  11454. *"Version 7."*)
  11455. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11456. 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'
  11457. ;;
  11458. *) # Version 8.0 or newer
  11459. tmp_idyn=
  11460. case $host_cpu in
  11461. ia64*) tmp_idyn=' -i_dynamic';;
  11462. esac
  11463. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11464. 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'
  11465. ;;
  11466. esac
  11467. archive_cmds_need_lc_CXX=no
  11468. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11469. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11470. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11471. ;;
  11472. pgCC* | pgcpp*)
  11473. # Portland Group C++ compiler
  11474. case `$CC -V` in
  11475. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11476. prelink_cmds_CXX='tpldir=Template.dir~
  11477. rm -rf $tpldir~
  11478. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11479. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11480. old_archive_cmds_CXX='tpldir=Template.dir~
  11481. rm -rf $tpldir~
  11482. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11483. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11484. $RANLIB $oldlib'
  11485. archive_cmds_CXX='tpldir=Template.dir~
  11486. rm -rf $tpldir~
  11487. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11488. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11489. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11490. rm -rf $tpldir~
  11491. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11492. $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'
  11493. ;;
  11494. *) # Version 6 and above use weak symbols
  11495. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11496. 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'
  11497. ;;
  11498. esac
  11499. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11500. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11501. 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'
  11502. ;;
  11503. cxx*)
  11504. # Compaq C++
  11505. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11506. 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'
  11507. runpath_var=LD_RUN_PATH
  11508. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11509. hardcode_libdir_separator_CXX=:
  11510. # Commands to make compiler produce verbose output that lists
  11511. # what "hidden" libraries, object files and flags are used when
  11512. # linking a shared library.
  11513. #
  11514. # There doesn't appear to be a way to prevent this compiler from
  11515. # explicitly linking system object files so we need to strip them
  11516. # from the output so that they don't get included in the library
  11517. # dependencies.
  11518. 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'
  11519. ;;
  11520. xl* | mpixl* | bgxl*)
  11521. # IBM XL 8.0 on PPC, with GNU ld
  11522. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11523. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11524. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11525. if test "x$supports_anon_versioning" = xyes; then
  11526. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11527. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11528. echo "local: *; };" >> $output_objdir/$libname.ver~
  11529. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11530. fi
  11531. ;;
  11532. *)
  11533. case `$CC -V 2>&1 | sed 5q` in
  11534. *Sun\ C*)
  11535. # Sun C++ 5.9
  11536. no_undefined_flag_CXX=' -zdefs'
  11537. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11538. 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'
  11539. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11540. 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'
  11541. compiler_needs_object_CXX=yes
  11542. # Not sure whether something based on
  11543. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11544. # would be better.
  11545. output_verbose_link_cmd='func_echo_all'
  11546. # Archives containing C++ object files must be created using
  11547. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11548. # necessary to make sure instantiated templates are included
  11549. # in the archive.
  11550. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11551. ;;
  11552. esac
  11553. ;;
  11554. esac
  11555. ;;
  11556. lynxos*)
  11557. # FIXME: insert proper C++ library support
  11558. ld_shlibs_CXX=no
  11559. ;;
  11560. m88k*)
  11561. # FIXME: insert proper C++ library support
  11562. ld_shlibs_CXX=no
  11563. ;;
  11564. mvs*)
  11565. case $cc_basename in
  11566. cxx*)
  11567. # FIXME: insert proper C++ library support
  11568. ld_shlibs_CXX=no
  11569. ;;
  11570. *)
  11571. # FIXME: insert proper C++ library support
  11572. ld_shlibs_CXX=no
  11573. ;;
  11574. esac
  11575. ;;
  11576. netbsd*)
  11577. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11578. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11579. wlarc=
  11580. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11581. hardcode_direct_CXX=yes
  11582. hardcode_shlibpath_var_CXX=no
  11583. fi
  11584. # Workaround some broken pre-1.5 toolchains
  11585. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11586. ;;
  11587. *nto* | *qnx*)
  11588. ld_shlibs_CXX=yes
  11589. ;;
  11590. openbsd2*)
  11591. # C++ shared libraries are fairly broken
  11592. ld_shlibs_CXX=no
  11593. ;;
  11594. openbsd*)
  11595. if test -f /usr/libexec/ld.so; then
  11596. hardcode_direct_CXX=yes
  11597. hardcode_shlibpath_var_CXX=no
  11598. hardcode_direct_absolute_CXX=yes
  11599. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11600. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11601. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11602. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11603. export_dynamic_flag_spec_CXX='${wl}-E'
  11604. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11605. fi
  11606. output_verbose_link_cmd=func_echo_all
  11607. else
  11608. ld_shlibs_CXX=no
  11609. fi
  11610. ;;
  11611. osf3* | osf4* | osf5*)
  11612. case $cc_basename in
  11613. KCC*)
  11614. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11615. # KCC will only create a shared library if the output file
  11616. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11617. # to its proper name (with version) after linking.
  11618. 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'
  11619. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11620. hardcode_libdir_separator_CXX=:
  11621. # Archives containing C++ object files must be created using
  11622. # the KAI C++ compiler.
  11623. case $host in
  11624. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11625. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11626. esac
  11627. ;;
  11628. RCC*)
  11629. # Rational C++ 2.4.1
  11630. # FIXME: insert proper C++ library support
  11631. ld_shlibs_CXX=no
  11632. ;;
  11633. cxx*)
  11634. case $host in
  11635. osf3*)
  11636. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11637. 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'
  11638. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11639. ;;
  11640. *)
  11641. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11642. 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'
  11643. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11644. echo "-hidden">> $lib.exp~
  11645. $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~
  11646. $RM $lib.exp'
  11647. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11648. ;;
  11649. esac
  11650. hardcode_libdir_separator_CXX=:
  11651. # Commands to make compiler produce verbose output that lists
  11652. # what "hidden" libraries, object files and flags are used when
  11653. # linking a shared library.
  11654. #
  11655. # There doesn't appear to be a way to prevent this compiler from
  11656. # explicitly linking system object files so we need to strip them
  11657. # from the output so that they don't get included in the library
  11658. # dependencies.
  11659. 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"'
  11660. ;;
  11661. *)
  11662. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11663. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11664. case $host in
  11665. osf3*)
  11666. 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'
  11667. ;;
  11668. *)
  11669. 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'
  11670. ;;
  11671. esac
  11672. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11673. hardcode_libdir_separator_CXX=:
  11674. # Commands to make compiler produce verbose output that lists
  11675. # what "hidden" libraries, object files and flags are used when
  11676. # linking a shared library.
  11677. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11678. else
  11679. # FIXME: insert proper C++ library support
  11680. ld_shlibs_CXX=no
  11681. fi
  11682. ;;
  11683. esac
  11684. ;;
  11685. psos*)
  11686. # FIXME: insert proper C++ library support
  11687. ld_shlibs_CXX=no
  11688. ;;
  11689. sunos4*)
  11690. case $cc_basename in
  11691. CC*)
  11692. # Sun C++ 4.x
  11693. # FIXME: insert proper C++ library support
  11694. ld_shlibs_CXX=no
  11695. ;;
  11696. lcc*)
  11697. # Lucid
  11698. # FIXME: insert proper C++ library support
  11699. ld_shlibs_CXX=no
  11700. ;;
  11701. *)
  11702. # FIXME: insert proper C++ library support
  11703. ld_shlibs_CXX=no
  11704. ;;
  11705. esac
  11706. ;;
  11707. solaris*)
  11708. case $cc_basename in
  11709. CC* | sunCC*)
  11710. # Sun C++ 4.2, 5.x and Centerline C++
  11711. archive_cmds_need_lc_CXX=yes
  11712. no_undefined_flag_CXX=' -zdefs'
  11713. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11714. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11715. $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'
  11716. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11717. hardcode_shlibpath_var_CXX=no
  11718. case $host_os in
  11719. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11720. *)
  11721. # The compiler driver will combine and reorder linker options,
  11722. # but understands `-z linker_flag'.
  11723. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11724. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11725. ;;
  11726. esac
  11727. link_all_deplibs_CXX=yes
  11728. output_verbose_link_cmd='func_echo_all'
  11729. # Archives containing C++ object files must be created using
  11730. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11731. # necessary to make sure instantiated templates are included
  11732. # in the archive.
  11733. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11734. ;;
  11735. gcx*)
  11736. # Green Hills C++ Compiler
  11737. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11738. # The C++ compiler must be used to create the archive.
  11739. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11740. ;;
  11741. *)
  11742. # GNU C++ compiler with Solaris linker
  11743. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11744. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11745. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11746. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11747. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11748. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11749. # Commands to make compiler produce verbose output that lists
  11750. # what "hidden" libraries, object files and flags are used when
  11751. # linking a shared library.
  11752. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11753. else
  11754. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11755. # platform.
  11756. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11757. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11758. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11759. # Commands to make compiler produce verbose output that lists
  11760. # what "hidden" libraries, object files and flags are used when
  11761. # linking a shared library.
  11762. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11763. fi
  11764. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11765. case $host_os in
  11766. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11767. *)
  11768. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11769. ;;
  11770. esac
  11771. fi
  11772. ;;
  11773. esac
  11774. ;;
  11775. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11776. no_undefined_flag_CXX='${wl}-z,text'
  11777. archive_cmds_need_lc_CXX=no
  11778. hardcode_shlibpath_var_CXX=no
  11779. runpath_var='LD_RUN_PATH'
  11780. case $cc_basename in
  11781. CC*)
  11782. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11783. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11784. ;;
  11785. *)
  11786. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11787. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11788. ;;
  11789. esac
  11790. ;;
  11791. sysv5* | sco3.2v5* | sco5v6*)
  11792. # Note: We can NOT use -z defs as we might desire, because we do not
  11793. # link with -lc, and that would cause any symbols used from libc to
  11794. # always be unresolved, which means just about no library would
  11795. # ever link correctly. If we're not using GNU ld we use -z text
  11796. # though, which does catch some bad symbols but isn't as heavy-handed
  11797. # as -z defs.
  11798. no_undefined_flag_CXX='${wl}-z,text'
  11799. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11800. archive_cmds_need_lc_CXX=no
  11801. hardcode_shlibpath_var_CXX=no
  11802. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11803. hardcode_libdir_separator_CXX=':'
  11804. link_all_deplibs_CXX=yes
  11805. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11806. runpath_var='LD_RUN_PATH'
  11807. case $cc_basename in
  11808. CC*)
  11809. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11810. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11811. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11812. '"$old_archive_cmds_CXX"
  11813. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11814. '"$reload_cmds_CXX"
  11815. ;;
  11816. *)
  11817. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11818. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11819. ;;
  11820. esac
  11821. ;;
  11822. tandem*)
  11823. case $cc_basename in
  11824. NCC*)
  11825. # NonStop-UX NCC 3.20
  11826. # FIXME: insert proper C++ library support
  11827. ld_shlibs_CXX=no
  11828. ;;
  11829. *)
  11830. # FIXME: insert proper C++ library support
  11831. ld_shlibs_CXX=no
  11832. ;;
  11833. esac
  11834. ;;
  11835. vxworks*)
  11836. # FIXME: insert proper C++ library support
  11837. ld_shlibs_CXX=no
  11838. ;;
  11839. *)
  11840. # FIXME: insert proper C++ library support
  11841. ld_shlibs_CXX=no
  11842. ;;
  11843. esac
  11844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11845. $as_echo "$ld_shlibs_CXX" >&6; }
  11846. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11847. GCC_CXX="$GXX"
  11848. LD_CXX="$LD"
  11849. ## CAVEAT EMPTOR:
  11850. ## There is no encapsulation within the following macros, do not change
  11851. ## the running order or otherwise move them around unless you know exactly
  11852. ## what you are doing...
  11853. # Dependencies to place before and after the object being linked:
  11854. predep_objects_CXX=
  11855. postdep_objects_CXX=
  11856. predeps_CXX=
  11857. postdeps_CXX=
  11858. compiler_lib_search_path_CXX=
  11859. cat > conftest.$ac_ext <<_LT_EOF
  11860. class Foo
  11861. {
  11862. public:
  11863. Foo (void) { a = 0; }
  11864. private:
  11865. int a;
  11866. };
  11867. _LT_EOF
  11868. _lt_libdeps_save_CFLAGS=$CFLAGS
  11869. case "$CC $CFLAGS " in #(
  11870. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11871. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11872. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11873. esac
  11874. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11875. (eval $ac_compile) 2>&5
  11876. ac_status=$?
  11877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11878. test $ac_status = 0; }; then
  11879. # Parse the compiler output and extract the necessary
  11880. # objects, libraries and library flags.
  11881. # Sentinel used to keep track of whether or not we are before
  11882. # the conftest object file.
  11883. pre_test_object_deps_done=no
  11884. for p in `eval "$output_verbose_link_cmd"`; do
  11885. case ${prev}${p} in
  11886. -L* | -R* | -l*)
  11887. # Some compilers place space between "-{L,R}" and the path.
  11888. # Remove the space.
  11889. if test $p = "-L" ||
  11890. test $p = "-R"; then
  11891. prev=$p
  11892. continue
  11893. fi
  11894. # Expand the sysroot to ease extracting the directories later.
  11895. if test -z "$prev"; then
  11896. case $p in
  11897. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11898. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11899. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11900. esac
  11901. fi
  11902. case $p in
  11903. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11904. esac
  11905. if test "$pre_test_object_deps_done" = no; then
  11906. case ${prev} in
  11907. -L | -R)
  11908. # Internal compiler library paths should come after those
  11909. # provided the user. The postdeps already come after the
  11910. # user supplied libs so there is no need to process them.
  11911. if test -z "$compiler_lib_search_path_CXX"; then
  11912. compiler_lib_search_path_CXX="${prev}${p}"
  11913. else
  11914. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11915. fi
  11916. ;;
  11917. # The "-l" case would never come before the object being
  11918. # linked, so don't bother handling this case.
  11919. esac
  11920. else
  11921. if test -z "$postdeps_CXX"; then
  11922. postdeps_CXX="${prev}${p}"
  11923. else
  11924. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11925. fi
  11926. fi
  11927. prev=
  11928. ;;
  11929. *.lto.$objext) ;; # Ignore GCC LTO objects
  11930. *.$objext)
  11931. # This assumes that the test object file only shows up
  11932. # once in the compiler output.
  11933. if test "$p" = "conftest.$objext"; then
  11934. pre_test_object_deps_done=yes
  11935. continue
  11936. fi
  11937. if test "$pre_test_object_deps_done" = no; then
  11938. if test -z "$predep_objects_CXX"; then
  11939. predep_objects_CXX="$p"
  11940. else
  11941. predep_objects_CXX="$predep_objects_CXX $p"
  11942. fi
  11943. else
  11944. if test -z "$postdep_objects_CXX"; then
  11945. postdep_objects_CXX="$p"
  11946. else
  11947. postdep_objects_CXX="$postdep_objects_CXX $p"
  11948. fi
  11949. fi
  11950. ;;
  11951. *) ;; # Ignore the rest.
  11952. esac
  11953. done
  11954. # Clean up.
  11955. rm -f a.out a.exe
  11956. else
  11957. echo "libtool.m4: error: problem compiling CXX test program"
  11958. fi
  11959. $RM -f confest.$objext
  11960. CFLAGS=$_lt_libdeps_save_CFLAGS
  11961. # PORTME: override above test on systems where it is broken
  11962. case $host_os in
  11963. interix[3-9]*)
  11964. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11965. # hack all around it, let's just trust "g++" to DTRT.
  11966. predep_objects_CXX=
  11967. postdep_objects_CXX=
  11968. postdeps_CXX=
  11969. ;;
  11970. linux*)
  11971. case `$CC -V 2>&1 | sed 5q` in
  11972. *Sun\ C*)
  11973. # Sun C++ 5.9
  11974. # The more standards-conforming stlport4 library is
  11975. # incompatible with the Cstd library. Avoid specifying
  11976. # it if it's in CXXFLAGS. Ignore libCrun as
  11977. # -library=stlport4 depends on it.
  11978. case " $CXX $CXXFLAGS " in
  11979. *" -library=stlport4 "*)
  11980. solaris_use_stlport4=yes
  11981. ;;
  11982. esac
  11983. if test "$solaris_use_stlport4" != yes; then
  11984. postdeps_CXX='-library=Cstd -library=Crun'
  11985. fi
  11986. ;;
  11987. esac
  11988. ;;
  11989. solaris*)
  11990. case $cc_basename in
  11991. CC* | sunCC*)
  11992. # The more standards-conforming stlport4 library is
  11993. # incompatible with the Cstd library. Avoid specifying
  11994. # it if it's in CXXFLAGS. Ignore libCrun as
  11995. # -library=stlport4 depends on it.
  11996. case " $CXX $CXXFLAGS " in
  11997. *" -library=stlport4 "*)
  11998. solaris_use_stlport4=yes
  11999. ;;
  12000. esac
  12001. # Adding this requires a known-good setup of shared libraries for
  12002. # Sun compiler versions before 5.6, else PIC objects from an old
  12003. # archive will be linked into the output, leading to subtle bugs.
  12004. if test "$solaris_use_stlport4" != yes; then
  12005. postdeps_CXX='-library=Cstd -library=Crun'
  12006. fi
  12007. ;;
  12008. esac
  12009. ;;
  12010. esac
  12011. case " $postdeps_CXX " in
  12012. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12013. esac
  12014. compiler_lib_search_dirs_CXX=
  12015. if test -n "${compiler_lib_search_path_CXX}"; then
  12016. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12017. fi
  12018. lt_prog_compiler_wl_CXX=
  12019. lt_prog_compiler_pic_CXX=
  12020. lt_prog_compiler_static_CXX=
  12021. # C++ specific cases for pic, static, wl, etc.
  12022. if test "$GXX" = yes; then
  12023. lt_prog_compiler_wl_CXX='-Wl,'
  12024. lt_prog_compiler_static_CXX='-static'
  12025. case $host_os in
  12026. aix*)
  12027. # All AIX code is PIC.
  12028. if test "$host_cpu" = ia64; then
  12029. # AIX 5 now supports IA64 processor
  12030. lt_prog_compiler_static_CXX='-Bstatic'
  12031. fi
  12032. ;;
  12033. amigaos*)
  12034. case $host_cpu in
  12035. powerpc)
  12036. # see comment about AmigaOS4 .so support
  12037. lt_prog_compiler_pic_CXX='-fPIC'
  12038. ;;
  12039. m68k)
  12040. # FIXME: we need at least 68020 code to build shared libraries, but
  12041. # adding the `-m68020' flag to GCC prevents building anything better,
  12042. # like `-m68040'.
  12043. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12044. ;;
  12045. esac
  12046. ;;
  12047. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12048. # PIC is the default for these OSes.
  12049. ;;
  12050. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12051. # This hack is so that the source file can tell whether it is being
  12052. # built for inclusion in a dll (and should export symbols for example).
  12053. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12054. # (--disable-auto-import) libraries
  12055. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12056. ;;
  12057. darwin* | rhapsody*)
  12058. # PIC is the default on this platform
  12059. # Common symbols not allowed in MH_DYLIB files
  12060. lt_prog_compiler_pic_CXX='-fno-common'
  12061. ;;
  12062. *djgpp*)
  12063. # DJGPP does not support shared libraries at all
  12064. lt_prog_compiler_pic_CXX=
  12065. ;;
  12066. haiku*)
  12067. # PIC is the default for Haiku.
  12068. # The "-static" flag exists, but is broken.
  12069. lt_prog_compiler_static_CXX=
  12070. ;;
  12071. interix[3-9]*)
  12072. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12073. # Instead, we relocate shared libraries at runtime.
  12074. ;;
  12075. sysv4*MP*)
  12076. if test -d /usr/nec; then
  12077. lt_prog_compiler_pic_CXX=-Kconform_pic
  12078. fi
  12079. ;;
  12080. hpux*)
  12081. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12082. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12083. # sets the default TLS model and affects inlining.
  12084. case $host_cpu in
  12085. hppa*64*)
  12086. ;;
  12087. *)
  12088. lt_prog_compiler_pic_CXX='-fPIC'
  12089. ;;
  12090. esac
  12091. ;;
  12092. *qnx* | *nto*)
  12093. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12094. # it will coredump.
  12095. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12096. ;;
  12097. *)
  12098. lt_prog_compiler_pic_CXX='-fPIC'
  12099. ;;
  12100. esac
  12101. else
  12102. case $host_os in
  12103. aix[4-9]*)
  12104. # All AIX code is PIC.
  12105. if test "$host_cpu" = ia64; then
  12106. # AIX 5 now supports IA64 processor
  12107. lt_prog_compiler_static_CXX='-Bstatic'
  12108. else
  12109. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12110. fi
  12111. ;;
  12112. chorus*)
  12113. case $cc_basename in
  12114. cxch68*)
  12115. # Green Hills C++ Compiler
  12116. # _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"
  12117. ;;
  12118. esac
  12119. ;;
  12120. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12121. # This hack is so that the source file can tell whether it is being
  12122. # built for inclusion in a dll (and should export symbols for example).
  12123. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12124. ;;
  12125. dgux*)
  12126. case $cc_basename in
  12127. ec++*)
  12128. lt_prog_compiler_pic_CXX='-KPIC'
  12129. ;;
  12130. ghcx*)
  12131. # Green Hills C++ Compiler
  12132. lt_prog_compiler_pic_CXX='-pic'
  12133. ;;
  12134. *)
  12135. ;;
  12136. esac
  12137. ;;
  12138. freebsd* | dragonfly*)
  12139. # FreeBSD uses GNU C++
  12140. ;;
  12141. hpux9* | hpux10* | hpux11*)
  12142. case $cc_basename in
  12143. CC*)
  12144. lt_prog_compiler_wl_CXX='-Wl,'
  12145. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12146. if test "$host_cpu" != ia64; then
  12147. lt_prog_compiler_pic_CXX='+Z'
  12148. fi
  12149. ;;
  12150. aCC*)
  12151. lt_prog_compiler_wl_CXX='-Wl,'
  12152. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12153. case $host_cpu in
  12154. hppa*64*|ia64*)
  12155. # +Z the default
  12156. ;;
  12157. *)
  12158. lt_prog_compiler_pic_CXX='+Z'
  12159. ;;
  12160. esac
  12161. ;;
  12162. *)
  12163. ;;
  12164. esac
  12165. ;;
  12166. interix*)
  12167. # This is c89, which is MS Visual C++ (no shared libs)
  12168. # Anyone wants to do a port?
  12169. ;;
  12170. irix5* | irix6* | nonstopux*)
  12171. case $cc_basename in
  12172. CC*)
  12173. lt_prog_compiler_wl_CXX='-Wl,'
  12174. lt_prog_compiler_static_CXX='-non_shared'
  12175. # CC pic flag -KPIC is the default.
  12176. ;;
  12177. *)
  12178. ;;
  12179. esac
  12180. ;;
  12181. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12182. case $cc_basename in
  12183. KCC*)
  12184. # KAI C++ Compiler
  12185. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12186. lt_prog_compiler_pic_CXX='-fPIC'
  12187. ;;
  12188. ecpc* )
  12189. # old Intel C++ for x86_64 which still supported -KPIC.
  12190. lt_prog_compiler_wl_CXX='-Wl,'
  12191. lt_prog_compiler_pic_CXX='-KPIC'
  12192. lt_prog_compiler_static_CXX='-static'
  12193. ;;
  12194. icpc* )
  12195. # Intel C++, used to be incompatible with GCC.
  12196. # ICC 10 doesn't accept -KPIC any more.
  12197. lt_prog_compiler_wl_CXX='-Wl,'
  12198. lt_prog_compiler_pic_CXX='-fPIC'
  12199. lt_prog_compiler_static_CXX='-static'
  12200. ;;
  12201. pgCC* | pgcpp*)
  12202. # Portland Group C++ compiler
  12203. lt_prog_compiler_wl_CXX='-Wl,'
  12204. lt_prog_compiler_pic_CXX='-fpic'
  12205. lt_prog_compiler_static_CXX='-Bstatic'
  12206. ;;
  12207. cxx*)
  12208. # Compaq C++
  12209. # Make sure the PIC flag is empty. It appears that all Alpha
  12210. # Linux and Compaq Tru64 Unix objects are PIC.
  12211. lt_prog_compiler_pic_CXX=
  12212. lt_prog_compiler_static_CXX='-non_shared'
  12213. ;;
  12214. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12215. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12216. lt_prog_compiler_wl_CXX='-Wl,'
  12217. lt_prog_compiler_pic_CXX='-qpic'
  12218. lt_prog_compiler_static_CXX='-qstaticlink'
  12219. ;;
  12220. *)
  12221. case `$CC -V 2>&1 | sed 5q` in
  12222. *Sun\ C*)
  12223. # Sun C++ 5.9
  12224. lt_prog_compiler_pic_CXX='-KPIC'
  12225. lt_prog_compiler_static_CXX='-Bstatic'
  12226. lt_prog_compiler_wl_CXX='-Qoption ld '
  12227. ;;
  12228. esac
  12229. ;;
  12230. esac
  12231. ;;
  12232. lynxos*)
  12233. ;;
  12234. m88k*)
  12235. ;;
  12236. mvs*)
  12237. case $cc_basename in
  12238. cxx*)
  12239. lt_prog_compiler_pic_CXX='-W c,exportall'
  12240. ;;
  12241. *)
  12242. ;;
  12243. esac
  12244. ;;
  12245. netbsd*)
  12246. ;;
  12247. *qnx* | *nto*)
  12248. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12249. # it will coredump.
  12250. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12251. ;;
  12252. osf3* | osf4* | osf5*)
  12253. case $cc_basename in
  12254. KCC*)
  12255. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12256. ;;
  12257. RCC*)
  12258. # Rational C++ 2.4.1
  12259. lt_prog_compiler_pic_CXX='-pic'
  12260. ;;
  12261. cxx*)
  12262. # Digital/Compaq C++
  12263. lt_prog_compiler_wl_CXX='-Wl,'
  12264. # Make sure the PIC flag is empty. It appears that all Alpha
  12265. # Linux and Compaq Tru64 Unix objects are PIC.
  12266. lt_prog_compiler_pic_CXX=
  12267. lt_prog_compiler_static_CXX='-non_shared'
  12268. ;;
  12269. *)
  12270. ;;
  12271. esac
  12272. ;;
  12273. psos*)
  12274. ;;
  12275. solaris*)
  12276. case $cc_basename in
  12277. CC* | sunCC*)
  12278. # Sun C++ 4.2, 5.x and Centerline C++
  12279. lt_prog_compiler_pic_CXX='-KPIC'
  12280. lt_prog_compiler_static_CXX='-Bstatic'
  12281. lt_prog_compiler_wl_CXX='-Qoption ld '
  12282. ;;
  12283. gcx*)
  12284. # Green Hills C++ Compiler
  12285. lt_prog_compiler_pic_CXX='-PIC'
  12286. ;;
  12287. *)
  12288. ;;
  12289. esac
  12290. ;;
  12291. sunos4*)
  12292. case $cc_basename in
  12293. CC*)
  12294. # Sun C++ 4.x
  12295. lt_prog_compiler_pic_CXX='-pic'
  12296. lt_prog_compiler_static_CXX='-Bstatic'
  12297. ;;
  12298. lcc*)
  12299. # Lucid
  12300. lt_prog_compiler_pic_CXX='-pic'
  12301. ;;
  12302. *)
  12303. ;;
  12304. esac
  12305. ;;
  12306. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12307. case $cc_basename in
  12308. CC*)
  12309. lt_prog_compiler_wl_CXX='-Wl,'
  12310. lt_prog_compiler_pic_CXX='-KPIC'
  12311. lt_prog_compiler_static_CXX='-Bstatic'
  12312. ;;
  12313. esac
  12314. ;;
  12315. tandem*)
  12316. case $cc_basename in
  12317. NCC*)
  12318. # NonStop-UX NCC 3.20
  12319. lt_prog_compiler_pic_CXX='-KPIC'
  12320. ;;
  12321. *)
  12322. ;;
  12323. esac
  12324. ;;
  12325. vxworks*)
  12326. ;;
  12327. *)
  12328. lt_prog_compiler_can_build_shared_CXX=no
  12329. ;;
  12330. esac
  12331. fi
  12332. case $host_os in
  12333. # For platforms which do not support PIC, -DPIC is meaningless:
  12334. *djgpp*)
  12335. lt_prog_compiler_pic_CXX=
  12336. ;;
  12337. *)
  12338. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12339. ;;
  12340. esac
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12342. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12343. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12344. $as_echo_n "(cached) " >&6
  12345. else
  12346. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12347. fi
  12348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12349. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12350. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12351. #
  12352. # Check to make sure the PIC flag actually works.
  12353. #
  12354. if test -n "$lt_prog_compiler_pic_CXX"; then
  12355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12356. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12357. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12358. $as_echo_n "(cached) " >&6
  12359. else
  12360. lt_cv_prog_compiler_pic_works_CXX=no
  12361. ac_outfile=conftest.$ac_objext
  12362. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12363. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12364. # Insert the option either (1) after the last *FLAGS variable, or
  12365. # (2) before a word containing "conftest.", or (3) at the end.
  12366. # Note that $ac_compile itself does not contain backslashes and begins
  12367. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12368. # The option is referenced via a variable to avoid confusing sed.
  12369. lt_compile=`echo "$ac_compile" | $SED \
  12370. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12371. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12372. -e 's:$: $lt_compiler_flag:'`
  12373. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12374. (eval "$lt_compile" 2>conftest.err)
  12375. ac_status=$?
  12376. cat conftest.err >&5
  12377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12378. if (exit $ac_status) && test -s "$ac_outfile"; then
  12379. # The compiler can only warn and ignore the option if not recognized
  12380. # So say no if there are warnings other than the usual output.
  12381. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12382. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12383. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12384. lt_cv_prog_compiler_pic_works_CXX=yes
  12385. fi
  12386. fi
  12387. $RM conftest*
  12388. fi
  12389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12390. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12391. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12392. case $lt_prog_compiler_pic_CXX in
  12393. "" | " "*) ;;
  12394. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12395. esac
  12396. else
  12397. lt_prog_compiler_pic_CXX=
  12398. lt_prog_compiler_can_build_shared_CXX=no
  12399. fi
  12400. fi
  12401. #
  12402. # Check to make sure the static flag actually works.
  12403. #
  12404. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12406. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12407. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12408. $as_echo_n "(cached) " >&6
  12409. else
  12410. lt_cv_prog_compiler_static_works_CXX=no
  12411. save_LDFLAGS="$LDFLAGS"
  12412. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12413. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12414. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12415. # The linker can only warn and ignore the option if not recognized
  12416. # So say no if there are warnings
  12417. if test -s conftest.err; then
  12418. # Append any errors to the config.log.
  12419. cat conftest.err 1>&5
  12420. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12421. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12422. if diff conftest.exp conftest.er2 >/dev/null; then
  12423. lt_cv_prog_compiler_static_works_CXX=yes
  12424. fi
  12425. else
  12426. lt_cv_prog_compiler_static_works_CXX=yes
  12427. fi
  12428. fi
  12429. $RM -r conftest*
  12430. LDFLAGS="$save_LDFLAGS"
  12431. fi
  12432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12433. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12434. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12435. :
  12436. else
  12437. lt_prog_compiler_static_CXX=
  12438. fi
  12439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12440. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12441. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12442. $as_echo_n "(cached) " >&6
  12443. else
  12444. lt_cv_prog_compiler_c_o_CXX=no
  12445. $RM -r conftest 2>/dev/null
  12446. mkdir conftest
  12447. cd conftest
  12448. mkdir out
  12449. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12450. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12451. # Insert the option either (1) after the last *FLAGS variable, or
  12452. # (2) before a word containing "conftest.", or (3) at the end.
  12453. # Note that $ac_compile itself does not contain backslashes and begins
  12454. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12455. lt_compile=`echo "$ac_compile" | $SED \
  12456. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12457. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12458. -e 's:$: $lt_compiler_flag:'`
  12459. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12460. (eval "$lt_compile" 2>out/conftest.err)
  12461. ac_status=$?
  12462. cat out/conftest.err >&5
  12463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12464. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12465. then
  12466. # The compiler can only warn and ignore the option if not recognized
  12467. # So say no if there are warnings
  12468. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12469. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12470. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12471. lt_cv_prog_compiler_c_o_CXX=yes
  12472. fi
  12473. fi
  12474. chmod u+w . 2>&5
  12475. $RM conftest*
  12476. # SGI C++ compiler will create directory out/ii_files/ for
  12477. # template instantiation
  12478. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12479. $RM out/* && rmdir out
  12480. cd ..
  12481. $RM -r conftest
  12482. $RM conftest*
  12483. fi
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12485. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12487. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12488. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12489. $as_echo_n "(cached) " >&6
  12490. else
  12491. lt_cv_prog_compiler_c_o_CXX=no
  12492. $RM -r conftest 2>/dev/null
  12493. mkdir conftest
  12494. cd conftest
  12495. mkdir out
  12496. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12497. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12498. # Insert the option either (1) after the last *FLAGS variable, or
  12499. # (2) before a word containing "conftest.", or (3) at the end.
  12500. # Note that $ac_compile itself does not contain backslashes and begins
  12501. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12502. lt_compile=`echo "$ac_compile" | $SED \
  12503. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12504. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12505. -e 's:$: $lt_compiler_flag:'`
  12506. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12507. (eval "$lt_compile" 2>out/conftest.err)
  12508. ac_status=$?
  12509. cat out/conftest.err >&5
  12510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12511. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12512. then
  12513. # The compiler can only warn and ignore the option if not recognized
  12514. # So say no if there are warnings
  12515. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12516. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12517. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12518. lt_cv_prog_compiler_c_o_CXX=yes
  12519. fi
  12520. fi
  12521. chmod u+w . 2>&5
  12522. $RM conftest*
  12523. # SGI C++ compiler will create directory out/ii_files/ for
  12524. # template instantiation
  12525. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12526. $RM out/* && rmdir out
  12527. cd ..
  12528. $RM -r conftest
  12529. $RM conftest*
  12530. fi
  12531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12532. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12533. hard_links="nottested"
  12534. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12535. # do not overwrite the value of need_locks provided by the user
  12536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12537. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12538. hard_links=yes
  12539. $RM conftest*
  12540. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12541. touch conftest.a
  12542. ln conftest.a conftest.b 2>&5 || hard_links=no
  12543. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12545. $as_echo "$hard_links" >&6; }
  12546. if test "$hard_links" = no; then
  12547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12548. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12549. need_locks=warn
  12550. fi
  12551. else
  12552. need_locks=no
  12553. fi
  12554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12555. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12556. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12557. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12558. case $host_os in
  12559. aix[4-9]*)
  12560. # If we're using GNU nm, then we don't want the "-C" option.
  12561. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12562. # Also, AIX nm treats weak defined symbols like other global defined
  12563. # symbols, whereas GNU nm marks them as "W".
  12564. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12565. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12566. else
  12567. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12568. fi
  12569. ;;
  12570. pw32*)
  12571. export_symbols_cmds_CXX="$ltdll_cmds"
  12572. ;;
  12573. cygwin* | mingw* | cegcc*)
  12574. case $cc_basename in
  12575. cl*)
  12576. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12577. ;;
  12578. *)
  12579. 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'
  12580. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12581. ;;
  12582. esac
  12583. ;;
  12584. *)
  12585. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12586. ;;
  12587. esac
  12588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12589. $as_echo "$ld_shlibs_CXX" >&6; }
  12590. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12591. with_gnu_ld_CXX=$with_gnu_ld
  12592. #
  12593. # Do we need to explicitly link libc?
  12594. #
  12595. case "x$archive_cmds_need_lc_CXX" in
  12596. x|xyes)
  12597. # Assume -lc should be added
  12598. archive_cmds_need_lc_CXX=yes
  12599. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12600. case $archive_cmds_CXX in
  12601. *'~'*)
  12602. # FIXME: we may have to deal with multi-command sequences.
  12603. ;;
  12604. '$CC '*)
  12605. # Test whether the compiler implicitly links with -lc since on some
  12606. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12607. # to ld, don't add -lc before -lgcc.
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12609. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12610. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12611. $as_echo_n "(cached) " >&6
  12612. else
  12613. $RM conftest*
  12614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12615. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12616. (eval $ac_compile) 2>&5
  12617. ac_status=$?
  12618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12619. test $ac_status = 0; } 2>conftest.err; then
  12620. soname=conftest
  12621. lib=conftest
  12622. libobjs=conftest.$ac_objext
  12623. deplibs=
  12624. wl=$lt_prog_compiler_wl_CXX
  12625. pic_flag=$lt_prog_compiler_pic_CXX
  12626. compiler_flags=-v
  12627. linker_flags=-v
  12628. verstring=
  12629. output_objdir=.
  12630. libname=conftest
  12631. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12632. allow_undefined_flag_CXX=
  12633. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12634. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12635. ac_status=$?
  12636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12637. test $ac_status = 0; }
  12638. then
  12639. lt_cv_archive_cmds_need_lc_CXX=no
  12640. else
  12641. lt_cv_archive_cmds_need_lc_CXX=yes
  12642. fi
  12643. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12644. else
  12645. cat conftest.err 1>&5
  12646. fi
  12647. $RM conftest*
  12648. fi
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12650. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12651. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12652. ;;
  12653. esac
  12654. fi
  12655. ;;
  12656. esac
  12657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12658. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12659. library_names_spec=
  12660. libname_spec='lib$name'
  12661. soname_spec=
  12662. shrext_cmds=".so"
  12663. postinstall_cmds=
  12664. postuninstall_cmds=
  12665. finish_cmds=
  12666. finish_eval=
  12667. shlibpath_var=
  12668. shlibpath_overrides_runpath=unknown
  12669. version_type=none
  12670. dynamic_linker="$host_os ld.so"
  12671. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12672. need_lib_prefix=unknown
  12673. hardcode_into_libs=no
  12674. # when you set need_version to no, make sure it does not cause -set_version
  12675. # flags to be left without arguments
  12676. need_version=unknown
  12677. case $host_os in
  12678. aix3*)
  12679. version_type=linux # correct to gnu/linux during the next big refactor
  12680. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12681. shlibpath_var=LIBPATH
  12682. # AIX 3 has no versioning support, so we append a major version to the name.
  12683. soname_spec='${libname}${release}${shared_ext}$major'
  12684. ;;
  12685. aix[4-9]*)
  12686. version_type=linux # correct to gnu/linux during the next big refactor
  12687. need_lib_prefix=no
  12688. need_version=no
  12689. hardcode_into_libs=yes
  12690. if test "$host_cpu" = ia64; then
  12691. # AIX 5 supports IA64
  12692. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12693. shlibpath_var=LD_LIBRARY_PATH
  12694. else
  12695. # With GCC up to 2.95.x, collect2 would create an import file
  12696. # for dependence libraries. The import file would start with
  12697. # the line `#! .'. This would cause the generated library to
  12698. # depend on `.', always an invalid library. This was fixed in
  12699. # development snapshots of GCC prior to 3.0.
  12700. case $host_os in
  12701. aix4 | aix4.[01] | aix4.[01].*)
  12702. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12703. echo ' yes '
  12704. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12705. :
  12706. else
  12707. can_build_shared=no
  12708. fi
  12709. ;;
  12710. esac
  12711. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12712. # soname into executable. Probably we can add versioning support to
  12713. # collect2, so additional links can be useful in future.
  12714. if test "$aix_use_runtimelinking" = yes; then
  12715. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12716. # instead of lib<name>.a to let people know that these are not
  12717. # typical AIX shared libraries.
  12718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12719. else
  12720. # We preserve .a as extension for shared libraries through AIX4.2
  12721. # and later when we are not doing run time linking.
  12722. library_names_spec='${libname}${release}.a $libname.a'
  12723. soname_spec='${libname}${release}${shared_ext}$major'
  12724. fi
  12725. shlibpath_var=LIBPATH
  12726. fi
  12727. ;;
  12728. amigaos*)
  12729. case $host_cpu in
  12730. powerpc)
  12731. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12732. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12734. ;;
  12735. m68k)
  12736. library_names_spec='$libname.ixlibrary $libname.a'
  12737. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12738. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12739. ;;
  12740. esac
  12741. ;;
  12742. beos*)
  12743. library_names_spec='${libname}${shared_ext}'
  12744. dynamic_linker="$host_os ld.so"
  12745. shlibpath_var=LIBRARY_PATH
  12746. ;;
  12747. bsdi[45]*)
  12748. version_type=linux # correct to gnu/linux during the next big refactor
  12749. need_version=no
  12750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12751. soname_spec='${libname}${release}${shared_ext}$major'
  12752. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12753. shlibpath_var=LD_LIBRARY_PATH
  12754. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12755. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12756. # the default ld.so.conf also contains /usr/contrib/lib and
  12757. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12758. # libtool to hard-code these into programs
  12759. ;;
  12760. cygwin* | mingw* | pw32* | cegcc*)
  12761. version_type=windows
  12762. shrext_cmds=".dll"
  12763. need_version=no
  12764. need_lib_prefix=no
  12765. case $GCC,$cc_basename in
  12766. yes,*)
  12767. # gcc
  12768. library_names_spec='$libname.dll.a'
  12769. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12770. postinstall_cmds='base_file=`basename \${file}`~
  12771. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12772. dldir=$destdir/`dirname \$dlpath`~
  12773. test -d \$dldir || mkdir -p \$dldir~
  12774. $install_prog $dir/$dlname \$dldir/$dlname~
  12775. chmod a+x \$dldir/$dlname~
  12776. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12777. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12778. fi'
  12779. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12780. dlpath=$dir/\$dldll~
  12781. $RM \$dlpath'
  12782. shlibpath_overrides_runpath=yes
  12783. case $host_os in
  12784. cygwin*)
  12785. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12786. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12787. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12788. ;;
  12789. mingw* | cegcc*)
  12790. # MinGW DLLs use traditional 'lib' prefix
  12791. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12792. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12793. ;;
  12794. pw32*)
  12795. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12796. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12797. ;;
  12798. esac
  12799. dynamic_linker='Win32 ld.exe'
  12800. ;;
  12801. *,cl*)
  12802. # Native MSVC
  12803. libname_spec='$name'
  12804. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12805. library_names_spec='${libname}.dll.lib'
  12806. case $build_os in
  12807. mingw*)
  12808. sys_lib_search_path_spec=
  12809. lt_save_ifs=$IFS
  12810. IFS=';'
  12811. for lt_path in $LIB
  12812. do
  12813. IFS=$lt_save_ifs
  12814. # Let DOS variable expansion print the short 8.3 style file name.
  12815. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12816. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12817. done
  12818. IFS=$lt_save_ifs
  12819. # Convert to MSYS style.
  12820. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12821. ;;
  12822. cygwin*)
  12823. # Convert to unix form, then to dos form, then back to unix form
  12824. # but this time dos style (no spaces!) so that the unix form looks
  12825. # like /cygdrive/c/PROGRA~1:/cygdr...
  12826. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12827. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12828. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12829. ;;
  12830. *)
  12831. sys_lib_search_path_spec="$LIB"
  12832. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12833. # It is most probably a Windows format PATH.
  12834. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12835. else
  12836. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12837. fi
  12838. # FIXME: find the short name or the path components, as spaces are
  12839. # common. (e.g. "Program Files" -> "PROGRA~1")
  12840. ;;
  12841. esac
  12842. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12843. postinstall_cmds='base_file=`basename \${file}`~
  12844. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12845. dldir=$destdir/`dirname \$dlpath`~
  12846. test -d \$dldir || mkdir -p \$dldir~
  12847. $install_prog $dir/$dlname \$dldir/$dlname'
  12848. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12849. dlpath=$dir/\$dldll~
  12850. $RM \$dlpath'
  12851. shlibpath_overrides_runpath=yes
  12852. dynamic_linker='Win32 link.exe'
  12853. ;;
  12854. *)
  12855. # Assume MSVC wrapper
  12856. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12857. dynamic_linker='Win32 ld.exe'
  12858. ;;
  12859. esac
  12860. # FIXME: first we should search . and the directory the executable is in
  12861. shlibpath_var=PATH
  12862. ;;
  12863. darwin* | rhapsody*)
  12864. dynamic_linker="$host_os dyld"
  12865. version_type=darwin
  12866. need_lib_prefix=no
  12867. need_version=no
  12868. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12869. soname_spec='${libname}${release}${major}$shared_ext'
  12870. shlibpath_overrides_runpath=yes
  12871. shlibpath_var=DYLD_LIBRARY_PATH
  12872. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12873. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12874. ;;
  12875. dgux*)
  12876. version_type=linux # correct to gnu/linux during the next big refactor
  12877. need_lib_prefix=no
  12878. need_version=no
  12879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12880. soname_spec='${libname}${release}${shared_ext}$major'
  12881. shlibpath_var=LD_LIBRARY_PATH
  12882. ;;
  12883. freebsd* | dragonfly*)
  12884. # DragonFly does not have aout. When/if they implement a new
  12885. # versioning mechanism, adjust this.
  12886. if test -x /usr/bin/objformat; then
  12887. objformat=`/usr/bin/objformat`
  12888. else
  12889. case $host_os in
  12890. freebsd[23].*) objformat=aout ;;
  12891. *) objformat=elf ;;
  12892. esac
  12893. fi
  12894. version_type=freebsd-$objformat
  12895. case $version_type in
  12896. freebsd-elf*)
  12897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12898. need_version=no
  12899. need_lib_prefix=no
  12900. ;;
  12901. freebsd-*)
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12903. need_version=yes
  12904. ;;
  12905. esac
  12906. shlibpath_var=LD_LIBRARY_PATH
  12907. case $host_os in
  12908. freebsd2.*)
  12909. shlibpath_overrides_runpath=yes
  12910. ;;
  12911. freebsd3.[01]* | freebsdelf3.[01]*)
  12912. shlibpath_overrides_runpath=yes
  12913. hardcode_into_libs=yes
  12914. ;;
  12915. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12916. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12917. shlibpath_overrides_runpath=no
  12918. hardcode_into_libs=yes
  12919. ;;
  12920. *) # from 4.6 on, and DragonFly
  12921. shlibpath_overrides_runpath=yes
  12922. hardcode_into_libs=yes
  12923. ;;
  12924. esac
  12925. ;;
  12926. gnu*)
  12927. version_type=linux # correct to gnu/linux during the next big refactor
  12928. need_lib_prefix=no
  12929. need_version=no
  12930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12931. soname_spec='${libname}${release}${shared_ext}$major'
  12932. shlibpath_var=LD_LIBRARY_PATH
  12933. shlibpath_overrides_runpath=no
  12934. hardcode_into_libs=yes
  12935. ;;
  12936. haiku*)
  12937. version_type=linux # correct to gnu/linux during the next big refactor
  12938. need_lib_prefix=no
  12939. need_version=no
  12940. dynamic_linker="$host_os runtime_loader"
  12941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12942. soname_spec='${libname}${release}${shared_ext}$major'
  12943. shlibpath_var=LIBRARY_PATH
  12944. shlibpath_overrides_runpath=yes
  12945. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12946. hardcode_into_libs=yes
  12947. ;;
  12948. hpux9* | hpux10* | hpux11*)
  12949. # Give a soname corresponding to the major version so that dld.sl refuses to
  12950. # link against other versions.
  12951. version_type=sunos
  12952. need_lib_prefix=no
  12953. need_version=no
  12954. case $host_cpu in
  12955. ia64*)
  12956. shrext_cmds='.so'
  12957. hardcode_into_libs=yes
  12958. dynamic_linker="$host_os dld.so"
  12959. shlibpath_var=LD_LIBRARY_PATH
  12960. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12962. soname_spec='${libname}${release}${shared_ext}$major'
  12963. if test "X$HPUX_IA64_MODE" = X32; then
  12964. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12965. else
  12966. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12967. fi
  12968. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12969. ;;
  12970. hppa*64*)
  12971. shrext_cmds='.sl'
  12972. hardcode_into_libs=yes
  12973. dynamic_linker="$host_os dld.sl"
  12974. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12975. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12977. soname_spec='${libname}${release}${shared_ext}$major'
  12978. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12979. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12980. ;;
  12981. *)
  12982. shrext_cmds='.sl'
  12983. dynamic_linker="$host_os dld.sl"
  12984. shlibpath_var=SHLIB_PATH
  12985. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12987. soname_spec='${libname}${release}${shared_ext}$major'
  12988. ;;
  12989. esac
  12990. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12991. postinstall_cmds='chmod 555 $lib'
  12992. # or fails outright, so override atomically:
  12993. install_override_mode=555
  12994. ;;
  12995. interix[3-9]*)
  12996. version_type=linux # correct to gnu/linux during the next big refactor
  12997. need_lib_prefix=no
  12998. need_version=no
  12999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13000. soname_spec='${libname}${release}${shared_ext}$major'
  13001. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13002. shlibpath_var=LD_LIBRARY_PATH
  13003. shlibpath_overrides_runpath=no
  13004. hardcode_into_libs=yes
  13005. ;;
  13006. irix5* | irix6* | nonstopux*)
  13007. case $host_os in
  13008. nonstopux*) version_type=nonstopux ;;
  13009. *)
  13010. if test "$lt_cv_prog_gnu_ld" = yes; then
  13011. version_type=linux # correct to gnu/linux during the next big refactor
  13012. else
  13013. version_type=irix
  13014. fi ;;
  13015. esac
  13016. need_lib_prefix=no
  13017. need_version=no
  13018. soname_spec='${libname}${release}${shared_ext}$major'
  13019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13020. case $host_os in
  13021. irix5* | nonstopux*)
  13022. libsuff= shlibsuff=
  13023. ;;
  13024. *)
  13025. case $LD in # libtool.m4 will add one of these switches to LD
  13026. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13027. libsuff= shlibsuff= libmagic=32-bit;;
  13028. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13029. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13030. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13031. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13032. *) libsuff= shlibsuff= libmagic=never-match;;
  13033. esac
  13034. ;;
  13035. esac
  13036. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13037. shlibpath_overrides_runpath=no
  13038. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13039. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13040. hardcode_into_libs=yes
  13041. ;;
  13042. # No shared lib support for Linux oldld, aout, or coff.
  13043. linux*oldld* | linux*aout* | linux*coff*)
  13044. dynamic_linker=no
  13045. ;;
  13046. # This must be glibc/ELF.
  13047. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13048. version_type=linux # correct to gnu/linux during the next big refactor
  13049. need_lib_prefix=no
  13050. need_version=no
  13051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13052. soname_spec='${libname}${release}${shared_ext}$major'
  13053. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13054. shlibpath_var=LD_LIBRARY_PATH
  13055. shlibpath_overrides_runpath=no
  13056. # Some binutils ld are patched to set DT_RUNPATH
  13057. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13058. $as_echo_n "(cached) " >&6
  13059. else
  13060. lt_cv_shlibpath_overrides_runpath=no
  13061. save_LDFLAGS=$LDFLAGS
  13062. save_libdir=$libdir
  13063. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13064. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13066. /* end confdefs.h. */
  13067. int
  13068. main ()
  13069. {
  13070. ;
  13071. return 0;
  13072. }
  13073. _ACEOF
  13074. if ac_fn_cxx_try_link "$LINENO"; then :
  13075. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13076. lt_cv_shlibpath_overrides_runpath=yes
  13077. fi
  13078. fi
  13079. rm -f core conftest.err conftest.$ac_objext \
  13080. conftest$ac_exeext conftest.$ac_ext
  13081. LDFLAGS=$save_LDFLAGS
  13082. libdir=$save_libdir
  13083. fi
  13084. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13085. # This implies no fast_install, which is unacceptable.
  13086. # Some rework will be needed to allow for fast_install
  13087. # before this can be enabled.
  13088. hardcode_into_libs=yes
  13089. # Append ld.so.conf contents to the search path
  13090. if test -f /etc/ld.so.conf; then
  13091. 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' ' '`
  13092. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13093. fi
  13094. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13095. # powerpc, because MkLinux only supported shared libraries with the
  13096. # GNU dynamic linker. Since this was broken with cross compilers,
  13097. # most powerpc-linux boxes support dynamic linking these days and
  13098. # people can always --disable-shared, the test was removed, and we
  13099. # assume the GNU/Linux dynamic linker is in use.
  13100. dynamic_linker='GNU/Linux ld.so'
  13101. ;;
  13102. netbsd*)
  13103. version_type=sunos
  13104. need_lib_prefix=no
  13105. need_version=no
  13106. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13108. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13109. dynamic_linker='NetBSD (a.out) ld.so'
  13110. else
  13111. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13112. soname_spec='${libname}${release}${shared_ext}$major'
  13113. dynamic_linker='NetBSD ld.elf_so'
  13114. fi
  13115. shlibpath_var=LD_LIBRARY_PATH
  13116. shlibpath_overrides_runpath=yes
  13117. hardcode_into_libs=yes
  13118. ;;
  13119. newsos6)
  13120. version_type=linux # correct to gnu/linux during the next big refactor
  13121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13122. shlibpath_var=LD_LIBRARY_PATH
  13123. shlibpath_overrides_runpath=yes
  13124. ;;
  13125. *nto* | *qnx*)
  13126. version_type=qnx
  13127. need_lib_prefix=no
  13128. need_version=no
  13129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13130. soname_spec='${libname}${release}${shared_ext}$major'
  13131. shlibpath_var=LD_LIBRARY_PATH
  13132. shlibpath_overrides_runpath=no
  13133. hardcode_into_libs=yes
  13134. dynamic_linker='ldqnx.so'
  13135. ;;
  13136. openbsd*)
  13137. version_type=sunos
  13138. sys_lib_dlsearch_path_spec="/usr/lib"
  13139. need_lib_prefix=no
  13140. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13141. case $host_os in
  13142. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13143. *) need_version=no ;;
  13144. esac
  13145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13146. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13147. shlibpath_var=LD_LIBRARY_PATH
  13148. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13149. case $host_os in
  13150. openbsd2.[89] | openbsd2.[89].*)
  13151. shlibpath_overrides_runpath=no
  13152. ;;
  13153. *)
  13154. shlibpath_overrides_runpath=yes
  13155. ;;
  13156. esac
  13157. else
  13158. shlibpath_overrides_runpath=yes
  13159. fi
  13160. ;;
  13161. os2*)
  13162. libname_spec='$name'
  13163. shrext_cmds=".dll"
  13164. need_lib_prefix=no
  13165. library_names_spec='$libname${shared_ext} $libname.a'
  13166. dynamic_linker='OS/2 ld.exe'
  13167. shlibpath_var=LIBPATH
  13168. ;;
  13169. osf3* | osf4* | osf5*)
  13170. version_type=osf
  13171. need_lib_prefix=no
  13172. need_version=no
  13173. soname_spec='${libname}${release}${shared_ext}$major'
  13174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13175. shlibpath_var=LD_LIBRARY_PATH
  13176. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13177. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13178. ;;
  13179. rdos*)
  13180. dynamic_linker=no
  13181. ;;
  13182. solaris*)
  13183. version_type=linux # correct to gnu/linux during the next big refactor
  13184. need_lib_prefix=no
  13185. need_version=no
  13186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13187. soname_spec='${libname}${release}${shared_ext}$major'
  13188. shlibpath_var=LD_LIBRARY_PATH
  13189. shlibpath_overrides_runpath=yes
  13190. hardcode_into_libs=yes
  13191. # ldd complains unless libraries are executable
  13192. postinstall_cmds='chmod +x $lib'
  13193. ;;
  13194. sunos4*)
  13195. version_type=sunos
  13196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13197. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13198. shlibpath_var=LD_LIBRARY_PATH
  13199. shlibpath_overrides_runpath=yes
  13200. if test "$with_gnu_ld" = yes; then
  13201. need_lib_prefix=no
  13202. fi
  13203. need_version=yes
  13204. ;;
  13205. sysv4 | sysv4.3*)
  13206. version_type=linux # correct to gnu/linux during the next big refactor
  13207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13208. soname_spec='${libname}${release}${shared_ext}$major'
  13209. shlibpath_var=LD_LIBRARY_PATH
  13210. case $host_vendor in
  13211. sni)
  13212. shlibpath_overrides_runpath=no
  13213. need_lib_prefix=no
  13214. runpath_var=LD_RUN_PATH
  13215. ;;
  13216. siemens)
  13217. need_lib_prefix=no
  13218. ;;
  13219. motorola)
  13220. need_lib_prefix=no
  13221. need_version=no
  13222. shlibpath_overrides_runpath=no
  13223. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13224. ;;
  13225. esac
  13226. ;;
  13227. sysv4*MP*)
  13228. if test -d /usr/nec ;then
  13229. version_type=linux # correct to gnu/linux during the next big refactor
  13230. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13231. soname_spec='$libname${shared_ext}.$major'
  13232. shlibpath_var=LD_LIBRARY_PATH
  13233. fi
  13234. ;;
  13235. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13236. version_type=freebsd-elf
  13237. need_lib_prefix=no
  13238. need_version=no
  13239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13240. soname_spec='${libname}${release}${shared_ext}$major'
  13241. shlibpath_var=LD_LIBRARY_PATH
  13242. shlibpath_overrides_runpath=yes
  13243. hardcode_into_libs=yes
  13244. if test "$with_gnu_ld" = yes; then
  13245. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13246. else
  13247. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13248. case $host_os in
  13249. sco3.2v5*)
  13250. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13251. ;;
  13252. esac
  13253. fi
  13254. sys_lib_dlsearch_path_spec='/usr/lib'
  13255. ;;
  13256. tpf*)
  13257. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13258. version_type=linux # correct to gnu/linux during the next big refactor
  13259. need_lib_prefix=no
  13260. need_version=no
  13261. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13262. shlibpath_var=LD_LIBRARY_PATH
  13263. shlibpath_overrides_runpath=no
  13264. hardcode_into_libs=yes
  13265. ;;
  13266. uts4*)
  13267. version_type=linux # correct to gnu/linux during the next big refactor
  13268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13269. soname_spec='${libname}${release}${shared_ext}$major'
  13270. shlibpath_var=LD_LIBRARY_PATH
  13271. ;;
  13272. *)
  13273. dynamic_linker=no
  13274. ;;
  13275. esac
  13276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13277. $as_echo "$dynamic_linker" >&6; }
  13278. test "$dynamic_linker" = no && can_build_shared=no
  13279. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13280. if test "$GCC" = yes; then
  13281. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13282. fi
  13283. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13284. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13285. fi
  13286. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13287. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13288. fi
  13289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13290. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13291. hardcode_action_CXX=
  13292. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13293. test -n "$runpath_var_CXX" ||
  13294. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13295. # We can hardcode non-existent directories.
  13296. if test "$hardcode_direct_CXX" != no &&
  13297. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13298. # have to relink, otherwise we might link with an installed library
  13299. # when we should be linking with a yet-to-be-installed one
  13300. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13301. test "$hardcode_minus_L_CXX" != no; then
  13302. # Linking always hardcodes the temporary library directory.
  13303. hardcode_action_CXX=relink
  13304. else
  13305. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13306. hardcode_action_CXX=immediate
  13307. fi
  13308. else
  13309. # We cannot hardcode anything, or else we can only hardcode existing
  13310. # directories.
  13311. hardcode_action_CXX=unsupported
  13312. fi
  13313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13314. $as_echo "$hardcode_action_CXX" >&6; }
  13315. if test "$hardcode_action_CXX" = relink ||
  13316. test "$inherit_rpath_CXX" = yes; then
  13317. # Fast installation is not supported
  13318. enable_fast_install=no
  13319. elif test "$shlibpath_overrides_runpath" = yes ||
  13320. test "$enable_shared" = no; then
  13321. # Fast installation is not necessary
  13322. enable_fast_install=needless
  13323. fi
  13324. fi # test -n "$compiler"
  13325. CC=$lt_save_CC
  13326. CFLAGS=$lt_save_CFLAGS
  13327. LDCXX=$LD
  13328. LD=$lt_save_LD
  13329. GCC=$lt_save_GCC
  13330. with_gnu_ld=$lt_save_with_gnu_ld
  13331. lt_cv_path_LDCXX=$lt_cv_path_LD
  13332. lt_cv_path_LD=$lt_save_path_LD
  13333. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13334. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13335. fi # test "$_lt_caught_CXX_error" != yes
  13336. ac_ext=c
  13337. ac_cpp='$CPP $CPPFLAGS'
  13338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13341. # Find a good install program. We prefer a C program (faster),
  13342. # so one script is as good as another. But avoid the broken or
  13343. # incompatible versions:
  13344. # SysV /etc/install, /usr/sbin/install
  13345. # SunOS /usr/etc/install
  13346. # IRIX /sbin/install
  13347. # AIX /bin/install
  13348. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13349. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13350. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13351. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13352. # OS/2's system install, which has a completely different semantic
  13353. # ./install, which can be erroneously created by make from ./install.sh.
  13354. # Reject install programs that cannot install multiple files.
  13355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13356. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13357. if test -z "$INSTALL"; then
  13358. if ${ac_cv_path_install+:} false; then :
  13359. $as_echo_n "(cached) " >&6
  13360. else
  13361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13362. for as_dir in $PATH
  13363. do
  13364. IFS=$as_save_IFS
  13365. test -z "$as_dir" && as_dir=.
  13366. # Account for people who put trailing slashes in PATH elements.
  13367. case $as_dir/ in #((
  13368. ./ | .// | /[cC]/* | \
  13369. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13370. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13371. /usr/ucb/* ) ;;
  13372. *)
  13373. # OSF1 and SCO ODT 3.0 have their own names for install.
  13374. # Don't use installbsd from OSF since it installs stuff as root
  13375. # by default.
  13376. for ac_prog in ginstall scoinst install; do
  13377. for ac_exec_ext in '' $ac_executable_extensions; do
  13378. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13379. if test $ac_prog = install &&
  13380. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13381. # AIX install. It has an incompatible calling convention.
  13382. :
  13383. elif test $ac_prog = install &&
  13384. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13385. # program-specific install script used by HP pwplus--don't use.
  13386. :
  13387. else
  13388. rm -rf conftest.one conftest.two conftest.dir
  13389. echo one > conftest.one
  13390. echo two > conftest.two
  13391. mkdir conftest.dir
  13392. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13393. test -s conftest.one && test -s conftest.two &&
  13394. test -s conftest.dir/conftest.one &&
  13395. test -s conftest.dir/conftest.two
  13396. then
  13397. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13398. break 3
  13399. fi
  13400. fi
  13401. fi
  13402. done
  13403. done
  13404. ;;
  13405. esac
  13406. done
  13407. IFS=$as_save_IFS
  13408. rm -rf conftest.one conftest.two conftest.dir
  13409. fi
  13410. if test "${ac_cv_path_install+set}" = set; then
  13411. INSTALL=$ac_cv_path_install
  13412. else
  13413. # As a last resort, use the slow shell script. Don't cache a
  13414. # value for INSTALL within a source directory, because that will
  13415. # break other packages using the cache if that directory is
  13416. # removed, or if the value is a relative name.
  13417. INSTALL=$ac_install_sh
  13418. fi
  13419. fi
  13420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13421. $as_echo "$INSTALL" >&6; }
  13422. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13423. # It thinks the first close brace ends the variable substitution.
  13424. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13425. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13426. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13428. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13429. set x ${MAKE-make}
  13430. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13431. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13432. $as_echo_n "(cached) " >&6
  13433. else
  13434. cat >conftest.make <<\_ACEOF
  13435. SHELL = /bin/sh
  13436. all:
  13437. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13438. _ACEOF
  13439. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13440. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13441. *@@@%%%=?*=@@@%%%*)
  13442. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13443. *)
  13444. eval ac_cv_prog_make_${ac_make}_set=no;;
  13445. esac
  13446. rm -f conftest.make
  13447. fi
  13448. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13450. $as_echo "yes" >&6; }
  13451. SET_MAKE=
  13452. else
  13453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13454. $as_echo "no" >&6; }
  13455. SET_MAKE="MAKE=${MAKE-make}"
  13456. fi
  13457. if test -n "$ac_tool_prefix"; then
  13458. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13459. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13461. $as_echo_n "checking for $ac_word... " >&6; }
  13462. if ${ac_cv_prog_WINDRES+:} false; then :
  13463. $as_echo_n "(cached) " >&6
  13464. else
  13465. if test -n "$WINDRES"; then
  13466. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13467. else
  13468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13469. for as_dir in $PATH
  13470. do
  13471. IFS=$as_save_IFS
  13472. test -z "$as_dir" && as_dir=.
  13473. for ac_exec_ext in '' $ac_executable_extensions; do
  13474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13475. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13477. break 2
  13478. fi
  13479. done
  13480. done
  13481. IFS=$as_save_IFS
  13482. fi
  13483. fi
  13484. WINDRES=$ac_cv_prog_WINDRES
  13485. if test -n "$WINDRES"; then
  13486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13487. $as_echo "$WINDRES" >&6; }
  13488. else
  13489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13490. $as_echo "no" >&6; }
  13491. fi
  13492. fi
  13493. if test -z "$ac_cv_prog_WINDRES"; then
  13494. ac_ct_WINDRES=$WINDRES
  13495. # Extract the first word of "windres", so it can be a program name with args.
  13496. set dummy windres; ac_word=$2
  13497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13498. $as_echo_n "checking for $ac_word... " >&6; }
  13499. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13500. $as_echo_n "(cached) " >&6
  13501. else
  13502. if test -n "$ac_ct_WINDRES"; then
  13503. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13504. else
  13505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13506. for as_dir in $PATH
  13507. do
  13508. IFS=$as_save_IFS
  13509. test -z "$as_dir" && as_dir=.
  13510. for ac_exec_ext in '' $ac_executable_extensions; do
  13511. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13512. ac_cv_prog_ac_ct_WINDRES="windres"
  13513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13514. break 2
  13515. fi
  13516. done
  13517. done
  13518. IFS=$as_save_IFS
  13519. fi
  13520. fi
  13521. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13522. if test -n "$ac_ct_WINDRES"; then
  13523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13524. $as_echo "$ac_ct_WINDRES" >&6; }
  13525. else
  13526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13527. $as_echo "no" >&6; }
  13528. fi
  13529. if test "x$ac_ct_WINDRES" = x; then
  13530. WINDRES=":"
  13531. else
  13532. case $cross_compiling:$ac_tool_warned in
  13533. yes:)
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13535. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13536. ac_tool_warned=yes ;;
  13537. esac
  13538. WINDRES=$ac_ct_WINDRES
  13539. fi
  13540. else
  13541. WINDRES="$ac_cv_prog_WINDRES"
  13542. fi
  13543. case "$host" in
  13544. *-*-mingw32*)
  13545. # Except on msys, where make can't handle full pathnames (bug 1972)
  13546. ;;
  13547. *)
  13548. srcdir=`cd $srcdir && pwd`
  13549. ;;
  13550. esac
  13551. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13552. if test x$srcdir != x.; then
  13553. INCLUDE="-Iinclude $INCLUDE"
  13554. elif test -d .hg; then
  13555. as_fn_error $? "
  13556. *** When building from Mercurial you should configure and build in a
  13557. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13558. " "$LINENO" 5
  13559. fi
  13560. BASE_CFLAGS=""
  13561. BASE_LDFLAGS=""
  13562. case "$host" in
  13563. *-*-cygwin*)
  13564. # We build SDL on cygwin without the UNIX emulation layer
  13565. save_CFLAGS="$CFLAGS"
  13566. have_no_cygwin=no
  13567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13568. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13569. CFLAGS="$save_CFLAGS -mno-cygwin"
  13570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13571. /* end confdefs.h. */
  13572. int
  13573. main ()
  13574. {
  13575. ;
  13576. return 0;
  13577. }
  13578. _ACEOF
  13579. if ac_fn_c_try_compile "$LINENO"; then :
  13580. have_no_cygwin=yes
  13581. fi
  13582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13584. $as_echo "$have_no_cygwin" >&6; }
  13585. CFLAGS="$save_CFLAGS"
  13586. if test x$have_no_cygwin = xyes; then
  13587. BASE_CFLAGS="-mno-cygwin"
  13588. BASE_LDFLAGS="-mno-cygwin"
  13589. fi
  13590. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13591. ;;
  13592. esac
  13593. # Uncomment the following line if you want to force SDL and applications
  13594. # built with it to be compiled for a particular architecture.
  13595. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13596. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13597. # The default optimization for SDL is -O3 (Bug #31)
  13598. if test "x$orig_CFLAGS" = x; then
  13599. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13600. fi
  13601. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13602. BUILD_LDFLAGS="$LDFLAGS"
  13603. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13604. ## These are common directories to find software packages
  13605. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13606. # if test -d $path/include; then
  13607. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13608. # fi
  13609. # if test -d $path/lib; then
  13610. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13611. # fi
  13612. #done
  13613. SDL_CFLAGS="$BASE_CFLAGS"
  13614. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13615. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13616. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13617. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13618. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13619. find_lib()
  13620. {
  13621. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13622. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13623. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13624. if test "$cross_compiling" = yes; then
  13625. host_lib_path=""
  13626. else
  13627. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13628. fi
  13629. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13630. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13631. if test x$lib != x; then
  13632. echo $lib
  13633. return
  13634. fi
  13635. done
  13636. }
  13637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13638. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13639. if ${ac_cv_c_const+:} false; then :
  13640. $as_echo_n "(cached) " >&6
  13641. else
  13642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13643. /* end confdefs.h. */
  13644. int
  13645. main ()
  13646. {
  13647. #ifndef __cplusplus
  13648. /* Ultrix mips cc rejects this sort of thing. */
  13649. typedef int charset[2];
  13650. const charset cs = { 0, 0 };
  13651. /* SunOS 4.1.1 cc rejects this. */
  13652. char const *const *pcpcc;
  13653. char **ppc;
  13654. /* NEC SVR4.0.2 mips cc rejects this. */
  13655. struct point {int x, y;};
  13656. static struct point const zero = {0,0};
  13657. /* AIX XL C 1.02.0.0 rejects this.
  13658. It does not let you subtract one const X* pointer from another in
  13659. an arm of an if-expression whose if-part is not a constant
  13660. expression */
  13661. const char *g = "string";
  13662. pcpcc = &g + (g ? g-g : 0);
  13663. /* HPUX 7.0 cc rejects these. */
  13664. ++pcpcc;
  13665. ppc = (char**) pcpcc;
  13666. pcpcc = (char const *const *) ppc;
  13667. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13668. char tx;
  13669. char *t = &tx;
  13670. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13671. *t++ = 0;
  13672. if (s) return 0;
  13673. }
  13674. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13675. int x[] = {25, 17};
  13676. const int *foo = &x[0];
  13677. ++foo;
  13678. }
  13679. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13680. typedef const int *iptr;
  13681. iptr p = 0;
  13682. ++p;
  13683. }
  13684. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13685. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13686. struct s { int j; const int *ap[3]; } bx;
  13687. struct s *b = &bx; b->j = 5;
  13688. }
  13689. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13690. const int foo = 10;
  13691. if (!foo) return 0;
  13692. }
  13693. return !cs[0] && !zero.x;
  13694. #endif
  13695. ;
  13696. return 0;
  13697. }
  13698. _ACEOF
  13699. if ac_fn_c_try_compile "$LINENO"; then :
  13700. ac_cv_c_const=yes
  13701. else
  13702. ac_cv_c_const=no
  13703. fi
  13704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13705. fi
  13706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13707. $as_echo "$ac_cv_c_const" >&6; }
  13708. if test $ac_cv_c_const = no; then
  13709. $as_echo "#define const /**/" >>confdefs.h
  13710. fi
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13712. $as_echo_n "checking for inline... " >&6; }
  13713. if ${ac_cv_c_inline+:} false; then :
  13714. $as_echo_n "(cached) " >&6
  13715. else
  13716. ac_cv_c_inline=no
  13717. for ac_kw in inline __inline__ __inline; do
  13718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13719. /* end confdefs.h. */
  13720. #ifndef __cplusplus
  13721. typedef int foo_t;
  13722. static $ac_kw foo_t static_foo () {return 0; }
  13723. $ac_kw foo_t foo () {return 0; }
  13724. #endif
  13725. _ACEOF
  13726. if ac_fn_c_try_compile "$LINENO"; then :
  13727. ac_cv_c_inline=$ac_kw
  13728. fi
  13729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13730. test "$ac_cv_c_inline" != no && break
  13731. done
  13732. fi
  13733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13734. $as_echo "$ac_cv_c_inline" >&6; }
  13735. case $ac_cv_c_inline in
  13736. inline | yes) ;;
  13737. *)
  13738. case $ac_cv_c_inline in
  13739. no) ac_val=;;
  13740. *) ac_val=$ac_cv_c_inline;;
  13741. esac
  13742. cat >>confdefs.h <<_ACEOF
  13743. #ifndef __cplusplus
  13744. #define inline $ac_val
  13745. #endif
  13746. _ACEOF
  13747. ;;
  13748. esac
  13749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13750. $as_echo_n "checking for working volatile... " >&6; }
  13751. if ${ac_cv_c_volatile+:} false; then :
  13752. $as_echo_n "(cached) " >&6
  13753. else
  13754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13755. /* end confdefs.h. */
  13756. int
  13757. main ()
  13758. {
  13759. volatile int x;
  13760. int * volatile y = (int *) 0;
  13761. return !x && !y;
  13762. ;
  13763. return 0;
  13764. }
  13765. _ACEOF
  13766. if ac_fn_c_try_compile "$LINENO"; then :
  13767. ac_cv_c_volatile=yes
  13768. else
  13769. ac_cv_c_volatile=no
  13770. fi
  13771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13772. fi
  13773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13774. $as_echo "$ac_cv_c_volatile" >&6; }
  13775. if test $ac_cv_c_volatile = no; then
  13776. $as_echo "#define volatile /**/" >>confdefs.h
  13777. fi
  13778. # Check whether --enable-assertions was given.
  13779. if test "${enable_assertions+set}" = set; then :
  13780. enableval=$enable_assertions;
  13781. else
  13782. enable_assertions=auto
  13783. fi
  13784. case "$enable_assertions" in
  13785. auto) # Use optimization settings to determine assertion level
  13786. ;;
  13787. disabled)
  13788. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13789. ;;
  13790. release)
  13791. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13792. ;;
  13793. enabled)
  13794. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13795. ;;
  13796. paranoid)
  13797. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13798. ;;
  13799. *)
  13800. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13801. ;;
  13802. esac
  13803. # Check whether --enable-dependency-tracking was given.
  13804. if test "${enable_dependency_tracking+set}" = set; then :
  13805. enableval=$enable_dependency_tracking;
  13806. else
  13807. enable_dependency_tracking=yes
  13808. fi
  13809. if test x$enable_dependency_tracking = xyes; then
  13810. have_gcc_mmd_mt=no
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13812. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13814. /* end confdefs.h. */
  13815. #if !defined(__GNUC__) || __GNUC__ < 3
  13816. #error Dependency tracking requires GCC 3.0 or newer
  13817. #endif
  13818. int
  13819. main ()
  13820. {
  13821. ;
  13822. return 0;
  13823. }
  13824. _ACEOF
  13825. if ac_fn_c_try_compile "$LINENO"; then :
  13826. have_gcc_mmd_mt=yes
  13827. fi
  13828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13830. $as_echo "$have_gcc_mmd_mt" >&6; }
  13831. if test x$have_gcc_mmd_mt = xyes; then
  13832. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13833. fi
  13834. fi
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13836. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13837. have_no_undefined=no
  13838. case "$host" in
  13839. *-*-openbsd*)
  13840. ;;
  13841. *)
  13842. save_LDFLAGS="$LDFLAGS"
  13843. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13845. /* end confdefs.h. */
  13846. int
  13847. main ()
  13848. {
  13849. ;
  13850. return 0;
  13851. }
  13852. _ACEOF
  13853. if ac_fn_c_try_link "$LINENO"; then :
  13854. have_no_undefined=yes
  13855. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13856. fi
  13857. rm -f core conftest.err conftest.$ac_objext \
  13858. conftest$ac_exeext conftest.$ac_ext
  13859. LDFLAGS="$save_LDFLAGS"
  13860. ;;
  13861. esac
  13862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13863. $as_echo "$have_no_undefined" >&6; }
  13864. # Check whether --enable-libc was given.
  13865. if test "${enable_libc+set}" = set; then :
  13866. enableval=$enable_libc;
  13867. else
  13868. enable_libc=yes
  13869. fi
  13870. if test x$enable_libc = xyes; then
  13871. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13873. $as_echo_n "checking for ANSI C header files... " >&6; }
  13874. if ${ac_cv_header_stdc+:} false; then :
  13875. $as_echo_n "(cached) " >&6
  13876. else
  13877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13878. /* end confdefs.h. */
  13879. #include <stdlib.h>
  13880. #include <stdarg.h>
  13881. #include <string.h>
  13882. #include <float.h>
  13883. int
  13884. main ()
  13885. {
  13886. ;
  13887. return 0;
  13888. }
  13889. _ACEOF
  13890. if ac_fn_c_try_compile "$LINENO"; then :
  13891. ac_cv_header_stdc=yes
  13892. else
  13893. ac_cv_header_stdc=no
  13894. fi
  13895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13896. if test $ac_cv_header_stdc = yes; then
  13897. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13899. /* end confdefs.h. */
  13900. #include <string.h>
  13901. _ACEOF
  13902. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13903. $EGREP "memchr" >/dev/null 2>&1; then :
  13904. else
  13905. ac_cv_header_stdc=no
  13906. fi
  13907. rm -f conftest*
  13908. fi
  13909. if test $ac_cv_header_stdc = yes; then
  13910. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13912. /* end confdefs.h. */
  13913. #include <stdlib.h>
  13914. _ACEOF
  13915. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13916. $EGREP "free" >/dev/null 2>&1; then :
  13917. else
  13918. ac_cv_header_stdc=no
  13919. fi
  13920. rm -f conftest*
  13921. fi
  13922. if test $ac_cv_header_stdc = yes; then
  13923. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13924. if test "$cross_compiling" = yes; then :
  13925. :
  13926. else
  13927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13928. /* end confdefs.h. */
  13929. #include <ctype.h>
  13930. #include <stdlib.h>
  13931. #if ((' ' & 0x0FF) == 0x020)
  13932. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13933. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13934. #else
  13935. # define ISLOWER(c) \
  13936. (('a' <= (c) && (c) <= 'i') \
  13937. || ('j' <= (c) && (c) <= 'r') \
  13938. || ('s' <= (c) && (c) <= 'z'))
  13939. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13940. #endif
  13941. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13942. int
  13943. main ()
  13944. {
  13945. int i;
  13946. for (i = 0; i < 256; i++)
  13947. if (XOR (islower (i), ISLOWER (i))
  13948. || toupper (i) != TOUPPER (i))
  13949. return 2;
  13950. return 0;
  13951. }
  13952. _ACEOF
  13953. if ac_fn_c_try_run "$LINENO"; then :
  13954. else
  13955. ac_cv_header_stdc=no
  13956. fi
  13957. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13958. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13959. fi
  13960. fi
  13961. fi
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13963. $as_echo "$ac_cv_header_stdc" >&6; }
  13964. if test $ac_cv_header_stdc = yes; then
  13965. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13966. fi
  13967. 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
  13968. do :
  13969. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13970. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13971. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13972. cat >>confdefs.h <<_ACEOF
  13973. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13974. _ACEOF
  13975. fi
  13976. done
  13977. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13978. if test "x$ac_cv_type_size_t" = xyes; then :
  13979. else
  13980. cat >>confdefs.h <<_ACEOF
  13981. #define size_t unsigned int
  13982. _ACEOF
  13983. fi
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13985. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13986. if ${ac_cv_define_M_PI+:} false; then :
  13987. $as_echo_n "(cached) " >&6
  13988. else
  13989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13990. /* end confdefs.h. */
  13991. #include <math.h>
  13992. #ifdef M_PI
  13993. YES_IS_DEFINED
  13994. #endif
  13995. _ACEOF
  13996. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13997. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13998. ac_cv_define_M_PI=yes
  13999. else
  14000. ac_cv_define_M_PI=no
  14001. fi
  14002. rm -f conftest*
  14003. fi
  14004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14005. $as_echo "$ac_cv_define_M_PI" >&6; }
  14006. if test "$ac_cv_define_M_PI" = "yes" ; then
  14007. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14008. fi
  14009. case "$host" in
  14010. *-*-cygwin* | *-*-mingw32*)
  14011. ;;
  14012. *)
  14013. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14014. # for constant arguments. Useless!
  14015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14016. $as_echo_n "checking for working alloca.h... " >&6; }
  14017. if ${ac_cv_working_alloca_h+:} false; then :
  14018. $as_echo_n "(cached) " >&6
  14019. else
  14020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14021. /* end confdefs.h. */
  14022. #include <alloca.h>
  14023. int
  14024. main ()
  14025. {
  14026. char *p = (char *) alloca (2 * sizeof (int));
  14027. if (p) return 0;
  14028. ;
  14029. return 0;
  14030. }
  14031. _ACEOF
  14032. if ac_fn_c_try_link "$LINENO"; then :
  14033. ac_cv_working_alloca_h=yes
  14034. else
  14035. ac_cv_working_alloca_h=no
  14036. fi
  14037. rm -f core conftest.err conftest.$ac_objext \
  14038. conftest$ac_exeext conftest.$ac_ext
  14039. fi
  14040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14041. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14042. if test $ac_cv_working_alloca_h = yes; then
  14043. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14044. fi
  14045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14046. $as_echo_n "checking for alloca... " >&6; }
  14047. if ${ac_cv_func_alloca_works+:} false; then :
  14048. $as_echo_n "(cached) " >&6
  14049. else
  14050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14051. /* end confdefs.h. */
  14052. #ifdef __GNUC__
  14053. # define alloca __builtin_alloca
  14054. #else
  14055. # ifdef _MSC_VER
  14056. # include <malloc.h>
  14057. # define alloca _alloca
  14058. # else
  14059. # ifdef HAVE_ALLOCA_H
  14060. # include <alloca.h>
  14061. # else
  14062. # ifdef _AIX
  14063. #pragma alloca
  14064. # else
  14065. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14066. void *alloca (size_t);
  14067. # endif
  14068. # endif
  14069. # endif
  14070. # endif
  14071. #endif
  14072. int
  14073. main ()
  14074. {
  14075. char *p = (char *) alloca (1);
  14076. if (p) return 0;
  14077. ;
  14078. return 0;
  14079. }
  14080. _ACEOF
  14081. if ac_fn_c_try_link "$LINENO"; then :
  14082. ac_cv_func_alloca_works=yes
  14083. else
  14084. ac_cv_func_alloca_works=no
  14085. fi
  14086. rm -f core conftest.err conftest.$ac_objext \
  14087. conftest$ac_exeext conftest.$ac_ext
  14088. fi
  14089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14090. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14091. if test $ac_cv_func_alloca_works = yes; then
  14092. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14093. else
  14094. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14095. # that cause trouble. Some versions do not even contain alloca or
  14096. # contain a buggy version. If you still want to use their alloca,
  14097. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14098. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14099. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14101. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14102. if ${ac_cv_os_cray+:} false; then :
  14103. $as_echo_n "(cached) " >&6
  14104. else
  14105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14106. /* end confdefs.h. */
  14107. #if defined CRAY && ! defined CRAY2
  14108. webecray
  14109. #else
  14110. wenotbecray
  14111. #endif
  14112. _ACEOF
  14113. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14114. $EGREP "webecray" >/dev/null 2>&1; then :
  14115. ac_cv_os_cray=yes
  14116. else
  14117. ac_cv_os_cray=no
  14118. fi
  14119. rm -f conftest*
  14120. fi
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14122. $as_echo "$ac_cv_os_cray" >&6; }
  14123. if test $ac_cv_os_cray = yes; then
  14124. for ac_func in _getb67 GETB67 getb67; do
  14125. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14126. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14127. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14128. cat >>confdefs.h <<_ACEOF
  14129. #define CRAY_STACKSEG_END $ac_func
  14130. _ACEOF
  14131. break
  14132. fi
  14133. done
  14134. fi
  14135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14136. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14137. if ${ac_cv_c_stack_direction+:} false; then :
  14138. $as_echo_n "(cached) " >&6
  14139. else
  14140. if test "$cross_compiling" = yes; then :
  14141. ac_cv_c_stack_direction=0
  14142. else
  14143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14144. /* end confdefs.h. */
  14145. $ac_includes_default
  14146. int
  14147. find_stack_direction (int *addr, int depth)
  14148. {
  14149. int dir, dummy = 0;
  14150. if (! addr)
  14151. addr = &dummy;
  14152. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14153. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14154. return dir + dummy;
  14155. }
  14156. int
  14157. main (int argc, char **argv)
  14158. {
  14159. return find_stack_direction (0, argc + !argv + 20) < 0;
  14160. }
  14161. _ACEOF
  14162. if ac_fn_c_try_run "$LINENO"; then :
  14163. ac_cv_c_stack_direction=1
  14164. else
  14165. ac_cv_c_stack_direction=-1
  14166. fi
  14167. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14168. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14169. fi
  14170. fi
  14171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14172. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14173. cat >>confdefs.h <<_ACEOF
  14174. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14175. _ACEOF
  14176. fi
  14177. ;;
  14178. esac
  14179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14180. $as_echo_n "checking for working memcmp... " >&6; }
  14181. if ${ac_cv_func_memcmp_working+:} false; then :
  14182. $as_echo_n "(cached) " >&6
  14183. else
  14184. if test "$cross_compiling" = yes; then :
  14185. ac_cv_func_memcmp_working=no
  14186. else
  14187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14188. /* end confdefs.h. */
  14189. $ac_includes_default
  14190. int
  14191. main ()
  14192. {
  14193. /* Some versions of memcmp are not 8-bit clean. */
  14194. char c0 = '\100', c1 = '\200', c2 = '\201';
  14195. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14196. return 1;
  14197. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14198. or more and with at least one buffer not starting on a 4-byte boundary.
  14199. William Lewis provided this test program. */
  14200. {
  14201. char foo[21];
  14202. char bar[21];
  14203. int i;
  14204. for (i = 0; i < 4; i++)
  14205. {
  14206. char *a = foo + i;
  14207. char *b = bar + i;
  14208. strcpy (a, "--------01111111");
  14209. strcpy (b, "--------10000000");
  14210. if (memcmp (a, b, 16) >= 0)
  14211. return 1;
  14212. }
  14213. return 0;
  14214. }
  14215. ;
  14216. return 0;
  14217. }
  14218. _ACEOF
  14219. if ac_fn_c_try_run "$LINENO"; then :
  14220. ac_cv_func_memcmp_working=yes
  14221. else
  14222. ac_cv_func_memcmp_working=no
  14223. fi
  14224. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14225. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14226. fi
  14227. fi
  14228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14229. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14230. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14231. *" memcmp.$ac_objext "* ) ;;
  14232. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14233. ;;
  14234. esac
  14235. if test x$ac_cv_func_memcmp_working = xyes; then
  14236. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14237. fi
  14238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14239. $as_echo_n "checking for working strtod... " >&6; }
  14240. if ${ac_cv_func_strtod+:} false; then :
  14241. $as_echo_n "(cached) " >&6
  14242. else
  14243. if test "$cross_compiling" = yes; then :
  14244. ac_cv_func_strtod=no
  14245. else
  14246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14247. /* end confdefs.h. */
  14248. $ac_includes_default
  14249. #ifndef strtod
  14250. double strtod ();
  14251. #endif
  14252. int
  14253. main()
  14254. {
  14255. {
  14256. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14257. char *string = " +69";
  14258. char *term;
  14259. double value;
  14260. value = strtod (string, &term);
  14261. if (value != 69 || term != (string + 4))
  14262. return 1;
  14263. }
  14264. {
  14265. /* Under Solaris 2.4, strtod returns the wrong value for the
  14266. terminating character under some conditions. */
  14267. char *string = "NaN";
  14268. char *term;
  14269. strtod (string, &term);
  14270. if (term != string && *(term - 1) == 0)
  14271. return 1;
  14272. }
  14273. return 0;
  14274. }
  14275. _ACEOF
  14276. if ac_fn_c_try_run "$LINENO"; then :
  14277. ac_cv_func_strtod=yes
  14278. else
  14279. ac_cv_func_strtod=no
  14280. fi
  14281. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14282. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14283. fi
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14286. $as_echo "$ac_cv_func_strtod" >&6; }
  14287. if test $ac_cv_func_strtod = no; then
  14288. case " $LIBOBJS " in
  14289. *" strtod.$ac_objext "* ) ;;
  14290. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14291. ;;
  14292. esac
  14293. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14294. if test "x$ac_cv_func_pow" = xyes; then :
  14295. fi
  14296. if test $ac_cv_func_pow = no; then
  14297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14298. $as_echo_n "checking for pow in -lm... " >&6; }
  14299. if ${ac_cv_lib_m_pow+:} false; then :
  14300. $as_echo_n "(cached) " >&6
  14301. else
  14302. ac_check_lib_save_LIBS=$LIBS
  14303. LIBS="-lm $LIBS"
  14304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14305. /* end confdefs.h. */
  14306. /* Override any GCC internal prototype to avoid an error.
  14307. Use char because int might match the return type of a GCC
  14308. builtin and then its argument prototype would still apply. */
  14309. #ifdef __cplusplus
  14310. extern "C"
  14311. #endif
  14312. char pow ();
  14313. int
  14314. main ()
  14315. {
  14316. return pow ();
  14317. ;
  14318. return 0;
  14319. }
  14320. _ACEOF
  14321. if ac_fn_c_try_link "$LINENO"; then :
  14322. ac_cv_lib_m_pow=yes
  14323. else
  14324. ac_cv_lib_m_pow=no
  14325. fi
  14326. rm -f core conftest.err conftest.$ac_objext \
  14327. conftest$ac_exeext conftest.$ac_ext
  14328. LIBS=$ac_check_lib_save_LIBS
  14329. fi
  14330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14331. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14332. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14333. POW_LIB=-lm
  14334. else
  14335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14336. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14337. fi
  14338. fi
  14339. fi
  14340. if test x$ac_cv_func_strtod = xyes; then
  14341. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14342. fi
  14343. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14344. if test "x$ac_cv_func_mprotect" = xyes; then :
  14345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14346. /* end confdefs.h. */
  14347. #include <sys/types.h>
  14348. #include <sys/mman.h>
  14349. int
  14350. main ()
  14351. {
  14352. ;
  14353. return 0;
  14354. }
  14355. _ACEOF
  14356. if ac_fn_c_try_compile "$LINENO"; then :
  14357. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14358. fi
  14359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14360. fi
  14361. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr 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 poll
  14362. do :
  14363. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14364. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14365. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14366. cat >>confdefs.h <<_ACEOF
  14367. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14368. _ACEOF
  14369. fi
  14370. done
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14372. $as_echo_n "checking for pow in -lm... " >&6; }
  14373. if ${ac_cv_lib_m_pow+:} false; then :
  14374. $as_echo_n "(cached) " >&6
  14375. else
  14376. ac_check_lib_save_LIBS=$LIBS
  14377. LIBS="-lm $LIBS"
  14378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14379. /* end confdefs.h. */
  14380. /* Override any GCC internal prototype to avoid an error.
  14381. Use char because int might match the return type of a GCC
  14382. builtin and then its argument prototype would still apply. */
  14383. #ifdef __cplusplus
  14384. extern "C"
  14385. #endif
  14386. char pow ();
  14387. int
  14388. main ()
  14389. {
  14390. return pow ();
  14391. ;
  14392. return 0;
  14393. }
  14394. _ACEOF
  14395. if ac_fn_c_try_link "$LINENO"; then :
  14396. ac_cv_lib_m_pow=yes
  14397. else
  14398. ac_cv_lib_m_pow=no
  14399. fi
  14400. rm -f core conftest.err conftest.$ac_objext \
  14401. conftest$ac_exeext conftest.$ac_ext
  14402. LIBS=$ac_check_lib_save_LIBS
  14403. fi
  14404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14405. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14406. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14407. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14408. fi
  14409. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14410. do :
  14411. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14412. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14413. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14414. cat >>confdefs.h <<_ACEOF
  14415. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14416. _ACEOF
  14417. fi
  14418. done
  14419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14420. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14421. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14422. $as_echo_n "(cached) " >&6
  14423. else
  14424. ac_check_lib_save_LIBS=$LIBS
  14425. LIBS="-liconv $LIBS"
  14426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14427. /* end confdefs.h. */
  14428. /* Override any GCC internal prototype to avoid an error.
  14429. Use char because int might match the return type of a GCC
  14430. builtin and then its argument prototype would still apply. */
  14431. #ifdef __cplusplus
  14432. extern "C"
  14433. #endif
  14434. char iconv_open ();
  14435. int
  14436. main ()
  14437. {
  14438. return iconv_open ();
  14439. ;
  14440. return 0;
  14441. }
  14442. _ACEOF
  14443. if ac_fn_c_try_link "$LINENO"; then :
  14444. ac_cv_lib_iconv_iconv_open=yes
  14445. else
  14446. ac_cv_lib_iconv_iconv_open=no
  14447. fi
  14448. rm -f core conftest.err conftest.$ac_objext \
  14449. conftest$ac_exeext conftest.$ac_ext
  14450. LIBS=$ac_check_lib_save_LIBS
  14451. fi
  14452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14453. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14454. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14455. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14456. fi
  14457. for ac_func in iconv
  14458. do :
  14459. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14460. if test "x$ac_cv_func_iconv" = xyes; then :
  14461. cat >>confdefs.h <<_ACEOF
  14462. #define HAVE_ICONV 1
  14463. _ACEOF
  14464. fi
  14465. done
  14466. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14467. "
  14468. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14469. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14470. fi
  14471. for ac_header in libunwind.h
  14472. do :
  14473. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14474. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14475. cat >>confdefs.h <<_ACEOF
  14476. #define HAVE_LIBUNWIND_H 1
  14477. _ACEOF
  14478. fi
  14479. done
  14480. fi
  14481. # Check whether --enable-gcc-atomics was given.
  14482. if test "${enable_gcc_atomics+set}" = set; then :
  14483. enableval=$enable_gcc_atomics;
  14484. else
  14485. enable_gcc_atomics=yes
  14486. fi
  14487. if test x$enable_gcc_atomics = xyes; then
  14488. have_gcc_atomics=no
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14490. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14492. /* end confdefs.h. */
  14493. int
  14494. main ()
  14495. {
  14496. int a;
  14497. void *x, *y, *z;
  14498. __sync_lock_test_and_set(&a, 4);
  14499. __sync_lock_test_and_set(&x, y);
  14500. __sync_fetch_and_add(&a, 1);
  14501. __sync_bool_compare_and_swap(&a, 5, 10);
  14502. __sync_bool_compare_and_swap(&x, y, z);
  14503. ;
  14504. return 0;
  14505. }
  14506. _ACEOF
  14507. if ac_fn_c_try_link "$LINENO"; then :
  14508. have_gcc_atomics=yes
  14509. fi
  14510. rm -f core conftest.err conftest.$ac_objext \
  14511. conftest$ac_exeext conftest.$ac_ext
  14512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14513. $as_echo "$have_gcc_atomics" >&6; }
  14514. if test x$have_gcc_atomics = xyes; then
  14515. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14516. else
  14517. # See if we have the minimum operation needed for GCC atomics
  14518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14519. /* end confdefs.h. */
  14520. int
  14521. main ()
  14522. {
  14523. int a;
  14524. __sync_lock_test_and_set(&a, 1);
  14525. __sync_lock_release(&a);
  14526. ;
  14527. return 0;
  14528. }
  14529. _ACEOF
  14530. if ac_fn_c_try_link "$LINENO"; then :
  14531. have_gcc_sync_lock_test_and_set=yes
  14532. fi
  14533. rm -f core conftest.err conftest.$ac_objext \
  14534. conftest$ac_exeext conftest.$ac_ext
  14535. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14536. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14537. fi
  14538. fi
  14539. fi
  14540. # Standard C sources
  14541. SOURCES="$SOURCES $srcdir/src/*.c"
  14542. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14543. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14544. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14545. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14546. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14547. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14548. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14549. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14550. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14551. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14552. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14553. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14554. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14555. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14556. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14557. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14558. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14559. # Check whether --enable-atomic was given.
  14560. if test "${enable_atomic+set}" = set; then :
  14561. enableval=$enable_atomic;
  14562. else
  14563. enable_atomic=yes
  14564. fi
  14565. if test x$enable_atomic != xyes; then
  14566. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14567. else
  14568. SUMMARY_modules="${SUMMARY_modules} atomic"
  14569. fi
  14570. # Check whether --enable-audio was given.
  14571. if test "${enable_audio+set}" = set; then :
  14572. enableval=$enable_audio;
  14573. else
  14574. enable_audio=yes
  14575. fi
  14576. if test x$enable_audio != xyes; then
  14577. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14578. else
  14579. SUMMARY_modules="${SUMMARY_modules} audio"
  14580. fi
  14581. # Check whether --enable-video was given.
  14582. if test "${enable_video+set}" = set; then :
  14583. enableval=$enable_video;
  14584. else
  14585. enable_video=yes
  14586. fi
  14587. if test x$enable_video != xyes; then
  14588. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14589. else
  14590. SUMMARY_modules="${SUMMARY_modules} video"
  14591. fi
  14592. # Check whether --enable-render was given.
  14593. if test "${enable_render+set}" = set; then :
  14594. enableval=$enable_render;
  14595. else
  14596. enable_render=yes
  14597. fi
  14598. if test x$enable_render != xyes; then
  14599. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14600. else
  14601. SUMMARY_modules="${SUMMARY_modules} render"
  14602. fi
  14603. # Check whether --enable-events was given.
  14604. if test "${enable_events+set}" = set; then :
  14605. enableval=$enable_events;
  14606. else
  14607. enable_events=yes
  14608. fi
  14609. if test x$enable_events != xyes; then
  14610. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14611. else
  14612. SUMMARY_modules="${SUMMARY_modules} events"
  14613. fi
  14614. # Check whether --enable-joystick was given.
  14615. if test "${enable_joystick+set}" = set; then :
  14616. enableval=$enable_joystick;
  14617. else
  14618. enable_joystick=yes
  14619. fi
  14620. if test x$enable_joystick != xyes; then
  14621. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14622. else
  14623. SUMMARY_modules="${SUMMARY_modules} joystick"
  14624. fi
  14625. # Check whether --enable-haptic was given.
  14626. if test "${enable_haptic+set}" = set; then :
  14627. enableval=$enable_haptic;
  14628. else
  14629. enable_haptic=yes
  14630. fi
  14631. if test x$enable_haptic != xyes; then
  14632. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14633. else
  14634. SUMMARY_modules="${SUMMARY_modules} haptic"
  14635. fi
  14636. # Check whether --enable-power was given.
  14637. if test "${enable_power+set}" = set; then :
  14638. enableval=$enable_power;
  14639. else
  14640. enable_power=yes
  14641. fi
  14642. if test x$enable_power != xyes; then
  14643. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14644. else
  14645. SUMMARY_modules="${SUMMARY_modules} power"
  14646. fi
  14647. # Check whether --enable-filesystem was given.
  14648. if test "${enable_filesystem+set}" = set; then :
  14649. enableval=$enable_filesystem;
  14650. else
  14651. enable_filesystem=yes
  14652. fi
  14653. if test x$enable_filesystem != xyes; then
  14654. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14655. else
  14656. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14657. fi
  14658. # Check whether --enable-threads was given.
  14659. if test "${enable_threads+set}" = set; then :
  14660. enableval=$enable_threads;
  14661. else
  14662. enable_threads=yes
  14663. fi
  14664. if test x$enable_threads != xyes; then
  14665. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14666. else
  14667. SUMMARY_modules="${SUMMARY_modules} threads"
  14668. fi
  14669. # Check whether --enable-timers was given.
  14670. if test "${enable_timers+set}" = set; then :
  14671. enableval=$enable_timers;
  14672. else
  14673. enable_timers=yes
  14674. fi
  14675. if test x$enable_timers != xyes; then
  14676. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14677. else
  14678. SUMMARY_modules="${SUMMARY_modules} timers"
  14679. fi
  14680. # Check whether --enable-file was given.
  14681. if test "${enable_file+set}" = set; then :
  14682. enableval=$enable_file;
  14683. else
  14684. enable_file=yes
  14685. fi
  14686. if test x$enable_file != xyes; then
  14687. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14688. else
  14689. SUMMARY_modules="${SUMMARY_modules} file"
  14690. fi
  14691. # Check whether --enable-loadso was given.
  14692. if test "${enable_loadso+set}" = set; then :
  14693. enableval=$enable_loadso;
  14694. else
  14695. enable_loadso=yes
  14696. fi
  14697. if test x$enable_loadso != xyes; then
  14698. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14699. else
  14700. SUMMARY_modules="${SUMMARY_modules} loadso"
  14701. fi
  14702. # Check whether --enable-cpuinfo was given.
  14703. if test "${enable_cpuinfo+set}" = set; then :
  14704. enableval=$enable_cpuinfo;
  14705. else
  14706. enable_cpuinfo=yes
  14707. fi
  14708. if test x$enable_cpuinfo != xyes; then
  14709. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14710. else
  14711. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14712. fi
  14713. # Check whether --enable-assembly was given.
  14714. if test "${enable_assembly+set}" = set; then :
  14715. enableval=$enable_assembly;
  14716. else
  14717. enable_assembly=yes
  14718. fi
  14719. if test x$enable_assembly = xyes; then
  14720. SUMMARY_modules="${SUMMARY_modules} assembly"
  14721. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14722. # Make sure that we don't generate floating point code that would
  14723. # cause illegal instruction exceptions on older processors
  14724. case "$host" in
  14725. *-*-darwin*)
  14726. # Don't need to worry about Apple hardware, it's all SSE capable
  14727. default_ssemath=yes
  14728. ;;
  14729. *64-*-*)
  14730. # x86 64-bit architectures all have SSE instructions
  14731. default_ssemath=yes
  14732. ;;
  14733. *)
  14734. default_ssemath=no
  14735. ;;
  14736. esac
  14737. # Check whether --enable-ssemath was given.
  14738. if test "${enable_ssemath+set}" = set; then :
  14739. enableval=$enable_ssemath;
  14740. else
  14741. enable_ssemath=$default_ssemath
  14742. fi
  14743. if test x$enable_ssemath = xno; then
  14744. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14745. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14746. fi
  14747. fi
  14748. # Check whether --enable-mmx was given.
  14749. if test "${enable_mmx+set}" = set; then :
  14750. enableval=$enable_mmx;
  14751. else
  14752. enable_mmx=yes
  14753. fi
  14754. if test x$enable_mmx = xyes; then
  14755. save_CFLAGS="$CFLAGS"
  14756. have_gcc_mmx=no
  14757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14758. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14759. mmx_CFLAGS="-mmmx"
  14760. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14762. /* end confdefs.h. */
  14763. #ifdef __MINGW32__
  14764. #include <_mingw.h>
  14765. #ifdef __MINGW64_VERSION_MAJOR
  14766. #include <intrin.h>
  14767. #else
  14768. #include <mmintrin.h>
  14769. #endif
  14770. #else
  14771. #include <mmintrin.h>
  14772. #endif
  14773. #ifndef __MMX__
  14774. #error Assembler CPP flag not enabled
  14775. #endif
  14776. int
  14777. main ()
  14778. {
  14779. ;
  14780. return 0;
  14781. }
  14782. _ACEOF
  14783. if ac_fn_c_try_compile "$LINENO"; then :
  14784. have_gcc_mmx=yes
  14785. fi
  14786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14788. $as_echo "$have_gcc_mmx" >&6; }
  14789. CFLAGS="$save_CFLAGS"
  14790. if test x$have_gcc_mmx = xyes; then
  14791. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14792. SUMMARY_math="${SUMMARY_math} mmx"
  14793. fi
  14794. fi
  14795. # Check whether --enable-3dnow was given.
  14796. if test "${enable_3dnow+set}" = set; then :
  14797. enableval=$enable_3dnow;
  14798. else
  14799. enable_3dnow=yes
  14800. fi
  14801. if test x$enable_3dnow = xyes; then
  14802. save_CFLAGS="$CFLAGS"
  14803. have_gcc_3dnow=no
  14804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14805. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14806. amd3dnow_CFLAGS="-m3dnow"
  14807. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14809. /* end confdefs.h. */
  14810. #include <mm3dnow.h>
  14811. #ifndef __3dNOW__
  14812. #error Assembler CPP flag not enabled
  14813. #endif
  14814. int
  14815. main ()
  14816. {
  14817. void *p = 0;
  14818. _m_prefetch(p);
  14819. ;
  14820. return 0;
  14821. }
  14822. _ACEOF
  14823. if ac_fn_c_try_link "$LINENO"; then :
  14824. have_gcc_3dnow=yes
  14825. fi
  14826. rm -f core conftest.err conftest.$ac_objext \
  14827. conftest$ac_exeext conftest.$ac_ext
  14828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14829. $as_echo "$have_gcc_3dnow" >&6; }
  14830. CFLAGS="$save_CFLAGS"
  14831. if test x$have_gcc_3dnow = xyes; then
  14832. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14833. SUMMARY_math="${SUMMARY_math} 3dnow"
  14834. fi
  14835. fi
  14836. # Check whether --enable-sse was given.
  14837. if test "${enable_sse+set}" = set; then :
  14838. enableval=$enable_sse;
  14839. else
  14840. enable_sse=yes
  14841. fi
  14842. if test x$enable_sse = xyes; then
  14843. save_CFLAGS="$CFLAGS"
  14844. have_gcc_sse=no
  14845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14846. $as_echo_n "checking for GCC -msse option... " >&6; }
  14847. sse_CFLAGS="-msse"
  14848. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14850. /* end confdefs.h. */
  14851. #ifdef __MINGW32__
  14852. #include <_mingw.h>
  14853. #ifdef __MINGW64_VERSION_MAJOR
  14854. #include <intrin.h>
  14855. #else
  14856. #include <xmmintrin.h>
  14857. #endif
  14858. #else
  14859. #include <xmmintrin.h>
  14860. #endif
  14861. #ifndef __SSE__
  14862. #error Assembler CPP flag not enabled
  14863. #endif
  14864. int
  14865. main ()
  14866. {
  14867. ;
  14868. return 0;
  14869. }
  14870. _ACEOF
  14871. if ac_fn_c_try_compile "$LINENO"; then :
  14872. have_gcc_sse=yes
  14873. fi
  14874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14876. $as_echo "$have_gcc_sse" >&6; }
  14877. CFLAGS="$save_CFLAGS"
  14878. if test x$have_gcc_sse = xyes; then
  14879. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14880. SUMMARY_math="${SUMMARY_math} sse"
  14881. fi
  14882. fi
  14883. # Check whether --enable-sse2 was given.
  14884. if test "${enable_sse2+set}" = set; then :
  14885. enableval=$enable_sse2;
  14886. else
  14887. enable_sse2=$default_ssemath
  14888. fi
  14889. if test x$enable_sse2 = xyes; then
  14890. save_CFLAGS="$CFLAGS"
  14891. have_gcc_sse2=no
  14892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14893. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14894. sse2_CFLAGS="-msse2"
  14895. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14897. /* end confdefs.h. */
  14898. #ifdef __MINGW32__
  14899. #include <_mingw.h>
  14900. #ifdef __MINGW64_VERSION_MAJOR
  14901. #include <intrin.h>
  14902. #else
  14903. #include <emmintrin.h>
  14904. #endif
  14905. #else
  14906. #include <emmintrin.h>
  14907. #endif
  14908. #ifndef __SSE2__
  14909. #error Assembler CPP flag not enabled
  14910. #endif
  14911. int
  14912. main ()
  14913. {
  14914. ;
  14915. return 0;
  14916. }
  14917. _ACEOF
  14918. if ac_fn_c_try_compile "$LINENO"; then :
  14919. have_gcc_sse2=yes
  14920. fi
  14921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14923. $as_echo "$have_gcc_sse2" >&6; }
  14924. CFLAGS="$save_CFLAGS"
  14925. if test x$have_gcc_sse2 = xyes; then
  14926. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14927. SUMMARY_math="${SUMMARY_math} sse2"
  14928. fi
  14929. fi
  14930. # Check whether --enable-sse3 was given.
  14931. if test "${enable_sse3+set}" = set; then :
  14932. enableval=$enable_sse3;
  14933. else
  14934. enable_sse3=$default_ssemath
  14935. fi
  14936. if test x$enable_sse3 = xyes; then
  14937. save_CFLAGS="$CFLAGS"
  14938. have_gcc_sse3=no
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14940. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14941. sse3_CFLAGS="-msse3"
  14942. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14944. /* end confdefs.h. */
  14945. #ifdef __MINGW32__
  14946. #include <_mingw.h>
  14947. #ifdef __MINGW64_VERSION_MAJOR
  14948. #include <intrin.h>
  14949. #else
  14950. #include <pmmintrin.h>
  14951. #endif
  14952. #else
  14953. #include <pmmintrin.h>
  14954. #endif
  14955. #ifndef __SSE2__
  14956. #error Assembler CPP flag not enabled
  14957. #endif
  14958. int
  14959. main ()
  14960. {
  14961. ;
  14962. return 0;
  14963. }
  14964. _ACEOF
  14965. if ac_fn_c_try_compile "$LINENO"; then :
  14966. have_gcc_sse3=yes
  14967. fi
  14968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14970. $as_echo "$have_gcc_sse3" >&6; }
  14971. CFLAGS="$save_CFLAGS"
  14972. if test x$have_gcc_sse3 = xyes; then
  14973. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14974. SUMMARY_math="${SUMMARY_math} sse3"
  14975. fi
  14976. fi
  14977. # Check whether --enable-altivec was given.
  14978. if test "${enable_altivec+set}" = set; then :
  14979. enableval=$enable_altivec;
  14980. else
  14981. enable_altivec=yes
  14982. fi
  14983. if test x$enable_altivec = xyes; then
  14984. save_CFLAGS="$CFLAGS"
  14985. have_gcc_altivec=no
  14986. have_altivec_h_hdr=no
  14987. altivec_CFLAGS="-maltivec"
  14988. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14990. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14992. /* end confdefs.h. */
  14993. #include <altivec.h>
  14994. vector unsigned int vzero() {
  14995. return vec_splat_u32(0);
  14996. }
  14997. int
  14998. main ()
  14999. {
  15000. ;
  15001. return 0;
  15002. }
  15003. _ACEOF
  15004. if ac_fn_c_try_compile "$LINENO"; then :
  15005. have_gcc_altivec=yes
  15006. have_altivec_h_hdr=yes
  15007. fi
  15008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15010. $as_echo "$have_gcc_altivec" >&6; }
  15011. if test x$have_gcc_altivec = xno; then
  15012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15013. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15015. /* end confdefs.h. */
  15016. vector unsigned int vzero() {
  15017. return vec_splat_u32(0);
  15018. }
  15019. int
  15020. main ()
  15021. {
  15022. ;
  15023. return 0;
  15024. }
  15025. _ACEOF
  15026. if ac_fn_c_try_compile "$LINENO"; then :
  15027. have_gcc_altivec=yes
  15028. fi
  15029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15031. $as_echo "$have_gcc_altivec" >&6; }
  15032. fi
  15033. if test x$have_gcc_altivec = xno; then
  15034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15035. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15036. altivec_CFLAGS="-faltivec"
  15037. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15039. /* end confdefs.h. */
  15040. #include <altivec.h>
  15041. vector unsigned int vzero() {
  15042. return vec_splat_u32(0);
  15043. }
  15044. int
  15045. main ()
  15046. {
  15047. ;
  15048. return 0;
  15049. }
  15050. _ACEOF
  15051. if ac_fn_c_try_compile "$LINENO"; then :
  15052. have_gcc_altivec=yes
  15053. have_altivec_h_hdr=yes
  15054. fi
  15055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15057. $as_echo "$have_gcc_altivec" >&6; }
  15058. fi
  15059. if test x$have_gcc_altivec = xno; then
  15060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15061. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15063. /* end confdefs.h. */
  15064. vector unsigned int vzero() {
  15065. return vec_splat_u32(0);
  15066. }
  15067. int
  15068. main ()
  15069. {
  15070. ;
  15071. return 0;
  15072. }
  15073. _ACEOF
  15074. if ac_fn_c_try_compile "$LINENO"; then :
  15075. have_gcc_altivec=yes
  15076. fi
  15077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15079. $as_echo "$have_gcc_altivec" >&6; }
  15080. fi
  15081. CFLAGS="$save_CFLAGS"
  15082. if test x$have_gcc_altivec = xyes; then
  15083. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15084. if test x$have_altivec_h_hdr = xyes; then
  15085. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15086. fi
  15087. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15088. SUMMARY_math="${SUMMARY_math} altivec"
  15089. fi
  15090. fi
  15091. fi
  15092. CheckOSS()
  15093. {
  15094. # Check whether --enable-oss was given.
  15095. if test "${enable_oss+set}" = set; then :
  15096. enableval=$enable_oss;
  15097. else
  15098. enable_oss=maybe
  15099. fi
  15100. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15101. # use sndio instead. So on there, we default to disabled. You can force
  15102. # it on if you really want, though.
  15103. if test x$enable_oss = xmaybe; then
  15104. enable_oss=yes
  15105. case "$host" in
  15106. *-*-openbsd*)
  15107. enable_oss=no;;
  15108. esac
  15109. fi
  15110. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15112. $as_echo_n "checking for OSS audio support... " >&6; }
  15113. have_oss=no
  15114. if test x$have_oss != xyes; then
  15115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15116. /* end confdefs.h. */
  15117. #include <sys/soundcard.h>
  15118. int
  15119. main ()
  15120. {
  15121. int arg = SNDCTL_DSP_SETFRAGMENT;
  15122. ;
  15123. return 0;
  15124. }
  15125. _ACEOF
  15126. if ac_fn_c_try_compile "$LINENO"; then :
  15127. have_oss=yes
  15128. fi
  15129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15130. fi
  15131. if test x$have_oss != xyes; then
  15132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15133. /* end confdefs.h. */
  15134. #include <soundcard.h>
  15135. int
  15136. main ()
  15137. {
  15138. int arg = SNDCTL_DSP_SETFRAGMENT;
  15139. ;
  15140. return 0;
  15141. }
  15142. _ACEOF
  15143. if ac_fn_c_try_compile "$LINENO"; then :
  15144. have_oss=yes
  15145. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15146. fi
  15147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15148. fi
  15149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15150. $as_echo "$have_oss" >&6; }
  15151. if test x$have_oss = xyes; then
  15152. SUMMARY_audio="${SUMMARY_audio} oss"
  15153. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15154. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15155. have_audio=yes
  15156. # We may need to link with ossaudio emulation library
  15157. case "$host" in
  15158. *-*-openbsd*|*-*-netbsd*)
  15159. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15160. esac
  15161. fi
  15162. fi
  15163. }
  15164. CheckALSA()
  15165. {
  15166. # Check whether --enable-alsa was given.
  15167. if test "${enable_alsa+set}" = set; then :
  15168. enableval=$enable_alsa;
  15169. else
  15170. enable_alsa=yes
  15171. fi
  15172. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15173. alsa_save_CFLAGS="$CFLAGS"
  15174. alsa_save_LDFLAGS="$LDFLAGS"
  15175. alsa_save_LIBS="$LIBS"
  15176. alsa_found=yes
  15177. # Check whether --with-alsa-prefix was given.
  15178. if test "${with_alsa_prefix+set}" = set; then :
  15179. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15180. else
  15181. alsa_prefix=""
  15182. fi
  15183. # Check whether --with-alsa-inc-prefix was given.
  15184. if test "${with_alsa_inc_prefix+set}" = set; then :
  15185. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15186. else
  15187. alsa_inc_prefix=""
  15188. fi
  15189. # Check whether --enable-alsatest was given.
  15190. if test "${enable_alsatest+set}" = set; then :
  15191. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15192. else
  15193. enable_alsatest=yes
  15194. fi
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15196. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15197. if test "$alsa_inc_prefix" != "" ; then
  15198. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15199. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15200. fi
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15202. $as_echo "$ALSA_CFLAGS" >&6; }
  15203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15204. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15205. if test "$alsa_prefix" != "" ; then
  15206. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15207. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15208. fi
  15209. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15210. LIBS=`echo $LIBS | sed 's/-lm//'`
  15211. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15212. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15213. LIBS=`echo $LIBS | sed 's/ //'`
  15214. LIBS="$ALSA_LIBS $LIBS"
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15216. $as_echo "$ALSA_LIBS" >&6; }
  15217. min_alsa_version=1.0.11
  15218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15219. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15220. no_alsa=""
  15221. alsa_min_major_version=`echo $min_alsa_version | \
  15222. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15223. alsa_min_minor_version=`echo $min_alsa_version | \
  15224. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15225. alsa_min_micro_version=`echo $min_alsa_version | \
  15226. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15227. ac_ext=c
  15228. ac_cpp='$CPP $CPPFLAGS'
  15229. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15230. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15231. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15233. /* end confdefs.h. */
  15234. #include <alsa/asoundlib.h>
  15235. int
  15236. main ()
  15237. {
  15238. /* ensure backward compatibility */
  15239. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15240. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15241. #endif
  15242. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15243. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15244. #endif
  15245. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15246. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15247. #endif
  15248. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15249. exit(0);
  15250. # else
  15251. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15252. # error not present
  15253. # endif
  15254. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15255. exit(0);
  15256. # else
  15257. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15258. # error not present
  15259. # endif
  15260. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15261. # error not present
  15262. # endif
  15263. # endif
  15264. # endif
  15265. exit(0);
  15266. ;
  15267. return 0;
  15268. }
  15269. _ACEOF
  15270. if ac_fn_c_try_compile "$LINENO"; then :
  15271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15272. $as_echo "found." >&6; }
  15273. else
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15275. $as_echo "not present." >&6; }
  15276. alsa_found=no
  15277. fi
  15278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15279. ac_ext=c
  15280. ac_cpp='$CPP $CPPFLAGS'
  15281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15284. if test "x$enable_alsatest" = "xyes"; then
  15285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15286. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15287. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15288. $as_echo_n "(cached) " >&6
  15289. else
  15290. ac_check_lib_save_LIBS=$LIBS
  15291. LIBS="-lasound $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 snd_ctl_open ();
  15301. int
  15302. main ()
  15303. {
  15304. return snd_ctl_open ();
  15305. ;
  15306. return 0;
  15307. }
  15308. _ACEOF
  15309. if ac_fn_c_try_link "$LINENO"; then :
  15310. ac_cv_lib_asound_snd_ctl_open=yes
  15311. else
  15312. ac_cv_lib_asound_snd_ctl_open=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_asound_snd_ctl_open" >&5
  15319. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15320. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15321. cat >>confdefs.h <<_ACEOF
  15322. #define HAVE_LIBASOUND 1
  15323. _ACEOF
  15324. LIBS="-lasound $LIBS"
  15325. else
  15326. alsa_found=no
  15327. fi
  15328. fi
  15329. if test "x$alsa_found" = "xyes" ; then
  15330. have_alsa=yes
  15331. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15332. LIBS=`echo $LIBS | sed 's/ //'`
  15333. LIBS="-lasound $LIBS"
  15334. fi
  15335. if test "x$alsa_found" = "xno" ; then
  15336. have_alsa=no
  15337. CFLAGS="$alsa_save_CFLAGS"
  15338. LDFLAGS="$alsa_save_LDFLAGS"
  15339. LIBS="$alsa_save_LIBS"
  15340. ALSA_CFLAGS=""
  15341. ALSA_LIBS=""
  15342. fi
  15343. # Restore all flags from before the ALSA detection runs
  15344. CFLAGS="$alsa_save_CFLAGS"
  15345. LDFLAGS="$alsa_save_LDFLAGS"
  15346. LIBS="$alsa_save_LIBS"
  15347. if test x$have_alsa = xyes; then
  15348. # Check whether --enable-alsa-shared was given.
  15349. if test "${enable_alsa_shared+set}" = set; then :
  15350. enableval=$enable_alsa_shared;
  15351. else
  15352. enable_alsa_shared=yes
  15353. fi
  15354. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15355. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15356. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15357. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15358. if test x$have_loadso != xyes && \
  15359. test x$enable_alsa_shared = xyes; then
  15360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15361. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15362. fi
  15363. if test x$have_loadso = xyes && \
  15364. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15365. echo "-- dynamic libasound -> $alsa_lib"
  15366. cat >>confdefs.h <<_ACEOF
  15367. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15368. _ACEOF
  15369. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15370. else
  15371. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15372. SUMMARY_audio="${SUMMARY_audio} alsa"
  15373. fi
  15374. have_audio=yes
  15375. fi
  15376. fi
  15377. }
  15378. CheckJACK()
  15379. {
  15380. # Check whether --enable-jack was given.
  15381. if test "${enable_jack+set}" = set; then :
  15382. enableval=$enable_jack;
  15383. else
  15384. enable_jack=yes
  15385. fi
  15386. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15387. audio_jack=no
  15388. JACK_REQUIRED_VERSION=0.125
  15389. # Extract the first word of "pkg-config", so it can be a program name with args.
  15390. set dummy pkg-config; ac_word=$2
  15391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15392. $as_echo_n "checking for $ac_word... " >&6; }
  15393. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15394. $as_echo_n "(cached) " >&6
  15395. else
  15396. case $PKG_CONFIG in
  15397. [\\/]* | ?:[\\/]*)
  15398. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15399. ;;
  15400. *)
  15401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15402. for as_dir in $PATH
  15403. do
  15404. IFS=$as_save_IFS
  15405. test -z "$as_dir" && as_dir=.
  15406. for ac_exec_ext in '' $ac_executable_extensions; do
  15407. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15408. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15409. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15410. break 2
  15411. fi
  15412. done
  15413. done
  15414. IFS=$as_save_IFS
  15415. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15416. ;;
  15417. esac
  15418. fi
  15419. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15420. if test -n "$PKG_CONFIG"; then
  15421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15422. $as_echo "$PKG_CONFIG" >&6; }
  15423. else
  15424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15425. $as_echo "no" >&6; }
  15426. fi
  15427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15428. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15429. if test x$PKG_CONFIG != xno; then
  15430. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15431. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15432. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15433. audio_jack=yes
  15434. fi
  15435. fi
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15437. $as_echo "$audio_jack" >&6; }
  15438. if test x$audio_jack = xyes; then
  15439. # Check whether --enable-jack-shared was given.
  15440. if test "${enable_jack_shared+set}" = set; then :
  15441. enableval=$enable_jack_shared;
  15442. else
  15443. enable_jack_shared=yes
  15444. fi
  15445. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15446. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15447. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15448. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15449. if test x$have_loadso != xyes && \
  15450. test x$enable_jack_shared = xyes; then
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15452. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15453. fi
  15454. if test x$have_loadso = xyes && \
  15455. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15456. echo "-- dynamic libjack -> $jack_lib"
  15457. cat >>confdefs.h <<_ACEOF
  15458. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15459. _ACEOF
  15460. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15461. case "$host" in
  15462. # On Solaris, jack must be linked deferred explicitly
  15463. # to prevent undefined symbol failures.
  15464. *-*-solaris*)
  15465. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15466. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15467. esac
  15468. else
  15469. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15470. SUMMARY_audio="${SUMMARY_audio} jack"
  15471. fi
  15472. have_audio=yes
  15473. fi
  15474. fi
  15475. }
  15476. CheckESD()
  15477. {
  15478. # Check whether --enable-esd was given.
  15479. if test "${enable_esd+set}" = set; then :
  15480. enableval=$enable_esd;
  15481. else
  15482. enable_esd=yes
  15483. fi
  15484. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15485. # Check whether --with-esd-prefix was given.
  15486. if test "${with_esd_prefix+set}" = set; then :
  15487. withval=$with_esd_prefix; esd_prefix="$withval"
  15488. else
  15489. esd_prefix=""
  15490. fi
  15491. # Check whether --with-esd-exec-prefix was given.
  15492. if test "${with_esd_exec_prefix+set}" = set; then :
  15493. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15494. else
  15495. esd_exec_prefix=""
  15496. fi
  15497. # Check whether --enable-esdtest was given.
  15498. if test "${enable_esdtest+set}" = set; then :
  15499. enableval=$enable_esdtest;
  15500. else
  15501. enable_esdtest=yes
  15502. fi
  15503. if test x$esd_exec_prefix != x ; then
  15504. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15505. if test x${ESD_CONFIG+set} != xset ; then
  15506. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15507. fi
  15508. fi
  15509. if test x$esd_prefix != x ; then
  15510. esd_args="$esd_args --prefix=$esd_prefix"
  15511. if test x${ESD_CONFIG+set} != xset ; then
  15512. ESD_CONFIG=$esd_prefix/bin/esd-config
  15513. fi
  15514. fi
  15515. # Extract the first word of "esd-config", so it can be a program name with args.
  15516. set dummy esd-config; ac_word=$2
  15517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15518. $as_echo_n "checking for $ac_word... " >&6; }
  15519. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15520. $as_echo_n "(cached) " >&6
  15521. else
  15522. case $ESD_CONFIG in
  15523. [\\/]* | ?:[\\/]*)
  15524. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15525. ;;
  15526. *)
  15527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15528. for as_dir in $PATH
  15529. do
  15530. IFS=$as_save_IFS
  15531. test -z "$as_dir" && as_dir=.
  15532. for ac_exec_ext in '' $ac_executable_extensions; do
  15533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15534. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15536. break 2
  15537. fi
  15538. done
  15539. done
  15540. IFS=$as_save_IFS
  15541. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15542. ;;
  15543. esac
  15544. fi
  15545. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15546. if test -n "$ESD_CONFIG"; then
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15548. $as_echo "$ESD_CONFIG" >&6; }
  15549. else
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15551. $as_echo "no" >&6; }
  15552. fi
  15553. min_esd_version=0.2.8
  15554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15555. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15556. no_esd=""
  15557. if test "$ESD_CONFIG" = "no" ; then
  15558. no_esd=yes
  15559. else
  15560. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15561. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15562. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15563. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15564. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15565. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15566. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15567. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15568. if test "x$enable_esdtest" = "xyes" ; then
  15569. ac_save_CFLAGS="$CFLAGS"
  15570. ac_save_LIBS="$LIBS"
  15571. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15572. LIBS="$LIBS $ESD_LIBS"
  15573. rm -f conf.esdtest
  15574. if test "$cross_compiling" = yes; then :
  15575. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15576. else
  15577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15578. /* end confdefs.h. */
  15579. #include <stdio.h>
  15580. #include <stdlib.h>
  15581. #include <string.h>
  15582. #include <esd.h>
  15583. char*
  15584. my_strdup (char *str)
  15585. {
  15586. char *new_str;
  15587. if (str)
  15588. {
  15589. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15590. strcpy (new_str, str);
  15591. }
  15592. else
  15593. new_str = NULL;
  15594. return new_str;
  15595. }
  15596. int main ()
  15597. {
  15598. int major, minor, micro;
  15599. char *tmp_version;
  15600. system ("touch conf.esdtest");
  15601. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15602. tmp_version = my_strdup("$min_esd_version");
  15603. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15604. printf("%s, bad version string\n", "$min_esd_version");
  15605. exit(1);
  15606. }
  15607. if (($esd_major_version > major) ||
  15608. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15609. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15610. {
  15611. return 0;
  15612. }
  15613. else
  15614. {
  15615. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15616. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15617. printf("*** best to upgrade to the required version.\n");
  15618. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15619. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15620. printf("*** config.cache before re-running configure\n");
  15621. return 1;
  15622. }
  15623. }
  15624. _ACEOF
  15625. if ac_fn_c_try_run "$LINENO"; then :
  15626. else
  15627. no_esd=yes
  15628. fi
  15629. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15630. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15631. fi
  15632. CFLAGS="$ac_save_CFLAGS"
  15633. LIBS="$ac_save_LIBS"
  15634. fi
  15635. fi
  15636. if test "x$no_esd" = x ; then
  15637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15638. $as_echo "yes" >&6; }
  15639. have_esd=yes
  15640. else
  15641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15642. $as_echo "no" >&6; }
  15643. if test "$ESD_CONFIG" = "no" ; then
  15644. echo "*** The esd-config script installed by ESD could not be found"
  15645. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15646. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15647. echo "*** full path to esd-config."
  15648. else
  15649. if test -f conf.esdtest ; then
  15650. :
  15651. else
  15652. echo "*** Could not run ESD test program, checking why..."
  15653. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15654. LIBS="$LIBS $ESD_LIBS"
  15655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15656. /* end confdefs.h. */
  15657. #include <stdio.h>
  15658. #include <esd.h>
  15659. int
  15660. main ()
  15661. {
  15662. return 0;
  15663. ;
  15664. return 0;
  15665. }
  15666. _ACEOF
  15667. if ac_fn_c_try_link "$LINENO"; then :
  15668. echo "*** The test program compiled, but did not run. This usually means"
  15669. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15670. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15671. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15672. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15673. echo "*** is required on your system"
  15674. echo "***"
  15675. echo "*** If you have an old version installed, it is best to remove it, although"
  15676. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15677. else
  15678. echo "*** The test program failed to compile or link. See the file config.log for the"
  15679. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15680. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15681. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15682. fi
  15683. rm -f core conftest.err conftest.$ac_objext \
  15684. conftest$ac_exeext conftest.$ac_ext
  15685. CFLAGS="$ac_save_CFLAGS"
  15686. LIBS="$ac_save_LIBS"
  15687. fi
  15688. fi
  15689. ESD_CFLAGS=""
  15690. ESD_LIBS=""
  15691. have_esd=no
  15692. fi
  15693. rm -f conf.esdtest
  15694. if test x$have_esd = xyes; then
  15695. # Check whether --enable-esd-shared was given.
  15696. if test "${enable_esd_shared+set}" = set; then :
  15697. enableval=$enable_esd_shared;
  15698. else
  15699. enable_esd_shared=yes
  15700. fi
  15701. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15702. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15703. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15704. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15705. if test x$have_loadso != xyes && \
  15706. test x$enable_esd_shared = xyes; then
  15707. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15708. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15709. fi
  15710. if test x$have_loadso = xyes && \
  15711. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15712. echo "-- dynamic libesd -> $esd_lib"
  15713. cat >>confdefs.h <<_ACEOF
  15714. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15715. _ACEOF
  15716. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15717. else
  15718. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15719. SUMMARY_audio="${SUMMARY_audio} esd"
  15720. fi
  15721. have_audio=yes
  15722. fi
  15723. fi
  15724. }
  15725. CheckPulseAudio()
  15726. {
  15727. # Check whether --enable-pulseaudio was given.
  15728. if test "${enable_pulseaudio+set}" = set; then :
  15729. enableval=$enable_pulseaudio;
  15730. else
  15731. enable_pulseaudio=yes
  15732. fi
  15733. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15734. audio_pulseaudio=no
  15735. PULSEAUDIO_REQUIRED_VERSION=0.9
  15736. # Extract the first word of "pkg-config", so it can be a program name with args.
  15737. set dummy pkg-config; ac_word=$2
  15738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15739. $as_echo_n "checking for $ac_word... " >&6; }
  15740. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15741. $as_echo_n "(cached) " >&6
  15742. else
  15743. case $PKG_CONFIG in
  15744. [\\/]* | ?:[\\/]*)
  15745. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15746. ;;
  15747. *)
  15748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15749. for as_dir in $PATH
  15750. do
  15751. IFS=$as_save_IFS
  15752. test -z "$as_dir" && as_dir=.
  15753. for ac_exec_ext in '' $ac_executable_extensions; do
  15754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15755. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15757. break 2
  15758. fi
  15759. done
  15760. done
  15761. IFS=$as_save_IFS
  15762. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15763. ;;
  15764. esac
  15765. fi
  15766. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15767. if test -n "$PKG_CONFIG"; then
  15768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15769. $as_echo "$PKG_CONFIG" >&6; }
  15770. else
  15771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15772. $as_echo "no" >&6; }
  15773. fi
  15774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15775. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15776. if test x$PKG_CONFIG != xno; then
  15777. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15778. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15779. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15780. audio_pulseaudio=yes
  15781. fi
  15782. fi
  15783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15784. $as_echo "$audio_pulseaudio" >&6; }
  15785. if test x$audio_pulseaudio = xyes; then
  15786. # Check whether --enable-pulseaudio-shared was given.
  15787. if test "${enable_pulseaudio_shared+set}" = set; then :
  15788. enableval=$enable_pulseaudio_shared;
  15789. else
  15790. enable_pulseaudio_shared=yes
  15791. fi
  15792. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15793. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15794. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15795. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15796. if test x$have_loadso != xyes && \
  15797. test x$enable_pulseaudio_shared = xyes; then
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15799. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15800. fi
  15801. if test x$have_loadso = xyes && \
  15802. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15803. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15804. cat >>confdefs.h <<_ACEOF
  15805. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15806. _ACEOF
  15807. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15808. case "$host" in
  15809. # On Solaris, pulseaudio must be linked deferred explicitly
  15810. # to prevent undefined symbol failures.
  15811. *-*-solaris*)
  15812. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15813. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15814. esac
  15815. else
  15816. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15817. SUMMARY_audio="${SUMMARY_audio} pulse"
  15818. fi
  15819. have_audio=yes
  15820. fi
  15821. fi
  15822. }
  15823. CheckARTSC()
  15824. {
  15825. # Check whether --enable-arts was given.
  15826. if test "${enable_arts+set}" = set; then :
  15827. enableval=$enable_arts;
  15828. else
  15829. enable_arts=yes
  15830. fi
  15831. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15832. # Extract the first word of "artsc-config", so it can be a program name with args.
  15833. set dummy artsc-config; ac_word=$2
  15834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15835. $as_echo_n "checking for $ac_word... " >&6; }
  15836. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15837. $as_echo_n "(cached) " >&6
  15838. else
  15839. case $ARTSCONFIG in
  15840. [\\/]* | ?:[\\/]*)
  15841. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15842. ;;
  15843. *)
  15844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15845. for as_dir in $PATH
  15846. do
  15847. IFS=$as_save_IFS
  15848. test -z "$as_dir" && as_dir=.
  15849. for ac_exec_ext in '' $ac_executable_extensions; do
  15850. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15851. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15853. break 2
  15854. fi
  15855. done
  15856. done
  15857. IFS=$as_save_IFS
  15858. ;;
  15859. esac
  15860. fi
  15861. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15862. if test -n "$ARTSCONFIG"; then
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15864. $as_echo "$ARTSCONFIG" >&6; }
  15865. else
  15866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15867. $as_echo "no" >&6; }
  15868. fi
  15869. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15870. : # arts isn't installed
  15871. else
  15872. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15873. ARTS_LIBS=`$ARTSCONFIG --libs`
  15874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15875. $as_echo_n "checking for aRts development environment... " >&6; }
  15876. audio_arts=no
  15877. save_CFLAGS="$CFLAGS"
  15878. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15880. /* end confdefs.h. */
  15881. #include <artsc.h>
  15882. int
  15883. main ()
  15884. {
  15885. arts_stream_t stream;
  15886. ;
  15887. return 0;
  15888. }
  15889. _ACEOF
  15890. if ac_fn_c_try_compile "$LINENO"; then :
  15891. audio_arts=yes
  15892. fi
  15893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15894. CFLAGS="$save_CFLAGS"
  15895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15896. $as_echo "$audio_arts" >&6; }
  15897. if test x$audio_arts = xyes; then
  15898. # Check whether --enable-arts-shared was given.
  15899. if test "${enable_arts_shared+set}" = set; then :
  15900. enableval=$enable_arts_shared;
  15901. else
  15902. enable_arts_shared=yes
  15903. fi
  15904. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15905. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15906. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15907. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15908. if test x$have_loadso != xyes && \
  15909. test x$enable_arts_shared = xyes; then
  15910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15911. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15912. fi
  15913. if test x$have_loadso = xyes && \
  15914. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15915. echo "-- dynamic libartsc -> $arts_lib"
  15916. cat >>confdefs.h <<_ACEOF
  15917. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15918. _ACEOF
  15919. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15920. else
  15921. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15922. SUMMARY_audio="${SUMMARY_audio} arts"
  15923. fi
  15924. have_audio=yes
  15925. fi
  15926. fi
  15927. fi
  15928. }
  15929. CheckNAS()
  15930. {
  15931. # Check whether --enable-nas was given.
  15932. if test "${enable_nas+set}" = set; then :
  15933. enableval=$enable_nas;
  15934. else
  15935. enable_nas=yes
  15936. fi
  15937. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15938. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15939. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15940. have_nas_hdr=yes
  15941. fi
  15942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15943. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15944. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15945. $as_echo_n "(cached) " >&6
  15946. else
  15947. ac_check_lib_save_LIBS=$LIBS
  15948. LIBS="-laudio $LIBS"
  15949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15950. /* end confdefs.h. */
  15951. /* Override any GCC internal prototype to avoid an error.
  15952. Use char because int might match the return type of a GCC
  15953. builtin and then its argument prototype would still apply. */
  15954. #ifdef __cplusplus
  15955. extern "C"
  15956. #endif
  15957. char AuOpenServer ();
  15958. int
  15959. main ()
  15960. {
  15961. return AuOpenServer ();
  15962. ;
  15963. return 0;
  15964. }
  15965. _ACEOF
  15966. if ac_fn_c_try_link "$LINENO"; then :
  15967. ac_cv_lib_audio_AuOpenServer=yes
  15968. else
  15969. ac_cv_lib_audio_AuOpenServer=no
  15970. fi
  15971. rm -f core conftest.err conftest.$ac_objext \
  15972. conftest$ac_exeext conftest.$ac_ext
  15973. LIBS=$ac_check_lib_save_LIBS
  15974. fi
  15975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15976. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15977. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15978. have_nas_lib=yes
  15979. fi
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15981. $as_echo_n "checking for NAS audio support... " >&6; }
  15982. have_nas=no
  15983. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15984. have_nas=yes
  15985. NAS_LIBS="-laudio"
  15986. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15987. have_nas=yes
  15988. NAS_CFLAGS="-I/usr/X11R6/include/"
  15989. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15990. fi
  15991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15992. $as_echo "$have_nas" >&6; }
  15993. if test x$have_nas = xyes; then
  15994. # Check whether --enable-nas-shared was given.
  15995. if test "${enable_nas_shared+set}" = set; then :
  15996. enableval=$enable_nas_shared;
  15997. else
  15998. enable_nas_shared=yes
  15999. fi
  16000. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16001. if test x$have_loadso != xyes && \
  16002. test x$enable_nas_shared = xyes; then
  16003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16004. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16005. fi
  16006. if test x$have_loadso = xyes && \
  16007. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16008. echo "-- dynamic libaudio -> $nas_lib"
  16009. cat >>confdefs.h <<_ACEOF
  16010. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16011. _ACEOF
  16012. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16013. else
  16014. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16015. SUMMARY_audio="${SUMMARY_audio} nas"
  16016. fi
  16017. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16018. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16019. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16020. have_audio=yes
  16021. fi
  16022. fi
  16023. }
  16024. CheckSNDIO()
  16025. {
  16026. # Check whether --enable-sndio was given.
  16027. if test "${enable_sndio+set}" = set; then :
  16028. enableval=$enable_sndio;
  16029. else
  16030. enable_sndio=yes
  16031. fi
  16032. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16033. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16034. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16035. have_sndio_hdr=yes
  16036. fi
  16037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16038. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16039. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16040. $as_echo_n "(cached) " >&6
  16041. else
  16042. ac_check_lib_save_LIBS=$LIBS
  16043. LIBS="-lsndio $LIBS"
  16044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16045. /* end confdefs.h. */
  16046. /* Override any GCC internal prototype to avoid an error.
  16047. Use char because int might match the return type of a GCC
  16048. builtin and then its argument prototype would still apply. */
  16049. #ifdef __cplusplus
  16050. extern "C"
  16051. #endif
  16052. char sio_open ();
  16053. int
  16054. main ()
  16055. {
  16056. return sio_open ();
  16057. ;
  16058. return 0;
  16059. }
  16060. _ACEOF
  16061. if ac_fn_c_try_link "$LINENO"; then :
  16062. ac_cv_lib_sndio_sio_open=yes
  16063. else
  16064. ac_cv_lib_sndio_sio_open=no
  16065. fi
  16066. rm -f core conftest.err conftest.$ac_objext \
  16067. conftest$ac_exeext conftest.$ac_ext
  16068. LIBS=$ac_check_lib_save_LIBS
  16069. fi
  16070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16071. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16072. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16073. have_sndio_lib=yes
  16074. fi
  16075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16076. $as_echo_n "checking for sndio audio support... " >&6; }
  16077. have_sndio=no
  16078. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16079. have_sndio=yes
  16080. SNDIO_LIBS="-lsndio"
  16081. fi
  16082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16083. $as_echo "$have_sndio" >&6; }
  16084. if test x$have_sndio = xyes; then
  16085. # Check whether --enable-sndio-shared was given.
  16086. if test "${enable_sndio_shared+set}" = set; then :
  16087. enableval=$enable_sndio_shared;
  16088. else
  16089. enable_sndio_shared=yes
  16090. fi
  16091. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16092. if test x$have_loadso != xyes && \
  16093. test x$enable_sndio_shared = xyes; then
  16094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16095. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16096. fi
  16097. if test x$have_loadso = xyes && \
  16098. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16099. echo "-- dynamic libsndio -> $sndio_lib"
  16100. cat >>confdefs.h <<_ACEOF
  16101. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16102. _ACEOF
  16103. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16104. else
  16105. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16106. SUMMARY_audio="${SUMMARY_audio} sndio"
  16107. fi
  16108. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16109. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16110. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16111. have_audio=yes
  16112. fi
  16113. fi
  16114. }
  16115. CheckFusionSound()
  16116. {
  16117. # Check whether --enable-fusionsound was given.
  16118. if test "${enable_fusionsound+set}" = set; then :
  16119. enableval=$enable_fusionsound;
  16120. else
  16121. enable_fusionsound=no
  16122. fi
  16123. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16124. fusionsound=no
  16125. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16126. # Extract the first word of "pkg-config", so it can be a program name with args.
  16127. set dummy pkg-config; ac_word=$2
  16128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16129. $as_echo_n "checking for $ac_word... " >&6; }
  16130. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16131. $as_echo_n "(cached) " >&6
  16132. else
  16133. case $PKG_CONFIG in
  16134. [\\/]* | ?:[\\/]*)
  16135. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16136. ;;
  16137. *)
  16138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16139. for as_dir in $PATH
  16140. do
  16141. IFS=$as_save_IFS
  16142. test -z "$as_dir" && as_dir=.
  16143. for ac_exec_ext in '' $ac_executable_extensions; do
  16144. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16145. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16147. break 2
  16148. fi
  16149. done
  16150. done
  16151. IFS=$as_save_IFS
  16152. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16153. ;;
  16154. esac
  16155. fi
  16156. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16157. if test -n "$PKG_CONFIG"; then
  16158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16159. $as_echo "$PKG_CONFIG" >&6; }
  16160. else
  16161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16162. $as_echo "no" >&6; }
  16163. fi
  16164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16165. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16166. if test x$PKG_CONFIG != xno; then
  16167. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16168. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16169. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16170. fusionsound=yes
  16171. fi
  16172. fi
  16173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16174. $as_echo "$fusionsound" >&6; }
  16175. if test x$fusionsound = xyes; then
  16176. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16177. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16178. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16179. # Check whether --enable-fusionsound-shared was given.
  16180. if test "${enable_fusionsound_shared+set}" = set; then :
  16181. enableval=$enable_fusionsound_shared;
  16182. else
  16183. enable_fusionsound_shared=yes
  16184. fi
  16185. fusionsound_shared=no
  16186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16187. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16188. if test x$have_loadso != xyes && \
  16189. test x$enable_fusionsound_shared = xyes; then
  16190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16191. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16192. fi
  16193. if test x$have_loadso = xyes && \
  16194. test x$enable_fusionsound_shared = xyes; then
  16195. cat >>confdefs.h <<_ACEOF
  16196. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16197. _ACEOF
  16198. fusionsound_shared=yes
  16199. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16200. else
  16201. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16202. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16203. fi
  16204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16205. $as_echo "$fusionsound_shared" >&6; }
  16206. have_audio=yes
  16207. fi
  16208. fi
  16209. }
  16210. CheckDiskAudio()
  16211. {
  16212. # Check whether --enable-diskaudio was given.
  16213. if test "${enable_diskaudio+set}" = set; then :
  16214. enableval=$enable_diskaudio;
  16215. else
  16216. enable_diskaudio=yes
  16217. fi
  16218. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16219. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16220. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16221. SUMMARY_audio="${SUMMARY_audio} disk"
  16222. fi
  16223. }
  16224. CheckDummyAudio()
  16225. {
  16226. # Check whether --enable-dummyaudio was given.
  16227. if test "${enable_dummyaudio+set}" = set; then :
  16228. enableval=$enable_dummyaudio;
  16229. else
  16230. enable_dummyaudio=yes
  16231. fi
  16232. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16233. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16234. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16235. SUMMARY_audio="${SUMMARY_audio} dummy"
  16236. fi
  16237. }
  16238. CheckLibSampleRate()
  16239. {
  16240. # Check whether --enable-libsamplerate was given.
  16241. if test "${enable_libsamplerate+set}" = set; then :
  16242. enableval=$enable_libsamplerate;
  16243. else
  16244. enable_libsamplerate=yes
  16245. fi
  16246. if test x$enable_libsamplerate = xyes; then
  16247. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16248. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16249. have_samplerate_h_hdr=yes
  16250. else
  16251. have_samplerate_h_hdr=no
  16252. fi
  16253. if test x$have_samplerate_h_hdr = xyes; then
  16254. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16255. # Check whether --enable-libsamplerate-shared was given.
  16256. if test "${enable_libsamplerate_shared+set}" = set; then :
  16257. enableval=$enable_libsamplerate_shared;
  16258. else
  16259. enable_libsamplerate_shared=yes
  16260. fi
  16261. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16262. if test x$have_loadso != xyes && \
  16263. test x$enable_libsamplerate_shared = xyes; then
  16264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16265. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16266. fi
  16267. if test x$have_loadso = xyes && \
  16268. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16269. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16270. cat >>confdefs.h <<_ACEOF
  16271. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16272. _ACEOF
  16273. else
  16274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16275. fi
  16276. fi
  16277. fi
  16278. }
  16279. CheckVisibilityHidden()
  16280. {
  16281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16282. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16283. have_gcc_fvisibility=no
  16284. visibility_CFLAGS="-fvisibility=hidden"
  16285. save_CFLAGS="$CFLAGS"
  16286. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16288. /* end confdefs.h. */
  16289. #if !defined(__GNUC__) || __GNUC__ < 4
  16290. #error SDL only uses visibility attributes in GCC 4 or newer
  16291. #endif
  16292. int
  16293. main ()
  16294. {
  16295. ;
  16296. return 0;
  16297. }
  16298. _ACEOF
  16299. if ac_fn_c_try_compile "$LINENO"; then :
  16300. have_gcc_fvisibility=yes
  16301. fi
  16302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16304. $as_echo "$have_gcc_fvisibility" >&6; }
  16305. CFLAGS="$save_CFLAGS"
  16306. if test x$have_gcc_fvisibility = xyes; then
  16307. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16308. fi
  16309. }
  16310. CheckStackBoundary()
  16311. {
  16312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16313. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16314. have_gcc_preferred_stack_boundary=no
  16315. save_CFLAGS="$CFLAGS"
  16316. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16318. /* end confdefs.h. */
  16319. int x = 0;
  16320. int
  16321. main ()
  16322. {
  16323. ;
  16324. return 0;
  16325. }
  16326. _ACEOF
  16327. if ac_fn_c_try_compile "$LINENO"; then :
  16328. have_gcc_preferred_stack_boundary=yes
  16329. fi
  16330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16332. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16333. CFLAGS="$save_CFLAGS"
  16334. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16335. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16336. fi
  16337. }
  16338. CheckDeclarationAfterStatement()
  16339. {
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16341. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16342. have_gcc_declaration_after_statement=no
  16343. save_CFLAGS="$CFLAGS"
  16344. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16346. /* end confdefs.h. */
  16347. int x = 0;
  16348. int
  16349. main ()
  16350. {
  16351. ;
  16352. return 0;
  16353. }
  16354. _ACEOF
  16355. if ac_fn_c_try_compile "$LINENO"; then :
  16356. have_gcc_declaration_after_statement=yes
  16357. fi
  16358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16360. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16361. CFLAGS="$save_CFLAGS"
  16362. if test x$have_gcc_declaration_after_statement = xyes; then
  16363. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16364. fi
  16365. }
  16366. CheckWarnAll()
  16367. {
  16368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16369. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16370. have_gcc_Wall=no
  16371. save_CFLAGS="$CFLAGS"
  16372. CFLAGS="$save_CFLAGS -Wall"
  16373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16374. /* end confdefs.h. */
  16375. int x = 0;
  16376. int
  16377. main ()
  16378. {
  16379. ;
  16380. return 0;
  16381. }
  16382. _ACEOF
  16383. if ac_fn_c_try_compile "$LINENO"; then :
  16384. have_gcc_Wall=yes
  16385. fi
  16386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16388. $as_echo "$have_gcc_Wall" >&6; }
  16389. CFLAGS="$save_CFLAGS"
  16390. if test x$have_gcc_Wall = xyes; then
  16391. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16393. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16394. need_gcc_Wno_multichar=no
  16395. case "$host" in
  16396. *-*-haiku*)
  16397. need_gcc_Wno_multichar=yes
  16398. ;;
  16399. esac
  16400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16401. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16402. if test x$need_gcc_Wno_multichar = xyes; then
  16403. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16404. fi
  16405. fi
  16406. }
  16407. CheckWayland()
  16408. {
  16409. # Check whether --enable-video-wayland was given.
  16410. if test "${enable_video_wayland+set}" = set; then :
  16411. enableval=$enable_video_wayland;
  16412. else
  16413. enable_video_wayland=yes
  16414. fi
  16415. # Check whether --enable-video-wayland-qt-touch was given.
  16416. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16417. enableval=$enable_video_wayland_qt_touch;
  16418. else
  16419. enable_video_wayland_qt_touch=yes
  16420. fi
  16421. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16422. # Extract the first word of "pkg-config", so it can be a program name with args.
  16423. set dummy pkg-config; ac_word=$2
  16424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16425. $as_echo_n "checking for $ac_word... " >&6; }
  16426. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16427. $as_echo_n "(cached) " >&6
  16428. else
  16429. case $PKG_CONFIG in
  16430. [\\/]* | ?:[\\/]*)
  16431. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16432. ;;
  16433. *)
  16434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16435. for as_dir in $PATH
  16436. do
  16437. IFS=$as_save_IFS
  16438. test -z "$as_dir" && as_dir=.
  16439. for ac_exec_ext in '' $ac_executable_extensions; do
  16440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16441. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16443. break 2
  16444. fi
  16445. done
  16446. done
  16447. IFS=$as_save_IFS
  16448. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16449. ;;
  16450. esac
  16451. fi
  16452. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16453. if test -n "$PKG_CONFIG"; then
  16454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16455. $as_echo "$PKG_CONFIG" >&6; }
  16456. else
  16457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16458. $as_echo "no" >&6; }
  16459. fi
  16460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16461. $as_echo_n "checking for Wayland support... " >&6; }
  16462. video_wayland=no
  16463. if test x$PKG_CONFIG != xno && \
  16464. test x$video_opengl_egl = xyes && \
  16465. test x$video_opengles_v2 = xyes; then
  16466. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16467. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16468. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16469. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16470. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16471. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16472. video_wayland=yes
  16473. fi
  16474. fi
  16475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16476. $as_echo "$video_wayland" >&6; }
  16477. if test x$video_wayland = xyes; then
  16478. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16479. if test x$enable_video_wayland_qt_touch = xyes; then
  16480. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16481. fi
  16482. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16483. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16484. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16485. # Check whether --enable-wayland-shared was given.
  16486. if test "${enable_wayland_shared+set}" = set; then :
  16487. enableval=$enable_wayland_shared;
  16488. else
  16489. enable_wayland_shared=maybe
  16490. fi
  16491. case "$host" in
  16492. *)
  16493. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16494. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16495. if test x$wayland_egl_lib = x; then
  16496. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16497. fi
  16498. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16499. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16500. ;;
  16501. esac
  16502. if test x$enable_wayland_shared = xmaybe; then
  16503. enable_wayland_shared=yes
  16504. fi
  16505. if test x$have_loadso != xyes && \
  16506. test x$enable_wayland_shared = xyes; then
  16507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16508. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16509. enable_wayland_shared=no
  16510. fi
  16511. if test x$have_loadso = xyes && \
  16512. test x$enable_wayland_shared = xyes && \
  16513. test x$wayland_client_lib != x && \
  16514. test x$wayland_egl_lib != x && \
  16515. test x$wayland_cursor_lib != x && \
  16516. test x$xkbcommon_lib != x; then
  16517. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16518. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16519. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16520. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16521. cat >>confdefs.h <<_ACEOF
  16522. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16523. _ACEOF
  16524. cat >>confdefs.h <<_ACEOF
  16525. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16526. _ACEOF
  16527. cat >>confdefs.h <<_ACEOF
  16528. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16529. _ACEOF
  16530. cat >>confdefs.h <<_ACEOF
  16531. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16532. _ACEOF
  16533. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16534. else
  16535. enable_wayland_shared=no
  16536. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16537. SUMMARY_video="${SUMMARY_video} wayland"
  16538. fi
  16539. have_video=yes
  16540. fi
  16541. fi
  16542. }
  16543. CheckMir()
  16544. {
  16545. # Check whether --enable-video-mir was given.
  16546. if test "${enable_video_mir+set}" = set; then :
  16547. enableval=$enable_video_mir;
  16548. else
  16549. enable_video_mir=yes
  16550. fi
  16551. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16552. # Extract the first word of "pkg-config", so it can be a program name with args.
  16553. set dummy pkg-config; ac_word=$2
  16554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16555. $as_echo_n "checking for $ac_word... " >&6; }
  16556. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16557. $as_echo_n "(cached) " >&6
  16558. else
  16559. case $PKG_CONFIG in
  16560. [\\/]* | ?:[\\/]*)
  16561. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16562. ;;
  16563. *)
  16564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16565. for as_dir in $PATH
  16566. do
  16567. IFS=$as_save_IFS
  16568. test -z "$as_dir" && as_dir=.
  16569. for ac_exec_ext in '' $ac_executable_extensions; do
  16570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16571. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16573. break 2
  16574. fi
  16575. done
  16576. done
  16577. IFS=$as_save_IFS
  16578. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16579. ;;
  16580. esac
  16581. fi
  16582. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16583. if test -n "$PKG_CONFIG"; then
  16584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16585. $as_echo "$PKG_CONFIG" >&6; }
  16586. else
  16587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16588. $as_echo "no" >&6; }
  16589. fi
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16591. $as_echo_n "checking for Mir support... " >&6; }
  16592. video_mir=no
  16593. if test x$PKG_CONFIG != xno; then
  16594. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16595. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16596. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16597. save_CFLAGS="$CFLAGS"
  16598. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16600. /* end confdefs.h. */
  16601. #include <mir_toolkit/mir_client_library.h>
  16602. int
  16603. main ()
  16604. {
  16605. MirWindowAttrib attrib = mir_window_attrib_state
  16606. ;
  16607. return 0;
  16608. }
  16609. _ACEOF
  16610. if ac_fn_c_try_compile "$LINENO"; then :
  16611. video_mir=yes
  16612. fi
  16613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16614. CFLAGS="$save_CFLAGS"
  16615. fi
  16616. fi
  16617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16618. $as_echo "$video_mir" >&6; }
  16619. if test x$video_mir = xyes; then
  16620. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16621. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16622. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16623. # Check whether --enable-mir-shared was given.
  16624. if test "${enable_mir_shared+set}" = set; then :
  16625. enableval=$enable_mir_shared;
  16626. else
  16627. enable_mir_shared=maybe
  16628. fi
  16629. case "$host" in
  16630. *)
  16631. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16632. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16633. ;;
  16634. esac
  16635. if test x$enable_mir_shared = xmaybe; then
  16636. enable_mir_shared=yes
  16637. fi
  16638. if test x$have_loadso != xyes && \
  16639. test x$enable_mir_shared = xyes; then
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16641. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16642. enable_mir_shared=no
  16643. fi
  16644. if test x$have_loadso = xyes && \
  16645. test x$enable_mir_shared = xyes && \
  16646. test x$mirclient_lib != x && \
  16647. test x$xkbcommon_lib != x; then
  16648. echo "-- dynamic libmirclient -> $mirclient_lib"
  16649. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16650. cat >>confdefs.h <<_ACEOF
  16651. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16652. _ACEOF
  16653. cat >>confdefs.h <<_ACEOF
  16654. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16655. _ACEOF
  16656. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16657. else
  16658. enable_mir_shared=no
  16659. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16660. SUMMARY_video="${SUMMARY_video} mir"
  16661. fi
  16662. have_video=yes
  16663. fi
  16664. fi
  16665. }
  16666. CheckNativeClient()
  16667. {
  16668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16669. /* end confdefs.h. */
  16670. #if !defined(__native_client__)
  16671. #error "NO NACL"
  16672. #endif
  16673. int
  16674. main ()
  16675. {
  16676. ;
  16677. return 0;
  16678. }
  16679. _ACEOF
  16680. if ac_fn_c_try_compile "$LINENO"; then :
  16681. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16682. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16683. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16684. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16685. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16686. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16687. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16688. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16689. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16690. SUMMARY_audio="${SUMMARY_audio} nacl"
  16691. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16692. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16693. fi
  16694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16695. }
  16696. CheckRPI()
  16697. {
  16698. # Check whether --enable-video-rpi was given.
  16699. if test "${enable_video_rpi+set}" = set; then :
  16700. enableval=$enable_video_rpi;
  16701. else
  16702. enable_video_rpi=yes
  16703. fi
  16704. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16705. if test x$ARCH = xnetbsd; then
  16706. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16707. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16708. else
  16709. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16710. RPI_LDFLAGS="-L/opt/vc/lib -lbcm_host"
  16711. fi
  16712. # Save the original compiler flags and libraries
  16713. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16714. # Add the Raspberry Pi compiler flags and libraries
  16715. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16717. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16718. have_video_rpi=no
  16719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16720. /* end confdefs.h. */
  16721. #include <bcm_host.h>
  16722. int
  16723. main ()
  16724. {
  16725. bcm_host_init();
  16726. ;
  16727. return 0;
  16728. }
  16729. _ACEOF
  16730. if ac_fn_c_try_link "$LINENO"; then :
  16731. have_video_rpi=yes
  16732. fi
  16733. rm -f core conftest.err conftest.$ac_objext \
  16734. conftest$ac_exeext conftest.$ac_ext
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16736. $as_echo "$have_video_rpi" >&6; }
  16737. # Restore the compiler flags and libraries
  16738. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16739. if test x$have_video_rpi = xyes; then
  16740. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16741. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16742. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16743. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16744. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16745. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16746. SUMMARY_video="${SUMMARY_video} rpi"
  16747. fi
  16748. fi
  16749. }
  16750. CheckX11()
  16751. {
  16752. # Check whether --enable-video-x11 was given.
  16753. if test "${enable_video_x11+set}" = set; then :
  16754. enableval=$enable_video_x11;
  16755. else
  16756. enable_video_x11=yes
  16757. fi
  16758. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16759. case "$host" in
  16760. *-*-darwin*)
  16761. # This isn't necessary for X11, but fixes GLX detection
  16762. if test "x$x_includes" = xNONE && \
  16763. test "x$x_libraries" = xNONE && \
  16764. test -d /usr/X11R6/include && \
  16765. test -d /usr/X11R6/lib; then
  16766. x_includes="/usr/X11R6/include"
  16767. x_libraries="/usr/X11R6/lib"
  16768. fi
  16769. ;;
  16770. esac
  16771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16772. $as_echo_n "checking for X... " >&6; }
  16773. # Check whether --with-x was given.
  16774. if test "${with_x+set}" = set; then :
  16775. withval=$with_x;
  16776. fi
  16777. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16778. if test "x$with_x" = xno; then
  16779. # The user explicitly disabled X.
  16780. have_x=disabled
  16781. else
  16782. case $x_includes,$x_libraries in #(
  16783. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16784. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16785. $as_echo_n "(cached) " >&6
  16786. else
  16787. # One or both of the vars are not set, and there is no cached value.
  16788. ac_x_includes=no ac_x_libraries=no
  16789. rm -f -r conftest.dir
  16790. if mkdir conftest.dir; then
  16791. cd conftest.dir
  16792. cat >Imakefile <<'_ACEOF'
  16793. incroot:
  16794. @echo incroot='${INCROOT}'
  16795. usrlibdir:
  16796. @echo usrlibdir='${USRLIBDIR}'
  16797. libdir:
  16798. @echo libdir='${LIBDIR}'
  16799. _ACEOF
  16800. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16801. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16802. for ac_var in incroot usrlibdir libdir; do
  16803. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16804. done
  16805. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16806. for ac_extension in a so sl dylib la dll; do
  16807. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16808. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16809. ac_im_usrlibdir=$ac_im_libdir; break
  16810. fi
  16811. done
  16812. # Screen out bogus values from the imake configuration. They are
  16813. # bogus both because they are the default anyway, and because
  16814. # using them would break gcc on systems where it needs fixed includes.
  16815. case $ac_im_incroot in
  16816. /usr/include) ac_x_includes= ;;
  16817. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16818. esac
  16819. case $ac_im_usrlibdir in
  16820. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16821. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16822. esac
  16823. fi
  16824. cd ..
  16825. rm -f -r conftest.dir
  16826. fi
  16827. # Standard set of common directories for X headers.
  16828. # Check X11 before X11Rn because it is often a symlink to the current release.
  16829. ac_x_header_dirs='
  16830. /usr/X11/include
  16831. /usr/X11R7/include
  16832. /usr/X11R6/include
  16833. /usr/X11R5/include
  16834. /usr/X11R4/include
  16835. /usr/include/X11
  16836. /usr/include/X11R7
  16837. /usr/include/X11R6
  16838. /usr/include/X11R5
  16839. /usr/include/X11R4
  16840. /usr/local/X11/include
  16841. /usr/local/X11R7/include
  16842. /usr/local/X11R6/include
  16843. /usr/local/X11R5/include
  16844. /usr/local/X11R4/include
  16845. /usr/local/include/X11
  16846. /usr/local/include/X11R7
  16847. /usr/local/include/X11R6
  16848. /usr/local/include/X11R5
  16849. /usr/local/include/X11R4
  16850. /usr/X386/include
  16851. /usr/x386/include
  16852. /usr/XFree86/include/X11
  16853. /usr/include
  16854. /usr/local/include
  16855. /usr/unsupported/include
  16856. /usr/athena/include
  16857. /usr/local/x11r5/include
  16858. /usr/lpp/Xamples/include
  16859. /usr/openwin/include
  16860. /usr/openwin/share/include'
  16861. if test "$ac_x_includes" = no; then
  16862. # Guess where to find include files, by looking for Xlib.h.
  16863. # First, try using that file with no special directory specified.
  16864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16865. /* end confdefs.h. */
  16866. #include <X11/Xlib.h>
  16867. _ACEOF
  16868. if ac_fn_c_try_cpp "$LINENO"; then :
  16869. # We can compile using X headers with no special include directory.
  16870. ac_x_includes=
  16871. else
  16872. for ac_dir in $ac_x_header_dirs; do
  16873. if test -r "$ac_dir/X11/Xlib.h"; then
  16874. ac_x_includes=$ac_dir
  16875. break
  16876. fi
  16877. done
  16878. fi
  16879. rm -f conftest.err conftest.i conftest.$ac_ext
  16880. fi # $ac_x_includes = no
  16881. if test "$ac_x_libraries" = no; then
  16882. # Check for the libraries.
  16883. # See if we find them without any special options.
  16884. # Don't add to $LIBS permanently.
  16885. ac_save_LIBS=$LIBS
  16886. LIBS="-lX11 $LIBS"
  16887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16888. /* end confdefs.h. */
  16889. #include <X11/Xlib.h>
  16890. int
  16891. main ()
  16892. {
  16893. XrmInitialize ()
  16894. ;
  16895. return 0;
  16896. }
  16897. _ACEOF
  16898. if ac_fn_c_try_link "$LINENO"; then :
  16899. LIBS=$ac_save_LIBS
  16900. # We can link X programs with no special library path.
  16901. ac_x_libraries=
  16902. else
  16903. LIBS=$ac_save_LIBS
  16904. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16905. do
  16906. # Don't even attempt the hair of trying to link an X program!
  16907. for ac_extension in a so sl dylib la dll; do
  16908. if test -r "$ac_dir/libX11.$ac_extension"; then
  16909. ac_x_libraries=$ac_dir
  16910. break 2
  16911. fi
  16912. done
  16913. done
  16914. fi
  16915. rm -f core conftest.err conftest.$ac_objext \
  16916. conftest$ac_exeext conftest.$ac_ext
  16917. fi # $ac_x_libraries = no
  16918. case $ac_x_includes,$ac_x_libraries in #(
  16919. no,* | *,no | *\'*)
  16920. # Didn't find X, or a directory has "'" in its name.
  16921. ac_cv_have_x="have_x=no";; #(
  16922. *)
  16923. # Record where we found X for the cache.
  16924. ac_cv_have_x="have_x=yes\
  16925. ac_x_includes='$ac_x_includes'\
  16926. ac_x_libraries='$ac_x_libraries'"
  16927. esac
  16928. fi
  16929. ;; #(
  16930. *) have_x=yes;;
  16931. esac
  16932. eval "$ac_cv_have_x"
  16933. fi # $with_x != no
  16934. if test "$have_x" != yes; then
  16935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16936. $as_echo "$have_x" >&6; }
  16937. no_x=yes
  16938. else
  16939. # If each of the values was on the command line, it overrides each guess.
  16940. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16941. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16942. # Update the cache value to reflect the command line values.
  16943. ac_cv_have_x="have_x=yes\
  16944. ac_x_includes='$x_includes'\
  16945. ac_x_libraries='$x_libraries'"
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16947. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16948. fi
  16949. if test "$no_x" = yes; then
  16950. # Not all programs may use this symbol, but it does not hurt to define it.
  16951. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16952. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16953. else
  16954. if test -n "$x_includes"; then
  16955. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16956. fi
  16957. # It would also be nice to do this for all -L options, not just this one.
  16958. if test -n "$x_libraries"; then
  16959. X_LIBS="$X_LIBS -L$x_libraries"
  16960. # For Solaris; some versions of Sun CC require a space after -R and
  16961. # others require no space. Words are not sufficient . . . .
  16962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16963. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16964. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16965. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16966. ac_c_werror_flag=yes
  16967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16968. /* end confdefs.h. */
  16969. int
  16970. main ()
  16971. {
  16972. ;
  16973. return 0;
  16974. }
  16975. _ACEOF
  16976. if ac_fn_c_try_link "$LINENO"; then :
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16978. $as_echo "no" >&6; }
  16979. X_LIBS="$X_LIBS -R$x_libraries"
  16980. else
  16981. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16983. /* end confdefs.h. */
  16984. int
  16985. main ()
  16986. {
  16987. ;
  16988. return 0;
  16989. }
  16990. _ACEOF
  16991. if ac_fn_c_try_link "$LINENO"; then :
  16992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16993. $as_echo "yes" >&6; }
  16994. X_LIBS="$X_LIBS -R $x_libraries"
  16995. else
  16996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16997. $as_echo "neither works" >&6; }
  16998. fi
  16999. rm -f core conftest.err conftest.$ac_objext \
  17000. conftest$ac_exeext conftest.$ac_ext
  17001. fi
  17002. rm -f core conftest.err conftest.$ac_objext \
  17003. conftest$ac_exeext conftest.$ac_ext
  17004. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17005. LIBS=$ac_xsave_LIBS
  17006. fi
  17007. # Check for system-dependent libraries X programs must link with.
  17008. # Do this before checking for the system-independent R6 libraries
  17009. # (-lICE), since we may need -lsocket or whatever for X linking.
  17010. if test "$ISC" = yes; then
  17011. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17012. else
  17013. # Martyn Johnson says this is needed for Ultrix, if the X
  17014. # libraries were built with DECnet support. And Karl Berry says
  17015. # the Alpha needs dnet_stub (dnet does not exist).
  17016. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17018. /* end confdefs.h. */
  17019. /* Override any GCC internal prototype to avoid an error.
  17020. Use char because int might match the return type of a GCC
  17021. builtin and then its argument prototype would still apply. */
  17022. #ifdef __cplusplus
  17023. extern "C"
  17024. #endif
  17025. char XOpenDisplay ();
  17026. int
  17027. main ()
  17028. {
  17029. return XOpenDisplay ();
  17030. ;
  17031. return 0;
  17032. }
  17033. _ACEOF
  17034. if ac_fn_c_try_link "$LINENO"; then :
  17035. else
  17036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17037. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17038. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17039. $as_echo_n "(cached) " >&6
  17040. else
  17041. ac_check_lib_save_LIBS=$LIBS
  17042. LIBS="-ldnet $LIBS"
  17043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17044. /* end confdefs.h. */
  17045. /* Override any GCC internal prototype to avoid an error.
  17046. Use char because int might match the return type of a GCC
  17047. builtin and then its argument prototype would still apply. */
  17048. #ifdef __cplusplus
  17049. extern "C"
  17050. #endif
  17051. char dnet_ntoa ();
  17052. int
  17053. main ()
  17054. {
  17055. return dnet_ntoa ();
  17056. ;
  17057. return 0;
  17058. }
  17059. _ACEOF
  17060. if ac_fn_c_try_link "$LINENO"; then :
  17061. ac_cv_lib_dnet_dnet_ntoa=yes
  17062. else
  17063. ac_cv_lib_dnet_dnet_ntoa=no
  17064. fi
  17065. rm -f core conftest.err conftest.$ac_objext \
  17066. conftest$ac_exeext conftest.$ac_ext
  17067. LIBS=$ac_check_lib_save_LIBS
  17068. fi
  17069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17070. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17071. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17072. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17073. fi
  17074. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17076. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17077. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17078. $as_echo_n "(cached) " >&6
  17079. else
  17080. ac_check_lib_save_LIBS=$LIBS
  17081. LIBS="-ldnet_stub $LIBS"
  17082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17083. /* end confdefs.h. */
  17084. /* Override any GCC internal prototype to avoid an error.
  17085. Use char because int might match the return type of a GCC
  17086. builtin and then its argument prototype would still apply. */
  17087. #ifdef __cplusplus
  17088. extern "C"
  17089. #endif
  17090. char dnet_ntoa ();
  17091. int
  17092. main ()
  17093. {
  17094. return dnet_ntoa ();
  17095. ;
  17096. return 0;
  17097. }
  17098. _ACEOF
  17099. if ac_fn_c_try_link "$LINENO"; then :
  17100. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17101. else
  17102. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17103. fi
  17104. rm -f core conftest.err conftest.$ac_objext \
  17105. conftest$ac_exeext conftest.$ac_ext
  17106. LIBS=$ac_check_lib_save_LIBS
  17107. fi
  17108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17109. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17110. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17111. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17112. fi
  17113. fi
  17114. fi
  17115. rm -f core conftest.err conftest.$ac_objext \
  17116. conftest$ac_exeext conftest.$ac_ext
  17117. LIBS="$ac_xsave_LIBS"
  17118. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17119. # to get the SysV transport functions.
  17120. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17121. # needs -lnsl.
  17122. # The nsl library prevents programs from opening the X display
  17123. # on Irix 5.2, according to T.E. Dickey.
  17124. # The functions gethostbyname, getservbyname, and inet_addr are
  17125. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17126. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17127. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17128. fi
  17129. if test $ac_cv_func_gethostbyname = no; then
  17130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17131. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17132. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17133. $as_echo_n "(cached) " >&6
  17134. else
  17135. ac_check_lib_save_LIBS=$LIBS
  17136. LIBS="-lnsl $LIBS"
  17137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17138. /* end confdefs.h. */
  17139. /* Override any GCC internal prototype to avoid an error.
  17140. Use char because int might match the return type of a GCC
  17141. builtin and then its argument prototype would still apply. */
  17142. #ifdef __cplusplus
  17143. extern "C"
  17144. #endif
  17145. char gethostbyname ();
  17146. int
  17147. main ()
  17148. {
  17149. return gethostbyname ();
  17150. ;
  17151. return 0;
  17152. }
  17153. _ACEOF
  17154. if ac_fn_c_try_link "$LINENO"; then :
  17155. ac_cv_lib_nsl_gethostbyname=yes
  17156. else
  17157. ac_cv_lib_nsl_gethostbyname=no
  17158. fi
  17159. rm -f core conftest.err conftest.$ac_objext \
  17160. conftest$ac_exeext conftest.$ac_ext
  17161. LIBS=$ac_check_lib_save_LIBS
  17162. fi
  17163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17164. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17165. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17166. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17167. fi
  17168. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17170. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17171. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17172. $as_echo_n "(cached) " >&6
  17173. else
  17174. ac_check_lib_save_LIBS=$LIBS
  17175. LIBS="-lbsd $LIBS"
  17176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17177. /* end confdefs.h. */
  17178. /* Override any GCC internal prototype to avoid an error.
  17179. Use char because int might match the return type of a GCC
  17180. builtin and then its argument prototype would still apply. */
  17181. #ifdef __cplusplus
  17182. extern "C"
  17183. #endif
  17184. char gethostbyname ();
  17185. int
  17186. main ()
  17187. {
  17188. return gethostbyname ();
  17189. ;
  17190. return 0;
  17191. }
  17192. _ACEOF
  17193. if ac_fn_c_try_link "$LINENO"; then :
  17194. ac_cv_lib_bsd_gethostbyname=yes
  17195. else
  17196. ac_cv_lib_bsd_gethostbyname=no
  17197. fi
  17198. rm -f core conftest.err conftest.$ac_objext \
  17199. conftest$ac_exeext conftest.$ac_ext
  17200. LIBS=$ac_check_lib_save_LIBS
  17201. fi
  17202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17203. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17204. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17205. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17206. fi
  17207. fi
  17208. fi
  17209. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17210. # socket/setsockopt and other routines are undefined under SCO ODT
  17211. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17212. # on later versions), says Simon Leinen: it contains gethostby*
  17213. # variants that don't use the name server (or something). -lsocket
  17214. # must be given before -lnsl if both are needed. We assume that
  17215. # if connect needs -lnsl, so does gethostbyname.
  17216. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17217. if test "x$ac_cv_func_connect" = xyes; then :
  17218. fi
  17219. if test $ac_cv_func_connect = no; then
  17220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17221. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17222. if ${ac_cv_lib_socket_connect+:} false; then :
  17223. $as_echo_n "(cached) " >&6
  17224. else
  17225. ac_check_lib_save_LIBS=$LIBS
  17226. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17228. /* end confdefs.h. */
  17229. /* Override any GCC internal prototype to avoid an error.
  17230. Use char because int might match the return type of a GCC
  17231. builtin and then its argument prototype would still apply. */
  17232. #ifdef __cplusplus
  17233. extern "C"
  17234. #endif
  17235. char connect ();
  17236. int
  17237. main ()
  17238. {
  17239. return connect ();
  17240. ;
  17241. return 0;
  17242. }
  17243. _ACEOF
  17244. if ac_fn_c_try_link "$LINENO"; then :
  17245. ac_cv_lib_socket_connect=yes
  17246. else
  17247. ac_cv_lib_socket_connect=no
  17248. fi
  17249. rm -f core conftest.err conftest.$ac_objext \
  17250. conftest$ac_exeext conftest.$ac_ext
  17251. LIBS=$ac_check_lib_save_LIBS
  17252. fi
  17253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17254. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17255. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17256. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17257. fi
  17258. fi
  17259. # Guillermo Gomez says -lposix is necessary on A/UX.
  17260. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17261. if test "x$ac_cv_func_remove" = xyes; then :
  17262. fi
  17263. if test $ac_cv_func_remove = no; then
  17264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17265. $as_echo_n "checking for remove in -lposix... " >&6; }
  17266. if ${ac_cv_lib_posix_remove+:} false; then :
  17267. $as_echo_n "(cached) " >&6
  17268. else
  17269. ac_check_lib_save_LIBS=$LIBS
  17270. LIBS="-lposix $LIBS"
  17271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17272. /* end confdefs.h. */
  17273. /* Override any GCC internal prototype to avoid an error.
  17274. Use char because int might match the return type of a GCC
  17275. builtin and then its argument prototype would still apply. */
  17276. #ifdef __cplusplus
  17277. extern "C"
  17278. #endif
  17279. char remove ();
  17280. int
  17281. main ()
  17282. {
  17283. return remove ();
  17284. ;
  17285. return 0;
  17286. }
  17287. _ACEOF
  17288. if ac_fn_c_try_link "$LINENO"; then :
  17289. ac_cv_lib_posix_remove=yes
  17290. else
  17291. ac_cv_lib_posix_remove=no
  17292. fi
  17293. rm -f core conftest.err conftest.$ac_objext \
  17294. conftest$ac_exeext conftest.$ac_ext
  17295. LIBS=$ac_check_lib_save_LIBS
  17296. fi
  17297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17298. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17299. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17300. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17301. fi
  17302. fi
  17303. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17304. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17305. if test "x$ac_cv_func_shmat" = xyes; then :
  17306. fi
  17307. if test $ac_cv_func_shmat = no; then
  17308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17309. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17310. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17311. $as_echo_n "(cached) " >&6
  17312. else
  17313. ac_check_lib_save_LIBS=$LIBS
  17314. LIBS="-lipc $LIBS"
  17315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17316. /* end confdefs.h. */
  17317. /* Override any GCC internal prototype to avoid an error.
  17318. Use char because int might match the return type of a GCC
  17319. builtin and then its argument prototype would still apply. */
  17320. #ifdef __cplusplus
  17321. extern "C"
  17322. #endif
  17323. char shmat ();
  17324. int
  17325. main ()
  17326. {
  17327. return shmat ();
  17328. ;
  17329. return 0;
  17330. }
  17331. _ACEOF
  17332. if ac_fn_c_try_link "$LINENO"; then :
  17333. ac_cv_lib_ipc_shmat=yes
  17334. else
  17335. ac_cv_lib_ipc_shmat=no
  17336. fi
  17337. rm -f core conftest.err conftest.$ac_objext \
  17338. conftest$ac_exeext conftest.$ac_ext
  17339. LIBS=$ac_check_lib_save_LIBS
  17340. fi
  17341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17342. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17343. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17344. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17345. fi
  17346. fi
  17347. fi
  17348. # Check for libraries that X11R6 Xt/Xaw programs need.
  17349. ac_save_LDFLAGS=$LDFLAGS
  17350. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17351. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17352. # check for ICE first), but we must link in the order -lSM -lICE or
  17353. # we get undefined symbols. So assume we have SM if we have ICE.
  17354. # These have to be linked with before -lX11, unlike the other
  17355. # libraries we check for below, so use a different variable.
  17356. # John Interrante, Karl Berry
  17357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17358. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17359. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17360. $as_echo_n "(cached) " >&6
  17361. else
  17362. ac_check_lib_save_LIBS=$LIBS
  17363. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17365. /* end confdefs.h. */
  17366. /* Override any GCC internal prototype to avoid an error.
  17367. Use char because int might match the return type of a GCC
  17368. builtin and then its argument prototype would still apply. */
  17369. #ifdef __cplusplus
  17370. extern "C"
  17371. #endif
  17372. char IceConnectionNumber ();
  17373. int
  17374. main ()
  17375. {
  17376. return IceConnectionNumber ();
  17377. ;
  17378. return 0;
  17379. }
  17380. _ACEOF
  17381. if ac_fn_c_try_link "$LINENO"; then :
  17382. ac_cv_lib_ICE_IceConnectionNumber=yes
  17383. else
  17384. ac_cv_lib_ICE_IceConnectionNumber=no
  17385. fi
  17386. rm -f core conftest.err conftest.$ac_objext \
  17387. conftest$ac_exeext conftest.$ac_ext
  17388. LIBS=$ac_check_lib_save_LIBS
  17389. fi
  17390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17391. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17392. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17393. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17394. fi
  17395. LDFLAGS=$ac_save_LDFLAGS
  17396. fi
  17397. if test x$have_x = xyes; then
  17398. # Check whether --enable-x11-shared was given.
  17399. if test "${enable_x11_shared+set}" = set; then :
  17400. enableval=$enable_x11_shared;
  17401. else
  17402. enable_x11_shared=maybe
  17403. fi
  17404. case "$host" in
  17405. *-*-darwin*)
  17406. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17407. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17408. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17409. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17410. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17411. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17412. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17413. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17414. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17415. ;;
  17416. *-*-openbsd*)
  17417. x11_lib='libX11.so'
  17418. x11ext_lib='libXext.so'
  17419. xcursor_lib='libXcursor.so'
  17420. xinerama_lib='libXinerama.so'
  17421. xinput_lib='libXi.so'
  17422. xrandr_lib='libXrandr.so'
  17423. xrender_lib='libXrender.so'
  17424. xss_lib='libXss.so'
  17425. xvidmode_lib='libXxf86vm.so'
  17426. ;;
  17427. *)
  17428. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17429. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17430. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17431. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17432. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17433. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17434. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17435. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17436. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17437. ;;
  17438. esac
  17439. if test x$ac_cv_func_shmat != xyes; then
  17440. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17441. fi
  17442. CFLAGS="$CFLAGS $X_CFLAGS"
  17443. LDFLAGS="$LDFLAGS $X_LIBS"
  17444. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17445. #include <X11/Xproto.h>
  17446. "
  17447. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17448. have_xext_h_hdr=yes
  17449. else
  17450. have_xext_h_hdr=no
  17451. fi
  17452. if test x$have_xext_h_hdr != xyes; then
  17453. as_fn_error $? "
  17454. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17455. " "$LINENO" 5
  17456. fi
  17457. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17458. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17459. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17460. # Needed so SDL applications can include SDL_syswm.h
  17461. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17462. if test x$enable_x11_shared = xmaybe; then
  17463. enable_x11_shared=yes
  17464. fi
  17465. if test x$have_loadso != xyes && \
  17466. test x$enable_x11_shared = xyes; then
  17467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17468. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17469. enable_x11_shared=no
  17470. fi
  17471. if test x$have_loadso = xyes && \
  17472. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17473. echo "-- dynamic libX11 -> $x11_lib"
  17474. echo "-- dynamic libX11ext -> $x11ext_lib"
  17475. cat >>confdefs.h <<_ACEOF
  17476. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17477. _ACEOF
  17478. cat >>confdefs.h <<_ACEOF
  17479. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17480. _ACEOF
  17481. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17482. else
  17483. enable_x11_shared=no
  17484. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17485. SUMMARY_video="${SUMMARY_video} x11"
  17486. fi
  17487. have_video=yes
  17488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17489. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17490. have_const_param_XextAddDisplay=no
  17491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17492. /* end confdefs.h. */
  17493. #include <X11/Xlib.h>
  17494. #include <X11/Xproto.h>
  17495. #include <X11/extensions/Xext.h>
  17496. #include <X11/extensions/extutil.h>
  17497. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17498. int
  17499. main ()
  17500. {
  17501. ;
  17502. return 0;
  17503. }
  17504. _ACEOF
  17505. if ac_fn_c_try_compile "$LINENO"; then :
  17506. have_const_param_XextAddDisplay=yes
  17507. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17508. fi
  17509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17511. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17513. $as_echo_n "checking for XGenericEvent... " >&6; }
  17514. have_XGenericEvent=no
  17515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17516. /* end confdefs.h. */
  17517. #include <X11/Xlib.h>
  17518. int
  17519. main ()
  17520. {
  17521. Display *display;
  17522. XEvent event;
  17523. XGenericEventCookie *cookie = &event.xcookie;
  17524. XNextEvent(display, &event);
  17525. XGetEventData(display, cookie);
  17526. XFreeEventData(display, cookie);
  17527. ;
  17528. return 0;
  17529. }
  17530. _ACEOF
  17531. if ac_fn_c_try_compile "$LINENO"; then :
  17532. have_XGenericEvent=yes
  17533. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17534. fi
  17535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17537. $as_echo "$have_XGenericEvent" >&6; }
  17538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17539. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17540. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17541. $as_echo_n "(cached) " >&6
  17542. else
  17543. ac_check_lib_save_LIBS=$LIBS
  17544. LIBS="-lX11 $LIBS"
  17545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17546. /* end confdefs.h. */
  17547. /* Override any GCC internal prototype to avoid an error.
  17548. Use char because int might match the return type of a GCC
  17549. builtin and then its argument prototype would still apply. */
  17550. #ifdef __cplusplus
  17551. extern "C"
  17552. #endif
  17553. char XkbKeycodeToKeysym ();
  17554. int
  17555. main ()
  17556. {
  17557. return XkbKeycodeToKeysym ();
  17558. ;
  17559. return 0;
  17560. }
  17561. _ACEOF
  17562. if ac_fn_c_try_link "$LINENO"; then :
  17563. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17564. else
  17565. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17566. fi
  17567. rm -f core conftest.err conftest.$ac_objext \
  17568. conftest$ac_exeext conftest.$ac_ext
  17569. LIBS=$ac_check_lib_save_LIBS
  17570. fi
  17571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17572. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17573. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17574. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17575. fi
  17576. # Check whether --enable-video-x11-xcursor was given.
  17577. if test "${enable_video_x11_xcursor+set}" = set; then :
  17578. enableval=$enable_video_x11_xcursor;
  17579. else
  17580. enable_video_x11_xcursor=yes
  17581. fi
  17582. if test x$enable_video_x11_xcursor = xyes; then
  17583. definitely_enable_video_x11_xcursor=no
  17584. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17585. "
  17586. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17587. have_xcursor_h_hdr=yes
  17588. else
  17589. have_xcursor_h_hdr=no
  17590. fi
  17591. if test x$have_xcursor_h_hdr = xyes; then
  17592. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17593. echo "-- dynamic libXcursor -> $xcursor_lib"
  17594. cat >>confdefs.h <<_ACEOF
  17595. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17596. _ACEOF
  17597. definitely_enable_video_x11_xcursor=yes
  17598. else
  17599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17600. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17601. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17602. $as_echo_n "(cached) " >&6
  17603. else
  17604. ac_check_lib_save_LIBS=$LIBS
  17605. LIBS="-lXcursor $LIBS"
  17606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17607. /* end confdefs.h. */
  17608. /* Override any GCC internal prototype to avoid an error.
  17609. Use char because int might match the return type of a GCC
  17610. builtin and then its argument prototype would still apply. */
  17611. #ifdef __cplusplus
  17612. extern "C"
  17613. #endif
  17614. char XcursorImageCreate ();
  17615. int
  17616. main ()
  17617. {
  17618. return XcursorImageCreate ();
  17619. ;
  17620. return 0;
  17621. }
  17622. _ACEOF
  17623. if ac_fn_c_try_link "$LINENO"; then :
  17624. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17625. else
  17626. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17627. fi
  17628. rm -f core conftest.err conftest.$ac_objext \
  17629. conftest$ac_exeext conftest.$ac_ext
  17630. LIBS=$ac_check_lib_save_LIBS
  17631. fi
  17632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17633. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17634. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17635. have_xcursor_lib=yes
  17636. fi
  17637. if test x$have_xcursor_lib = xyes ; then
  17638. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17639. definitely_enable_video_x11_xcursor=yes
  17640. fi
  17641. fi
  17642. fi
  17643. fi
  17644. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17645. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17646. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17647. fi
  17648. # Check whether --enable-video-x11-xdbe was given.
  17649. if test "${enable_video_x11_xdbe+set}" = set; then :
  17650. enableval=$enable_video_x11_xdbe;
  17651. else
  17652. enable_video_x11_xdbe=yes
  17653. fi
  17654. if test x$enable_video_x11_xdbe = xyes; then
  17655. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17656. "
  17657. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17658. have_dbe_h_hdr=yes
  17659. else
  17660. have_dbe_h_hdr=no
  17661. fi
  17662. if test x$have_dbe_h_hdr = xyes; then
  17663. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17664. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17665. fi
  17666. fi
  17667. # Check whether --enable-video-x11-xinerama was given.
  17668. if test "${enable_video_x11_xinerama+set}" = set; then :
  17669. enableval=$enable_video_x11_xinerama;
  17670. else
  17671. enable_video_x11_xinerama=yes
  17672. fi
  17673. if test x$enable_video_x11_xinerama = xyes; then
  17674. definitely_enable_video_x11_xinerama=no
  17675. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17676. "
  17677. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17678. have_xinerama_h_hdr=yes
  17679. else
  17680. have_xinerama_h_hdr=no
  17681. fi
  17682. if test x$have_xinerama_h_hdr = xyes; then
  17683. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17684. echo "-- dynamic libXinerama -> $xinerama_lib"
  17685. cat >>confdefs.h <<_ACEOF
  17686. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17687. _ACEOF
  17688. definitely_enable_video_x11_xinerama=yes
  17689. else
  17690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17691. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17692. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17693. $as_echo_n "(cached) " >&6
  17694. else
  17695. ac_check_lib_save_LIBS=$LIBS
  17696. LIBS="-lXinerama $LIBS"
  17697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17698. /* end confdefs.h. */
  17699. /* Override any GCC internal prototype to avoid an error.
  17700. Use char because int might match the return type of a GCC
  17701. builtin and then its argument prototype would still apply. */
  17702. #ifdef __cplusplus
  17703. extern "C"
  17704. #endif
  17705. char XineramaQueryExtension ();
  17706. int
  17707. main ()
  17708. {
  17709. return XineramaQueryExtension ();
  17710. ;
  17711. return 0;
  17712. }
  17713. _ACEOF
  17714. if ac_fn_c_try_link "$LINENO"; then :
  17715. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17716. else
  17717. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17718. fi
  17719. rm -f core conftest.err conftest.$ac_objext \
  17720. conftest$ac_exeext conftest.$ac_ext
  17721. LIBS=$ac_check_lib_save_LIBS
  17722. fi
  17723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17724. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17725. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17726. have_xinerama_lib=yes
  17727. fi
  17728. if test x$have_xinerama_lib = xyes ; then
  17729. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17730. definitely_enable_video_x11_xinerama=yes
  17731. fi
  17732. fi
  17733. fi
  17734. fi
  17735. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17736. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17737. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17738. fi
  17739. # Check whether --enable-video-x11-xinput was given.
  17740. if test "${enable_video_x11_xinput+set}" = set; then :
  17741. enableval=$enable_video_x11_xinput;
  17742. else
  17743. enable_video_x11_xinput=yes
  17744. fi
  17745. if test x$enable_video_x11_xinput = xyes; then
  17746. definitely_enable_video_x11_xinput=no
  17747. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17748. "
  17749. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17750. have_xinput_h_hdr=yes
  17751. else
  17752. have_xinput_h_hdr=no
  17753. fi
  17754. if test x$have_xinput_h_hdr = xyes; then
  17755. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17756. echo "-- dynamic libXi -> $xinput_lib"
  17757. cat >>confdefs.h <<_ACEOF
  17758. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17759. _ACEOF
  17760. definitely_enable_video_x11_xinput=yes
  17761. else
  17762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17763. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17764. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17765. $as_echo_n "(cached) " >&6
  17766. else
  17767. ac_check_lib_save_LIBS=$LIBS
  17768. LIBS="-lXi $LIBS"
  17769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17770. /* end confdefs.h. */
  17771. /* Override any GCC internal prototype to avoid an error.
  17772. Use char because int might match the return type of a GCC
  17773. builtin and then its argument prototype would still apply. */
  17774. #ifdef __cplusplus
  17775. extern "C"
  17776. #endif
  17777. char XOpenDevice ();
  17778. int
  17779. main ()
  17780. {
  17781. return XOpenDevice ();
  17782. ;
  17783. return 0;
  17784. }
  17785. _ACEOF
  17786. if ac_fn_c_try_link "$LINENO"; then :
  17787. ac_cv_lib_Xi_XOpenDevice=yes
  17788. else
  17789. ac_cv_lib_Xi_XOpenDevice=no
  17790. fi
  17791. rm -f core conftest.err conftest.$ac_objext \
  17792. conftest$ac_exeext conftest.$ac_ext
  17793. LIBS=$ac_check_lib_save_LIBS
  17794. fi
  17795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17796. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17797. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17798. have_xinput_lib=yes
  17799. fi
  17800. if test x$have_xinput_lib = xyes ; then
  17801. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17802. definitely_enable_video_x11_xinput=yes
  17803. fi
  17804. fi
  17805. fi
  17806. fi
  17807. if test x$definitely_enable_video_x11_xinput = xyes; then
  17808. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17809. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17811. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17812. have_xinput2_multitouch=no
  17813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17814. /* end confdefs.h. */
  17815. #include <X11/Xlib.h>
  17816. #include <X11/Xproto.h>
  17817. #include <X11/extensions/XInput2.h>
  17818. int
  17819. main ()
  17820. {
  17821. int event_type = XI_TouchBegin;
  17822. XITouchClassInfo *t;
  17823. ;
  17824. return 0;
  17825. }
  17826. _ACEOF
  17827. if ac_fn_c_try_compile "$LINENO"; then :
  17828. have_xinput2_multitouch=yes
  17829. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17830. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17831. fi
  17832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17834. $as_echo "$have_xinput2_multitouch" >&6; }
  17835. fi
  17836. # Check whether --enable-video-x11-xrandr was given.
  17837. if test "${enable_video_x11_xrandr+set}" = set; then :
  17838. enableval=$enable_video_x11_xrandr;
  17839. else
  17840. enable_video_x11_xrandr=yes
  17841. fi
  17842. if test x$enable_video_x11_xrandr = xyes; then
  17843. definitely_enable_video_x11_xrandr=no
  17844. have_xrandr_h_hdr=no
  17845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17846. /* end confdefs.h. */
  17847. #include <X11/Xlib.h>
  17848. #include <X11/extensions/Xrandr.h>
  17849. int
  17850. main ()
  17851. {
  17852. XRRScreenResources *res = NULL;
  17853. ;
  17854. return 0;
  17855. }
  17856. _ACEOF
  17857. if ac_fn_c_try_compile "$LINENO"; then :
  17858. have_xrandr_h_hdr=yes
  17859. fi
  17860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17861. if test x$have_xrandr_h_hdr = xyes; then
  17862. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17863. echo "-- dynamic libXrandr -> $xrandr_lib"
  17864. cat >>confdefs.h <<_ACEOF
  17865. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17866. _ACEOF
  17867. definitely_enable_video_x11_xrandr=yes
  17868. else
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17870. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17871. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17872. $as_echo_n "(cached) " >&6
  17873. else
  17874. ac_check_lib_save_LIBS=$LIBS
  17875. LIBS="-lXrandr $LIBS"
  17876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17877. /* end confdefs.h. */
  17878. /* Override any GCC internal prototype to avoid an error.
  17879. Use char because int might match the return type of a GCC
  17880. builtin and then its argument prototype would still apply. */
  17881. #ifdef __cplusplus
  17882. extern "C"
  17883. #endif
  17884. char XRRQueryExtension ();
  17885. int
  17886. main ()
  17887. {
  17888. return XRRQueryExtension ();
  17889. ;
  17890. return 0;
  17891. }
  17892. _ACEOF
  17893. if ac_fn_c_try_link "$LINENO"; then :
  17894. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17895. else
  17896. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17897. fi
  17898. rm -f core conftest.err conftest.$ac_objext \
  17899. conftest$ac_exeext conftest.$ac_ext
  17900. LIBS=$ac_check_lib_save_LIBS
  17901. fi
  17902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17903. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17904. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17905. have_xrandr_lib=yes
  17906. fi
  17907. if test x$have_xrandr_lib = xyes ; then
  17908. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17909. definitely_enable_video_x11_xrandr=yes
  17910. fi
  17911. fi
  17912. fi
  17913. fi
  17914. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17915. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17916. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17917. fi
  17918. # Check whether --enable-video-x11-scrnsaver was given.
  17919. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17920. enableval=$enable_video_x11_scrnsaver;
  17921. else
  17922. enable_video_x11_scrnsaver=yes
  17923. fi
  17924. if test x$enable_video_x11_scrnsaver = xyes; then
  17925. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17926. "
  17927. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17928. have_scrnsaver_h_hdr=yes
  17929. else
  17930. have_scrnsaver_h_hdr=no
  17931. fi
  17932. if test x$have_scrnsaver_h_hdr = xyes; then
  17933. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17934. echo "-- dynamic libXss -> $xss_lib"
  17935. cat >>confdefs.h <<_ACEOF
  17936. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17937. _ACEOF
  17938. definitely_enable_video_x11_scrnsaver=yes
  17939. else
  17940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17941. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17942. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17943. $as_echo_n "(cached) " >&6
  17944. else
  17945. ac_check_lib_save_LIBS=$LIBS
  17946. LIBS="-lXss $LIBS"
  17947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17948. /* end confdefs.h. */
  17949. /* Override any GCC internal prototype to avoid an error.
  17950. Use char because int might match the return type of a GCC
  17951. builtin and then its argument prototype would still apply. */
  17952. #ifdef __cplusplus
  17953. extern "C"
  17954. #endif
  17955. char XScreenSaverSuspend ();
  17956. int
  17957. main ()
  17958. {
  17959. return XScreenSaverSuspend ();
  17960. ;
  17961. return 0;
  17962. }
  17963. _ACEOF
  17964. if ac_fn_c_try_link "$LINENO"; then :
  17965. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17966. else
  17967. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17968. fi
  17969. rm -f core conftest.err conftest.$ac_objext \
  17970. conftest$ac_exeext conftest.$ac_ext
  17971. LIBS=$ac_check_lib_save_LIBS
  17972. fi
  17973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17974. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17975. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17976. have_xss_lib=yes
  17977. fi
  17978. if test x$have_xss_lib = xyes ; then
  17979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17980. definitely_enable_video_x11_scrnsaver=yes
  17981. fi
  17982. fi
  17983. fi
  17984. fi
  17985. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17986. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17987. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17988. fi
  17989. # Check whether --enable-video-x11-xshape was given.
  17990. if test "${enable_video_x11_xshape+set}" = set; then :
  17991. enableval=$enable_video_x11_xshape;
  17992. else
  17993. enable_video_x11_xshape=yes
  17994. fi
  17995. if test x$enable_video_x11_xshape = xyes; then
  17996. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17997. "
  17998. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17999. have_shape_h_hdr=yes
  18000. else
  18001. have_shape_h_hdr=no
  18002. fi
  18003. if test x$have_shape_h_hdr = xyes; then
  18004. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18005. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18006. fi
  18007. fi
  18008. # Check whether --enable-video-x11-vm was given.
  18009. if test "${enable_video_x11_vm+set}" = set; then :
  18010. enableval=$enable_video_x11_vm;
  18011. else
  18012. enable_video_x11_vm=yes
  18013. fi
  18014. if test x$enable_video_x11_vm = xyes; then
  18015. definitely_enable_video_x11_vm=no
  18016. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18017. "
  18018. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18019. have_vm_h_hdr=yes
  18020. else
  18021. have_vm_h_hdr=no
  18022. fi
  18023. if test x$have_vm_h_hdr = xyes; then
  18024. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18025. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18026. cat >>confdefs.h <<_ACEOF
  18027. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18028. _ACEOF
  18029. definitely_enable_video_x11_vm=yes
  18030. else
  18031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18032. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18033. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18034. $as_echo_n "(cached) " >&6
  18035. else
  18036. ac_check_lib_save_LIBS=$LIBS
  18037. LIBS="-lXxf86vm $LIBS"
  18038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18039. /* end confdefs.h. */
  18040. /* Override any GCC internal prototype to avoid an error.
  18041. Use char because int might match the return type of a GCC
  18042. builtin and then its argument prototype would still apply. */
  18043. #ifdef __cplusplus
  18044. extern "C"
  18045. #endif
  18046. char XF86VidModeQueryVersion ();
  18047. int
  18048. main ()
  18049. {
  18050. return XF86VidModeQueryVersion ();
  18051. ;
  18052. return 0;
  18053. }
  18054. _ACEOF
  18055. if ac_fn_c_try_link "$LINENO"; then :
  18056. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18057. else
  18058. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18059. fi
  18060. rm -f core conftest.err conftest.$ac_objext \
  18061. conftest$ac_exeext conftest.$ac_ext
  18062. LIBS=$ac_check_lib_save_LIBS
  18063. fi
  18064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18065. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18066. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18067. have_vm_lib=yes
  18068. fi
  18069. if test x$have_vm_lib = xyes ; then
  18070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18071. definitely_enable_video_x11_vm=yes
  18072. fi
  18073. fi
  18074. fi
  18075. fi
  18076. if test x$definitely_enable_video_x11_vm = xyes; then
  18077. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18078. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18079. fi
  18080. fi
  18081. fi
  18082. }
  18083. CheckVivanteVideo()
  18084. {
  18085. # Check whether --enable-video-vivante was given.
  18086. if test "${enable_video_vivante+set}" = set; then :
  18087. enableval=$enable_video_vivante;
  18088. else
  18089. enable_video_vivante=yes
  18090. fi
  18091. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18093. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18094. have_vivante_vdk=no
  18095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18096. /* end confdefs.h. */
  18097. #define LINUX
  18098. #define EGL_API_FB
  18099. #include <gc_vdk.h>
  18100. int
  18101. main ()
  18102. {
  18103. ;
  18104. return 0;
  18105. }
  18106. _ACEOF
  18107. if ac_fn_c_try_compile "$LINENO"; then :
  18108. have_vivante_vdk=yes
  18109. fi
  18110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18112. $as_echo "$have_vivante_vdk" >&6; }
  18113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18114. $as_echo_n "checking for Vivante FB API... " >&6; }
  18115. have_vivante_egl=no
  18116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18117. /* end confdefs.h. */
  18118. #define LINUX
  18119. #define EGL_API_FB
  18120. #include <EGL/eglvivante.h>
  18121. int
  18122. main ()
  18123. {
  18124. ;
  18125. return 0;
  18126. }
  18127. _ACEOF
  18128. if ac_fn_c_try_compile "$LINENO"; then :
  18129. have_vivante_egl=yes
  18130. fi
  18131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18133. $as_echo "$have_vivante_egl" >&6; }
  18134. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18135. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18136. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18137. if test x$have_vivante_vdk = xyes; then
  18138. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18140. fi
  18141. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18142. SUMMARY_video="${SUMMARY_video} vivante"
  18143. have_video=yes
  18144. fi
  18145. fi
  18146. }
  18147. CheckHaikuVideo()
  18148. {
  18149. if test x$enable_video = xyes; then
  18150. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18151. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18152. have_video=yes
  18153. SUMMARY_video="${SUMMARY_video} haiku"
  18154. fi
  18155. }
  18156. CheckCOCOA()
  18157. {
  18158. # Check whether --enable-video-cocoa was given.
  18159. if test "${enable_video_cocoa+set}" = set; then :
  18160. enableval=$enable_video_cocoa;
  18161. else
  18162. enable_video_cocoa=yes
  18163. fi
  18164. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18165. save_CFLAGS="$CFLAGS"
  18166. CFLAGS="$CFLAGS -x objective-c"
  18167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18168. $as_echo_n "checking for Cocoa framework... " >&6; }
  18169. have_cocoa=no
  18170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18171. /* end confdefs.h. */
  18172. #import <Cocoa/Cocoa.h>
  18173. int
  18174. main ()
  18175. {
  18176. ;
  18177. return 0;
  18178. }
  18179. _ACEOF
  18180. if ac_fn_c_try_compile "$LINENO"; then :
  18181. have_cocoa=yes
  18182. fi
  18183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18185. $as_echo "$have_cocoa" >&6; }
  18186. CFLAGS="$save_CFLAGS"
  18187. if test x$have_cocoa = xyes; then
  18188. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18189. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18190. SUMMARY_video="${SUMMARY_video} cocoa"
  18191. have_video=yes
  18192. fi
  18193. fi
  18194. }
  18195. CheckDirectFB()
  18196. {
  18197. # Check whether --enable-video-directfb was given.
  18198. if test "${enable_video_directfb+set}" = set; then :
  18199. enableval=$enable_video_directfb;
  18200. else
  18201. enable_video_directfb=no
  18202. fi
  18203. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18204. video_directfb=no
  18205. DIRECTFB_REQUIRED_VERSION=1.0.0
  18206. for ac_prog in directfb-config
  18207. do
  18208. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18209. set dummy $ac_prog; ac_word=$2
  18210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18211. $as_echo_n "checking for $ac_word... " >&6; }
  18212. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18213. $as_echo_n "(cached) " >&6
  18214. else
  18215. case $DIRECTFBCONFIG in
  18216. [\\/]* | ?:[\\/]*)
  18217. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18218. ;;
  18219. *)
  18220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18221. as_dummy="$prefix/bin:$PATH"
  18222. for as_dir in $as_dummy
  18223. do
  18224. IFS=$as_save_IFS
  18225. test -z "$as_dir" && as_dir=.
  18226. for ac_exec_ext in '' $ac_executable_extensions; do
  18227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18228. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18230. break 2
  18231. fi
  18232. done
  18233. done
  18234. IFS=$as_save_IFS
  18235. ;;
  18236. esac
  18237. fi
  18238. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18239. if test -n "$DIRECTFBCONFIG"; then
  18240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18241. $as_echo "$DIRECTFBCONFIG" >&6; }
  18242. else
  18243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18244. $as_echo "no" >&6; }
  18245. fi
  18246. test -n "$DIRECTFBCONFIG" && break
  18247. done
  18248. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18249. if test x$DIRECTFBCONFIG = xno; then
  18250. # Extract the first word of "pkg-config", so it can be a program name with args.
  18251. set dummy pkg-config; ac_word=$2
  18252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18253. $as_echo_n "checking for $ac_word... " >&6; }
  18254. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18255. $as_echo_n "(cached) " >&6
  18256. else
  18257. case $PKG_CONFIG in
  18258. [\\/]* | ?:[\\/]*)
  18259. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18260. ;;
  18261. *)
  18262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18263. for as_dir in $PATH
  18264. do
  18265. IFS=$as_save_IFS
  18266. test -z "$as_dir" && as_dir=.
  18267. for ac_exec_ext in '' $ac_executable_extensions; do
  18268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18269. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18271. break 2
  18272. fi
  18273. done
  18274. done
  18275. IFS=$as_save_IFS
  18276. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18277. ;;
  18278. esac
  18279. fi
  18280. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18281. if test -n "$PKG_CONFIG"; then
  18282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18283. $as_echo "$PKG_CONFIG" >&6; }
  18284. else
  18285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18286. $as_echo "no" >&6; }
  18287. fi
  18288. if test x$PKG_CONFIG != xno; then
  18289. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18290. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18291. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18292. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18293. video_directfb=yes
  18294. fi
  18295. fi
  18296. else
  18297. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18298. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18299. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18300. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18301. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18302. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18303. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18304. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18305. video_directfb=yes
  18306. fi
  18307. fi
  18308. if test x$video_directfb = xyes; then
  18309. # SuSE 11.1 installs directfb-config without directfb-devel
  18310. save_CPPFLAGS="$CPPFLAGS"
  18311. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18312. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18313. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18314. have_directfb_hdr=yes
  18315. else
  18316. have_directfb_hdr=no
  18317. fi
  18318. CPPFLAGS="$save_CPPFLAGS"
  18319. video_directfb=$have_directfb_hdr
  18320. fi
  18321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18322. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18324. $as_echo "$video_directfb" >&6; }
  18325. if test x$video_directfb = xyes; then
  18326. # Check whether --enable-directfb-shared was given.
  18327. if test "${enable_directfb_shared+set}" = set; then :
  18328. enableval=$enable_directfb_shared;
  18329. else
  18330. enable_directfb_shared=yes
  18331. fi
  18332. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18333. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18334. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18335. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18337. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18338. directfb_shared=no
  18339. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18340. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18341. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18342. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18343. if test x$have_loadso != xyes && \
  18344. test x$enable_directfb_shared = xyes; then
  18345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18346. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18347. fi
  18348. if test x$have_loadso = xyes && \
  18349. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18350. directfb_shared=yes
  18351. echo "-- $directfb_lib_spec -> $directfb_lib"
  18352. cat >>confdefs.h <<_ACEOF
  18353. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18354. _ACEOF
  18355. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18356. else
  18357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18358. SUMMARY_video="${SUMMARY_video} directfb"
  18359. fi
  18360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18361. $as_echo "$directfb_shared" >&6; }
  18362. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18363. have_video=yes
  18364. fi
  18365. fi
  18366. }
  18367. CheckKMSDRM()
  18368. {
  18369. # Check whether --enable-video-kmsdrm was given.
  18370. if test "${enable_video_kmsdrm+set}" = set; then :
  18371. enableval=$enable_video_kmsdrm;
  18372. else
  18373. enable_video_kmsdrm=no
  18374. fi
  18375. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18376. video_kmsdrm=no
  18377. libdrm_avail=no
  18378. libgbm_avail=no
  18379. LIBDRM_REQUIRED_VERSION=2.4.46
  18380. LIBGBM_REQUIRED_VERSION=9.0.0
  18381. # Extract the first word of "pkg-config", so it can be a program name with args.
  18382. set dummy pkg-config; ac_word=$2
  18383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18384. $as_echo_n "checking for $ac_word... " >&6; }
  18385. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18386. $as_echo_n "(cached) " >&6
  18387. else
  18388. case $PKG_CONFIG in
  18389. [\\/]* | ?:[\\/]*)
  18390. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18391. ;;
  18392. *)
  18393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18394. for as_dir in $PATH
  18395. do
  18396. IFS=$as_save_IFS
  18397. test -z "$as_dir" && as_dir=.
  18398. for ac_exec_ext in '' $ac_executable_extensions; do
  18399. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18400. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18402. break 2
  18403. fi
  18404. done
  18405. done
  18406. IFS=$as_save_IFS
  18407. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18408. ;;
  18409. esac
  18410. fi
  18411. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18412. if test -n "$PKG_CONFIG"; then
  18413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18414. $as_echo "$PKG_CONFIG" >&6; }
  18415. else
  18416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18417. $as_echo "no" >&6; }
  18418. fi
  18419. if test x$PKG_CONFIG != xno; then
  18420. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18421. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18422. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18423. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18424. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18425. libdrm_avail=yes
  18426. fi
  18427. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18428. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18429. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18430. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18431. libgbm_avail=yes
  18432. fi
  18433. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18434. video_kmsdrm=yes
  18435. fi
  18436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18437. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18439. $as_echo "$libdrm_avail" >&6; }
  18440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18441. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18443. $as_echo "$libgbm_avail" >&6; }
  18444. if test x$video_kmsdrm = xyes; then
  18445. # Check whether --enable-kmsdrm-shared was given.
  18446. if test "${enable_kmsdrm_shared+set}" = set; then :
  18447. enableval=$enable_kmsdrm_shared;
  18448. else
  18449. enable_kmsdrm_shared=yes
  18450. fi
  18451. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18452. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18453. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18455. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18456. kmsdrm_shared=no
  18457. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18458. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18459. if test x$have_loadso != xyes && \
  18460. test x$enable_kmsdrm_shared = xyes; then
  18461. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18462. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18463. fi
  18464. if test x$have_loadso = xyes && \
  18465. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18466. kmsdrm_shared=yes
  18467. cat >>confdefs.h <<_ACEOF
  18468. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18469. _ACEOF
  18470. cat >>confdefs.h <<_ACEOF
  18471. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18472. _ACEOF
  18473. cat >>confdefs.h <<_ACEOF
  18474. #define HAVE_KMSDRM_SHARED "TRUE"
  18475. _ACEOF
  18476. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18477. else
  18478. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18479. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18480. fi
  18481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18482. $as_echo "$kmsdrm_shared" >&6; }
  18483. have_video=yes
  18484. fi
  18485. fi
  18486. fi
  18487. fi
  18488. }
  18489. CheckDummyVideo()
  18490. {
  18491. # Check whether --enable-video-dummy was given.
  18492. if test "${enable_video_dummy+set}" = set; then :
  18493. enableval=$enable_video_dummy;
  18494. else
  18495. enable_video_dummy=yes
  18496. fi
  18497. if test x$enable_video_dummy = xyes; then
  18498. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18499. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18500. have_video=yes
  18501. SUMMARY_video="${SUMMARY_video} dummy"
  18502. fi
  18503. }
  18504. CheckQNXVideo()
  18505. {
  18506. if test x$enable_video = xyes; then
  18507. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18508. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18509. have_video=yes
  18510. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18511. SUMMARY_video="${SUMMARY_video} qnx"
  18512. fi
  18513. }
  18514. CheckQNXAudio()
  18515. {
  18516. if test x$enable_audio = xyes; then
  18517. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18518. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18519. have_audio=yes
  18520. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18521. SUMMARY_audio="${SUMMARY_audio} qsa"
  18522. fi
  18523. }
  18524. # Check whether --enable-video-opengl was given.
  18525. if test "${enable_video_opengl+set}" = set; then :
  18526. enableval=$enable_video_opengl;
  18527. else
  18528. enable_video_opengl=yes
  18529. fi
  18530. CheckOpenGLX11()
  18531. {
  18532. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18534. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18535. video_opengl=no
  18536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18537. /* end confdefs.h. */
  18538. #include <GL/gl.h>
  18539. #include <GL/glx.h>
  18540. int
  18541. main ()
  18542. {
  18543. ;
  18544. return 0;
  18545. }
  18546. _ACEOF
  18547. if ac_fn_c_try_compile "$LINENO"; then :
  18548. video_opengl=yes
  18549. fi
  18550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18552. $as_echo "$video_opengl" >&6; }
  18553. if test x$video_opengl = xyes; then
  18554. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18555. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18556. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18557. SUMMARY_video="${SUMMARY_video} opengl"
  18558. fi
  18559. fi
  18560. }
  18561. # Check whether --enable-video-opengles was given.
  18562. if test "${enable_video_opengles+set}" = set; then :
  18563. enableval=$enable_video_opengles;
  18564. else
  18565. enable_video_opengles=yes
  18566. fi
  18567. # Check whether --enable-video-opengles1 was given.
  18568. if test "${enable_video_opengles1+set}" = set; then :
  18569. enableval=$enable_video_opengles1;
  18570. else
  18571. enable_video_opengles1=yes
  18572. fi
  18573. # Check whether --enable-video-opengles2 was given.
  18574. if test "${enable_video_opengles2+set}" = set; then :
  18575. enableval=$enable_video_opengles2;
  18576. else
  18577. enable_video_opengles2=yes
  18578. fi
  18579. CheckOpenGLESX11()
  18580. {
  18581. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18583. $as_echo_n "checking for EGL support... " >&6; }
  18584. video_opengl_egl=no
  18585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18586. /* end confdefs.h. */
  18587. #define LINUX
  18588. #define EGL_API_FB
  18589. #include <EGL/egl.h>
  18590. #include <EGL/eglext.h>
  18591. int
  18592. main ()
  18593. {
  18594. ;
  18595. return 0;
  18596. }
  18597. _ACEOF
  18598. if ac_fn_c_try_compile "$LINENO"; then :
  18599. video_opengl_egl=yes
  18600. fi
  18601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18603. $as_echo "$video_opengl_egl" >&6; }
  18604. if test x$video_opengl_egl = xyes; then
  18605. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18606. fi
  18607. if test x$enable_video_opengles1 = xyes; then
  18608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18609. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18610. video_opengles_v1=no
  18611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18612. /* end confdefs.h. */
  18613. #include <GLES/gl.h>
  18614. #include <GLES/glext.h>
  18615. int
  18616. main ()
  18617. {
  18618. ;
  18619. return 0;
  18620. }
  18621. _ACEOF
  18622. if ac_fn_c_try_compile "$LINENO"; then :
  18623. video_opengles_v1=yes
  18624. fi
  18625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18627. $as_echo "$video_opengles_v1" >&6; }
  18628. if test x$video_opengles_v1 = xyes; then
  18629. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18630. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18631. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18632. fi
  18633. fi
  18634. if test x$enable_video_opengles2 = xyes; then
  18635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18636. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18637. video_opengles_v2=no
  18638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18639. /* end confdefs.h. */
  18640. #include <GLES2/gl2.h>
  18641. #include <GLES2/gl2ext.h>
  18642. int
  18643. main ()
  18644. {
  18645. ;
  18646. return 0;
  18647. }
  18648. _ACEOF
  18649. if ac_fn_c_try_compile "$LINENO"; then :
  18650. video_opengles_v2=yes
  18651. fi
  18652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18654. $as_echo "$video_opengles_v2" >&6; }
  18655. if test x$video_opengles_v2 = xyes; then
  18656. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18657. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18658. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18659. fi
  18660. fi
  18661. fi
  18662. }
  18663. CheckWINDOWSGL()
  18664. {
  18665. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18666. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18667. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18668. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18669. SUMMARY_video="${SUMMARY_video} opengl"
  18670. fi
  18671. }
  18672. CheckWINDOWSGLES()
  18673. {
  18674. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18676. $as_echo_n "checking for EGL support... " >&6; }
  18677. video_opengl_egl=no
  18678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18679. /* end confdefs.h. */
  18680. #include <EGL/egl.h>
  18681. int
  18682. main ()
  18683. {
  18684. ;
  18685. return 0;
  18686. }
  18687. _ACEOF
  18688. if ac_fn_c_try_compile "$LINENO"; then :
  18689. video_opengl_egl=yes
  18690. fi
  18691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18693. $as_echo "$video_opengl_egl" >&6; }
  18694. if test x$video_opengl_egl = xyes; then
  18695. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18696. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18697. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18698. fi
  18699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18700. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18701. video_opengles_v2=no
  18702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18703. /* end confdefs.h. */
  18704. #include <GLES2/gl2.h>
  18705. #include <GLES2/gl2ext.h>
  18706. int
  18707. main ()
  18708. {
  18709. ;
  18710. return 0;
  18711. }
  18712. _ACEOF
  18713. if ac_fn_c_try_compile "$LINENO"; then :
  18714. video_opengles_v2=yes
  18715. fi
  18716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18718. $as_echo "$video_opengles_v2" >&6; }
  18719. if test x$video_opengles_v2 = xyes; then
  18720. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18721. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18722. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18723. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18724. fi
  18725. fi
  18726. }
  18727. CheckHaikuGL()
  18728. {
  18729. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18730. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18731. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18732. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18734. SUMMARY_video="${SUMMARY_video} opengl"
  18735. fi
  18736. }
  18737. CheckMacGL()
  18738. {
  18739. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18740. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18741. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18742. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18743. SUMMARY_video="${SUMMARY_video} opengl"
  18744. fi
  18745. }
  18746. CheckEmscriptenGLES()
  18747. {
  18748. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18750. $as_echo_n "checking for EGL support... " >&6; }
  18751. video_opengl_egl=no
  18752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18753. /* end confdefs.h. */
  18754. #include <EGL/egl.h>
  18755. int
  18756. main ()
  18757. {
  18758. ;
  18759. return 0;
  18760. }
  18761. _ACEOF
  18762. if ac_fn_c_try_compile "$LINENO"; then :
  18763. video_opengl_egl=yes
  18764. fi
  18765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18767. $as_echo "$video_opengl_egl" >&6; }
  18768. if test x$video_opengl_egl = xyes; then
  18769. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18770. fi
  18771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18772. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18773. video_opengles_v2=no
  18774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18775. /* end confdefs.h. */
  18776. #include <GLES2/gl2.h>
  18777. #include <GLES2/gl2ext.h>
  18778. int
  18779. main ()
  18780. {
  18781. ;
  18782. return 0;
  18783. }
  18784. _ACEOF
  18785. if ac_fn_c_try_compile "$LINENO"; then :
  18786. video_opengles_v2=yes
  18787. fi
  18788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18790. $as_echo "$video_opengles_v2" >&6; }
  18791. if test x$video_opengles_v2 = xyes; then
  18792. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18793. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18794. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18795. fi
  18796. fi
  18797. }
  18798. # Check whether --enable-video-vulkan was given.
  18799. if test "${enable_video_vulkan+set}" = set; then :
  18800. enableval=$enable_video_vulkan;
  18801. else
  18802. enable_video_vulkan=yes
  18803. fi
  18804. CheckVulkan()
  18805. {
  18806. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18807. case "$host" in
  18808. *-*-androideabi*)
  18809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18810. /* end confdefs.h. */
  18811. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18812. #error Vulkan doesn't work on this configuration
  18813. #endif
  18814. int
  18815. main ()
  18816. {
  18817. ;
  18818. return 0;
  18819. }
  18820. _ACEOF
  18821. if ac_fn_c_try_compile "$LINENO"; then :
  18822. else
  18823. enable_video_vulkan=no
  18824. fi
  18825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18826. ;;
  18827. *-*-darwin*)
  18828. save_CFLAGS="$CFLAGS"
  18829. CFLAGS="$CFLAGS -x objective-c"
  18830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18831. /* end confdefs.h. */
  18832. #include <Cocoa/Cocoa.h>
  18833. #include <Metal/Metal.h>
  18834. #include <QuartzCore/CAMetalLayer.h>
  18835. #if !TARGET_CPU_X86_64
  18836. #error Vulkan doesn't work on this configuration
  18837. #endif
  18838. int
  18839. main ()
  18840. {
  18841. ;
  18842. return 0;
  18843. }
  18844. _ACEOF
  18845. if ac_fn_c_try_compile "$LINENO"; then :
  18846. else
  18847. enable_video_vulkan=no
  18848. fi
  18849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18850. CFLAGS="$save_CFLAGS"
  18851. ;;
  18852. *)
  18853. ;;
  18854. esac
  18855. if test x$enable_video_vulkan = xno; then
  18856. # For reasons I am totally unable to see, I get an undefined macro error if
  18857. # I put this in the AC_TRY_COMPILE.
  18858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18859. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18860. fi
  18861. fi
  18862. if test x$enable_video_vulkan = xyes; then
  18863. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18864. SUMMARY_video="${SUMMARY_video} vulkan"
  18865. fi
  18866. }
  18867. CheckInputEvents()
  18868. {
  18869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18870. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18871. use_input_events=no
  18872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18873. /* end confdefs.h. */
  18874. #include <linux/input.h>
  18875. int
  18876. main ()
  18877. {
  18878. #ifndef EVIOCGNAME
  18879. #error EVIOCGNAME() ioctl not available
  18880. #endif
  18881. ;
  18882. return 0;
  18883. }
  18884. _ACEOF
  18885. if ac_fn_c_try_compile "$LINENO"; then :
  18886. use_input_events=yes
  18887. fi
  18888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18890. $as_echo "$use_input_events" >&6; }
  18891. if test x$use_input_events = xyes; then
  18892. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18893. SUMMARY_input="${SUMMARY_input} linuxev"
  18894. fi
  18895. }
  18896. CheckInputKD()
  18897. {
  18898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18899. $as_echo_n "checking for Linux kd.h... " >&6; }
  18900. use_input_kd=no
  18901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18902. /* end confdefs.h. */
  18903. #include <linux/kd.h>
  18904. #include <linux/keyboard.h>
  18905. int
  18906. main ()
  18907. {
  18908. struct kbentry kbe;
  18909. kbe.kb_table = KG_CTRL;
  18910. ioctl(0, KDGKBENT, &kbe);
  18911. ;
  18912. return 0;
  18913. }
  18914. _ACEOF
  18915. if ac_fn_c_try_compile "$LINENO"; then :
  18916. use_input_kd=yes
  18917. fi
  18918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18920. $as_echo "$use_input_kd" >&6; }
  18921. if test x$use_input_kd = xyes; then
  18922. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18923. SUMMARY_input="${SUMMARY_input} linuxkd"
  18924. fi
  18925. }
  18926. CheckLibUDev()
  18927. {
  18928. # Check whether --enable-libudev was given.
  18929. if test "${enable_libudev+set}" = set; then :
  18930. enableval=$enable_libudev;
  18931. else
  18932. enable_libudev=yes
  18933. fi
  18934. if test x$enable_libudev = xyes; then
  18935. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18936. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18937. have_libudev_h_hdr=yes
  18938. else
  18939. have_libudev_h_hdr=no
  18940. fi
  18941. if test x$have_libudev_h_hdr = xyes; then
  18942. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18943. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18944. if test x$udev_lib != x; then
  18945. echo "-- dynamic udev -> $udev_lib"
  18946. cat >>confdefs.h <<_ACEOF
  18947. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18948. _ACEOF
  18949. fi
  18950. fi
  18951. fi
  18952. }
  18953. CheckDBus()
  18954. {
  18955. # Check whether --enable-dbus was given.
  18956. if test "${enable_dbus+set}" = set; then :
  18957. enableval=$enable_dbus;
  18958. else
  18959. enable_dbus=yes
  18960. fi
  18961. if test x$enable_dbus = xyes; then
  18962. # Extract the first word of "pkg-config", so it can be a program name with args.
  18963. set dummy pkg-config; ac_word=$2
  18964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18965. $as_echo_n "checking for $ac_word... " >&6; }
  18966. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18967. $as_echo_n "(cached) " >&6
  18968. else
  18969. case $PKG_CONFIG in
  18970. [\\/]* | ?:[\\/]*)
  18971. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18972. ;;
  18973. *)
  18974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18975. for as_dir in $PATH
  18976. do
  18977. IFS=$as_save_IFS
  18978. test -z "$as_dir" && as_dir=.
  18979. for ac_exec_ext in '' $ac_executable_extensions; do
  18980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18981. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18983. break 2
  18984. fi
  18985. done
  18986. done
  18987. IFS=$as_save_IFS
  18988. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18989. ;;
  18990. esac
  18991. fi
  18992. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18993. if test -n "$PKG_CONFIG"; then
  18994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18995. $as_echo "$PKG_CONFIG" >&6; }
  18996. else
  18997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18998. $as_echo "no" >&6; }
  18999. fi
  19000. if test x$PKG_CONFIG != xno; then
  19001. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  19002. save_CFLAGS="$CFLAGS"
  19003. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19004. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19005. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19006. have_dbus_dbus_h_hdr=yes
  19007. else
  19008. have_dbus_dbus_h_hdr=no
  19009. fi
  19010. CFLAGS="$save_CFLAGS"
  19011. if test x$have_dbus_dbus_h_hdr = xyes; then
  19012. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19013. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19014. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19015. fi
  19016. fi
  19017. fi
  19018. }
  19019. CheckIME()
  19020. {
  19021. # Check whether --enable-ime was given.
  19022. if test "${enable_ime+set}" = set; then :
  19023. enableval=$enable_ime;
  19024. else
  19025. enable_ime=yes
  19026. fi
  19027. if test x$enable_ime = xyes; then
  19028. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19029. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19030. fi
  19031. }
  19032. CheckIBus()
  19033. {
  19034. # Check whether --enable-ibus was given.
  19035. if test "${enable_ibus+set}" = set; then :
  19036. enableval=$enable_ibus;
  19037. else
  19038. enable_ibus=yes
  19039. fi
  19040. if test x$enable_ibus = xyes; then
  19041. # Extract the first word of "pkg-config", so it can be a program name with args.
  19042. set dummy pkg-config; ac_word=$2
  19043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19044. $as_echo_n "checking for $ac_word... " >&6; }
  19045. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19046. $as_echo_n "(cached) " >&6
  19047. else
  19048. case $PKG_CONFIG in
  19049. [\\/]* | ?:[\\/]*)
  19050. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19051. ;;
  19052. *)
  19053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19054. for as_dir in $PATH
  19055. do
  19056. IFS=$as_save_IFS
  19057. test -z "$as_dir" && as_dir=.
  19058. for ac_exec_ext in '' $ac_executable_extensions; do
  19059. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19060. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19062. break 2
  19063. fi
  19064. done
  19065. done
  19066. IFS=$as_save_IFS
  19067. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19068. ;;
  19069. esac
  19070. fi
  19071. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19072. if test -n "$PKG_CONFIG"; then
  19073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19074. $as_echo "$PKG_CONFIG" >&6; }
  19075. else
  19076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19077. $as_echo "no" >&6; }
  19078. fi
  19079. if test x$PKG_CONFIG != xno; then
  19080. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19081. save_CFLAGS="$CFLAGS"
  19082. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19083. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19084. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19085. have_ibus_ibus_h_hdr=yes
  19086. else
  19087. have_ibus_ibus_h_hdr=no
  19088. fi
  19089. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19090. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19091. have_inotify_inotify_h_hdr=yes
  19092. else
  19093. have_inotify_inotify_h_hdr=no
  19094. fi
  19095. CFLAGS="$save_CFLAGS"
  19096. if test x$have_ibus_ibus_h_hdr = xyes; then
  19097. if test x$enable_ime != xyes; then
  19098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19099. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19100. have_ibus_ibus_h_hdr=no
  19101. elif test x$enable_dbus != xyes; then
  19102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19103. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19104. have_ibus_ibus_h_hdr=no
  19105. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19107. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19108. have_ibus_ibus_h_hdr=no
  19109. else
  19110. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19111. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19112. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19113. fi
  19114. fi
  19115. fi
  19116. fi
  19117. }
  19118. CheckFcitx()
  19119. {
  19120. # Check whether --enable-fcitx was given.
  19121. if test "${enable_fcitx+set}" = set; then :
  19122. enableval=$enable_fcitx;
  19123. else
  19124. enable_fcitx=yes
  19125. fi
  19126. if test x$enable_fcitx = xyes; then
  19127. # Extract the first word of "pkg-config", so it can be a program name with args.
  19128. set dummy pkg-config; ac_word=$2
  19129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19130. $as_echo_n "checking for $ac_word... " >&6; }
  19131. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19132. $as_echo_n "(cached) " >&6
  19133. else
  19134. case $PKG_CONFIG in
  19135. [\\/]* | ?:[\\/]*)
  19136. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19137. ;;
  19138. *)
  19139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19140. for as_dir in $PATH
  19141. do
  19142. IFS=$as_save_IFS
  19143. test -z "$as_dir" && as_dir=.
  19144. for ac_exec_ext in '' $ac_executable_extensions; do
  19145. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19146. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19148. break 2
  19149. fi
  19150. done
  19151. done
  19152. IFS=$as_save_IFS
  19153. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19154. ;;
  19155. esac
  19156. fi
  19157. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19158. if test -n "$PKG_CONFIG"; then
  19159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19160. $as_echo "$PKG_CONFIG" >&6; }
  19161. else
  19162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19163. $as_echo "no" >&6; }
  19164. fi
  19165. if test x$PKG_CONFIG != xno; then
  19166. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19167. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19168. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19169. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19170. have_fcitx_frontend_h_hdr=yes
  19171. else
  19172. have_fcitx_frontend_h_hdr=no
  19173. fi
  19174. CFLAGS="$save_CFLAGS"
  19175. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19176. if test x$enable_ime != xyes; then
  19177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19178. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19179. have_fcitx_frontend_h_hdr=no
  19180. elif test x$enable_dbus != xyes; then
  19181. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19182. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19183. have_fcitx_frontend_h_hdr=no
  19184. else
  19185. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19186. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19187. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19188. fi
  19189. fi
  19190. fi
  19191. fi
  19192. }
  19193. CheckTslib()
  19194. {
  19195. # Check whether --enable-input-tslib was given.
  19196. if test "${enable_input_tslib+set}" = set; then :
  19197. enableval=$enable_input_tslib;
  19198. else
  19199. enable_input_tslib=yes
  19200. fi
  19201. if test x$enable_input_tslib = xyes; then
  19202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19203. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19204. enable_input_tslib=no
  19205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19206. /* end confdefs.h. */
  19207. #include "tslib.h"
  19208. int
  19209. main ()
  19210. {
  19211. ;
  19212. return 0;
  19213. }
  19214. _ACEOF
  19215. if ac_fn_c_try_compile "$LINENO"; then :
  19216. enable_input_tslib=yes
  19217. fi
  19218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19220. $as_echo "$enable_input_tslib" >&6; }
  19221. if test x$enable_input_tslib = xyes; then
  19222. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19223. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19224. SUMMARY_input="${SUMMARY_input} ts"
  19225. fi
  19226. fi
  19227. }
  19228. CheckPTHREAD()
  19229. {
  19230. # Check whether --enable-pthreads was given.
  19231. if test "${enable_pthreads+set}" = set; then :
  19232. enableval=$enable_pthreads;
  19233. else
  19234. enable_pthreads=yes
  19235. fi
  19236. # Check whether --enable-pthread-sem was given.
  19237. if test "${enable_pthread_sem+set}" = set; then :
  19238. enableval=$enable_pthread_sem;
  19239. else
  19240. enable_pthread_sem=yes
  19241. fi
  19242. case "$host" in
  19243. *-*-androideabi*)
  19244. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19245. pthread_lib=""
  19246. ;;
  19247. *-*-linux*|*-*-uclinux*)
  19248. pthread_cflags="-D_REENTRANT"
  19249. pthread_lib="-lpthread"
  19250. ;;
  19251. *-*-bsdi*)
  19252. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19253. pthread_lib=""
  19254. ;;
  19255. *-*-darwin*)
  19256. pthread_cflags="-D_THREAD_SAFE"
  19257. # causes Carbon.p complaints?
  19258. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19259. ;;
  19260. *-*-freebsd*|*-*-dragonfly*)
  19261. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19262. pthread_lib="-pthread"
  19263. ;;
  19264. *-*-netbsd*)
  19265. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19266. pthread_lib="-lpthread"
  19267. ;;
  19268. *-*-openbsd*)
  19269. pthread_cflags="-D_REENTRANT"
  19270. pthread_lib="-pthread"
  19271. ;;
  19272. *-*-solaris2.9)
  19273. # From Solaris 9+, posix4's preferred name is rt.
  19274. pthread_cflags="-D_REENTRANT"
  19275. pthread_lib="-lpthread -lrt"
  19276. ;;
  19277. *-*-solaris2.10)
  19278. # Solaris 10+ merged pthread into libc.
  19279. pthread_cflags="-D_REENTRANT"
  19280. pthread_lib="-lrt"
  19281. ;;
  19282. *-*-solaris*)
  19283. # Solaris 11+ merged rt into libc.
  19284. pthread_cflags="-D_REENTRANT"
  19285. pthread_lib=""
  19286. ;;
  19287. *-*-sysv5*)
  19288. pthread_cflags="-D_REENTRANT -Kthread"
  19289. pthread_lib=""
  19290. ;;
  19291. *-*-aix*)
  19292. pthread_cflags="-D_REENTRANT -mthreads"
  19293. pthread_lib="-lpthread"
  19294. ;;
  19295. *-*-hpux11*)
  19296. pthread_cflags="-D_REENTRANT"
  19297. pthread_lib="-L/usr/lib -lpthread"
  19298. ;;
  19299. *-*-haiku*)
  19300. pthread_cflags="-D_REENTRANT"
  19301. pthread_lib=""
  19302. ;;
  19303. *-*-nto*)
  19304. pthread_cflags="-D_REENTRANT"
  19305. pthread_lib=""
  19306. ;;
  19307. *)
  19308. pthread_cflags="-D_REENTRANT"
  19309. pthread_lib="-lpthread"
  19310. ;;
  19311. esac
  19312. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19313. # Save the original compiler flags and libraries
  19314. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19315. # Add the pthread compiler flags and libraries
  19316. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19317. # Check to see if we have pthread support on this system
  19318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19319. $as_echo_n "checking for pthreads... " >&6; }
  19320. use_pthreads=no
  19321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19322. /* end confdefs.h. */
  19323. #include <pthread.h>
  19324. int
  19325. main ()
  19326. {
  19327. pthread_attr_t type;
  19328. pthread_attr_init(&type);
  19329. ;
  19330. return 0;
  19331. }
  19332. _ACEOF
  19333. if ac_fn_c_try_link "$LINENO"; then :
  19334. use_pthreads=yes
  19335. fi
  19336. rm -f core conftest.err conftest.$ac_objext \
  19337. conftest$ac_exeext conftest.$ac_ext
  19338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19339. $as_echo "$use_pthreads" >&6; }
  19340. # Restore the compiler flags and libraries
  19341. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19342. # Do futher testing if we have pthread support...
  19343. if test x$use_pthreads = xyes; then
  19344. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19345. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19347. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19348. # Save the original compiler flags and libraries
  19349. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19350. # Add the pthread compiler flags and libraries
  19351. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19352. # Check to see if recursive mutexes are available
  19353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19354. $as_echo_n "checking for recursive mutexes... " >&6; }
  19355. has_recursive_mutexes=no
  19356. if test x$has_recursive_mutexes = xno; then
  19357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19358. /* end confdefs.h. */
  19359. #define _GNU_SOURCE 1
  19360. #include <pthread.h>
  19361. int
  19362. main ()
  19363. {
  19364. pthread_mutexattr_t attr;
  19365. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19366. ;
  19367. return 0;
  19368. }
  19369. _ACEOF
  19370. if ac_fn_c_try_link "$LINENO"; then :
  19371. has_recursive_mutexes=yes
  19372. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19373. fi
  19374. rm -f core conftest.err conftest.$ac_objext \
  19375. conftest$ac_exeext conftest.$ac_ext
  19376. fi
  19377. if test x$has_recursive_mutexes = xno; then
  19378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19379. /* end confdefs.h. */
  19380. #define _GNU_SOURCE 1
  19381. #include <pthread.h>
  19382. int
  19383. main ()
  19384. {
  19385. pthread_mutexattr_t attr;
  19386. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19387. ;
  19388. return 0;
  19389. }
  19390. _ACEOF
  19391. if ac_fn_c_try_link "$LINENO"; then :
  19392. has_recursive_mutexes=yes
  19393. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19394. fi
  19395. rm -f core conftest.err conftest.$ac_objext \
  19396. conftest$ac_exeext conftest.$ac_ext
  19397. fi
  19398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19399. $as_echo "$has_recursive_mutexes" >&6; }
  19400. # Check to see if pthread semaphore support is missing
  19401. if test x$enable_pthread_sem = xyes; then
  19402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19403. $as_echo_n "checking for pthread semaphores... " >&6; }
  19404. have_pthread_sem=no
  19405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19406. /* end confdefs.h. */
  19407. #include <pthread.h>
  19408. #include <semaphore.h>
  19409. int
  19410. main ()
  19411. {
  19412. ;
  19413. return 0;
  19414. }
  19415. _ACEOF
  19416. if ac_fn_c_try_compile "$LINENO"; then :
  19417. have_pthread_sem=yes
  19418. fi
  19419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19421. $as_echo "$have_pthread_sem" >&6; }
  19422. fi
  19423. if test x$have_pthread_sem = xyes; then
  19424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19425. $as_echo_n "checking for sem_timedwait... " >&6; }
  19426. have_sem_timedwait=no
  19427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19428. /* end confdefs.h. */
  19429. #include <pthread.h>
  19430. #include <semaphore.h>
  19431. int
  19432. main ()
  19433. {
  19434. sem_timedwait(NULL, NULL);
  19435. ;
  19436. return 0;
  19437. }
  19438. _ACEOF
  19439. if ac_fn_c_try_link "$LINENO"; then :
  19440. have_sem_timedwait=yes
  19441. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19442. fi
  19443. rm -f core conftest.err conftest.$ac_objext \
  19444. conftest$ac_exeext conftest.$ac_ext
  19445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19446. $as_echo "$have_sem_timedwait" >&6; }
  19447. fi
  19448. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19449. "
  19450. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19451. have_pthread_np_h=yes
  19452. else
  19453. have_pthread_np_h=no
  19454. fi
  19455. if test x$have_pthread_np_h = xyes; then
  19456. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19457. fi
  19458. # Check to see if pthread naming is available
  19459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19460. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19462. /* end confdefs.h. */
  19463. /* Override any GCC internal prototype to avoid an error.
  19464. Use char because int might match the return type of a GCC
  19465. builtin and then its argument prototype would still apply. */
  19466. #ifdef __cplusplus
  19467. extern "C"
  19468. #endif
  19469. char pthread_setname_np ();
  19470. int
  19471. main ()
  19472. {
  19473. return pthread_setname_np ();
  19474. ;
  19475. return 0;
  19476. }
  19477. _ACEOF
  19478. if ac_fn_c_try_link "$LINENO"; then :
  19479. has_pthread_setname_np=yes
  19480. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19481. else
  19482. has_pthread_setname_np=no
  19483. fi
  19484. rm -f core conftest.err conftest.$ac_objext \
  19485. conftest$ac_exeext conftest.$ac_ext
  19486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19487. $as_echo "$has_pthread_setname_np" >&6; }
  19488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19489. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19491. /* end confdefs.h. */
  19492. /* Override any GCC internal prototype to avoid an error.
  19493. Use char because int might match the return type of a GCC
  19494. builtin and then its argument prototype would still apply. */
  19495. #ifdef __cplusplus
  19496. extern "C"
  19497. #endif
  19498. char pthread_set_name_np ();
  19499. int
  19500. main ()
  19501. {
  19502. return pthread_set_name_np ();
  19503. ;
  19504. return 0;
  19505. }
  19506. _ACEOF
  19507. if ac_fn_c_try_link "$LINENO"; then :
  19508. has_pthread_set_name_np=yes
  19509. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19510. else
  19511. has_pthread_set_name_np=no
  19512. fi
  19513. rm -f core conftest.err conftest.$ac_objext \
  19514. conftest$ac_exeext conftest.$ac_ext
  19515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19516. $as_echo "$has_pthread_set_name_np" >&6; }
  19517. # Restore the compiler flags and libraries
  19518. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19519. # Basic thread creation functions
  19520. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19521. # Semaphores
  19522. # We can fake these with mutexes and condition variables if necessary
  19523. if test x$have_pthread_sem = xyes; then
  19524. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19525. else
  19526. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19527. fi
  19528. # Mutexes
  19529. # We can fake these with semaphores if necessary
  19530. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19531. # Condition variables
  19532. # We can fake these with semaphores and mutexes if necessary
  19533. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19534. # Thread local storage
  19535. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19536. have_threads=yes
  19537. fi
  19538. fi
  19539. }
  19540. CheckWINDOWS()
  19541. {
  19542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19543. $as_echo_n "checking Windows compiler... " >&6; }
  19544. have_win32_gcc=no
  19545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19546. /* end confdefs.h. */
  19547. #include <windows.h>
  19548. int
  19549. main ()
  19550. {
  19551. ;
  19552. return 0;
  19553. }
  19554. _ACEOF
  19555. if ac_fn_c_try_compile "$LINENO"; then :
  19556. have_win32_gcc=yes
  19557. fi
  19558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19560. $as_echo "$have_win32_gcc" >&6; }
  19561. if test x$have_win32_gcc != xyes; then
  19562. as_fn_error $? "
  19563. *** Your compiler ($CC) does not produce Windows executables!
  19564. " "$LINENO" 5
  19565. fi
  19566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19567. $as_echo_n "checking Windows CE... " >&6; }
  19568. have_wince=no
  19569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19570. /* end confdefs.h. */
  19571. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19572. #error This is not Windows CE
  19573. #endif
  19574. int
  19575. main ()
  19576. {
  19577. ;
  19578. return 0;
  19579. }
  19580. _ACEOF
  19581. if ac_fn_c_try_compile "$LINENO"; then :
  19582. have_wince=yes
  19583. as_fn_error $? "
  19584. *** Sorry, Windows CE is no longer supported.
  19585. " "$LINENO" 5
  19586. fi
  19587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19589. $as_echo "$have_wince" >&6; }
  19590. # This fixes Windows stack alignment with newer GCC
  19591. CheckStackBoundary
  19592. }
  19593. CheckDIRECTX()
  19594. {
  19595. # Check whether --enable-directx was given.
  19596. if test "${enable_directx+set}" = set; then :
  19597. enableval=$enable_directx;
  19598. else
  19599. enable_directx=yes
  19600. fi
  19601. if test x$enable_directx = xyes; then
  19602. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19603. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19604. have_d3d=yes
  19605. fi
  19606. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19607. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19608. have_d3d11=yes
  19609. fi
  19610. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19611. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19612. have_ddraw=yes
  19613. fi
  19614. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19615. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19616. have_dsound=yes
  19617. fi
  19618. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19619. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19620. have_dinput=yes
  19621. fi
  19622. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19623. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19624. have_dxgi=yes
  19625. fi
  19626. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19627. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19628. have_xaudio2=yes
  19629. fi
  19630. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19631. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19632. have_xinput=yes
  19633. fi
  19634. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19635. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19636. have_wasapi=yes
  19637. fi
  19638. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19639. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19640. else
  19641. have_wasapi=no
  19642. fi
  19643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19644. /* end confdefs.h. */
  19645. #include <windows.h>
  19646. #include <xinput.h>
  19647. XINPUT_GAMEPAD_EX x1;
  19648. int
  19649. main ()
  19650. {
  19651. ;
  19652. return 0;
  19653. }
  19654. _ACEOF
  19655. if ac_fn_c_try_compile "$LINENO"; then :
  19656. have_xinput_gamepadex=yes
  19657. fi
  19658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19660. /* end confdefs.h. */
  19661. #include <windows.h>
  19662. #include <xinput.h>
  19663. XINPUT_STATE_EX s1;
  19664. int
  19665. main ()
  19666. {
  19667. ;
  19668. return 0;
  19669. }
  19670. _ACEOF
  19671. if ac_fn_c_try_compile "$LINENO"; then :
  19672. have_xinput_stateex=yes
  19673. fi
  19674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19675. if test x$have_ddraw = xyes; then
  19676. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19677. fi
  19678. if test x$have_dinput = xyes; then
  19679. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19680. fi
  19681. if test x$have_dsound = xyes; then
  19682. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19683. fi
  19684. if test x$have_dxgi = xyes; then
  19685. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19686. fi
  19687. if test x$have_xinput = xyes; then
  19688. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19689. fi
  19690. if test x$have_xinput_gamepadex = xyes; then
  19691. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19692. fi
  19693. if test x$have_xinput_stateex = xyes; then
  19694. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19695. fi
  19696. SUMMARY_video="${SUMMARY_video} directx"
  19697. SUMMARY_audio="${SUMMARY_audio} directx"
  19698. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19699. # FIXME: ...so force it off for now.
  19700. case "$host" in
  19701. *-*-cygwin*)
  19702. have_dinput=false
  19703. ;;
  19704. esac
  19705. fi
  19706. }
  19707. CheckDLOPEN()
  19708. {
  19709. # Check whether --enable-sdl-dlopen was given.
  19710. if test "${enable_sdl_dlopen+set}" = set; then :
  19711. enableval=$enable_sdl_dlopen;
  19712. else
  19713. enable_sdl_dlopen=yes
  19714. fi
  19715. if test x$enable_sdl_dlopen = xyes; then
  19716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19717. $as_echo_n "checking for dlopen... " >&6; }
  19718. have_dlopen=no
  19719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19720. /* end confdefs.h. */
  19721. #include <dlfcn.h>
  19722. int
  19723. main ()
  19724. {
  19725. void *handle = dlopen("", RTLD_NOW);
  19726. const char *loaderror = (char *) dlerror();
  19727. ;
  19728. return 0;
  19729. }
  19730. _ACEOF
  19731. if ac_fn_c_try_compile "$LINENO"; then :
  19732. have_dlopen=yes
  19733. fi
  19734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19736. $as_echo "$have_dlopen" >&6; }
  19737. if test x$have_dlopen = xyes; then
  19738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19739. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19740. if ${ac_cv_lib_c_dlopen+:} false; then :
  19741. $as_echo_n "(cached) " >&6
  19742. else
  19743. ac_check_lib_save_LIBS=$LIBS
  19744. LIBS="-lc $LIBS"
  19745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19746. /* end confdefs.h. */
  19747. /* Override any GCC internal prototype to avoid an error.
  19748. Use char because int might match the return type of a GCC
  19749. builtin and then its argument prototype would still apply. */
  19750. #ifdef __cplusplus
  19751. extern "C"
  19752. #endif
  19753. char dlopen ();
  19754. int
  19755. main ()
  19756. {
  19757. return dlopen ();
  19758. ;
  19759. return 0;
  19760. }
  19761. _ACEOF
  19762. if ac_fn_c_try_link "$LINENO"; then :
  19763. ac_cv_lib_c_dlopen=yes
  19764. else
  19765. ac_cv_lib_c_dlopen=no
  19766. fi
  19767. rm -f core conftest.err conftest.$ac_objext \
  19768. conftest$ac_exeext conftest.$ac_ext
  19769. LIBS=$ac_check_lib_save_LIBS
  19770. fi
  19771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19772. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19773. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19774. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19775. else
  19776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19777. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19778. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19779. $as_echo_n "(cached) " >&6
  19780. else
  19781. ac_check_lib_save_LIBS=$LIBS
  19782. LIBS="-ldl $LIBS"
  19783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19784. /* end confdefs.h. */
  19785. /* Override any GCC internal prototype to avoid an error.
  19786. Use char because int might match the return type of a GCC
  19787. builtin and then its argument prototype would still apply. */
  19788. #ifdef __cplusplus
  19789. extern "C"
  19790. #endif
  19791. char dlopen ();
  19792. int
  19793. main ()
  19794. {
  19795. return dlopen ();
  19796. ;
  19797. return 0;
  19798. }
  19799. _ACEOF
  19800. if ac_fn_c_try_link "$LINENO"; then :
  19801. ac_cv_lib_dl_dlopen=yes
  19802. else
  19803. ac_cv_lib_dl_dlopen=no
  19804. fi
  19805. rm -f core conftest.err conftest.$ac_objext \
  19806. conftest$ac_exeext conftest.$ac_ext
  19807. LIBS=$ac_check_lib_save_LIBS
  19808. fi
  19809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19810. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19811. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19812. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19813. else
  19814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19815. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19816. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19817. $as_echo_n "(cached) " >&6
  19818. else
  19819. ac_check_lib_save_LIBS=$LIBS
  19820. LIBS="-lltdl $LIBS"
  19821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19822. /* end confdefs.h. */
  19823. /* Override any GCC internal prototype to avoid an error.
  19824. Use char because int might match the return type of a GCC
  19825. builtin and then its argument prototype would still apply. */
  19826. #ifdef __cplusplus
  19827. extern "C"
  19828. #endif
  19829. char dlopen ();
  19830. int
  19831. main ()
  19832. {
  19833. return dlopen ();
  19834. ;
  19835. return 0;
  19836. }
  19837. _ACEOF
  19838. if ac_fn_c_try_link "$LINENO"; then :
  19839. ac_cv_lib_ltdl_dlopen=yes
  19840. else
  19841. ac_cv_lib_ltdl_dlopen=no
  19842. fi
  19843. rm -f core conftest.err conftest.$ac_objext \
  19844. conftest$ac_exeext conftest.$ac_ext
  19845. LIBS=$ac_check_lib_save_LIBS
  19846. fi
  19847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19848. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19849. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19850. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19851. fi
  19852. fi
  19853. fi
  19854. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19855. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19856. have_loadso=yes
  19857. fi
  19858. fi
  19859. }
  19860. CheckUSBHID()
  19861. {
  19862. case "$host" in
  19863. *-*-*bsd*)
  19864. if test x$enable_joystick = xyes; then
  19865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19866. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19867. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19868. $as_echo_n "(cached) " >&6
  19869. else
  19870. ac_check_lib_save_LIBS=$LIBS
  19871. LIBS="-lusbhid $LIBS"
  19872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19873. /* end confdefs.h. */
  19874. /* Override any GCC internal prototype to avoid an error.
  19875. Use char because int might match the return type of a GCC
  19876. builtin and then its argument prototype would still apply. */
  19877. #ifdef __cplusplus
  19878. extern "C"
  19879. #endif
  19880. char hid_init ();
  19881. int
  19882. main ()
  19883. {
  19884. return hid_init ();
  19885. ;
  19886. return 0;
  19887. }
  19888. _ACEOF
  19889. if ac_fn_c_try_link "$LINENO"; then :
  19890. ac_cv_lib_usbhid_hid_init=yes
  19891. else
  19892. ac_cv_lib_usbhid_hid_init=no
  19893. fi
  19894. rm -f core conftest.err conftest.$ac_objext \
  19895. conftest$ac_exeext conftest.$ac_ext
  19896. LIBS=$ac_check_lib_save_LIBS
  19897. fi
  19898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19899. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19900. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19901. have_libusbhid=yes
  19902. fi
  19903. if test x$have_libusbhid = xyes; then
  19904. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19905. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19906. USB_CFLAGS="-DHAVE_USBHID_H"
  19907. fi
  19908. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19909. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19910. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19911. fi
  19912. USB_LIBS="$USB_LIBS -lusbhid"
  19913. else
  19914. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19915. if test "x$ac_cv_header_usb_h" = xyes; then :
  19916. USB_CFLAGS="-DHAVE_USB_H"
  19917. fi
  19918. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19919. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19920. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19921. fi
  19922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19923. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19924. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19925. $as_echo_n "(cached) " >&6
  19926. else
  19927. ac_check_lib_save_LIBS=$LIBS
  19928. LIBS="-lusb $LIBS"
  19929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19930. /* end confdefs.h. */
  19931. /* Override any GCC internal prototype to avoid an error.
  19932. Use char because int might match the return type of a GCC
  19933. builtin and then its argument prototype would still apply. */
  19934. #ifdef __cplusplus
  19935. extern "C"
  19936. #endif
  19937. char hid_init ();
  19938. int
  19939. main ()
  19940. {
  19941. return hid_init ();
  19942. ;
  19943. return 0;
  19944. }
  19945. _ACEOF
  19946. if ac_fn_c_try_link "$LINENO"; then :
  19947. ac_cv_lib_usb_hid_init=yes
  19948. else
  19949. ac_cv_lib_usb_hid_init=no
  19950. fi
  19951. rm -f core conftest.err conftest.$ac_objext \
  19952. conftest$ac_exeext conftest.$ac_ext
  19953. LIBS=$ac_check_lib_save_LIBS
  19954. fi
  19955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19956. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19957. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19958. USB_LIBS="$USB_LIBS -lusb"
  19959. fi
  19960. fi
  19961. save_CFLAGS="$CFLAGS"
  19962. CFLAGS="$CFLAGS $USB_CFLAGS"
  19963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19964. $as_echo_n "checking for usbhid... " >&6; }
  19965. have_usbhid=no
  19966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19967. /* end confdefs.h. */
  19968. #include <sys/types.h>
  19969. #if defined(HAVE_USB_H)
  19970. #include <usb.h>
  19971. #endif
  19972. #ifdef __DragonFly__
  19973. # include <bus/usb/usb.h>
  19974. # include <bus/usb/usbhid.h>
  19975. #else
  19976. # include <dev/usb/usb.h>
  19977. # include <dev/usb/usbhid.h>
  19978. #endif
  19979. #if defined(HAVE_USBHID_H)
  19980. #include <usbhid.h>
  19981. #elif defined(HAVE_LIBUSB_H)
  19982. #include <libusb.h>
  19983. #elif defined(HAVE_LIBUSBHID_H)
  19984. #include <libusbhid.h>
  19985. #endif
  19986. int
  19987. main ()
  19988. {
  19989. struct report_desc *repdesc;
  19990. struct usb_ctl_report *repbuf;
  19991. hid_kind_t hidkind;
  19992. ;
  19993. return 0;
  19994. }
  19995. _ACEOF
  19996. if ac_fn_c_try_compile "$LINENO"; then :
  19997. have_usbhid=yes
  19998. fi
  19999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20001. $as_echo "$have_usbhid" >&6; }
  20002. if test x$have_usbhid = xyes; then
  20003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20004. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20005. have_usbhid_ucr_data=no
  20006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20007. /* end confdefs.h. */
  20008. #include <sys/types.h>
  20009. #if defined(HAVE_USB_H)
  20010. #include <usb.h>
  20011. #endif
  20012. #ifdef __DragonFly__
  20013. # include <bus/usb/usb.h>
  20014. # include <bus/usb/usbhid.h>
  20015. #else
  20016. # include <dev/usb/usb.h>
  20017. # include <dev/usb/usbhid.h>
  20018. #endif
  20019. #if defined(HAVE_USBHID_H)
  20020. #include <usbhid.h>
  20021. #elif defined(HAVE_LIBUSB_H)
  20022. #include <libusb.h>
  20023. #elif defined(HAVE_LIBUSBHID_H)
  20024. #include <libusbhid.h>
  20025. #endif
  20026. int
  20027. main ()
  20028. {
  20029. struct usb_ctl_report buf;
  20030. if (buf.ucr_data) { }
  20031. ;
  20032. return 0;
  20033. }
  20034. _ACEOF
  20035. if ac_fn_c_try_compile "$LINENO"; then :
  20036. have_usbhid_ucr_data=yes
  20037. fi
  20038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20039. if test x$have_usbhid_ucr_data = xyes; then
  20040. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20041. fi
  20042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20043. $as_echo "$have_usbhid_ucr_data" >&6; }
  20044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20045. $as_echo_n "checking for new usbhid API... " >&6; }
  20046. have_usbhid_new=no
  20047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20048. /* end confdefs.h. */
  20049. #include <sys/types.h>
  20050. #if defined(HAVE_USB_H)
  20051. #include <usb.h>
  20052. #endif
  20053. #ifdef __DragonFly__
  20054. #include <bus/usb/usb.h>
  20055. #include <bus/usb/usbhid.h>
  20056. #else
  20057. #include <dev/usb/usb.h>
  20058. #include <dev/usb/usbhid.h>
  20059. #endif
  20060. #if defined(HAVE_USBHID_H)
  20061. #include <usbhid.h>
  20062. #elif defined(HAVE_LIBUSB_H)
  20063. #include <libusb.h>
  20064. #elif defined(HAVE_LIBUSBHID_H)
  20065. #include <libusbhid.h>
  20066. #endif
  20067. int
  20068. main ()
  20069. {
  20070. report_desc_t d;
  20071. hid_start_parse(d, 1, 1);
  20072. ;
  20073. return 0;
  20074. }
  20075. _ACEOF
  20076. if ac_fn_c_try_compile "$LINENO"; then :
  20077. have_usbhid_new=yes
  20078. fi
  20079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20080. if test x$have_usbhid_new = xyes; then
  20081. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20082. fi
  20083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20084. $as_echo "$have_usbhid_new" >&6; }
  20085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20086. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20087. have_machine_joystick=no
  20088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20089. /* end confdefs.h. */
  20090. #include <machine/joystick.h>
  20091. int
  20092. main ()
  20093. {
  20094. struct joystick t;
  20095. ;
  20096. return 0;
  20097. }
  20098. _ACEOF
  20099. if ac_fn_c_try_compile "$LINENO"; then :
  20100. have_machine_joystick=yes
  20101. fi
  20102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20103. if test x$have_machine_joystick = xyes; then
  20104. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20105. fi
  20106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20107. $as_echo "$have_machine_joystick" >&6; }
  20108. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20109. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20110. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20111. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20112. have_joystick=yes
  20113. fi
  20114. CFLAGS="$save_CFLAGS"
  20115. fi
  20116. ;;
  20117. esac
  20118. }
  20119. CheckClockGettime()
  20120. {
  20121. # Check whether --enable-clock_gettime was given.
  20122. if test "${enable_clock_gettime+set}" = set; then :
  20123. enableval=$enable_clock_gettime;
  20124. else
  20125. enable_clock_gettime=yes
  20126. fi
  20127. if test x$enable_clock_gettime = xyes; then
  20128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20129. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20130. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20131. $as_echo_n "(cached) " >&6
  20132. else
  20133. ac_check_lib_save_LIBS=$LIBS
  20134. LIBS="-lrt $LIBS"
  20135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20136. /* end confdefs.h. */
  20137. /* Override any GCC internal prototype to avoid an error.
  20138. Use char because int might match the return type of a GCC
  20139. builtin and then its argument prototype would still apply. */
  20140. #ifdef __cplusplus
  20141. extern "C"
  20142. #endif
  20143. char clock_gettime ();
  20144. int
  20145. main ()
  20146. {
  20147. return clock_gettime ();
  20148. ;
  20149. return 0;
  20150. }
  20151. _ACEOF
  20152. if ac_fn_c_try_link "$LINENO"; then :
  20153. ac_cv_lib_rt_clock_gettime=yes
  20154. else
  20155. ac_cv_lib_rt_clock_gettime=no
  20156. fi
  20157. rm -f core conftest.err conftest.$ac_objext \
  20158. conftest$ac_exeext conftest.$ac_ext
  20159. LIBS=$ac_check_lib_save_LIBS
  20160. fi
  20161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20162. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20163. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20164. have_clock_gettime=yes
  20165. fi
  20166. if test x$have_clock_gettime = xyes; then
  20167. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20168. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20169. else
  20170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20171. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20172. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20173. $as_echo_n "(cached) " >&6
  20174. else
  20175. ac_check_lib_save_LIBS=$LIBS
  20176. LIBS="-lc $LIBS"
  20177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20178. /* end confdefs.h. */
  20179. /* Override any GCC internal prototype to avoid an error.
  20180. Use char because int might match the return type of a GCC
  20181. builtin and then its argument prototype would still apply. */
  20182. #ifdef __cplusplus
  20183. extern "C"
  20184. #endif
  20185. char clock_gettime ();
  20186. int
  20187. main ()
  20188. {
  20189. return clock_gettime ();
  20190. ;
  20191. return 0;
  20192. }
  20193. _ACEOF
  20194. if ac_fn_c_try_link "$LINENO"; then :
  20195. ac_cv_lib_c_clock_gettime=yes
  20196. else
  20197. ac_cv_lib_c_clock_gettime=no
  20198. fi
  20199. rm -f core conftest.err conftest.$ac_objext \
  20200. conftest$ac_exeext conftest.$ac_ext
  20201. LIBS=$ac_check_lib_save_LIBS
  20202. fi
  20203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20204. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20205. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20206. have_clock_gettime=yes
  20207. fi
  20208. if test x$have_clock_gettime = xyes; then
  20209. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20211. fi
  20212. fi
  20213. fi
  20214. }
  20215. CheckLinuxVersion()
  20216. {
  20217. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20218. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20219. have_linux_version_h=yes
  20220. fi
  20221. if test x$have_linux_version_h = xyes; then
  20222. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20223. fi
  20224. }
  20225. CheckRPATH()
  20226. {
  20227. # Check whether --enable-rpath was given.
  20228. if test "${enable_rpath+set}" = set; then :
  20229. enableval=$enable_rpath;
  20230. else
  20231. enable_rpath=yes
  20232. fi
  20233. }
  20234. CheckWarnAll
  20235. case "$host" in
  20236. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20237. case "$host" in
  20238. *-*-androideabi*)
  20239. # Android
  20240. ARCH=android
  20241. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20242. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20243. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20244. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20246. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20247. if test x$enable_video = xyes; then
  20248. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20249. # FIXME: confdefs? Not AC_DEFINE?
  20250. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20251. SUMMARY_video="${SUMMARY_video} android"
  20252. fi
  20253. ;;
  20254. *-*-linux*) ARCH=linux ;;
  20255. *-*-uclinux*) ARCH=linux ;;
  20256. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20257. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20258. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20259. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20260. *-*-bsdi*) ARCH=bsdi ;;
  20261. *-*-freebsd*) ARCH=freebsd ;;
  20262. *-*-dragonfly*) ARCH=freebsd ;;
  20263. *-*-netbsd*) ARCH=netbsd ;;
  20264. *-*-openbsd*) ARCH=openbsd ;;
  20265. *-*-sysv5*) ARCH=sysv5 ;;
  20266. *-*-solaris*) ARCH=solaris ;;
  20267. *-*-hpux*) ARCH=hpux ;;
  20268. *-*-aix*) ARCH=aix ;;
  20269. *-*-minix*) ARCH=minix ;;
  20270. *-*-nto*) ARCH=nto
  20271. CheckQNXVideo
  20272. ;;
  20273. esac
  20274. CheckVisibilityHidden
  20275. CheckDeclarationAfterStatement
  20276. CheckDummyVideo
  20277. CheckDiskAudio
  20278. CheckDummyAudio
  20279. CheckDLOPEN
  20280. CheckOSS
  20281. CheckALSA
  20282. CheckPulseAudio
  20283. CheckJACK
  20284. CheckARTSC
  20285. CheckESD
  20286. CheckNAS
  20287. CheckSNDIO
  20288. CheckFusionSound
  20289. CheckLibSampleRate
  20290. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20291. CheckRPI
  20292. CheckX11
  20293. CheckDirectFB
  20294. CheckKMSDRM
  20295. CheckOpenGLX11
  20296. CheckOpenGLESX11
  20297. CheckVulkan
  20298. CheckMir
  20299. CheckWayland
  20300. CheckLibUDev
  20301. CheckDBus
  20302. CheckIME
  20303. CheckIBus
  20304. CheckFcitx
  20305. case $ARCH in
  20306. linux)
  20307. CheckInputEvents
  20308. CheckInputKD
  20309. ;;
  20310. esac
  20311. CheckTslib
  20312. CheckUSBHID
  20313. CheckPTHREAD
  20314. CheckClockGettime
  20315. CheckLinuxVersion
  20316. CheckRPATH
  20317. CheckVivanteVideo
  20318. # Set up files for the audio library
  20319. if test x$enable_audio = xyes; then
  20320. case $ARCH in
  20321. sysv5|solaris|hpux)
  20322. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20323. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20324. SUMMARY_audio="${SUMMARY_audio} sun"
  20325. have_audio=yes
  20326. ;;
  20327. netbsd) # Don't use this on OpenBSD, it's busted.
  20328. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20329. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20330. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20331. have_audio=yes
  20332. ;;
  20333. aix)
  20334. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20335. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20336. SUMMARY_audio="${SUMMARY_audio} paudio"
  20337. have_audio=yes
  20338. ;;
  20339. android)
  20340. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20341. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20342. SUMMARY_audio="${SUMMARY_audio} android"
  20343. have_audio=yes
  20344. ;;
  20345. nto)
  20346. CheckQNXAudio
  20347. ;;
  20348. esac
  20349. fi
  20350. # Set up files for the joystick library
  20351. if test x$enable_joystick = xyes; then
  20352. case $ARCH in
  20353. linux)
  20354. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20355. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20356. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20357. have_joystick=yes
  20358. ;;
  20359. android)
  20360. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20361. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20362. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20363. have_joystick=yes
  20364. ;;
  20365. esac
  20366. fi
  20367. # Set up files for the haptic library
  20368. if test x$enable_haptic = xyes; then
  20369. if test x$use_input_events = xyes; then
  20370. case $ARCH in
  20371. linux)
  20372. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20373. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20374. have_haptic=yes
  20375. ;;
  20376. esac
  20377. fi
  20378. fi
  20379. # Set up files for the power library
  20380. if test x$enable_power = xyes; then
  20381. case $ARCH in
  20382. linux)
  20383. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20384. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20385. have_power=yes
  20386. ;;
  20387. android)
  20388. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20389. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20390. have_power=yes
  20391. ;;
  20392. esac
  20393. fi
  20394. # Set up files for the filesystem library
  20395. if test x$enable_filesystem = xyes; then
  20396. case $ARCH in
  20397. android)
  20398. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20399. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20400. have_filesystem=yes
  20401. ;;
  20402. *)
  20403. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20404. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20405. have_filesystem=yes
  20406. ;;
  20407. esac
  20408. fi
  20409. # Set up files for the timer library
  20410. if test x$enable_timers = xyes; then
  20411. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20412. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20413. have_timers=yes
  20414. fi
  20415. # Set up files for udev hotplugging support
  20416. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20417. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20418. fi
  20419. # Set up files for evdev input
  20420. if test x$use_input_events = xyes; then
  20421. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20422. fi
  20423. # Set up other core UNIX files
  20424. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20425. ;;
  20426. *-*-cygwin* | *-*-mingw32*)
  20427. ARCH=win32
  20428. if test "$build" != "$host"; then # cross-compiling
  20429. # Default cross-compile location
  20430. ac_default_prefix=/usr/local/cross-tools/$host
  20431. else
  20432. # Look for the location of the tools and install there
  20433. if test "$BUILD_PREFIX" != ""; then
  20434. ac_default_prefix=$BUILD_PREFIX
  20435. fi
  20436. fi
  20437. CheckDeclarationAfterStatement
  20438. CheckDummyVideo
  20439. CheckDiskAudio
  20440. CheckDummyAudio
  20441. CheckWINDOWS
  20442. CheckWINDOWSGL
  20443. CheckWINDOWSGLES
  20444. CheckVulkan
  20445. CheckDIRECTX
  20446. # Set up the core platform files
  20447. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20448. # Set up files for the video library
  20449. if test x$enable_video = xyes; then
  20450. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20451. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20452. have_video=yes
  20453. # Check whether --enable-render-d3d was given.
  20454. if test "${enable_render_d3d+set}" = set; then :
  20455. enableval=$enable_render_d3d;
  20456. else
  20457. enable_render_d3d=yes
  20458. fi
  20459. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20460. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20461. fi
  20462. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20463. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20464. fi
  20465. fi
  20466. # Set up files for the audio library
  20467. if test x$enable_audio = xyes; then
  20468. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20469. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20470. if test x$have_dsound = xyes; then
  20471. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20472. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20473. fi
  20474. if test x$have_xaudio2 = xyes; then
  20475. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  20476. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  20477. fi
  20478. if test x$have_wasapi = xyes; then
  20479. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20480. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20481. fi
  20482. have_audio=yes
  20483. fi
  20484. # Set up files for the joystick library
  20485. if test x$enable_joystick = xyes; then
  20486. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20487. if test x$have_xinput = xyes; then
  20488. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20489. fi
  20490. if test x$have_dinput = xyes; then
  20491. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20492. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20493. fi
  20494. else
  20495. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20496. fi
  20497. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20498. have_joystick=yes
  20499. fi
  20500. if test x$enable_haptic = xyes; then
  20501. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20502. if test x$have_xinput = xyes; then
  20503. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20504. fi
  20505. if test x$have_dinput = xyes; then
  20506. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20507. fi
  20508. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20509. have_haptic=yes
  20510. fi
  20511. fi
  20512. if test x$enable_power = xyes; then
  20513. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20514. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20515. have_power=yes
  20516. fi
  20517. if test x$enable_filesystem = xyes; then
  20518. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20519. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20520. have_filesystem=yes
  20521. fi
  20522. # Set up files for the thread library
  20523. if test x$enable_threads = xyes; then
  20524. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20525. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20526. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20527. have_threads=yes
  20528. fi
  20529. # Set up files for the timer library
  20530. if test x$enable_timers = xyes; then
  20531. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20532. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20533. have_timers=yes
  20534. fi
  20535. # Set up files for the shared object loading library
  20536. if test x$enable_loadso = xyes; then
  20537. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20538. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20539. have_loadso=yes
  20540. fi
  20541. # Set up the system libraries we need
  20542. if test -f /lib/w32api/libuuid.a; then
  20543. LIBUUID=/lib/w32api/libuuid.a
  20544. else
  20545. LIBUUID=-luuid
  20546. fi
  20547. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20548. # The Windows platform requires special setup
  20549. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20550. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20551. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20552. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20553. # Check to see if this is a mingw or cygwin build
  20554. have_mingw32=
  20555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20556. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20557. if ${ac_cv_lib_mingw32_main+:} false; then :
  20558. $as_echo_n "(cached) " >&6
  20559. else
  20560. ac_check_lib_save_LIBS=$LIBS
  20561. LIBS="-lmingw32 $LIBS"
  20562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20563. /* end confdefs.h. */
  20564. int
  20565. main ()
  20566. {
  20567. return main ();
  20568. ;
  20569. return 0;
  20570. }
  20571. _ACEOF
  20572. if ac_fn_c_try_link "$LINENO"; then :
  20573. ac_cv_lib_mingw32_main=yes
  20574. else
  20575. ac_cv_lib_mingw32_main=no
  20576. fi
  20577. rm -f core conftest.err conftest.$ac_objext \
  20578. conftest$ac_exeext conftest.$ac_ext
  20579. LIBS=$ac_check_lib_save_LIBS
  20580. fi
  20581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20582. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20583. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20584. have_mingw32=yes
  20585. fi
  20586. if test x$have_mingw32 = xyes; then
  20587. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20588. else
  20589. SDL_LIBS="-lcygwin $SDL_LIBS"
  20590. fi
  20591. ;;
  20592. *-*-beos*)
  20593. as_fn_error $? "
  20594. *** BeOS support has been removed as of SDL 2.0.2.
  20595. " "$LINENO" 5
  20596. ;;
  20597. *-*-haiku*)
  20598. ARCH=haiku
  20599. ac_default_prefix=/boot/system
  20600. CheckDummyVideo
  20601. CheckDiskAudio
  20602. CheckDummyAudio
  20603. CheckDLOPEN
  20604. CheckHaikuVideo
  20605. CheckHaikuGL
  20606. CheckPTHREAD
  20607. # Set up files for the audio library
  20608. if test x$enable_audio = xyes; then
  20609. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20610. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20611. SUMMARY_audio="${SUMMARY_audio} haiku"
  20612. have_audio=yes
  20613. fi
  20614. # Set up files for the joystick library
  20615. if test x$enable_joystick = xyes; then
  20616. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20617. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20618. have_joystick=yes
  20619. fi
  20620. # Set up files for the timer library
  20621. if test x$enable_timers = xyes; then
  20622. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20623. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20624. have_timers=yes
  20625. fi
  20626. # Set up files for the system power library
  20627. if test x$enable_power = xyes; then
  20628. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20629. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20630. have_power=yes
  20631. fi
  20632. # Set up files for the system filesystem library
  20633. if test x$enable_filesystem = xyes; then
  20634. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20635. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20636. have_filesystem=yes
  20637. fi
  20638. # The Haiku platform requires special setup.
  20639. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20640. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20641. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20642. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20643. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20645. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20646. if eval \${$as_ac_File+:} false; then :
  20647. $as_echo_n "(cached) " >&6
  20648. else
  20649. test "$cross_compiling" = yes &&
  20650. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20651. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20652. eval "$as_ac_File=yes"
  20653. else
  20654. eval "$as_ac_File=no"
  20655. fi
  20656. fi
  20657. eval ac_res=\$$as_ac_File
  20658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20659. $as_echo "$ac_res" >&6; }
  20660. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20661. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20662. else
  20663. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20664. fi
  20665. ;;
  20666. arm*-apple-darwin*|*-ios-*)
  20667. ARCH=ios
  20668. CheckVisibilityHidden
  20669. CheckDeclarationAfterStatement
  20670. CheckDummyVideo
  20671. CheckDiskAudio
  20672. CheckDummyAudio
  20673. CheckDLOPEN
  20674. CheckPTHREAD
  20675. CheckVulkan
  20676. # Set up files for the audio library
  20677. if test x$enable_audio = xyes; then
  20678. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20679. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20680. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20681. have_audio=yes
  20682. fi
  20683. # Set up files for the joystick library
  20684. if test x$enable_joystick = xyes; then
  20685. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20686. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20687. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20688. have_joystick=yes
  20689. fi
  20690. # Set up files for the haptic library
  20691. #if test x$enable_haptic = xyes; then
  20692. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20693. # have_haptic=yes
  20694. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20695. #fi
  20696. # Set up files for the power library
  20697. if test x$enable_power = xyes; then
  20698. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20699. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20700. have_power=yes
  20701. fi
  20702. # Set up files for the filesystem library
  20703. if test x$enable_filesystem = xyes; then
  20704. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20705. have_filesystem=yes
  20706. fi
  20707. # Set up additional files for the file library
  20708. if test x$enable_file = xyes; then
  20709. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20710. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20711. fi
  20712. # Set up files for the timer library
  20713. if test x$enable_timers = xyes; then
  20714. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20715. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20716. have_timers=yes
  20717. fi
  20718. # Set up other core UNIX files
  20719. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20720. # The iOS platform requires special setup.
  20721. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20722. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20723. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20724. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20725. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20726. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20727. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20728. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20729. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20730. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20731. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20732. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20735. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20737. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20738. ;;
  20739. *-*-darwin* )
  20740. # This could be either full "Mac OS X", or plain "Darwin" which is
  20741. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20742. # Next line is broken, and a few files below require Mac OS X (full)
  20743. ARCH=macosx
  20744. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20745. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20746. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20747. CheckVisibilityHidden
  20748. CheckDeclarationAfterStatement
  20749. CheckDummyVideo
  20750. CheckDiskAudio
  20751. CheckDummyAudio
  20752. CheckDLOPEN
  20753. CheckCOCOA
  20754. CheckX11
  20755. CheckMacGL
  20756. CheckOpenGLX11
  20757. CheckVulkan
  20758. CheckPTHREAD
  20759. # Set up files for the audio library
  20760. if test x$enable_audio = xyes; then
  20761. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20762. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20763. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20764. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20765. have_audio=yes
  20766. fi
  20767. # Set up files for the joystick library
  20768. if test x$enable_joystick = xyes; then
  20769. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20770. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20771. have_joystick=yes
  20772. fi
  20773. # Set up files for the haptic library
  20774. if test x$enable_haptic = xyes; then
  20775. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20776. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20777. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20778. have_haptic=yes
  20779. fi
  20780. # Set up files for the power library
  20781. if test x$enable_power = xyes; then
  20782. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20783. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20784. have_power=yes
  20785. fi
  20786. # Set up files for the filesystem library
  20787. if test x$enable_filesystem = xyes; then
  20788. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20789. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20790. have_filesystem=yes
  20791. fi
  20792. # Set up files for the timer library
  20793. if test x$enable_timers = xyes; then
  20794. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20795. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20796. have_timers=yes
  20797. fi
  20798. # Set up additional files for the file library
  20799. if test x$enable_file = xyes; then
  20800. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20801. fi
  20802. # Set up other core UNIX files
  20803. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20804. # The Mac OS X platform requires special setup.
  20805. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20807. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20808. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20809. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20810. ;;
  20811. *-nacl|*-pnacl)
  20812. ARCH=nacl
  20813. CheckNativeClient
  20814. CheckDummyAudio
  20815. CheckDummyVideo
  20816. CheckInputEvents
  20817. CheckPTHREAD
  20818. # Set up files for the timer library
  20819. if test x$enable_timers = xyes; then
  20820. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20821. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20822. have_timers=yes
  20823. fi
  20824. if test x$enable_filesystem = xyes; then
  20825. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20826. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20827. have_filesystem=yes
  20828. fi
  20829. ;;
  20830. *-*-emscripten* )
  20831. if test x$enable_video = xyes; then
  20832. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20833. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20834. have_video=yes
  20835. SUMMARY_video="${SUMMARY_video} emscripten"
  20836. fi
  20837. if test x$enable_audio = xyes; then
  20838. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20839. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20840. have_audio=yes
  20841. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20842. fi
  20843. CheckVisibilityHidden
  20844. CheckDeclarationAfterStatement
  20845. CheckDummyVideo
  20846. CheckDiskAudio
  20847. CheckDummyAudio
  20848. CheckDLOPEN
  20849. CheckClockGettime
  20850. CheckEmscriptenGLES
  20851. # Set up files for the power library
  20852. if test x$enable_power = xyes; then
  20853. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20854. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20855. have_power=yes
  20856. fi
  20857. # Set up files for the power library
  20858. if test x$enable_joystick = xyes; then
  20859. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20860. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20861. have_joystick=yes
  20862. fi
  20863. # Set up files for the filesystem library
  20864. if test x$enable_filesystem = xyes; then
  20865. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20866. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20867. have_filesystem=yes
  20868. fi
  20869. # Set up files for the timer library
  20870. if test x$enable_timers = xyes; then
  20871. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20872. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20873. have_timers=yes
  20874. fi
  20875. ;;
  20876. *)
  20877. as_fn_error $? "
  20878. *** Unsupported host: Please add to configure.in
  20879. " "$LINENO" 5
  20880. ;;
  20881. esac
  20882. # Verify that we have all the platform specific files we need
  20883. if test x$have_joystick != xyes; then
  20884. if test x$enable_joystick = xyes; then
  20885. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20886. fi
  20887. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20888. fi
  20889. if test x$have_haptic != xyes; then
  20890. if test x$enable_haptic = xyes; then
  20891. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20892. fi
  20893. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20894. fi
  20895. if test x$have_threads != xyes; then
  20896. if test x$enable_threads = xyes; then
  20897. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20898. fi
  20899. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20900. fi
  20901. if test x$have_timers != xyes; then
  20902. if test x$enable_timers = xyes; then
  20903. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20904. fi
  20905. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20906. fi
  20907. if test x$have_filesystem != xyes; then
  20908. if test x$enable_filesystem = xyes; then
  20909. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20910. fi
  20911. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20912. fi
  20913. if test x$have_loadso != xyes; then
  20914. if test x$enable_loadso = xyes; then
  20915. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20916. fi
  20917. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20918. fi
  20919. if test x$SDLMAIN_SOURCES = x; then
  20920. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20921. fi
  20922. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20923. if test x$video_wayland = xyes; then
  20924. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20925. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20926. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20927. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20928. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20929. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20930. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20931. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20932. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20933. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20934. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20935. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20936. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20937. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20938. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20939. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20940. WAYLAND_CORE_PROTOCOL_OBJECT="
  20941. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20942. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20943. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20944. do echo ; echo \$p | sed\
  20945. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20946. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20947. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20948. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20949. do echo ; echo \$p | sed\
  20950. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20951. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20952. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20953. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20954. do echo ; echo \$p | sed\
  20955. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20956. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20957. WAYLAND_PROTOCOLS_DEPENDS="
  20958. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20959. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20960. $WAYLAND_CORE_PROTOCOL_OBJECT
  20961. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20962. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20963. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20964. "
  20965. fi
  20966. OBJECTS=`echo $SOURCES`
  20967. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20968. for EXT in asm cc m c S; do
  20969. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20970. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20971. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20972. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20973. done
  20974. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20975. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20976. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20977. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20978. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20979. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20980. \\$(WINDRES) \\$< \\$@,g"`
  20981. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20982. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20983. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20984. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20985. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20986. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20987. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20988. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20989. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20990. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20991. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20992. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20993. # Set runtime shared library paths as needed
  20994. if test "x$enable_rpath" = "xyes"; then
  20995. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20996. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20998. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20999. have_enable_new_dtags=no
  21000. save_LDFLAGS="$LDFLAGS"
  21001. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21003. /* end confdefs.h. */
  21004. int
  21005. main ()
  21006. {
  21007. ;
  21008. return 0;
  21009. }
  21010. _ACEOF
  21011. if ac_fn_c_try_link "$LINENO"; then :
  21012. have_enable_new_dtags=yes
  21013. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21014. fi
  21015. rm -f core conftest.err conftest.$ac_objext \
  21016. conftest$ac_exeext conftest.$ac_ext
  21017. LDFLAGS="$save_LDFLAGS"
  21018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21019. $as_echo "$have_enable_new_dtags" >&6; }
  21020. fi
  21021. if test $ARCH = solaris; then
  21022. SDL_RLD_FLAGS="-R\${libdir}"
  21023. fi
  21024. else
  21025. SDL_RLD_FLAGS=""
  21026. fi
  21027. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21028. if test x$enable_shared = xyes; then
  21029. ENABLE_SHARED_TRUE=
  21030. ENABLE_SHARED_FALSE="#"
  21031. else
  21032. ENABLE_SHARED_TRUE="#"
  21033. ENABLE_SHARED_FALSE=
  21034. fi
  21035. if test x$enable_static = xyes; then
  21036. ENABLE_STATIC_TRUE=
  21037. ENABLE_STATIC_FALSE="#"
  21038. else
  21039. ENABLE_STATIC_TRUE="#"
  21040. ENABLE_STATIC_FALSE=
  21041. fi
  21042. cat >Makefile.rules <<__EOF__
  21043. # Build rules for objects
  21044. -include \$(OBJECTS:.lo=.d)
  21045. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21046. $srcdir/src/SDL.c: update-revision
  21047. $DEPENDS
  21048. $VERSION_DEPENDS
  21049. $SDLMAIN_DEPENDS
  21050. $SDLTEST_DEPENDS
  21051. $WAYLAND_PROTOCOLS_DEPENDS
  21052. __EOF__
  21053. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21054. ac_config_commands="$ac_config_commands sdl2_config"
  21055. SUMMARY="SDL2 Configure Summary:\n"
  21056. if test x$enable_shared = xyes; then
  21057. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21058. fi
  21059. if test x$enable_static = xyes; then
  21060. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21061. fi
  21062. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21063. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21064. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21065. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21066. if test x$have_x = xyes; then
  21067. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21068. fi
  21069. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21070. if test x$have_samplerate_h_hdr = xyes; then
  21071. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21072. else
  21073. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21074. fi
  21075. if test x$have_libudev_h_hdr = xyes; then
  21076. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21077. else
  21078. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21079. fi
  21080. if test x$have_dbus_dbus_h_hdr = xyes; then
  21081. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21082. else
  21083. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21084. fi
  21085. if test x$enable_ime = xyes; then
  21086. SUMMARY="${SUMMARY}Using ime : YES\n"
  21087. else
  21088. SUMMARY="${SUMMARY}Using ime : NO\n"
  21089. fi
  21090. if test x$have_ibus_ibus_h_hdr = xyes; then
  21091. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21092. else
  21093. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21094. fi
  21095. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21096. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21097. else
  21098. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21099. fi
  21100. ac_config_commands="$ac_config_commands summary"
  21101. cat >confcache <<\_ACEOF
  21102. # This file is a shell script that caches the results of configure
  21103. # tests run on this system so they can be shared between configure
  21104. # scripts and configure runs, see configure's option --config-cache.
  21105. # It is not useful on other systems. If it contains results you don't
  21106. # want to keep, you may remove or edit it.
  21107. #
  21108. # config.status only pays attention to the cache file if you give it
  21109. # the --recheck option to rerun configure.
  21110. #
  21111. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21112. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21113. # following values.
  21114. _ACEOF
  21115. # The following way of writing the cache mishandles newlines in values,
  21116. # but we know of no workaround that is simple, portable, and efficient.
  21117. # So, we kill variables containing newlines.
  21118. # Ultrix sh set writes to stderr and can't be redirected directly,
  21119. # and sets the high bit in the cache file unless we assign to the vars.
  21120. (
  21121. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21122. eval ac_val=\$$ac_var
  21123. case $ac_val in #(
  21124. *${as_nl}*)
  21125. case $ac_var in #(
  21126. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21127. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21128. esac
  21129. case $ac_var in #(
  21130. _ | IFS | as_nl) ;; #(
  21131. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21132. *) { eval $ac_var=; unset $ac_var;} ;;
  21133. esac ;;
  21134. esac
  21135. done
  21136. (set) 2>&1 |
  21137. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21138. *${as_nl}ac_space=\ *)
  21139. # `set' does not quote correctly, so add quotes: double-quote
  21140. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21141. sed -n \
  21142. "s/'/'\\\\''/g;
  21143. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21144. ;; #(
  21145. *)
  21146. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21147. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21148. ;;
  21149. esac |
  21150. sort
  21151. ) |
  21152. sed '
  21153. /^ac_cv_env_/b end
  21154. t clear
  21155. :clear
  21156. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21157. t end
  21158. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21159. :end' >>confcache
  21160. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21161. if test -w "$cache_file"; then
  21162. if test "x$cache_file" != "x/dev/null"; then
  21163. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21164. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21165. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21166. cat confcache >"$cache_file"
  21167. else
  21168. case $cache_file in #(
  21169. */* | ?:*)
  21170. mv -f confcache "$cache_file"$$ &&
  21171. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21172. *)
  21173. mv -f confcache "$cache_file" ;;
  21174. esac
  21175. fi
  21176. fi
  21177. else
  21178. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21179. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21180. fi
  21181. fi
  21182. rm -f confcache
  21183. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21184. # Let make expand exec_prefix.
  21185. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21186. DEFS=-DHAVE_CONFIG_H
  21187. ac_libobjs=
  21188. ac_ltlibobjs=
  21189. U=
  21190. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21191. # 1. Remove the extension, and $U if already installed.
  21192. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21193. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21194. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21195. # will be set to the directory where LIBOBJS objects are built.
  21196. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21197. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21198. done
  21199. LIBOBJS=$ac_libobjs
  21200. LTLIBOBJS=$ac_ltlibobjs
  21201. : "${CONFIG_STATUS=./config.status}"
  21202. ac_write_fail=0
  21203. ac_clean_files_save=$ac_clean_files
  21204. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21205. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21206. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21207. as_write_fail=0
  21208. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21209. #! $SHELL
  21210. # Generated by $as_me.
  21211. # Run this file to recreate the current configuration.
  21212. # Compiler output produced by configure, useful for debugging
  21213. # configure, is in config.log if it exists.
  21214. debug=false
  21215. ac_cs_recheck=false
  21216. ac_cs_silent=false
  21217. SHELL=\${CONFIG_SHELL-$SHELL}
  21218. export SHELL
  21219. _ASEOF
  21220. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21221. ## -------------------- ##
  21222. ## M4sh Initialization. ##
  21223. ## -------------------- ##
  21224. # Be more Bourne compatible
  21225. DUALCASE=1; export DUALCASE # for MKS sh
  21226. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21227. emulate sh
  21228. NULLCMD=:
  21229. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21230. # is contrary to our usage. Disable this feature.
  21231. alias -g '${1+"$@"}'='"$@"'
  21232. setopt NO_GLOB_SUBST
  21233. else
  21234. case `(set -o) 2>/dev/null` in #(
  21235. *posix*) :
  21236. set -o posix ;; #(
  21237. *) :
  21238. ;;
  21239. esac
  21240. fi
  21241. as_nl='
  21242. '
  21243. export as_nl
  21244. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21245. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21246. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21247. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21248. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21249. # but without wasting forks for bash or zsh.
  21250. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21251. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21252. as_echo='print -r --'
  21253. as_echo_n='print -rn --'
  21254. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21255. as_echo='printf %s\n'
  21256. as_echo_n='printf %s'
  21257. else
  21258. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21259. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21260. as_echo_n='/usr/ucb/echo -n'
  21261. else
  21262. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21263. as_echo_n_body='eval
  21264. arg=$1;
  21265. case $arg in #(
  21266. *"$as_nl"*)
  21267. expr "X$arg" : "X\\(.*\\)$as_nl";
  21268. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21269. esac;
  21270. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21271. '
  21272. export as_echo_n_body
  21273. as_echo_n='sh -c $as_echo_n_body as_echo'
  21274. fi
  21275. export as_echo_body
  21276. as_echo='sh -c $as_echo_body as_echo'
  21277. fi
  21278. # The user is always right.
  21279. if test "${PATH_SEPARATOR+set}" != set; then
  21280. PATH_SEPARATOR=:
  21281. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21282. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21283. PATH_SEPARATOR=';'
  21284. }
  21285. fi
  21286. # IFS
  21287. # We need space, tab and new line, in precisely that order. Quoting is
  21288. # there to prevent editors from complaining about space-tab.
  21289. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21290. # splitting by setting IFS to empty value.)
  21291. IFS=" "" $as_nl"
  21292. # Find who we are. Look in the path if we contain no directory separator.
  21293. as_myself=
  21294. case $0 in #((
  21295. *[\\/]* ) as_myself=$0 ;;
  21296. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21297. for as_dir in $PATH
  21298. do
  21299. IFS=$as_save_IFS
  21300. test -z "$as_dir" && as_dir=.
  21301. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21302. done
  21303. IFS=$as_save_IFS
  21304. ;;
  21305. esac
  21306. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21307. # in which case we are not to be found in the path.
  21308. if test "x$as_myself" = x; then
  21309. as_myself=$0
  21310. fi
  21311. if test ! -f "$as_myself"; then
  21312. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21313. exit 1
  21314. fi
  21315. # Unset variables that we do not need and which cause bugs (e.g. in
  21316. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21317. # suppresses any "Segmentation fault" message there. '((' could
  21318. # trigger a bug in pdksh 5.2.14.
  21319. for as_var in BASH_ENV ENV MAIL MAILPATH
  21320. do eval test x\${$as_var+set} = xset \
  21321. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21322. done
  21323. PS1='$ '
  21324. PS2='> '
  21325. PS4='+ '
  21326. # NLS nuisances.
  21327. LC_ALL=C
  21328. export LC_ALL
  21329. LANGUAGE=C
  21330. export LANGUAGE
  21331. # CDPATH.
  21332. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21333. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21334. # ----------------------------------------
  21335. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21336. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21337. # script with STATUS, using 1 if that was 0.
  21338. as_fn_error ()
  21339. {
  21340. as_status=$1; test $as_status -eq 0 && as_status=1
  21341. if test "$4"; then
  21342. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21343. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21344. fi
  21345. $as_echo "$as_me: error: $2" >&2
  21346. as_fn_exit $as_status
  21347. } # as_fn_error
  21348. # as_fn_set_status STATUS
  21349. # -----------------------
  21350. # Set $? to STATUS, without forking.
  21351. as_fn_set_status ()
  21352. {
  21353. return $1
  21354. } # as_fn_set_status
  21355. # as_fn_exit STATUS
  21356. # -----------------
  21357. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21358. as_fn_exit ()
  21359. {
  21360. set +e
  21361. as_fn_set_status $1
  21362. exit $1
  21363. } # as_fn_exit
  21364. # as_fn_unset VAR
  21365. # ---------------
  21366. # Portably unset VAR.
  21367. as_fn_unset ()
  21368. {
  21369. { eval $1=; unset $1;}
  21370. }
  21371. as_unset=as_fn_unset
  21372. # as_fn_append VAR VALUE
  21373. # ----------------------
  21374. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21375. # advantage of any shell optimizations that allow amortized linear growth over
  21376. # repeated appends, instead of the typical quadratic growth present in naive
  21377. # implementations.
  21378. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21379. eval 'as_fn_append ()
  21380. {
  21381. eval $1+=\$2
  21382. }'
  21383. else
  21384. as_fn_append ()
  21385. {
  21386. eval $1=\$$1\$2
  21387. }
  21388. fi # as_fn_append
  21389. # as_fn_arith ARG...
  21390. # ------------------
  21391. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21392. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21393. # must be portable across $(()) and expr.
  21394. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21395. eval 'as_fn_arith ()
  21396. {
  21397. as_val=$(( $* ))
  21398. }'
  21399. else
  21400. as_fn_arith ()
  21401. {
  21402. as_val=`expr "$@" || test $? -eq 1`
  21403. }
  21404. fi # as_fn_arith
  21405. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21406. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21407. as_expr=expr
  21408. else
  21409. as_expr=false
  21410. fi
  21411. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21412. as_basename=basename
  21413. else
  21414. as_basename=false
  21415. fi
  21416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21417. as_dirname=dirname
  21418. else
  21419. as_dirname=false
  21420. fi
  21421. as_me=`$as_basename -- "$0" ||
  21422. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21423. X"$0" : 'X\(//\)$' \| \
  21424. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21425. $as_echo X/"$0" |
  21426. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21427. s//\1/
  21428. q
  21429. }
  21430. /^X\/\(\/\/\)$/{
  21431. s//\1/
  21432. q
  21433. }
  21434. /^X\/\(\/\).*/{
  21435. s//\1/
  21436. q
  21437. }
  21438. s/.*/./; q'`
  21439. # Avoid depending upon Character Ranges.
  21440. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21441. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21442. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21443. as_cr_digits='0123456789'
  21444. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21445. ECHO_C= ECHO_N= ECHO_T=
  21446. case `echo -n x` in #(((((
  21447. -n*)
  21448. case `echo 'xy\c'` in
  21449. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21450. xy) ECHO_C='\c';;
  21451. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21452. ECHO_T=' ';;
  21453. esac;;
  21454. *)
  21455. ECHO_N='-n';;
  21456. esac
  21457. rm -f conf$$ conf$$.exe conf$$.file
  21458. if test -d conf$$.dir; then
  21459. rm -f conf$$.dir/conf$$.file
  21460. else
  21461. rm -f conf$$.dir
  21462. mkdir conf$$.dir 2>/dev/null
  21463. fi
  21464. if (echo >conf$$.file) 2>/dev/null; then
  21465. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21466. as_ln_s='ln -s'
  21467. # ... but there are two gotchas:
  21468. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21469. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21470. # In both cases, we have to default to `cp -pR'.
  21471. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21472. as_ln_s='cp -pR'
  21473. elif ln conf$$.file conf$$ 2>/dev/null; then
  21474. as_ln_s=ln
  21475. else
  21476. as_ln_s='cp -pR'
  21477. fi
  21478. else
  21479. as_ln_s='cp -pR'
  21480. fi
  21481. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21482. rmdir conf$$.dir 2>/dev/null
  21483. # as_fn_mkdir_p
  21484. # -------------
  21485. # Create "$as_dir" as a directory, including parents if necessary.
  21486. as_fn_mkdir_p ()
  21487. {
  21488. case $as_dir in #(
  21489. -*) as_dir=./$as_dir;;
  21490. esac
  21491. test -d "$as_dir" || eval $as_mkdir_p || {
  21492. as_dirs=
  21493. while :; do
  21494. case $as_dir in #(
  21495. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21496. *) as_qdir=$as_dir;;
  21497. esac
  21498. as_dirs="'$as_qdir' $as_dirs"
  21499. as_dir=`$as_dirname -- "$as_dir" ||
  21500. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21501. X"$as_dir" : 'X\(//\)[^/]' \| \
  21502. X"$as_dir" : 'X\(//\)$' \| \
  21503. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21504. $as_echo X"$as_dir" |
  21505. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21506. s//\1/
  21507. q
  21508. }
  21509. /^X\(\/\/\)[^/].*/{
  21510. s//\1/
  21511. q
  21512. }
  21513. /^X\(\/\/\)$/{
  21514. s//\1/
  21515. q
  21516. }
  21517. /^X\(\/\).*/{
  21518. s//\1/
  21519. q
  21520. }
  21521. s/.*/./; q'`
  21522. test -d "$as_dir" && break
  21523. done
  21524. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21525. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21526. } # as_fn_mkdir_p
  21527. if mkdir -p . 2>/dev/null; then
  21528. as_mkdir_p='mkdir -p "$as_dir"'
  21529. else
  21530. test -d ./-p && rmdir ./-p
  21531. as_mkdir_p=false
  21532. fi
  21533. # as_fn_executable_p FILE
  21534. # -----------------------
  21535. # Test if FILE is an executable regular file.
  21536. as_fn_executable_p ()
  21537. {
  21538. test -f "$1" && test -x "$1"
  21539. } # as_fn_executable_p
  21540. as_test_x='test -x'
  21541. as_executable_p=as_fn_executable_p
  21542. # Sed expression to map a string onto a valid CPP name.
  21543. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21544. # Sed expression to map a string onto a valid variable name.
  21545. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21546. exec 6>&1
  21547. ## ----------------------------------- ##
  21548. ## Main body of $CONFIG_STATUS script. ##
  21549. ## ----------------------------------- ##
  21550. _ASEOF
  21551. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21552. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21553. # Save the log message, to keep $0 and so on meaningful, and to
  21554. # report actual input values of CONFIG_FILES etc. instead of their
  21555. # values after options handling.
  21556. ac_log="
  21557. This file was extended by $as_me, which was
  21558. generated by GNU Autoconf 2.69. Invocation command line was
  21559. CONFIG_FILES = $CONFIG_FILES
  21560. CONFIG_HEADERS = $CONFIG_HEADERS
  21561. CONFIG_LINKS = $CONFIG_LINKS
  21562. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21563. $ $0 $@
  21564. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21565. "
  21566. _ACEOF
  21567. case $ac_config_files in *"
  21568. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21569. esac
  21570. case $ac_config_headers in *"
  21571. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21572. esac
  21573. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21574. # Files that config.status was made for.
  21575. config_files="$ac_config_files"
  21576. config_headers="$ac_config_headers"
  21577. config_commands="$ac_config_commands"
  21578. _ACEOF
  21579. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21580. ac_cs_usage="\
  21581. \`$as_me' instantiates files and other configuration actions
  21582. from templates according to the current configuration. Unless the files
  21583. and actions are specified as TAGs, all are instantiated by default.
  21584. Usage: $0 [OPTION]... [TAG]...
  21585. -h, --help print this help, then exit
  21586. -V, --version print version number and configuration settings, then exit
  21587. --config print configuration, then exit
  21588. -q, --quiet, --silent
  21589. do not print progress messages
  21590. -d, --debug don't remove temporary files
  21591. --recheck update $as_me by reconfiguring in the same conditions
  21592. --file=FILE[:TEMPLATE]
  21593. instantiate the configuration file FILE
  21594. --header=FILE[:TEMPLATE]
  21595. instantiate the configuration header FILE
  21596. Configuration files:
  21597. $config_files
  21598. Configuration headers:
  21599. $config_headers
  21600. Configuration commands:
  21601. $config_commands
  21602. Report bugs to the package provider."
  21603. _ACEOF
  21604. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21605. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21606. ac_cs_version="\\
  21607. config.status
  21608. configured by $0, generated by GNU Autoconf 2.69,
  21609. with options \\"\$ac_cs_config\\"
  21610. Copyright (C) 2012 Free Software Foundation, Inc.
  21611. This config.status script is free software; the Free Software Foundation
  21612. gives unlimited permission to copy, distribute and modify it."
  21613. ac_pwd='$ac_pwd'
  21614. srcdir='$srcdir'
  21615. INSTALL='$INSTALL'
  21616. AWK='$AWK'
  21617. test -n "\$AWK" || AWK=awk
  21618. _ACEOF
  21619. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21620. # The default lists apply if the user does not specify any file.
  21621. ac_need_defaults=:
  21622. while test $# != 0
  21623. do
  21624. case $1 in
  21625. --*=?*)
  21626. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21627. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21628. ac_shift=:
  21629. ;;
  21630. --*=)
  21631. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21632. ac_optarg=
  21633. ac_shift=:
  21634. ;;
  21635. *)
  21636. ac_option=$1
  21637. ac_optarg=$2
  21638. ac_shift=shift
  21639. ;;
  21640. esac
  21641. case $ac_option in
  21642. # Handling of the options.
  21643. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21644. ac_cs_recheck=: ;;
  21645. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21646. $as_echo "$ac_cs_version"; exit ;;
  21647. --config | --confi | --conf | --con | --co | --c )
  21648. $as_echo "$ac_cs_config"; exit ;;
  21649. --debug | --debu | --deb | --de | --d | -d )
  21650. debug=: ;;
  21651. --file | --fil | --fi | --f )
  21652. $ac_shift
  21653. case $ac_optarg in
  21654. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21655. '') as_fn_error $? "missing file argument" ;;
  21656. esac
  21657. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21658. ac_need_defaults=false;;
  21659. --header | --heade | --head | --hea )
  21660. $ac_shift
  21661. case $ac_optarg in
  21662. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21663. esac
  21664. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21665. ac_need_defaults=false;;
  21666. --he | --h)
  21667. # Conflict between --help and --header
  21668. as_fn_error $? "ambiguous option: \`$1'
  21669. Try \`$0 --help' for more information.";;
  21670. --help | --hel | -h )
  21671. $as_echo "$ac_cs_usage"; exit ;;
  21672. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21673. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21674. ac_cs_silent=: ;;
  21675. # This is an error.
  21676. -*) as_fn_error $? "unrecognized option: \`$1'
  21677. Try \`$0 --help' for more information." ;;
  21678. *) as_fn_append ac_config_targets " $1"
  21679. ac_need_defaults=false ;;
  21680. esac
  21681. shift
  21682. done
  21683. ac_configure_extra_args=
  21684. if $ac_cs_silent; then
  21685. exec 6>/dev/null
  21686. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21687. fi
  21688. _ACEOF
  21689. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21690. if \$ac_cs_recheck; then
  21691. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21692. shift
  21693. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21694. CONFIG_SHELL='$SHELL'
  21695. export CONFIG_SHELL
  21696. exec "\$@"
  21697. fi
  21698. _ACEOF
  21699. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21700. exec 5>>config.log
  21701. {
  21702. echo
  21703. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21704. ## Running $as_me. ##
  21705. _ASBOX
  21706. $as_echo "$ac_log"
  21707. } >&5
  21708. _ACEOF
  21709. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21710. #
  21711. # INIT-COMMANDS
  21712. #
  21713. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21714. # if CDPATH is set.
  21715. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21716. sed_quote_subst='$sed_quote_subst'
  21717. double_quote_subst='$double_quote_subst'
  21718. delay_variable_subst='$delay_variable_subst'
  21719. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21720. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21721. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21722. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21723. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21724. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21725. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21726. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21727. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21728. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21729. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21730. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21731. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21732. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21733. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21734. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21735. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21736. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21737. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21738. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21739. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21740. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21741. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21742. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21743. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21744. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21745. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21746. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21747. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21748. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21749. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21750. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21751. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21752. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21753. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21754. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21755. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21756. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21757. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21758. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21759. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21760. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21761. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21762. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21763. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21764. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21765. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21766. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21767. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21768. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21769. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21770. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21771. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21772. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21773. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21774. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21775. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21776. 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"`'
  21777. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21778. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21779. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21780. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21781. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21782. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21783. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21784. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21785. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21786. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21787. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21788. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21789. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21790. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21791. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21792. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21793. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21794. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21795. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21796. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21797. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21798. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21799. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21800. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21801. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21802. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21803. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21804. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21805. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21806. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21807. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21808. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21809. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21810. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21811. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21812. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21813. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21814. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21815. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21816. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21817. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21818. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21819. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21820. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21821. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21822. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21823. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21824. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21825. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21826. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21827. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21828. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21829. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21830. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21831. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21832. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21833. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21834. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21835. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21836. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21837. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21838. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21839. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21840. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21841. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21842. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21843. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21844. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21845. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21846. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21847. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21848. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21849. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21850. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21851. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21852. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21853. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21854. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21855. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21856. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21857. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21858. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21859. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21860. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21861. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21862. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21863. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21864. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21865. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21866. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21867. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21868. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21869. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21870. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21871. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21872. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21873. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21874. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21875. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21876. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21877. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21878. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21879. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21880. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21881. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21882. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21883. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21884. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21885. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21886. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21887. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21888. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21889. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21890. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21891. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21892. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21893. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21894. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21895. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21896. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21897. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21898. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21899. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21900. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21901. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21902. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21903. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21904. LTCC='$LTCC'
  21905. LTCFLAGS='$LTCFLAGS'
  21906. compiler='$compiler_DEFAULT'
  21907. # A function that is used when there is no print builtin or printf.
  21908. func_fallback_echo ()
  21909. {
  21910. eval 'cat <<_LTECHO_EOF
  21911. \$1
  21912. _LTECHO_EOF'
  21913. }
  21914. # Quote evaled strings.
  21915. for var in AS \
  21916. DLLTOOL \
  21917. OBJDUMP \
  21918. SHELL \
  21919. ECHO \
  21920. PATH_SEPARATOR \
  21921. SED \
  21922. GREP \
  21923. EGREP \
  21924. FGREP \
  21925. LD \
  21926. NM \
  21927. LN_S \
  21928. lt_SP2NL \
  21929. lt_NL2SP \
  21930. reload_flag \
  21931. deplibs_check_method \
  21932. file_magic_cmd \
  21933. file_magic_glob \
  21934. want_nocaseglob \
  21935. sharedlib_from_linklib_cmd \
  21936. AR \
  21937. AR_FLAGS \
  21938. archiver_list_spec \
  21939. STRIP \
  21940. RANLIB \
  21941. CC \
  21942. CFLAGS \
  21943. compiler \
  21944. lt_cv_sys_global_symbol_pipe \
  21945. lt_cv_sys_global_symbol_to_cdecl \
  21946. lt_cv_sys_global_symbol_to_c_name_address \
  21947. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21948. nm_file_list_spec \
  21949. lt_prog_compiler_no_builtin_flag \
  21950. lt_prog_compiler_pic \
  21951. lt_prog_compiler_wl \
  21952. lt_prog_compiler_static \
  21953. lt_cv_prog_compiler_c_o \
  21954. need_locks \
  21955. MANIFEST_TOOL \
  21956. DSYMUTIL \
  21957. NMEDIT \
  21958. LIPO \
  21959. OTOOL \
  21960. OTOOL64 \
  21961. shrext_cmds \
  21962. export_dynamic_flag_spec \
  21963. whole_archive_flag_spec \
  21964. compiler_needs_object \
  21965. with_gnu_ld \
  21966. allow_undefined_flag \
  21967. no_undefined_flag \
  21968. hardcode_libdir_flag_spec \
  21969. hardcode_libdir_separator \
  21970. exclude_expsyms \
  21971. include_expsyms \
  21972. file_list_spec \
  21973. variables_saved_for_relink \
  21974. libname_spec \
  21975. library_names_spec \
  21976. soname_spec \
  21977. install_override_mode \
  21978. finish_eval \
  21979. old_striplib \
  21980. striplib \
  21981. compiler_lib_search_dirs \
  21982. predep_objects \
  21983. postdep_objects \
  21984. predeps \
  21985. postdeps \
  21986. compiler_lib_search_path \
  21987. LD_CXX \
  21988. reload_flag_CXX \
  21989. compiler_CXX \
  21990. lt_prog_compiler_no_builtin_flag_CXX \
  21991. lt_prog_compiler_pic_CXX \
  21992. lt_prog_compiler_wl_CXX \
  21993. lt_prog_compiler_static_CXX \
  21994. lt_cv_prog_compiler_c_o_CXX \
  21995. export_dynamic_flag_spec_CXX \
  21996. whole_archive_flag_spec_CXX \
  21997. compiler_needs_object_CXX \
  21998. with_gnu_ld_CXX \
  21999. allow_undefined_flag_CXX \
  22000. no_undefined_flag_CXX \
  22001. hardcode_libdir_flag_spec_CXX \
  22002. hardcode_libdir_separator_CXX \
  22003. exclude_expsyms_CXX \
  22004. include_expsyms_CXX \
  22005. file_list_spec_CXX \
  22006. compiler_lib_search_dirs_CXX \
  22007. predep_objects_CXX \
  22008. postdep_objects_CXX \
  22009. predeps_CXX \
  22010. postdeps_CXX \
  22011. compiler_lib_search_path_CXX; do
  22012. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22013. *[\\\\\\\`\\"\\\$]*)
  22014. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22015. ;;
  22016. *)
  22017. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22018. ;;
  22019. esac
  22020. done
  22021. # Double-quote double-evaled strings.
  22022. for var in reload_cmds \
  22023. old_postinstall_cmds \
  22024. old_postuninstall_cmds \
  22025. old_archive_cmds \
  22026. extract_expsyms_cmds \
  22027. old_archive_from_new_cmds \
  22028. old_archive_from_expsyms_cmds \
  22029. archive_cmds \
  22030. archive_expsym_cmds \
  22031. module_cmds \
  22032. module_expsym_cmds \
  22033. export_symbols_cmds \
  22034. prelink_cmds \
  22035. postlink_cmds \
  22036. postinstall_cmds \
  22037. postuninstall_cmds \
  22038. finish_cmds \
  22039. sys_lib_search_path_spec \
  22040. sys_lib_dlsearch_path_spec \
  22041. reload_cmds_CXX \
  22042. old_archive_cmds_CXX \
  22043. old_archive_from_new_cmds_CXX \
  22044. old_archive_from_expsyms_cmds_CXX \
  22045. archive_cmds_CXX \
  22046. archive_expsym_cmds_CXX \
  22047. module_cmds_CXX \
  22048. module_expsym_cmds_CXX \
  22049. export_symbols_cmds_CXX \
  22050. prelink_cmds_CXX \
  22051. postlink_cmds_CXX; do
  22052. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22053. *[\\\\\\\`\\"\\\$]*)
  22054. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22055. ;;
  22056. *)
  22057. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22058. ;;
  22059. esac
  22060. done
  22061. ac_aux_dir='$ac_aux_dir'
  22062. xsi_shell='$xsi_shell'
  22063. lt_shell_append='$lt_shell_append'
  22064. # See if we are running on zsh, and set the options which allow our
  22065. # commands through without removal of \ escapes INIT.
  22066. if test -n "\${ZSH_VERSION+set}" ; then
  22067. setopt NO_GLOB_SUBST
  22068. fi
  22069. PACKAGE='$PACKAGE'
  22070. VERSION='$VERSION'
  22071. TIMESTAMP='$TIMESTAMP'
  22072. RM='$RM'
  22073. ofile='$ofile'
  22074. SUMMARY="$SUMMARY"
  22075. _ACEOF
  22076. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22077. # Handling of arguments.
  22078. for ac_config_target in $ac_config_targets
  22079. do
  22080. case $ac_config_target in
  22081. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22082. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22083. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22084. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22085. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22086. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22087. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22088. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22089. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22090. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22091. esac
  22092. done
  22093. # If the user did not use the arguments to specify the items to instantiate,
  22094. # then the envvar interface is used. Set only those that are not.
  22095. # We use the long form for the default assignment because of an extremely
  22096. # bizarre bug on SunOS 4.1.3.
  22097. if $ac_need_defaults; then
  22098. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22099. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22100. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22101. fi
  22102. # Have a temporary directory for convenience. Make it in the build tree
  22103. # simply because there is no reason against having it here, and in addition,
  22104. # creating and moving files from /tmp can sometimes cause problems.
  22105. # Hook for its removal unless debugging.
  22106. # Note that there is a small window in which the directory will not be cleaned:
  22107. # after its creation but before its name has been assigned to `$tmp'.
  22108. $debug ||
  22109. {
  22110. tmp= ac_tmp=
  22111. trap 'exit_status=$?
  22112. : "${ac_tmp:=$tmp}"
  22113. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22114. ' 0
  22115. trap 'as_fn_exit 1' 1 2 13 15
  22116. }
  22117. # Create a (secure) tmp directory for tmp files.
  22118. {
  22119. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22120. test -d "$tmp"
  22121. } ||
  22122. {
  22123. tmp=./conf$$-$RANDOM
  22124. (umask 077 && mkdir "$tmp")
  22125. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22126. ac_tmp=$tmp
  22127. # Set up the scripts for CONFIG_FILES section.
  22128. # No need to generate them if there are no CONFIG_FILES.
  22129. # This happens for instance with `./config.status config.h'.
  22130. if test -n "$CONFIG_FILES"; then
  22131. ac_cr=`echo X | tr X '\015'`
  22132. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22133. # But we know of no other shell where ac_cr would be empty at this
  22134. # point, so we can use a bashism as a fallback.
  22135. if test "x$ac_cr" = x; then
  22136. eval ac_cr=\$\'\\r\'
  22137. fi
  22138. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22139. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22140. ac_cs_awk_cr='\\r'
  22141. else
  22142. ac_cs_awk_cr=$ac_cr
  22143. fi
  22144. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22145. _ACEOF
  22146. {
  22147. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22148. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22149. echo "_ACEOF"
  22150. } >conf$$subs.sh ||
  22151. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22152. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22153. ac_delim='%!_!# '
  22154. for ac_last_try in false false false false false :; do
  22155. . ./conf$$subs.sh ||
  22156. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22157. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22158. if test $ac_delim_n = $ac_delim_num; then
  22159. break
  22160. elif $ac_last_try; then
  22161. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22162. else
  22163. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22164. fi
  22165. done
  22166. rm -f conf$$subs.sh
  22167. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22168. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22169. _ACEOF
  22170. sed -n '
  22171. h
  22172. s/^/S["/; s/!.*/"]=/
  22173. p
  22174. g
  22175. s/^[^!]*!//
  22176. :repl
  22177. t repl
  22178. s/'"$ac_delim"'$//
  22179. t delim
  22180. :nl
  22181. h
  22182. s/\(.\{148\}\)..*/\1/
  22183. t more1
  22184. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22185. p
  22186. n
  22187. b repl
  22188. :more1
  22189. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22190. p
  22191. g
  22192. s/.\{148\}//
  22193. t nl
  22194. :delim
  22195. h
  22196. s/\(.\{148\}\)..*/\1/
  22197. t more2
  22198. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22199. p
  22200. b
  22201. :more2
  22202. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22203. p
  22204. g
  22205. s/.\{148\}//
  22206. t delim
  22207. ' <conf$$subs.awk | sed '
  22208. /^[^""]/{
  22209. N
  22210. s/\n//
  22211. }
  22212. ' >>$CONFIG_STATUS || ac_write_fail=1
  22213. rm -f conf$$subs.awk
  22214. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22215. _ACAWK
  22216. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22217. for (key in S) S_is_set[key] = 1
  22218. FS = ""
  22219. }
  22220. {
  22221. line = $ 0
  22222. nfields = split(line, field, "@")
  22223. substed = 0
  22224. len = length(field[1])
  22225. for (i = 2; i < nfields; i++) {
  22226. key = field[i]
  22227. keylen = length(key)
  22228. if (S_is_set[key]) {
  22229. value = S[key]
  22230. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22231. len += length(value) + length(field[++i])
  22232. substed = 1
  22233. } else
  22234. len += 1 + keylen
  22235. }
  22236. print line
  22237. }
  22238. _ACAWK
  22239. _ACEOF
  22240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22241. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22242. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22243. else
  22244. cat
  22245. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22246. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22247. _ACEOF
  22248. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22249. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22250. # trailing colons and then remove the whole line if VPATH becomes empty
  22251. # (actually we leave an empty line to preserve line numbers).
  22252. if test "x$srcdir" = x.; then
  22253. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22254. h
  22255. s///
  22256. s/^/:/
  22257. s/[ ]*$/:/
  22258. s/:\$(srcdir):/:/g
  22259. s/:\${srcdir}:/:/g
  22260. s/:@srcdir@:/:/g
  22261. s/^:*//
  22262. s/:*$//
  22263. x
  22264. s/\(=[ ]*\).*/\1/
  22265. G
  22266. s/\n//
  22267. s/^[^=]*=[ ]*$//
  22268. }'
  22269. fi
  22270. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22271. fi # test -n "$CONFIG_FILES"
  22272. # Set up the scripts for CONFIG_HEADERS section.
  22273. # No need to generate them if there are no CONFIG_HEADERS.
  22274. # This happens for instance with `./config.status Makefile'.
  22275. if test -n "$CONFIG_HEADERS"; then
  22276. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22277. BEGIN {
  22278. _ACEOF
  22279. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22280. # here-document in config.status, that substitutes the proper values into
  22281. # config.h.in to produce config.h.
  22282. # Create a delimiter string that does not exist in confdefs.h, to ease
  22283. # handling of long lines.
  22284. ac_delim='%!_!# '
  22285. for ac_last_try in false false :; do
  22286. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22287. if test -z "$ac_tt"; then
  22288. break
  22289. elif $ac_last_try; then
  22290. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22291. else
  22292. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22293. fi
  22294. done
  22295. # For the awk script, D is an array of macro values keyed by name,
  22296. # likewise P contains macro parameters if any. Preserve backslash
  22297. # newline sequences.
  22298. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22299. sed -n '
  22300. s/.\{148\}/&'"$ac_delim"'/g
  22301. t rset
  22302. :rset
  22303. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22304. t def
  22305. d
  22306. :def
  22307. s/\\$//
  22308. t bsnl
  22309. s/["\\]/\\&/g
  22310. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22311. D["\1"]=" \3"/p
  22312. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22313. d
  22314. :bsnl
  22315. s/["\\]/\\&/g
  22316. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22317. D["\1"]=" \3\\\\\\n"\\/p
  22318. t cont
  22319. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22320. t cont
  22321. d
  22322. :cont
  22323. n
  22324. s/.\{148\}/&'"$ac_delim"'/g
  22325. t clear
  22326. :clear
  22327. s/\\$//
  22328. t bsnlc
  22329. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22330. d
  22331. :bsnlc
  22332. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22333. b cont
  22334. ' <confdefs.h | sed '
  22335. s/'"$ac_delim"'/"\\\
  22336. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22337. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22338. for (key in D) D_is_set[key] = 1
  22339. FS = ""
  22340. }
  22341. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22342. line = \$ 0
  22343. split(line, arg, " ")
  22344. if (arg[1] == "#") {
  22345. defundef = arg[2]
  22346. mac1 = arg[3]
  22347. } else {
  22348. defundef = substr(arg[1], 2)
  22349. mac1 = arg[2]
  22350. }
  22351. split(mac1, mac2, "(") #)
  22352. macro = mac2[1]
  22353. prefix = substr(line, 1, index(line, defundef) - 1)
  22354. if (D_is_set[macro]) {
  22355. # Preserve the white space surrounding the "#".
  22356. print prefix "define", macro P[macro] D[macro]
  22357. next
  22358. } else {
  22359. # Replace #undef with comments. This is necessary, for example,
  22360. # in the case of _POSIX_SOURCE, which is predefined and required
  22361. # on some systems where configure will not decide to define it.
  22362. if (defundef == "undef") {
  22363. print "/*", prefix defundef, macro, "*/"
  22364. next
  22365. }
  22366. }
  22367. }
  22368. { print }
  22369. _ACAWK
  22370. _ACEOF
  22371. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22372. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22373. fi # test -n "$CONFIG_HEADERS"
  22374. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22375. shift
  22376. for ac_tag
  22377. do
  22378. case $ac_tag in
  22379. :[FHLC]) ac_mode=$ac_tag; continue;;
  22380. esac
  22381. case $ac_mode$ac_tag in
  22382. :[FHL]*:*);;
  22383. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22384. :[FH]-) ac_tag=-:-;;
  22385. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22386. esac
  22387. ac_save_IFS=$IFS
  22388. IFS=:
  22389. set x $ac_tag
  22390. IFS=$ac_save_IFS
  22391. shift
  22392. ac_file=$1
  22393. shift
  22394. case $ac_mode in
  22395. :L) ac_source=$1;;
  22396. :[FH])
  22397. ac_file_inputs=
  22398. for ac_f
  22399. do
  22400. case $ac_f in
  22401. -) ac_f="$ac_tmp/stdin";;
  22402. *) # Look for the file first in the build tree, then in the source tree
  22403. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22404. # because $ac_f cannot contain `:'.
  22405. test -f "$ac_f" ||
  22406. case $ac_f in
  22407. [\\/$]*) false;;
  22408. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22409. esac ||
  22410. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22411. esac
  22412. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22413. as_fn_append ac_file_inputs " '$ac_f'"
  22414. done
  22415. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22416. # use $as_me), people would be surprised to read:
  22417. # /* config.h. Generated by config.status. */
  22418. configure_input='Generated from '`
  22419. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22420. `' by configure.'
  22421. if test x"$ac_file" != x-; then
  22422. configure_input="$ac_file. $configure_input"
  22423. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22424. $as_echo "$as_me: creating $ac_file" >&6;}
  22425. fi
  22426. # Neutralize special characters interpreted by sed in replacement strings.
  22427. case $configure_input in #(
  22428. *\&* | *\|* | *\\* )
  22429. ac_sed_conf_input=`$as_echo "$configure_input" |
  22430. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22431. *) ac_sed_conf_input=$configure_input;;
  22432. esac
  22433. case $ac_tag in
  22434. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22435. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22436. esac
  22437. ;;
  22438. esac
  22439. ac_dir=`$as_dirname -- "$ac_file" ||
  22440. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22441. X"$ac_file" : 'X\(//\)[^/]' \| \
  22442. X"$ac_file" : 'X\(//\)$' \| \
  22443. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22444. $as_echo X"$ac_file" |
  22445. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22446. s//\1/
  22447. q
  22448. }
  22449. /^X\(\/\/\)[^/].*/{
  22450. s//\1/
  22451. q
  22452. }
  22453. /^X\(\/\/\)$/{
  22454. s//\1/
  22455. q
  22456. }
  22457. /^X\(\/\).*/{
  22458. s//\1/
  22459. q
  22460. }
  22461. s/.*/./; q'`
  22462. as_dir="$ac_dir"; as_fn_mkdir_p
  22463. ac_builddir=.
  22464. case "$ac_dir" in
  22465. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22466. *)
  22467. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22468. # A ".." for each directory in $ac_dir_suffix.
  22469. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22470. case $ac_top_builddir_sub in
  22471. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22472. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22473. esac ;;
  22474. esac
  22475. ac_abs_top_builddir=$ac_pwd
  22476. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22477. # for backward compatibility:
  22478. ac_top_builddir=$ac_top_build_prefix
  22479. case $srcdir in
  22480. .) # We are building in place.
  22481. ac_srcdir=.
  22482. ac_top_srcdir=$ac_top_builddir_sub
  22483. ac_abs_top_srcdir=$ac_pwd ;;
  22484. [\\/]* | ?:[\\/]* ) # Absolute name.
  22485. ac_srcdir=$srcdir$ac_dir_suffix;
  22486. ac_top_srcdir=$srcdir
  22487. ac_abs_top_srcdir=$srcdir ;;
  22488. *) # Relative name.
  22489. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22490. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22491. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22492. esac
  22493. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22494. case $ac_mode in
  22495. :F)
  22496. #
  22497. # CONFIG_FILE
  22498. #
  22499. case $INSTALL in
  22500. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22501. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22502. esac
  22503. _ACEOF
  22504. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22505. # If the template does not know about datarootdir, expand it.
  22506. # FIXME: This hack should be removed a few years after 2.60.
  22507. ac_datarootdir_hack=; ac_datarootdir_seen=
  22508. ac_sed_dataroot='
  22509. /datarootdir/ {
  22510. p
  22511. q
  22512. }
  22513. /@datadir@/p
  22514. /@docdir@/p
  22515. /@infodir@/p
  22516. /@localedir@/p
  22517. /@mandir@/p'
  22518. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22519. *datarootdir*) ac_datarootdir_seen=yes;;
  22520. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22522. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22523. _ACEOF
  22524. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22525. ac_datarootdir_hack='
  22526. s&@datadir@&$datadir&g
  22527. s&@docdir@&$docdir&g
  22528. s&@infodir@&$infodir&g
  22529. s&@localedir@&$localedir&g
  22530. s&@mandir@&$mandir&g
  22531. s&\\\${datarootdir}&$datarootdir&g' ;;
  22532. esac
  22533. _ACEOF
  22534. # Neutralize VPATH when `$srcdir' = `.'.
  22535. # Shell code in configure.ac might set extrasub.
  22536. # FIXME: do we really want to maintain this feature?
  22537. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22538. ac_sed_extra="$ac_vpsub
  22539. $extrasub
  22540. _ACEOF
  22541. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22542. :t
  22543. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22544. s|@configure_input@|$ac_sed_conf_input|;t t
  22545. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22546. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22547. s&@srcdir@&$ac_srcdir&;t t
  22548. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22549. s&@top_srcdir@&$ac_top_srcdir&;t t
  22550. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22551. s&@builddir@&$ac_builddir&;t t
  22552. s&@abs_builddir@&$ac_abs_builddir&;t t
  22553. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22554. s&@INSTALL@&$ac_INSTALL&;t t
  22555. $ac_datarootdir_hack
  22556. "
  22557. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22558. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22559. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22560. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22561. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22562. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22563. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22564. which seems to be undefined. Please make sure it is defined" >&5
  22565. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22566. which seems to be undefined. Please make sure it is defined" >&2;}
  22567. rm -f "$ac_tmp/stdin"
  22568. case $ac_file in
  22569. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22570. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22571. esac \
  22572. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22573. ;;
  22574. :H)
  22575. #
  22576. # CONFIG_HEADER
  22577. #
  22578. if test x"$ac_file" != x-; then
  22579. {
  22580. $as_echo "/* $configure_input */" \
  22581. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22582. } >"$ac_tmp/config.h" \
  22583. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22584. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22585. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22586. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22587. else
  22588. rm -f "$ac_file"
  22589. mv "$ac_tmp/config.h" "$ac_file" \
  22590. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22591. fi
  22592. else
  22593. $as_echo "/* $configure_input */" \
  22594. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22595. || as_fn_error $? "could not create -" "$LINENO" 5
  22596. fi
  22597. ;;
  22598. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22599. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22600. ;;
  22601. esac
  22602. case $ac_file$ac_mode in
  22603. "libtool":C)
  22604. # See if we are running on zsh, and set the options which allow our
  22605. # commands through without removal of \ escapes.
  22606. if test -n "${ZSH_VERSION+set}" ; then
  22607. setopt NO_GLOB_SUBST
  22608. fi
  22609. cfgfile="${ofile}T"
  22610. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22611. $RM "$cfgfile"
  22612. cat <<_LT_EOF >> "$cfgfile"
  22613. #! $SHELL
  22614. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22615. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22616. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22617. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22618. #
  22619. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22620. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22621. # Foundation, Inc.
  22622. # Written by Gordon Matzigkeit, 1996
  22623. #
  22624. # This file is part of GNU Libtool.
  22625. #
  22626. # GNU Libtool is free software; you can redistribute it and/or
  22627. # modify it under the terms of the GNU General Public License as
  22628. # published by the Free Software Foundation; either version 2 of
  22629. # the License, or (at your option) any later version.
  22630. #
  22631. # As a special exception to the GNU General Public License,
  22632. # if you distribute this file as part of a program or library that
  22633. # is built using GNU Libtool, you may include this file under the
  22634. # same distribution terms that you use for the rest of that program.
  22635. #
  22636. # GNU Libtool is distributed in the hope that it will be useful,
  22637. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22638. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22639. # GNU General Public License for more details.
  22640. #
  22641. # You should have received a copy of the GNU General Public License
  22642. # along with GNU Libtool; see the file COPYING. If not, a copy
  22643. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22644. # obtained by writing to the Free Software Foundation, Inc.,
  22645. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22646. # The names of the tagged configurations supported by this script.
  22647. available_tags="CXX "
  22648. # ### BEGIN LIBTOOL CONFIG
  22649. # Which release of libtool.m4 was used?
  22650. macro_version=$macro_version
  22651. macro_revision=$macro_revision
  22652. # Assembler program.
  22653. AS=$lt_AS
  22654. # DLL creation program.
  22655. DLLTOOL=$lt_DLLTOOL
  22656. # Object dumper program.
  22657. OBJDUMP=$lt_OBJDUMP
  22658. # Whether or not to build shared libraries.
  22659. build_libtool_libs=$enable_shared
  22660. # Whether or not to build static libraries.
  22661. build_old_libs=$enable_static
  22662. # What type of objects to build.
  22663. pic_mode=$pic_mode
  22664. # Whether or not to optimize for fast installation.
  22665. fast_install=$enable_fast_install
  22666. # Shell to use when invoking shell scripts.
  22667. SHELL=$lt_SHELL
  22668. # An echo program that protects backslashes.
  22669. ECHO=$lt_ECHO
  22670. # The PATH separator for the build system.
  22671. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22672. # The host system.
  22673. host_alias=$host_alias
  22674. host=$host
  22675. host_os=$host_os
  22676. # The build system.
  22677. build_alias=$build_alias
  22678. build=$build
  22679. build_os=$build_os
  22680. # A sed program that does not truncate output.
  22681. SED=$lt_SED
  22682. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22683. Xsed="\$SED -e 1s/^X//"
  22684. # A grep program that handles long lines.
  22685. GREP=$lt_GREP
  22686. # An ERE matcher.
  22687. EGREP=$lt_EGREP
  22688. # A literal string matcher.
  22689. FGREP=$lt_FGREP
  22690. # A BSD- or MS-compatible name lister.
  22691. NM=$lt_NM
  22692. # Whether we need soft or hard links.
  22693. LN_S=$lt_LN_S
  22694. # What is the maximum length of a command?
  22695. max_cmd_len=$max_cmd_len
  22696. # Object file suffix (normally "o").
  22697. objext=$ac_objext
  22698. # Executable file suffix (normally "").
  22699. exeext=$exeext
  22700. # whether the shell understands "unset".
  22701. lt_unset=$lt_unset
  22702. # turn spaces into newlines.
  22703. SP2NL=$lt_lt_SP2NL
  22704. # turn newlines into spaces.
  22705. NL2SP=$lt_lt_NL2SP
  22706. # convert \$build file names to \$host format.
  22707. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22708. # convert \$build files to toolchain format.
  22709. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22710. # Method to check whether dependent libraries are shared objects.
  22711. deplibs_check_method=$lt_deplibs_check_method
  22712. # Command to use when deplibs_check_method = "file_magic".
  22713. file_magic_cmd=$lt_file_magic_cmd
  22714. # How to find potential files when deplibs_check_method = "file_magic".
  22715. file_magic_glob=$lt_file_magic_glob
  22716. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22717. want_nocaseglob=$lt_want_nocaseglob
  22718. # Command to associate shared and link libraries.
  22719. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22720. # The archiver.
  22721. AR=$lt_AR
  22722. # Flags to create an archive.
  22723. AR_FLAGS=$lt_AR_FLAGS
  22724. # How to feed a file listing to the archiver.
  22725. archiver_list_spec=$lt_archiver_list_spec
  22726. # A symbol stripping program.
  22727. STRIP=$lt_STRIP
  22728. # Commands used to install an old-style archive.
  22729. RANLIB=$lt_RANLIB
  22730. old_postinstall_cmds=$lt_old_postinstall_cmds
  22731. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22732. # Whether to use a lock for old archive extraction.
  22733. lock_old_archive_extraction=$lock_old_archive_extraction
  22734. # A C compiler.
  22735. LTCC=$lt_CC
  22736. # LTCC compiler flags.
  22737. LTCFLAGS=$lt_CFLAGS
  22738. # Take the output of nm and produce a listing of raw symbols and C names.
  22739. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22740. # Transform the output of nm in a proper C declaration.
  22741. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22742. # Transform the output of nm in a C name address pair.
  22743. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22744. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22745. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22746. # Specify filename containing input files for \$NM.
  22747. nm_file_list_spec=$lt_nm_file_list_spec
  22748. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22749. lt_sysroot=$lt_sysroot
  22750. # The name of the directory that contains temporary libtool files.
  22751. objdir=$objdir
  22752. # Used to examine libraries when file_magic_cmd begins with "file".
  22753. MAGIC_CMD=$MAGIC_CMD
  22754. # Must we lock files when doing compilation?
  22755. need_locks=$lt_need_locks
  22756. # Manifest tool.
  22757. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22758. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22759. DSYMUTIL=$lt_DSYMUTIL
  22760. # Tool to change global to local symbols on Mac OS X.
  22761. NMEDIT=$lt_NMEDIT
  22762. # Tool to manipulate fat objects and archives on Mac OS X.
  22763. LIPO=$lt_LIPO
  22764. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22765. OTOOL=$lt_OTOOL
  22766. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22767. OTOOL64=$lt_OTOOL64
  22768. # Old archive suffix (normally "a").
  22769. libext=$libext
  22770. # Shared library suffix (normally ".so").
  22771. shrext_cmds=$lt_shrext_cmds
  22772. # The commands to extract the exported symbol list from a shared archive.
  22773. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22774. # Variables whose values should be saved in libtool wrapper scripts and
  22775. # restored at link time.
  22776. variables_saved_for_relink=$lt_variables_saved_for_relink
  22777. # Do we need the "lib" prefix for modules?
  22778. need_lib_prefix=$need_lib_prefix
  22779. # Do we need a version for libraries?
  22780. need_version=$need_version
  22781. # Library versioning type.
  22782. version_type=$version_type
  22783. # Shared library runtime path variable.
  22784. runpath_var=$runpath_var
  22785. # Shared library path variable.
  22786. shlibpath_var=$shlibpath_var
  22787. # Is shlibpath searched before the hard-coded library search path?
  22788. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22789. # Format of library name prefix.
  22790. libname_spec=$lt_libname_spec
  22791. # List of archive names. First name is the real one, the rest are links.
  22792. # The last name is the one that the linker finds with -lNAME
  22793. library_names_spec=$lt_library_names_spec
  22794. # The coded name of the library, if different from the real name.
  22795. soname_spec=$lt_soname_spec
  22796. # Permission mode override for installation of shared libraries.
  22797. install_override_mode=$lt_install_override_mode
  22798. # Command to use after installation of a shared archive.
  22799. postinstall_cmds=$lt_postinstall_cmds
  22800. # Command to use after uninstallation of a shared archive.
  22801. postuninstall_cmds=$lt_postuninstall_cmds
  22802. # Commands used to finish a libtool library installation in a directory.
  22803. finish_cmds=$lt_finish_cmds
  22804. # As "finish_cmds", except a single script fragment to be evaled but
  22805. # not shown.
  22806. finish_eval=$lt_finish_eval
  22807. # Whether we should hardcode library paths into libraries.
  22808. hardcode_into_libs=$hardcode_into_libs
  22809. # Compile-time system search path for libraries.
  22810. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22811. # Run-time system search path for libraries.
  22812. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22813. # Whether dlopen is supported.
  22814. dlopen_support=$enable_dlopen
  22815. # Whether dlopen of programs is supported.
  22816. dlopen_self=$enable_dlopen_self
  22817. # Whether dlopen of statically linked programs is supported.
  22818. dlopen_self_static=$enable_dlopen_self_static
  22819. # Commands to strip libraries.
  22820. old_striplib=$lt_old_striplib
  22821. striplib=$lt_striplib
  22822. # The linker used to build libraries.
  22823. LD=$lt_LD
  22824. # How to create reloadable object files.
  22825. reload_flag=$lt_reload_flag
  22826. reload_cmds=$lt_reload_cmds
  22827. # Commands used to build an old-style archive.
  22828. old_archive_cmds=$lt_old_archive_cmds
  22829. # A language specific compiler.
  22830. CC=$lt_compiler
  22831. # Is the compiler the GNU compiler?
  22832. with_gcc=$GCC
  22833. # Compiler flag to turn off builtin functions.
  22834. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22835. # Additional compiler flags for building library objects.
  22836. pic_flag=$lt_lt_prog_compiler_pic
  22837. # How to pass a linker flag through the compiler.
  22838. wl=$lt_lt_prog_compiler_wl
  22839. # Compiler flag to prevent dynamic linking.
  22840. link_static_flag=$lt_lt_prog_compiler_static
  22841. # Does compiler simultaneously support -c and -o options?
  22842. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22843. # Whether or not to add -lc for building shared libraries.
  22844. build_libtool_need_lc=$archive_cmds_need_lc
  22845. # Whether or not to disallow shared libs when runtime libs are static.
  22846. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22847. # Compiler flag to allow reflexive dlopens.
  22848. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22849. # Compiler flag to generate shared objects directly from archives.
  22850. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22851. # Whether the compiler copes with passing no objects directly.
  22852. compiler_needs_object=$lt_compiler_needs_object
  22853. # Create an old-style archive from a shared archive.
  22854. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22855. # Create a temporary old-style archive to link instead of a shared archive.
  22856. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22857. # Commands used to build a shared archive.
  22858. archive_cmds=$lt_archive_cmds
  22859. archive_expsym_cmds=$lt_archive_expsym_cmds
  22860. # Commands used to build a loadable module if different from building
  22861. # a shared archive.
  22862. module_cmds=$lt_module_cmds
  22863. module_expsym_cmds=$lt_module_expsym_cmds
  22864. # Whether we are building with GNU ld or not.
  22865. with_gnu_ld=$lt_with_gnu_ld
  22866. # Flag that allows shared libraries with undefined symbols to be built.
  22867. allow_undefined_flag=$lt_allow_undefined_flag
  22868. # Flag that enforces no undefined symbols.
  22869. no_undefined_flag=$lt_no_undefined_flag
  22870. # Flag to hardcode \$libdir into a binary during linking.
  22871. # This must work even if \$libdir does not exist
  22872. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22873. # Whether we need a single "-rpath" flag with a separated argument.
  22874. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22875. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22876. # DIR into the resulting binary.
  22877. hardcode_direct=$hardcode_direct
  22878. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22879. # DIR into the resulting binary and the resulting library dependency is
  22880. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22881. # library is relocated.
  22882. hardcode_direct_absolute=$hardcode_direct_absolute
  22883. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22884. # into the resulting binary.
  22885. hardcode_minus_L=$hardcode_minus_L
  22886. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22887. # into the resulting binary.
  22888. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22889. # Set to "yes" if building a shared library automatically hardcodes DIR
  22890. # into the library and all subsequent libraries and executables linked
  22891. # against it.
  22892. hardcode_automatic=$hardcode_automatic
  22893. # Set to yes if linker adds runtime paths of dependent libraries
  22894. # to runtime path list.
  22895. inherit_rpath=$inherit_rpath
  22896. # Whether libtool must link a program against all its dependency libraries.
  22897. link_all_deplibs=$link_all_deplibs
  22898. # Set to "yes" if exported symbols are required.
  22899. always_export_symbols=$always_export_symbols
  22900. # The commands to list exported symbols.
  22901. export_symbols_cmds=$lt_export_symbols_cmds
  22902. # Symbols that should not be listed in the preloaded symbols.
  22903. exclude_expsyms=$lt_exclude_expsyms
  22904. # Symbols that must always be exported.
  22905. include_expsyms=$lt_include_expsyms
  22906. # Commands necessary for linking programs (against libraries) with templates.
  22907. prelink_cmds=$lt_prelink_cmds
  22908. # Commands necessary for finishing linking programs.
  22909. postlink_cmds=$lt_postlink_cmds
  22910. # Specify filename containing input files.
  22911. file_list_spec=$lt_file_list_spec
  22912. # How to hardcode a shared library path into an executable.
  22913. hardcode_action=$hardcode_action
  22914. # The directories searched by this compiler when creating a shared library.
  22915. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22916. # Dependencies to place before and after the objects being linked to
  22917. # create a shared library.
  22918. predep_objects=$lt_predep_objects
  22919. postdep_objects=$lt_postdep_objects
  22920. predeps=$lt_predeps
  22921. postdeps=$lt_postdeps
  22922. # The library search path used internally by the compiler when linking
  22923. # a shared library.
  22924. compiler_lib_search_path=$lt_compiler_lib_search_path
  22925. # ### END LIBTOOL CONFIG
  22926. _LT_EOF
  22927. case $host_os in
  22928. aix3*)
  22929. cat <<\_LT_EOF >> "$cfgfile"
  22930. # AIX sometimes has problems with the GCC collect2 program. For some
  22931. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22932. # vanish in a puff of smoke.
  22933. if test "X${COLLECT_NAMES+set}" != Xset; then
  22934. COLLECT_NAMES=
  22935. export COLLECT_NAMES
  22936. fi
  22937. _LT_EOF
  22938. ;;
  22939. esac
  22940. ltmain="$ac_aux_dir/ltmain.sh"
  22941. # We use sed instead of cat because bash on DJGPP gets confused if
  22942. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22943. # text mode, it properly converts lines to CR/LF. This bash problem
  22944. # is reportedly fixed, but why not run on old versions too?
  22945. sed '$q' "$ltmain" >> "$cfgfile" \
  22946. || (rm -f "$cfgfile"; exit 1)
  22947. if test x"$xsi_shell" = xyes; then
  22948. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22949. func_dirname ()\
  22950. {\
  22951. \ case ${1} in\
  22952. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22953. \ * ) func_dirname_result="${3}" ;;\
  22954. \ esac\
  22955. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22956. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22957. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22958. test 0 -eq $? || _lt_function_replace_fail=:
  22959. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22960. func_basename ()\
  22961. {\
  22962. \ func_basename_result="${1##*/}"\
  22963. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22964. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22965. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22966. test 0 -eq $? || _lt_function_replace_fail=:
  22967. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22968. func_dirname_and_basename ()\
  22969. {\
  22970. \ case ${1} in\
  22971. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22972. \ * ) func_dirname_result="${3}" ;;\
  22973. \ esac\
  22974. \ func_basename_result="${1##*/}"\
  22975. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22976. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22977. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22978. test 0 -eq $? || _lt_function_replace_fail=:
  22979. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22980. func_stripname ()\
  22981. {\
  22982. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22983. \ # positional parameters, so assign one to ordinary parameter first.\
  22984. \ func_stripname_result=${3}\
  22985. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22986. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22987. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22988. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22989. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22990. test 0 -eq $? || _lt_function_replace_fail=:
  22991. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22992. func_split_long_opt ()\
  22993. {\
  22994. \ func_split_long_opt_name=${1%%=*}\
  22995. \ func_split_long_opt_arg=${1#*=}\
  22996. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22997. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22998. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22999. test 0 -eq $? || _lt_function_replace_fail=:
  23000. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23001. func_split_short_opt ()\
  23002. {\
  23003. \ func_split_short_opt_arg=${1#??}\
  23004. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23005. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23006. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23007. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23008. test 0 -eq $? || _lt_function_replace_fail=:
  23009. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23010. func_lo2o ()\
  23011. {\
  23012. \ case ${1} in\
  23013. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23014. \ *) func_lo2o_result=${1} ;;\
  23015. \ esac\
  23016. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23017. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23018. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23019. test 0 -eq $? || _lt_function_replace_fail=:
  23020. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23021. func_xform ()\
  23022. {\
  23023. func_xform_result=${1%.*}.lo\
  23024. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23025. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23026. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23027. test 0 -eq $? || _lt_function_replace_fail=:
  23028. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23029. func_arith ()\
  23030. {\
  23031. func_arith_result=$(( $* ))\
  23032. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23033. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23034. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23035. test 0 -eq $? || _lt_function_replace_fail=:
  23036. sed -e '/^func_len ()$/,/^} # func_len /c\
  23037. func_len ()\
  23038. {\
  23039. func_len_result=${#1}\
  23040. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23041. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23042. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23043. test 0 -eq $? || _lt_function_replace_fail=:
  23044. fi
  23045. if test x"$lt_shell_append" = xyes; then
  23046. sed -e '/^func_append ()$/,/^} # func_append /c\
  23047. func_append ()\
  23048. {\
  23049. eval "${1}+=\\${2}"\
  23050. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23051. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23052. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23053. test 0 -eq $? || _lt_function_replace_fail=:
  23054. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23055. func_append_quoted ()\
  23056. {\
  23057. \ func_quote_for_eval "${2}"\
  23058. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23059. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23060. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23061. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23062. test 0 -eq $? || _lt_function_replace_fail=:
  23063. # Save a `func_append' function call where possible by direct use of '+='
  23064. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23065. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23066. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23067. test 0 -eq $? || _lt_function_replace_fail=:
  23068. else
  23069. # Save a `func_append' function call even when '+=' is not available
  23070. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23071. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23072. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23073. test 0 -eq $? || _lt_function_replace_fail=:
  23074. fi
  23075. if test x"$_lt_function_replace_fail" = x":"; then
  23076. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23077. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23078. fi
  23079. mv -f "$cfgfile" "$ofile" ||
  23080. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23081. chmod +x "$ofile"
  23082. cat <<_LT_EOF >> "$ofile"
  23083. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23084. # The linker used to build libraries.
  23085. LD=$lt_LD_CXX
  23086. # How to create reloadable object files.
  23087. reload_flag=$lt_reload_flag_CXX
  23088. reload_cmds=$lt_reload_cmds_CXX
  23089. # Commands used to build an old-style archive.
  23090. old_archive_cmds=$lt_old_archive_cmds_CXX
  23091. # A language specific compiler.
  23092. CC=$lt_compiler_CXX
  23093. # Is the compiler the GNU compiler?
  23094. with_gcc=$GCC_CXX
  23095. # Compiler flag to turn off builtin functions.
  23096. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23097. # Additional compiler flags for building library objects.
  23098. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23099. # How to pass a linker flag through the compiler.
  23100. wl=$lt_lt_prog_compiler_wl_CXX
  23101. # Compiler flag to prevent dynamic linking.
  23102. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23103. # Does compiler simultaneously support -c and -o options?
  23104. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23105. # Whether or not to add -lc for building shared libraries.
  23106. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23107. # Whether or not to disallow shared libs when runtime libs are static.
  23108. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23109. # Compiler flag to allow reflexive dlopens.
  23110. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23111. # Compiler flag to generate shared objects directly from archives.
  23112. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23113. # Whether the compiler copes with passing no objects directly.
  23114. compiler_needs_object=$lt_compiler_needs_object_CXX
  23115. # Create an old-style archive from a shared archive.
  23116. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23117. # Create a temporary old-style archive to link instead of a shared archive.
  23118. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23119. # Commands used to build a shared archive.
  23120. archive_cmds=$lt_archive_cmds_CXX
  23121. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23122. # Commands used to build a loadable module if different from building
  23123. # a shared archive.
  23124. module_cmds=$lt_module_cmds_CXX
  23125. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23126. # Whether we are building with GNU ld or not.
  23127. with_gnu_ld=$lt_with_gnu_ld_CXX
  23128. # Flag that allows shared libraries with undefined symbols to be built.
  23129. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23130. # Flag that enforces no undefined symbols.
  23131. no_undefined_flag=$lt_no_undefined_flag_CXX
  23132. # Flag to hardcode \$libdir into a binary during linking.
  23133. # This must work even if \$libdir does not exist
  23134. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23135. # Whether we need a single "-rpath" flag with a separated argument.
  23136. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23137. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23138. # DIR into the resulting binary.
  23139. hardcode_direct=$hardcode_direct_CXX
  23140. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23141. # DIR into the resulting binary and the resulting library dependency is
  23142. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23143. # library is relocated.
  23144. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23145. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23146. # into the resulting binary.
  23147. hardcode_minus_L=$hardcode_minus_L_CXX
  23148. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23149. # into the resulting binary.
  23150. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23151. # Set to "yes" if building a shared library automatically hardcodes DIR
  23152. # into the library and all subsequent libraries and executables linked
  23153. # against it.
  23154. hardcode_automatic=$hardcode_automatic_CXX
  23155. # Set to yes if linker adds runtime paths of dependent libraries
  23156. # to runtime path list.
  23157. inherit_rpath=$inherit_rpath_CXX
  23158. # Whether libtool must link a program against all its dependency libraries.
  23159. link_all_deplibs=$link_all_deplibs_CXX
  23160. # Set to "yes" if exported symbols are required.
  23161. always_export_symbols=$always_export_symbols_CXX
  23162. # The commands to list exported symbols.
  23163. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23164. # Symbols that should not be listed in the preloaded symbols.
  23165. exclude_expsyms=$lt_exclude_expsyms_CXX
  23166. # Symbols that must always be exported.
  23167. include_expsyms=$lt_include_expsyms_CXX
  23168. # Commands necessary for linking programs (against libraries) with templates.
  23169. prelink_cmds=$lt_prelink_cmds_CXX
  23170. # Commands necessary for finishing linking programs.
  23171. postlink_cmds=$lt_postlink_cmds_CXX
  23172. # Specify filename containing input files.
  23173. file_list_spec=$lt_file_list_spec_CXX
  23174. # How to hardcode a shared library path into an executable.
  23175. hardcode_action=$hardcode_action_CXX
  23176. # The directories searched by this compiler when creating a shared library.
  23177. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23178. # Dependencies to place before and after the objects being linked to
  23179. # create a shared library.
  23180. predep_objects=$lt_predep_objects_CXX
  23181. postdep_objects=$lt_postdep_objects_CXX
  23182. predeps=$lt_predeps_CXX
  23183. postdeps=$lt_postdeps_CXX
  23184. # The library search path used internally by the compiler when linking
  23185. # a shared library.
  23186. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23187. # ### END LIBTOOL TAG CONFIG: CXX
  23188. _LT_EOF
  23189. ;;
  23190. "sdl2_config":C) chmod a+x sdl2-config ;;
  23191. "summary":C) echo -en "$SUMMARY" ;;
  23192. esac
  23193. done # for ac_tag
  23194. as_fn_exit 0
  23195. _ACEOF
  23196. ac_clean_files=$ac_clean_files_save
  23197. test $ac_write_fail = 0 ||
  23198. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23199. # configure is writing to config.log, and then calls config.status.
  23200. # config.status does its own redirection, appending to config.log.
  23201. # Unfortunately, on DOS this fails, as config.log is still kept open
  23202. # by configure, so config.status won't be able to write to it; its
  23203. # output is simply discarded. So we exec the FD to /dev/null,
  23204. # effectively closing config.log, so it can be properly (re)opened and
  23205. # appended to by config.status. When coming back to configure, we
  23206. # need to make the FD available again.
  23207. if test "$no_create" != yes; then
  23208. ac_cs_success=:
  23209. ac_config_status_args=
  23210. test "$silent" = yes &&
  23211. ac_config_status_args="$ac_config_status_args --quiet"
  23212. exec 5>/dev/null
  23213. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23214. exec 5>>config.log
  23215. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23216. # would make configure fail if this is the last instruction.
  23217. $ac_cs_success || as_fn_exit 1
  23218. fi
  23219. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23221. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23222. fi