configure 396 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for zlib 1.1.4.
  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='zlib'
  539. PACKAGE_TARNAME='zlib'
  540. PACKAGE_VERSION='1.1.4'
  541. PACKAGE_STRING='zlib 1.1.4'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="zlib.h"
  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_header_list=
  581. ac_subst_vars='am__EXEEXT_FALSE
  582. am__EXEEXT_TRUE
  583. LTLIBOBJS
  584. LIBOBJS
  585. PICFLAG
  586. TARGET_LIBRARY_FALSE
  587. TARGET_LIBRARY_TRUE
  588. toolexeclibdir
  589. toolexecdir
  590. CPP
  591. OTOOL64
  592. OTOOL
  593. LIPO
  594. NMEDIT
  595. DSYMUTIL
  596. RANLIB
  597. AR
  598. OBJDUMP
  599. LN_S
  600. NM
  601. ac_ct_DUMPBIN
  602. DUMPBIN
  603. LD
  604. FGREP
  605. EGREP
  606. GREP
  607. SED
  608. LIBTOOL
  609. CET_FLAGS
  610. am__fastdepCC_FALSE
  611. am__fastdepCC_TRUE
  612. CCDEPMODE
  613. am__nodep
  614. AMDEPBACKSLASH
  615. AMDEP_FALSE
  616. AMDEP_TRUE
  617. am__quote
  618. am__include
  619. DEPDIR
  620. OBJEXT
  621. EXEEXT
  622. ac_ct_CC
  623. CPPFLAGS
  624. LDFLAGS
  625. CFLAGS
  626. CC
  627. COMPPATH
  628. MAINT
  629. MAINTAINER_MODE_FALSE
  630. MAINTAINER_MODE_TRUE
  631. AM_BACKSLASH
  632. AM_DEFAULT_VERBOSITY
  633. AM_DEFAULT_V
  634. AM_V
  635. am__untar
  636. am__tar
  637. AMTAR
  638. am__leading_dot
  639. SET_MAKE
  640. AWK
  641. mkdir_p
  642. MKDIR_P
  643. INSTALL_STRIP_PROGRAM
  644. STRIP
  645. install_sh
  646. MAKEINFO
  647. AUTOHEADER
  648. AUTOMAKE
  649. AUTOCONF
  650. ACLOCAL
  651. VERSION
  652. PACKAGE
  653. CYGPATH_W
  654. am__isrc
  655. INSTALL_DATA
  656. INSTALL_SCRIPT
  657. INSTALL_PROGRAM
  658. mkinstalldirs
  659. target_os
  660. target_vendor
  661. target_cpu
  662. target
  663. host_os
  664. host_vendor
  665. host_cpu
  666. host
  667. build_os
  668. build_vendor
  669. build_cpu
  670. build
  671. multi_basedir
  672. target_alias
  673. host_alias
  674. build_alias
  675. LIBS
  676. ECHO_T
  677. ECHO_N
  678. ECHO_C
  679. DEFS
  680. mandir
  681. localedir
  682. libdir
  683. psdir
  684. pdfdir
  685. dvidir
  686. htmldir
  687. infodir
  688. docdir
  689. oldincludedir
  690. includedir
  691. localstatedir
  692. sharedstatedir
  693. sysconfdir
  694. datadir
  695. datarootdir
  696. libexecdir
  697. sbindir
  698. bindir
  699. program_transform_name
  700. prefix
  701. exec_prefix
  702. PACKAGE_URL
  703. PACKAGE_BUGREPORT
  704. PACKAGE_STRING
  705. PACKAGE_VERSION
  706. PACKAGE_TARNAME
  707. PACKAGE_NAME
  708. PATH_SEPARATOR
  709. SHELL'
  710. ac_subst_files=''
  711. ac_user_opts='
  712. enable_option_checking
  713. enable_multilib
  714. enable_silent_rules
  715. enable_maintainer_mode
  716. with_target_subdir
  717. with_cross_host
  718. with_system_zlib
  719. enable_dependency_tracking
  720. enable_cet
  721. enable_shared
  722. enable_static
  723. with_pic
  724. enable_fast_install
  725. with_gnu_ld
  726. enable_libtool_lock
  727. with_toolexeclibdir
  728. enable_host_shared
  729. '
  730. ac_precious_vars='build_alias
  731. host_alias
  732. target_alias
  733. CPP
  734. CPPFLAGS'
  735. # Initialize some variables set by options.
  736. ac_init_help=
  737. ac_init_version=false
  738. ac_unrecognized_opts=
  739. ac_unrecognized_sep=
  740. # The variables have the same names as the options, with
  741. # dashes changed to underlines.
  742. cache_file=/dev/null
  743. exec_prefix=NONE
  744. no_create=
  745. no_recursion=
  746. prefix=NONE
  747. program_prefix=NONE
  748. program_suffix=NONE
  749. program_transform_name=s,x,x,
  750. silent=
  751. site=
  752. srcdir=
  753. verbose=
  754. x_includes=NONE
  755. x_libraries=NONE
  756. # Installation directory options.
  757. # These are left unexpanded so users can "make install exec_prefix=/foo"
  758. # and all the variables that are supposed to be based on exec_prefix
  759. # by default will actually change.
  760. # Use braces instead of parens because sh, perl, etc. also accept them.
  761. # (The list follows the same order as the GNU Coding Standards.)
  762. bindir='${exec_prefix}/bin'
  763. sbindir='${exec_prefix}/sbin'
  764. libexecdir='${exec_prefix}/libexec'
  765. datarootdir='${prefix}/share'
  766. datadir='${datarootdir}'
  767. sysconfdir='${prefix}/etc'
  768. sharedstatedir='${prefix}/com'
  769. localstatedir='${prefix}/var'
  770. includedir='${prefix}/include'
  771. oldincludedir='/usr/include'
  772. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  773. infodir='${datarootdir}/info'
  774. htmldir='${docdir}'
  775. dvidir='${docdir}'
  776. pdfdir='${docdir}'
  777. psdir='${docdir}'
  778. libdir='${exec_prefix}/lib'
  779. localedir='${datarootdir}/locale'
  780. mandir='${datarootdir}/man'
  781. ac_prev=
  782. ac_dashdash=
  783. for ac_option
  784. do
  785. # If the previous option needs an argument, assign it.
  786. if test -n "$ac_prev"; then
  787. eval $ac_prev=\$ac_option
  788. ac_prev=
  789. continue
  790. fi
  791. case $ac_option in
  792. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  793. *=) ac_optarg= ;;
  794. *) ac_optarg=yes ;;
  795. esac
  796. # Accept the important Cygnus configure options, so we can diagnose typos.
  797. case $ac_dashdash$ac_option in
  798. --)
  799. ac_dashdash=yes ;;
  800. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  801. ac_prev=bindir ;;
  802. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  803. bindir=$ac_optarg ;;
  804. -build | --build | --buil | --bui | --bu)
  805. ac_prev=build_alias ;;
  806. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  807. build_alias=$ac_optarg ;;
  808. -cache-file | --cache-file | --cache-fil | --cache-fi \
  809. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  810. ac_prev=cache_file ;;
  811. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  812. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  813. cache_file=$ac_optarg ;;
  814. --config-cache | -C)
  815. cache_file=config.cache ;;
  816. -datadir | --datadir | --datadi | --datad)
  817. ac_prev=datadir ;;
  818. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  819. datadir=$ac_optarg ;;
  820. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  821. | --dataroo | --dataro | --datar)
  822. ac_prev=datarootdir ;;
  823. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  824. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  825. datarootdir=$ac_optarg ;;
  826. -disable-* | --disable-*)
  827. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  828. # Reject names that are not valid shell variable names.
  829. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  830. as_fn_error $? "invalid feature name: $ac_useropt"
  831. ac_useropt_orig=$ac_useropt
  832. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  833. case $ac_user_opts in
  834. *"
  835. "enable_$ac_useropt"
  836. "*) ;;
  837. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  838. ac_unrecognized_sep=', ';;
  839. esac
  840. eval enable_$ac_useropt=no ;;
  841. -docdir | --docdir | --docdi | --doc | --do)
  842. ac_prev=docdir ;;
  843. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  844. docdir=$ac_optarg ;;
  845. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  846. ac_prev=dvidir ;;
  847. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  848. dvidir=$ac_optarg ;;
  849. -enable-* | --enable-*)
  850. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  851. # Reject names that are not valid shell variable names.
  852. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  853. as_fn_error $? "invalid feature name: $ac_useropt"
  854. ac_useropt_orig=$ac_useropt
  855. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  856. case $ac_user_opts in
  857. *"
  858. "enable_$ac_useropt"
  859. "*) ;;
  860. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  861. ac_unrecognized_sep=', ';;
  862. esac
  863. eval enable_$ac_useropt=\$ac_optarg ;;
  864. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  865. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  866. | --exec | --exe | --ex)
  867. ac_prev=exec_prefix ;;
  868. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  869. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  870. | --exec=* | --exe=* | --ex=*)
  871. exec_prefix=$ac_optarg ;;
  872. -gas | --gas | --ga | --g)
  873. # Obsolete; use --with-gas.
  874. with_gas=yes ;;
  875. -help | --help | --hel | --he | -h)
  876. ac_init_help=long ;;
  877. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  878. ac_init_help=recursive ;;
  879. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  880. ac_init_help=short ;;
  881. -host | --host | --hos | --ho)
  882. ac_prev=host_alias ;;
  883. -host=* | --host=* | --hos=* | --ho=*)
  884. host_alias=$ac_optarg ;;
  885. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  886. ac_prev=htmldir ;;
  887. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  888. | --ht=*)
  889. htmldir=$ac_optarg ;;
  890. -includedir | --includedir | --includedi | --included | --include \
  891. | --includ | --inclu | --incl | --inc)
  892. ac_prev=includedir ;;
  893. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  894. | --includ=* | --inclu=* | --incl=* | --inc=*)
  895. includedir=$ac_optarg ;;
  896. -infodir | --infodir | --infodi | --infod | --info | --inf)
  897. ac_prev=infodir ;;
  898. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  899. infodir=$ac_optarg ;;
  900. -libdir | --libdir | --libdi | --libd)
  901. ac_prev=libdir ;;
  902. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  903. libdir=$ac_optarg ;;
  904. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  905. | --libexe | --libex | --libe)
  906. ac_prev=libexecdir ;;
  907. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  908. | --libexe=* | --libex=* | --libe=*)
  909. libexecdir=$ac_optarg ;;
  910. -localedir | --localedir | --localedi | --localed | --locale)
  911. ac_prev=localedir ;;
  912. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  913. localedir=$ac_optarg ;;
  914. -localstatedir | --localstatedir | --localstatedi | --localstated \
  915. | --localstate | --localstat | --localsta | --localst | --locals)
  916. ac_prev=localstatedir ;;
  917. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  918. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  919. localstatedir=$ac_optarg ;;
  920. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  921. ac_prev=mandir ;;
  922. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  923. mandir=$ac_optarg ;;
  924. -nfp | --nfp | --nf)
  925. # Obsolete; use --without-fp.
  926. with_fp=no ;;
  927. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  928. | --no-cr | --no-c | -n)
  929. no_create=yes ;;
  930. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  931. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  932. no_recursion=yes ;;
  933. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  934. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  935. | --oldin | --oldi | --old | --ol | --o)
  936. ac_prev=oldincludedir ;;
  937. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  938. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  939. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  940. oldincludedir=$ac_optarg ;;
  941. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  942. ac_prev=prefix ;;
  943. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  944. prefix=$ac_optarg ;;
  945. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  946. | --program-pre | --program-pr | --program-p)
  947. ac_prev=program_prefix ;;
  948. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  949. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  950. program_prefix=$ac_optarg ;;
  951. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  952. | --program-suf | --program-su | --program-s)
  953. ac_prev=program_suffix ;;
  954. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  955. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  956. program_suffix=$ac_optarg ;;
  957. -program-transform-name | --program-transform-name \
  958. | --program-transform-nam | --program-transform-na \
  959. | --program-transform-n | --program-transform- \
  960. | --program-transform | --program-transfor \
  961. | --program-transfo | --program-transf \
  962. | --program-trans | --program-tran \
  963. | --progr-tra | --program-tr | --program-t)
  964. ac_prev=program_transform_name ;;
  965. -program-transform-name=* | --program-transform-name=* \
  966. | --program-transform-nam=* | --program-transform-na=* \
  967. | --program-transform-n=* | --program-transform-=* \
  968. | --program-transform=* | --program-transfor=* \
  969. | --program-transfo=* | --program-transf=* \
  970. | --program-trans=* | --program-tran=* \
  971. | --progr-tra=* | --program-tr=* | --program-t=*)
  972. program_transform_name=$ac_optarg ;;
  973. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  974. ac_prev=pdfdir ;;
  975. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  976. pdfdir=$ac_optarg ;;
  977. -psdir | --psdir | --psdi | --psd | --ps)
  978. ac_prev=psdir ;;
  979. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  980. psdir=$ac_optarg ;;
  981. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  982. | -silent | --silent | --silen | --sile | --sil)
  983. silent=yes ;;
  984. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  985. ac_prev=sbindir ;;
  986. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  987. | --sbi=* | --sb=*)
  988. sbindir=$ac_optarg ;;
  989. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  990. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  991. | --sharedst | --shareds | --shared | --share | --shar \
  992. | --sha | --sh)
  993. ac_prev=sharedstatedir ;;
  994. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  995. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  996. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  997. | --sha=* | --sh=*)
  998. sharedstatedir=$ac_optarg ;;
  999. -site | --site | --sit)
  1000. ac_prev=site ;;
  1001. -site=* | --site=* | --sit=*)
  1002. site=$ac_optarg ;;
  1003. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1004. ac_prev=srcdir ;;
  1005. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1006. srcdir=$ac_optarg ;;
  1007. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1008. | --syscon | --sysco | --sysc | --sys | --sy)
  1009. ac_prev=sysconfdir ;;
  1010. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1011. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1012. sysconfdir=$ac_optarg ;;
  1013. -target | --target | --targe | --targ | --tar | --ta | --t)
  1014. ac_prev=target_alias ;;
  1015. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1016. target_alias=$ac_optarg ;;
  1017. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1018. verbose=yes ;;
  1019. -version | --version | --versio | --versi | --vers | -V)
  1020. ac_init_version=: ;;
  1021. -with-* | --with-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=\$ac_optarg ;;
  1036. -without-* | --without-*)
  1037. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1038. # Reject names that are not valid shell variable names.
  1039. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1040. as_fn_error $? "invalid package name: $ac_useropt"
  1041. ac_useropt_orig=$ac_useropt
  1042. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1043. case $ac_user_opts in
  1044. *"
  1045. "with_$ac_useropt"
  1046. "*) ;;
  1047. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1048. ac_unrecognized_sep=', ';;
  1049. esac
  1050. eval with_$ac_useropt=no ;;
  1051. --x)
  1052. # Obsolete; use --with-x.
  1053. with_x=yes ;;
  1054. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1055. | --x-incl | --x-inc | --x-in | --x-i)
  1056. ac_prev=x_includes ;;
  1057. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1058. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1059. x_includes=$ac_optarg ;;
  1060. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1061. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1062. ac_prev=x_libraries ;;
  1063. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1064. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1065. x_libraries=$ac_optarg ;;
  1066. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1067. Try \`$0 --help' for more information"
  1068. ;;
  1069. *=*)
  1070. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1071. # Reject names that are not valid shell variable names.
  1072. case $ac_envvar in #(
  1073. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1074. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1075. esac
  1076. eval $ac_envvar=\$ac_optarg
  1077. export $ac_envvar ;;
  1078. *)
  1079. # FIXME: should be removed in autoconf 3.0.
  1080. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1081. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1082. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1083. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1084. ;;
  1085. esac
  1086. done
  1087. if test -n "$ac_prev"; then
  1088. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1089. as_fn_error $? "missing argument to $ac_option"
  1090. fi
  1091. if test -n "$ac_unrecognized_opts"; then
  1092. case $enable_option_checking in
  1093. no) ;;
  1094. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1095. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1096. esac
  1097. fi
  1098. # Check all directory arguments for consistency.
  1099. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1100. datadir sysconfdir sharedstatedir localstatedir includedir \
  1101. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1102. libdir localedir mandir
  1103. do
  1104. eval ac_val=\$$ac_var
  1105. # Remove trailing slashes.
  1106. case $ac_val in
  1107. */ )
  1108. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1109. eval $ac_var=\$ac_val;;
  1110. esac
  1111. # Be sure to have absolute directory names.
  1112. case $ac_val in
  1113. [\\/$]* | ?:[\\/]* ) continue;;
  1114. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1115. esac
  1116. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1117. done
  1118. # There might be people who depend on the old broken behavior: `$host'
  1119. # used to hold the argument of --host etc.
  1120. # FIXME: To remove some day.
  1121. build=$build_alias
  1122. host=$host_alias
  1123. target=$target_alias
  1124. # FIXME: To remove some day.
  1125. if test "x$host_alias" != x; then
  1126. if test "x$build_alias" = x; then
  1127. cross_compiling=maybe
  1128. elif test "x$build_alias" != "x$host_alias"; then
  1129. cross_compiling=yes
  1130. fi
  1131. fi
  1132. ac_tool_prefix=
  1133. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1134. test "$silent" = yes && exec 6>/dev/null
  1135. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1136. ac_ls_di=`ls -di .` &&
  1137. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1138. as_fn_error $? "working directory cannot be determined"
  1139. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1140. as_fn_error $? "pwd does not report name of working directory"
  1141. # Find the source files, if location was not specified.
  1142. if test -z "$srcdir"; then
  1143. ac_srcdir_defaulted=yes
  1144. # Try the directory containing this script, then the parent directory.
  1145. ac_confdir=`$as_dirname -- "$as_myself" ||
  1146. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1147. X"$as_myself" : 'X\(//\)[^/]' \| \
  1148. X"$as_myself" : 'X\(//\)$' \| \
  1149. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1150. $as_echo X"$as_myself" |
  1151. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\/\)[^/].*/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\/\)$/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\).*/{
  1164. s//\1/
  1165. q
  1166. }
  1167. s/.*/./; q'`
  1168. srcdir=$ac_confdir
  1169. if test ! -r "$srcdir/$ac_unique_file"; then
  1170. srcdir=..
  1171. fi
  1172. else
  1173. ac_srcdir_defaulted=no
  1174. fi
  1175. if test ! -r "$srcdir/$ac_unique_file"; then
  1176. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1177. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1178. fi
  1179. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1180. ac_abs_confdir=`(
  1181. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1182. pwd)`
  1183. # When building in place, set srcdir=.
  1184. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1185. srcdir=.
  1186. fi
  1187. # Remove unnecessary trailing slashes from srcdir.
  1188. # Double slashes in file names in object file debugging info
  1189. # mess up M-x gdb in Emacs.
  1190. case $srcdir in
  1191. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1192. esac
  1193. for ac_var in $ac_precious_vars; do
  1194. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_env_${ac_var}_value=\$${ac_var}
  1196. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1197. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1198. done
  1199. #
  1200. # Report the --help message.
  1201. #
  1202. if test "$ac_init_help" = "long"; then
  1203. # Omit some internal or obsolete options to make the list less imposing.
  1204. # This message is too long to be a string in the A/UX 3.1 sh.
  1205. cat <<_ACEOF
  1206. \`configure' configures zlib 1.1.4 to adapt to many kinds of systems.
  1207. Usage: $0 [OPTION]... [VAR=VALUE]...
  1208. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1209. VAR=VALUE. See below for descriptions of some of the useful variables.
  1210. Defaults for the options are specified in brackets.
  1211. Configuration:
  1212. -h, --help display this help and exit
  1213. --help=short display options specific to this package
  1214. --help=recursive display the short help of all the included packages
  1215. -V, --version display version information and exit
  1216. -q, --quiet, --silent do not print \`checking ...' messages
  1217. --cache-file=FILE cache test results in FILE [disabled]
  1218. -C, --config-cache alias for \`--cache-file=config.cache'
  1219. -n, --no-create do not create output files
  1220. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1221. Installation directories:
  1222. --prefix=PREFIX install architecture-independent files in PREFIX
  1223. [$ac_default_prefix]
  1224. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1225. [PREFIX]
  1226. By default, \`make install' will install all the files in
  1227. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1228. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1229. for instance \`--prefix=\$HOME'.
  1230. For better control, use the options below.
  1231. Fine tuning of the installation directories:
  1232. --bindir=DIR user executables [EPREFIX/bin]
  1233. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1234. --libexecdir=DIR program executables [EPREFIX/libexec]
  1235. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1236. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1237. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1238. --libdir=DIR object code libraries [EPREFIX/lib]
  1239. --includedir=DIR C header files [PREFIX/include]
  1240. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1241. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1242. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1243. --infodir=DIR info documentation [DATAROOTDIR/info]
  1244. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1245. --mandir=DIR man documentation [DATAROOTDIR/man]
  1246. --docdir=DIR documentation root [DATAROOTDIR/doc/zlib]
  1247. --htmldir=DIR html documentation [DOCDIR]
  1248. --dvidir=DIR dvi documentation [DOCDIR]
  1249. --pdfdir=DIR pdf documentation [DOCDIR]
  1250. --psdir=DIR ps documentation [DOCDIR]
  1251. _ACEOF
  1252. cat <<\_ACEOF
  1253. Program names:
  1254. --program-prefix=PREFIX prepend PREFIX to installed program names
  1255. --program-suffix=SUFFIX append SUFFIX to installed program names
  1256. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1257. System types:
  1258. --build=BUILD configure for building on BUILD [guessed]
  1259. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1260. --target=TARGET configure for building compilers for TARGET [HOST]
  1261. _ACEOF
  1262. fi
  1263. if test -n "$ac_init_help"; then
  1264. case $ac_init_help in
  1265. short | recursive ) echo "Configuration of zlib 1.1.4:";;
  1266. esac
  1267. cat <<\_ACEOF
  1268. Optional Features:
  1269. --disable-option-checking ignore unrecognized --enable/--with options
  1270. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1271. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1272. --enable-multilib build many library versions (default)
  1273. --enable-silent-rules less verbose build output (undo: "make V=1")
  1274. --disable-silent-rules verbose build output (undo: "make V=0")
  1275. --enable-maintainer-mode
  1276. enable make rules and dependencies not useful (and
  1277. sometimes confusing) to the casual installer
  1278. --enable-dependency-tracking
  1279. do not reject slow dependency extractors
  1280. --disable-dependency-tracking
  1281. speeds up one-time build
  1282. --enable-cet enable Intel CET in target libraries [default=auto]
  1283. --enable-shared[=PKGS] build shared libraries [default=yes]
  1284. --enable-static[=PKGS] build static libraries [default=yes]
  1285. --enable-fast-install[=PKGS]
  1286. optimize for fast installation [default=yes]
  1287. --disable-libtool-lock avoid locking (might break parallel builds)
  1288. --enable-host-shared build host code as shared libraries
  1289. Optional Packages:
  1290. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1291. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1292. --with-target-subdir=SUBDIR
  1293. configuring in a subdirectory
  1294. --with-cross-host=HOST configuring with a cross compiler
  1295. --with-system-zlib use installed libz
  1296. --with-pic try to use only PIC/non-PIC objects [default=use
  1297. both]
  1298. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1299. --with-toolexeclibdir=DIR
  1300. install libraries built with a cross compiler within
  1301. DIR
  1302. Some influential environment variables:
  1303. CC C compiler command
  1304. CFLAGS C compiler flags
  1305. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1306. nonstandard directory <lib dir>
  1307. LIBS libraries to pass to the linker, e.g. -l<library>
  1308. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1309. you have headers in a nonstandard directory <include dir>
  1310. CPP C preprocessor
  1311. Use these variables to override the choices made by `configure' or to help
  1312. it to find libraries and programs with nonstandard names/locations.
  1313. Report bugs to the package provider.
  1314. _ACEOF
  1315. ac_status=$?
  1316. fi
  1317. if test "$ac_init_help" = "recursive"; then
  1318. # If there are subdirs, report their specific --help.
  1319. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1320. test -d "$ac_dir" ||
  1321. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1322. continue
  1323. ac_builddir=.
  1324. case "$ac_dir" in
  1325. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1326. *)
  1327. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1328. # A ".." for each directory in $ac_dir_suffix.
  1329. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1330. case $ac_top_builddir_sub in
  1331. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1332. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1333. esac ;;
  1334. esac
  1335. ac_abs_top_builddir=$ac_pwd
  1336. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1337. # for backward compatibility:
  1338. ac_top_builddir=$ac_top_build_prefix
  1339. case $srcdir in
  1340. .) # We are building in place.
  1341. ac_srcdir=.
  1342. ac_top_srcdir=$ac_top_builddir_sub
  1343. ac_abs_top_srcdir=$ac_pwd ;;
  1344. [\\/]* | ?:[\\/]* ) # Absolute name.
  1345. ac_srcdir=$srcdir$ac_dir_suffix;
  1346. ac_top_srcdir=$srcdir
  1347. ac_abs_top_srcdir=$srcdir ;;
  1348. *) # Relative name.
  1349. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1350. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1351. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1352. esac
  1353. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1354. cd "$ac_dir" || { ac_status=$?; continue; }
  1355. # Check for guested configure.
  1356. if test -f "$ac_srcdir/configure.gnu"; then
  1357. echo &&
  1358. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1359. elif test -f "$ac_srcdir/configure"; then
  1360. echo &&
  1361. $SHELL "$ac_srcdir/configure" --help=recursive
  1362. else
  1363. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1364. fi || ac_status=$?
  1365. cd "$ac_pwd" || { ac_status=$?; break; }
  1366. done
  1367. fi
  1368. test -n "$ac_init_help" && exit $ac_status
  1369. if $ac_init_version; then
  1370. cat <<\_ACEOF
  1371. zlib configure 1.1.4
  1372. generated by GNU Autoconf 2.69
  1373. Copyright (C) 2012 Free Software Foundation, Inc.
  1374. This configure script is free software; the Free Software Foundation
  1375. gives unlimited permission to copy, distribute and modify it.
  1376. _ACEOF
  1377. exit
  1378. fi
  1379. ## ------------------------ ##
  1380. ## Autoconf initialization. ##
  1381. ## ------------------------ ##
  1382. # ac_fn_c_try_compile LINENO
  1383. # --------------------------
  1384. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1385. ac_fn_c_try_compile ()
  1386. {
  1387. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1388. rm -f conftest.$ac_objext
  1389. if { { ac_try="$ac_compile"
  1390. case "(($ac_try" in
  1391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1392. *) ac_try_echo=$ac_try;;
  1393. esac
  1394. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1395. $as_echo "$ac_try_echo"; } >&5
  1396. (eval "$ac_compile") 2>conftest.err
  1397. ac_status=$?
  1398. if test -s conftest.err; then
  1399. grep -v '^ *+' conftest.err >conftest.er1
  1400. cat conftest.er1 >&5
  1401. mv -f conftest.er1 conftest.err
  1402. fi
  1403. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1404. test $ac_status = 0; } && {
  1405. test -z "$ac_c_werror_flag" ||
  1406. test ! -s conftest.err
  1407. } && test -s conftest.$ac_objext; then :
  1408. ac_retval=0
  1409. else
  1410. $as_echo "$as_me: failed program was:" >&5
  1411. sed 's/^/| /' conftest.$ac_ext >&5
  1412. ac_retval=1
  1413. fi
  1414. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1415. as_fn_set_status $ac_retval
  1416. } # ac_fn_c_try_compile
  1417. # ac_fn_c_try_link LINENO
  1418. # -----------------------
  1419. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1420. ac_fn_c_try_link ()
  1421. {
  1422. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1423. rm -f conftest.$ac_objext conftest$ac_exeext
  1424. if { { ac_try="$ac_link"
  1425. case "(($ac_try" in
  1426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1427. *) ac_try_echo=$ac_try;;
  1428. esac
  1429. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1430. $as_echo "$ac_try_echo"; } >&5
  1431. (eval "$ac_link") 2>conftest.err
  1432. ac_status=$?
  1433. if test -s conftest.err; then
  1434. grep -v '^ *+' conftest.err >conftest.er1
  1435. cat conftest.er1 >&5
  1436. mv -f conftest.er1 conftest.err
  1437. fi
  1438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1439. test $ac_status = 0; } && {
  1440. test -z "$ac_c_werror_flag" ||
  1441. test ! -s conftest.err
  1442. } && test -s conftest$ac_exeext && {
  1443. test "$cross_compiling" = yes ||
  1444. test -x conftest$ac_exeext
  1445. }; then :
  1446. ac_retval=0
  1447. else
  1448. $as_echo "$as_me: failed program was:" >&5
  1449. sed 's/^/| /' conftest.$ac_ext >&5
  1450. ac_retval=1
  1451. fi
  1452. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1453. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1454. # interfere with the next link command; also delete a directory that is
  1455. # left behind by Apple's compiler. We do this before executing the actions.
  1456. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1457. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1458. as_fn_set_status $ac_retval
  1459. } # ac_fn_c_try_link
  1460. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1461. # -------------------------------------------------------
  1462. # Tests whether HEADER exists and can be compiled using the include files in
  1463. # INCLUDES, setting the cache variable VAR accordingly.
  1464. ac_fn_c_check_header_compile ()
  1465. {
  1466. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1468. $as_echo_n "checking for $2... " >&6; }
  1469. if eval \${$3+:} false; then :
  1470. $as_echo_n "(cached) " >&6
  1471. else
  1472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1473. /* end confdefs.h. */
  1474. $4
  1475. #include <$2>
  1476. _ACEOF
  1477. if ac_fn_c_try_compile "$LINENO"; then :
  1478. eval "$3=yes"
  1479. else
  1480. eval "$3=no"
  1481. fi
  1482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1483. fi
  1484. eval ac_res=\$$3
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1486. $as_echo "$ac_res" >&6; }
  1487. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1488. } # ac_fn_c_check_header_compile
  1489. # ac_fn_c_try_cpp LINENO
  1490. # ----------------------
  1491. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_cpp ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1496. case "(($ac_try" in
  1497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1498. *) ac_try_echo=$ac_try;;
  1499. esac
  1500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1501. $as_echo "$ac_try_echo"; } >&5
  1502. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1503. ac_status=$?
  1504. if test -s conftest.err; then
  1505. grep -v '^ *+' conftest.err >conftest.er1
  1506. cat conftest.er1 >&5
  1507. mv -f conftest.er1 conftest.err
  1508. fi
  1509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1510. test $ac_status = 0; } > conftest.i && {
  1511. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1512. test ! -s conftest.err
  1513. }; then :
  1514. ac_retval=0
  1515. else
  1516. $as_echo "$as_me: failed program was:" >&5
  1517. sed 's/^/| /' conftest.$ac_ext >&5
  1518. ac_retval=1
  1519. fi
  1520. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1521. as_fn_set_status $ac_retval
  1522. } # ac_fn_c_try_cpp
  1523. # ac_fn_c_try_run LINENO
  1524. # ----------------------
  1525. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1526. # that executables *can* be run.
  1527. ac_fn_c_try_run ()
  1528. {
  1529. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1530. if { { ac_try="$ac_link"
  1531. case "(($ac_try" in
  1532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1533. *) ac_try_echo=$ac_try;;
  1534. esac
  1535. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1536. $as_echo "$ac_try_echo"; } >&5
  1537. (eval "$ac_link") 2>&5
  1538. ac_status=$?
  1539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1540. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1541. { { case "(($ac_try" in
  1542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1543. *) ac_try_echo=$ac_try;;
  1544. esac
  1545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1546. $as_echo "$ac_try_echo"; } >&5
  1547. (eval "$ac_try") 2>&5
  1548. ac_status=$?
  1549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1550. test $ac_status = 0; }; }; then :
  1551. ac_retval=0
  1552. else
  1553. $as_echo "$as_me: program exited with status $ac_status" >&5
  1554. $as_echo "$as_me: failed program was:" >&5
  1555. sed 's/^/| /' conftest.$ac_ext >&5
  1556. ac_retval=$ac_status
  1557. fi
  1558. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1559. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1560. as_fn_set_status $ac_retval
  1561. } # ac_fn_c_try_run
  1562. # ac_fn_c_check_func LINENO FUNC VAR
  1563. # ----------------------------------
  1564. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1565. ac_fn_c_check_func ()
  1566. {
  1567. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1569. $as_echo_n "checking for $2... " >&6; }
  1570. if eval \${$3+:} false; then :
  1571. $as_echo_n "(cached) " >&6
  1572. else
  1573. if test x$gcc_no_link = xyes; then
  1574. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1575. fi
  1576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1577. /* end confdefs.h. */
  1578. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1579. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1580. #define $2 innocuous_$2
  1581. /* System header to define __stub macros and hopefully few prototypes,
  1582. which can conflict with char $2 (); below.
  1583. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1584. <limits.h> exists even on freestanding compilers. */
  1585. #ifdef __STDC__
  1586. # include <limits.h>
  1587. #else
  1588. # include <assert.h>
  1589. #endif
  1590. #undef $2
  1591. /* Override any GCC internal prototype to avoid an error.
  1592. Use char because int might match the return type of a GCC
  1593. builtin and then its argument prototype would still apply. */
  1594. #ifdef __cplusplus
  1595. extern "C"
  1596. #endif
  1597. char $2 ();
  1598. /* The GNU C library defines this for functions which it implements
  1599. to always fail with ENOSYS. Some functions are actually named
  1600. something starting with __ and the normal name is an alias. */
  1601. #if defined __stub_$2 || defined __stub___$2
  1602. choke me
  1603. #endif
  1604. int
  1605. main ()
  1606. {
  1607. return $2 ();
  1608. ;
  1609. return 0;
  1610. }
  1611. _ACEOF
  1612. if ac_fn_c_try_link "$LINENO"; then :
  1613. eval "$3=yes"
  1614. else
  1615. eval "$3=no"
  1616. fi
  1617. rm -f core conftest.err conftest.$ac_objext \
  1618. conftest$ac_exeext conftest.$ac_ext
  1619. fi
  1620. eval ac_res=\$$3
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1622. $as_echo "$ac_res" >&6; }
  1623. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1624. } # ac_fn_c_check_func
  1625. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1626. # -------------------------------------------------------
  1627. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1628. # the include files in INCLUDES and setting the cache variable VAR
  1629. # accordingly.
  1630. ac_fn_c_check_header_mongrel ()
  1631. {
  1632. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1633. if eval \${$3+:} false; then :
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1635. $as_echo_n "checking for $2... " >&6; }
  1636. if eval \${$3+:} false; then :
  1637. $as_echo_n "(cached) " >&6
  1638. fi
  1639. eval ac_res=\$$3
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1641. $as_echo "$ac_res" >&6; }
  1642. else
  1643. # Is the header compilable?
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1645. $as_echo_n "checking $2 usability... " >&6; }
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. $4
  1649. #include <$2>
  1650. _ACEOF
  1651. if ac_fn_c_try_compile "$LINENO"; then :
  1652. ac_header_compiler=yes
  1653. else
  1654. ac_header_compiler=no
  1655. fi
  1656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1658. $as_echo "$ac_header_compiler" >&6; }
  1659. # Is the header present?
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1661. $as_echo_n "checking $2 presence... " >&6; }
  1662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1663. /* end confdefs.h. */
  1664. #include <$2>
  1665. _ACEOF
  1666. if ac_fn_c_try_cpp "$LINENO"; then :
  1667. ac_header_preproc=yes
  1668. else
  1669. ac_header_preproc=no
  1670. fi
  1671. rm -f conftest.err conftest.i conftest.$ac_ext
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1673. $as_echo "$ac_header_preproc" >&6; }
  1674. # So? What about this header?
  1675. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1676. yes:no: )
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1678. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1680. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1681. ;;
  1682. no:yes:* )
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1684. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1686. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1688. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1690. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1692. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1693. ;;
  1694. esac
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1696. $as_echo_n "checking for $2... " >&6; }
  1697. if eval \${$3+:} false; then :
  1698. $as_echo_n "(cached) " >&6
  1699. else
  1700. eval "$3=\$ac_header_compiler"
  1701. fi
  1702. eval ac_res=\$$3
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1704. $as_echo "$ac_res" >&6; }
  1705. fi
  1706. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1707. } # ac_fn_c_check_header_mongrel
  1708. cat >config.log <<_ACEOF
  1709. This file contains any messages produced by compilers while
  1710. running configure, to aid debugging if configure makes a mistake.
  1711. It was created by zlib $as_me 1.1.4, which was
  1712. generated by GNU Autoconf 2.69. Invocation command line was
  1713. $ $0 $@
  1714. _ACEOF
  1715. exec 5>>config.log
  1716. {
  1717. cat <<_ASUNAME
  1718. ## --------- ##
  1719. ## Platform. ##
  1720. ## --------- ##
  1721. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1722. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1723. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1724. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1725. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1726. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1727. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1728. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1729. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1730. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1731. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1732. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1733. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1734. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1735. _ASUNAME
  1736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1737. for as_dir in $PATH
  1738. do
  1739. IFS=$as_save_IFS
  1740. test -z "$as_dir" && as_dir=.
  1741. $as_echo "PATH: $as_dir"
  1742. done
  1743. IFS=$as_save_IFS
  1744. } >&5
  1745. cat >&5 <<_ACEOF
  1746. ## ----------- ##
  1747. ## Core tests. ##
  1748. ## ----------- ##
  1749. _ACEOF
  1750. # Keep a trace of the command line.
  1751. # Strip out --no-create and --no-recursion so they do not pile up.
  1752. # Strip out --silent because we don't want to record it for future runs.
  1753. # Also quote any args containing shell meta-characters.
  1754. # Make two passes to allow for proper duplicate-argument suppression.
  1755. ac_configure_args=
  1756. ac_configure_args0=
  1757. ac_configure_args1=
  1758. ac_must_keep_next=false
  1759. for ac_pass in 1 2
  1760. do
  1761. for ac_arg
  1762. do
  1763. case $ac_arg in
  1764. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1765. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1766. | -silent | --silent | --silen | --sile | --sil)
  1767. continue ;;
  1768. *\'*)
  1769. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1770. esac
  1771. case $ac_pass in
  1772. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1773. 2)
  1774. as_fn_append ac_configure_args1 " '$ac_arg'"
  1775. if test $ac_must_keep_next = true; then
  1776. ac_must_keep_next=false # Got value, back to normal.
  1777. else
  1778. case $ac_arg in
  1779. *=* | --config-cache | -C | -disable-* | --disable-* \
  1780. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1781. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1782. | -with-* | --with-* | -without-* | --without-* | --x)
  1783. case "$ac_configure_args0 " in
  1784. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1785. esac
  1786. ;;
  1787. -* ) ac_must_keep_next=true ;;
  1788. esac
  1789. fi
  1790. as_fn_append ac_configure_args " '$ac_arg'"
  1791. ;;
  1792. esac
  1793. done
  1794. done
  1795. { ac_configure_args0=; unset ac_configure_args0;}
  1796. { ac_configure_args1=; unset ac_configure_args1;}
  1797. # When interrupted or exit'd, cleanup temporary files, and complete
  1798. # config.log. We remove comments because anyway the quotes in there
  1799. # would cause problems or look ugly.
  1800. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1801. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1802. trap 'exit_status=$?
  1803. # Save into config.log some information that might help in debugging.
  1804. {
  1805. echo
  1806. $as_echo "## ---------------- ##
  1807. ## Cache variables. ##
  1808. ## ---------------- ##"
  1809. echo
  1810. # The following way of writing the cache mishandles newlines in values,
  1811. (
  1812. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1813. eval ac_val=\$$ac_var
  1814. case $ac_val in #(
  1815. *${as_nl}*)
  1816. case $ac_var in #(
  1817. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1818. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1819. esac
  1820. case $ac_var in #(
  1821. _ | IFS | as_nl) ;; #(
  1822. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1823. *) { eval $ac_var=; unset $ac_var;} ;;
  1824. esac ;;
  1825. esac
  1826. done
  1827. (set) 2>&1 |
  1828. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1829. *${as_nl}ac_space=\ *)
  1830. sed -n \
  1831. "s/'\''/'\''\\\\'\'''\''/g;
  1832. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1833. ;; #(
  1834. *)
  1835. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1836. ;;
  1837. esac |
  1838. sort
  1839. )
  1840. echo
  1841. $as_echo "## ----------------- ##
  1842. ## Output variables. ##
  1843. ## ----------------- ##"
  1844. echo
  1845. for ac_var in $ac_subst_vars
  1846. do
  1847. eval ac_val=\$$ac_var
  1848. case $ac_val in
  1849. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1850. esac
  1851. $as_echo "$ac_var='\''$ac_val'\''"
  1852. done | sort
  1853. echo
  1854. if test -n "$ac_subst_files"; then
  1855. $as_echo "## ------------------- ##
  1856. ## File substitutions. ##
  1857. ## ------------------- ##"
  1858. echo
  1859. for ac_var in $ac_subst_files
  1860. do
  1861. eval ac_val=\$$ac_var
  1862. case $ac_val in
  1863. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1864. esac
  1865. $as_echo "$ac_var='\''$ac_val'\''"
  1866. done | sort
  1867. echo
  1868. fi
  1869. if test -s confdefs.h; then
  1870. $as_echo "## ----------- ##
  1871. ## confdefs.h. ##
  1872. ## ----------- ##"
  1873. echo
  1874. cat confdefs.h
  1875. echo
  1876. fi
  1877. test "$ac_signal" != 0 &&
  1878. $as_echo "$as_me: caught signal $ac_signal"
  1879. $as_echo "$as_me: exit $exit_status"
  1880. } >&5
  1881. rm -f core *.core core.conftest.* &&
  1882. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1883. exit $exit_status
  1884. ' 0
  1885. for ac_signal in 1 2 13 15; do
  1886. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1887. done
  1888. ac_signal=0
  1889. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1890. rm -f -r conftest* confdefs.h
  1891. $as_echo "/* confdefs.h */" > confdefs.h
  1892. # Predefined preprocessor variables.
  1893. cat >>confdefs.h <<_ACEOF
  1894. #define PACKAGE_NAME "$PACKAGE_NAME"
  1895. _ACEOF
  1896. cat >>confdefs.h <<_ACEOF
  1897. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1898. _ACEOF
  1899. cat >>confdefs.h <<_ACEOF
  1900. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1901. _ACEOF
  1902. cat >>confdefs.h <<_ACEOF
  1903. #define PACKAGE_STRING "$PACKAGE_STRING"
  1904. _ACEOF
  1905. cat >>confdefs.h <<_ACEOF
  1906. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1907. _ACEOF
  1908. cat >>confdefs.h <<_ACEOF
  1909. #define PACKAGE_URL "$PACKAGE_URL"
  1910. _ACEOF
  1911. # Let the site file select an alternate cache file if it wants to.
  1912. # Prefer an explicitly selected file to automatically selected ones.
  1913. ac_site_file1=NONE
  1914. ac_site_file2=NONE
  1915. if test -n "$CONFIG_SITE"; then
  1916. # We do not want a PATH search for config.site.
  1917. case $CONFIG_SITE in #((
  1918. -*) ac_site_file1=./$CONFIG_SITE;;
  1919. */*) ac_site_file1=$CONFIG_SITE;;
  1920. *) ac_site_file1=./$CONFIG_SITE;;
  1921. esac
  1922. elif test "x$prefix" != xNONE; then
  1923. ac_site_file1=$prefix/share/config.site
  1924. ac_site_file2=$prefix/etc/config.site
  1925. else
  1926. ac_site_file1=$ac_default_prefix/share/config.site
  1927. ac_site_file2=$ac_default_prefix/etc/config.site
  1928. fi
  1929. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1930. do
  1931. test "x$ac_site_file" = xNONE && continue
  1932. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1934. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1935. sed 's/^/| /' "$ac_site_file" >&5
  1936. . "$ac_site_file" \
  1937. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1938. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1939. as_fn_error $? "failed to load site script $ac_site_file
  1940. See \`config.log' for more details" "$LINENO" 5; }
  1941. fi
  1942. done
  1943. if test -r "$cache_file"; then
  1944. # Some versions of bash will fail to source /dev/null (special files
  1945. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1946. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1948. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1949. case $cache_file in
  1950. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1951. *) . "./$cache_file";;
  1952. esac
  1953. fi
  1954. else
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1956. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1957. >$cache_file
  1958. fi
  1959. as_fn_append ac_header_list " stdlib.h"
  1960. as_fn_append ac_header_list " unistd.h"
  1961. as_fn_append ac_header_list " sys/param.h"
  1962. # Check that the precious variables saved in the cache have kept the same
  1963. # value.
  1964. ac_cache_corrupted=false
  1965. for ac_var in $ac_precious_vars; do
  1966. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1967. eval ac_new_set=\$ac_env_${ac_var}_set
  1968. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1969. eval ac_new_val=\$ac_env_${ac_var}_value
  1970. case $ac_old_set,$ac_new_set in
  1971. set,)
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1973. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1974. ac_cache_corrupted=: ;;
  1975. ,set)
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1977. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1978. ac_cache_corrupted=: ;;
  1979. ,);;
  1980. *)
  1981. if test "x$ac_old_val" != "x$ac_new_val"; then
  1982. # differences in whitespace do not lead to failure.
  1983. ac_old_val_w=`echo x $ac_old_val`
  1984. ac_new_val_w=`echo x $ac_new_val`
  1985. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1987. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1988. ac_cache_corrupted=:
  1989. else
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1991. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1992. eval $ac_var=\$ac_old_val
  1993. fi
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1995. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1997. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1998. fi;;
  1999. esac
  2000. # Pass precious variables to config.status.
  2001. if test "$ac_new_set" = set; then
  2002. case $ac_new_val in
  2003. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2004. *) ac_arg=$ac_var=$ac_new_val ;;
  2005. esac
  2006. case " $ac_configure_args " in
  2007. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2008. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2009. esac
  2010. fi
  2011. done
  2012. if $ac_cache_corrupted; then
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2016. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2017. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2018. fi
  2019. ## -------------------- ##
  2020. ## Main body of script. ##
  2021. ## -------------------- ##
  2022. ac_ext=c
  2023. ac_cpp='$CPP $CPPFLAGS'
  2024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2027. if test -n "${with_target_subdir}"; then
  2028. # Default to --enable-multilib
  2029. # Check whether --enable-multilib was given.
  2030. if test "${enable_multilib+set}" = set; then :
  2031. enableval=$enable_multilib; case "$enableval" in
  2032. yes) multilib=yes ;;
  2033. no) multilib=no ;;
  2034. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2035. esac
  2036. else
  2037. multilib=yes
  2038. fi
  2039. # We may get other options which we leave undocumented:
  2040. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2041. # See config-ml.in if you want the gory details.
  2042. if test "$srcdir" = "."; then
  2043. if test "$with_target_subdir" != "."; then
  2044. multi_basedir="$srcdir/$with_multisrctop../.."
  2045. else
  2046. multi_basedir="$srcdir/$with_multisrctop.."
  2047. fi
  2048. else
  2049. multi_basedir="$srcdir/.."
  2050. fi
  2051. # Even if the default multilib is not a cross compilation,
  2052. # it may be that some of the other multilibs are.
  2053. if test $cross_compiling = no && test $multilib = yes \
  2054. && test "x${with_multisubdir}" != x ; then
  2055. cross_compiling=maybe
  2056. fi
  2057. ac_config_commands="$ac_config_commands default-1"
  2058. fi
  2059. ac_aux_dir=
  2060. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2061. if test -f "$ac_dir/install-sh"; then
  2062. ac_aux_dir=$ac_dir
  2063. ac_install_sh="$ac_aux_dir/install-sh -c"
  2064. break
  2065. elif test -f "$ac_dir/install.sh"; then
  2066. ac_aux_dir=$ac_dir
  2067. ac_install_sh="$ac_aux_dir/install.sh -c"
  2068. break
  2069. elif test -f "$ac_dir/shtool"; then
  2070. ac_aux_dir=$ac_dir
  2071. ac_install_sh="$ac_aux_dir/shtool install -c"
  2072. break
  2073. fi
  2074. done
  2075. if test -z "$ac_aux_dir"; then
  2076. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2077. fi
  2078. # These three variables are undocumented and unsupported,
  2079. # and are intended to be withdrawn in a future Autoconf release.
  2080. # They can cause serious problems if a builder's source tree is in a directory
  2081. # whose full name contains unusual characters.
  2082. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2083. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2084. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2085. # Make sure we can run config.sub.
  2086. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2087. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2089. $as_echo_n "checking build system type... " >&6; }
  2090. if ${ac_cv_build+:} false; then :
  2091. $as_echo_n "(cached) " >&6
  2092. else
  2093. ac_build_alias=$build_alias
  2094. test "x$ac_build_alias" = x &&
  2095. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2096. test "x$ac_build_alias" = x &&
  2097. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2098. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2099. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2100. fi
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2102. $as_echo "$ac_cv_build" >&6; }
  2103. case $ac_cv_build in
  2104. *-*-*) ;;
  2105. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2106. esac
  2107. build=$ac_cv_build
  2108. ac_save_IFS=$IFS; IFS='-'
  2109. set x $ac_cv_build
  2110. shift
  2111. build_cpu=$1
  2112. build_vendor=$2
  2113. shift; shift
  2114. # Remember, the first character of IFS is used to create $*,
  2115. # except with old shells:
  2116. build_os=$*
  2117. IFS=$ac_save_IFS
  2118. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2120. $as_echo_n "checking host system type... " >&6; }
  2121. if ${ac_cv_host+:} false; then :
  2122. $as_echo_n "(cached) " >&6
  2123. else
  2124. if test "x$host_alias" = x; then
  2125. ac_cv_host=$ac_cv_build
  2126. else
  2127. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2128. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2129. fi
  2130. fi
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2132. $as_echo "$ac_cv_host" >&6; }
  2133. case $ac_cv_host in
  2134. *-*-*) ;;
  2135. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2136. esac
  2137. host=$ac_cv_host
  2138. ac_save_IFS=$IFS; IFS='-'
  2139. set x $ac_cv_host
  2140. shift
  2141. host_cpu=$1
  2142. host_vendor=$2
  2143. shift; shift
  2144. # Remember, the first character of IFS is used to create $*,
  2145. # except with old shells:
  2146. host_os=$*
  2147. IFS=$ac_save_IFS
  2148. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2150. $as_echo_n "checking target system type... " >&6; }
  2151. if ${ac_cv_target+:} false; then :
  2152. $as_echo_n "(cached) " >&6
  2153. else
  2154. if test "x$target_alias" = x; then
  2155. ac_cv_target=$ac_cv_host
  2156. else
  2157. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2158. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2159. fi
  2160. fi
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2162. $as_echo "$ac_cv_target" >&6; }
  2163. case $ac_cv_target in
  2164. *-*-*) ;;
  2165. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2166. esac
  2167. target=$ac_cv_target
  2168. ac_save_IFS=$IFS; IFS='-'
  2169. set x $ac_cv_target
  2170. shift
  2171. target_cpu=$1
  2172. target_vendor=$2
  2173. shift; shift
  2174. # Remember, the first character of IFS is used to create $*,
  2175. # except with old shells:
  2176. target_os=$*
  2177. IFS=$ac_save_IFS
  2178. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2179. # The aliases save the names the user supplied, while $host etc.
  2180. # will get canonicalized.
  2181. test -n "$target_alias" &&
  2182. test "$program_prefix$program_suffix$program_transform_name" = \
  2183. NONENONEs,x,x, &&
  2184. program_prefix=${target_alias}-
  2185. # This works around an automake problem.
  2186. mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
  2187. am__api_version='1.15'
  2188. # Find a good install program. We prefer a C program (faster),
  2189. # so one script is as good as another. But avoid the broken or
  2190. # incompatible versions:
  2191. # SysV /etc/install, /usr/sbin/install
  2192. # SunOS /usr/etc/install
  2193. # IRIX /sbin/install
  2194. # AIX /bin/install
  2195. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2196. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2197. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2198. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2199. # OS/2's system install, which has a completely different semantic
  2200. # ./install, which can be erroneously created by make from ./install.sh.
  2201. # Reject install programs that cannot install multiple files.
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2203. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2204. if test -z "$INSTALL"; then
  2205. if ${ac_cv_path_install+:} false; then :
  2206. $as_echo_n "(cached) " >&6
  2207. else
  2208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2209. for as_dir in $PATH
  2210. do
  2211. IFS=$as_save_IFS
  2212. test -z "$as_dir" && as_dir=.
  2213. # Account for people who put trailing slashes in PATH elements.
  2214. case $as_dir/ in #((
  2215. ./ | .// | /[cC]/* | \
  2216. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2217. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2218. /usr/ucb/* ) ;;
  2219. *)
  2220. # OSF1 and SCO ODT 3.0 have their own names for install.
  2221. # Don't use installbsd from OSF since it installs stuff as root
  2222. # by default.
  2223. for ac_prog in ginstall scoinst install; do
  2224. for ac_exec_ext in '' $ac_executable_extensions; do
  2225. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2226. if test $ac_prog = install &&
  2227. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2228. # AIX install. It has an incompatible calling convention.
  2229. :
  2230. elif test $ac_prog = install &&
  2231. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2232. # program-specific install script used by HP pwplus--don't use.
  2233. :
  2234. else
  2235. rm -rf conftest.one conftest.two conftest.dir
  2236. echo one > conftest.one
  2237. echo two > conftest.two
  2238. mkdir conftest.dir
  2239. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2240. test -s conftest.one && test -s conftest.two &&
  2241. test -s conftest.dir/conftest.one &&
  2242. test -s conftest.dir/conftest.two
  2243. then
  2244. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2245. break 3
  2246. fi
  2247. fi
  2248. fi
  2249. done
  2250. done
  2251. ;;
  2252. esac
  2253. done
  2254. IFS=$as_save_IFS
  2255. rm -rf conftest.one conftest.two conftest.dir
  2256. fi
  2257. if test "${ac_cv_path_install+set}" = set; then
  2258. INSTALL=$ac_cv_path_install
  2259. else
  2260. # As a last resort, use the slow shell script. Don't cache a
  2261. # value for INSTALL within a source directory, because that will
  2262. # break other packages using the cache if that directory is
  2263. # removed, or if the value is a relative name.
  2264. INSTALL=$ac_install_sh
  2265. fi
  2266. fi
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2268. $as_echo "$INSTALL" >&6; }
  2269. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2270. # It thinks the first close brace ends the variable substitution.
  2271. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2272. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2273. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2275. $as_echo_n "checking whether build environment is sane... " >&6; }
  2276. # Reject unsafe characters in $srcdir or the absolute working directory
  2277. # name. Accept space and tab only in the latter.
  2278. am_lf='
  2279. '
  2280. case `pwd` in
  2281. *[\\\"\#\$\&\'\`$am_lf]*)
  2282. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2283. esac
  2284. case $srcdir in
  2285. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2286. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2287. esac
  2288. # Do 'set' in a subshell so we don't clobber the current shell's
  2289. # arguments. Must try -L first in case configure is actually a
  2290. # symlink; some systems play weird games with the mod time of symlinks
  2291. # (eg FreeBSD returns the mod time of the symlink's containing
  2292. # directory).
  2293. if (
  2294. am_has_slept=no
  2295. for am_try in 1 2; do
  2296. echo "timestamp, slept: $am_has_slept" > conftest.file
  2297. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2298. if test "$*" = "X"; then
  2299. # -L didn't work.
  2300. set X `ls -t "$srcdir/configure" conftest.file`
  2301. fi
  2302. if test "$*" != "X $srcdir/configure conftest.file" \
  2303. && test "$*" != "X conftest.file $srcdir/configure"; then
  2304. # If neither matched, then we have a broken ls. This can happen
  2305. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2306. # broken ls alias from the environment. This has actually
  2307. # happened. Such a system could not be considered "sane".
  2308. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2309. alias in your environment" "$LINENO" 5
  2310. fi
  2311. if test "$2" = conftest.file || test $am_try -eq 2; then
  2312. break
  2313. fi
  2314. # Just in case.
  2315. sleep 1
  2316. am_has_slept=yes
  2317. done
  2318. test "$2" = conftest.file
  2319. )
  2320. then
  2321. # Ok.
  2322. :
  2323. else
  2324. as_fn_error $? "newly created file is older than distributed files!
  2325. Check your system clock" "$LINENO" 5
  2326. fi
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2328. $as_echo "yes" >&6; }
  2329. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2330. # generated files are strictly newer.
  2331. am_sleep_pid=
  2332. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2333. ( sleep 1 ) &
  2334. am_sleep_pid=$!
  2335. fi
  2336. rm -f conftest.file
  2337. test "$program_prefix" != NONE &&
  2338. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2339. # Use a double $ so make ignores it.
  2340. test "$program_suffix" != NONE &&
  2341. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2342. # Double any \ or $.
  2343. # By default was `s,x,x', remove it if useless.
  2344. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2345. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2346. # Expand $ac_aux_dir to an absolute path.
  2347. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2348. if test x"${MISSING+set}" != xset; then
  2349. case $am_aux_dir in
  2350. *\ * | *\ *)
  2351. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2352. *)
  2353. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2354. esac
  2355. fi
  2356. # Use eval to expand $SHELL
  2357. if eval "$MISSING --is-lightweight"; then
  2358. am_missing_run="$MISSING "
  2359. else
  2360. am_missing_run=
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2362. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2363. fi
  2364. if test x"${install_sh+set}" != xset; then
  2365. case $am_aux_dir in
  2366. *\ * | *\ *)
  2367. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2368. *)
  2369. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2370. esac
  2371. fi
  2372. # Installed binaries are usually stripped using 'strip' when the user
  2373. # run "make install-strip". However 'strip' might not be the right
  2374. # tool to use in cross-compilation environments, therefore Automake
  2375. # will honor the 'STRIP' environment variable to overrule this program.
  2376. if test "$cross_compiling" != no; then
  2377. if test -n "$ac_tool_prefix"; then
  2378. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2379. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2381. $as_echo_n "checking for $ac_word... " >&6; }
  2382. if ${ac_cv_prog_STRIP+:} false; then :
  2383. $as_echo_n "(cached) " >&6
  2384. else
  2385. if test -n "$STRIP"; then
  2386. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2387. else
  2388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2389. for as_dir in $PATH
  2390. do
  2391. IFS=$as_save_IFS
  2392. test -z "$as_dir" && as_dir=.
  2393. for ac_exec_ext in '' $ac_executable_extensions; do
  2394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2395. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2397. break 2
  2398. fi
  2399. done
  2400. done
  2401. IFS=$as_save_IFS
  2402. fi
  2403. fi
  2404. STRIP=$ac_cv_prog_STRIP
  2405. if test -n "$STRIP"; then
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2407. $as_echo "$STRIP" >&6; }
  2408. else
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2410. $as_echo "no" >&6; }
  2411. fi
  2412. fi
  2413. if test -z "$ac_cv_prog_STRIP"; then
  2414. ac_ct_STRIP=$STRIP
  2415. # Extract the first word of "strip", so it can be a program name with args.
  2416. set dummy strip; ac_word=$2
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2418. $as_echo_n "checking for $ac_word... " >&6; }
  2419. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2420. $as_echo_n "(cached) " >&6
  2421. else
  2422. if test -n "$ac_ct_STRIP"; then
  2423. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2424. else
  2425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2426. for as_dir in $PATH
  2427. do
  2428. IFS=$as_save_IFS
  2429. test -z "$as_dir" && as_dir=.
  2430. for ac_exec_ext in '' $ac_executable_extensions; do
  2431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2432. ac_cv_prog_ac_ct_STRIP="strip"
  2433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2434. break 2
  2435. fi
  2436. done
  2437. done
  2438. IFS=$as_save_IFS
  2439. fi
  2440. fi
  2441. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2442. if test -n "$ac_ct_STRIP"; then
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2444. $as_echo "$ac_ct_STRIP" >&6; }
  2445. else
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2447. $as_echo "no" >&6; }
  2448. fi
  2449. if test "x$ac_ct_STRIP" = x; then
  2450. STRIP=":"
  2451. else
  2452. case $cross_compiling:$ac_tool_warned in
  2453. yes:)
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2456. ac_tool_warned=yes ;;
  2457. esac
  2458. STRIP=$ac_ct_STRIP
  2459. fi
  2460. else
  2461. STRIP="$ac_cv_prog_STRIP"
  2462. fi
  2463. fi
  2464. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2466. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2467. if test -z "$MKDIR_P"; then
  2468. if ${ac_cv_path_mkdir+:} false; then :
  2469. $as_echo_n "(cached) " >&6
  2470. else
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2473. do
  2474. IFS=$as_save_IFS
  2475. test -z "$as_dir" && as_dir=.
  2476. for ac_prog in mkdir gmkdir; do
  2477. for ac_exec_ext in '' $ac_executable_extensions; do
  2478. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2479. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2480. 'mkdir (GNU coreutils) '* | \
  2481. 'mkdir (coreutils) '* | \
  2482. 'mkdir (fileutils) '4.1*)
  2483. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2484. break 3;;
  2485. esac
  2486. done
  2487. done
  2488. done
  2489. IFS=$as_save_IFS
  2490. fi
  2491. test -d ./--version && rmdir ./--version
  2492. if test "${ac_cv_path_mkdir+set}" = set; then
  2493. MKDIR_P="$ac_cv_path_mkdir -p"
  2494. else
  2495. # As a last resort, use the slow shell script. Don't cache a
  2496. # value for MKDIR_P within a source directory, because that will
  2497. # break other packages using the cache if that directory is
  2498. # removed, or if the value is a relative name.
  2499. MKDIR_P="$ac_install_sh -d"
  2500. fi
  2501. fi
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2503. $as_echo "$MKDIR_P" >&6; }
  2504. for ac_prog in gawk mawk nawk awk
  2505. do
  2506. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2507. set dummy $ac_prog; ac_word=$2
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2509. $as_echo_n "checking for $ac_word... " >&6; }
  2510. if ${ac_cv_prog_AWK+:} false; then :
  2511. $as_echo_n "(cached) " >&6
  2512. else
  2513. if test -n "$AWK"; then
  2514. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2515. else
  2516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2517. for as_dir in $PATH
  2518. do
  2519. IFS=$as_save_IFS
  2520. test -z "$as_dir" && as_dir=.
  2521. for ac_exec_ext in '' $ac_executable_extensions; do
  2522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2523. ac_cv_prog_AWK="$ac_prog"
  2524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2525. break 2
  2526. fi
  2527. done
  2528. done
  2529. IFS=$as_save_IFS
  2530. fi
  2531. fi
  2532. AWK=$ac_cv_prog_AWK
  2533. if test -n "$AWK"; then
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2535. $as_echo "$AWK" >&6; }
  2536. else
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2538. $as_echo "no" >&6; }
  2539. fi
  2540. test -n "$AWK" && break
  2541. done
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2543. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2544. set x ${MAKE-make}
  2545. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2546. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2547. $as_echo_n "(cached) " >&6
  2548. else
  2549. cat >conftest.make <<\_ACEOF
  2550. SHELL = /bin/sh
  2551. all:
  2552. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2553. _ACEOF
  2554. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2555. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2556. *@@@%%%=?*=@@@%%%*)
  2557. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2558. *)
  2559. eval ac_cv_prog_make_${ac_make}_set=no;;
  2560. esac
  2561. rm -f conftest.make
  2562. fi
  2563. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2565. $as_echo "yes" >&6; }
  2566. SET_MAKE=
  2567. else
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2569. $as_echo "no" >&6; }
  2570. SET_MAKE="MAKE=${MAKE-make}"
  2571. fi
  2572. rm -rf .tst 2>/dev/null
  2573. mkdir .tst 2>/dev/null
  2574. if test -d .tst; then
  2575. am__leading_dot=.
  2576. else
  2577. am__leading_dot=_
  2578. fi
  2579. rmdir .tst 2>/dev/null
  2580. # Check whether --enable-silent-rules was given.
  2581. if test "${enable_silent_rules+set}" = set; then :
  2582. enableval=$enable_silent_rules;
  2583. fi
  2584. case $enable_silent_rules in # (((
  2585. yes) AM_DEFAULT_VERBOSITY=0;;
  2586. no) AM_DEFAULT_VERBOSITY=1;;
  2587. *) AM_DEFAULT_VERBOSITY=1;;
  2588. esac
  2589. am_make=${MAKE-make}
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2591. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2592. if ${am_cv_make_support_nested_variables+:} false; then :
  2593. $as_echo_n "(cached) " >&6
  2594. else
  2595. if $as_echo 'TRUE=$(BAR$(V))
  2596. BAR0=false
  2597. BAR1=true
  2598. V=1
  2599. am__doit:
  2600. @$(TRUE)
  2601. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2602. am_cv_make_support_nested_variables=yes
  2603. else
  2604. am_cv_make_support_nested_variables=no
  2605. fi
  2606. fi
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2608. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2609. if test $am_cv_make_support_nested_variables = yes; then
  2610. AM_V='$(V)'
  2611. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2612. else
  2613. AM_V=$AM_DEFAULT_VERBOSITY
  2614. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2615. fi
  2616. AM_BACKSLASH='\'
  2617. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2618. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2619. # is not polluted with repeated "-I."
  2620. am__isrc=' -I$(srcdir)'
  2621. # test to see if srcdir already configured
  2622. if test -f $srcdir/config.status; then
  2623. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2624. fi
  2625. fi
  2626. # test whether we have cygpath
  2627. if test -z "$CYGPATH_W"; then
  2628. if (cygpath --version) >/dev/null 2>/dev/null; then
  2629. CYGPATH_W='cygpath -w'
  2630. else
  2631. CYGPATH_W=echo
  2632. fi
  2633. fi
  2634. # Define the identity of the package.
  2635. PACKAGE='zlib'
  2636. VERSION='1.1.4'
  2637. cat >>confdefs.h <<_ACEOF
  2638. #define PACKAGE "$PACKAGE"
  2639. _ACEOF
  2640. cat >>confdefs.h <<_ACEOF
  2641. #define VERSION "$VERSION"
  2642. _ACEOF
  2643. # Some tools Automake needs.
  2644. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2645. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2646. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2647. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2648. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2649. # For better backward compatibility. To be removed once Automake 1.9.x
  2650. # dies out for good. For more background, see:
  2651. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2652. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2653. mkdir_p='$(MKDIR_P)'
  2654. # We need awk for the "check" target (and possibly the TAP driver). The
  2655. # system "awk" is bad on some platforms.
  2656. # Always define AMTAR for backward compatibility. Yes, it's still used
  2657. # in the wild :-( We should find a proper way to deprecate it ...
  2658. AMTAR='$${TAR-tar}'
  2659. # We'll loop over all known methods to create a tar archive until one works.
  2660. _am_tools='gnutar pax cpio none'
  2661. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2662. # POSIX will say in a future version that running "rm -f" with no argument
  2663. # is OK; and we want to be able to make that assumption in our Makefile
  2664. # recipes. So use an aggressive probe to check that the usage we want is
  2665. # actually supported "in the wild" to an acceptable degree.
  2666. # See automake bug#10828.
  2667. # To make any issue more visible, cause the running configure to be aborted
  2668. # by default if the 'rm' program in use doesn't match our expectations; the
  2669. # user can still override this though.
  2670. if rm -f && rm -fr && rm -rf; then : OK; else
  2671. cat >&2 <<'END'
  2672. Oops!
  2673. Your 'rm' program seems unable to run without file operands specified
  2674. on the command line, even when the '-f' option is present. This is contrary
  2675. to the behaviour of most rm programs out there, and not conforming with
  2676. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2677. Please tell bug-automake@gnu.org about your system, including the value
  2678. of your $PATH and any error possibly output before this message. This
  2679. can help us improve future automake versions.
  2680. END
  2681. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2682. echo 'Configuration will proceed anyway, since you have set the' >&2
  2683. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2684. echo >&2
  2685. else
  2686. cat >&2 <<'END'
  2687. Aborting the configuration process, to ensure you take notice of the issue.
  2688. You can download and install GNU coreutils to get an 'rm' implementation
  2689. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2690. If you want to complete the configuration process using your problematic
  2691. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2692. to "yes", and re-run configure.
  2693. END
  2694. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2695. fi
  2696. fi
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2698. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2699. # Check whether --enable-maintainer-mode was given.
  2700. if test "${enable_maintainer_mode+set}" = set; then :
  2701. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2702. else
  2703. USE_MAINTAINER_MODE=no
  2704. fi
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2706. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2707. if test $USE_MAINTAINER_MODE = yes; then
  2708. MAINTAINER_MODE_TRUE=
  2709. MAINTAINER_MODE_FALSE='#'
  2710. else
  2711. MAINTAINER_MODE_TRUE='#'
  2712. MAINTAINER_MODE_FALSE=
  2713. fi
  2714. MAINT=$MAINTAINER_MODE_TRUE
  2715. # Check whether --with-target-subdir was given.
  2716. if test "${with_target_subdir+set}" = set; then :
  2717. withval=$with_target_subdir;
  2718. fi
  2719. if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
  2720. COMPPATH=.
  2721. else
  2722. COMPPATH=..
  2723. fi
  2724. # Check whether --with-cross-host was given.
  2725. if test "${with_cross_host+set}" = set; then :
  2726. withval=$with_cross_host;
  2727. fi
  2728. # Check whether --enable-multilib was given.
  2729. if test "${enable_multilib+set}" = set; then :
  2730. enableval=$enable_multilib; case "${enableval}" in
  2731. yes) multilib=yes ;;
  2732. no) multilib=no ;;
  2733. *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
  2734. esac
  2735. else
  2736. test -z "$with_target_subdir" && multilib=no || multilib=yes
  2737. fi
  2738. # Check whether --with-system-zlib was given.
  2739. if test "${with_system_zlib+set}" = set; then :
  2740. withval=$with_system_zlib;
  2741. fi
  2742. # Make sure we don't test executables when making cross-tools.
  2743. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2744. # We must force CC to /not/ be precious variables; otherwise
  2745. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2746. # As a side effect, we have to subst CFLAGS ourselves.
  2747. ac_ext=c
  2748. ac_cpp='$CPP $CPPFLAGS'
  2749. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2750. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2751. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2752. if test -n "$ac_tool_prefix"; then
  2753. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2754. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2756. $as_echo_n "checking for $ac_word... " >&6; }
  2757. if ${ac_cv_prog_CC+:} false; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. if test -n "$CC"; then
  2761. ac_cv_prog_CC="$CC" # Let the user override the test.
  2762. else
  2763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2764. for as_dir in $PATH
  2765. do
  2766. IFS=$as_save_IFS
  2767. test -z "$as_dir" && as_dir=.
  2768. for ac_exec_ext in '' $ac_executable_extensions; do
  2769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2770. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2772. break 2
  2773. fi
  2774. done
  2775. done
  2776. IFS=$as_save_IFS
  2777. fi
  2778. fi
  2779. CC=$ac_cv_prog_CC
  2780. if test -n "$CC"; then
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2782. $as_echo "$CC" >&6; }
  2783. else
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2785. $as_echo "no" >&6; }
  2786. fi
  2787. fi
  2788. if test -z "$ac_cv_prog_CC"; then
  2789. ac_ct_CC=$CC
  2790. # Extract the first word of "gcc", so it can be a program name with args.
  2791. set dummy gcc; ac_word=$2
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2793. $as_echo_n "checking for $ac_word... " >&6; }
  2794. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2795. $as_echo_n "(cached) " >&6
  2796. else
  2797. if test -n "$ac_ct_CC"; then
  2798. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2799. else
  2800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2801. for as_dir in $PATH
  2802. do
  2803. IFS=$as_save_IFS
  2804. test -z "$as_dir" && as_dir=.
  2805. for ac_exec_ext in '' $ac_executable_extensions; do
  2806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2807. ac_cv_prog_ac_ct_CC="gcc"
  2808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2809. break 2
  2810. fi
  2811. done
  2812. done
  2813. IFS=$as_save_IFS
  2814. fi
  2815. fi
  2816. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2817. if test -n "$ac_ct_CC"; then
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2819. $as_echo "$ac_ct_CC" >&6; }
  2820. else
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2822. $as_echo "no" >&6; }
  2823. fi
  2824. if test "x$ac_ct_CC" = x; then
  2825. CC=""
  2826. else
  2827. case $cross_compiling:$ac_tool_warned in
  2828. yes:)
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2830. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2831. ac_tool_warned=yes ;;
  2832. esac
  2833. CC=$ac_ct_CC
  2834. fi
  2835. else
  2836. CC="$ac_cv_prog_CC"
  2837. fi
  2838. if test -z "$CC"; then
  2839. if test -n "$ac_tool_prefix"; then
  2840. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2841. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2843. $as_echo_n "checking for $ac_word... " >&6; }
  2844. if ${ac_cv_prog_CC+:} false; then :
  2845. $as_echo_n "(cached) " >&6
  2846. else
  2847. if test -n "$CC"; then
  2848. ac_cv_prog_CC="$CC" # Let the user override the test.
  2849. else
  2850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2851. for as_dir in $PATH
  2852. do
  2853. IFS=$as_save_IFS
  2854. test -z "$as_dir" && as_dir=.
  2855. for ac_exec_ext in '' $ac_executable_extensions; do
  2856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2857. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2859. break 2
  2860. fi
  2861. done
  2862. done
  2863. IFS=$as_save_IFS
  2864. fi
  2865. fi
  2866. CC=$ac_cv_prog_CC
  2867. if test -n "$CC"; then
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2869. $as_echo "$CC" >&6; }
  2870. else
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2872. $as_echo "no" >&6; }
  2873. fi
  2874. fi
  2875. fi
  2876. if test -z "$CC"; then
  2877. # Extract the first word of "cc", so it can be a program name with args.
  2878. set dummy cc; ac_word=$2
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2880. $as_echo_n "checking for $ac_word... " >&6; }
  2881. if ${ac_cv_prog_CC+:} false; then :
  2882. $as_echo_n "(cached) " >&6
  2883. else
  2884. if test -n "$CC"; then
  2885. ac_cv_prog_CC="$CC" # Let the user override the test.
  2886. else
  2887. ac_prog_rejected=no
  2888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2889. for as_dir in $PATH
  2890. do
  2891. IFS=$as_save_IFS
  2892. test -z "$as_dir" && as_dir=.
  2893. for ac_exec_ext in '' $ac_executable_extensions; do
  2894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2895. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2896. ac_prog_rejected=yes
  2897. continue
  2898. fi
  2899. ac_cv_prog_CC="cc"
  2900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2901. break 2
  2902. fi
  2903. done
  2904. done
  2905. IFS=$as_save_IFS
  2906. if test $ac_prog_rejected = yes; then
  2907. # We found a bogon in the path, so make sure we never use it.
  2908. set dummy $ac_cv_prog_CC
  2909. shift
  2910. if test $# != 0; then
  2911. # We chose a different compiler from the bogus one.
  2912. # However, it has the same basename, so the bogon will be chosen
  2913. # first if we set CC to just the basename; use the full file name.
  2914. shift
  2915. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2916. fi
  2917. fi
  2918. fi
  2919. fi
  2920. CC=$ac_cv_prog_CC
  2921. if test -n "$CC"; then
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2923. $as_echo "$CC" >&6; }
  2924. else
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2926. $as_echo "no" >&6; }
  2927. fi
  2928. fi
  2929. if test -z "$CC"; then
  2930. if test -n "$ac_tool_prefix"; then
  2931. for ac_prog in cl.exe
  2932. do
  2933. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2934. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2936. $as_echo_n "checking for $ac_word... " >&6; }
  2937. if ${ac_cv_prog_CC+:} false; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. if test -n "$CC"; then
  2941. ac_cv_prog_CC="$CC" # Let the user override the test.
  2942. else
  2943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2944. for as_dir in $PATH
  2945. do
  2946. IFS=$as_save_IFS
  2947. test -z "$as_dir" && as_dir=.
  2948. for ac_exec_ext in '' $ac_executable_extensions; do
  2949. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2950. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2952. break 2
  2953. fi
  2954. done
  2955. done
  2956. IFS=$as_save_IFS
  2957. fi
  2958. fi
  2959. CC=$ac_cv_prog_CC
  2960. if test -n "$CC"; then
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2962. $as_echo "$CC" >&6; }
  2963. else
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2965. $as_echo "no" >&6; }
  2966. fi
  2967. test -n "$CC" && break
  2968. done
  2969. fi
  2970. if test -z "$CC"; then
  2971. ac_ct_CC=$CC
  2972. for ac_prog in cl.exe
  2973. do
  2974. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2975. set dummy $ac_prog; ac_word=$2
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2977. $as_echo_n "checking for $ac_word... " >&6; }
  2978. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2979. $as_echo_n "(cached) " >&6
  2980. else
  2981. if test -n "$ac_ct_CC"; then
  2982. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2983. else
  2984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2985. for as_dir in $PATH
  2986. do
  2987. IFS=$as_save_IFS
  2988. test -z "$as_dir" && as_dir=.
  2989. for ac_exec_ext in '' $ac_executable_extensions; do
  2990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2991. ac_cv_prog_ac_ct_CC="$ac_prog"
  2992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2993. break 2
  2994. fi
  2995. done
  2996. done
  2997. IFS=$as_save_IFS
  2998. fi
  2999. fi
  3000. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3001. if test -n "$ac_ct_CC"; then
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3003. $as_echo "$ac_ct_CC" >&6; }
  3004. else
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3006. $as_echo "no" >&6; }
  3007. fi
  3008. test -n "$ac_ct_CC" && break
  3009. done
  3010. if test "x$ac_ct_CC" = x; then
  3011. CC=""
  3012. else
  3013. case $cross_compiling:$ac_tool_warned in
  3014. yes:)
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3016. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3017. ac_tool_warned=yes ;;
  3018. esac
  3019. CC=$ac_ct_CC
  3020. fi
  3021. fi
  3022. fi
  3023. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3024. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3025. as_fn_error $? "no acceptable C compiler found in \$PATH
  3026. See \`config.log' for more details" "$LINENO" 5; }
  3027. # Provide some information about the compiler.
  3028. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3029. set X $ac_compile
  3030. ac_compiler=$2
  3031. for ac_option in --version -v -V -qversion; do
  3032. { { ac_try="$ac_compiler $ac_option >&5"
  3033. case "(($ac_try" in
  3034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3035. *) ac_try_echo=$ac_try;;
  3036. esac
  3037. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3038. $as_echo "$ac_try_echo"; } >&5
  3039. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3040. ac_status=$?
  3041. if test -s conftest.err; then
  3042. sed '10a\
  3043. ... rest of stderr output deleted ...
  3044. 10q' conftest.err >conftest.er1
  3045. cat conftest.er1 >&5
  3046. fi
  3047. rm -f conftest.er1 conftest.err
  3048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3049. test $ac_status = 0; }
  3050. done
  3051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3052. /* end confdefs.h. */
  3053. #include <stdio.h>
  3054. int
  3055. main ()
  3056. {
  3057. printf ("hello world\n");
  3058. ;
  3059. return 0;
  3060. }
  3061. _ACEOF
  3062. # FIXME: Cleanup?
  3063. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  3064. (eval $ac_link) 2>&5
  3065. ac_status=$?
  3066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3067. test $ac_status = 0; }; then :
  3068. gcc_no_link=no
  3069. else
  3070. gcc_no_link=yes
  3071. fi
  3072. if test x$gcc_no_link = xyes; then
  3073. # Setting cross_compile will disable run tests; it will
  3074. # also disable AC_CHECK_FILE but that's generally
  3075. # correct if we can't link.
  3076. cross_compiling=yes
  3077. EXEEXT=
  3078. else
  3079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3080. /* end confdefs.h. */
  3081. int
  3082. main ()
  3083. {
  3084. ;
  3085. return 0;
  3086. }
  3087. _ACEOF
  3088. ac_clean_files_save=$ac_clean_files
  3089. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3090. # Try to create an executable without -o first, disregard a.out.
  3091. # It will help us diagnose broken compilers, and finding out an intuition
  3092. # of exeext.
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3094. $as_echo_n "checking whether the C compiler works... " >&6; }
  3095. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3096. # The possible output files:
  3097. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3098. ac_rmfiles=
  3099. for ac_file in $ac_files
  3100. do
  3101. case $ac_file in
  3102. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3103. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3104. esac
  3105. done
  3106. rm -f $ac_rmfiles
  3107. if { { ac_try="$ac_link_default"
  3108. case "(($ac_try" in
  3109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3110. *) ac_try_echo=$ac_try;;
  3111. esac
  3112. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3113. $as_echo "$ac_try_echo"; } >&5
  3114. (eval "$ac_link_default") 2>&5
  3115. ac_status=$?
  3116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3117. test $ac_status = 0; }; then :
  3118. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3119. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3120. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3121. # so that the user can short-circuit this test for compilers unknown to
  3122. # Autoconf.
  3123. for ac_file in $ac_files ''
  3124. do
  3125. test -f "$ac_file" || continue
  3126. case $ac_file in
  3127. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3128. ;;
  3129. [ab].out )
  3130. # We found the default executable, but exeext='' is most
  3131. # certainly right.
  3132. break;;
  3133. *.* )
  3134. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3135. then :; else
  3136. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3137. fi
  3138. # We set ac_cv_exeext here because the later test for it is not
  3139. # safe: cross compilers may not add the suffix if given an `-o'
  3140. # argument, so we may need to know it at that point already.
  3141. # Even if this section looks crufty: it has the advantage of
  3142. # actually working.
  3143. break;;
  3144. * )
  3145. break;;
  3146. esac
  3147. done
  3148. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3149. else
  3150. ac_file=''
  3151. fi
  3152. if test -z "$ac_file"; then :
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3154. $as_echo "no" >&6; }
  3155. $as_echo "$as_me: failed program was:" >&5
  3156. sed 's/^/| /' conftest.$ac_ext >&5
  3157. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3158. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3159. as_fn_error 77 "C compiler cannot create executables
  3160. See \`config.log' for more details" "$LINENO" 5; }
  3161. else
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3163. $as_echo "yes" >&6; }
  3164. fi
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3166. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3168. $as_echo "$ac_file" >&6; }
  3169. ac_exeext=$ac_cv_exeext
  3170. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3171. ac_clean_files=$ac_clean_files_save
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3173. $as_echo_n "checking for suffix of executables... " >&6; }
  3174. if { { ac_try="$ac_link"
  3175. case "(($ac_try" in
  3176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3177. *) ac_try_echo=$ac_try;;
  3178. esac
  3179. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3180. $as_echo "$ac_try_echo"; } >&5
  3181. (eval "$ac_link") 2>&5
  3182. ac_status=$?
  3183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3184. test $ac_status = 0; }; then :
  3185. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3186. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3187. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3188. # `rm'.
  3189. for ac_file in conftest.exe conftest conftest.*; do
  3190. test -f "$ac_file" || continue
  3191. case $ac_file in
  3192. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3193. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3194. break;;
  3195. * ) break;;
  3196. esac
  3197. done
  3198. else
  3199. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3201. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3202. See \`config.log' for more details" "$LINENO" 5; }
  3203. fi
  3204. rm -f conftest conftest$ac_cv_exeext
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3206. $as_echo "$ac_cv_exeext" >&6; }
  3207. rm -f conftest.$ac_ext
  3208. EXEEXT=$ac_cv_exeext
  3209. ac_exeext=$EXEEXT
  3210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3211. /* end confdefs.h. */
  3212. #include <stdio.h>
  3213. int
  3214. main ()
  3215. {
  3216. FILE *f = fopen ("conftest.out", "w");
  3217. return ferror (f) || fclose (f) != 0;
  3218. ;
  3219. return 0;
  3220. }
  3221. _ACEOF
  3222. ac_clean_files="$ac_clean_files conftest.out"
  3223. # Check that the compiler produces executables we can run. If not, either
  3224. # the compiler is broken, or we cross compile.
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3226. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3227. if test "$cross_compiling" != yes; then
  3228. { { ac_try="$ac_link"
  3229. case "(($ac_try" in
  3230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3231. *) ac_try_echo=$ac_try;;
  3232. esac
  3233. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3234. $as_echo "$ac_try_echo"; } >&5
  3235. (eval "$ac_link") 2>&5
  3236. ac_status=$?
  3237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3238. test $ac_status = 0; }
  3239. if { ac_try='./conftest$ac_cv_exeext'
  3240. { { case "(($ac_try" in
  3241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3242. *) ac_try_echo=$ac_try;;
  3243. esac
  3244. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3245. $as_echo "$ac_try_echo"; } >&5
  3246. (eval "$ac_try") 2>&5
  3247. ac_status=$?
  3248. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3249. test $ac_status = 0; }; }; then
  3250. cross_compiling=no
  3251. else
  3252. if test "$cross_compiling" = maybe; then
  3253. cross_compiling=yes
  3254. else
  3255. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3256. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3257. as_fn_error $? "cannot run C compiled programs.
  3258. If you meant to cross compile, use \`--host'.
  3259. See \`config.log' for more details" "$LINENO" 5; }
  3260. fi
  3261. fi
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3264. $as_echo "$cross_compiling" >&6; }
  3265. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3266. ac_clean_files=$ac_clean_files_save
  3267. fi
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3269. $as_echo_n "checking for suffix of object files... " >&6; }
  3270. if ${ac_cv_objext+:} false; then :
  3271. $as_echo_n "(cached) " >&6
  3272. else
  3273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3274. /* end confdefs.h. */
  3275. int
  3276. main ()
  3277. {
  3278. ;
  3279. return 0;
  3280. }
  3281. _ACEOF
  3282. rm -f conftest.o conftest.obj
  3283. if { { ac_try="$ac_compile"
  3284. case "(($ac_try" in
  3285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3286. *) ac_try_echo=$ac_try;;
  3287. esac
  3288. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3289. $as_echo "$ac_try_echo"; } >&5
  3290. (eval "$ac_compile") 2>&5
  3291. ac_status=$?
  3292. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3293. test $ac_status = 0; }; then :
  3294. for ac_file in conftest.o conftest.obj conftest.*; do
  3295. test -f "$ac_file" || continue;
  3296. case $ac_file in
  3297. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3298. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3299. break;;
  3300. esac
  3301. done
  3302. else
  3303. $as_echo "$as_me: failed program was:" >&5
  3304. sed 's/^/| /' conftest.$ac_ext >&5
  3305. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3306. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3307. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3308. See \`config.log' for more details" "$LINENO" 5; }
  3309. fi
  3310. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3311. fi
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3313. $as_echo "$ac_cv_objext" >&6; }
  3314. OBJEXT=$ac_cv_objext
  3315. ac_objext=$OBJEXT
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3317. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3318. if ${ac_cv_c_compiler_gnu+:} false; then :
  3319. $as_echo_n "(cached) " >&6
  3320. else
  3321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3322. /* end confdefs.h. */
  3323. int
  3324. main ()
  3325. {
  3326. #ifndef __GNUC__
  3327. choke me
  3328. #endif
  3329. ;
  3330. return 0;
  3331. }
  3332. _ACEOF
  3333. if ac_fn_c_try_compile "$LINENO"; then :
  3334. ac_compiler_gnu=yes
  3335. else
  3336. ac_compiler_gnu=no
  3337. fi
  3338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3339. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3340. fi
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3342. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3343. if test $ac_compiler_gnu = yes; then
  3344. GCC=yes
  3345. else
  3346. GCC=
  3347. fi
  3348. ac_test_CFLAGS=${CFLAGS+set}
  3349. ac_save_CFLAGS=$CFLAGS
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3351. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3352. if ${ac_cv_prog_cc_g+:} false; then :
  3353. $as_echo_n "(cached) " >&6
  3354. else
  3355. ac_save_c_werror_flag=$ac_c_werror_flag
  3356. ac_c_werror_flag=yes
  3357. ac_cv_prog_cc_g=no
  3358. CFLAGS="-g"
  3359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3360. /* end confdefs.h. */
  3361. int
  3362. main ()
  3363. {
  3364. ;
  3365. return 0;
  3366. }
  3367. _ACEOF
  3368. if ac_fn_c_try_compile "$LINENO"; then :
  3369. ac_cv_prog_cc_g=yes
  3370. else
  3371. CFLAGS=""
  3372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3373. /* end confdefs.h. */
  3374. int
  3375. main ()
  3376. {
  3377. ;
  3378. return 0;
  3379. }
  3380. _ACEOF
  3381. if ac_fn_c_try_compile "$LINENO"; then :
  3382. else
  3383. ac_c_werror_flag=$ac_save_c_werror_flag
  3384. CFLAGS="-g"
  3385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3386. /* end confdefs.h. */
  3387. int
  3388. main ()
  3389. {
  3390. ;
  3391. return 0;
  3392. }
  3393. _ACEOF
  3394. if ac_fn_c_try_compile "$LINENO"; then :
  3395. ac_cv_prog_cc_g=yes
  3396. fi
  3397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3398. fi
  3399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3400. fi
  3401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3402. ac_c_werror_flag=$ac_save_c_werror_flag
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3405. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3406. if test "$ac_test_CFLAGS" = set; then
  3407. CFLAGS=$ac_save_CFLAGS
  3408. elif test $ac_cv_prog_cc_g = yes; then
  3409. if test "$GCC" = yes; then
  3410. CFLAGS="-g -O2"
  3411. else
  3412. CFLAGS="-g"
  3413. fi
  3414. else
  3415. if test "$GCC" = yes; then
  3416. CFLAGS="-O2"
  3417. else
  3418. CFLAGS=
  3419. fi
  3420. fi
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3422. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3423. if ${ac_cv_prog_cc_c89+:} false; then :
  3424. $as_echo_n "(cached) " >&6
  3425. else
  3426. ac_cv_prog_cc_c89=no
  3427. ac_save_CC=$CC
  3428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3429. /* end confdefs.h. */
  3430. #include <stdarg.h>
  3431. #include <stdio.h>
  3432. struct stat;
  3433. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3434. struct buf { int x; };
  3435. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3436. static char *e (p, i)
  3437. char **p;
  3438. int i;
  3439. {
  3440. return p[i];
  3441. }
  3442. static char *f (char * (*g) (char **, int), char **p, ...)
  3443. {
  3444. char *s;
  3445. va_list v;
  3446. va_start (v,p);
  3447. s = g (p, va_arg (v,int));
  3448. va_end (v);
  3449. return s;
  3450. }
  3451. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3452. function prototypes and stuff, but not '\xHH' hex character constants.
  3453. These don't provoke an error unfortunately, instead are silently treated
  3454. as 'x'. The following induces an error, until -std is added to get
  3455. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3456. array size at least. It's necessary to write '\x00'==0 to get something
  3457. that's true only with -std. */
  3458. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3459. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3460. inside strings and character constants. */
  3461. #define FOO(x) 'x'
  3462. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3463. int test (int i, double x);
  3464. struct s1 {int (*f) (int a);};
  3465. struct s2 {int (*f) (double a);};
  3466. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3467. int argc;
  3468. char **argv;
  3469. int
  3470. main ()
  3471. {
  3472. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3473. ;
  3474. return 0;
  3475. }
  3476. _ACEOF
  3477. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3478. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3479. do
  3480. CC="$ac_save_CC $ac_arg"
  3481. if ac_fn_c_try_compile "$LINENO"; then :
  3482. ac_cv_prog_cc_c89=$ac_arg
  3483. fi
  3484. rm -f core conftest.err conftest.$ac_objext
  3485. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3486. done
  3487. rm -f conftest.$ac_ext
  3488. CC=$ac_save_CC
  3489. fi
  3490. # AC_CACHE_VAL
  3491. case "x$ac_cv_prog_cc_c89" in
  3492. x)
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3494. $as_echo "none needed" >&6; } ;;
  3495. xno)
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3497. $as_echo "unsupported" >&6; } ;;
  3498. *)
  3499. CC="$CC $ac_cv_prog_cc_c89"
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3501. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3502. esac
  3503. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3504. fi
  3505. ac_ext=c
  3506. ac_cpp='$CPP $CPPFLAGS'
  3507. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3508. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3509. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3510. ac_ext=c
  3511. ac_cpp='$CPP $CPPFLAGS'
  3512. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3513. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3514. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3516. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3517. if ${am_cv_prog_cc_c_o+:} false; then :
  3518. $as_echo_n "(cached) " >&6
  3519. else
  3520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3521. /* end confdefs.h. */
  3522. int
  3523. main ()
  3524. {
  3525. ;
  3526. return 0;
  3527. }
  3528. _ACEOF
  3529. # Make sure it works both with $CC and with simple cc.
  3530. # Following AC_PROG_CC_C_O, we do the test twice because some
  3531. # compilers refuse to overwrite an existing .o file with -o,
  3532. # though they will create one.
  3533. am_cv_prog_cc_c_o=yes
  3534. for am_i in 1 2; do
  3535. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3536. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3537. ac_status=$?
  3538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3539. (exit $ac_status); } \
  3540. && test -f conftest2.$ac_objext; then
  3541. : OK
  3542. else
  3543. am_cv_prog_cc_c_o=no
  3544. break
  3545. fi
  3546. done
  3547. rm -f core conftest*
  3548. unset am_i
  3549. fi
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3551. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3552. if test "$am_cv_prog_cc_c_o" != yes; then
  3553. # Losing compiler, so override with the script.
  3554. # FIXME: It is wrong to rewrite CC.
  3555. # But if we don't then we get into trouble of one sort or another.
  3556. # A longer-term fix would be to have automake use am__CC in this case,
  3557. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3558. CC="$am_aux_dir/compile $CC"
  3559. fi
  3560. ac_ext=c
  3561. ac_cpp='$CPP $CPPFLAGS'
  3562. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3563. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3564. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3565. DEPDIR="${am__leading_dot}deps"
  3566. ac_config_commands="$ac_config_commands depfiles"
  3567. am_make=${MAKE-make}
  3568. cat > confinc << 'END'
  3569. am__doit:
  3570. @echo this is the am__doit target
  3571. .PHONY: am__doit
  3572. END
  3573. # If we don't find an include directive, just comment out the code.
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3575. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3576. am__include="#"
  3577. am__quote=
  3578. _am_result=none
  3579. # First try GNU make style include.
  3580. echo "include confinc" > confmf
  3581. # Ignore all kinds of additional output from 'make'.
  3582. case `$am_make -s -f confmf 2> /dev/null` in #(
  3583. *the\ am__doit\ target*)
  3584. am__include=include
  3585. am__quote=
  3586. _am_result=GNU
  3587. ;;
  3588. esac
  3589. # Now try BSD make style include.
  3590. if test "$am__include" = "#"; then
  3591. echo '.include "confinc"' > confmf
  3592. case `$am_make -s -f confmf 2> /dev/null` in #(
  3593. *the\ am__doit\ target*)
  3594. am__include=.include
  3595. am__quote="\""
  3596. _am_result=BSD
  3597. ;;
  3598. esac
  3599. fi
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3601. $as_echo "$_am_result" >&6; }
  3602. rm -f confinc confmf
  3603. # Check whether --enable-dependency-tracking was given.
  3604. if test "${enable_dependency_tracking+set}" = set; then :
  3605. enableval=$enable_dependency_tracking;
  3606. fi
  3607. if test "x$enable_dependency_tracking" != xno; then
  3608. am_depcomp="$ac_aux_dir/depcomp"
  3609. AMDEPBACKSLASH='\'
  3610. am__nodep='_no'
  3611. fi
  3612. if test "x$enable_dependency_tracking" != xno; then
  3613. AMDEP_TRUE=
  3614. AMDEP_FALSE='#'
  3615. else
  3616. AMDEP_TRUE='#'
  3617. AMDEP_FALSE=
  3618. fi
  3619. depcc="$CC" am_compiler_list=
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3621. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3622. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3623. $as_echo_n "(cached) " >&6
  3624. else
  3625. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3626. # We make a subdir and do the tests there. Otherwise we can end up
  3627. # making bogus files that we don't know about and never remove. For
  3628. # instance it was reported that on HP-UX the gcc test will end up
  3629. # making a dummy file named 'D' -- because '-MD' means "put the output
  3630. # in D".
  3631. rm -rf conftest.dir
  3632. mkdir conftest.dir
  3633. # Copy depcomp to subdir because otherwise we won't find it if we're
  3634. # using a relative directory.
  3635. cp "$am_depcomp" conftest.dir
  3636. cd conftest.dir
  3637. # We will build objects and dependencies in a subdirectory because
  3638. # it helps to detect inapplicable dependency modes. For instance
  3639. # both Tru64's cc and ICC support -MD to output dependencies as a
  3640. # side effect of compilation, but ICC will put the dependencies in
  3641. # the current directory while Tru64 will put them in the object
  3642. # directory.
  3643. mkdir sub
  3644. am_cv_CC_dependencies_compiler_type=none
  3645. if test "$am_compiler_list" = ""; then
  3646. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3647. fi
  3648. am__universal=false
  3649. case " $depcc " in #(
  3650. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3651. esac
  3652. for depmode in $am_compiler_list; do
  3653. # Setup a source with many dependencies, because some compilers
  3654. # like to wrap large dependency lists on column 80 (with \), and
  3655. # we should not choose a depcomp mode which is confused by this.
  3656. #
  3657. # We need to recreate these files for each test, as the compiler may
  3658. # overwrite some of them when testing with obscure command lines.
  3659. # This happens at least with the AIX C compiler.
  3660. : > sub/conftest.c
  3661. for i in 1 2 3 4 5 6; do
  3662. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3663. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3664. # Solaris 10 /bin/sh.
  3665. echo '/* dummy */' > sub/conftst$i.h
  3666. done
  3667. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3668. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3669. # mode. It turns out that the SunPro C++ compiler does not properly
  3670. # handle '-M -o', and we need to detect this. Also, some Intel
  3671. # versions had trouble with output in subdirs.
  3672. am__obj=sub/conftest.${OBJEXT-o}
  3673. am__minus_obj="-o $am__obj"
  3674. case $depmode in
  3675. gcc)
  3676. # This depmode causes a compiler race in universal mode.
  3677. test "$am__universal" = false || continue
  3678. ;;
  3679. nosideeffect)
  3680. # After this tag, mechanisms are not by side-effect, so they'll
  3681. # only be used when explicitly requested.
  3682. if test "x$enable_dependency_tracking" = xyes; then
  3683. continue
  3684. else
  3685. break
  3686. fi
  3687. ;;
  3688. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3689. # This compiler won't grok '-c -o', but also, the minuso test has
  3690. # not run yet. These depmodes are late enough in the game, and
  3691. # so weak that their functioning should not be impacted.
  3692. am__obj=conftest.${OBJEXT-o}
  3693. am__minus_obj=
  3694. ;;
  3695. none) break ;;
  3696. esac
  3697. if depmode=$depmode \
  3698. source=sub/conftest.c object=$am__obj \
  3699. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3700. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3701. >/dev/null 2>conftest.err &&
  3702. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3703. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3704. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3705. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3706. # icc doesn't choke on unknown options, it will just issue warnings
  3707. # or remarks (even with -Werror). So we grep stderr for any message
  3708. # that says an option was ignored or not supported.
  3709. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3710. # icc: Command line warning: ignoring option '-M'; no argument required
  3711. # The diagnosis changed in icc 8.0:
  3712. # icc: Command line remark: option '-MP' not supported
  3713. if (grep 'ignoring option' conftest.err ||
  3714. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3715. am_cv_CC_dependencies_compiler_type=$depmode
  3716. break
  3717. fi
  3718. fi
  3719. done
  3720. cd ..
  3721. rm -rf conftest.dir
  3722. else
  3723. am_cv_CC_dependencies_compiler_type=none
  3724. fi
  3725. fi
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3727. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3728. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3729. if
  3730. test "x$enable_dependency_tracking" != xno \
  3731. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3732. am__fastdepCC_TRUE=
  3733. am__fastdepCC_FALSE='#'
  3734. else
  3735. am__fastdepCC_TRUE='#'
  3736. am__fastdepCC_FALSE=
  3737. fi
  3738. # Add CET specific flags if CET is enabled
  3739. # Check whether --enable-cet was given.
  3740. if test "${enable_cet+set}" = set; then :
  3741. enableval=$enable_cet;
  3742. case "$enableval" in
  3743. yes|no|auto) ;;
  3744. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  3745. esac
  3746. else
  3747. enable_cet=auto
  3748. fi
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  3750. $as_echo_n "checking for CET support... " >&6; }
  3751. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  3752. case "$host" in
  3753. i[34567]86-*-linux* | x86_64-*-linux*)
  3754. case "$enable_cet" in
  3755. auto)
  3756. # Check if target supports multi-byte NOPs
  3757. # and if assembler supports CET insn.
  3758. cet_save_CFLAGS="$CFLAGS"
  3759. CFLAGS="$CFLAGS -fcf-protection"
  3760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3761. /* end confdefs.h. */
  3762. int
  3763. main ()
  3764. {
  3765. #if !defined(__SSE2__)
  3766. #error target does not support multi-byte NOPs
  3767. #else
  3768. asm ("setssbsy");
  3769. #endif
  3770. ;
  3771. return 0;
  3772. }
  3773. _ACEOF
  3774. if ac_fn_c_try_compile "$LINENO"; then :
  3775. enable_cet=yes
  3776. else
  3777. enable_cet=no
  3778. fi
  3779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3780. CFLAGS="$cet_save_CFLAGS"
  3781. ;;
  3782. yes)
  3783. # Check if assembler supports CET.
  3784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3785. /* end confdefs.h. */
  3786. int
  3787. main ()
  3788. {
  3789. asm ("setssbsy");
  3790. ;
  3791. return 0;
  3792. }
  3793. _ACEOF
  3794. if ac_fn_c_try_compile "$LINENO"; then :
  3795. else
  3796. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  3797. fi
  3798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3799. ;;
  3800. esac
  3801. ;;
  3802. *)
  3803. enable_cet=no
  3804. ;;
  3805. esac
  3806. if test x$enable_cet = xyes; then
  3807. CET_FLAGS="-fcf-protection -mshstk"
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3809. $as_echo "yes" >&6; }
  3810. else
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3812. $as_echo "no" >&6; }
  3813. fi
  3814. case `pwd` in
  3815. *\ * | *\ *)
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3817. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3818. esac
  3819. macro_version='2.2.7a'
  3820. macro_revision='1.3134'
  3821. ltmain="$ac_aux_dir/ltmain.sh"
  3822. # Backslashify metacharacters that are still active within
  3823. # double-quoted strings.
  3824. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3825. # Same as above, but do not quote variable references.
  3826. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3827. # Sed substitution to delay expansion of an escaped shell variable in a
  3828. # double_quote_subst'ed string.
  3829. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3830. # Sed substitution to delay expansion of an escaped single quote.
  3831. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3832. # Sed substitution to avoid accidental globbing in evaled expressions
  3833. no_glob_subst='s/\*/\\\*/g'
  3834. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3835. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3836. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3838. $as_echo_n "checking how to print strings... " >&6; }
  3839. # Test print first, because it will be a builtin if present.
  3840. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  3841. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3842. ECHO='print -r --'
  3843. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3844. ECHO='printf %s\n'
  3845. else
  3846. # Use this function as a fallback that always works.
  3847. func_fallback_echo ()
  3848. {
  3849. eval 'cat <<_LTECHO_EOF
  3850. $1
  3851. _LTECHO_EOF'
  3852. }
  3853. ECHO='func_fallback_echo'
  3854. fi
  3855. # func_echo_all arg...
  3856. # Invoke $ECHO with all args, space-separated.
  3857. func_echo_all ()
  3858. {
  3859. $ECHO ""
  3860. }
  3861. case "$ECHO" in
  3862. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3863. $as_echo "printf" >&6; } ;;
  3864. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3865. $as_echo "print -r" >&6; } ;;
  3866. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3867. $as_echo "cat" >&6; } ;;
  3868. esac
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3870. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3871. if ${ac_cv_path_SED+:} false; then :
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3875. for ac_i in 1 2 3 4 5 6 7; do
  3876. ac_script="$ac_script$as_nl$ac_script"
  3877. done
  3878. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3879. { ac_script=; unset ac_script;}
  3880. if test -z "$SED"; then
  3881. ac_path_SED_found=false
  3882. # Loop through the user's path and test for each of PROGNAME-LIST
  3883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3884. for as_dir in $PATH
  3885. do
  3886. IFS=$as_save_IFS
  3887. test -z "$as_dir" && as_dir=.
  3888. for ac_prog in sed gsed; do
  3889. for ac_exec_ext in '' $ac_executable_extensions; do
  3890. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3891. as_fn_executable_p "$ac_path_SED" || continue
  3892. # Check for GNU ac_path_SED and select it if it is found.
  3893. # Check for GNU $ac_path_SED
  3894. case `"$ac_path_SED" --version 2>&1` in
  3895. *GNU*)
  3896. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3897. *)
  3898. ac_count=0
  3899. $as_echo_n 0123456789 >"conftest.in"
  3900. while :
  3901. do
  3902. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3903. mv "conftest.tmp" "conftest.in"
  3904. cp "conftest.in" "conftest.nl"
  3905. $as_echo '' >> "conftest.nl"
  3906. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3907. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3908. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3909. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3910. # Best one so far, save it but keep looking for a better one
  3911. ac_cv_path_SED="$ac_path_SED"
  3912. ac_path_SED_max=$ac_count
  3913. fi
  3914. # 10*(2^10) chars as input seems more than enough
  3915. test $ac_count -gt 10 && break
  3916. done
  3917. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3918. esac
  3919. $ac_path_SED_found && break 3
  3920. done
  3921. done
  3922. done
  3923. IFS=$as_save_IFS
  3924. if test -z "$ac_cv_path_SED"; then
  3925. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3926. fi
  3927. else
  3928. ac_cv_path_SED=$SED
  3929. fi
  3930. fi
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3932. $as_echo "$ac_cv_path_SED" >&6; }
  3933. SED="$ac_cv_path_SED"
  3934. rm -f conftest.sed
  3935. test -z "$SED" && SED=sed
  3936. Xsed="$SED -e 1s/^X//"
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3938. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3939. if ${ac_cv_path_GREP+:} false; then :
  3940. $as_echo_n "(cached) " >&6
  3941. else
  3942. if test -z "$GREP"; then
  3943. ac_path_GREP_found=false
  3944. # Loop through the user's path and test for each of PROGNAME-LIST
  3945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3946. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3947. do
  3948. IFS=$as_save_IFS
  3949. test -z "$as_dir" && as_dir=.
  3950. for ac_prog in grep ggrep; do
  3951. for ac_exec_ext in '' $ac_executable_extensions; do
  3952. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3953. as_fn_executable_p "$ac_path_GREP" || continue
  3954. # Check for GNU ac_path_GREP and select it if it is found.
  3955. # Check for GNU $ac_path_GREP
  3956. case `"$ac_path_GREP" --version 2>&1` in
  3957. *GNU*)
  3958. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3959. *)
  3960. ac_count=0
  3961. $as_echo_n 0123456789 >"conftest.in"
  3962. while :
  3963. do
  3964. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3965. mv "conftest.tmp" "conftest.in"
  3966. cp "conftest.in" "conftest.nl"
  3967. $as_echo 'GREP' >> "conftest.nl"
  3968. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3969. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3970. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3971. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3972. # Best one so far, save it but keep looking for a better one
  3973. ac_cv_path_GREP="$ac_path_GREP"
  3974. ac_path_GREP_max=$ac_count
  3975. fi
  3976. # 10*(2^10) chars as input seems more than enough
  3977. test $ac_count -gt 10 && break
  3978. done
  3979. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3980. esac
  3981. $ac_path_GREP_found && break 3
  3982. done
  3983. done
  3984. done
  3985. IFS=$as_save_IFS
  3986. if test -z "$ac_cv_path_GREP"; then
  3987. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3988. fi
  3989. else
  3990. ac_cv_path_GREP=$GREP
  3991. fi
  3992. fi
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3994. $as_echo "$ac_cv_path_GREP" >&6; }
  3995. GREP="$ac_cv_path_GREP"
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3997. $as_echo_n "checking for egrep... " >&6; }
  3998. if ${ac_cv_path_EGREP+:} false; then :
  3999. $as_echo_n "(cached) " >&6
  4000. else
  4001. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4002. then ac_cv_path_EGREP="$GREP -E"
  4003. else
  4004. if test -z "$EGREP"; then
  4005. ac_path_EGREP_found=false
  4006. # Loop through the user's path and test for each of PROGNAME-LIST
  4007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4008. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4009. do
  4010. IFS=$as_save_IFS
  4011. test -z "$as_dir" && as_dir=.
  4012. for ac_prog in egrep; do
  4013. for ac_exec_ext in '' $ac_executable_extensions; do
  4014. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4015. as_fn_executable_p "$ac_path_EGREP" || continue
  4016. # Check for GNU ac_path_EGREP and select it if it is found.
  4017. # Check for GNU $ac_path_EGREP
  4018. case `"$ac_path_EGREP" --version 2>&1` in
  4019. *GNU*)
  4020. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4021. *)
  4022. ac_count=0
  4023. $as_echo_n 0123456789 >"conftest.in"
  4024. while :
  4025. do
  4026. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4027. mv "conftest.tmp" "conftest.in"
  4028. cp "conftest.in" "conftest.nl"
  4029. $as_echo 'EGREP' >> "conftest.nl"
  4030. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4031. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4032. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4033. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4034. # Best one so far, save it but keep looking for a better one
  4035. ac_cv_path_EGREP="$ac_path_EGREP"
  4036. ac_path_EGREP_max=$ac_count
  4037. fi
  4038. # 10*(2^10) chars as input seems more than enough
  4039. test $ac_count -gt 10 && break
  4040. done
  4041. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4042. esac
  4043. $ac_path_EGREP_found && break 3
  4044. done
  4045. done
  4046. done
  4047. IFS=$as_save_IFS
  4048. if test -z "$ac_cv_path_EGREP"; then
  4049. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4050. fi
  4051. else
  4052. ac_cv_path_EGREP=$EGREP
  4053. fi
  4054. fi
  4055. fi
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4057. $as_echo "$ac_cv_path_EGREP" >&6; }
  4058. EGREP="$ac_cv_path_EGREP"
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4060. $as_echo_n "checking for fgrep... " >&6; }
  4061. if ${ac_cv_path_FGREP+:} false; then :
  4062. $as_echo_n "(cached) " >&6
  4063. else
  4064. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4065. then ac_cv_path_FGREP="$GREP -F"
  4066. else
  4067. if test -z "$FGREP"; then
  4068. ac_path_FGREP_found=false
  4069. # Loop through the user's path and test for each of PROGNAME-LIST
  4070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4071. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4072. do
  4073. IFS=$as_save_IFS
  4074. test -z "$as_dir" && as_dir=.
  4075. for ac_prog in fgrep; do
  4076. for ac_exec_ext in '' $ac_executable_extensions; do
  4077. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4078. as_fn_executable_p "$ac_path_FGREP" || continue
  4079. # Check for GNU ac_path_FGREP and select it if it is found.
  4080. # Check for GNU $ac_path_FGREP
  4081. case `"$ac_path_FGREP" --version 2>&1` in
  4082. *GNU*)
  4083. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4084. *)
  4085. ac_count=0
  4086. $as_echo_n 0123456789 >"conftest.in"
  4087. while :
  4088. do
  4089. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4090. mv "conftest.tmp" "conftest.in"
  4091. cp "conftest.in" "conftest.nl"
  4092. $as_echo 'FGREP' >> "conftest.nl"
  4093. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4094. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4095. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4096. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4097. # Best one so far, save it but keep looking for a better one
  4098. ac_cv_path_FGREP="$ac_path_FGREP"
  4099. ac_path_FGREP_max=$ac_count
  4100. fi
  4101. # 10*(2^10) chars as input seems more than enough
  4102. test $ac_count -gt 10 && break
  4103. done
  4104. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4105. esac
  4106. $ac_path_FGREP_found && break 3
  4107. done
  4108. done
  4109. done
  4110. IFS=$as_save_IFS
  4111. if test -z "$ac_cv_path_FGREP"; then
  4112. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4113. fi
  4114. else
  4115. ac_cv_path_FGREP=$FGREP
  4116. fi
  4117. fi
  4118. fi
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4120. $as_echo "$ac_cv_path_FGREP" >&6; }
  4121. FGREP="$ac_cv_path_FGREP"
  4122. test -z "$GREP" && GREP=grep
  4123. # Check whether --with-gnu-ld was given.
  4124. if test "${with_gnu_ld+set}" = set; then :
  4125. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4126. else
  4127. with_gnu_ld=no
  4128. fi
  4129. ac_prog=ld
  4130. if test "$GCC" = yes; then
  4131. # Check if gcc -print-prog-name=ld gives a path.
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4133. $as_echo_n "checking for ld used by $CC... " >&6; }
  4134. case $host in
  4135. *-*-mingw*)
  4136. # gcc leaves a trailing carriage return which upsets mingw
  4137. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4138. *)
  4139. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4140. esac
  4141. case $ac_prog in
  4142. # Accept absolute paths.
  4143. [\\/]* | ?:[\\/]*)
  4144. re_direlt='/[^/][^/]*/\.\./'
  4145. # Canonicalize the pathname of ld
  4146. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4147. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4148. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4149. done
  4150. test -z "$LD" && LD="$ac_prog"
  4151. ;;
  4152. "")
  4153. # If it fails, then pretend we aren't using GCC.
  4154. ac_prog=ld
  4155. ;;
  4156. *)
  4157. # If it is relative, then search for the first ld in PATH.
  4158. with_gnu_ld=unknown
  4159. ;;
  4160. esac
  4161. elif test "$with_gnu_ld" = yes; then
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4163. $as_echo_n "checking for GNU ld... " >&6; }
  4164. else
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4166. $as_echo_n "checking for non-GNU ld... " >&6; }
  4167. fi
  4168. if ${lt_cv_path_LD+:} false; then :
  4169. $as_echo_n "(cached) " >&6
  4170. else
  4171. if test -z "$LD"; then
  4172. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4173. for ac_dir in $PATH; do
  4174. IFS="$lt_save_ifs"
  4175. test -z "$ac_dir" && ac_dir=.
  4176. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4177. lt_cv_path_LD="$ac_dir/$ac_prog"
  4178. # Check to see if the program is GNU ld. I'd rather use --version,
  4179. # but apparently some variants of GNU ld only accept -v.
  4180. # Break only if it was the GNU/non-GNU ld that we prefer.
  4181. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4182. *GNU* | *'with BFD'*)
  4183. test "$with_gnu_ld" != no && break
  4184. ;;
  4185. *)
  4186. test "$with_gnu_ld" != yes && break
  4187. ;;
  4188. esac
  4189. fi
  4190. done
  4191. IFS="$lt_save_ifs"
  4192. else
  4193. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4194. fi
  4195. fi
  4196. LD="$lt_cv_path_LD"
  4197. if test -n "$LD"; then
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4199. $as_echo "$LD" >&6; }
  4200. else
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4202. $as_echo "no" >&6; }
  4203. fi
  4204. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4206. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4207. if ${lt_cv_prog_gnu_ld+:} false; then :
  4208. $as_echo_n "(cached) " >&6
  4209. else
  4210. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4211. case `$LD -v 2>&1 </dev/null` in
  4212. *GNU* | *'with BFD'*)
  4213. lt_cv_prog_gnu_ld=yes
  4214. ;;
  4215. *)
  4216. lt_cv_prog_gnu_ld=no
  4217. ;;
  4218. esac
  4219. fi
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4221. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4222. with_gnu_ld=$lt_cv_prog_gnu_ld
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4224. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4225. if ${lt_cv_path_NM+:} false; then :
  4226. $as_echo_n "(cached) " >&6
  4227. else
  4228. if test -n "$NM"; then
  4229. # Let the user override the test.
  4230. lt_cv_path_NM="$NM"
  4231. else
  4232. lt_nm_to_check="${ac_tool_prefix}nm"
  4233. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4234. lt_nm_to_check="$lt_nm_to_check nm"
  4235. fi
  4236. for lt_tmp_nm in $lt_nm_to_check; do
  4237. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4238. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4239. IFS="$lt_save_ifs"
  4240. test -z "$ac_dir" && ac_dir=.
  4241. tmp_nm="$ac_dir/$lt_tmp_nm"
  4242. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4243. # Check to see if the nm accepts a BSD-compat flag.
  4244. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4245. # nm: unknown option "B" ignored
  4246. # Tru64's nm complains that /dev/null is an invalid object file
  4247. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4248. */dev/null* | *'Invalid file or object type'*)
  4249. lt_cv_path_NM="$tmp_nm -B"
  4250. break
  4251. ;;
  4252. *)
  4253. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4254. */dev/null*)
  4255. lt_cv_path_NM="$tmp_nm -p"
  4256. break
  4257. ;;
  4258. *)
  4259. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4260. continue # so that we can try to find one that supports BSD flags
  4261. ;;
  4262. esac
  4263. ;;
  4264. esac
  4265. fi
  4266. done
  4267. IFS="$lt_save_ifs"
  4268. done
  4269. : ${lt_cv_path_NM=no}
  4270. fi
  4271. fi
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4273. $as_echo "$lt_cv_path_NM" >&6; }
  4274. if test "$lt_cv_path_NM" != "no"; then
  4275. NM="$lt_cv_path_NM"
  4276. else
  4277. # Didn't find any BSD compatible name lister, look for dumpbin.
  4278. if test -n "$DUMPBIN"; then :
  4279. # Let the user override the test.
  4280. else
  4281. if test -n "$ac_tool_prefix"; then
  4282. for ac_prog in dumpbin "link -dump"
  4283. do
  4284. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4285. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4287. $as_echo_n "checking for $ac_word... " >&6; }
  4288. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. if test -n "$DUMPBIN"; then
  4292. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4293. else
  4294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4295. for as_dir in $PATH
  4296. do
  4297. IFS=$as_save_IFS
  4298. test -z "$as_dir" && as_dir=.
  4299. for ac_exec_ext in '' $ac_executable_extensions; do
  4300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4301. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4303. break 2
  4304. fi
  4305. done
  4306. done
  4307. IFS=$as_save_IFS
  4308. fi
  4309. fi
  4310. DUMPBIN=$ac_cv_prog_DUMPBIN
  4311. if test -n "$DUMPBIN"; then
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4313. $as_echo "$DUMPBIN" >&6; }
  4314. else
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4316. $as_echo "no" >&6; }
  4317. fi
  4318. test -n "$DUMPBIN" && break
  4319. done
  4320. fi
  4321. if test -z "$DUMPBIN"; then
  4322. ac_ct_DUMPBIN=$DUMPBIN
  4323. for ac_prog in dumpbin "link -dump"
  4324. do
  4325. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4326. set dummy $ac_prog; ac_word=$2
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4328. $as_echo_n "checking for $ac_word... " >&6; }
  4329. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4330. $as_echo_n "(cached) " >&6
  4331. else
  4332. if test -n "$ac_ct_DUMPBIN"; then
  4333. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4334. else
  4335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4336. for as_dir in $PATH
  4337. do
  4338. IFS=$as_save_IFS
  4339. test -z "$as_dir" && as_dir=.
  4340. for ac_exec_ext in '' $ac_executable_extensions; do
  4341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4342. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4344. break 2
  4345. fi
  4346. done
  4347. done
  4348. IFS=$as_save_IFS
  4349. fi
  4350. fi
  4351. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4352. if test -n "$ac_ct_DUMPBIN"; then
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4354. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4355. else
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4357. $as_echo "no" >&6; }
  4358. fi
  4359. test -n "$ac_ct_DUMPBIN" && break
  4360. done
  4361. if test "x$ac_ct_DUMPBIN" = x; then
  4362. DUMPBIN=":"
  4363. else
  4364. case $cross_compiling:$ac_tool_warned in
  4365. yes:)
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4367. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4368. ac_tool_warned=yes ;;
  4369. esac
  4370. DUMPBIN=$ac_ct_DUMPBIN
  4371. fi
  4372. fi
  4373. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4374. *COFF*)
  4375. DUMPBIN="$DUMPBIN -symbols"
  4376. ;;
  4377. *)
  4378. DUMPBIN=:
  4379. ;;
  4380. esac
  4381. fi
  4382. if test "$DUMPBIN" != ":"; then
  4383. NM="$DUMPBIN"
  4384. fi
  4385. fi
  4386. test -z "$NM" && NM=nm
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4388. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4389. if ${lt_cv_nm_interface+:} false; then :
  4390. $as_echo_n "(cached) " >&6
  4391. else
  4392. lt_cv_nm_interface="BSD nm"
  4393. echo "int some_variable = 0;" > conftest.$ac_ext
  4394. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4395. (eval "$ac_compile" 2>conftest.err)
  4396. cat conftest.err >&5
  4397. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4398. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4399. cat conftest.err >&5
  4400. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4401. cat conftest.out >&5
  4402. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4403. lt_cv_nm_interface="MS dumpbin"
  4404. fi
  4405. rm -f conftest*
  4406. fi
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4408. $as_echo "$lt_cv_nm_interface" >&6; }
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4410. $as_echo_n "checking whether ln -s works... " >&6; }
  4411. LN_S=$as_ln_s
  4412. if test "$LN_S" = "ln -s"; then
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4414. $as_echo "yes" >&6; }
  4415. else
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4417. $as_echo "no, using $LN_S" >&6; }
  4418. fi
  4419. # find the maximum length of command line arguments
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4421. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4422. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4423. $as_echo_n "(cached) " >&6
  4424. else
  4425. i=0
  4426. teststring="ABCD"
  4427. case $build_os in
  4428. msdosdjgpp*)
  4429. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4430. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4431. # during glob expansion). Even if it were fixed, the result of this
  4432. # check would be larger than it should be.
  4433. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4434. ;;
  4435. gnu*)
  4436. # Under GNU Hurd, this test is not required because there is
  4437. # no limit to the length of command line arguments.
  4438. # Libtool will interpret -1 as no limit whatsoever
  4439. lt_cv_sys_max_cmd_len=-1;
  4440. ;;
  4441. cygwin* | mingw* | cegcc*)
  4442. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4443. # about 5 minutes as the teststring grows exponentially.
  4444. # Worse, since 9x/ME are not pre-emptively multitasking,
  4445. # you end up with a "frozen" computer, even though with patience
  4446. # the test eventually succeeds (with a max line length of 256k).
  4447. # Instead, let's just punt: use the minimum linelength reported by
  4448. # all of the supported platforms: 8192 (on NT/2K/XP).
  4449. lt_cv_sys_max_cmd_len=8192;
  4450. ;;
  4451. mint*)
  4452. # On MiNT this can take a long time and run out of memory.
  4453. lt_cv_sys_max_cmd_len=8192;
  4454. ;;
  4455. amigaos*)
  4456. # On AmigaOS with pdksh, this test takes hours, literally.
  4457. # So we just punt and use a minimum line length of 8192.
  4458. lt_cv_sys_max_cmd_len=8192;
  4459. ;;
  4460. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4461. # This has been around since 386BSD, at least. Likely further.
  4462. if test -x /sbin/sysctl; then
  4463. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4464. elif test -x /usr/sbin/sysctl; then
  4465. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4466. else
  4467. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4468. fi
  4469. # And add a safety zone
  4470. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4471. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4472. ;;
  4473. interix*)
  4474. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4475. lt_cv_sys_max_cmd_len=196608
  4476. ;;
  4477. osf*)
  4478. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4479. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4480. # nice to cause kernel panics so lets avoid the loop below.
  4481. # First set a reasonable default.
  4482. lt_cv_sys_max_cmd_len=16384
  4483. #
  4484. if test -x /sbin/sysconfig; then
  4485. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4486. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4487. esac
  4488. fi
  4489. ;;
  4490. sco3.2v5*)
  4491. lt_cv_sys_max_cmd_len=102400
  4492. ;;
  4493. sysv5* | sco5v6* | sysv4.2uw2*)
  4494. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4495. if test -n "$kargmax"; then
  4496. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4497. else
  4498. lt_cv_sys_max_cmd_len=32768
  4499. fi
  4500. ;;
  4501. *)
  4502. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4503. if test -n "$lt_cv_sys_max_cmd_len"; then
  4504. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4505. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4506. else
  4507. # Make teststring a little bigger before we do anything with it.
  4508. # a 1K string should be a reasonable start.
  4509. for i in 1 2 3 4 5 6 7 8 ; do
  4510. teststring=$teststring$teststring
  4511. done
  4512. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4513. # If test is not a shell built-in, we'll probably end up computing a
  4514. # maximum length that is only half of the actual maximum length, but
  4515. # we can't tell.
  4516. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4517. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4518. test $i != 17 # 1/2 MB should be enough
  4519. do
  4520. i=`expr $i + 1`
  4521. teststring=$teststring$teststring
  4522. done
  4523. # Only check the string length outside the loop.
  4524. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4525. teststring=
  4526. # Add a significant safety factor because C++ compilers can tack on
  4527. # massive amounts of additional arguments before passing them to the
  4528. # linker. It appears as though 1/2 is a usable value.
  4529. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4530. fi
  4531. ;;
  4532. esac
  4533. fi
  4534. if test -n $lt_cv_sys_max_cmd_len ; then
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4536. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4537. else
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4539. $as_echo "none" >&6; }
  4540. fi
  4541. max_cmd_len=$lt_cv_sys_max_cmd_len
  4542. : ${CP="cp -f"}
  4543. : ${MV="mv -f"}
  4544. : ${RM="rm -f"}
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4546. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4547. # Try some XSI features
  4548. xsi_shell=no
  4549. ( _lt_dummy="a/b/c"
  4550. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4551. = c,a/b,, \
  4552. && eval 'test $(( 1 + 1 )) -eq 2 \
  4553. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4554. && xsi_shell=yes
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4556. $as_echo "$xsi_shell" >&6; }
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4558. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4559. lt_shell_append=no
  4560. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4561. >/dev/null 2>&1 \
  4562. && lt_shell_append=yes
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4564. $as_echo "$lt_shell_append" >&6; }
  4565. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4566. lt_unset=unset
  4567. else
  4568. lt_unset=false
  4569. fi
  4570. # test EBCDIC or ASCII
  4571. case `echo X|tr X '\101'` in
  4572. A) # ASCII based system
  4573. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4574. lt_SP2NL='tr \040 \012'
  4575. lt_NL2SP='tr \015\012 \040\040'
  4576. ;;
  4577. *) # EBCDIC based system
  4578. lt_SP2NL='tr \100 \n'
  4579. lt_NL2SP='tr \r\n \100\100'
  4580. ;;
  4581. esac
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4583. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4584. if ${lt_cv_ld_reload_flag+:} false; then :
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. lt_cv_ld_reload_flag='-r'
  4588. fi
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4590. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4591. reload_flag=$lt_cv_ld_reload_flag
  4592. case $reload_flag in
  4593. "" | " "*) ;;
  4594. *) reload_flag=" $reload_flag" ;;
  4595. esac
  4596. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4597. case $host_os in
  4598. darwin*)
  4599. if test "$GCC" = yes; then
  4600. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4601. else
  4602. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4603. fi
  4604. ;;
  4605. esac
  4606. if test -n "$ac_tool_prefix"; then
  4607. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4608. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4610. $as_echo_n "checking for $ac_word... " >&6; }
  4611. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4612. $as_echo_n "(cached) " >&6
  4613. else
  4614. if test -n "$OBJDUMP"; then
  4615. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4616. else
  4617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4618. for as_dir in $PATH
  4619. do
  4620. IFS=$as_save_IFS
  4621. test -z "$as_dir" && as_dir=.
  4622. for ac_exec_ext in '' $ac_executable_extensions; do
  4623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4624. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4626. break 2
  4627. fi
  4628. done
  4629. done
  4630. IFS=$as_save_IFS
  4631. fi
  4632. fi
  4633. OBJDUMP=$ac_cv_prog_OBJDUMP
  4634. if test -n "$OBJDUMP"; then
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4636. $as_echo "$OBJDUMP" >&6; }
  4637. else
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4639. $as_echo "no" >&6; }
  4640. fi
  4641. fi
  4642. if test -z "$ac_cv_prog_OBJDUMP"; then
  4643. ac_ct_OBJDUMP=$OBJDUMP
  4644. # Extract the first word of "objdump", so it can be a program name with args.
  4645. set dummy objdump; ac_word=$2
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4647. $as_echo_n "checking for $ac_word... " >&6; }
  4648. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4649. $as_echo_n "(cached) " >&6
  4650. else
  4651. if test -n "$ac_ct_OBJDUMP"; then
  4652. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4653. else
  4654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4655. for as_dir in $PATH
  4656. do
  4657. IFS=$as_save_IFS
  4658. test -z "$as_dir" && as_dir=.
  4659. for ac_exec_ext in '' $ac_executable_extensions; do
  4660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4661. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4663. break 2
  4664. fi
  4665. done
  4666. done
  4667. IFS=$as_save_IFS
  4668. fi
  4669. fi
  4670. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4671. if test -n "$ac_ct_OBJDUMP"; then
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4673. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4674. else
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4676. $as_echo "no" >&6; }
  4677. fi
  4678. if test "x$ac_ct_OBJDUMP" = x; then
  4679. OBJDUMP="false"
  4680. else
  4681. case $cross_compiling:$ac_tool_warned in
  4682. yes:)
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4685. ac_tool_warned=yes ;;
  4686. esac
  4687. OBJDUMP=$ac_ct_OBJDUMP
  4688. fi
  4689. else
  4690. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4691. fi
  4692. test -z "$OBJDUMP" && OBJDUMP=objdump
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4694. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4695. if ${lt_cv_deplibs_check_method+:} false; then :
  4696. $as_echo_n "(cached) " >&6
  4697. else
  4698. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4699. lt_cv_file_magic_test_file=
  4700. lt_cv_deplibs_check_method='unknown'
  4701. # Need to set the preceding variable on all platforms that support
  4702. # interlibrary dependencies.
  4703. # 'none' -- dependencies not supported.
  4704. # `unknown' -- same as none, but documents that we really don't know.
  4705. # 'pass_all' -- all dependencies passed with no checks.
  4706. # 'test_compile' -- check by making test program.
  4707. # 'file_magic [[regex]]' -- check by looking for files in library path
  4708. # which responds to the $file_magic_cmd with a given extended regex.
  4709. # If you have `file' or equivalent on your system and you're not sure
  4710. # whether `pass_all' will *always* work, you probably want this one.
  4711. case $host_os in
  4712. aix[4-9]*)
  4713. lt_cv_deplibs_check_method=pass_all
  4714. ;;
  4715. beos*)
  4716. lt_cv_deplibs_check_method=pass_all
  4717. ;;
  4718. bsdi[45]*)
  4719. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4720. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4721. lt_cv_file_magic_test_file=/shlib/libc.so
  4722. ;;
  4723. cygwin*)
  4724. # func_win32_libid is a shell function defined in ltmain.sh
  4725. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4726. lt_cv_file_magic_cmd='func_win32_libid'
  4727. ;;
  4728. mingw* | pw32*)
  4729. # Base MSYS/MinGW do not provide the 'file' command needed by
  4730. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4731. # unless we find 'file', for example because we are cross-compiling.
  4732. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4733. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4734. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4735. lt_cv_file_magic_cmd='func_win32_libid'
  4736. else
  4737. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4738. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4739. fi
  4740. ;;
  4741. cegcc*)
  4742. # use the weaker test based on 'objdump'. See mingw*.
  4743. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4744. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4745. ;;
  4746. darwin* | rhapsody*)
  4747. lt_cv_deplibs_check_method=pass_all
  4748. ;;
  4749. freebsd* | dragonfly*)
  4750. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4751. case $host_cpu in
  4752. i*86 )
  4753. # Not sure whether the presence of OpenBSD here was a mistake.
  4754. # Let's accept both of them until this is cleared up.
  4755. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4756. lt_cv_file_magic_cmd=/usr/bin/file
  4757. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4758. ;;
  4759. esac
  4760. else
  4761. lt_cv_deplibs_check_method=pass_all
  4762. fi
  4763. ;;
  4764. gnu*)
  4765. lt_cv_deplibs_check_method=pass_all
  4766. ;;
  4767. haiku*)
  4768. lt_cv_deplibs_check_method=pass_all
  4769. ;;
  4770. hpux10.20* | hpux11*)
  4771. lt_cv_file_magic_cmd=/usr/bin/file
  4772. case $host_cpu in
  4773. ia64*)
  4774. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4775. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4776. ;;
  4777. hppa*64*)
  4778. 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]'
  4779. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4780. ;;
  4781. *)
  4782. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4783. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4784. ;;
  4785. esac
  4786. ;;
  4787. interix[3-9]*)
  4788. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4789. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4790. ;;
  4791. irix5* | irix6* | nonstopux*)
  4792. case $LD in
  4793. *-32|*"-32 ") libmagic=32-bit;;
  4794. *-n32|*"-n32 ") libmagic=N32;;
  4795. *-64|*"-64 ") libmagic=64-bit;;
  4796. *) libmagic=never-match;;
  4797. esac
  4798. lt_cv_deplibs_check_method=pass_all
  4799. ;;
  4800. # This must be Linux ELF.
  4801. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  4802. lt_cv_deplibs_check_method=pass_all
  4803. ;;
  4804. netbsd*)
  4805. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4806. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4807. else
  4808. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4809. fi
  4810. ;;
  4811. newos6*)
  4812. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4813. lt_cv_file_magic_cmd=/usr/bin/file
  4814. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4815. ;;
  4816. *nto* | *qnx*)
  4817. lt_cv_deplibs_check_method=pass_all
  4818. ;;
  4819. openbsd*)
  4820. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4821. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4822. else
  4823. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4824. fi
  4825. ;;
  4826. osf3* | osf4* | osf5*)
  4827. lt_cv_deplibs_check_method=pass_all
  4828. ;;
  4829. rdos*)
  4830. lt_cv_deplibs_check_method=pass_all
  4831. ;;
  4832. solaris*)
  4833. lt_cv_deplibs_check_method=pass_all
  4834. ;;
  4835. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4836. lt_cv_deplibs_check_method=pass_all
  4837. ;;
  4838. sysv4 | sysv4.3*)
  4839. case $host_vendor in
  4840. motorola)
  4841. 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]'
  4842. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4843. ;;
  4844. ncr)
  4845. lt_cv_deplibs_check_method=pass_all
  4846. ;;
  4847. sequent)
  4848. lt_cv_file_magic_cmd='/bin/file'
  4849. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4850. ;;
  4851. sni)
  4852. lt_cv_file_magic_cmd='/bin/file'
  4853. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4854. lt_cv_file_magic_test_file=/lib/libc.so
  4855. ;;
  4856. siemens)
  4857. lt_cv_deplibs_check_method=pass_all
  4858. ;;
  4859. pc)
  4860. lt_cv_deplibs_check_method=pass_all
  4861. ;;
  4862. esac
  4863. ;;
  4864. tpf*)
  4865. lt_cv_deplibs_check_method=pass_all
  4866. ;;
  4867. esac
  4868. fi
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4870. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4871. file_magic_cmd=$lt_cv_file_magic_cmd
  4872. deplibs_check_method=$lt_cv_deplibs_check_method
  4873. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4874. if test -n "$ac_tool_prefix"; then
  4875. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4876. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4878. $as_echo_n "checking for $ac_word... " >&6; }
  4879. if ${ac_cv_prog_AR+:} false; then :
  4880. $as_echo_n "(cached) " >&6
  4881. else
  4882. if test -n "$AR"; then
  4883. ac_cv_prog_AR="$AR" # Let the user override the test.
  4884. else
  4885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4886. for as_dir in $PATH
  4887. do
  4888. IFS=$as_save_IFS
  4889. test -z "$as_dir" && as_dir=.
  4890. for ac_exec_ext in '' $ac_executable_extensions; do
  4891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4892. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4894. break 2
  4895. fi
  4896. done
  4897. done
  4898. IFS=$as_save_IFS
  4899. fi
  4900. fi
  4901. AR=$ac_cv_prog_AR
  4902. if test -n "$AR"; then
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4904. $as_echo "$AR" >&6; }
  4905. else
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4907. $as_echo "no" >&6; }
  4908. fi
  4909. fi
  4910. if test -z "$ac_cv_prog_AR"; then
  4911. ac_ct_AR=$AR
  4912. # Extract the first word of "ar", so it can be a program name with args.
  4913. set dummy ar; ac_word=$2
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4915. $as_echo_n "checking for $ac_word... " >&6; }
  4916. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4917. $as_echo_n "(cached) " >&6
  4918. else
  4919. if test -n "$ac_ct_AR"; then
  4920. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4921. else
  4922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4923. for as_dir in $PATH
  4924. do
  4925. IFS=$as_save_IFS
  4926. test -z "$as_dir" && as_dir=.
  4927. for ac_exec_ext in '' $ac_executable_extensions; do
  4928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4929. ac_cv_prog_ac_ct_AR="ar"
  4930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4931. break 2
  4932. fi
  4933. done
  4934. done
  4935. IFS=$as_save_IFS
  4936. fi
  4937. fi
  4938. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4939. if test -n "$ac_ct_AR"; then
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4941. $as_echo "$ac_ct_AR" >&6; }
  4942. else
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4944. $as_echo "no" >&6; }
  4945. fi
  4946. if test "x$ac_ct_AR" = x; then
  4947. AR="false"
  4948. else
  4949. case $cross_compiling:$ac_tool_warned in
  4950. yes:)
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4953. ac_tool_warned=yes ;;
  4954. esac
  4955. AR=$ac_ct_AR
  4956. fi
  4957. else
  4958. AR="$ac_cv_prog_AR"
  4959. fi
  4960. test -z "$AR" && AR=ar
  4961. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4962. if test -n "$ac_tool_prefix"; then
  4963. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4964. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4966. $as_echo_n "checking for $ac_word... " >&6; }
  4967. if ${ac_cv_prog_STRIP+:} false; then :
  4968. $as_echo_n "(cached) " >&6
  4969. else
  4970. if test -n "$STRIP"; then
  4971. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4972. else
  4973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4974. for as_dir in $PATH
  4975. do
  4976. IFS=$as_save_IFS
  4977. test -z "$as_dir" && as_dir=.
  4978. for ac_exec_ext in '' $ac_executable_extensions; do
  4979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4980. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4982. break 2
  4983. fi
  4984. done
  4985. done
  4986. IFS=$as_save_IFS
  4987. fi
  4988. fi
  4989. STRIP=$ac_cv_prog_STRIP
  4990. if test -n "$STRIP"; then
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4992. $as_echo "$STRIP" >&6; }
  4993. else
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4995. $as_echo "no" >&6; }
  4996. fi
  4997. fi
  4998. if test -z "$ac_cv_prog_STRIP"; then
  4999. ac_ct_STRIP=$STRIP
  5000. # Extract the first word of "strip", so it can be a program name with args.
  5001. set dummy strip; ac_word=$2
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5003. $as_echo_n "checking for $ac_word... " >&6; }
  5004. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5005. $as_echo_n "(cached) " >&6
  5006. else
  5007. if test -n "$ac_ct_STRIP"; then
  5008. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5009. else
  5010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5011. for as_dir in $PATH
  5012. do
  5013. IFS=$as_save_IFS
  5014. test -z "$as_dir" && as_dir=.
  5015. for ac_exec_ext in '' $ac_executable_extensions; do
  5016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5017. ac_cv_prog_ac_ct_STRIP="strip"
  5018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5019. break 2
  5020. fi
  5021. done
  5022. done
  5023. IFS=$as_save_IFS
  5024. fi
  5025. fi
  5026. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5027. if test -n "$ac_ct_STRIP"; then
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5029. $as_echo "$ac_ct_STRIP" >&6; }
  5030. else
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5032. $as_echo "no" >&6; }
  5033. fi
  5034. if test "x$ac_ct_STRIP" = x; then
  5035. STRIP=":"
  5036. else
  5037. case $cross_compiling:$ac_tool_warned in
  5038. yes:)
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5040. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5041. ac_tool_warned=yes ;;
  5042. esac
  5043. STRIP=$ac_ct_STRIP
  5044. fi
  5045. else
  5046. STRIP="$ac_cv_prog_STRIP"
  5047. fi
  5048. test -z "$STRIP" && STRIP=:
  5049. if test -n "$ac_tool_prefix"; then
  5050. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5051. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5053. $as_echo_n "checking for $ac_word... " >&6; }
  5054. if ${ac_cv_prog_RANLIB+:} false; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. if test -n "$RANLIB"; then
  5058. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5059. else
  5060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5061. for as_dir in $PATH
  5062. do
  5063. IFS=$as_save_IFS
  5064. test -z "$as_dir" && as_dir=.
  5065. for ac_exec_ext in '' $ac_executable_extensions; do
  5066. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5067. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5068. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5069. break 2
  5070. fi
  5071. done
  5072. done
  5073. IFS=$as_save_IFS
  5074. fi
  5075. fi
  5076. RANLIB=$ac_cv_prog_RANLIB
  5077. if test -n "$RANLIB"; then
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5079. $as_echo "$RANLIB" >&6; }
  5080. else
  5081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5082. $as_echo "no" >&6; }
  5083. fi
  5084. fi
  5085. if test -z "$ac_cv_prog_RANLIB"; then
  5086. ac_ct_RANLIB=$RANLIB
  5087. # Extract the first word of "ranlib", so it can be a program name with args.
  5088. set dummy ranlib; ac_word=$2
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5090. $as_echo_n "checking for $ac_word... " >&6; }
  5091. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. if test -n "$ac_ct_RANLIB"; then
  5095. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5096. else
  5097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5098. for as_dir in $PATH
  5099. do
  5100. IFS=$as_save_IFS
  5101. test -z "$as_dir" && as_dir=.
  5102. for ac_exec_ext in '' $ac_executable_extensions; do
  5103. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5104. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5106. break 2
  5107. fi
  5108. done
  5109. done
  5110. IFS=$as_save_IFS
  5111. fi
  5112. fi
  5113. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5114. if test -n "$ac_ct_RANLIB"; then
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5116. $as_echo "$ac_ct_RANLIB" >&6; }
  5117. else
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5119. $as_echo "no" >&6; }
  5120. fi
  5121. if test "x$ac_ct_RANLIB" = x; then
  5122. RANLIB=":"
  5123. else
  5124. case $cross_compiling:$ac_tool_warned in
  5125. yes:)
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5127. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5128. ac_tool_warned=yes ;;
  5129. esac
  5130. RANLIB=$ac_ct_RANLIB
  5131. fi
  5132. else
  5133. RANLIB="$ac_cv_prog_RANLIB"
  5134. fi
  5135. test -z "$RANLIB" && RANLIB=:
  5136. # Determine commands to create old-style static archives.
  5137. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5138. old_postinstall_cmds='chmod 644 $oldlib'
  5139. old_postuninstall_cmds=
  5140. if test -n "$RANLIB"; then
  5141. case $host_os in
  5142. openbsd*)
  5143. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5144. ;;
  5145. *)
  5146. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5147. ;;
  5148. esac
  5149. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5150. fi
  5151. case $host_os in
  5152. darwin*)
  5153. lock_old_archive_extraction=yes ;;
  5154. *)
  5155. lock_old_archive_extraction=no ;;
  5156. esac
  5157. # If no C compiler was specified, use CC.
  5158. LTCC=${LTCC-"$CC"}
  5159. # If no C compiler flags were specified, use CFLAGS.
  5160. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5161. # Allow CC to be a program name with arguments.
  5162. compiler=$CC
  5163. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5165. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5166. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5167. $as_echo_n "(cached) " >&6
  5168. else
  5169. # These are sane defaults that work on at least a few old systems.
  5170. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5171. # Character class describing NM global symbol codes.
  5172. symcode='[BCDEGRST]'
  5173. # Regexp to match symbols that can be accessed directly from C.
  5174. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5175. # Define system-specific variables.
  5176. case $host_os in
  5177. aix*)
  5178. symcode='[BCDT]'
  5179. ;;
  5180. cygwin* | mingw* | pw32* | cegcc*)
  5181. symcode='[ABCDGISTW]'
  5182. ;;
  5183. hpux*)
  5184. if test "$host_cpu" = ia64; then
  5185. symcode='[ABCDEGRST]'
  5186. fi
  5187. ;;
  5188. irix* | nonstopux*)
  5189. symcode='[BCDEGRST]'
  5190. ;;
  5191. osf*)
  5192. symcode='[BCDEGQRST]'
  5193. ;;
  5194. solaris*)
  5195. symcode='[BDRT]'
  5196. ;;
  5197. sco3.2v5*)
  5198. symcode='[DT]'
  5199. ;;
  5200. sysv4.2uw2*)
  5201. symcode='[DT]'
  5202. ;;
  5203. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5204. symcode='[ABDT]'
  5205. ;;
  5206. sysv4)
  5207. symcode='[DFNSTU]'
  5208. ;;
  5209. esac
  5210. # If we're using GNU nm, then use its standard symbol codes.
  5211. case `$NM -V 2>&1` in
  5212. *GNU* | *'with BFD'*)
  5213. symcode='[ABCDGIRSTW]' ;;
  5214. esac
  5215. # Transform an extracted symbol line into a proper C declaration.
  5216. # Some systems (esp. on ia64) link data and code symbols differently,
  5217. # so use this general approach.
  5218. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5219. # Transform an extracted symbol line into symbol name and symbol address
  5220. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5221. 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'"
  5222. # Handle CRLF in mingw tool chain
  5223. opt_cr=
  5224. case $build_os in
  5225. mingw*)
  5226. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5227. ;;
  5228. esac
  5229. # Try without a prefix underscore, then with it.
  5230. for ac_symprfx in "" "_"; do
  5231. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5232. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5233. # Write the raw and C identifiers.
  5234. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5235. # Fake it for dumpbin and say T for any non-static function
  5236. # and D for any global variable.
  5237. # Also find C++ and __fastcall symbols from MSVC++,
  5238. # which start with @ or ?.
  5239. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5240. " {last_section=section; section=\$ 3};"\
  5241. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5242. " \$ 0!~/External *\|/{next};"\
  5243. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5244. " {if(hide[section]) next};"\
  5245. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5246. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5247. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5248. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5249. " ' prfx=^$ac_symprfx"
  5250. else
  5251. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5252. fi
  5253. # Check to see that the pipe works correctly.
  5254. pipe_works=no
  5255. rm -f conftest*
  5256. cat > conftest.$ac_ext <<_LT_EOF
  5257. #ifdef __cplusplus
  5258. extern "C" {
  5259. #endif
  5260. char nm_test_var;
  5261. void nm_test_func(void);
  5262. void nm_test_func(void){}
  5263. #ifdef __cplusplus
  5264. }
  5265. #endif
  5266. int main(){nm_test_var='a';nm_test_func();return(0);}
  5267. _LT_EOF
  5268. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5269. (eval $ac_compile) 2>&5
  5270. ac_status=$?
  5271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5272. test $ac_status = 0; }; then
  5273. # Now try to grab the symbols.
  5274. nlist=conftest.nm
  5275. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5276. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5277. ac_status=$?
  5278. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5279. test $ac_status = 0; } && test -s "$nlist"; then
  5280. # Try sorting and uniquifying the output.
  5281. if sort "$nlist" | uniq > "$nlist"T; then
  5282. mv -f "$nlist"T "$nlist"
  5283. else
  5284. rm -f "$nlist"T
  5285. fi
  5286. # Make sure that we snagged all the symbols we need.
  5287. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5288. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5289. cat <<_LT_EOF > conftest.$ac_ext
  5290. #ifdef __cplusplus
  5291. extern "C" {
  5292. #endif
  5293. _LT_EOF
  5294. # Now generate the symbol file.
  5295. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5296. cat <<_LT_EOF >> conftest.$ac_ext
  5297. /* The mapping between symbol names and symbols. */
  5298. const struct {
  5299. const char *name;
  5300. void *address;
  5301. }
  5302. lt__PROGRAM__LTX_preloaded_symbols[] =
  5303. {
  5304. { "@PROGRAM@", (void *) 0 },
  5305. _LT_EOF
  5306. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5307. cat <<\_LT_EOF >> conftest.$ac_ext
  5308. {0, (void *) 0}
  5309. };
  5310. /* This works around a problem in FreeBSD linker */
  5311. #ifdef FREEBSD_WORKAROUND
  5312. static const void *lt_preloaded_setup() {
  5313. return lt__PROGRAM__LTX_preloaded_symbols;
  5314. }
  5315. #endif
  5316. #ifdef __cplusplus
  5317. }
  5318. #endif
  5319. _LT_EOF
  5320. # Now try linking the two files.
  5321. mv conftest.$ac_objext conftstm.$ac_objext
  5322. lt_save_LIBS="$LIBS"
  5323. lt_save_CFLAGS="$CFLAGS"
  5324. LIBS="conftstm.$ac_objext"
  5325. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5326. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5327. (eval $ac_link) 2>&5
  5328. ac_status=$?
  5329. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5330. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5331. pipe_works=yes
  5332. fi
  5333. LIBS="$lt_save_LIBS"
  5334. CFLAGS="$lt_save_CFLAGS"
  5335. else
  5336. echo "cannot find nm_test_func in $nlist" >&5
  5337. fi
  5338. else
  5339. echo "cannot find nm_test_var in $nlist" >&5
  5340. fi
  5341. else
  5342. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5343. fi
  5344. else
  5345. echo "$progname: failed program was:" >&5
  5346. cat conftest.$ac_ext >&5
  5347. fi
  5348. rm -rf conftest* conftst*
  5349. # Do not use the global_symbol_pipe unless it works.
  5350. if test "$pipe_works" = yes; then
  5351. break
  5352. else
  5353. lt_cv_sys_global_symbol_pipe=
  5354. fi
  5355. done
  5356. fi
  5357. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5358. lt_cv_sys_global_symbol_to_cdecl=
  5359. fi
  5360. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5362. $as_echo "failed" >&6; }
  5363. else
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5365. $as_echo "ok" >&6; }
  5366. fi
  5367. # Check whether --enable-libtool-lock was given.
  5368. if test "${enable_libtool_lock+set}" = set; then :
  5369. enableval=$enable_libtool_lock;
  5370. fi
  5371. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5372. # Some flags need to be propagated to the compiler or linker for good
  5373. # libtool support.
  5374. case $host in
  5375. ia64-*-hpux*)
  5376. # Find out which ABI we are using.
  5377. echo 'int i;' > conftest.$ac_ext
  5378. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5379. (eval $ac_compile) 2>&5
  5380. ac_status=$?
  5381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5382. test $ac_status = 0; }; then
  5383. case `/usr/bin/file conftest.$ac_objext` in
  5384. *ELF-32*)
  5385. HPUX_IA64_MODE="32"
  5386. ;;
  5387. *ELF-64*)
  5388. HPUX_IA64_MODE="64"
  5389. ;;
  5390. esac
  5391. fi
  5392. rm -rf conftest*
  5393. ;;
  5394. *-*-irix6*)
  5395. # Find out which ABI we are using.
  5396. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5397. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5398. (eval $ac_compile) 2>&5
  5399. ac_status=$?
  5400. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5401. test $ac_status = 0; }; then
  5402. if test "$lt_cv_prog_gnu_ld" = yes; then
  5403. case `/usr/bin/file conftest.$ac_objext` in
  5404. *32-bit*)
  5405. LD="${LD-ld} -melf32bsmip"
  5406. ;;
  5407. *N32*)
  5408. LD="${LD-ld} -melf32bmipn32"
  5409. ;;
  5410. *64-bit*)
  5411. LD="${LD-ld} -melf64bmip"
  5412. ;;
  5413. esac
  5414. else
  5415. case `/usr/bin/file conftest.$ac_objext` in
  5416. *32-bit*)
  5417. LD="${LD-ld} -32"
  5418. ;;
  5419. *N32*)
  5420. LD="${LD-ld} -n32"
  5421. ;;
  5422. *64-bit*)
  5423. LD="${LD-ld} -64"
  5424. ;;
  5425. esac
  5426. fi
  5427. fi
  5428. rm -rf conftest*
  5429. ;;
  5430. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5431. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5432. # Find out which ABI we are using.
  5433. echo 'int i;' > conftest.$ac_ext
  5434. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5435. (eval $ac_compile) 2>&5
  5436. ac_status=$?
  5437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5438. test $ac_status = 0; }; then
  5439. case `/usr/bin/file conftest.o` in
  5440. *32-bit*)
  5441. case $host in
  5442. x86_64-*kfreebsd*-gnu)
  5443. LD="${LD-ld} -m elf_i386_fbsd"
  5444. ;;
  5445. x86_64-*linux*)
  5446. case `/usr/bin/file conftest.o` in
  5447. *x86-64*)
  5448. LD="${LD-ld} -m elf32_x86_64"
  5449. ;;
  5450. *)
  5451. LD="${LD-ld} -m elf_i386"
  5452. ;;
  5453. esac
  5454. ;;
  5455. powerpc64le-*linux*)
  5456. LD="${LD-ld} -m elf32lppclinux"
  5457. ;;
  5458. powerpc64-*linux*)
  5459. LD="${LD-ld} -m elf32ppclinux"
  5460. ;;
  5461. s390x-*linux*)
  5462. LD="${LD-ld} -m elf_s390"
  5463. ;;
  5464. sparc64-*linux*)
  5465. LD="${LD-ld} -m elf32_sparc"
  5466. ;;
  5467. esac
  5468. ;;
  5469. *64-bit*)
  5470. case $host in
  5471. x86_64-*kfreebsd*-gnu)
  5472. LD="${LD-ld} -m elf_x86_64_fbsd"
  5473. ;;
  5474. x86_64-*linux*)
  5475. LD="${LD-ld} -m elf_x86_64"
  5476. ;;
  5477. powerpcle-*linux*)
  5478. LD="${LD-ld} -m elf64lppc"
  5479. ;;
  5480. powerpc-*linux*)
  5481. LD="${LD-ld} -m elf64ppc"
  5482. ;;
  5483. s390*-*linux*|s390*-*tpf*)
  5484. LD="${LD-ld} -m elf64_s390"
  5485. ;;
  5486. sparc*-*linux*)
  5487. LD="${LD-ld} -m elf64_sparc"
  5488. ;;
  5489. esac
  5490. ;;
  5491. esac
  5492. fi
  5493. rm -rf conftest*
  5494. ;;
  5495. *-*-sco3.2v5*)
  5496. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5497. SAVE_CFLAGS="$CFLAGS"
  5498. CFLAGS="$CFLAGS -belf"
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5500. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5501. if ${lt_cv_cc_needs_belf+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. ac_ext=c
  5505. ac_cpp='$CPP $CPPFLAGS'
  5506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5509. if test x$gcc_no_link = xyes; then
  5510. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5511. fi
  5512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5513. /* end confdefs.h. */
  5514. int
  5515. main ()
  5516. {
  5517. ;
  5518. return 0;
  5519. }
  5520. _ACEOF
  5521. if ac_fn_c_try_link "$LINENO"; then :
  5522. lt_cv_cc_needs_belf=yes
  5523. else
  5524. lt_cv_cc_needs_belf=no
  5525. fi
  5526. rm -f core conftest.err conftest.$ac_objext \
  5527. conftest$ac_exeext conftest.$ac_ext
  5528. ac_ext=c
  5529. ac_cpp='$CPP $CPPFLAGS'
  5530. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5531. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5532. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5533. fi
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5535. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5536. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5537. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5538. CFLAGS="$SAVE_CFLAGS"
  5539. fi
  5540. ;;
  5541. sparc*-*solaris*)
  5542. # Find out which ABI we are using.
  5543. echo 'int i;' > conftest.$ac_ext
  5544. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5545. (eval $ac_compile) 2>&5
  5546. ac_status=$?
  5547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5548. test $ac_status = 0; }; then
  5549. case `/usr/bin/file conftest.o` in
  5550. *64-bit*)
  5551. case $lt_cv_prog_gnu_ld in
  5552. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5553. *)
  5554. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5555. LD="${LD-ld} -64"
  5556. fi
  5557. ;;
  5558. esac
  5559. ;;
  5560. esac
  5561. fi
  5562. rm -rf conftest*
  5563. ;;
  5564. esac
  5565. need_locks="$enable_libtool_lock"
  5566. case $host_os in
  5567. rhapsody* | darwin*)
  5568. if test -n "$ac_tool_prefix"; then
  5569. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5570. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5572. $as_echo_n "checking for $ac_word... " >&6; }
  5573. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. if test -n "$DSYMUTIL"; then
  5577. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5578. else
  5579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5580. for as_dir in $PATH
  5581. do
  5582. IFS=$as_save_IFS
  5583. test -z "$as_dir" && as_dir=.
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5586. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. IFS=$as_save_IFS
  5593. fi
  5594. fi
  5595. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5596. if test -n "$DSYMUTIL"; then
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5598. $as_echo "$DSYMUTIL" >&6; }
  5599. else
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5601. $as_echo "no" >&6; }
  5602. fi
  5603. fi
  5604. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5605. ac_ct_DSYMUTIL=$DSYMUTIL
  5606. # Extract the first word of "dsymutil", so it can be a program name with args.
  5607. set dummy dsymutil; ac_word=$2
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5609. $as_echo_n "checking for $ac_word... " >&6; }
  5610. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5611. $as_echo_n "(cached) " >&6
  5612. else
  5613. if test -n "$ac_ct_DSYMUTIL"; then
  5614. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5615. else
  5616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5617. for as_dir in $PATH
  5618. do
  5619. IFS=$as_save_IFS
  5620. test -z "$as_dir" && as_dir=.
  5621. for ac_exec_ext in '' $ac_executable_extensions; do
  5622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5623. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5625. break 2
  5626. fi
  5627. done
  5628. done
  5629. IFS=$as_save_IFS
  5630. fi
  5631. fi
  5632. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5633. if test -n "$ac_ct_DSYMUTIL"; then
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5635. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5636. else
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5638. $as_echo "no" >&6; }
  5639. fi
  5640. if test "x$ac_ct_DSYMUTIL" = x; then
  5641. DSYMUTIL=":"
  5642. else
  5643. case $cross_compiling:$ac_tool_warned in
  5644. yes:)
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5646. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5647. ac_tool_warned=yes ;;
  5648. esac
  5649. DSYMUTIL=$ac_ct_DSYMUTIL
  5650. fi
  5651. else
  5652. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5653. fi
  5654. if test -n "$ac_tool_prefix"; then
  5655. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5656. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5658. $as_echo_n "checking for $ac_word... " >&6; }
  5659. if ${ac_cv_prog_NMEDIT+:} false; then :
  5660. $as_echo_n "(cached) " >&6
  5661. else
  5662. if test -n "$NMEDIT"; then
  5663. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5664. else
  5665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5666. for as_dir in $PATH
  5667. do
  5668. IFS=$as_save_IFS
  5669. test -z "$as_dir" && as_dir=.
  5670. for ac_exec_ext in '' $ac_executable_extensions; do
  5671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5672. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5674. break 2
  5675. fi
  5676. done
  5677. done
  5678. IFS=$as_save_IFS
  5679. fi
  5680. fi
  5681. NMEDIT=$ac_cv_prog_NMEDIT
  5682. if test -n "$NMEDIT"; then
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5684. $as_echo "$NMEDIT" >&6; }
  5685. else
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5687. $as_echo "no" >&6; }
  5688. fi
  5689. fi
  5690. if test -z "$ac_cv_prog_NMEDIT"; then
  5691. ac_ct_NMEDIT=$NMEDIT
  5692. # Extract the first word of "nmedit", so it can be a program name with args.
  5693. set dummy nmedit; ac_word=$2
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5695. $as_echo_n "checking for $ac_word... " >&6; }
  5696. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5697. $as_echo_n "(cached) " >&6
  5698. else
  5699. if test -n "$ac_ct_NMEDIT"; then
  5700. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5701. else
  5702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5703. for as_dir in $PATH
  5704. do
  5705. IFS=$as_save_IFS
  5706. test -z "$as_dir" && as_dir=.
  5707. for ac_exec_ext in '' $ac_executable_extensions; do
  5708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5709. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5711. break 2
  5712. fi
  5713. done
  5714. done
  5715. IFS=$as_save_IFS
  5716. fi
  5717. fi
  5718. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5719. if test -n "$ac_ct_NMEDIT"; then
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5721. $as_echo "$ac_ct_NMEDIT" >&6; }
  5722. else
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5724. $as_echo "no" >&6; }
  5725. fi
  5726. if test "x$ac_ct_NMEDIT" = x; then
  5727. NMEDIT=":"
  5728. else
  5729. case $cross_compiling:$ac_tool_warned in
  5730. yes:)
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5732. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5733. ac_tool_warned=yes ;;
  5734. esac
  5735. NMEDIT=$ac_ct_NMEDIT
  5736. fi
  5737. else
  5738. NMEDIT="$ac_cv_prog_NMEDIT"
  5739. fi
  5740. if test -n "$ac_tool_prefix"; then
  5741. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5742. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5744. $as_echo_n "checking for $ac_word... " >&6; }
  5745. if ${ac_cv_prog_LIPO+:} false; then :
  5746. $as_echo_n "(cached) " >&6
  5747. else
  5748. if test -n "$LIPO"; then
  5749. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5750. else
  5751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5752. for as_dir in $PATH
  5753. do
  5754. IFS=$as_save_IFS
  5755. test -z "$as_dir" && as_dir=.
  5756. for ac_exec_ext in '' $ac_executable_extensions; do
  5757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5758. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5760. break 2
  5761. fi
  5762. done
  5763. done
  5764. IFS=$as_save_IFS
  5765. fi
  5766. fi
  5767. LIPO=$ac_cv_prog_LIPO
  5768. if test -n "$LIPO"; then
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5770. $as_echo "$LIPO" >&6; }
  5771. else
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5773. $as_echo "no" >&6; }
  5774. fi
  5775. fi
  5776. if test -z "$ac_cv_prog_LIPO"; then
  5777. ac_ct_LIPO=$LIPO
  5778. # Extract the first word of "lipo", so it can be a program name with args.
  5779. set dummy lipo; ac_word=$2
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5781. $as_echo_n "checking for $ac_word... " >&6; }
  5782. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. if test -n "$ac_ct_LIPO"; then
  5786. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5787. else
  5788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5789. for as_dir in $PATH
  5790. do
  5791. IFS=$as_save_IFS
  5792. test -z "$as_dir" && as_dir=.
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5795. ac_cv_prog_ac_ct_LIPO="lipo"
  5796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5805. if test -n "$ac_ct_LIPO"; then
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5807. $as_echo "$ac_ct_LIPO" >&6; }
  5808. else
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. $as_echo "no" >&6; }
  5811. fi
  5812. if test "x$ac_ct_LIPO" = x; then
  5813. LIPO=":"
  5814. else
  5815. case $cross_compiling:$ac_tool_warned in
  5816. yes:)
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5818. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5819. ac_tool_warned=yes ;;
  5820. esac
  5821. LIPO=$ac_ct_LIPO
  5822. fi
  5823. else
  5824. LIPO="$ac_cv_prog_LIPO"
  5825. fi
  5826. if test -n "$ac_tool_prefix"; then
  5827. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5828. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5830. $as_echo_n "checking for $ac_word... " >&6; }
  5831. if ${ac_cv_prog_OTOOL+:} false; then :
  5832. $as_echo_n "(cached) " >&6
  5833. else
  5834. if test -n "$OTOOL"; then
  5835. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5836. else
  5837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5838. for as_dir in $PATH
  5839. do
  5840. IFS=$as_save_IFS
  5841. test -z "$as_dir" && as_dir=.
  5842. for ac_exec_ext in '' $ac_executable_extensions; do
  5843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5844. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5846. break 2
  5847. fi
  5848. done
  5849. done
  5850. IFS=$as_save_IFS
  5851. fi
  5852. fi
  5853. OTOOL=$ac_cv_prog_OTOOL
  5854. if test -n "$OTOOL"; then
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5856. $as_echo "$OTOOL" >&6; }
  5857. else
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5859. $as_echo "no" >&6; }
  5860. fi
  5861. fi
  5862. if test -z "$ac_cv_prog_OTOOL"; then
  5863. ac_ct_OTOOL=$OTOOL
  5864. # Extract the first word of "otool", so it can be a program name with args.
  5865. set dummy otool; ac_word=$2
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5867. $as_echo_n "checking for $ac_word... " >&6; }
  5868. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5869. $as_echo_n "(cached) " >&6
  5870. else
  5871. if test -n "$ac_ct_OTOOL"; then
  5872. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5873. else
  5874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5875. for as_dir in $PATH
  5876. do
  5877. IFS=$as_save_IFS
  5878. test -z "$as_dir" && as_dir=.
  5879. for ac_exec_ext in '' $ac_executable_extensions; do
  5880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5881. ac_cv_prog_ac_ct_OTOOL="otool"
  5882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5883. break 2
  5884. fi
  5885. done
  5886. done
  5887. IFS=$as_save_IFS
  5888. fi
  5889. fi
  5890. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5891. if test -n "$ac_ct_OTOOL"; then
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5893. $as_echo "$ac_ct_OTOOL" >&6; }
  5894. else
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5896. $as_echo "no" >&6; }
  5897. fi
  5898. if test "x$ac_ct_OTOOL" = x; then
  5899. OTOOL=":"
  5900. else
  5901. case $cross_compiling:$ac_tool_warned in
  5902. yes:)
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5904. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5905. ac_tool_warned=yes ;;
  5906. esac
  5907. OTOOL=$ac_ct_OTOOL
  5908. fi
  5909. else
  5910. OTOOL="$ac_cv_prog_OTOOL"
  5911. fi
  5912. if test -n "$ac_tool_prefix"; then
  5913. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5914. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5916. $as_echo_n "checking for $ac_word... " >&6; }
  5917. if ${ac_cv_prog_OTOOL64+:} false; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. if test -n "$OTOOL64"; then
  5921. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5922. else
  5923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5924. for as_dir in $PATH
  5925. do
  5926. IFS=$as_save_IFS
  5927. test -z "$as_dir" && as_dir=.
  5928. for ac_exec_ext in '' $ac_executable_extensions; do
  5929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5930. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5932. break 2
  5933. fi
  5934. done
  5935. done
  5936. IFS=$as_save_IFS
  5937. fi
  5938. fi
  5939. OTOOL64=$ac_cv_prog_OTOOL64
  5940. if test -n "$OTOOL64"; then
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5942. $as_echo "$OTOOL64" >&6; }
  5943. else
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5945. $as_echo "no" >&6; }
  5946. fi
  5947. fi
  5948. if test -z "$ac_cv_prog_OTOOL64"; then
  5949. ac_ct_OTOOL64=$OTOOL64
  5950. # Extract the first word of "otool64", so it can be a program name with args.
  5951. set dummy otool64; ac_word=$2
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5953. $as_echo_n "checking for $ac_word... " >&6; }
  5954. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5955. $as_echo_n "(cached) " >&6
  5956. else
  5957. if test -n "$ac_ct_OTOOL64"; then
  5958. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5959. else
  5960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5961. for as_dir in $PATH
  5962. do
  5963. IFS=$as_save_IFS
  5964. test -z "$as_dir" && as_dir=.
  5965. for ac_exec_ext in '' $ac_executable_extensions; do
  5966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5967. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5969. break 2
  5970. fi
  5971. done
  5972. done
  5973. IFS=$as_save_IFS
  5974. fi
  5975. fi
  5976. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5977. if test -n "$ac_ct_OTOOL64"; then
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5979. $as_echo "$ac_ct_OTOOL64" >&6; }
  5980. else
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5982. $as_echo "no" >&6; }
  5983. fi
  5984. if test "x$ac_ct_OTOOL64" = x; then
  5985. OTOOL64=":"
  5986. else
  5987. case $cross_compiling:$ac_tool_warned in
  5988. yes:)
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5991. ac_tool_warned=yes ;;
  5992. esac
  5993. OTOOL64=$ac_ct_OTOOL64
  5994. fi
  5995. else
  5996. OTOOL64="$ac_cv_prog_OTOOL64"
  5997. fi
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5999. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6000. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6001. $as_echo_n "(cached) " >&6
  6002. else
  6003. lt_cv_apple_cc_single_mod=no
  6004. if test -z "${LT_MULTI_MODULE}"; then
  6005. # By default we will add the -single_module flag. You can override
  6006. # by either setting the environment variable LT_MULTI_MODULE
  6007. # non-empty at configure time, or by adding -multi_module to the
  6008. # link flags.
  6009. rm -rf libconftest.dylib*
  6010. echo "int foo(void){return 1;}" > conftest.c
  6011. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6012. -dynamiclib -Wl,-single_module conftest.c" >&5
  6013. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6014. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6015. _lt_result=$?
  6016. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6017. lt_cv_apple_cc_single_mod=yes
  6018. else
  6019. cat conftest.err >&5
  6020. fi
  6021. rm -rf libconftest.dylib*
  6022. rm -f conftest.*
  6023. fi
  6024. fi
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6026. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6028. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6029. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. lt_cv_ld_exported_symbols_list=no
  6033. save_LDFLAGS=$LDFLAGS
  6034. echo "_main" > conftest.sym
  6035. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6036. if test x$gcc_no_link = xyes; then
  6037. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6038. fi
  6039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6040. /* end confdefs.h. */
  6041. int
  6042. main ()
  6043. {
  6044. ;
  6045. return 0;
  6046. }
  6047. _ACEOF
  6048. if ac_fn_c_try_link "$LINENO"; then :
  6049. lt_cv_ld_exported_symbols_list=yes
  6050. else
  6051. lt_cv_ld_exported_symbols_list=no
  6052. fi
  6053. rm -f core conftest.err conftest.$ac_objext \
  6054. conftest$ac_exeext conftest.$ac_ext
  6055. LDFLAGS="$save_LDFLAGS"
  6056. fi
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6058. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6060. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6061. if ${lt_cv_ld_force_load+:} false; then :
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. lt_cv_ld_force_load=no
  6065. cat > conftest.c << _LT_EOF
  6066. int forced_loaded() { return 2;}
  6067. _LT_EOF
  6068. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6069. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6070. echo "$AR cru libconftest.a conftest.o" >&5
  6071. $AR cru libconftest.a conftest.o 2>&5
  6072. cat > conftest.c << _LT_EOF
  6073. int main() { return 0;}
  6074. _LT_EOF
  6075. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6076. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6077. _lt_result=$?
  6078. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6079. lt_cv_ld_force_load=yes
  6080. else
  6081. cat conftest.err >&5
  6082. fi
  6083. rm -f conftest.err libconftest.a conftest conftest.c
  6084. rm -rf conftest.dSYM
  6085. fi
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6087. $as_echo "$lt_cv_ld_force_load" >&6; }
  6088. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  6089. # build without first building modern cctools / linker.
  6090. case $host_cpu-$host_os in
  6091. *-rhapsody* | *-darwin1.[012])
  6092. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6093. *-darwin1.*)
  6094. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6095. *-darwin*)
  6096. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  6097. # deployment target is forced to an earlier version.
  6098. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  6099. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  6100. ;;
  6101. 10.[012][,.]*)
  6102. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6103. ;;
  6104. *)
  6105. ;;
  6106. esac
  6107. ;;
  6108. esac
  6109. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6110. _lt_dar_single_mod='$single_module'
  6111. fi
  6112. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6113. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6114. else
  6115. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6116. fi
  6117. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6118. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6119. else
  6120. _lt_dsymutil=
  6121. fi
  6122. ;;
  6123. esac
  6124. ac_ext=c
  6125. ac_cpp='$CPP $CPPFLAGS'
  6126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6130. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6131. # On Suns, sometimes $CPP names a directory.
  6132. if test -n "$CPP" && test -d "$CPP"; then
  6133. CPP=
  6134. fi
  6135. if test -z "$CPP"; then
  6136. if ${ac_cv_prog_CPP+:} false; then :
  6137. $as_echo_n "(cached) " >&6
  6138. else
  6139. # Double quotes because CPP needs to be expanded
  6140. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6141. do
  6142. ac_preproc_ok=false
  6143. for ac_c_preproc_warn_flag in '' yes
  6144. do
  6145. # Use a header file that comes with gcc, so configuring glibc
  6146. # with a fresh cross-compiler works.
  6147. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6148. # <limits.h> exists even on freestanding compilers.
  6149. # On the NeXT, cc -E runs the code through the compiler's parser,
  6150. # not just through cpp. "Syntax error" is here to catch this case.
  6151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6152. /* end confdefs.h. */
  6153. #ifdef __STDC__
  6154. # include <limits.h>
  6155. #else
  6156. # include <assert.h>
  6157. #endif
  6158. Syntax error
  6159. _ACEOF
  6160. if ac_fn_c_try_cpp "$LINENO"; then :
  6161. else
  6162. # Broken: fails on valid input.
  6163. continue
  6164. fi
  6165. rm -f conftest.err conftest.i conftest.$ac_ext
  6166. # OK, works on sane cases. Now check whether nonexistent headers
  6167. # can be detected and how.
  6168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6169. /* end confdefs.h. */
  6170. #include <ac_nonexistent.h>
  6171. _ACEOF
  6172. if ac_fn_c_try_cpp "$LINENO"; then :
  6173. # Broken: success on invalid input.
  6174. continue
  6175. else
  6176. # Passes both tests.
  6177. ac_preproc_ok=:
  6178. break
  6179. fi
  6180. rm -f conftest.err conftest.i conftest.$ac_ext
  6181. done
  6182. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6183. rm -f conftest.i conftest.err conftest.$ac_ext
  6184. if $ac_preproc_ok; then :
  6185. break
  6186. fi
  6187. done
  6188. ac_cv_prog_CPP=$CPP
  6189. fi
  6190. CPP=$ac_cv_prog_CPP
  6191. else
  6192. ac_cv_prog_CPP=$CPP
  6193. fi
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6195. $as_echo "$CPP" >&6; }
  6196. ac_preproc_ok=false
  6197. for ac_c_preproc_warn_flag in '' yes
  6198. do
  6199. # Use a header file that comes with gcc, so configuring glibc
  6200. # with a fresh cross-compiler works.
  6201. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6202. # <limits.h> exists even on freestanding compilers.
  6203. # On the NeXT, cc -E runs the code through the compiler's parser,
  6204. # not just through cpp. "Syntax error" is here to catch this case.
  6205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6206. /* end confdefs.h. */
  6207. #ifdef __STDC__
  6208. # include <limits.h>
  6209. #else
  6210. # include <assert.h>
  6211. #endif
  6212. Syntax error
  6213. _ACEOF
  6214. if ac_fn_c_try_cpp "$LINENO"; then :
  6215. else
  6216. # Broken: fails on valid input.
  6217. continue
  6218. fi
  6219. rm -f conftest.err conftest.i conftest.$ac_ext
  6220. # OK, works on sane cases. Now check whether nonexistent headers
  6221. # can be detected and how.
  6222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6223. /* end confdefs.h. */
  6224. #include <ac_nonexistent.h>
  6225. _ACEOF
  6226. if ac_fn_c_try_cpp "$LINENO"; then :
  6227. # Broken: success on invalid input.
  6228. continue
  6229. else
  6230. # Passes both tests.
  6231. ac_preproc_ok=:
  6232. break
  6233. fi
  6234. rm -f conftest.err conftest.i conftest.$ac_ext
  6235. done
  6236. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6237. rm -f conftest.i conftest.err conftest.$ac_ext
  6238. if $ac_preproc_ok; then :
  6239. else
  6240. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6241. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6242. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6243. See \`config.log' for more details" "$LINENO" 5; }
  6244. fi
  6245. ac_ext=c
  6246. ac_cpp='$CPP $CPPFLAGS'
  6247. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6248. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6249. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6251. $as_echo_n "checking for ANSI C header files... " >&6; }
  6252. if ${ac_cv_header_stdc+:} false; then :
  6253. $as_echo_n "(cached) " >&6
  6254. else
  6255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6256. /* end confdefs.h. */
  6257. #include <stdlib.h>
  6258. #include <stdarg.h>
  6259. #include <string.h>
  6260. #include <float.h>
  6261. int
  6262. main ()
  6263. {
  6264. ;
  6265. return 0;
  6266. }
  6267. _ACEOF
  6268. if ac_fn_c_try_compile "$LINENO"; then :
  6269. ac_cv_header_stdc=yes
  6270. else
  6271. ac_cv_header_stdc=no
  6272. fi
  6273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6274. if test $ac_cv_header_stdc = yes; then
  6275. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6277. /* end confdefs.h. */
  6278. #include <string.h>
  6279. _ACEOF
  6280. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6281. $EGREP "memchr" >/dev/null 2>&1; then :
  6282. else
  6283. ac_cv_header_stdc=no
  6284. fi
  6285. rm -f conftest*
  6286. fi
  6287. if test $ac_cv_header_stdc = yes; then
  6288. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6290. /* end confdefs.h. */
  6291. #include <stdlib.h>
  6292. _ACEOF
  6293. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6294. $EGREP "free" >/dev/null 2>&1; then :
  6295. else
  6296. ac_cv_header_stdc=no
  6297. fi
  6298. rm -f conftest*
  6299. fi
  6300. if test $ac_cv_header_stdc = yes; then
  6301. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6302. if test "$cross_compiling" = yes; then :
  6303. :
  6304. else
  6305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6306. /* end confdefs.h. */
  6307. #include <ctype.h>
  6308. #include <stdlib.h>
  6309. #if ((' ' & 0x0FF) == 0x020)
  6310. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6311. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6312. #else
  6313. # define ISLOWER(c) \
  6314. (('a' <= (c) && (c) <= 'i') \
  6315. || ('j' <= (c) && (c) <= 'r') \
  6316. || ('s' <= (c) && (c) <= 'z'))
  6317. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6318. #endif
  6319. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6320. int
  6321. main ()
  6322. {
  6323. int i;
  6324. for (i = 0; i < 256; i++)
  6325. if (XOR (islower (i), ISLOWER (i))
  6326. || toupper (i) != TOUPPER (i))
  6327. return 2;
  6328. return 0;
  6329. }
  6330. _ACEOF
  6331. if ac_fn_c_try_run "$LINENO"; then :
  6332. else
  6333. ac_cv_header_stdc=no
  6334. fi
  6335. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6336. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6337. fi
  6338. fi
  6339. fi
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6341. $as_echo "$ac_cv_header_stdc" >&6; }
  6342. if test $ac_cv_header_stdc = yes; then
  6343. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6344. fi
  6345. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6346. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6347. inttypes.h stdint.h unistd.h
  6348. do :
  6349. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6350. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6351. "
  6352. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6353. cat >>confdefs.h <<_ACEOF
  6354. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6355. _ACEOF
  6356. fi
  6357. done
  6358. for ac_header in dlfcn.h
  6359. do :
  6360. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6361. "
  6362. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6363. cat >>confdefs.h <<_ACEOF
  6364. #define HAVE_DLFCN_H 1
  6365. _ACEOF
  6366. fi
  6367. done
  6368. # Set options
  6369. enable_dlopen=no
  6370. enable_win32_dll=no
  6371. # Check whether --enable-shared was given.
  6372. if test "${enable_shared+set}" = set; then :
  6373. enableval=$enable_shared; p=${PACKAGE-default}
  6374. case $enableval in
  6375. yes) enable_shared=yes ;;
  6376. no) enable_shared=no ;;
  6377. *)
  6378. enable_shared=no
  6379. # Look at the argument we got. We use all the common list separators.
  6380. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6381. for pkg in $enableval; do
  6382. IFS="$lt_save_ifs"
  6383. if test "X$pkg" = "X$p"; then
  6384. enable_shared=yes
  6385. fi
  6386. done
  6387. IFS="$lt_save_ifs"
  6388. ;;
  6389. esac
  6390. else
  6391. enable_shared=yes
  6392. fi
  6393. # Check whether --enable-static was given.
  6394. if test "${enable_static+set}" = set; then :
  6395. enableval=$enable_static; p=${PACKAGE-default}
  6396. case $enableval in
  6397. yes) enable_static=yes ;;
  6398. no) enable_static=no ;;
  6399. *)
  6400. enable_static=no
  6401. # Look at the argument we got. We use all the common list separators.
  6402. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6403. for pkg in $enableval; do
  6404. IFS="$lt_save_ifs"
  6405. if test "X$pkg" = "X$p"; then
  6406. enable_static=yes
  6407. fi
  6408. done
  6409. IFS="$lt_save_ifs"
  6410. ;;
  6411. esac
  6412. else
  6413. enable_static=yes
  6414. fi
  6415. # Check whether --with-pic was given.
  6416. if test "${with_pic+set}" = set; then :
  6417. withval=$with_pic; pic_mode="$withval"
  6418. else
  6419. pic_mode=default
  6420. fi
  6421. test -z "$pic_mode" && pic_mode=default
  6422. # Check whether --enable-fast-install was given.
  6423. if test "${enable_fast_install+set}" = set; then :
  6424. enableval=$enable_fast_install; p=${PACKAGE-default}
  6425. case $enableval in
  6426. yes) enable_fast_install=yes ;;
  6427. no) enable_fast_install=no ;;
  6428. *)
  6429. enable_fast_install=no
  6430. # Look at the argument we got. We use all the common list separators.
  6431. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6432. for pkg in $enableval; do
  6433. IFS="$lt_save_ifs"
  6434. if test "X$pkg" = "X$p"; then
  6435. enable_fast_install=yes
  6436. fi
  6437. done
  6438. IFS="$lt_save_ifs"
  6439. ;;
  6440. esac
  6441. else
  6442. enable_fast_install=yes
  6443. fi
  6444. # This can be used to rebuild libtool when needed
  6445. LIBTOOL_DEPS="$ltmain"
  6446. # Always use our own libtool.
  6447. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6448. test -z "$LN_S" && LN_S="ln -s"
  6449. if test -n "${ZSH_VERSION+set}" ; then
  6450. setopt NO_GLOB_SUBST
  6451. fi
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6453. $as_echo_n "checking for objdir... " >&6; }
  6454. if ${lt_cv_objdir+:} false; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. rm -f .libs 2>/dev/null
  6458. mkdir .libs 2>/dev/null
  6459. if test -d .libs; then
  6460. lt_cv_objdir=.libs
  6461. else
  6462. # MS-DOS does not allow filenames that begin with a dot.
  6463. lt_cv_objdir=_libs
  6464. fi
  6465. rmdir .libs 2>/dev/null
  6466. fi
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6468. $as_echo "$lt_cv_objdir" >&6; }
  6469. objdir=$lt_cv_objdir
  6470. cat >>confdefs.h <<_ACEOF
  6471. #define LT_OBJDIR "$lt_cv_objdir/"
  6472. _ACEOF
  6473. case $host_os in
  6474. aix3*)
  6475. # AIX sometimes has problems with the GCC collect2 program. For some
  6476. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6477. # vanish in a puff of smoke.
  6478. if test "X${COLLECT_NAMES+set}" != Xset; then
  6479. COLLECT_NAMES=
  6480. export COLLECT_NAMES
  6481. fi
  6482. ;;
  6483. esac
  6484. # Global variables:
  6485. ofile=libtool
  6486. can_build_shared=yes
  6487. # All known linkers require a `.a' archive for static linking (except MSVC,
  6488. # which needs '.lib').
  6489. libext=a
  6490. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6491. old_CC="$CC"
  6492. old_CFLAGS="$CFLAGS"
  6493. # Set sane defaults for various variables
  6494. test -z "$CC" && CC=cc
  6495. test -z "$LTCC" && LTCC=$CC
  6496. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6497. test -z "$LD" && LD=ld
  6498. test -z "$ac_objext" && ac_objext=o
  6499. for cc_temp in $compiler""; do
  6500. case $cc_temp in
  6501. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6502. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6503. \-*) ;;
  6504. *) break;;
  6505. esac
  6506. done
  6507. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6508. # Only perform the check for file, if the check method requires it
  6509. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6510. case $deplibs_check_method in
  6511. file_magic*)
  6512. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6514. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6515. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6516. $as_echo_n "(cached) " >&6
  6517. else
  6518. case $MAGIC_CMD in
  6519. [\\/*] | ?:[\\/]*)
  6520. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6521. ;;
  6522. *)
  6523. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6524. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6525. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6526. for ac_dir in $ac_dummy; do
  6527. IFS="$lt_save_ifs"
  6528. test -z "$ac_dir" && ac_dir=.
  6529. if test -f $ac_dir/${ac_tool_prefix}file; then
  6530. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6531. if test -n "$file_magic_test_file"; then
  6532. case $deplibs_check_method in
  6533. "file_magic "*)
  6534. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6535. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6536. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6537. $EGREP "$file_magic_regex" > /dev/null; then
  6538. :
  6539. else
  6540. cat <<_LT_EOF 1>&2
  6541. *** Warning: the command libtool uses to detect shared libraries,
  6542. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6543. *** The result is that libtool may fail to recognize shared libraries
  6544. *** as such. This will affect the creation of libtool libraries that
  6545. *** depend on shared libraries, but programs linked with such libtool
  6546. *** libraries will work regardless of this problem. Nevertheless, you
  6547. *** may want to report the problem to your system manager and/or to
  6548. *** bug-libtool@gnu.org
  6549. _LT_EOF
  6550. fi ;;
  6551. esac
  6552. fi
  6553. break
  6554. fi
  6555. done
  6556. IFS="$lt_save_ifs"
  6557. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6558. ;;
  6559. esac
  6560. fi
  6561. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6562. if test -n "$MAGIC_CMD"; then
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6564. $as_echo "$MAGIC_CMD" >&6; }
  6565. else
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6567. $as_echo "no" >&6; }
  6568. fi
  6569. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6570. if test -n "$ac_tool_prefix"; then
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6572. $as_echo_n "checking for file... " >&6; }
  6573. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6574. $as_echo_n "(cached) " >&6
  6575. else
  6576. case $MAGIC_CMD in
  6577. [\\/*] | ?:[\\/]*)
  6578. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6579. ;;
  6580. *)
  6581. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6582. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6583. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6584. for ac_dir in $ac_dummy; do
  6585. IFS="$lt_save_ifs"
  6586. test -z "$ac_dir" && ac_dir=.
  6587. if test -f $ac_dir/file; then
  6588. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6589. if test -n "$file_magic_test_file"; then
  6590. case $deplibs_check_method in
  6591. "file_magic "*)
  6592. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6593. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6594. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6595. $EGREP "$file_magic_regex" > /dev/null; then
  6596. :
  6597. else
  6598. cat <<_LT_EOF 1>&2
  6599. *** Warning: the command libtool uses to detect shared libraries,
  6600. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6601. *** The result is that libtool may fail to recognize shared libraries
  6602. *** as such. This will affect the creation of libtool libraries that
  6603. *** depend on shared libraries, but programs linked with such libtool
  6604. *** libraries will work regardless of this problem. Nevertheless, you
  6605. *** may want to report the problem to your system manager and/or to
  6606. *** bug-libtool@gnu.org
  6607. _LT_EOF
  6608. fi ;;
  6609. esac
  6610. fi
  6611. break
  6612. fi
  6613. done
  6614. IFS="$lt_save_ifs"
  6615. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6616. ;;
  6617. esac
  6618. fi
  6619. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6620. if test -n "$MAGIC_CMD"; then
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6622. $as_echo "$MAGIC_CMD" >&6; }
  6623. else
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6625. $as_echo "no" >&6; }
  6626. fi
  6627. else
  6628. MAGIC_CMD=:
  6629. fi
  6630. fi
  6631. fi
  6632. ;;
  6633. esac
  6634. # Use C for the default configuration in the libtool script
  6635. lt_save_CC="$CC"
  6636. ac_ext=c
  6637. ac_cpp='$CPP $CPPFLAGS'
  6638. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6639. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6640. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6641. # Source file extension for C test sources.
  6642. ac_ext=c
  6643. # Object file extension for compiled C test sources.
  6644. objext=o
  6645. objext=$objext
  6646. # Code to be used in simple compile tests
  6647. lt_simple_compile_test_code="int some_variable = 0;"
  6648. # Code to be used in simple link tests
  6649. lt_simple_link_test_code='int main(){return(0);}'
  6650. # If no C compiler was specified, use CC.
  6651. LTCC=${LTCC-"$CC"}
  6652. # If no C compiler flags were specified, use CFLAGS.
  6653. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6654. # Allow CC to be a program name with arguments.
  6655. compiler=$CC
  6656. # Save the default compiler, since it gets overwritten when the other
  6657. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6658. compiler_DEFAULT=$CC
  6659. # save warnings/boilerplate of simple test code
  6660. ac_outfile=conftest.$ac_objext
  6661. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6662. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6663. _lt_compiler_boilerplate=`cat conftest.err`
  6664. $RM conftest*
  6665. ac_outfile=conftest.$ac_objext
  6666. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6667. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6668. _lt_linker_boilerplate=`cat conftest.err`
  6669. $RM -r conftest*
  6670. ## CAVEAT EMPTOR:
  6671. ## There is no encapsulation within the following macros, do not change
  6672. ## the running order or otherwise move them around unless you know exactly
  6673. ## what you are doing...
  6674. if test -n "$compiler"; then
  6675. lt_prog_compiler_no_builtin_flag=
  6676. if test "$GCC" = yes; then
  6677. case $cc_basename in
  6678. nvcc*)
  6679. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6680. *)
  6681. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6682. esac
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6684. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6685. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6686. $as_echo_n "(cached) " >&6
  6687. else
  6688. lt_cv_prog_compiler_rtti_exceptions=no
  6689. ac_outfile=conftest.$ac_objext
  6690. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6691. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6692. # Insert the option either (1) after the last *FLAGS variable, or
  6693. # (2) before a word containing "conftest.", or (3) at the end.
  6694. # Note that $ac_compile itself does not contain backslashes and begins
  6695. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6696. # The option is referenced via a variable to avoid confusing sed.
  6697. lt_compile=`echo "$ac_compile" | $SED \
  6698. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6699. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6700. -e 's:$: $lt_compiler_flag:'`
  6701. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6702. (eval "$lt_compile" 2>conftest.err)
  6703. ac_status=$?
  6704. cat conftest.err >&5
  6705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6706. if (exit $ac_status) && test -s "$ac_outfile"; then
  6707. # The compiler can only warn and ignore the option if not recognized
  6708. # So say no if there are warnings other than the usual output.
  6709. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6710. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6711. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6712. lt_cv_prog_compiler_rtti_exceptions=yes
  6713. fi
  6714. fi
  6715. $RM conftest*
  6716. fi
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6718. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6719. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6720. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6721. else
  6722. :
  6723. fi
  6724. fi
  6725. lt_prog_compiler_wl=
  6726. lt_prog_compiler_pic=
  6727. lt_prog_compiler_static=
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6729. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6730. if test "$GCC" = yes; then
  6731. lt_prog_compiler_wl='-Wl,'
  6732. lt_prog_compiler_static='-static'
  6733. case $host_os in
  6734. aix*)
  6735. # All AIX code is PIC.
  6736. if test "$host_cpu" = ia64; then
  6737. # AIX 5 now supports IA64 processor
  6738. lt_prog_compiler_static='-Bstatic'
  6739. fi
  6740. lt_prog_compiler_pic='-fPIC'
  6741. ;;
  6742. amigaos*)
  6743. case $host_cpu in
  6744. powerpc)
  6745. # see comment about AmigaOS4 .so support
  6746. lt_prog_compiler_pic='-fPIC'
  6747. ;;
  6748. m68k)
  6749. # FIXME: we need at least 68020 code to build shared libraries, but
  6750. # adding the `-m68020' flag to GCC prevents building anything better,
  6751. # like `-m68040'.
  6752. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6753. ;;
  6754. esac
  6755. ;;
  6756. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6757. # PIC is the default for these OSes.
  6758. ;;
  6759. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6760. # This hack is so that the source file can tell whether it is being
  6761. # built for inclusion in a dll (and should export symbols for example).
  6762. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6763. # (--disable-auto-import) libraries
  6764. lt_prog_compiler_pic='-DDLL_EXPORT'
  6765. ;;
  6766. darwin* | rhapsody*)
  6767. # PIC is the default on this platform
  6768. # Common symbols not allowed in MH_DYLIB files
  6769. lt_prog_compiler_pic='-fno-common'
  6770. ;;
  6771. haiku*)
  6772. # PIC is the default for Haiku.
  6773. # The "-static" flag exists, but is broken.
  6774. lt_prog_compiler_static=
  6775. ;;
  6776. hpux*)
  6777. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6778. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6779. # sets the default TLS model and affects inlining.
  6780. case $host_cpu in
  6781. hppa*64*)
  6782. # +Z the default
  6783. ;;
  6784. *)
  6785. lt_prog_compiler_pic='-fPIC'
  6786. ;;
  6787. esac
  6788. ;;
  6789. interix[3-9]*)
  6790. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6791. # Instead, we relocate shared libraries at runtime.
  6792. ;;
  6793. msdosdjgpp*)
  6794. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6795. # on systems that don't support them.
  6796. lt_prog_compiler_can_build_shared=no
  6797. enable_shared=no
  6798. ;;
  6799. *nto* | *qnx*)
  6800. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6801. # it will coredump.
  6802. lt_prog_compiler_pic='-fPIC -shared'
  6803. ;;
  6804. sysv4*MP*)
  6805. if test -d /usr/nec; then
  6806. lt_prog_compiler_pic=-Kconform_pic
  6807. fi
  6808. ;;
  6809. *)
  6810. lt_prog_compiler_pic='-fPIC'
  6811. ;;
  6812. esac
  6813. case $cc_basename in
  6814. nvcc*) # Cuda Compiler Driver 2.2
  6815. lt_prog_compiler_wl='-Xlinker '
  6816. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6817. ;;
  6818. esac
  6819. else
  6820. # PORTME Check for flag to pass linker flags through the system compiler.
  6821. case $host_os in
  6822. aix*)
  6823. lt_prog_compiler_wl='-Wl,'
  6824. if test "$host_cpu" = ia64; then
  6825. # AIX 5 now supports IA64 processor
  6826. lt_prog_compiler_static='-Bstatic'
  6827. else
  6828. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6829. fi
  6830. ;;
  6831. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6832. # This hack is so that the source file can tell whether it is being
  6833. # built for inclusion in a dll (and should export symbols for example).
  6834. lt_prog_compiler_pic='-DDLL_EXPORT'
  6835. ;;
  6836. hpux9* | hpux10* | hpux11*)
  6837. lt_prog_compiler_wl='-Wl,'
  6838. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6839. # not for PA HP-UX.
  6840. case $host_cpu in
  6841. hppa*64*|ia64*)
  6842. # +Z the default
  6843. ;;
  6844. *)
  6845. lt_prog_compiler_pic='+Z'
  6846. ;;
  6847. esac
  6848. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6849. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6850. ;;
  6851. irix5* | irix6* | nonstopux*)
  6852. lt_prog_compiler_wl='-Wl,'
  6853. # PIC (with -KPIC) is the default.
  6854. lt_prog_compiler_static='-non_shared'
  6855. ;;
  6856. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6857. case $cc_basename in
  6858. # old Intel for x86_64 which still supported -KPIC.
  6859. ecc*)
  6860. lt_prog_compiler_wl='-Wl,'
  6861. lt_prog_compiler_pic='-KPIC'
  6862. lt_prog_compiler_static='-static'
  6863. ;;
  6864. # icc used to be incompatible with GCC.
  6865. # ICC 10 doesn't accept -KPIC any more.
  6866. icc* | ifort*)
  6867. lt_prog_compiler_wl='-Wl,'
  6868. lt_prog_compiler_pic='-fPIC'
  6869. lt_prog_compiler_static='-static'
  6870. ;;
  6871. # Lahey Fortran 8.1.
  6872. lf95*)
  6873. lt_prog_compiler_wl='-Wl,'
  6874. lt_prog_compiler_pic='--shared'
  6875. lt_prog_compiler_static='--static'
  6876. ;;
  6877. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6878. # Portland Group compilers (*not* the Pentium gcc compiler,
  6879. # which looks to be a dead project)
  6880. lt_prog_compiler_wl='-Wl,'
  6881. lt_prog_compiler_pic='-fpic'
  6882. lt_prog_compiler_static='-Bstatic'
  6883. ;;
  6884. ccc*)
  6885. lt_prog_compiler_wl='-Wl,'
  6886. # All Alpha code is PIC.
  6887. lt_prog_compiler_static='-non_shared'
  6888. ;;
  6889. xl* | bgxl* | bgf* | mpixl*)
  6890. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6891. lt_prog_compiler_wl='-Wl,'
  6892. lt_prog_compiler_pic='-qpic'
  6893. lt_prog_compiler_static='-qstaticlink'
  6894. ;;
  6895. *)
  6896. case `$CC -V 2>&1 | sed 5q` in
  6897. *Sun\ F* | *Sun*Fortran*)
  6898. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6899. lt_prog_compiler_pic='-KPIC'
  6900. lt_prog_compiler_static='-Bstatic'
  6901. lt_prog_compiler_wl=''
  6902. ;;
  6903. *Sun\ C*)
  6904. # Sun C 5.9
  6905. lt_prog_compiler_pic='-KPIC'
  6906. lt_prog_compiler_static='-Bstatic'
  6907. lt_prog_compiler_wl='-Wl,'
  6908. ;;
  6909. esac
  6910. ;;
  6911. esac
  6912. ;;
  6913. newsos6)
  6914. lt_prog_compiler_pic='-KPIC'
  6915. lt_prog_compiler_static='-Bstatic'
  6916. ;;
  6917. *nto* | *qnx*)
  6918. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6919. # it will coredump.
  6920. lt_prog_compiler_pic='-fPIC -shared'
  6921. ;;
  6922. osf3* | osf4* | osf5*)
  6923. lt_prog_compiler_wl='-Wl,'
  6924. # All OSF/1 code is PIC.
  6925. lt_prog_compiler_static='-non_shared'
  6926. ;;
  6927. rdos*)
  6928. lt_prog_compiler_static='-non_shared'
  6929. ;;
  6930. solaris*)
  6931. lt_prog_compiler_pic='-KPIC'
  6932. lt_prog_compiler_static='-Bstatic'
  6933. case $cc_basename in
  6934. f77* | f90* | f95*)
  6935. lt_prog_compiler_wl='-Qoption ld ';;
  6936. *)
  6937. lt_prog_compiler_wl='-Wl,';;
  6938. esac
  6939. ;;
  6940. sunos4*)
  6941. lt_prog_compiler_wl='-Qoption ld '
  6942. lt_prog_compiler_pic='-PIC'
  6943. lt_prog_compiler_static='-Bstatic'
  6944. ;;
  6945. sysv4 | sysv4.2uw2* | sysv4.3*)
  6946. lt_prog_compiler_wl='-Wl,'
  6947. lt_prog_compiler_pic='-KPIC'
  6948. lt_prog_compiler_static='-Bstatic'
  6949. ;;
  6950. sysv4*MP*)
  6951. if test -d /usr/nec ;then
  6952. lt_prog_compiler_pic='-Kconform_pic'
  6953. lt_prog_compiler_static='-Bstatic'
  6954. fi
  6955. ;;
  6956. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6957. lt_prog_compiler_wl='-Wl,'
  6958. lt_prog_compiler_pic='-KPIC'
  6959. lt_prog_compiler_static='-Bstatic'
  6960. ;;
  6961. unicos*)
  6962. lt_prog_compiler_wl='-Wl,'
  6963. lt_prog_compiler_can_build_shared=no
  6964. ;;
  6965. uts4*)
  6966. lt_prog_compiler_pic='-pic'
  6967. lt_prog_compiler_static='-Bstatic'
  6968. ;;
  6969. *)
  6970. lt_prog_compiler_can_build_shared=no
  6971. ;;
  6972. esac
  6973. fi
  6974. case $host_os in
  6975. # For platforms which do not support PIC, -DPIC is meaningless:
  6976. *djgpp*)
  6977. lt_prog_compiler_pic=
  6978. ;;
  6979. *)
  6980. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6981. ;;
  6982. esac
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6984. $as_echo "$lt_prog_compiler_pic" >&6; }
  6985. #
  6986. # Check to make sure the PIC flag actually works.
  6987. #
  6988. if test -n "$lt_prog_compiler_pic"; then
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6990. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6991. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  6992. $as_echo_n "(cached) " >&6
  6993. else
  6994. lt_cv_prog_compiler_pic_works=no
  6995. ac_outfile=conftest.$ac_objext
  6996. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6997. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6998. # Insert the option either (1) after the last *FLAGS variable, or
  6999. # (2) before a word containing "conftest.", or (3) at the end.
  7000. # Note that $ac_compile itself does not contain backslashes and begins
  7001. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7002. # The option is referenced via a variable to avoid confusing sed.
  7003. lt_compile=`echo "$ac_compile" | $SED \
  7004. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7005. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7006. -e 's:$: $lt_compiler_flag:'`
  7007. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7008. (eval "$lt_compile" 2>conftest.err)
  7009. ac_status=$?
  7010. cat conftest.err >&5
  7011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7012. if (exit $ac_status) && test -s "$ac_outfile"; then
  7013. # The compiler can only warn and ignore the option if not recognized
  7014. # So say no if there are warnings other than the usual output.
  7015. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7016. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7017. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7018. lt_cv_prog_compiler_pic_works=yes
  7019. fi
  7020. fi
  7021. $RM conftest*
  7022. fi
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7024. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7025. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7026. case $lt_prog_compiler_pic in
  7027. "" | " "*) ;;
  7028. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7029. esac
  7030. else
  7031. lt_prog_compiler_pic=
  7032. lt_prog_compiler_can_build_shared=no
  7033. fi
  7034. fi
  7035. #
  7036. # Check to make sure the static flag actually works.
  7037. #
  7038. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7040. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7041. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7042. $as_echo_n "(cached) " >&6
  7043. else
  7044. lt_cv_prog_compiler_static_works=no
  7045. save_LDFLAGS="$LDFLAGS"
  7046. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7047. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7048. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7049. # The linker can only warn and ignore the option if not recognized
  7050. # So say no if there are warnings
  7051. if test -s conftest.err; then
  7052. # Append any errors to the config.log.
  7053. cat conftest.err 1>&5
  7054. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7055. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7056. if diff conftest.exp conftest.er2 >/dev/null; then
  7057. lt_cv_prog_compiler_static_works=yes
  7058. fi
  7059. else
  7060. lt_cv_prog_compiler_static_works=yes
  7061. fi
  7062. fi
  7063. $RM -r conftest*
  7064. LDFLAGS="$save_LDFLAGS"
  7065. fi
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7067. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7068. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7069. :
  7070. else
  7071. lt_prog_compiler_static=
  7072. fi
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7074. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7075. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7076. $as_echo_n "(cached) " >&6
  7077. else
  7078. lt_cv_prog_compiler_c_o=no
  7079. $RM -r conftest 2>/dev/null
  7080. mkdir conftest
  7081. cd conftest
  7082. mkdir out
  7083. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7084. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7085. # Insert the option either (1) after the last *FLAGS variable, or
  7086. # (2) before a word containing "conftest.", or (3) at the end.
  7087. # Note that $ac_compile itself does not contain backslashes and begins
  7088. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7089. lt_compile=`echo "$ac_compile" | $SED \
  7090. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7091. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7092. -e 's:$: $lt_compiler_flag:'`
  7093. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7094. (eval "$lt_compile" 2>out/conftest.err)
  7095. ac_status=$?
  7096. cat out/conftest.err >&5
  7097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7098. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7099. then
  7100. # The compiler can only warn and ignore the option if not recognized
  7101. # So say no if there are warnings
  7102. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7103. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7104. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7105. lt_cv_prog_compiler_c_o=yes
  7106. fi
  7107. fi
  7108. chmod u+w . 2>&5
  7109. $RM conftest*
  7110. # SGI C++ compiler will create directory out/ii_files/ for
  7111. # template instantiation
  7112. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7113. $RM out/* && rmdir out
  7114. cd ..
  7115. $RM -r conftest
  7116. $RM conftest*
  7117. fi
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7119. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7121. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7122. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7123. $as_echo_n "(cached) " >&6
  7124. else
  7125. lt_cv_prog_compiler_c_o=no
  7126. $RM -r conftest 2>/dev/null
  7127. mkdir conftest
  7128. cd conftest
  7129. mkdir out
  7130. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7131. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7132. # Insert the option either (1) after the last *FLAGS variable, or
  7133. # (2) before a word containing "conftest.", or (3) at the end.
  7134. # Note that $ac_compile itself does not contain backslashes and begins
  7135. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7136. lt_compile=`echo "$ac_compile" | $SED \
  7137. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7138. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7139. -e 's:$: $lt_compiler_flag:'`
  7140. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7141. (eval "$lt_compile" 2>out/conftest.err)
  7142. ac_status=$?
  7143. cat out/conftest.err >&5
  7144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7145. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7146. then
  7147. # The compiler can only warn and ignore the option if not recognized
  7148. # So say no if there are warnings
  7149. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7150. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7151. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7152. lt_cv_prog_compiler_c_o=yes
  7153. fi
  7154. fi
  7155. chmod u+w . 2>&5
  7156. $RM conftest*
  7157. # SGI C++ compiler will create directory out/ii_files/ for
  7158. # template instantiation
  7159. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7160. $RM out/* && rmdir out
  7161. cd ..
  7162. $RM -r conftest
  7163. $RM conftest*
  7164. fi
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7166. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7167. hard_links="nottested"
  7168. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7169. # do not overwrite the value of need_locks provided by the user
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7171. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7172. hard_links=yes
  7173. $RM conftest*
  7174. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7175. touch conftest.a
  7176. ln conftest.a conftest.b 2>&5 || hard_links=no
  7177. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7179. $as_echo "$hard_links" >&6; }
  7180. if test "$hard_links" = no; then
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7182. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7183. need_locks=warn
  7184. fi
  7185. else
  7186. need_locks=no
  7187. fi
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7189. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7190. runpath_var=
  7191. allow_undefined_flag=
  7192. always_export_symbols=no
  7193. archive_cmds=
  7194. archive_expsym_cmds=
  7195. compiler_needs_object=no
  7196. enable_shared_with_static_runtimes=no
  7197. export_dynamic_flag_spec=
  7198. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7199. hardcode_automatic=no
  7200. hardcode_direct=no
  7201. hardcode_direct_absolute=no
  7202. hardcode_libdir_flag_spec=
  7203. hardcode_libdir_flag_spec_ld=
  7204. hardcode_libdir_separator=
  7205. hardcode_minus_L=no
  7206. hardcode_shlibpath_var=unsupported
  7207. inherit_rpath=no
  7208. link_all_deplibs=unknown
  7209. module_cmds=
  7210. module_expsym_cmds=
  7211. old_archive_from_new_cmds=
  7212. old_archive_from_expsyms_cmds=
  7213. thread_safe_flag_spec=
  7214. whole_archive_flag_spec=
  7215. # include_expsyms should be a list of space-separated symbols to be *always*
  7216. # included in the symbol list
  7217. include_expsyms=
  7218. # exclude_expsyms can be an extended regexp of symbols to exclude
  7219. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7220. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7221. # as well as any symbol that contains `d'.
  7222. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7223. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7224. # platforms (ab)use it in PIC code, but their linkers get confused if
  7225. # the symbol is explicitly referenced. Since portable code cannot
  7226. # rely on this symbol name, it's probably fine to never include it in
  7227. # preloaded symbol tables.
  7228. # Exclude shared library initialization/finalization symbols.
  7229. extract_expsyms_cmds=
  7230. case $host_os in
  7231. cygwin* | mingw* | pw32* | cegcc*)
  7232. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7233. # When not using gcc, we currently assume that we are using
  7234. # Microsoft Visual C++.
  7235. if test "$GCC" != yes; then
  7236. with_gnu_ld=no
  7237. fi
  7238. ;;
  7239. interix*)
  7240. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7241. with_gnu_ld=yes
  7242. ;;
  7243. openbsd*)
  7244. with_gnu_ld=no
  7245. ;;
  7246. esac
  7247. ld_shlibs=yes
  7248. # On some targets, GNU ld is compatible enough with the native linker
  7249. # that we're better off using the native interface for both.
  7250. lt_use_gnu_ld_interface=no
  7251. if test "$with_gnu_ld" = yes; then
  7252. case $host_os in
  7253. aix*)
  7254. # The AIX port of GNU ld has always aspired to compatibility
  7255. # with the native linker. However, as the warning in the GNU ld
  7256. # block says, versions before 2.19.5* couldn't really create working
  7257. # shared libraries, regardless of the interface used.
  7258. case `$LD -v 2>&1` in
  7259. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7260. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7261. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7262. *)
  7263. lt_use_gnu_ld_interface=yes
  7264. ;;
  7265. esac
  7266. ;;
  7267. *)
  7268. lt_use_gnu_ld_interface=yes
  7269. ;;
  7270. esac
  7271. fi
  7272. if test "$lt_use_gnu_ld_interface" = yes; then
  7273. # If archive_cmds runs LD, not CC, wlarc should be empty
  7274. wlarc='${wl}'
  7275. # Set some defaults for GNU ld with shared library support. These
  7276. # are reset later if shared libraries are not supported. Putting them
  7277. # here allows them to be overridden if necessary.
  7278. runpath_var=LD_RUN_PATH
  7279. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7280. export_dynamic_flag_spec='${wl}--export-dynamic'
  7281. # ancient GNU ld didn't support --whole-archive et. al.
  7282. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7283. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7284. else
  7285. whole_archive_flag_spec=
  7286. fi
  7287. supports_anon_versioning=no
  7288. case `$LD -v 2>&1` in
  7289. *GNU\ gold*) supports_anon_versioning=yes ;;
  7290. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7291. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7292. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7293. *\ 2.11.*) ;; # other 2.11 versions
  7294. *) supports_anon_versioning=yes ;;
  7295. esac
  7296. # See if GNU ld supports shared libraries.
  7297. case $host_os in
  7298. aix[3-9]*)
  7299. # On AIX/PPC, the GNU linker is very broken
  7300. if test "$host_cpu" != ia64; then
  7301. ld_shlibs=no
  7302. cat <<_LT_EOF 1>&2
  7303. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7304. *** to be unable to reliably create shared libraries on AIX.
  7305. *** Therefore, libtool is disabling shared libraries support. If you
  7306. *** really care for shared libraries, you may want to install binutils
  7307. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7308. *** You will then need to restart the configuration process.
  7309. _LT_EOF
  7310. fi
  7311. ;;
  7312. amigaos*)
  7313. case $host_cpu in
  7314. powerpc)
  7315. # see comment about AmigaOS4 .so support
  7316. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7317. archive_expsym_cmds=''
  7318. ;;
  7319. m68k)
  7320. 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)'
  7321. hardcode_libdir_flag_spec='-L$libdir'
  7322. hardcode_minus_L=yes
  7323. ;;
  7324. esac
  7325. ;;
  7326. beos*)
  7327. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7328. allow_undefined_flag=unsupported
  7329. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7330. # support --undefined. This deserves some investigation. FIXME
  7331. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7332. else
  7333. ld_shlibs=no
  7334. fi
  7335. ;;
  7336. cygwin* | mingw* | pw32* | cegcc*)
  7337. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7338. # as there is no search path for DLLs.
  7339. hardcode_libdir_flag_spec='-L$libdir'
  7340. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7341. allow_undefined_flag=unsupported
  7342. always_export_symbols=no
  7343. enable_shared_with_static_runtimes=yes
  7344. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7345. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7346. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7347. # If the export-symbols file already is a .def file (1st line
  7348. # is EXPORTS), use it as is; otherwise, prepend...
  7349. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7350. cp $export_symbols $output_objdir/$soname.def;
  7351. else
  7352. echo EXPORTS > $output_objdir/$soname.def;
  7353. cat $export_symbols >> $output_objdir/$soname.def;
  7354. fi~
  7355. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7356. else
  7357. ld_shlibs=no
  7358. fi
  7359. ;;
  7360. haiku*)
  7361. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7362. link_all_deplibs=yes
  7363. ;;
  7364. interix[3-9]*)
  7365. hardcode_direct=no
  7366. hardcode_shlibpath_var=no
  7367. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7368. export_dynamic_flag_spec='${wl}-E'
  7369. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7370. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7371. # default) and relocated if they conflict, which is a slow very memory
  7372. # consuming and fragmenting process. To avoid this, we pick a random,
  7373. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7374. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7375. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7376. 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'
  7377. ;;
  7378. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  7379. tmp_diet=no
  7380. if test "$host_os" = linux-dietlibc; then
  7381. case $cc_basename in
  7382. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7383. esac
  7384. fi
  7385. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7386. && test "$tmp_diet" = no
  7387. then
  7388. tmp_addflag=' $pic_flag'
  7389. tmp_sharedflag='-shared'
  7390. case $cc_basename,$host_cpu in
  7391. pgcc*) # Portland Group C compiler
  7392. 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'
  7393. tmp_addflag=' $pic_flag'
  7394. ;;
  7395. pgf77* | pgf90* | pgf95* | pgfortran*)
  7396. # Portland Group f77 and f90 compilers
  7397. 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'
  7398. tmp_addflag=' $pic_flag -Mnomain' ;;
  7399. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7400. tmp_addflag=' -i_dynamic' ;;
  7401. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7402. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7403. ifc* | ifort*) # Intel Fortran compiler
  7404. tmp_addflag=' -nofor_main' ;;
  7405. lf95*) # Lahey Fortran 8.1
  7406. whole_archive_flag_spec=
  7407. tmp_sharedflag='--shared' ;;
  7408. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7409. tmp_sharedflag='-qmkshrobj'
  7410. tmp_addflag= ;;
  7411. nvcc*) # Cuda Compiler Driver 2.2
  7412. 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'
  7413. compiler_needs_object=yes
  7414. ;;
  7415. esac
  7416. case `$CC -V 2>&1 | sed 5q` in
  7417. *Sun\ C*) # Sun C 5.9
  7418. 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'
  7419. compiler_needs_object=yes
  7420. tmp_sharedflag='-G' ;;
  7421. *Sun\ F*) # Sun Fortran 8.3
  7422. tmp_sharedflag='-G' ;;
  7423. esac
  7424. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7425. if test "x$supports_anon_versioning" = xyes; then
  7426. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7427. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7428. echo "local: *; };" >> $output_objdir/$libname.ver~
  7429. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7430. fi
  7431. case $cc_basename in
  7432. xlf* | bgf* | bgxlf* | mpixlf*)
  7433. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7434. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7435. hardcode_libdir_flag_spec=
  7436. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7437. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7438. if test "x$supports_anon_versioning" = xyes; then
  7439. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7440. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7441. echo "local: *; };" >> $output_objdir/$libname.ver~
  7442. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7443. fi
  7444. ;;
  7445. esac
  7446. else
  7447. ld_shlibs=no
  7448. fi
  7449. ;;
  7450. netbsd*)
  7451. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7452. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7453. wlarc=
  7454. else
  7455. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7456. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7457. fi
  7458. ;;
  7459. solaris*)
  7460. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7461. ld_shlibs=no
  7462. cat <<_LT_EOF 1>&2
  7463. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7464. *** create shared libraries on Solaris systems. Therefore, libtool
  7465. *** is disabling shared libraries support. We urge you to upgrade GNU
  7466. *** binutils to release 2.9.1 or newer. Another option is to modify
  7467. *** your PATH or compiler configuration so that the native linker is
  7468. *** used, and then restart.
  7469. _LT_EOF
  7470. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7471. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7472. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7473. else
  7474. ld_shlibs=no
  7475. fi
  7476. ;;
  7477. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7478. case `$LD -v 2>&1` in
  7479. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7480. ld_shlibs=no
  7481. cat <<_LT_EOF 1>&2
  7482. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7483. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7484. *** is disabling shared libraries support. We urge you to upgrade GNU
  7485. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7486. *** your PATH or compiler configuration so that the native linker is
  7487. *** used, and then restart.
  7488. _LT_EOF
  7489. ;;
  7490. *)
  7491. # For security reasons, it is highly recommended that you always
  7492. # use absolute paths for naming shared libraries, and exclude the
  7493. # DT_RUNPATH tag from executables and libraries. But doing so
  7494. # requires that you compile everything twice, which is a pain.
  7495. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7496. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7497. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7498. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7499. else
  7500. ld_shlibs=no
  7501. fi
  7502. ;;
  7503. esac
  7504. ;;
  7505. sunos4*)
  7506. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7507. wlarc=
  7508. hardcode_direct=yes
  7509. hardcode_shlibpath_var=no
  7510. ;;
  7511. *)
  7512. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7513. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7514. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7515. else
  7516. ld_shlibs=no
  7517. fi
  7518. ;;
  7519. esac
  7520. if test "$ld_shlibs" = no; then
  7521. runpath_var=
  7522. hardcode_libdir_flag_spec=
  7523. export_dynamic_flag_spec=
  7524. whole_archive_flag_spec=
  7525. fi
  7526. else
  7527. # PORTME fill in a description of your system's linker (not GNU ld)
  7528. case $host_os in
  7529. aix3*)
  7530. allow_undefined_flag=unsupported
  7531. always_export_symbols=yes
  7532. 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'
  7533. # Note: this linker hardcodes the directories in LIBPATH if there
  7534. # are no directories specified by -L.
  7535. hardcode_minus_L=yes
  7536. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7537. # Neither direct hardcoding nor static linking is supported with a
  7538. # broken collect2.
  7539. hardcode_direct=unsupported
  7540. fi
  7541. ;;
  7542. aix[4-9]*)
  7543. if test "$host_cpu" = ia64; then
  7544. # On IA64, the linker does run time linking by default, so we don't
  7545. # have to do anything special.
  7546. aix_use_runtimelinking=no
  7547. exp_sym_flag='-Bexport'
  7548. no_entry_flag=""
  7549. else
  7550. # If we're using GNU nm, then we don't want the "-C" option.
  7551. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7552. # Also, AIX nm treats weak defined symbols like other global
  7553. # defined symbols, whereas GNU nm marks them as "W".
  7554. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7555. 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'
  7556. else
  7557. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7558. fi
  7559. aix_use_runtimelinking=no
  7560. # Test if we are trying to use run time linking or normal
  7561. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7562. # need to do runtime linking.
  7563. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7564. for ld_flag in $LDFLAGS; do
  7565. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7566. aix_use_runtimelinking=yes
  7567. break
  7568. fi
  7569. done
  7570. ;;
  7571. esac
  7572. exp_sym_flag='-bexport'
  7573. no_entry_flag='-bnoentry'
  7574. fi
  7575. # When large executables or shared objects are built, AIX ld can
  7576. # have problems creating the table of contents. If linking a library
  7577. # or program results in "error TOC overflow" add -mminimal-toc to
  7578. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7579. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7580. archive_cmds=''
  7581. hardcode_direct=yes
  7582. hardcode_direct_absolute=yes
  7583. hardcode_libdir_separator=':'
  7584. link_all_deplibs=yes
  7585. file_list_spec='${wl}-f,'
  7586. if test "$GCC" = yes; then
  7587. case $host_os in aix4.[012]|aix4.[012].*)
  7588. # We only want to do this on AIX 4.2 and lower, the check
  7589. # below for broken collect2 doesn't work under 4.3+
  7590. collect2name=`${CC} -print-prog-name=collect2`
  7591. if test -f "$collect2name" &&
  7592. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7593. then
  7594. # We have reworked collect2
  7595. :
  7596. else
  7597. # We have old collect2
  7598. hardcode_direct=unsupported
  7599. # It fails to find uninstalled libraries when the uninstalled
  7600. # path is not listed in the libpath. Setting hardcode_minus_L
  7601. # to unsupported forces relinking
  7602. hardcode_minus_L=yes
  7603. hardcode_libdir_flag_spec='-L$libdir'
  7604. hardcode_libdir_separator=
  7605. fi
  7606. ;;
  7607. esac
  7608. shared_flag='-shared'
  7609. if test "$aix_use_runtimelinking" = yes; then
  7610. shared_flag="$shared_flag "'${wl}-G'
  7611. fi
  7612. else
  7613. # not using gcc
  7614. if test "$host_cpu" = ia64; then
  7615. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7616. # chokes on -Wl,-G. The following line is correct:
  7617. shared_flag='-G'
  7618. else
  7619. if test "$aix_use_runtimelinking" = yes; then
  7620. shared_flag='${wl}-G'
  7621. else
  7622. shared_flag='${wl}-bM:SRE'
  7623. fi
  7624. fi
  7625. fi
  7626. export_dynamic_flag_spec='${wl}-bexpall'
  7627. # It seems that -bexpall does not export symbols beginning with
  7628. # underscore (_), so it is better to generate a list of symbols to export.
  7629. always_export_symbols=yes
  7630. if test "$aix_use_runtimelinking" = yes; then
  7631. # Warning - without using the other runtime loading flags (-brtl),
  7632. # -berok will link without error, but may produce a broken library.
  7633. allow_undefined_flag='-berok'
  7634. # Determine the default libpath from the value encoded in an
  7635. # empty executable.
  7636. if test x$gcc_no_link = xyes; then
  7637. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7638. fi
  7639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7640. /* end confdefs.h. */
  7641. int
  7642. main ()
  7643. {
  7644. ;
  7645. return 0;
  7646. }
  7647. _ACEOF
  7648. if ac_fn_c_try_link "$LINENO"; then :
  7649. lt_aix_libpath_sed='
  7650. /Import File Strings/,/^$/ {
  7651. /^0/ {
  7652. s/^0 *\(.*\)$/\1/
  7653. p
  7654. }
  7655. }'
  7656. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7657. # Check for a 64-bit object if we didn't find anything.
  7658. if test -z "$aix_libpath"; then
  7659. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7660. fi
  7661. fi
  7662. rm -f core conftest.err conftest.$ac_objext \
  7663. conftest$ac_exeext conftest.$ac_ext
  7664. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7665. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7666. 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"
  7667. else
  7668. if test "$host_cpu" = ia64; then
  7669. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7670. allow_undefined_flag="-z nodefs"
  7671. 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"
  7672. else
  7673. # Determine the default libpath from the value encoded in an
  7674. # empty executable.
  7675. if test x$gcc_no_link = xyes; then
  7676. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7677. fi
  7678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7679. /* end confdefs.h. */
  7680. int
  7681. main ()
  7682. {
  7683. ;
  7684. return 0;
  7685. }
  7686. _ACEOF
  7687. if ac_fn_c_try_link "$LINENO"; then :
  7688. lt_aix_libpath_sed='
  7689. /Import File Strings/,/^$/ {
  7690. /^0/ {
  7691. s/^0 *\(.*\)$/\1/
  7692. p
  7693. }
  7694. }'
  7695. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7696. # Check for a 64-bit object if we didn't find anything.
  7697. if test -z "$aix_libpath"; then
  7698. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7699. fi
  7700. fi
  7701. rm -f core conftest.err conftest.$ac_objext \
  7702. conftest$ac_exeext conftest.$ac_ext
  7703. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7704. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7705. # Warning - without using the other run time loading flags,
  7706. # -berok will link without error, but may produce a broken library.
  7707. no_undefined_flag=' ${wl}-bernotok'
  7708. allow_undefined_flag=' ${wl}-berok'
  7709. if test "$with_gnu_ld" = yes; then
  7710. # We only use this code for GNU lds that support --whole-archive.
  7711. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7712. else
  7713. # Exported symbols can be pulled into shared objects from archives
  7714. whole_archive_flag_spec='$convenience'
  7715. fi
  7716. archive_cmds_need_lc=yes
  7717. # This is similar to how AIX traditionally builds its shared libraries.
  7718. 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'
  7719. fi
  7720. fi
  7721. ;;
  7722. amigaos*)
  7723. case $host_cpu in
  7724. powerpc)
  7725. # see comment about AmigaOS4 .so support
  7726. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7727. archive_expsym_cmds=''
  7728. ;;
  7729. m68k)
  7730. 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)'
  7731. hardcode_libdir_flag_spec='-L$libdir'
  7732. hardcode_minus_L=yes
  7733. ;;
  7734. esac
  7735. ;;
  7736. bsdi[45]*)
  7737. export_dynamic_flag_spec=-rdynamic
  7738. ;;
  7739. cygwin* | mingw* | pw32* | cegcc*)
  7740. # When not using gcc, we currently assume that we are using
  7741. # Microsoft Visual C++.
  7742. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7743. # no search path for DLLs.
  7744. hardcode_libdir_flag_spec=' '
  7745. allow_undefined_flag=unsupported
  7746. # Tell ltmain to make .lib files, not .a files.
  7747. libext=lib
  7748. # Tell ltmain to make .dll files, not .so files.
  7749. shrext_cmds=".dll"
  7750. # FIXME: Setting linknames here is a bad hack.
  7751. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7752. # The linker will automatically build a .lib file if we build a DLL.
  7753. old_archive_from_new_cmds='true'
  7754. # FIXME: Should let the user specify the lib program.
  7755. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7756. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7757. enable_shared_with_static_runtimes=yes
  7758. ;;
  7759. darwin* | rhapsody*)
  7760. archive_cmds_need_lc=no
  7761. hardcode_direct=no
  7762. hardcode_automatic=yes
  7763. hardcode_shlibpath_var=unsupported
  7764. if test "$lt_cv_ld_force_load" = "yes"; then
  7765. 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\"`'
  7766. else
  7767. whole_archive_flag_spec=''
  7768. fi
  7769. link_all_deplibs=yes
  7770. allow_undefined_flag="$_lt_dar_allow_undefined"
  7771. case $cc_basename in
  7772. ifort*) _lt_dar_can_shared=yes ;;
  7773. *) _lt_dar_can_shared=$GCC ;;
  7774. esac
  7775. if test "$_lt_dar_can_shared" = "yes"; then
  7776. output_verbose_link_cmd=func_echo_all
  7777. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7778. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7779. 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}"
  7780. 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}"
  7781. else
  7782. ld_shlibs=no
  7783. fi
  7784. ;;
  7785. dgux*)
  7786. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7787. hardcode_libdir_flag_spec='-L$libdir'
  7788. hardcode_shlibpath_var=no
  7789. ;;
  7790. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7791. # support. Future versions do this automatically, but an explicit c++rt0.o
  7792. # does not break anything, and helps significantly (at the cost of a little
  7793. # extra space).
  7794. freebsd2.2*)
  7795. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7796. hardcode_libdir_flag_spec='-R$libdir'
  7797. hardcode_direct=yes
  7798. hardcode_shlibpath_var=no
  7799. ;;
  7800. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7801. freebsd2.*)
  7802. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7803. hardcode_direct=yes
  7804. hardcode_minus_L=yes
  7805. hardcode_shlibpath_var=no
  7806. ;;
  7807. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7808. freebsd* | dragonfly*)
  7809. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7810. hardcode_libdir_flag_spec='-R$libdir'
  7811. hardcode_direct=yes
  7812. hardcode_shlibpath_var=no
  7813. ;;
  7814. hpux9*)
  7815. if test "$GCC" = yes; then
  7816. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7817. else
  7818. 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'
  7819. fi
  7820. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7821. hardcode_libdir_separator=:
  7822. hardcode_direct=yes
  7823. # hardcode_minus_L: Not really in the search PATH,
  7824. # but as the default location of the library.
  7825. hardcode_minus_L=yes
  7826. export_dynamic_flag_spec='${wl}-E'
  7827. ;;
  7828. hpux10*)
  7829. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7830. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7831. else
  7832. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7833. fi
  7834. if test "$with_gnu_ld" = no; then
  7835. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7836. hardcode_libdir_flag_spec_ld='+b $libdir'
  7837. hardcode_libdir_separator=:
  7838. hardcode_direct=yes
  7839. hardcode_direct_absolute=yes
  7840. export_dynamic_flag_spec='${wl}-E'
  7841. # hardcode_minus_L: Not really in the search PATH,
  7842. # but as the default location of the library.
  7843. hardcode_minus_L=yes
  7844. fi
  7845. ;;
  7846. hpux11*)
  7847. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7848. case $host_cpu in
  7849. hppa*64*)
  7850. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7851. ;;
  7852. ia64*)
  7853. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7854. ;;
  7855. *)
  7856. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7857. ;;
  7858. esac
  7859. else
  7860. case $host_cpu in
  7861. hppa*64*)
  7862. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7863. ;;
  7864. ia64*)
  7865. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7866. ;;
  7867. *)
  7868. # Older versions of the 11.00 compiler do not understand -b yet
  7869. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7871. $as_echo_n "checking if $CC understands -b... " >&6; }
  7872. if ${lt_cv_prog_compiler__b+:} false; then :
  7873. $as_echo_n "(cached) " >&6
  7874. else
  7875. lt_cv_prog_compiler__b=no
  7876. save_LDFLAGS="$LDFLAGS"
  7877. LDFLAGS="$LDFLAGS -b"
  7878. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7879. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7880. # The linker can only warn and ignore the option if not recognized
  7881. # So say no if there are warnings
  7882. if test -s conftest.err; then
  7883. # Append any errors to the config.log.
  7884. cat conftest.err 1>&5
  7885. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7886. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7887. if diff conftest.exp conftest.er2 >/dev/null; then
  7888. lt_cv_prog_compiler__b=yes
  7889. fi
  7890. else
  7891. lt_cv_prog_compiler__b=yes
  7892. fi
  7893. fi
  7894. $RM -r conftest*
  7895. LDFLAGS="$save_LDFLAGS"
  7896. fi
  7897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7898. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7899. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7900. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7901. else
  7902. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7903. fi
  7904. ;;
  7905. esac
  7906. fi
  7907. if test "$with_gnu_ld" = no; then
  7908. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7909. hardcode_libdir_separator=:
  7910. case $host_cpu in
  7911. hppa*64*|ia64*)
  7912. hardcode_direct=no
  7913. hardcode_shlibpath_var=no
  7914. ;;
  7915. *)
  7916. hardcode_direct=yes
  7917. hardcode_direct_absolute=yes
  7918. export_dynamic_flag_spec='${wl}-E'
  7919. # hardcode_minus_L: Not really in the search PATH,
  7920. # but as the default location of the library.
  7921. hardcode_minus_L=yes
  7922. ;;
  7923. esac
  7924. fi
  7925. ;;
  7926. irix5* | irix6* | nonstopux*)
  7927. if test "$GCC" = yes; then
  7928. archive_cmds='$CC -shared $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'
  7929. # Try to use the -exported_symbol ld option, if it does not
  7930. # work, assume that -exports_file does not work either and
  7931. # implicitly export all symbols.
  7932. save_LDFLAGS="$LDFLAGS"
  7933. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7934. if test x$gcc_no_link = xyes; then
  7935. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7936. fi
  7937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7938. /* end confdefs.h. */
  7939. int foo(void) {}
  7940. _ACEOF
  7941. if ac_fn_c_try_link "$LINENO"; then :
  7942. archive_expsym_cmds='$CC -shared $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'
  7943. fi
  7944. rm -f core conftest.err conftest.$ac_objext \
  7945. conftest$ac_exeext conftest.$ac_ext
  7946. LDFLAGS="$save_LDFLAGS"
  7947. else
  7948. 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'
  7949. 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'
  7950. fi
  7951. archive_cmds_need_lc='no'
  7952. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7953. hardcode_libdir_separator=:
  7954. inherit_rpath=yes
  7955. link_all_deplibs=yes
  7956. ;;
  7957. netbsd*)
  7958. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7959. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7960. else
  7961. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7962. fi
  7963. hardcode_libdir_flag_spec='-R$libdir'
  7964. hardcode_direct=yes
  7965. hardcode_shlibpath_var=no
  7966. ;;
  7967. newsos6)
  7968. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7969. hardcode_direct=yes
  7970. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7971. hardcode_libdir_separator=:
  7972. hardcode_shlibpath_var=no
  7973. ;;
  7974. *nto* | *qnx*)
  7975. ;;
  7976. openbsd*)
  7977. if test -f /usr/libexec/ld.so; then
  7978. hardcode_direct=yes
  7979. hardcode_shlibpath_var=no
  7980. hardcode_direct_absolute=yes
  7981. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7982. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7983. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7984. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7985. export_dynamic_flag_spec='${wl}-E'
  7986. else
  7987. case $host_os in
  7988. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7989. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7990. hardcode_libdir_flag_spec='-R$libdir'
  7991. ;;
  7992. *)
  7993. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7994. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7995. ;;
  7996. esac
  7997. fi
  7998. else
  7999. ld_shlibs=no
  8000. fi
  8001. ;;
  8002. os2*)
  8003. hardcode_libdir_flag_spec='-L$libdir'
  8004. hardcode_minus_L=yes
  8005. allow_undefined_flag=unsupported
  8006. 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'
  8007. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8008. ;;
  8009. osf3*)
  8010. if test "$GCC" = yes; then
  8011. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8012. 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'
  8013. else
  8014. allow_undefined_flag=' -expect_unresolved \*'
  8015. 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'
  8016. fi
  8017. archive_cmds_need_lc='no'
  8018. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8019. hardcode_libdir_separator=:
  8020. ;;
  8021. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8022. if test "$GCC" = yes; then
  8023. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8024. archive_cmds='$CC -shared${allow_undefined_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'
  8025. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8026. else
  8027. allow_undefined_flag=' -expect_unresolved \*'
  8028. 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'
  8029. 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~
  8030. $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'
  8031. # Both c and cxx compiler support -rpath directly
  8032. hardcode_libdir_flag_spec='-rpath $libdir'
  8033. fi
  8034. archive_cmds_need_lc='no'
  8035. hardcode_libdir_separator=:
  8036. ;;
  8037. solaris*)
  8038. no_undefined_flag=' -z defs'
  8039. if test "$GCC" = yes; then
  8040. wlarc='${wl}'
  8041. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8042. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8043. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8044. else
  8045. case `$CC -V 2>&1` in
  8046. *"Compilers 5.0"*)
  8047. wlarc=''
  8048. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8049. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8050. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8051. ;;
  8052. *)
  8053. wlarc='${wl}'
  8054. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8055. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8056. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8057. ;;
  8058. esac
  8059. fi
  8060. hardcode_libdir_flag_spec='-R$libdir'
  8061. hardcode_shlibpath_var=no
  8062. case $host_os in
  8063. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8064. *)
  8065. # The compiler driver will combine and reorder linker options,
  8066. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8067. # but is careful enough not to reorder.
  8068. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8069. if test "$GCC" = yes; then
  8070. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8071. else
  8072. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8073. fi
  8074. ;;
  8075. esac
  8076. link_all_deplibs=yes
  8077. ;;
  8078. sunos4*)
  8079. if test "x$host_vendor" = xsequent; then
  8080. # Use $CC to link under sequent, because it throws in some extra .o
  8081. # files that make .init and .fini sections work.
  8082. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8083. else
  8084. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8085. fi
  8086. hardcode_libdir_flag_spec='-L$libdir'
  8087. hardcode_direct=yes
  8088. hardcode_minus_L=yes
  8089. hardcode_shlibpath_var=no
  8090. ;;
  8091. sysv4)
  8092. case $host_vendor in
  8093. sni)
  8094. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8095. hardcode_direct=yes # is this really true???
  8096. ;;
  8097. siemens)
  8098. ## LD is ld it makes a PLAMLIB
  8099. ## CC just makes a GrossModule.
  8100. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8101. reload_cmds='$CC -r -o $output$reload_objs'
  8102. hardcode_direct=no
  8103. ;;
  8104. motorola)
  8105. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8106. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8107. ;;
  8108. esac
  8109. runpath_var='LD_RUN_PATH'
  8110. hardcode_shlibpath_var=no
  8111. ;;
  8112. sysv4.3*)
  8113. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8114. hardcode_shlibpath_var=no
  8115. export_dynamic_flag_spec='-Bexport'
  8116. ;;
  8117. sysv4*MP*)
  8118. if test -d /usr/nec; then
  8119. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8120. hardcode_shlibpath_var=no
  8121. runpath_var=LD_RUN_PATH
  8122. hardcode_runpath_var=yes
  8123. ld_shlibs=yes
  8124. fi
  8125. ;;
  8126. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8127. no_undefined_flag='${wl}-z,text'
  8128. archive_cmds_need_lc=no
  8129. hardcode_shlibpath_var=no
  8130. runpath_var='LD_RUN_PATH'
  8131. if test "$GCC" = yes; then
  8132. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8133. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8134. else
  8135. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8136. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8137. fi
  8138. ;;
  8139. sysv5* | sco3.2v5* | sco5v6*)
  8140. # Note: We can NOT use -z defs as we might desire, because we do not
  8141. # link with -lc, and that would cause any symbols used from libc to
  8142. # always be unresolved, which means just about no library would
  8143. # ever link correctly. If we're not using GNU ld we use -z text
  8144. # though, which does catch some bad symbols but isn't as heavy-handed
  8145. # as -z defs.
  8146. no_undefined_flag='${wl}-z,text'
  8147. allow_undefined_flag='${wl}-z,nodefs'
  8148. archive_cmds_need_lc=no
  8149. hardcode_shlibpath_var=no
  8150. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8151. hardcode_libdir_separator=':'
  8152. link_all_deplibs=yes
  8153. export_dynamic_flag_spec='${wl}-Bexport'
  8154. runpath_var='LD_RUN_PATH'
  8155. if test "$GCC" = yes; then
  8156. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8157. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8158. else
  8159. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8160. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8161. fi
  8162. ;;
  8163. uts4*)
  8164. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8165. hardcode_libdir_flag_spec='-L$libdir'
  8166. hardcode_shlibpath_var=no
  8167. ;;
  8168. *)
  8169. ld_shlibs=no
  8170. ;;
  8171. esac
  8172. if test x$host_vendor = xsni; then
  8173. case $host in
  8174. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8175. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8176. ;;
  8177. esac
  8178. fi
  8179. fi
  8180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8181. $as_echo "$ld_shlibs" >&6; }
  8182. test "$ld_shlibs" = no && can_build_shared=no
  8183. with_gnu_ld=$with_gnu_ld
  8184. #
  8185. # Do we need to explicitly link libc?
  8186. #
  8187. case "x$archive_cmds_need_lc" in
  8188. x|xyes)
  8189. # Assume -lc should be added
  8190. archive_cmds_need_lc=yes
  8191. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8192. case $archive_cmds in
  8193. *'~'*)
  8194. # FIXME: we may have to deal with multi-command sequences.
  8195. ;;
  8196. '$CC '*)
  8197. # Test whether the compiler implicitly links with -lc since on some
  8198. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8199. # to ld, don't add -lc before -lgcc.
  8200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8201. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8202. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8203. $as_echo_n "(cached) " >&6
  8204. else
  8205. $RM conftest*
  8206. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8207. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8208. (eval $ac_compile) 2>&5
  8209. ac_status=$?
  8210. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8211. test $ac_status = 0; } 2>conftest.err; then
  8212. soname=conftest
  8213. lib=conftest
  8214. libobjs=conftest.$ac_objext
  8215. deplibs=
  8216. wl=$lt_prog_compiler_wl
  8217. pic_flag=$lt_prog_compiler_pic
  8218. compiler_flags=-v
  8219. linker_flags=-v
  8220. verstring=
  8221. output_objdir=.
  8222. libname=conftest
  8223. lt_save_allow_undefined_flag=$allow_undefined_flag
  8224. allow_undefined_flag=
  8225. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8226. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8227. ac_status=$?
  8228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8229. test $ac_status = 0; }
  8230. then
  8231. lt_cv_archive_cmds_need_lc=no
  8232. else
  8233. lt_cv_archive_cmds_need_lc=yes
  8234. fi
  8235. allow_undefined_flag=$lt_save_allow_undefined_flag
  8236. else
  8237. cat conftest.err 1>&5
  8238. fi
  8239. $RM conftest*
  8240. fi
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8242. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8243. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8244. ;;
  8245. esac
  8246. fi
  8247. ;;
  8248. esac
  8249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8250. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8251. if test "$GCC" = yes; then
  8252. case $host_os in
  8253. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8254. *) lt_awk_arg="/^libraries:/" ;;
  8255. esac
  8256. case $host_os in
  8257. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8258. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8259. esac
  8260. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8261. case $lt_search_path_spec in
  8262. *\;*)
  8263. # if the path contains ";" then we assume it to be the separator
  8264. # otherwise default to the standard path separator (i.e. ":") - it is
  8265. # assumed that no part of a normal pathname contains ";" but that should
  8266. # okay in the real world where ";" in dirpaths is itself problematic.
  8267. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8268. ;;
  8269. *)
  8270. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8271. ;;
  8272. esac
  8273. # Ok, now we have the path, separated by spaces, we can step through it
  8274. # and add multilib dir if necessary.
  8275. lt_tmp_lt_search_path_spec=
  8276. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8277. for lt_sys_path in $lt_search_path_spec; do
  8278. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8279. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8280. else
  8281. test -d "$lt_sys_path" && \
  8282. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8283. fi
  8284. done
  8285. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8286. BEGIN {RS=" "; FS="/|\n";} {
  8287. lt_foo="";
  8288. lt_count=0;
  8289. for (lt_i = NF; lt_i > 0; lt_i--) {
  8290. if ($lt_i != "" && $lt_i != ".") {
  8291. if ($lt_i == "..") {
  8292. lt_count++;
  8293. } else {
  8294. if (lt_count == 0) {
  8295. lt_foo="/" $lt_i lt_foo;
  8296. } else {
  8297. lt_count--;
  8298. }
  8299. }
  8300. }
  8301. }
  8302. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8303. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8304. }'`
  8305. # AWK program above erroneously prepends '/' to C:/dos/paths
  8306. # for these hosts.
  8307. case $host_os in
  8308. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8309. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8310. esac
  8311. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8312. else
  8313. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8314. fi
  8315. library_names_spec=
  8316. libname_spec='lib$name'
  8317. soname_spec=
  8318. shrext_cmds=".so"
  8319. postinstall_cmds=
  8320. postuninstall_cmds=
  8321. finish_cmds=
  8322. finish_eval=
  8323. shlibpath_var=
  8324. shlibpath_overrides_runpath=unknown
  8325. version_type=none
  8326. dynamic_linker="$host_os ld.so"
  8327. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8328. need_lib_prefix=unknown
  8329. hardcode_into_libs=no
  8330. # when you set need_version to no, make sure it does not cause -set_version
  8331. # flags to be left without arguments
  8332. need_version=unknown
  8333. case $host_os in
  8334. aix3*)
  8335. version_type=linux
  8336. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8337. shlibpath_var=LIBPATH
  8338. # AIX 3 has no versioning support, so we append a major version to the name.
  8339. soname_spec='${libname}${release}${shared_ext}$major'
  8340. ;;
  8341. aix[4-9]*)
  8342. version_type=linux
  8343. need_lib_prefix=no
  8344. need_version=no
  8345. hardcode_into_libs=yes
  8346. if test "$host_cpu" = ia64; then
  8347. # AIX 5 supports IA64
  8348. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8349. shlibpath_var=LD_LIBRARY_PATH
  8350. else
  8351. # With GCC up to 2.95.x, collect2 would create an import file
  8352. # for dependence libraries. The import file would start with
  8353. # the line `#! .'. This would cause the generated library to
  8354. # depend on `.', always an invalid library. This was fixed in
  8355. # development snapshots of GCC prior to 3.0.
  8356. case $host_os in
  8357. aix4 | aix4.[01] | aix4.[01].*)
  8358. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8359. echo ' yes '
  8360. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8361. :
  8362. else
  8363. can_build_shared=no
  8364. fi
  8365. ;;
  8366. esac
  8367. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8368. # soname into executable. Probably we can add versioning support to
  8369. # collect2, so additional links can be useful in future.
  8370. if test "$aix_use_runtimelinking" = yes; then
  8371. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8372. # instead of lib<name>.a to let people know that these are not
  8373. # typical AIX shared libraries.
  8374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8375. else
  8376. # We preserve .a as extension for shared libraries through AIX4.2
  8377. # and later when we are not doing run time linking.
  8378. library_names_spec='${libname}${release}.a $libname.a'
  8379. soname_spec='${libname}${release}${shared_ext}$major'
  8380. fi
  8381. shlibpath_var=LIBPATH
  8382. fi
  8383. ;;
  8384. amigaos*)
  8385. case $host_cpu in
  8386. powerpc)
  8387. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8388. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8390. ;;
  8391. m68k)
  8392. library_names_spec='$libname.ixlibrary $libname.a'
  8393. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8394. 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'
  8395. ;;
  8396. esac
  8397. ;;
  8398. beos*)
  8399. library_names_spec='${libname}${shared_ext}'
  8400. dynamic_linker="$host_os ld.so"
  8401. shlibpath_var=LIBRARY_PATH
  8402. ;;
  8403. bsdi[45]*)
  8404. version_type=linux
  8405. need_version=no
  8406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8407. soname_spec='${libname}${release}${shared_ext}$major'
  8408. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8409. shlibpath_var=LD_LIBRARY_PATH
  8410. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8411. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8412. # the default ld.so.conf also contains /usr/contrib/lib and
  8413. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8414. # libtool to hard-code these into programs
  8415. ;;
  8416. cygwin* | mingw* | pw32* | cegcc*)
  8417. version_type=windows
  8418. shrext_cmds=".dll"
  8419. need_version=no
  8420. need_lib_prefix=no
  8421. case $GCC,$host_os in
  8422. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8423. library_names_spec='$libname.dll.a'
  8424. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8425. postinstall_cmds='base_file=`basename \${file}`~
  8426. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8427. dldir=$destdir/`dirname \$dlpath`~
  8428. test -d \$dldir || mkdir -p \$dldir~
  8429. $install_prog $dir/$dlname \$dldir/$dlname~
  8430. chmod a+x \$dldir/$dlname~
  8431. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8432. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8433. fi'
  8434. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8435. dlpath=$dir/\$dldll~
  8436. $RM \$dlpath'
  8437. shlibpath_overrides_runpath=yes
  8438. case $host_os in
  8439. cygwin*)
  8440. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8441. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8442. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8443. ;;
  8444. mingw* | cegcc*)
  8445. # MinGW DLLs use traditional 'lib' prefix
  8446. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8447. ;;
  8448. pw32*)
  8449. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8450. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8451. ;;
  8452. esac
  8453. ;;
  8454. *)
  8455. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8456. ;;
  8457. esac
  8458. dynamic_linker='Win32 ld.exe'
  8459. # FIXME: first we should search . and the directory the executable is in
  8460. shlibpath_var=PATH
  8461. ;;
  8462. darwin* | rhapsody*)
  8463. dynamic_linker="$host_os dyld"
  8464. version_type=darwin
  8465. need_lib_prefix=no
  8466. need_version=no
  8467. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8468. soname_spec='${libname}${release}${major}$shared_ext'
  8469. shlibpath_overrides_runpath=yes
  8470. shlibpath_var=DYLD_LIBRARY_PATH
  8471. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8472. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8473. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8474. ;;
  8475. dgux*)
  8476. version_type=linux
  8477. need_lib_prefix=no
  8478. need_version=no
  8479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8480. soname_spec='${libname}${release}${shared_ext}$major'
  8481. shlibpath_var=LD_LIBRARY_PATH
  8482. ;;
  8483. freebsd* | dragonfly*)
  8484. # DragonFly does not have aout. When/if they implement a new
  8485. # versioning mechanism, adjust this.
  8486. if test -x /usr/bin/objformat; then
  8487. objformat=`/usr/bin/objformat`
  8488. else
  8489. case $host_os in
  8490. freebsd[23].*) objformat=aout ;;
  8491. *) objformat=elf ;;
  8492. esac
  8493. fi
  8494. version_type=freebsd-$objformat
  8495. case $version_type in
  8496. freebsd-elf*)
  8497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8498. need_version=no
  8499. need_lib_prefix=no
  8500. ;;
  8501. freebsd-*)
  8502. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8503. need_version=yes
  8504. ;;
  8505. esac
  8506. shlibpath_var=LD_LIBRARY_PATH
  8507. case $host_os in
  8508. freebsd2.*)
  8509. shlibpath_overrides_runpath=yes
  8510. ;;
  8511. freebsd3.[01]* | freebsdelf3.[01]*)
  8512. shlibpath_overrides_runpath=yes
  8513. hardcode_into_libs=yes
  8514. ;;
  8515. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8516. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8517. shlibpath_overrides_runpath=no
  8518. hardcode_into_libs=yes
  8519. ;;
  8520. *) # from 4.6 on, and DragonFly
  8521. shlibpath_overrides_runpath=yes
  8522. hardcode_into_libs=yes
  8523. ;;
  8524. esac
  8525. ;;
  8526. haiku*)
  8527. version_type=linux
  8528. need_lib_prefix=no
  8529. need_version=no
  8530. dynamic_linker="$host_os runtime_loader"
  8531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8532. soname_spec='${libname}${release}${shared_ext}$major'
  8533. shlibpath_var=LIBRARY_PATH
  8534. shlibpath_overrides_runpath=yes
  8535. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8536. hardcode_into_libs=yes
  8537. ;;
  8538. hpux9* | hpux10* | hpux11*)
  8539. # Give a soname corresponding to the major version so that dld.sl refuses to
  8540. # link against other versions.
  8541. version_type=sunos
  8542. need_lib_prefix=no
  8543. need_version=no
  8544. case $host_cpu in
  8545. ia64*)
  8546. shrext_cmds='.so'
  8547. hardcode_into_libs=yes
  8548. dynamic_linker="$host_os dld.so"
  8549. shlibpath_var=LD_LIBRARY_PATH
  8550. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8552. soname_spec='${libname}${release}${shared_ext}$major'
  8553. if test "X$HPUX_IA64_MODE" = X32; then
  8554. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8555. else
  8556. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8557. fi
  8558. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8559. ;;
  8560. hppa*64*)
  8561. shrext_cmds='.sl'
  8562. hardcode_into_libs=yes
  8563. dynamic_linker="$host_os dld.sl"
  8564. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8565. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8567. soname_spec='${libname}${release}${shared_ext}$major'
  8568. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8569. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8570. ;;
  8571. *)
  8572. shrext_cmds='.sl'
  8573. dynamic_linker="$host_os dld.sl"
  8574. shlibpath_var=SHLIB_PATH
  8575. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8577. soname_spec='${libname}${release}${shared_ext}$major'
  8578. ;;
  8579. esac
  8580. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8581. postinstall_cmds='chmod 555 $lib'
  8582. # or fails outright, so override atomically:
  8583. install_override_mode=555
  8584. ;;
  8585. interix[3-9]*)
  8586. version_type=linux
  8587. need_lib_prefix=no
  8588. need_version=no
  8589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8590. soname_spec='${libname}${release}${shared_ext}$major'
  8591. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8592. shlibpath_var=LD_LIBRARY_PATH
  8593. shlibpath_overrides_runpath=no
  8594. hardcode_into_libs=yes
  8595. ;;
  8596. irix5* | irix6* | nonstopux*)
  8597. case $host_os in
  8598. nonstopux*) version_type=nonstopux ;;
  8599. *)
  8600. if test "$lt_cv_prog_gnu_ld" = yes; then
  8601. version_type=linux
  8602. else
  8603. version_type=irix
  8604. fi ;;
  8605. esac
  8606. need_lib_prefix=no
  8607. need_version=no
  8608. soname_spec='${libname}${release}${shared_ext}$major'
  8609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8610. case $host_os in
  8611. irix5* | nonstopux*)
  8612. libsuff= shlibsuff=
  8613. ;;
  8614. *)
  8615. case $LD in # libtool.m4 will add one of these switches to LD
  8616. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8617. libsuff= shlibsuff= libmagic=32-bit;;
  8618. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8619. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8620. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8621. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8622. *) libsuff= shlibsuff= libmagic=never-match;;
  8623. esac
  8624. ;;
  8625. esac
  8626. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8627. shlibpath_overrides_runpath=no
  8628. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8629. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8630. hardcode_into_libs=yes
  8631. ;;
  8632. # No shared lib support for Linux oldld, aout, or coff.
  8633. linux*oldld* | linux*aout* | linux*coff*)
  8634. dynamic_linker=no
  8635. ;;
  8636. # This must be Linux ELF.
  8637. # uclinux* changes (here and below) have been submitted to the libtool
  8638. # project, but have not yet been accepted: they are GCC-local changes
  8639. # for the time being. (See
  8640. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  8641. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  8642. version_type=linux
  8643. need_lib_prefix=no
  8644. need_version=no
  8645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8646. soname_spec='${libname}${release}${shared_ext}$major'
  8647. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8648. shlibpath_var=LD_LIBRARY_PATH
  8649. shlibpath_overrides_runpath=no
  8650. # Some binutils ld are patched to set DT_RUNPATH
  8651. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8652. $as_echo_n "(cached) " >&6
  8653. else
  8654. lt_cv_shlibpath_overrides_runpath=no
  8655. save_LDFLAGS=$LDFLAGS
  8656. save_libdir=$libdir
  8657. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8658. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8659. if test x$gcc_no_link = xyes; then
  8660. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8661. fi
  8662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8663. /* end confdefs.h. */
  8664. int
  8665. main ()
  8666. {
  8667. ;
  8668. return 0;
  8669. }
  8670. _ACEOF
  8671. if ac_fn_c_try_link "$LINENO"; then :
  8672. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8673. lt_cv_shlibpath_overrides_runpath=yes
  8674. fi
  8675. fi
  8676. rm -f core conftest.err conftest.$ac_objext \
  8677. conftest$ac_exeext conftest.$ac_ext
  8678. LDFLAGS=$save_LDFLAGS
  8679. libdir=$save_libdir
  8680. fi
  8681. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8682. # This implies no fast_install, which is unacceptable.
  8683. # Some rework will be needed to allow for fast_install
  8684. # before this can be enabled.
  8685. hardcode_into_libs=yes
  8686. # Append ld.so.conf contents to the search path
  8687. if test -f /etc/ld.so.conf; then
  8688. 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' ' '`
  8689. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8690. fi
  8691. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8692. # powerpc, because MkLinux only supported shared libraries with the
  8693. # GNU dynamic linker. Since this was broken with cross compilers,
  8694. # most powerpc-linux boxes support dynamic linking these days and
  8695. # people can always --disable-shared, the test was removed, and we
  8696. # assume the GNU/Linux dynamic linker is in use.
  8697. dynamic_linker='GNU/Linux ld.so'
  8698. ;;
  8699. netbsd*)
  8700. version_type=sunos
  8701. need_lib_prefix=no
  8702. need_version=no
  8703. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8705. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8706. dynamic_linker='NetBSD (a.out) ld.so'
  8707. else
  8708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8709. soname_spec='${libname}${release}${shared_ext}$major'
  8710. dynamic_linker='NetBSD ld.elf_so'
  8711. fi
  8712. shlibpath_var=LD_LIBRARY_PATH
  8713. shlibpath_overrides_runpath=yes
  8714. hardcode_into_libs=yes
  8715. ;;
  8716. newsos6)
  8717. version_type=linux
  8718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8719. shlibpath_var=LD_LIBRARY_PATH
  8720. shlibpath_overrides_runpath=yes
  8721. ;;
  8722. *nto* | *qnx*)
  8723. version_type=qnx
  8724. need_lib_prefix=no
  8725. need_version=no
  8726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8727. soname_spec='${libname}${release}${shared_ext}$major'
  8728. shlibpath_var=LD_LIBRARY_PATH
  8729. shlibpath_overrides_runpath=no
  8730. hardcode_into_libs=yes
  8731. dynamic_linker='ldqnx.so'
  8732. ;;
  8733. openbsd*)
  8734. version_type=sunos
  8735. sys_lib_dlsearch_path_spec="/usr/lib"
  8736. need_lib_prefix=no
  8737. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8738. case $host_os in
  8739. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8740. *) need_version=no ;;
  8741. esac
  8742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8743. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8744. shlibpath_var=LD_LIBRARY_PATH
  8745. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8746. case $host_os in
  8747. openbsd2.[89] | openbsd2.[89].*)
  8748. shlibpath_overrides_runpath=no
  8749. ;;
  8750. *)
  8751. shlibpath_overrides_runpath=yes
  8752. ;;
  8753. esac
  8754. else
  8755. shlibpath_overrides_runpath=yes
  8756. fi
  8757. ;;
  8758. os2*)
  8759. libname_spec='$name'
  8760. shrext_cmds=".dll"
  8761. need_lib_prefix=no
  8762. library_names_spec='$libname${shared_ext} $libname.a'
  8763. dynamic_linker='OS/2 ld.exe'
  8764. shlibpath_var=LIBPATH
  8765. ;;
  8766. osf3* | osf4* | osf5*)
  8767. version_type=osf
  8768. need_lib_prefix=no
  8769. need_version=no
  8770. soname_spec='${libname}${release}${shared_ext}$major'
  8771. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8772. shlibpath_var=LD_LIBRARY_PATH
  8773. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8774. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8775. ;;
  8776. rdos*)
  8777. dynamic_linker=no
  8778. ;;
  8779. solaris*)
  8780. version_type=linux
  8781. need_lib_prefix=no
  8782. need_version=no
  8783. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8784. soname_spec='${libname}${release}${shared_ext}$major'
  8785. shlibpath_var=LD_LIBRARY_PATH
  8786. shlibpath_overrides_runpath=yes
  8787. hardcode_into_libs=yes
  8788. # ldd complains unless libraries are executable
  8789. postinstall_cmds='chmod +x $lib'
  8790. ;;
  8791. sunos4*)
  8792. version_type=sunos
  8793. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8794. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8795. shlibpath_var=LD_LIBRARY_PATH
  8796. shlibpath_overrides_runpath=yes
  8797. if test "$with_gnu_ld" = yes; then
  8798. need_lib_prefix=no
  8799. fi
  8800. need_version=yes
  8801. ;;
  8802. sysv4 | sysv4.3*)
  8803. version_type=linux
  8804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8805. soname_spec='${libname}${release}${shared_ext}$major'
  8806. shlibpath_var=LD_LIBRARY_PATH
  8807. case $host_vendor in
  8808. sni)
  8809. shlibpath_overrides_runpath=no
  8810. need_lib_prefix=no
  8811. runpath_var=LD_RUN_PATH
  8812. ;;
  8813. siemens)
  8814. need_lib_prefix=no
  8815. ;;
  8816. motorola)
  8817. need_lib_prefix=no
  8818. need_version=no
  8819. shlibpath_overrides_runpath=no
  8820. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8821. ;;
  8822. esac
  8823. ;;
  8824. sysv4*MP*)
  8825. if test -d /usr/nec ;then
  8826. version_type=linux
  8827. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8828. soname_spec='$libname${shared_ext}.$major'
  8829. shlibpath_var=LD_LIBRARY_PATH
  8830. fi
  8831. ;;
  8832. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8833. version_type=freebsd-elf
  8834. need_lib_prefix=no
  8835. need_version=no
  8836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8837. soname_spec='${libname}${release}${shared_ext}$major'
  8838. shlibpath_var=LD_LIBRARY_PATH
  8839. shlibpath_overrides_runpath=yes
  8840. hardcode_into_libs=yes
  8841. if test "$with_gnu_ld" = yes; then
  8842. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8843. else
  8844. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8845. case $host_os in
  8846. sco3.2v5*)
  8847. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8848. ;;
  8849. esac
  8850. fi
  8851. sys_lib_dlsearch_path_spec='/usr/lib'
  8852. ;;
  8853. tpf*)
  8854. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8855. version_type=linux
  8856. need_lib_prefix=no
  8857. need_version=no
  8858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8859. shlibpath_var=LD_LIBRARY_PATH
  8860. shlibpath_overrides_runpath=no
  8861. hardcode_into_libs=yes
  8862. ;;
  8863. uts4*)
  8864. version_type=linux
  8865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8866. soname_spec='${libname}${release}${shared_ext}$major'
  8867. shlibpath_var=LD_LIBRARY_PATH
  8868. ;;
  8869. *)
  8870. dynamic_linker=no
  8871. ;;
  8872. esac
  8873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8874. $as_echo "$dynamic_linker" >&6; }
  8875. test "$dynamic_linker" = no && can_build_shared=no
  8876. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8877. if test "$GCC" = yes; then
  8878. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8879. fi
  8880. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8881. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8882. fi
  8883. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8884. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8885. fi
  8886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8887. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8888. hardcode_action=
  8889. if test -n "$hardcode_libdir_flag_spec" ||
  8890. test -n "$runpath_var" ||
  8891. test "X$hardcode_automatic" = "Xyes" ; then
  8892. # We can hardcode non-existent directories.
  8893. if test "$hardcode_direct" != no &&
  8894. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8895. # have to relink, otherwise we might link with an installed library
  8896. # when we should be linking with a yet-to-be-installed one
  8897. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8898. test "$hardcode_minus_L" != no; then
  8899. # Linking always hardcodes the temporary library directory.
  8900. hardcode_action=relink
  8901. else
  8902. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8903. hardcode_action=immediate
  8904. fi
  8905. else
  8906. # We cannot hardcode anything, or else we can only hardcode existing
  8907. # directories.
  8908. hardcode_action=unsupported
  8909. fi
  8910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8911. $as_echo "$hardcode_action" >&6; }
  8912. if test "$hardcode_action" = relink ||
  8913. test "$inherit_rpath" = yes; then
  8914. # Fast installation is not supported
  8915. enable_fast_install=no
  8916. elif test "$shlibpath_overrides_runpath" = yes ||
  8917. test "$enable_shared" = no; then
  8918. # Fast installation is not necessary
  8919. enable_fast_install=needless
  8920. fi
  8921. if test "x$enable_dlopen" != xyes; then
  8922. enable_dlopen=unknown
  8923. enable_dlopen_self=unknown
  8924. enable_dlopen_self_static=unknown
  8925. else
  8926. lt_cv_dlopen=no
  8927. lt_cv_dlopen_libs=
  8928. case $host_os in
  8929. beos*)
  8930. lt_cv_dlopen="load_add_on"
  8931. lt_cv_dlopen_libs=
  8932. lt_cv_dlopen_self=yes
  8933. ;;
  8934. mingw* | pw32* | cegcc*)
  8935. lt_cv_dlopen="LoadLibrary"
  8936. lt_cv_dlopen_libs=
  8937. ;;
  8938. cygwin*)
  8939. lt_cv_dlopen="dlopen"
  8940. lt_cv_dlopen_libs=
  8941. ;;
  8942. darwin*)
  8943. # if libdl is installed we need to link against it
  8944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8945. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8946. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8947. $as_echo_n "(cached) " >&6
  8948. else
  8949. ac_check_lib_save_LIBS=$LIBS
  8950. LIBS="-ldl $LIBS"
  8951. if test x$gcc_no_link = xyes; then
  8952. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8953. fi
  8954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8955. /* end confdefs.h. */
  8956. /* Override any GCC internal prototype to avoid an error.
  8957. Use char because int might match the return type of a GCC
  8958. builtin and then its argument prototype would still apply. */
  8959. #ifdef __cplusplus
  8960. extern "C"
  8961. #endif
  8962. char dlopen ();
  8963. int
  8964. main ()
  8965. {
  8966. return dlopen ();
  8967. ;
  8968. return 0;
  8969. }
  8970. _ACEOF
  8971. if ac_fn_c_try_link "$LINENO"; then :
  8972. ac_cv_lib_dl_dlopen=yes
  8973. else
  8974. ac_cv_lib_dl_dlopen=no
  8975. fi
  8976. rm -f core conftest.err conftest.$ac_objext \
  8977. conftest$ac_exeext conftest.$ac_ext
  8978. LIBS=$ac_check_lib_save_LIBS
  8979. fi
  8980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8981. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8982. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8983. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8984. else
  8985. lt_cv_dlopen="dyld"
  8986. lt_cv_dlopen_libs=
  8987. lt_cv_dlopen_self=yes
  8988. fi
  8989. ;;
  8990. *)
  8991. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8992. if test "x$ac_cv_func_shl_load" = xyes; then :
  8993. lt_cv_dlopen="shl_load"
  8994. else
  8995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8996. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8997. if ${ac_cv_lib_dld_shl_load+:} false; then :
  8998. $as_echo_n "(cached) " >&6
  8999. else
  9000. ac_check_lib_save_LIBS=$LIBS
  9001. LIBS="-ldld $LIBS"
  9002. if test x$gcc_no_link = xyes; then
  9003. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9004. fi
  9005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9006. /* end confdefs.h. */
  9007. /* Override any GCC internal prototype to avoid an error.
  9008. Use char because int might match the return type of a GCC
  9009. builtin and then its argument prototype would still apply. */
  9010. #ifdef __cplusplus
  9011. extern "C"
  9012. #endif
  9013. char shl_load ();
  9014. int
  9015. main ()
  9016. {
  9017. return shl_load ();
  9018. ;
  9019. return 0;
  9020. }
  9021. _ACEOF
  9022. if ac_fn_c_try_link "$LINENO"; then :
  9023. ac_cv_lib_dld_shl_load=yes
  9024. else
  9025. ac_cv_lib_dld_shl_load=no
  9026. fi
  9027. rm -f core conftest.err conftest.$ac_objext \
  9028. conftest$ac_exeext conftest.$ac_ext
  9029. LIBS=$ac_check_lib_save_LIBS
  9030. fi
  9031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9032. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9033. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9034. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9035. else
  9036. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9037. if test "x$ac_cv_func_dlopen" = xyes; then :
  9038. lt_cv_dlopen="dlopen"
  9039. else
  9040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9041. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9042. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9043. $as_echo_n "(cached) " >&6
  9044. else
  9045. ac_check_lib_save_LIBS=$LIBS
  9046. LIBS="-ldl $LIBS"
  9047. if test x$gcc_no_link = xyes; then
  9048. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9049. fi
  9050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9051. /* end confdefs.h. */
  9052. /* Override any GCC internal prototype to avoid an error.
  9053. Use char because int might match the return type of a GCC
  9054. builtin and then its argument prototype would still apply. */
  9055. #ifdef __cplusplus
  9056. extern "C"
  9057. #endif
  9058. char dlopen ();
  9059. int
  9060. main ()
  9061. {
  9062. return dlopen ();
  9063. ;
  9064. return 0;
  9065. }
  9066. _ACEOF
  9067. if ac_fn_c_try_link "$LINENO"; then :
  9068. ac_cv_lib_dl_dlopen=yes
  9069. else
  9070. ac_cv_lib_dl_dlopen=no
  9071. fi
  9072. rm -f core conftest.err conftest.$ac_objext \
  9073. conftest$ac_exeext conftest.$ac_ext
  9074. LIBS=$ac_check_lib_save_LIBS
  9075. fi
  9076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9077. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9078. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9079. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9080. else
  9081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9082. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9083. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9084. $as_echo_n "(cached) " >&6
  9085. else
  9086. ac_check_lib_save_LIBS=$LIBS
  9087. LIBS="-lsvld $LIBS"
  9088. if test x$gcc_no_link = xyes; then
  9089. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9090. fi
  9091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9092. /* end confdefs.h. */
  9093. /* Override any GCC internal prototype to avoid an error.
  9094. Use char because int might match the return type of a GCC
  9095. builtin and then its argument prototype would still apply. */
  9096. #ifdef __cplusplus
  9097. extern "C"
  9098. #endif
  9099. char dlopen ();
  9100. int
  9101. main ()
  9102. {
  9103. return dlopen ();
  9104. ;
  9105. return 0;
  9106. }
  9107. _ACEOF
  9108. if ac_fn_c_try_link "$LINENO"; then :
  9109. ac_cv_lib_svld_dlopen=yes
  9110. else
  9111. ac_cv_lib_svld_dlopen=no
  9112. fi
  9113. rm -f core conftest.err conftest.$ac_objext \
  9114. conftest$ac_exeext conftest.$ac_ext
  9115. LIBS=$ac_check_lib_save_LIBS
  9116. fi
  9117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9118. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9119. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9120. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9121. else
  9122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9123. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9124. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9125. $as_echo_n "(cached) " >&6
  9126. else
  9127. ac_check_lib_save_LIBS=$LIBS
  9128. LIBS="-ldld $LIBS"
  9129. if test x$gcc_no_link = xyes; then
  9130. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9131. fi
  9132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9133. /* end confdefs.h. */
  9134. /* Override any GCC internal prototype to avoid an error.
  9135. Use char because int might match the return type of a GCC
  9136. builtin and then its argument prototype would still apply. */
  9137. #ifdef __cplusplus
  9138. extern "C"
  9139. #endif
  9140. char dld_link ();
  9141. int
  9142. main ()
  9143. {
  9144. return dld_link ();
  9145. ;
  9146. return 0;
  9147. }
  9148. _ACEOF
  9149. if ac_fn_c_try_link "$LINENO"; then :
  9150. ac_cv_lib_dld_dld_link=yes
  9151. else
  9152. ac_cv_lib_dld_dld_link=no
  9153. fi
  9154. rm -f core conftest.err conftest.$ac_objext \
  9155. conftest$ac_exeext conftest.$ac_ext
  9156. LIBS=$ac_check_lib_save_LIBS
  9157. fi
  9158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9159. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9160. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9161. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9162. fi
  9163. fi
  9164. fi
  9165. fi
  9166. fi
  9167. fi
  9168. ;;
  9169. esac
  9170. if test "x$lt_cv_dlopen" != xno; then
  9171. enable_dlopen=yes
  9172. else
  9173. enable_dlopen=no
  9174. fi
  9175. case $lt_cv_dlopen in
  9176. dlopen)
  9177. save_CPPFLAGS="$CPPFLAGS"
  9178. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9179. save_LDFLAGS="$LDFLAGS"
  9180. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9181. save_LIBS="$LIBS"
  9182. LIBS="$lt_cv_dlopen_libs $LIBS"
  9183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9184. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9185. if ${lt_cv_dlopen_self+:} false; then :
  9186. $as_echo_n "(cached) " >&6
  9187. else
  9188. if test "$cross_compiling" = yes; then :
  9189. lt_cv_dlopen_self=cross
  9190. else
  9191. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9192. lt_status=$lt_dlunknown
  9193. cat > conftest.$ac_ext <<_LT_EOF
  9194. #line 10748 "configure"
  9195. #include "confdefs.h"
  9196. #if HAVE_DLFCN_H
  9197. #include <dlfcn.h>
  9198. #endif
  9199. #include <stdio.h>
  9200. #ifdef RTLD_GLOBAL
  9201. # define LT_DLGLOBAL RTLD_GLOBAL
  9202. #else
  9203. # ifdef DL_GLOBAL
  9204. # define LT_DLGLOBAL DL_GLOBAL
  9205. # else
  9206. # define LT_DLGLOBAL 0
  9207. # endif
  9208. #endif
  9209. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9210. find out it does not work in some platform. */
  9211. #ifndef LT_DLLAZY_OR_NOW
  9212. # ifdef RTLD_LAZY
  9213. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9214. # else
  9215. # ifdef DL_LAZY
  9216. # define LT_DLLAZY_OR_NOW DL_LAZY
  9217. # else
  9218. # ifdef RTLD_NOW
  9219. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9220. # else
  9221. # ifdef DL_NOW
  9222. # define LT_DLLAZY_OR_NOW DL_NOW
  9223. # else
  9224. # define LT_DLLAZY_OR_NOW 0
  9225. # endif
  9226. # endif
  9227. # endif
  9228. # endif
  9229. #endif
  9230. /* When -fvisbility=hidden is used, assume the code has been annotated
  9231. correspondingly for the symbols needed. */
  9232. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9233. void fnord () __attribute__((visibility("default")));
  9234. #endif
  9235. void fnord () { int i=42; }
  9236. int main ()
  9237. {
  9238. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9239. int status = $lt_dlunknown;
  9240. if (self)
  9241. {
  9242. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9243. else
  9244. {
  9245. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9246. else puts (dlerror ());
  9247. }
  9248. /* dlclose (self); */
  9249. }
  9250. else
  9251. puts (dlerror ());
  9252. return status;
  9253. }
  9254. _LT_EOF
  9255. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9256. (eval $ac_link) 2>&5
  9257. ac_status=$?
  9258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9259. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9260. (./conftest; exit; ) >&5 2>/dev/null
  9261. lt_status=$?
  9262. case x$lt_status in
  9263. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9264. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9265. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9266. esac
  9267. else :
  9268. # compilation failed
  9269. lt_cv_dlopen_self=no
  9270. fi
  9271. fi
  9272. rm -fr conftest*
  9273. fi
  9274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9275. $as_echo "$lt_cv_dlopen_self" >&6; }
  9276. if test "x$lt_cv_dlopen_self" = xyes; then
  9277. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9279. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9280. if ${lt_cv_dlopen_self_static+:} false; then :
  9281. $as_echo_n "(cached) " >&6
  9282. else
  9283. if test "$cross_compiling" = yes; then :
  9284. lt_cv_dlopen_self_static=cross
  9285. else
  9286. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9287. lt_status=$lt_dlunknown
  9288. cat > conftest.$ac_ext <<_LT_EOF
  9289. #line 10854 "configure"
  9290. #include "confdefs.h"
  9291. #if HAVE_DLFCN_H
  9292. #include <dlfcn.h>
  9293. #endif
  9294. #include <stdio.h>
  9295. #ifdef RTLD_GLOBAL
  9296. # define LT_DLGLOBAL RTLD_GLOBAL
  9297. #else
  9298. # ifdef DL_GLOBAL
  9299. # define LT_DLGLOBAL DL_GLOBAL
  9300. # else
  9301. # define LT_DLGLOBAL 0
  9302. # endif
  9303. #endif
  9304. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9305. find out it does not work in some platform. */
  9306. #ifndef LT_DLLAZY_OR_NOW
  9307. # ifdef RTLD_LAZY
  9308. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9309. # else
  9310. # ifdef DL_LAZY
  9311. # define LT_DLLAZY_OR_NOW DL_LAZY
  9312. # else
  9313. # ifdef RTLD_NOW
  9314. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9315. # else
  9316. # ifdef DL_NOW
  9317. # define LT_DLLAZY_OR_NOW DL_NOW
  9318. # else
  9319. # define LT_DLLAZY_OR_NOW 0
  9320. # endif
  9321. # endif
  9322. # endif
  9323. # endif
  9324. #endif
  9325. /* When -fvisbility=hidden is used, assume the code has been annotated
  9326. correspondingly for the symbols needed. */
  9327. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9328. void fnord () __attribute__((visibility("default")));
  9329. #endif
  9330. void fnord () { int i=42; }
  9331. int main ()
  9332. {
  9333. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9334. int status = $lt_dlunknown;
  9335. if (self)
  9336. {
  9337. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9338. else
  9339. {
  9340. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9341. else puts (dlerror ());
  9342. }
  9343. /* dlclose (self); */
  9344. }
  9345. else
  9346. puts (dlerror ());
  9347. return status;
  9348. }
  9349. _LT_EOF
  9350. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9351. (eval $ac_link) 2>&5
  9352. ac_status=$?
  9353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9354. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9355. (./conftest; exit; ) >&5 2>/dev/null
  9356. lt_status=$?
  9357. case x$lt_status in
  9358. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9359. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9360. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9361. esac
  9362. else :
  9363. # compilation failed
  9364. lt_cv_dlopen_self_static=no
  9365. fi
  9366. fi
  9367. rm -fr conftest*
  9368. fi
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9370. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9371. fi
  9372. CPPFLAGS="$save_CPPFLAGS"
  9373. LDFLAGS="$save_LDFLAGS"
  9374. LIBS="$save_LIBS"
  9375. ;;
  9376. esac
  9377. case $lt_cv_dlopen_self in
  9378. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9379. *) enable_dlopen_self=unknown ;;
  9380. esac
  9381. case $lt_cv_dlopen_self_static in
  9382. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9383. *) enable_dlopen_self_static=unknown ;;
  9384. esac
  9385. fi
  9386. striplib=
  9387. old_striplib=
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9389. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9390. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9391. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9392. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9394. $as_echo "yes" >&6; }
  9395. else
  9396. # FIXME - insert some real tests, host_os isn't really good enough
  9397. case $host_os in
  9398. darwin*)
  9399. if test -n "$STRIP" ; then
  9400. striplib="$STRIP -x"
  9401. old_striplib="$STRIP -S"
  9402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9403. $as_echo "yes" >&6; }
  9404. else
  9405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9406. $as_echo "no" >&6; }
  9407. fi
  9408. ;;
  9409. *)
  9410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9411. $as_echo "no" >&6; }
  9412. ;;
  9413. esac
  9414. fi
  9415. # Report which library types will actually be built
  9416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9417. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9419. $as_echo "$can_build_shared" >&6; }
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9421. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9422. test "$can_build_shared" = "no" && enable_shared=no
  9423. # On AIX, shared libraries and static libraries use the same namespace, and
  9424. # are all built from PIC.
  9425. case $host_os in
  9426. aix3*)
  9427. test "$enable_shared" = yes && enable_static=no
  9428. if test -n "$RANLIB"; then
  9429. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9430. postinstall_cmds='$RANLIB $lib'
  9431. fi
  9432. ;;
  9433. aix[4-9]*)
  9434. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9435. test "$enable_shared" = yes && enable_static=no
  9436. fi
  9437. ;;
  9438. esac
  9439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9440. $as_echo "$enable_shared" >&6; }
  9441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9442. $as_echo_n "checking whether to build static libraries... " >&6; }
  9443. # Make sure either enable_shared or enable_static is yes.
  9444. test "$enable_shared" = yes || enable_static=yes
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9446. $as_echo "$enable_static" >&6; }
  9447. fi
  9448. ac_ext=c
  9449. ac_cpp='$CPP $CPPFLAGS'
  9450. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9451. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9452. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9453. CC="$lt_save_CC"
  9454. ac_config_commands="$ac_config_commands libtool"
  9455. # Only expand once:
  9456. # Find CPP now so that any conditional tests below won't do it and
  9457. # thereby make the resulting definitions conditional.
  9458. ac_ext=c
  9459. ac_cpp='$CPP $CPPFLAGS'
  9460. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9461. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9462. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  9464. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  9465. # On Suns, sometimes $CPP names a directory.
  9466. if test -n "$CPP" && test -d "$CPP"; then
  9467. CPP=
  9468. fi
  9469. if test -z "$CPP"; then
  9470. if ${ac_cv_prog_CPP+:} false; then :
  9471. $as_echo_n "(cached) " >&6
  9472. else
  9473. # Double quotes because CPP needs to be expanded
  9474. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  9475. do
  9476. ac_preproc_ok=false
  9477. for ac_c_preproc_warn_flag in '' yes
  9478. do
  9479. # Use a header file that comes with gcc, so configuring glibc
  9480. # with a fresh cross-compiler works.
  9481. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9482. # <limits.h> exists even on freestanding compilers.
  9483. # On the NeXT, cc -E runs the code through the compiler's parser,
  9484. # not just through cpp. "Syntax error" is here to catch this case.
  9485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9486. /* end confdefs.h. */
  9487. #ifdef __STDC__
  9488. # include <limits.h>
  9489. #else
  9490. # include <assert.h>
  9491. #endif
  9492. Syntax error
  9493. _ACEOF
  9494. if ac_fn_c_try_cpp "$LINENO"; then :
  9495. else
  9496. # Broken: fails on valid input.
  9497. continue
  9498. fi
  9499. rm -f conftest.err conftest.i conftest.$ac_ext
  9500. # OK, works on sane cases. Now check whether nonexistent headers
  9501. # can be detected and how.
  9502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9503. /* end confdefs.h. */
  9504. #include <ac_nonexistent.h>
  9505. _ACEOF
  9506. if ac_fn_c_try_cpp "$LINENO"; then :
  9507. # Broken: success on invalid input.
  9508. continue
  9509. else
  9510. # Passes both tests.
  9511. ac_preproc_ok=:
  9512. break
  9513. fi
  9514. rm -f conftest.err conftest.i conftest.$ac_ext
  9515. done
  9516. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9517. rm -f conftest.i conftest.err conftest.$ac_ext
  9518. if $ac_preproc_ok; then :
  9519. break
  9520. fi
  9521. done
  9522. ac_cv_prog_CPP=$CPP
  9523. fi
  9524. CPP=$ac_cv_prog_CPP
  9525. else
  9526. ac_cv_prog_CPP=$CPP
  9527. fi
  9528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  9529. $as_echo "$CPP" >&6; }
  9530. ac_preproc_ok=false
  9531. for ac_c_preproc_warn_flag in '' yes
  9532. do
  9533. # Use a header file that comes with gcc, so configuring glibc
  9534. # with a fresh cross-compiler works.
  9535. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9536. # <limits.h> exists even on freestanding compilers.
  9537. # On the NeXT, cc -E runs the code through the compiler's parser,
  9538. # not just through cpp. "Syntax error" is here to catch this case.
  9539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9540. /* end confdefs.h. */
  9541. #ifdef __STDC__
  9542. # include <limits.h>
  9543. #else
  9544. # include <assert.h>
  9545. #endif
  9546. Syntax error
  9547. _ACEOF
  9548. if ac_fn_c_try_cpp "$LINENO"; then :
  9549. else
  9550. # Broken: fails on valid input.
  9551. continue
  9552. fi
  9553. rm -f conftest.err conftest.i conftest.$ac_ext
  9554. # OK, works on sane cases. Now check whether nonexistent headers
  9555. # can be detected and how.
  9556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9557. /* end confdefs.h. */
  9558. #include <ac_nonexistent.h>
  9559. _ACEOF
  9560. if ac_fn_c_try_cpp "$LINENO"; then :
  9561. # Broken: success on invalid input.
  9562. continue
  9563. else
  9564. # Passes both tests.
  9565. ac_preproc_ok=:
  9566. break
  9567. fi
  9568. rm -f conftest.err conftest.i conftest.$ac_ext
  9569. done
  9570. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9571. rm -f conftest.i conftest.err conftest.$ac_ext
  9572. if $ac_preproc_ok; then :
  9573. else
  9574. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9575. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9576. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  9577. See \`config.log' for more details" "$LINENO" 5; }
  9578. fi
  9579. ac_ext=c
  9580. ac_cpp='$CPP $CPPFLAGS'
  9581. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9582. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9583. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9584. if test -n "$with_cross_host"; then
  9585. # We are being configured with a cross compiler. AC_REPLACE_FUNCS
  9586. # may not work correctly, because the compiler may not be able to
  9587. # link executables.
  9588. # We assume newlib. This lets us hard-code the functions we know
  9589. # we'll have.
  9590. $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
  9591. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  9592. else
  9593. if test x$gcc_no_link = xyes; then
  9594. if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
  9595. ac_cv_func_mmap_fixed_mapped=no
  9596. fi
  9597. fi
  9598. if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
  9599. for ac_header in $ac_header_list
  9600. do :
  9601. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9602. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  9603. "
  9604. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9605. cat >>confdefs.h <<_ACEOF
  9606. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9607. _ACEOF
  9608. fi
  9609. done
  9610. for ac_func in getpagesize
  9611. do :
  9612. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  9613. if test "x$ac_cv_func_getpagesize" = xyes; then :
  9614. cat >>confdefs.h <<_ACEOF
  9615. #define HAVE_GETPAGESIZE 1
  9616. _ACEOF
  9617. fi
  9618. done
  9619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  9620. $as_echo_n "checking for working mmap... " >&6; }
  9621. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  9622. $as_echo_n "(cached) " >&6
  9623. else
  9624. if test "$cross_compiling" = yes; then :
  9625. ac_cv_func_mmap_fixed_mapped=no
  9626. else
  9627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9628. /* end confdefs.h. */
  9629. $ac_includes_default
  9630. /* malloc might have been renamed as rpl_malloc. */
  9631. #undef malloc
  9632. /* Thanks to Mike Haertel and Jim Avera for this test.
  9633. Here is a matrix of mmap possibilities:
  9634. mmap private not fixed
  9635. mmap private fixed at somewhere currently unmapped
  9636. mmap private fixed at somewhere already mapped
  9637. mmap shared not fixed
  9638. mmap shared fixed at somewhere currently unmapped
  9639. mmap shared fixed at somewhere already mapped
  9640. For private mappings, we should verify that changes cannot be read()
  9641. back from the file, nor mmap's back from the file at a different
  9642. address. (There have been systems where private was not correctly
  9643. implemented like the infamous i386 svr4.0, and systems where the
  9644. VM page cache was not coherent with the file system buffer cache
  9645. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9646. For shared mappings, we should conversely verify that changes get
  9647. propagated back to all the places they're supposed to be.
  9648. Grep wants private fixed already mapped.
  9649. The main things grep needs to know about mmap are:
  9650. * does it exist and is it safe to write into the mmap'd area
  9651. * how to use it (BSD variants) */
  9652. #include <fcntl.h>
  9653. #include <sys/mman.h>
  9654. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9655. char *malloc ();
  9656. #endif
  9657. /* This mess was copied from the GNU getpagesize.h. */
  9658. #ifndef HAVE_GETPAGESIZE
  9659. # ifdef _SC_PAGESIZE
  9660. # define getpagesize() sysconf(_SC_PAGESIZE)
  9661. # else /* no _SC_PAGESIZE */
  9662. # ifdef HAVE_SYS_PARAM_H
  9663. # include <sys/param.h>
  9664. # ifdef EXEC_PAGESIZE
  9665. # define getpagesize() EXEC_PAGESIZE
  9666. # else /* no EXEC_PAGESIZE */
  9667. # ifdef NBPG
  9668. # define getpagesize() NBPG * CLSIZE
  9669. # ifndef CLSIZE
  9670. # define CLSIZE 1
  9671. # endif /* no CLSIZE */
  9672. # else /* no NBPG */
  9673. # ifdef NBPC
  9674. # define getpagesize() NBPC
  9675. # else /* no NBPC */
  9676. # ifdef PAGESIZE
  9677. # define getpagesize() PAGESIZE
  9678. # endif /* PAGESIZE */
  9679. # endif /* no NBPC */
  9680. # endif /* no NBPG */
  9681. # endif /* no EXEC_PAGESIZE */
  9682. # else /* no HAVE_SYS_PARAM_H */
  9683. # define getpagesize() 8192 /* punt totally */
  9684. # endif /* no HAVE_SYS_PARAM_H */
  9685. # endif /* no _SC_PAGESIZE */
  9686. #endif /* no HAVE_GETPAGESIZE */
  9687. int
  9688. main ()
  9689. {
  9690. char *data, *data2, *data3;
  9691. const char *cdata2;
  9692. int i, pagesize;
  9693. int fd, fd2;
  9694. pagesize = getpagesize ();
  9695. /* First, make a file with some known garbage in it. */
  9696. data = (char *) malloc (pagesize);
  9697. if (!data)
  9698. return 1;
  9699. for (i = 0; i < pagesize; ++i)
  9700. *(data + i) = rand ();
  9701. umask (0);
  9702. fd = creat ("conftest.mmap", 0600);
  9703. if (fd < 0)
  9704. return 2;
  9705. if (write (fd, data, pagesize) != pagesize)
  9706. return 3;
  9707. close (fd);
  9708. /* Next, check that the tail of a page is zero-filled. File must have
  9709. non-zero length, otherwise we risk SIGBUS for entire page. */
  9710. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  9711. if (fd2 < 0)
  9712. return 4;
  9713. cdata2 = "";
  9714. if (write (fd2, cdata2, 1) != 1)
  9715. return 5;
  9716. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  9717. if (data2 == MAP_FAILED)
  9718. return 6;
  9719. for (i = 0; i < pagesize; ++i)
  9720. if (*(data2 + i))
  9721. return 7;
  9722. close (fd2);
  9723. if (munmap (data2, pagesize))
  9724. return 8;
  9725. /* Next, try to mmap the file at a fixed address which already has
  9726. something else allocated at it. If we can, also make sure that
  9727. we see the same garbage. */
  9728. fd = open ("conftest.mmap", O_RDWR);
  9729. if (fd < 0)
  9730. return 9;
  9731. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9732. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9733. return 10;
  9734. for (i = 0; i < pagesize; ++i)
  9735. if (*(data + i) != *(data2 + i))
  9736. return 11;
  9737. /* Finally, make sure that changes to the mapped area do not
  9738. percolate back to the file as seen by read(). (This is a bug on
  9739. some variants of i386 svr4.0.) */
  9740. for (i = 0; i < pagesize; ++i)
  9741. *(data2 + i) = *(data2 + i) + 1;
  9742. data3 = (char *) malloc (pagesize);
  9743. if (!data3)
  9744. return 12;
  9745. if (read (fd, data3, pagesize) != pagesize)
  9746. return 13;
  9747. for (i = 0; i < pagesize; ++i)
  9748. if (*(data + i) != *(data3 + i))
  9749. return 14;
  9750. close (fd);
  9751. return 0;
  9752. }
  9753. _ACEOF
  9754. if ac_fn_c_try_run "$LINENO"; then :
  9755. ac_cv_func_mmap_fixed_mapped=yes
  9756. else
  9757. ac_cv_func_mmap_fixed_mapped=no
  9758. fi
  9759. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9760. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9761. fi
  9762. fi
  9763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9764. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  9765. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9766. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  9767. fi
  9768. rm -f conftest.mmap conftest.txt
  9769. fi
  9770. for ac_func in memcpy strerror
  9771. do :
  9772. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9773. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9774. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  9775. cat >>confdefs.h <<_ACEOF
  9776. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9777. _ACEOF
  9778. fi
  9779. done
  9780. fi
  9781. for ac_header in unistd.h
  9782. do :
  9783. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  9784. if test "x$ac_cv_header_unistd_h" = xyes; then :
  9785. cat >>confdefs.h <<_ACEOF
  9786. #define HAVE_UNISTD_H 1
  9787. _ACEOF
  9788. fi
  9789. done
  9790. # Check whether --with-toolexeclibdir was given.
  9791. if test "${with_toolexeclibdir+set}" = set; then :
  9792. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  9793. /)
  9794. ;;
  9795. */)
  9796. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  9797. ;;
  9798. esac
  9799. else
  9800. with_toolexeclibdir=no
  9801. fi
  9802. if test -n "$with_cross_host" &&
  9803. test x"$with_cross_host" != x"no"; then
  9804. toolexecdir='$(exec_prefix)/$(target_alias)'
  9805. case ${with_toolexeclibdir} in
  9806. no)
  9807. toolexeclibdir='$(toolexecdir)/lib'
  9808. ;;
  9809. *)
  9810. toolexeclibdir=${with_toolexeclibdir}
  9811. ;;
  9812. esac
  9813. else
  9814. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  9815. toolexeclibdir='$(libdir)'
  9816. fi
  9817. if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
  9818. multiosdir=/`$CC -print-multi-os-directory`
  9819. case $multiosdir in
  9820. /.) multiosdir= ;; # Avoid trailing /.
  9821. esac
  9822. else
  9823. multiosdir=
  9824. fi
  9825. toolexeclibdir=${toolexeclibdir}${multiosdir}
  9826. if test -n "$with_target_subdir"; then
  9827. TARGET_LIBRARY_TRUE=
  9828. TARGET_LIBRARY_FALSE='#'
  9829. else
  9830. TARGET_LIBRARY_TRUE='#'
  9831. TARGET_LIBRARY_FALSE=
  9832. fi
  9833. if test "${multilib}" = "yes"; then
  9834. multilib_arg="--enable-multilib"
  9835. else
  9836. multilib_arg=
  9837. fi
  9838. # Check whether --enable-host-shared was given.
  9839. if test "${enable_host_shared+set}" = set; then :
  9840. enableval=$enable_host_shared; PICFLAG=-fPIC
  9841. else
  9842. PICFLAG=
  9843. fi
  9844. ac_config_files="$ac_config_files Makefile"
  9845. cat >confcache <<\_ACEOF
  9846. # This file is a shell script that caches the results of configure
  9847. # tests run on this system so they can be shared between configure
  9848. # scripts and configure runs, see configure's option --config-cache.
  9849. # It is not useful on other systems. If it contains results you don't
  9850. # want to keep, you may remove or edit it.
  9851. #
  9852. # config.status only pays attention to the cache file if you give it
  9853. # the --recheck option to rerun configure.
  9854. #
  9855. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9856. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9857. # following values.
  9858. _ACEOF
  9859. # The following way of writing the cache mishandles newlines in values,
  9860. # but we know of no workaround that is simple, portable, and efficient.
  9861. # So, we kill variables containing newlines.
  9862. # Ultrix sh set writes to stderr and can't be redirected directly,
  9863. # and sets the high bit in the cache file unless we assign to the vars.
  9864. (
  9865. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9866. eval ac_val=\$$ac_var
  9867. case $ac_val in #(
  9868. *${as_nl}*)
  9869. case $ac_var in #(
  9870. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9871. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9872. esac
  9873. case $ac_var in #(
  9874. _ | IFS | as_nl) ;; #(
  9875. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9876. *) { eval $ac_var=; unset $ac_var;} ;;
  9877. esac ;;
  9878. esac
  9879. done
  9880. (set) 2>&1 |
  9881. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9882. *${as_nl}ac_space=\ *)
  9883. # `set' does not quote correctly, so add quotes: double-quote
  9884. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9885. sed -n \
  9886. "s/'/'\\\\''/g;
  9887. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9888. ;; #(
  9889. *)
  9890. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9891. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9892. ;;
  9893. esac |
  9894. sort
  9895. ) |
  9896. sed '
  9897. /^ac_cv_env_/b end
  9898. t clear
  9899. :clear
  9900. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9901. t end
  9902. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9903. :end' >>confcache
  9904. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9905. if test -w "$cache_file"; then
  9906. if test "x$cache_file" != "x/dev/null"; then
  9907. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9908. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9909. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9910. cat confcache >"$cache_file"
  9911. else
  9912. case $cache_file in #(
  9913. */* | ?:*)
  9914. mv -f confcache "$cache_file"$$ &&
  9915. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9916. *)
  9917. mv -f confcache "$cache_file" ;;
  9918. esac
  9919. fi
  9920. fi
  9921. else
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9923. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9924. fi
  9925. fi
  9926. rm -f confcache
  9927. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9928. # Let make expand exec_prefix.
  9929. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9930. # Transform confdefs.h into DEFS.
  9931. # Protect against shell expansion while executing Makefile rules.
  9932. # Protect against Makefile macro expansion.
  9933. #
  9934. # If the first sed substitution is executed (which looks for macros that
  9935. # take arguments), then branch to the quote section. Otherwise,
  9936. # look for a macro that doesn't take arguments.
  9937. ac_script='
  9938. :mline
  9939. /\\$/{
  9940. N
  9941. s,\\\n,,
  9942. b mline
  9943. }
  9944. t clear
  9945. :clear
  9946. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  9947. t quote
  9948. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  9949. t quote
  9950. b any
  9951. :quote
  9952. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  9953. s/\[/\\&/g
  9954. s/\]/\\&/g
  9955. s/\$/$$/g
  9956. H
  9957. :any
  9958. ${
  9959. g
  9960. s/^\n//
  9961. s/\n/ /g
  9962. p
  9963. }
  9964. '
  9965. DEFS=`sed -n "$ac_script" confdefs.h`
  9966. ac_libobjs=
  9967. ac_ltlibobjs=
  9968. U=
  9969. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9970. # 1. Remove the extension, and $U if already installed.
  9971. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9972. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9973. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9974. # will be set to the directory where LIBOBJS objects are built.
  9975. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9976. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9977. done
  9978. LIBOBJS=$ac_libobjs
  9979. LTLIBOBJS=$ac_ltlibobjs
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9981. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9982. if test -n "$am_sleep_pid"; then
  9983. # Hide warnings about reused PIDs.
  9984. wait $am_sleep_pid 2>/dev/null
  9985. fi
  9986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9987. $as_echo "done" >&6; }
  9988. if test -n "$EXEEXT"; then
  9989. am__EXEEXT_TRUE=
  9990. am__EXEEXT_FALSE='#'
  9991. else
  9992. am__EXEEXT_TRUE='#'
  9993. am__EXEEXT_FALSE=
  9994. fi
  9995. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9996. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  9997. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9998. fi
  9999. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10000. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10001. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10002. fi
  10003. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10004. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10005. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10006. fi
  10007. if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
  10008. as_fn_error $? "conditional \"TARGET_LIBRARY\" was never defined.
  10009. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10010. fi
  10011. : "${CONFIG_STATUS=./config.status}"
  10012. ac_write_fail=0
  10013. ac_clean_files_save=$ac_clean_files
  10014. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10016. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10017. as_write_fail=0
  10018. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10019. #! $SHELL
  10020. # Generated by $as_me.
  10021. # Run this file to recreate the current configuration.
  10022. # Compiler output produced by configure, useful for debugging
  10023. # configure, is in config.log if it exists.
  10024. debug=false
  10025. ac_cs_recheck=false
  10026. ac_cs_silent=false
  10027. SHELL=\${CONFIG_SHELL-$SHELL}
  10028. export SHELL
  10029. _ASEOF
  10030. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10031. ## -------------------- ##
  10032. ## M4sh Initialization. ##
  10033. ## -------------------- ##
  10034. # Be more Bourne compatible
  10035. DUALCASE=1; export DUALCASE # for MKS sh
  10036. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10037. emulate sh
  10038. NULLCMD=:
  10039. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10040. # is contrary to our usage. Disable this feature.
  10041. alias -g '${1+"$@"}'='"$@"'
  10042. setopt NO_GLOB_SUBST
  10043. else
  10044. case `(set -o) 2>/dev/null` in #(
  10045. *posix*) :
  10046. set -o posix ;; #(
  10047. *) :
  10048. ;;
  10049. esac
  10050. fi
  10051. as_nl='
  10052. '
  10053. export as_nl
  10054. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10055. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10056. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10057. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10058. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10059. # but without wasting forks for bash or zsh.
  10060. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10061. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10062. as_echo='print -r --'
  10063. as_echo_n='print -rn --'
  10064. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10065. as_echo='printf %s\n'
  10066. as_echo_n='printf %s'
  10067. else
  10068. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10069. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10070. as_echo_n='/usr/ucb/echo -n'
  10071. else
  10072. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10073. as_echo_n_body='eval
  10074. arg=$1;
  10075. case $arg in #(
  10076. *"$as_nl"*)
  10077. expr "X$arg" : "X\\(.*\\)$as_nl";
  10078. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10079. esac;
  10080. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10081. '
  10082. export as_echo_n_body
  10083. as_echo_n='sh -c $as_echo_n_body as_echo'
  10084. fi
  10085. export as_echo_body
  10086. as_echo='sh -c $as_echo_body as_echo'
  10087. fi
  10088. # The user is always right.
  10089. if test "${PATH_SEPARATOR+set}" != set; then
  10090. PATH_SEPARATOR=:
  10091. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10092. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10093. PATH_SEPARATOR=';'
  10094. }
  10095. fi
  10096. # IFS
  10097. # We need space, tab and new line, in precisely that order. Quoting is
  10098. # there to prevent editors from complaining about space-tab.
  10099. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10100. # splitting by setting IFS to empty value.)
  10101. IFS=" "" $as_nl"
  10102. # Find who we are. Look in the path if we contain no directory separator.
  10103. as_myself=
  10104. case $0 in #((
  10105. *[\\/]* ) as_myself=$0 ;;
  10106. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10107. for as_dir in $PATH
  10108. do
  10109. IFS=$as_save_IFS
  10110. test -z "$as_dir" && as_dir=.
  10111. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10112. done
  10113. IFS=$as_save_IFS
  10114. ;;
  10115. esac
  10116. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10117. # in which case we are not to be found in the path.
  10118. if test "x$as_myself" = x; then
  10119. as_myself=$0
  10120. fi
  10121. if test ! -f "$as_myself"; then
  10122. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10123. exit 1
  10124. fi
  10125. # Unset variables that we do not need and which cause bugs (e.g. in
  10126. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10127. # suppresses any "Segmentation fault" message there. '((' could
  10128. # trigger a bug in pdksh 5.2.14.
  10129. for as_var in BASH_ENV ENV MAIL MAILPATH
  10130. do eval test x\${$as_var+set} = xset \
  10131. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10132. done
  10133. PS1='$ '
  10134. PS2='> '
  10135. PS4='+ '
  10136. # NLS nuisances.
  10137. LC_ALL=C
  10138. export LC_ALL
  10139. LANGUAGE=C
  10140. export LANGUAGE
  10141. # CDPATH.
  10142. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10143. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10144. # ----------------------------------------
  10145. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10146. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10147. # script with STATUS, using 1 if that was 0.
  10148. as_fn_error ()
  10149. {
  10150. as_status=$1; test $as_status -eq 0 && as_status=1
  10151. if test "$4"; then
  10152. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10153. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10154. fi
  10155. $as_echo "$as_me: error: $2" >&2
  10156. as_fn_exit $as_status
  10157. } # as_fn_error
  10158. # as_fn_set_status STATUS
  10159. # -----------------------
  10160. # Set $? to STATUS, without forking.
  10161. as_fn_set_status ()
  10162. {
  10163. return $1
  10164. } # as_fn_set_status
  10165. # as_fn_exit STATUS
  10166. # -----------------
  10167. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10168. as_fn_exit ()
  10169. {
  10170. set +e
  10171. as_fn_set_status $1
  10172. exit $1
  10173. } # as_fn_exit
  10174. # as_fn_unset VAR
  10175. # ---------------
  10176. # Portably unset VAR.
  10177. as_fn_unset ()
  10178. {
  10179. { eval $1=; unset $1;}
  10180. }
  10181. as_unset=as_fn_unset
  10182. # as_fn_append VAR VALUE
  10183. # ----------------------
  10184. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10185. # advantage of any shell optimizations that allow amortized linear growth over
  10186. # repeated appends, instead of the typical quadratic growth present in naive
  10187. # implementations.
  10188. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10189. eval 'as_fn_append ()
  10190. {
  10191. eval $1+=\$2
  10192. }'
  10193. else
  10194. as_fn_append ()
  10195. {
  10196. eval $1=\$$1\$2
  10197. }
  10198. fi # as_fn_append
  10199. # as_fn_arith ARG...
  10200. # ------------------
  10201. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10202. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10203. # must be portable across $(()) and expr.
  10204. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10205. eval 'as_fn_arith ()
  10206. {
  10207. as_val=$(( $* ))
  10208. }'
  10209. else
  10210. as_fn_arith ()
  10211. {
  10212. as_val=`expr "$@" || test $? -eq 1`
  10213. }
  10214. fi # as_fn_arith
  10215. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10216. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10217. as_expr=expr
  10218. else
  10219. as_expr=false
  10220. fi
  10221. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10222. as_basename=basename
  10223. else
  10224. as_basename=false
  10225. fi
  10226. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10227. as_dirname=dirname
  10228. else
  10229. as_dirname=false
  10230. fi
  10231. as_me=`$as_basename -- "$0" ||
  10232. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10233. X"$0" : 'X\(//\)$' \| \
  10234. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10235. $as_echo X/"$0" |
  10236. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10237. s//\1/
  10238. q
  10239. }
  10240. /^X\/\(\/\/\)$/{
  10241. s//\1/
  10242. q
  10243. }
  10244. /^X\/\(\/\).*/{
  10245. s//\1/
  10246. q
  10247. }
  10248. s/.*/./; q'`
  10249. # Avoid depending upon Character Ranges.
  10250. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10251. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10252. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10253. as_cr_digits='0123456789'
  10254. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10255. ECHO_C= ECHO_N= ECHO_T=
  10256. case `echo -n x` in #(((((
  10257. -n*)
  10258. case `echo 'xy\c'` in
  10259. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10260. xy) ECHO_C='\c';;
  10261. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10262. ECHO_T=' ';;
  10263. esac;;
  10264. *)
  10265. ECHO_N='-n';;
  10266. esac
  10267. rm -f conf$$ conf$$.exe conf$$.file
  10268. if test -d conf$$.dir; then
  10269. rm -f conf$$.dir/conf$$.file
  10270. else
  10271. rm -f conf$$.dir
  10272. mkdir conf$$.dir 2>/dev/null
  10273. fi
  10274. if (echo >conf$$.file) 2>/dev/null; then
  10275. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10276. as_ln_s='ln -s'
  10277. # ... but there are two gotchas:
  10278. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10279. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10280. # In both cases, we have to default to `cp -pR'.
  10281. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10282. as_ln_s='cp -pR'
  10283. elif ln conf$$.file conf$$ 2>/dev/null; then
  10284. as_ln_s=ln
  10285. else
  10286. as_ln_s='cp -pR'
  10287. fi
  10288. else
  10289. as_ln_s='cp -pR'
  10290. fi
  10291. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10292. rmdir conf$$.dir 2>/dev/null
  10293. # as_fn_mkdir_p
  10294. # -------------
  10295. # Create "$as_dir" as a directory, including parents if necessary.
  10296. as_fn_mkdir_p ()
  10297. {
  10298. case $as_dir in #(
  10299. -*) as_dir=./$as_dir;;
  10300. esac
  10301. test -d "$as_dir" || eval $as_mkdir_p || {
  10302. as_dirs=
  10303. while :; do
  10304. case $as_dir in #(
  10305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10306. *) as_qdir=$as_dir;;
  10307. esac
  10308. as_dirs="'$as_qdir' $as_dirs"
  10309. as_dir=`$as_dirname -- "$as_dir" ||
  10310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10311. X"$as_dir" : 'X\(//\)[^/]' \| \
  10312. X"$as_dir" : 'X\(//\)$' \| \
  10313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10314. $as_echo X"$as_dir" |
  10315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10316. s//\1/
  10317. q
  10318. }
  10319. /^X\(\/\/\)[^/].*/{
  10320. s//\1/
  10321. q
  10322. }
  10323. /^X\(\/\/\)$/{
  10324. s//\1/
  10325. q
  10326. }
  10327. /^X\(\/\).*/{
  10328. s//\1/
  10329. q
  10330. }
  10331. s/.*/./; q'`
  10332. test -d "$as_dir" && break
  10333. done
  10334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10336. } # as_fn_mkdir_p
  10337. if mkdir -p . 2>/dev/null; then
  10338. as_mkdir_p='mkdir -p "$as_dir"'
  10339. else
  10340. test -d ./-p && rmdir ./-p
  10341. as_mkdir_p=false
  10342. fi
  10343. # as_fn_executable_p FILE
  10344. # -----------------------
  10345. # Test if FILE is an executable regular file.
  10346. as_fn_executable_p ()
  10347. {
  10348. test -f "$1" && test -x "$1"
  10349. } # as_fn_executable_p
  10350. as_test_x='test -x'
  10351. as_executable_p=as_fn_executable_p
  10352. # Sed expression to map a string onto a valid CPP name.
  10353. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10354. # Sed expression to map a string onto a valid variable name.
  10355. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10356. exec 6>&1
  10357. ## ----------------------------------- ##
  10358. ## Main body of $CONFIG_STATUS script. ##
  10359. ## ----------------------------------- ##
  10360. _ASEOF
  10361. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10362. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10363. # Save the log message, to keep $0 and so on meaningful, and to
  10364. # report actual input values of CONFIG_FILES etc. instead of their
  10365. # values after options handling.
  10366. ac_log="
  10367. This file was extended by zlib $as_me 1.1.4, which was
  10368. generated by GNU Autoconf 2.69. Invocation command line was
  10369. CONFIG_FILES = $CONFIG_FILES
  10370. CONFIG_HEADERS = $CONFIG_HEADERS
  10371. CONFIG_LINKS = $CONFIG_LINKS
  10372. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10373. $ $0 $@
  10374. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10375. "
  10376. _ACEOF
  10377. case $ac_config_files in *"
  10378. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10379. esac
  10380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10381. # Files that config.status was made for.
  10382. config_files="$ac_config_files"
  10383. config_commands="$ac_config_commands"
  10384. _ACEOF
  10385. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10386. ac_cs_usage="\
  10387. \`$as_me' instantiates files and other configuration actions
  10388. from templates according to the current configuration. Unless the files
  10389. and actions are specified as TAGs, all are instantiated by default.
  10390. Usage: $0 [OPTION]... [TAG]...
  10391. -h, --help print this help, then exit
  10392. -V, --version print version number and configuration settings, then exit
  10393. --config print configuration, then exit
  10394. -q, --quiet, --silent
  10395. do not print progress messages
  10396. -d, --debug don't remove temporary files
  10397. --recheck update $as_me by reconfiguring in the same conditions
  10398. --file=FILE[:TEMPLATE]
  10399. instantiate the configuration file FILE
  10400. Configuration files:
  10401. $config_files
  10402. Configuration commands:
  10403. $config_commands
  10404. Report bugs to the package provider."
  10405. _ACEOF
  10406. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10407. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10408. ac_cs_version="\\
  10409. zlib config.status 1.1.4
  10410. configured by $0, generated by GNU Autoconf 2.69,
  10411. with options \\"\$ac_cs_config\\"
  10412. Copyright (C) 2012 Free Software Foundation, Inc.
  10413. This config.status script is free software; the Free Software Foundation
  10414. gives unlimited permission to copy, distribute and modify it."
  10415. ac_pwd='$ac_pwd'
  10416. srcdir='$srcdir'
  10417. INSTALL='$INSTALL'
  10418. MKDIR_P='$MKDIR_P'
  10419. AWK='$AWK'
  10420. test -n "\$AWK" || AWK=awk
  10421. _ACEOF
  10422. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10423. # The default lists apply if the user does not specify any file.
  10424. ac_need_defaults=:
  10425. while test $# != 0
  10426. do
  10427. case $1 in
  10428. --*=?*)
  10429. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10430. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10431. ac_shift=:
  10432. ;;
  10433. --*=)
  10434. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10435. ac_optarg=
  10436. ac_shift=:
  10437. ;;
  10438. *)
  10439. ac_option=$1
  10440. ac_optarg=$2
  10441. ac_shift=shift
  10442. ;;
  10443. esac
  10444. case $ac_option in
  10445. # Handling of the options.
  10446. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10447. ac_cs_recheck=: ;;
  10448. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10449. $as_echo "$ac_cs_version"; exit ;;
  10450. --config | --confi | --conf | --con | --co | --c )
  10451. $as_echo "$ac_cs_config"; exit ;;
  10452. --debug | --debu | --deb | --de | --d | -d )
  10453. debug=: ;;
  10454. --file | --fil | --fi | --f )
  10455. $ac_shift
  10456. case $ac_optarg in
  10457. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10458. '') as_fn_error $? "missing file argument" ;;
  10459. esac
  10460. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10461. ac_need_defaults=false;;
  10462. --he | --h | --help | --hel | -h )
  10463. $as_echo "$ac_cs_usage"; exit ;;
  10464. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10465. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10466. ac_cs_silent=: ;;
  10467. # This is an error.
  10468. -*) as_fn_error $? "unrecognized option: \`$1'
  10469. Try \`$0 --help' for more information." ;;
  10470. *) as_fn_append ac_config_targets " $1"
  10471. ac_need_defaults=false ;;
  10472. esac
  10473. shift
  10474. done
  10475. ac_configure_extra_args=
  10476. if $ac_cs_silent; then
  10477. exec 6>/dev/null
  10478. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10479. fi
  10480. _ACEOF
  10481. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10482. if \$ac_cs_recheck; then
  10483. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10484. shift
  10485. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10486. CONFIG_SHELL='$SHELL'
  10487. export CONFIG_SHELL
  10488. exec "\$@"
  10489. fi
  10490. _ACEOF
  10491. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10492. exec 5>>config.log
  10493. {
  10494. echo
  10495. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10496. ## Running $as_me. ##
  10497. _ASBOX
  10498. $as_echo "$ac_log"
  10499. } >&5
  10500. _ACEOF
  10501. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10502. #
  10503. # INIT-COMMANDS
  10504. #
  10505. srcdir="$srcdir"
  10506. host="$host"
  10507. target="$target"
  10508. with_multisubdir="$with_multisubdir"
  10509. with_multisrctop="$with_multisrctop"
  10510. with_target_subdir="$with_target_subdir"
  10511. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  10512. multi_basedir="$multi_basedir"
  10513. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10514. CC="$CC"
  10515. CXX="$CXX"
  10516. GFORTRAN="$GFORTRAN"
  10517. GDC="$GDC"
  10518. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10519. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10520. # if CDPATH is set.
  10521. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10522. sed_quote_subst='$sed_quote_subst'
  10523. double_quote_subst='$double_quote_subst'
  10524. delay_variable_subst='$delay_variable_subst'
  10525. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10526. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10527. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10528. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10529. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10530. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10531. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10532. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10533. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10534. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10535. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10536. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10537. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10538. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10539. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10540. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10541. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10542. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10543. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10544. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10545. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10546. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10547. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10548. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10549. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10550. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10551. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10552. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10553. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10554. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10555. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10556. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10557. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10558. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10559. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10560. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10561. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10562. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10563. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10564. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10565. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10566. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10567. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10568. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10569. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10570. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10571. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10572. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10573. 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"`'
  10574. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10575. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10576. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10577. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10578. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10579. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10580. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10581. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10582. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10583. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10584. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10585. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10586. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10587. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10588. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10589. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10590. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10591. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10592. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10593. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10594. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10595. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10596. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10597. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10598. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10599. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10600. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10601. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10602. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10603. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10604. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10605. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10606. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10607. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10608. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10609. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10610. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10611. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10612. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10613. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10614. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  10615. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10616. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10617. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10618. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10619. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10620. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10621. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10622. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10623. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10624. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10625. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10626. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10627. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10628. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10629. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10630. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10631. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10632. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10633. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10634. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10635. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10636. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10637. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10638. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10639. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10640. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10641. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10642. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10643. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10644. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10645. LTCC='$LTCC'
  10646. LTCFLAGS='$LTCFLAGS'
  10647. compiler='$compiler_DEFAULT'
  10648. # A function that is used when there is no print builtin or printf.
  10649. func_fallback_echo ()
  10650. {
  10651. eval 'cat <<_LTECHO_EOF
  10652. \$1
  10653. _LTECHO_EOF'
  10654. }
  10655. # Quote evaled strings.
  10656. for var in SHELL \
  10657. ECHO \
  10658. SED \
  10659. GREP \
  10660. EGREP \
  10661. FGREP \
  10662. LD \
  10663. NM \
  10664. LN_S \
  10665. lt_SP2NL \
  10666. lt_NL2SP \
  10667. reload_flag \
  10668. OBJDUMP \
  10669. deplibs_check_method \
  10670. file_magic_cmd \
  10671. AR \
  10672. AR_FLAGS \
  10673. STRIP \
  10674. RANLIB \
  10675. CC \
  10676. CFLAGS \
  10677. compiler \
  10678. lt_cv_sys_global_symbol_pipe \
  10679. lt_cv_sys_global_symbol_to_cdecl \
  10680. lt_cv_sys_global_symbol_to_c_name_address \
  10681. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10682. lt_prog_compiler_no_builtin_flag \
  10683. lt_prog_compiler_wl \
  10684. lt_prog_compiler_pic \
  10685. lt_prog_compiler_static \
  10686. lt_cv_prog_compiler_c_o \
  10687. need_locks \
  10688. DSYMUTIL \
  10689. NMEDIT \
  10690. LIPO \
  10691. OTOOL \
  10692. OTOOL64 \
  10693. shrext_cmds \
  10694. export_dynamic_flag_spec \
  10695. whole_archive_flag_spec \
  10696. compiler_needs_object \
  10697. with_gnu_ld \
  10698. allow_undefined_flag \
  10699. no_undefined_flag \
  10700. hardcode_libdir_flag_spec \
  10701. hardcode_libdir_flag_spec_ld \
  10702. hardcode_libdir_separator \
  10703. fix_srcfile_path \
  10704. exclude_expsyms \
  10705. include_expsyms \
  10706. file_list_spec \
  10707. variables_saved_for_relink \
  10708. libname_spec \
  10709. library_names_spec \
  10710. soname_spec \
  10711. install_override_mode \
  10712. finish_eval \
  10713. old_striplib \
  10714. striplib; do
  10715. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10716. *[\\\\\\\`\\"\\\$]*)
  10717. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10718. ;;
  10719. *)
  10720. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10721. ;;
  10722. esac
  10723. done
  10724. # Double-quote double-evaled strings.
  10725. for var in reload_cmds \
  10726. old_postinstall_cmds \
  10727. old_postuninstall_cmds \
  10728. old_archive_cmds \
  10729. extract_expsyms_cmds \
  10730. old_archive_from_new_cmds \
  10731. old_archive_from_expsyms_cmds \
  10732. archive_cmds \
  10733. archive_expsym_cmds \
  10734. module_cmds \
  10735. module_expsym_cmds \
  10736. export_symbols_cmds \
  10737. prelink_cmds \
  10738. postinstall_cmds \
  10739. postuninstall_cmds \
  10740. finish_cmds \
  10741. sys_lib_search_path_spec \
  10742. sys_lib_dlsearch_path_spec; do
  10743. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10744. *[\\\\\\\`\\"\\\$]*)
  10745. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10746. ;;
  10747. *)
  10748. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10749. ;;
  10750. esac
  10751. done
  10752. ac_aux_dir='$ac_aux_dir'
  10753. xsi_shell='$xsi_shell'
  10754. lt_shell_append='$lt_shell_append'
  10755. # See if we are running on zsh, and set the options which allow our
  10756. # commands through without removal of \ escapes INIT.
  10757. if test -n "\${ZSH_VERSION+set}" ; then
  10758. setopt NO_GLOB_SUBST
  10759. fi
  10760. PACKAGE='$PACKAGE'
  10761. VERSION='$VERSION'
  10762. TIMESTAMP='$TIMESTAMP'
  10763. RM='$RM'
  10764. ofile='$ofile'
  10765. _ACEOF
  10766. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10767. # Handling of arguments.
  10768. for ac_config_target in $ac_config_targets
  10769. do
  10770. case $ac_config_target in
  10771. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10772. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10773. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10774. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10775. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10776. esac
  10777. done
  10778. # If the user did not use the arguments to specify the items to instantiate,
  10779. # then the envvar interface is used. Set only those that are not.
  10780. # We use the long form for the default assignment because of an extremely
  10781. # bizarre bug on SunOS 4.1.3.
  10782. if $ac_need_defaults; then
  10783. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10784. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10785. fi
  10786. # Have a temporary directory for convenience. Make it in the build tree
  10787. # simply because there is no reason against having it here, and in addition,
  10788. # creating and moving files from /tmp can sometimes cause problems.
  10789. # Hook for its removal unless debugging.
  10790. # Note that there is a small window in which the directory will not be cleaned:
  10791. # after its creation but before its name has been assigned to `$tmp'.
  10792. $debug ||
  10793. {
  10794. tmp= ac_tmp=
  10795. trap 'exit_status=$?
  10796. : "${ac_tmp:=$tmp}"
  10797. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10798. ' 0
  10799. trap 'as_fn_exit 1' 1 2 13 15
  10800. }
  10801. # Create a (secure) tmp directory for tmp files.
  10802. {
  10803. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10804. test -d "$tmp"
  10805. } ||
  10806. {
  10807. tmp=./conf$$-$RANDOM
  10808. (umask 077 && mkdir "$tmp")
  10809. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10810. ac_tmp=$tmp
  10811. # Set up the scripts for CONFIG_FILES section.
  10812. # No need to generate them if there are no CONFIG_FILES.
  10813. # This happens for instance with `./config.status config.h'.
  10814. if test -n "$CONFIG_FILES"; then
  10815. ac_cr=`echo X | tr X '\015'`
  10816. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10817. # But we know of no other shell where ac_cr would be empty at this
  10818. # point, so we can use a bashism as a fallback.
  10819. if test "x$ac_cr" = x; then
  10820. eval ac_cr=\$\'\\r\'
  10821. fi
  10822. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10823. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10824. ac_cs_awk_cr='\\r'
  10825. else
  10826. ac_cs_awk_cr=$ac_cr
  10827. fi
  10828. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10829. _ACEOF
  10830. {
  10831. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10832. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10833. echo "_ACEOF"
  10834. } >conf$$subs.sh ||
  10835. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10836. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10837. ac_delim='%!_!# '
  10838. for ac_last_try in false false false false false :; do
  10839. . ./conf$$subs.sh ||
  10840. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10841. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10842. if test $ac_delim_n = $ac_delim_num; then
  10843. break
  10844. elif $ac_last_try; then
  10845. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10846. else
  10847. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10848. fi
  10849. done
  10850. rm -f conf$$subs.sh
  10851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10852. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10853. _ACEOF
  10854. sed -n '
  10855. h
  10856. s/^/S["/; s/!.*/"]=/
  10857. p
  10858. g
  10859. s/^[^!]*!//
  10860. :repl
  10861. t repl
  10862. s/'"$ac_delim"'$//
  10863. t delim
  10864. :nl
  10865. h
  10866. s/\(.\{148\}\)..*/\1/
  10867. t more1
  10868. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10869. p
  10870. n
  10871. b repl
  10872. :more1
  10873. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10874. p
  10875. g
  10876. s/.\{148\}//
  10877. t nl
  10878. :delim
  10879. h
  10880. s/\(.\{148\}\)..*/\1/
  10881. t more2
  10882. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10883. p
  10884. b
  10885. :more2
  10886. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10887. p
  10888. g
  10889. s/.\{148\}//
  10890. t delim
  10891. ' <conf$$subs.awk | sed '
  10892. /^[^""]/{
  10893. N
  10894. s/\n//
  10895. }
  10896. ' >>$CONFIG_STATUS || ac_write_fail=1
  10897. rm -f conf$$subs.awk
  10898. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10899. _ACAWK
  10900. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10901. for (key in S) S_is_set[key] = 1
  10902. FS = ""
  10903. }
  10904. {
  10905. line = $ 0
  10906. nfields = split(line, field, "@")
  10907. substed = 0
  10908. len = length(field[1])
  10909. for (i = 2; i < nfields; i++) {
  10910. key = field[i]
  10911. keylen = length(key)
  10912. if (S_is_set[key]) {
  10913. value = S[key]
  10914. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10915. len += length(value) + length(field[++i])
  10916. substed = 1
  10917. } else
  10918. len += 1 + keylen
  10919. }
  10920. print line
  10921. }
  10922. _ACAWK
  10923. _ACEOF
  10924. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10925. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10926. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10927. else
  10928. cat
  10929. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10930. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10931. _ACEOF
  10932. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10933. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10934. # trailing colons and then remove the whole line if VPATH becomes empty
  10935. # (actually we leave an empty line to preserve line numbers).
  10936. if test "x$srcdir" = x.; then
  10937. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10938. h
  10939. s///
  10940. s/^/:/
  10941. s/[ ]*$/:/
  10942. s/:\$(srcdir):/:/g
  10943. s/:\${srcdir}:/:/g
  10944. s/:@srcdir@:/:/g
  10945. s/^:*//
  10946. s/:*$//
  10947. x
  10948. s/\(=[ ]*\).*/\1/
  10949. G
  10950. s/\n//
  10951. s/^[^=]*=[ ]*$//
  10952. }'
  10953. fi
  10954. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10955. fi # test -n "$CONFIG_FILES"
  10956. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  10957. shift
  10958. for ac_tag
  10959. do
  10960. case $ac_tag in
  10961. :[FHLC]) ac_mode=$ac_tag; continue;;
  10962. esac
  10963. case $ac_mode$ac_tag in
  10964. :[FHL]*:*);;
  10965. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10966. :[FH]-) ac_tag=-:-;;
  10967. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10968. esac
  10969. ac_save_IFS=$IFS
  10970. IFS=:
  10971. set x $ac_tag
  10972. IFS=$ac_save_IFS
  10973. shift
  10974. ac_file=$1
  10975. shift
  10976. case $ac_mode in
  10977. :L) ac_source=$1;;
  10978. :[FH])
  10979. ac_file_inputs=
  10980. for ac_f
  10981. do
  10982. case $ac_f in
  10983. -) ac_f="$ac_tmp/stdin";;
  10984. *) # Look for the file first in the build tree, then in the source tree
  10985. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10986. # because $ac_f cannot contain `:'.
  10987. test -f "$ac_f" ||
  10988. case $ac_f in
  10989. [\\/$]*) false;;
  10990. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10991. esac ||
  10992. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10993. esac
  10994. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10995. as_fn_append ac_file_inputs " '$ac_f'"
  10996. done
  10997. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10998. # use $as_me), people would be surprised to read:
  10999. # /* config.h. Generated by config.status. */
  11000. configure_input='Generated from '`
  11001. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11002. `' by configure.'
  11003. if test x"$ac_file" != x-; then
  11004. configure_input="$ac_file. $configure_input"
  11005. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11006. $as_echo "$as_me: creating $ac_file" >&6;}
  11007. fi
  11008. # Neutralize special characters interpreted by sed in replacement strings.
  11009. case $configure_input in #(
  11010. *\&* | *\|* | *\\* )
  11011. ac_sed_conf_input=`$as_echo "$configure_input" |
  11012. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11013. *) ac_sed_conf_input=$configure_input;;
  11014. esac
  11015. case $ac_tag in
  11016. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11017. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11018. esac
  11019. ;;
  11020. esac
  11021. ac_dir=`$as_dirname -- "$ac_file" ||
  11022. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11023. X"$ac_file" : 'X\(//\)[^/]' \| \
  11024. X"$ac_file" : 'X\(//\)$' \| \
  11025. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11026. $as_echo X"$ac_file" |
  11027. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11028. s//\1/
  11029. q
  11030. }
  11031. /^X\(\/\/\)[^/].*/{
  11032. s//\1/
  11033. q
  11034. }
  11035. /^X\(\/\/\)$/{
  11036. s//\1/
  11037. q
  11038. }
  11039. /^X\(\/\).*/{
  11040. s//\1/
  11041. q
  11042. }
  11043. s/.*/./; q'`
  11044. as_dir="$ac_dir"; as_fn_mkdir_p
  11045. ac_builddir=.
  11046. case "$ac_dir" in
  11047. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11048. *)
  11049. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11050. # A ".." for each directory in $ac_dir_suffix.
  11051. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11052. case $ac_top_builddir_sub in
  11053. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11054. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11055. esac ;;
  11056. esac
  11057. ac_abs_top_builddir=$ac_pwd
  11058. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11059. # for backward compatibility:
  11060. ac_top_builddir=$ac_top_build_prefix
  11061. case $srcdir in
  11062. .) # We are building in place.
  11063. ac_srcdir=.
  11064. ac_top_srcdir=$ac_top_builddir_sub
  11065. ac_abs_top_srcdir=$ac_pwd ;;
  11066. [\\/]* | ?:[\\/]* ) # Absolute name.
  11067. ac_srcdir=$srcdir$ac_dir_suffix;
  11068. ac_top_srcdir=$srcdir
  11069. ac_abs_top_srcdir=$srcdir ;;
  11070. *) # Relative name.
  11071. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11072. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11073. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11074. esac
  11075. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11076. case $ac_mode in
  11077. :F)
  11078. #
  11079. # CONFIG_FILE
  11080. #
  11081. case $INSTALL in
  11082. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11083. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11084. esac
  11085. ac_MKDIR_P=$MKDIR_P
  11086. case $MKDIR_P in
  11087. [\\/$]* | ?:[\\/]* ) ;;
  11088. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11089. esac
  11090. _ACEOF
  11091. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11092. # If the template does not know about datarootdir, expand it.
  11093. # FIXME: This hack should be removed a few years after 2.60.
  11094. ac_datarootdir_hack=; ac_datarootdir_seen=
  11095. ac_sed_dataroot='
  11096. /datarootdir/ {
  11097. p
  11098. q
  11099. }
  11100. /@datadir@/p
  11101. /@docdir@/p
  11102. /@infodir@/p
  11103. /@localedir@/p
  11104. /@mandir@/p'
  11105. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11106. *datarootdir*) ac_datarootdir_seen=yes;;
  11107. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11109. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11110. _ACEOF
  11111. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11112. ac_datarootdir_hack='
  11113. s&@datadir@&$datadir&g
  11114. s&@docdir@&$docdir&g
  11115. s&@infodir@&$infodir&g
  11116. s&@localedir@&$localedir&g
  11117. s&@mandir@&$mandir&g
  11118. s&\\\${datarootdir}&$datarootdir&g' ;;
  11119. esac
  11120. _ACEOF
  11121. # Neutralize VPATH when `$srcdir' = `.'.
  11122. # Shell code in configure.ac might set extrasub.
  11123. # FIXME: do we really want to maintain this feature?
  11124. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11125. ac_sed_extra="$ac_vpsub
  11126. $extrasub
  11127. _ACEOF
  11128. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11129. :t
  11130. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11131. s|@configure_input@|$ac_sed_conf_input|;t t
  11132. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11133. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11134. s&@srcdir@&$ac_srcdir&;t t
  11135. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11136. s&@top_srcdir@&$ac_top_srcdir&;t t
  11137. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11138. s&@builddir@&$ac_builddir&;t t
  11139. s&@abs_builddir@&$ac_abs_builddir&;t t
  11140. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11141. s&@INSTALL@&$ac_INSTALL&;t t
  11142. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11143. $ac_datarootdir_hack
  11144. "
  11145. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11146. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11147. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11148. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11149. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11150. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11152. which seems to be undefined. Please make sure it is defined" >&5
  11153. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11154. which seems to be undefined. Please make sure it is defined" >&2;}
  11155. rm -f "$ac_tmp/stdin"
  11156. case $ac_file in
  11157. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11158. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11159. esac \
  11160. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11161. ;;
  11162. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11163. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11164. ;;
  11165. esac
  11166. case $ac_file$ac_mode in
  11167. "default-1":C)
  11168. # Only add multilib support code if we just rebuilt the top-level
  11169. # Makefile.
  11170. case " $CONFIG_FILES " in
  11171. *" Makefile "*)
  11172. ac_file=Makefile . ${multi_basedir}/config-ml.in
  11173. ;;
  11174. esac ;;
  11175. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11176. # Older Autoconf quotes --file arguments for eval, but not when files
  11177. # are listed without --file. Let's play safe and only enable the eval
  11178. # if we detect the quoting.
  11179. case $CONFIG_FILES in
  11180. *\'*) eval set x "$CONFIG_FILES" ;;
  11181. *) set x $CONFIG_FILES ;;
  11182. esac
  11183. shift
  11184. for mf
  11185. do
  11186. # Strip MF so we end up with the name of the file.
  11187. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11188. # Check whether this is an Automake generated Makefile or not.
  11189. # We used to match only the files named 'Makefile.in', but
  11190. # some people rename them; so instead we look at the file content.
  11191. # Grep'ing the first line is not enough: some people post-process
  11192. # each Makefile.in and add a new line on top of each file to say so.
  11193. # Grep'ing the whole file is not good either: AIX grep has a line
  11194. # limit of 2048, but all sed's we know have understand at least 4000.
  11195. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11196. dirpart=`$as_dirname -- "$mf" ||
  11197. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11198. X"$mf" : 'X\(//\)[^/]' \| \
  11199. X"$mf" : 'X\(//\)$' \| \
  11200. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11201. $as_echo X"$mf" |
  11202. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11203. s//\1/
  11204. q
  11205. }
  11206. /^X\(\/\/\)[^/].*/{
  11207. s//\1/
  11208. q
  11209. }
  11210. /^X\(\/\/\)$/{
  11211. s//\1/
  11212. q
  11213. }
  11214. /^X\(\/\).*/{
  11215. s//\1/
  11216. q
  11217. }
  11218. s/.*/./; q'`
  11219. else
  11220. continue
  11221. fi
  11222. # Extract the definition of DEPDIR, am__include, and am__quote
  11223. # from the Makefile without running 'make'.
  11224. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11225. test -z "$DEPDIR" && continue
  11226. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11227. test -z "$am__include" && continue
  11228. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11229. # Find all dependency output files, they are included files with
  11230. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11231. # simplest approach to changing $(DEPDIR) to its actual value in the
  11232. # expansion.
  11233. for file in `sed -n "
  11234. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11235. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  11236. # Make sure the directory exists.
  11237. test -f "$dirpart/$file" && continue
  11238. fdir=`$as_dirname -- "$file" ||
  11239. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11240. X"$file" : 'X\(//\)[^/]' \| \
  11241. X"$file" : 'X\(//\)$' \| \
  11242. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11243. $as_echo X"$file" |
  11244. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11245. s//\1/
  11246. q
  11247. }
  11248. /^X\(\/\/\)[^/].*/{
  11249. s//\1/
  11250. q
  11251. }
  11252. /^X\(\/\/\)$/{
  11253. s//\1/
  11254. q
  11255. }
  11256. /^X\(\/\).*/{
  11257. s//\1/
  11258. q
  11259. }
  11260. s/.*/./; q'`
  11261. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11262. # echo "creating $dirpart/$file"
  11263. echo '# dummy' > "$dirpart/$file"
  11264. done
  11265. done
  11266. }
  11267. ;;
  11268. "libtool":C)
  11269. # See if we are running on zsh, and set the options which allow our
  11270. # commands through without removal of \ escapes.
  11271. if test -n "${ZSH_VERSION+set}" ; then
  11272. setopt NO_GLOB_SUBST
  11273. fi
  11274. cfgfile="${ofile}T"
  11275. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11276. $RM "$cfgfile"
  11277. cat <<_LT_EOF >> "$cfgfile"
  11278. #! $SHELL
  11279. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11280. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11281. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11282. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11283. #
  11284. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11285. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11286. # Written by Gordon Matzigkeit, 1996
  11287. #
  11288. # This file is part of GNU Libtool.
  11289. #
  11290. # GNU Libtool is free software; you can redistribute it and/or
  11291. # modify it under the terms of the GNU General Public License as
  11292. # published by the Free Software Foundation; either version 2 of
  11293. # the License, or (at your option) any later version.
  11294. #
  11295. # As a special exception to the GNU General Public License,
  11296. # if you distribute this file as part of a program or library that
  11297. # is built using GNU Libtool, you may include this file under the
  11298. # same distribution terms that you use for the rest of that program.
  11299. #
  11300. # GNU Libtool is distributed in the hope that it will be useful,
  11301. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11302. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11303. # GNU General Public License for more details.
  11304. #
  11305. # You should have received a copy of the GNU General Public License
  11306. # along with GNU Libtool; see the file COPYING. If not, a copy
  11307. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11308. # obtained by writing to the Free Software Foundation, Inc.,
  11309. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11310. # The names of the tagged configurations supported by this script.
  11311. available_tags=""
  11312. # ### BEGIN LIBTOOL CONFIG
  11313. # Which release of libtool.m4 was used?
  11314. macro_version=$macro_version
  11315. macro_revision=$macro_revision
  11316. # Whether or not to build shared libraries.
  11317. build_libtool_libs=$enable_shared
  11318. # Whether or not to build static libraries.
  11319. build_old_libs=$enable_static
  11320. # What type of objects to build.
  11321. pic_mode=$pic_mode
  11322. # Whether or not to optimize for fast installation.
  11323. fast_install=$enable_fast_install
  11324. # Shell to use when invoking shell scripts.
  11325. SHELL=$lt_SHELL
  11326. # An echo program that protects backslashes.
  11327. ECHO=$lt_ECHO
  11328. # The host system.
  11329. host_alias=$host_alias
  11330. host=$host
  11331. host_os=$host_os
  11332. # The build system.
  11333. build_alias=$build_alias
  11334. build=$build
  11335. build_os=$build_os
  11336. # A sed program that does not truncate output.
  11337. SED=$lt_SED
  11338. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11339. Xsed="\$SED -e 1s/^X//"
  11340. # A grep program that handles long lines.
  11341. GREP=$lt_GREP
  11342. # An ERE matcher.
  11343. EGREP=$lt_EGREP
  11344. # A literal string matcher.
  11345. FGREP=$lt_FGREP
  11346. # A BSD- or MS-compatible name lister.
  11347. NM=$lt_NM
  11348. # Whether we need soft or hard links.
  11349. LN_S=$lt_LN_S
  11350. # What is the maximum length of a command?
  11351. max_cmd_len=$max_cmd_len
  11352. # Object file suffix (normally "o").
  11353. objext=$ac_objext
  11354. # Executable file suffix (normally "").
  11355. exeext=$exeext
  11356. # whether the shell understands "unset".
  11357. lt_unset=$lt_unset
  11358. # turn spaces into newlines.
  11359. SP2NL=$lt_lt_SP2NL
  11360. # turn newlines into spaces.
  11361. NL2SP=$lt_lt_NL2SP
  11362. # An object symbol dumper.
  11363. OBJDUMP=$lt_OBJDUMP
  11364. # Method to check whether dependent libraries are shared objects.
  11365. deplibs_check_method=$lt_deplibs_check_method
  11366. # Command to use when deplibs_check_method == "file_magic".
  11367. file_magic_cmd=$lt_file_magic_cmd
  11368. # The archiver.
  11369. AR=$lt_AR
  11370. AR_FLAGS=$lt_AR_FLAGS
  11371. # A symbol stripping program.
  11372. STRIP=$lt_STRIP
  11373. # Commands used to install an old-style archive.
  11374. RANLIB=$lt_RANLIB
  11375. old_postinstall_cmds=$lt_old_postinstall_cmds
  11376. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11377. # Whether to use a lock for old archive extraction.
  11378. lock_old_archive_extraction=$lock_old_archive_extraction
  11379. # A C compiler.
  11380. LTCC=$lt_CC
  11381. # LTCC compiler flags.
  11382. LTCFLAGS=$lt_CFLAGS
  11383. # Take the output of nm and produce a listing of raw symbols and C names.
  11384. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11385. # Transform the output of nm in a proper C declaration.
  11386. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11387. # Transform the output of nm in a C name address pair.
  11388. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11389. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11390. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11391. # The name of the directory that contains temporary libtool files.
  11392. objdir=$objdir
  11393. # Used to examine libraries when file_magic_cmd begins with "file".
  11394. MAGIC_CMD=$MAGIC_CMD
  11395. # Must we lock files when doing compilation?
  11396. need_locks=$lt_need_locks
  11397. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11398. DSYMUTIL=$lt_DSYMUTIL
  11399. # Tool to change global to local symbols on Mac OS X.
  11400. NMEDIT=$lt_NMEDIT
  11401. # Tool to manipulate fat objects and archives on Mac OS X.
  11402. LIPO=$lt_LIPO
  11403. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11404. OTOOL=$lt_OTOOL
  11405. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11406. OTOOL64=$lt_OTOOL64
  11407. # Old archive suffix (normally "a").
  11408. libext=$libext
  11409. # Shared library suffix (normally ".so").
  11410. shrext_cmds=$lt_shrext_cmds
  11411. # The commands to extract the exported symbol list from a shared archive.
  11412. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11413. # Variables whose values should be saved in libtool wrapper scripts and
  11414. # restored at link time.
  11415. variables_saved_for_relink=$lt_variables_saved_for_relink
  11416. # Do we need the "lib" prefix for modules?
  11417. need_lib_prefix=$need_lib_prefix
  11418. # Do we need a version for libraries?
  11419. need_version=$need_version
  11420. # Library versioning type.
  11421. version_type=$version_type
  11422. # Shared library runtime path variable.
  11423. runpath_var=$runpath_var
  11424. # Shared library path variable.
  11425. shlibpath_var=$shlibpath_var
  11426. # Is shlibpath searched before the hard-coded library search path?
  11427. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11428. # Format of library name prefix.
  11429. libname_spec=$lt_libname_spec
  11430. # List of archive names. First name is the real one, the rest are links.
  11431. # The last name is the one that the linker finds with -lNAME
  11432. library_names_spec=$lt_library_names_spec
  11433. # The coded name of the library, if different from the real name.
  11434. soname_spec=$lt_soname_spec
  11435. # Permission mode override for installation of shared libraries.
  11436. install_override_mode=$lt_install_override_mode
  11437. # Command to use after installation of a shared archive.
  11438. postinstall_cmds=$lt_postinstall_cmds
  11439. # Command to use after uninstallation of a shared archive.
  11440. postuninstall_cmds=$lt_postuninstall_cmds
  11441. # Commands used to finish a libtool library installation in a directory.
  11442. finish_cmds=$lt_finish_cmds
  11443. # As "finish_cmds", except a single script fragment to be evaled but
  11444. # not shown.
  11445. finish_eval=$lt_finish_eval
  11446. # Whether we should hardcode library paths into libraries.
  11447. hardcode_into_libs=$hardcode_into_libs
  11448. # Compile-time system search path for libraries.
  11449. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11450. # Run-time system search path for libraries.
  11451. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11452. # Whether dlopen is supported.
  11453. dlopen_support=$enable_dlopen
  11454. # Whether dlopen of programs is supported.
  11455. dlopen_self=$enable_dlopen_self
  11456. # Whether dlopen of statically linked programs is supported.
  11457. dlopen_self_static=$enable_dlopen_self_static
  11458. # Commands to strip libraries.
  11459. old_striplib=$lt_old_striplib
  11460. striplib=$lt_striplib
  11461. # The linker used to build libraries.
  11462. LD=$lt_LD
  11463. # How to create reloadable object files.
  11464. reload_flag=$lt_reload_flag
  11465. reload_cmds=$lt_reload_cmds
  11466. # Commands used to build an old-style archive.
  11467. old_archive_cmds=$lt_old_archive_cmds
  11468. # A language specific compiler.
  11469. CC=$lt_compiler
  11470. # Is the compiler the GNU compiler?
  11471. with_gcc=$GCC
  11472. # Compiler flag to turn off builtin functions.
  11473. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11474. # How to pass a linker flag through the compiler.
  11475. wl=$lt_lt_prog_compiler_wl
  11476. # Additional compiler flags for building library objects.
  11477. pic_flag=$lt_lt_prog_compiler_pic
  11478. # Compiler flag to prevent dynamic linking.
  11479. link_static_flag=$lt_lt_prog_compiler_static
  11480. # Does compiler simultaneously support -c and -o options?
  11481. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11482. # Whether or not to add -lc for building shared libraries.
  11483. build_libtool_need_lc=$archive_cmds_need_lc
  11484. # Whether or not to disallow shared libs when runtime libs are static.
  11485. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11486. # Compiler flag to allow reflexive dlopens.
  11487. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11488. # Compiler flag to generate shared objects directly from archives.
  11489. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11490. # Whether the compiler copes with passing no objects directly.
  11491. compiler_needs_object=$lt_compiler_needs_object
  11492. # Create an old-style archive from a shared archive.
  11493. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11494. # Create a temporary old-style archive to link instead of a shared archive.
  11495. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11496. # Commands used to build a shared archive.
  11497. archive_cmds=$lt_archive_cmds
  11498. archive_expsym_cmds=$lt_archive_expsym_cmds
  11499. # Commands used to build a loadable module if different from building
  11500. # a shared archive.
  11501. module_cmds=$lt_module_cmds
  11502. module_expsym_cmds=$lt_module_expsym_cmds
  11503. # Whether we are building with GNU ld or not.
  11504. with_gnu_ld=$lt_with_gnu_ld
  11505. # Flag that allows shared libraries with undefined symbols to be built.
  11506. allow_undefined_flag=$lt_allow_undefined_flag
  11507. # Flag that enforces no undefined symbols.
  11508. no_undefined_flag=$lt_no_undefined_flag
  11509. # Flag to hardcode \$libdir into a binary during linking.
  11510. # This must work even if \$libdir does not exist
  11511. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11512. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11513. # during linking. This must work even if \$libdir does not exist.
  11514. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11515. # Whether we need a single "-rpath" flag with a separated argument.
  11516. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11517. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11518. # DIR into the resulting binary.
  11519. hardcode_direct=$hardcode_direct
  11520. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11521. # DIR into the resulting binary and the resulting library dependency is
  11522. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11523. # library is relocated.
  11524. hardcode_direct_absolute=$hardcode_direct_absolute
  11525. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11526. # into the resulting binary.
  11527. hardcode_minus_L=$hardcode_minus_L
  11528. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11529. # into the resulting binary.
  11530. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11531. # Set to "yes" if building a shared library automatically hardcodes DIR
  11532. # into the library and all subsequent libraries and executables linked
  11533. # against it.
  11534. hardcode_automatic=$hardcode_automatic
  11535. # Set to yes if linker adds runtime paths of dependent libraries
  11536. # to runtime path list.
  11537. inherit_rpath=$inherit_rpath
  11538. # Whether libtool must link a program against all its dependency libraries.
  11539. link_all_deplibs=$link_all_deplibs
  11540. # Fix the shell variable \$srcfile for the compiler.
  11541. fix_srcfile_path=$lt_fix_srcfile_path
  11542. # Set to "yes" if exported symbols are required.
  11543. always_export_symbols=$always_export_symbols
  11544. # The commands to list exported symbols.
  11545. export_symbols_cmds=$lt_export_symbols_cmds
  11546. # Symbols that should not be listed in the preloaded symbols.
  11547. exclude_expsyms=$lt_exclude_expsyms
  11548. # Symbols that must always be exported.
  11549. include_expsyms=$lt_include_expsyms
  11550. # Commands necessary for linking programs (against libraries) with templates.
  11551. prelink_cmds=$lt_prelink_cmds
  11552. # Specify filename containing input files.
  11553. file_list_spec=$lt_file_list_spec
  11554. # How to hardcode a shared library path into an executable.
  11555. hardcode_action=$hardcode_action
  11556. # ### END LIBTOOL CONFIG
  11557. _LT_EOF
  11558. case $host_os in
  11559. aix3*)
  11560. cat <<\_LT_EOF >> "$cfgfile"
  11561. # AIX sometimes has problems with the GCC collect2 program. For some
  11562. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11563. # vanish in a puff of smoke.
  11564. if test "X${COLLECT_NAMES+set}" != Xset; then
  11565. COLLECT_NAMES=
  11566. export COLLECT_NAMES
  11567. fi
  11568. _LT_EOF
  11569. ;;
  11570. esac
  11571. ltmain="$ac_aux_dir/ltmain.sh"
  11572. # We use sed instead of cat because bash on DJGPP gets confused if
  11573. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11574. # text mode, it properly converts lines to CR/LF. This bash problem
  11575. # is reportedly fixed, but why not run on old versions too?
  11576. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11577. || (rm -f "$cfgfile"; exit 1)
  11578. case $xsi_shell in
  11579. yes)
  11580. cat << \_LT_EOF >> "$cfgfile"
  11581. # func_dirname file append nondir_replacement
  11582. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11583. # otherwise set result to NONDIR_REPLACEMENT.
  11584. func_dirname ()
  11585. {
  11586. case ${1} in
  11587. */*) func_dirname_result="${1%/*}${2}" ;;
  11588. * ) func_dirname_result="${3}" ;;
  11589. esac
  11590. }
  11591. # func_basename file
  11592. func_basename ()
  11593. {
  11594. func_basename_result="${1##*/}"
  11595. }
  11596. # func_dirname_and_basename file append nondir_replacement
  11597. # perform func_basename and func_dirname in a single function
  11598. # call:
  11599. # dirname: Compute the dirname of FILE. If nonempty,
  11600. # add APPEND to the result, otherwise set result
  11601. # to NONDIR_REPLACEMENT.
  11602. # value returned in "$func_dirname_result"
  11603. # basename: Compute filename of FILE.
  11604. # value retuned in "$func_basename_result"
  11605. # Implementation must be kept synchronized with func_dirname
  11606. # and func_basename. For efficiency, we do not delegate to
  11607. # those functions but instead duplicate the functionality here.
  11608. func_dirname_and_basename ()
  11609. {
  11610. case ${1} in
  11611. */*) func_dirname_result="${1%/*}${2}" ;;
  11612. * ) func_dirname_result="${3}" ;;
  11613. esac
  11614. func_basename_result="${1##*/}"
  11615. }
  11616. # func_stripname prefix suffix name
  11617. # strip PREFIX and SUFFIX off of NAME.
  11618. # PREFIX and SUFFIX must not contain globbing or regex special
  11619. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11620. # dot (in which case that matches only a dot).
  11621. func_stripname ()
  11622. {
  11623. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11624. # positional parameters, so assign one to ordinary parameter first.
  11625. func_stripname_result=${3}
  11626. func_stripname_result=${func_stripname_result#"${1}"}
  11627. func_stripname_result=${func_stripname_result%"${2}"}
  11628. }
  11629. # func_opt_split
  11630. func_opt_split ()
  11631. {
  11632. func_opt_split_opt=${1%%=*}
  11633. func_opt_split_arg=${1#*=}
  11634. }
  11635. # func_lo2o object
  11636. func_lo2o ()
  11637. {
  11638. case ${1} in
  11639. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11640. *) func_lo2o_result=${1} ;;
  11641. esac
  11642. }
  11643. # func_xform libobj-or-source
  11644. func_xform ()
  11645. {
  11646. func_xform_result=${1%.*}.lo
  11647. }
  11648. # func_arith arithmetic-term...
  11649. func_arith ()
  11650. {
  11651. func_arith_result=$(( $* ))
  11652. }
  11653. # func_len string
  11654. # STRING may not start with a hyphen.
  11655. func_len ()
  11656. {
  11657. func_len_result=${#1}
  11658. }
  11659. _LT_EOF
  11660. ;;
  11661. *) # Bourne compatible functions.
  11662. cat << \_LT_EOF >> "$cfgfile"
  11663. # func_dirname file append nondir_replacement
  11664. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11665. # otherwise set result to NONDIR_REPLACEMENT.
  11666. func_dirname ()
  11667. {
  11668. # Extract subdirectory from the argument.
  11669. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  11670. if test "X$func_dirname_result" = "X${1}"; then
  11671. func_dirname_result="${3}"
  11672. else
  11673. func_dirname_result="$func_dirname_result${2}"
  11674. fi
  11675. }
  11676. # func_basename file
  11677. func_basename ()
  11678. {
  11679. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  11680. }
  11681. # func_stripname prefix suffix name
  11682. # strip PREFIX and SUFFIX off of NAME.
  11683. # PREFIX and SUFFIX must not contain globbing or regex special
  11684. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11685. # dot (in which case that matches only a dot).
  11686. # func_strip_suffix prefix name
  11687. func_stripname ()
  11688. {
  11689. case ${2} in
  11690. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11691. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11692. esac
  11693. }
  11694. # sed scripts:
  11695. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11696. my_sed_long_arg='1s/^-[^=]*=//'
  11697. # func_opt_split
  11698. func_opt_split ()
  11699. {
  11700. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  11701. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  11702. }
  11703. # func_lo2o object
  11704. func_lo2o ()
  11705. {
  11706. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  11707. }
  11708. # func_xform libobj-or-source
  11709. func_xform ()
  11710. {
  11711. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  11712. }
  11713. # func_arith arithmetic-term...
  11714. func_arith ()
  11715. {
  11716. func_arith_result=`expr "$@"`
  11717. }
  11718. # func_len string
  11719. # STRING may not start with a hyphen.
  11720. func_len ()
  11721. {
  11722. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11723. }
  11724. _LT_EOF
  11725. esac
  11726. case $lt_shell_append in
  11727. yes)
  11728. cat << \_LT_EOF >> "$cfgfile"
  11729. # func_append var value
  11730. # Append VALUE to the end of shell variable VAR.
  11731. func_append ()
  11732. {
  11733. eval "$1+=\$2"
  11734. }
  11735. _LT_EOF
  11736. ;;
  11737. *)
  11738. cat << \_LT_EOF >> "$cfgfile"
  11739. # func_append var value
  11740. # Append VALUE to the end of shell variable VAR.
  11741. func_append ()
  11742. {
  11743. eval "$1=\$$1\$2"
  11744. }
  11745. _LT_EOF
  11746. ;;
  11747. esac
  11748. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11749. || (rm -f "$cfgfile"; exit 1)
  11750. mv -f "$cfgfile" "$ofile" ||
  11751. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11752. chmod +x "$ofile"
  11753. ;;
  11754. esac
  11755. done # for ac_tag
  11756. as_fn_exit 0
  11757. _ACEOF
  11758. ac_clean_files=$ac_clean_files_save
  11759. test $ac_write_fail = 0 ||
  11760. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11761. # configure is writing to config.log, and then calls config.status.
  11762. # config.status does its own redirection, appending to config.log.
  11763. # Unfortunately, on DOS this fails, as config.log is still kept open
  11764. # by configure, so config.status won't be able to write to it; its
  11765. # output is simply discarded. So we exec the FD to /dev/null,
  11766. # effectively closing config.log, so it can be properly (re)opened and
  11767. # appended to by config.status. When coming back to configure, we
  11768. # need to make the FD available again.
  11769. if test "$no_create" != yes; then
  11770. ac_cs_success=:
  11771. ac_config_status_args=
  11772. test "$silent" = yes &&
  11773. ac_config_status_args="$ac_config_status_args --quiet"
  11774. exec 5>/dev/null
  11775. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11776. exec 5>>config.log
  11777. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11778. # would make configure fail if this is the last instruction.
  11779. $ac_cs_success || as_fn_exit 1
  11780. fi
  11781. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11783. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11784. fi