output.0 481 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.69 for file 5.22.
  4. @%:@
  5. @%:@ Report bugs to <christos@astron.com>.
  6. @%:@
  7. @%:@
  8. @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. @%:@
  10. @%:@
  11. @%:@ This configure script is free software; the Free Software Foundation
  12. @%:@ gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in @%:@(
  27. *posix*) :
  28. set -o posix ;; @%:@(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in @%:@(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in @%:@((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in @%:@ ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in @%:@(
  160. *posix*) :
  161. set -o posix ;; @%:@(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in @%:@(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in @%:@ ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: christos@astron.com about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. @%:@ as_fn_unset VAR
  277. @%:@ ---------------
  278. @%:@ Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. @%:@ as_fn_set_status STATUS
  285. @%:@ -----------------------
  286. @%:@ Set @S|@? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } @%:@ as_fn_set_status
  291. @%:@ as_fn_exit STATUS
  292. @%:@ -----------------
  293. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } @%:@ as_fn_exit
  300. @%:@ as_fn_mkdir_p
  301. @%:@ -------------
  302. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } @%:@ as_fn_mkdir_p
  344. @%:@ as_fn_executable_p FILE
  345. @%:@ -----------------------
  346. @%:@ Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } @%:@ as_fn_executable_p
  351. @%:@ as_fn_append VAR VALUE
  352. @%:@ ----------------------
  353. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  354. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  355. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  356. @%:@ implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. @%:@ as_fn_arith ARG...
  369. @%:@ ------------------
  370. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  371. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  372. @%:@ must be portable across @S|@(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. @%:@ ----------------------------------------
  386. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. @%:@ script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } @%:@ as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in @%:@(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIB@&t@OBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='file'
  542. PACKAGE_TARNAME='file'
  543. PACKAGE_VERSION='5.22'
  544. PACKAGE_STRING='file 5.22'
  545. PACKAGE_BUGREPORT='christos@astron.com'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_header_list=
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. IS_CROSS_COMPILE_FALSE
  587. IS_CROSS_COMPILE_TRUE
  588. LIB@&t@OBJS
  589. HAVE_VISIBILITY
  590. CFLAG_VISIBILITY
  591. OTOOL64
  592. OTOOL
  593. LIPO
  594. NMEDIT
  595. DSYMUTIL
  596. MANIFEST_TOOL
  597. RANLIB
  598. ac_ct_AR
  599. AR
  600. DLLTOOL
  601. OBJDUMP
  602. NM
  603. ac_ct_DUMPBIN
  604. DUMPBIN
  605. LD
  606. FGREP
  607. SED
  608. LIBTOOL
  609. LN_S
  610. EGREP
  611. GREP
  612. CPP
  613. am__fastdepCC_FALSE
  614. am__fastdepCC_TRUE
  615. CCDEPMODE
  616. am__nodep
  617. AMDEPBACKSLASH
  618. AMDEP_FALSE
  619. AMDEP_TRUE
  620. am__quote
  621. am__include
  622. DEPDIR
  623. OBJEXT
  624. EXEEXT
  625. ac_ct_CC
  626. CPPFLAGS
  627. LDFLAGS
  628. CFLAGS
  629. CC
  630. WARNINGS
  631. FSECT5_FALSE
  632. FSECT5_TRUE
  633. fsect
  634. pkgdatadir
  635. MINGW_FALSE
  636. MINGW_TRUE
  637. MINGW
  638. host_os
  639. host_vendor
  640. host_cpu
  641. host
  642. build_os
  643. build_vendor
  644. build_cpu
  645. build
  646. AM_BACKSLASH
  647. AM_DEFAULT_VERBOSITY
  648. AM_DEFAULT_V
  649. AM_V
  650. am__untar
  651. am__tar
  652. AMTAR
  653. am__leading_dot
  654. SET_MAKE
  655. AWK
  656. mkdir_p
  657. MKDIR_P
  658. INSTALL_STRIP_PROGRAM
  659. STRIP
  660. install_sh
  661. MAKEINFO
  662. AUTOHEADER
  663. AUTOMAKE
  664. AUTOCONF
  665. ACLOCAL
  666. VERSION
  667. PACKAGE
  668. CYGPATH_W
  669. am__isrc
  670. INSTALL_DATA
  671. INSTALL_SCRIPT
  672. INSTALL_PROGRAM
  673. target_alias
  674. host_alias
  675. build_alias
  676. LIBS
  677. ECHO_T
  678. ECHO_N
  679. ECHO_C
  680. DEFS
  681. mandir
  682. localedir
  683. libdir
  684. psdir
  685. pdfdir
  686. dvidir
  687. htmldir
  688. infodir
  689. docdir
  690. oldincludedir
  691. includedir
  692. localstatedir
  693. sharedstatedir
  694. sysconfdir
  695. datadir
  696. datarootdir
  697. libexecdir
  698. sbindir
  699. bindir
  700. program_transform_name
  701. prefix
  702. exec_prefix
  703. PACKAGE_URL
  704. PACKAGE_BUGREPORT
  705. PACKAGE_STRING
  706. PACKAGE_VERSION
  707. PACKAGE_TARNAME
  708. PACKAGE_NAME
  709. PATH_SEPARATOR
  710. SHELL'
  711. ac_subst_files=''
  712. ac_user_opts='
  713. enable_option_checking
  714. enable_silent_rules
  715. enable_elf
  716. enable_elf_core
  717. enable_fsect_man5
  718. enable_dependency_tracking
  719. enable_static
  720. with_pic
  721. enable_shared
  722. enable_fast_install
  723. with_gnu_ld
  724. with_sysroot
  725. enable_libtool_lock
  726. enable_largefile
  727. enable_warnings
  728. '
  729. ac_precious_vars='build_alias
  730. host_alias
  731. target_alias
  732. CC
  733. CFLAGS
  734. LDFLAGS
  735. LIBS
  736. CPPFLAGS
  737. CPP'
  738. # Initialize some variables set by options.
  739. ac_init_help=
  740. ac_init_version=false
  741. ac_unrecognized_opts=
  742. ac_unrecognized_sep=
  743. # The variables have the same names as the options, with
  744. # dashes changed to underlines.
  745. cache_file=/dev/null
  746. exec_prefix=NONE
  747. no_create=
  748. no_recursion=
  749. prefix=NONE
  750. program_prefix=NONE
  751. program_suffix=NONE
  752. program_transform_name=s,x,x,
  753. silent=
  754. site=
  755. srcdir=
  756. verbose=
  757. x_includes=NONE
  758. x_libraries=NONE
  759. # Installation directory options.
  760. # These are left unexpanded so users can "make install exec_prefix=/foo"
  761. # and all the variables that are supposed to be based on exec_prefix
  762. # by default will actually change.
  763. # Use braces instead of parens because sh, perl, etc. also accept them.
  764. # (The list follows the same order as the GNU Coding Standards.)
  765. bindir='${exec_prefix}/bin'
  766. sbindir='${exec_prefix}/sbin'
  767. libexecdir='${exec_prefix}/libexec'
  768. datarootdir='${prefix}/share'
  769. datadir='${datarootdir}'
  770. sysconfdir='${prefix}/etc'
  771. sharedstatedir='${prefix}/com'
  772. localstatedir='${prefix}/var'
  773. includedir='${prefix}/include'
  774. oldincludedir='/usr/include'
  775. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  776. infodir='${datarootdir}/info'
  777. htmldir='${docdir}'
  778. dvidir='${docdir}'
  779. pdfdir='${docdir}'
  780. psdir='${docdir}'
  781. libdir='${exec_prefix}/lib'
  782. localedir='${datarootdir}/locale'
  783. mandir='${datarootdir}/man'
  784. ac_prev=
  785. ac_dashdash=
  786. for ac_option
  787. do
  788. # If the previous option needs an argument, assign it.
  789. if test -n "$ac_prev"; then
  790. eval $ac_prev=\$ac_option
  791. ac_prev=
  792. continue
  793. fi
  794. case $ac_option in
  795. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  796. *=) ac_optarg= ;;
  797. *) ac_optarg=yes ;;
  798. esac
  799. # Accept the important Cygnus configure options, so we can diagnose typos.
  800. case $ac_dashdash$ac_option in
  801. --)
  802. ac_dashdash=yes ;;
  803. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  804. ac_prev=bindir ;;
  805. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  806. bindir=$ac_optarg ;;
  807. -build | --build | --buil | --bui | --bu)
  808. ac_prev=build_alias ;;
  809. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  810. build_alias=$ac_optarg ;;
  811. -cache-file | --cache-file | --cache-fil | --cache-fi \
  812. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  813. ac_prev=cache_file ;;
  814. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  815. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  816. cache_file=$ac_optarg ;;
  817. --config-cache | -C)
  818. cache_file=config.cache ;;
  819. -datadir | --datadir | --datadi | --datad)
  820. ac_prev=datadir ;;
  821. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  822. datadir=$ac_optarg ;;
  823. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  824. | --dataroo | --dataro | --datar)
  825. ac_prev=datarootdir ;;
  826. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  827. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  828. datarootdir=$ac_optarg ;;
  829. -disable-* | --disable-*)
  830. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  831. # Reject names that are not valid shell variable names.
  832. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  833. as_fn_error $? "invalid feature name: $ac_useropt"
  834. ac_useropt_orig=$ac_useropt
  835. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  836. case $ac_user_opts in
  837. *"
  838. "enable_$ac_useropt"
  839. "*) ;;
  840. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  841. ac_unrecognized_sep=', ';;
  842. esac
  843. eval enable_$ac_useropt=no ;;
  844. -docdir | --docdir | --docdi | --doc | --do)
  845. ac_prev=docdir ;;
  846. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  847. docdir=$ac_optarg ;;
  848. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  849. ac_prev=dvidir ;;
  850. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  851. dvidir=$ac_optarg ;;
  852. -enable-* | --enable-*)
  853. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  854. # Reject names that are not valid shell variable names.
  855. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  856. as_fn_error $? "invalid feature name: $ac_useropt"
  857. ac_useropt_orig=$ac_useropt
  858. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  859. case $ac_user_opts in
  860. *"
  861. "enable_$ac_useropt"
  862. "*) ;;
  863. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  864. ac_unrecognized_sep=', ';;
  865. esac
  866. eval enable_$ac_useropt=\$ac_optarg ;;
  867. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  868. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  869. | --exec | --exe | --ex)
  870. ac_prev=exec_prefix ;;
  871. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  872. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  873. | --exec=* | --exe=* | --ex=*)
  874. exec_prefix=$ac_optarg ;;
  875. -gas | --gas | --ga | --g)
  876. # Obsolete; use --with-gas.
  877. with_gas=yes ;;
  878. -help | --help | --hel | --he | -h)
  879. ac_init_help=long ;;
  880. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  881. ac_init_help=recursive ;;
  882. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  883. ac_init_help=short ;;
  884. -host | --host | --hos | --ho)
  885. ac_prev=host_alias ;;
  886. -host=* | --host=* | --hos=* | --ho=*)
  887. host_alias=$ac_optarg ;;
  888. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  889. ac_prev=htmldir ;;
  890. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  891. | --ht=*)
  892. htmldir=$ac_optarg ;;
  893. -includedir | --includedir | --includedi | --included | --include \
  894. | --includ | --inclu | --incl | --inc)
  895. ac_prev=includedir ;;
  896. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  897. | --includ=* | --inclu=* | --incl=* | --inc=*)
  898. includedir=$ac_optarg ;;
  899. -infodir | --infodir | --infodi | --infod | --info | --inf)
  900. ac_prev=infodir ;;
  901. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  902. infodir=$ac_optarg ;;
  903. -libdir | --libdir | --libdi | --libd)
  904. ac_prev=libdir ;;
  905. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  906. libdir=$ac_optarg ;;
  907. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  908. | --libexe | --libex | --libe)
  909. ac_prev=libexecdir ;;
  910. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  911. | --libexe=* | --libex=* | --libe=*)
  912. libexecdir=$ac_optarg ;;
  913. -localedir | --localedir | --localedi | --localed | --locale)
  914. ac_prev=localedir ;;
  915. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  916. localedir=$ac_optarg ;;
  917. -localstatedir | --localstatedir | --localstatedi | --localstated \
  918. | --localstate | --localstat | --localsta | --localst | --locals)
  919. ac_prev=localstatedir ;;
  920. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  921. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  922. localstatedir=$ac_optarg ;;
  923. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  924. ac_prev=mandir ;;
  925. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  926. mandir=$ac_optarg ;;
  927. -nfp | --nfp | --nf)
  928. # Obsolete; use --without-fp.
  929. with_fp=no ;;
  930. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  931. | --no-cr | --no-c | -n)
  932. no_create=yes ;;
  933. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  934. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  935. no_recursion=yes ;;
  936. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  937. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  938. | --oldin | --oldi | --old | --ol | --o)
  939. ac_prev=oldincludedir ;;
  940. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  941. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  942. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  943. oldincludedir=$ac_optarg ;;
  944. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  945. ac_prev=prefix ;;
  946. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  947. prefix=$ac_optarg ;;
  948. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  949. | --program-pre | --program-pr | --program-p)
  950. ac_prev=program_prefix ;;
  951. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  952. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  953. program_prefix=$ac_optarg ;;
  954. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  955. | --program-suf | --program-su | --program-s)
  956. ac_prev=program_suffix ;;
  957. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  958. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  959. program_suffix=$ac_optarg ;;
  960. -program-transform-name | --program-transform-name \
  961. | --program-transform-nam | --program-transform-na \
  962. | --program-transform-n | --program-transform- \
  963. | --program-transform | --program-transfor \
  964. | --program-transfo | --program-transf \
  965. | --program-trans | --program-tran \
  966. | --progr-tra | --program-tr | --program-t)
  967. ac_prev=program_transform_name ;;
  968. -program-transform-name=* | --program-transform-name=* \
  969. | --program-transform-nam=* | --program-transform-na=* \
  970. | --program-transform-n=* | --program-transform-=* \
  971. | --program-transform=* | --program-transfor=* \
  972. | --program-transfo=* | --program-transf=* \
  973. | --program-trans=* | --program-tran=* \
  974. | --progr-tra=* | --program-tr=* | --program-t=*)
  975. program_transform_name=$ac_optarg ;;
  976. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  977. ac_prev=pdfdir ;;
  978. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  979. pdfdir=$ac_optarg ;;
  980. -psdir | --psdir | --psdi | --psd | --ps)
  981. ac_prev=psdir ;;
  982. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  983. psdir=$ac_optarg ;;
  984. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  985. | -silent | --silent | --silen | --sile | --sil)
  986. silent=yes ;;
  987. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  988. ac_prev=sbindir ;;
  989. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  990. | --sbi=* | --sb=*)
  991. sbindir=$ac_optarg ;;
  992. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  993. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  994. | --sharedst | --shareds | --shared | --share | --shar \
  995. | --sha | --sh)
  996. ac_prev=sharedstatedir ;;
  997. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  998. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  999. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1000. | --sha=* | --sh=*)
  1001. sharedstatedir=$ac_optarg ;;
  1002. -site | --site | --sit)
  1003. ac_prev=site ;;
  1004. -site=* | --site=* | --sit=*)
  1005. site=$ac_optarg ;;
  1006. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1007. ac_prev=srcdir ;;
  1008. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1009. srcdir=$ac_optarg ;;
  1010. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1011. | --syscon | --sysco | --sysc | --sys | --sy)
  1012. ac_prev=sysconfdir ;;
  1013. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1014. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1015. sysconfdir=$ac_optarg ;;
  1016. -target | --target | --targe | --targ | --tar | --ta | --t)
  1017. ac_prev=target_alias ;;
  1018. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1019. target_alias=$ac_optarg ;;
  1020. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1021. verbose=yes ;;
  1022. -version | --version | --versio | --versi | --vers | -V)
  1023. ac_init_version=: ;;
  1024. -with-* | --with-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid package name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "with_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval with_$ac_useropt=\$ac_optarg ;;
  1039. -without-* | --without-*)
  1040. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1041. # Reject names that are not valid shell variable names.
  1042. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. as_fn_error $? "invalid package name: $ac_useropt"
  1044. ac_useropt_orig=$ac_useropt
  1045. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. case $ac_user_opts in
  1047. *"
  1048. "with_$ac_useropt"
  1049. "*) ;;
  1050. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1051. ac_unrecognized_sep=', ';;
  1052. esac
  1053. eval with_$ac_useropt=no ;;
  1054. --x)
  1055. # Obsolete; use --with-x.
  1056. with_x=yes ;;
  1057. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1058. | --x-incl | --x-inc | --x-in | --x-i)
  1059. ac_prev=x_includes ;;
  1060. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1061. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1062. x_includes=$ac_optarg ;;
  1063. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1064. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1065. ac_prev=x_libraries ;;
  1066. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1067. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1068. x_libraries=$ac_optarg ;;
  1069. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1070. Try \`$0 --help' for more information"
  1071. ;;
  1072. *=*)
  1073. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1074. # Reject names that are not valid shell variable names.
  1075. case $ac_envvar in #(
  1076. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1077. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1078. esac
  1079. eval $ac_envvar=\$ac_optarg
  1080. export $ac_envvar ;;
  1081. *)
  1082. # FIXME: should be removed in autoconf 3.0.
  1083. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1084. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1085. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1086. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1087. ;;
  1088. esac
  1089. done
  1090. if test -n "$ac_prev"; then
  1091. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1092. as_fn_error $? "missing argument to $ac_option"
  1093. fi
  1094. if test -n "$ac_unrecognized_opts"; then
  1095. case $enable_option_checking in
  1096. no) ;;
  1097. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1098. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1099. esac
  1100. fi
  1101. # Check all directory arguments for consistency.
  1102. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1103. datadir sysconfdir sharedstatedir localstatedir includedir \
  1104. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1105. libdir localedir mandir
  1106. do
  1107. eval ac_val=\$$ac_var
  1108. # Remove trailing slashes.
  1109. case $ac_val in
  1110. */ )
  1111. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1112. eval $ac_var=\$ac_val;;
  1113. esac
  1114. # Be sure to have absolute directory names.
  1115. case $ac_val in
  1116. [\\/$]* | ?:[\\/]* ) continue;;
  1117. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1118. esac
  1119. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1120. done
  1121. # There might be people who depend on the old broken behavior: `$host'
  1122. # used to hold the argument of --host etc.
  1123. # FIXME: To remove some day.
  1124. build=$build_alias
  1125. host=$host_alias
  1126. target=$target_alias
  1127. # FIXME: To remove some day.
  1128. if test "x$host_alias" != x; then
  1129. if test "x$build_alias" = x; then
  1130. cross_compiling=maybe
  1131. elif test "x$build_alias" != "x$host_alias"; then
  1132. cross_compiling=yes
  1133. fi
  1134. fi
  1135. ac_tool_prefix=
  1136. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1137. test "$silent" = yes && exec 6>/dev/null
  1138. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1139. ac_ls_di=`ls -di .` &&
  1140. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1141. as_fn_error $? "working directory cannot be determined"
  1142. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1143. as_fn_error $? "pwd does not report name of working directory"
  1144. # Find the source files, if location was not specified.
  1145. if test -z "$srcdir"; then
  1146. ac_srcdir_defaulted=yes
  1147. # Try the directory containing this script, then the parent directory.
  1148. ac_confdir=`$as_dirname -- "$as_myself" ||
  1149. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1150. X"$as_myself" : 'X\(//\)[^/]' \| \
  1151. X"$as_myself" : 'X\(//\)$' \| \
  1152. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1153. $as_echo X"$as_myself" |
  1154. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\/\)[^/].*/{
  1159. s//\1/
  1160. q
  1161. }
  1162. /^X\(\/\/\)$/{
  1163. s//\1/
  1164. q
  1165. }
  1166. /^X\(\/\).*/{
  1167. s//\1/
  1168. q
  1169. }
  1170. s/.*/./; q'`
  1171. srcdir=$ac_confdir
  1172. if test ! -r "$srcdir/$ac_unique_file"; then
  1173. srcdir=..
  1174. fi
  1175. else
  1176. ac_srcdir_defaulted=no
  1177. fi
  1178. if test ! -r "$srcdir/$ac_unique_file"; then
  1179. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1180. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1181. fi
  1182. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1183. ac_abs_confdir=`(
  1184. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1185. pwd)`
  1186. # When building in place, set srcdir=.
  1187. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1188. srcdir=.
  1189. fi
  1190. # Remove unnecessary trailing slashes from srcdir.
  1191. # Double slashes in file names in object file debugging info
  1192. # mess up M-x gdb in Emacs.
  1193. case $srcdir in
  1194. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1195. esac
  1196. for ac_var in $ac_precious_vars; do
  1197. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1198. eval ac_env_${ac_var}_value=\$${ac_var}
  1199. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1201. done
  1202. #
  1203. # Report the --help message.
  1204. #
  1205. if test "$ac_init_help" = "long"; then
  1206. # Omit some internal or obsolete options to make the list less imposing.
  1207. # This message is too long to be a string in the A/UX 3.1 sh.
  1208. cat <<_ACEOF
  1209. \`configure' configures file 5.22 to adapt to many kinds of systems.
  1210. Usage: $0 [OPTION]... [VAR=VALUE]...
  1211. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1212. VAR=VALUE. See below for descriptions of some of the useful variables.
  1213. Defaults for the options are specified in brackets.
  1214. Configuration:
  1215. -h, --help display this help and exit
  1216. --help=short display options specific to this package
  1217. --help=recursive display the short help of all the included packages
  1218. -V, --version display version information and exit
  1219. -q, --quiet, --silent do not print \`checking ...' messages
  1220. --cache-file=FILE cache test results in FILE [disabled]
  1221. -C, --config-cache alias for \`--cache-file=config.cache'
  1222. -n, --no-create do not create output files
  1223. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1224. Installation directories:
  1225. --prefix=PREFIX install architecture-independent files in PREFIX
  1226. @<:@@S|@ac_default_prefix@:>@
  1227. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1228. @<:@PREFIX@:>@
  1229. By default, \`make install' will install all the files in
  1230. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1231. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1232. for instance \`--prefix=\$HOME'.
  1233. For better control, use the options below.
  1234. Fine tuning of the installation directories:
  1235. --bindir=DIR user executables [EPREFIX/bin]
  1236. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1237. --libexecdir=DIR program executables [EPREFIX/libexec]
  1238. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1239. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1240. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1241. --libdir=DIR object code libraries [EPREFIX/lib]
  1242. --includedir=DIR C header files [PREFIX/include]
  1243. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1244. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1245. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1246. --infodir=DIR info documentation [DATAROOTDIR/info]
  1247. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1248. --mandir=DIR man documentation [DATAROOTDIR/man]
  1249. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/file@:>@
  1250. --htmldir=DIR html documentation [DOCDIR]
  1251. --dvidir=DIR dvi documentation [DOCDIR]
  1252. --pdfdir=DIR pdf documentation [DOCDIR]
  1253. --psdir=DIR ps documentation [DOCDIR]
  1254. _ACEOF
  1255. cat <<\_ACEOF
  1256. Program names:
  1257. --program-prefix=PREFIX prepend PREFIX to installed program names
  1258. --program-suffix=SUFFIX append SUFFIX to installed program names
  1259. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1260. System types:
  1261. --build=BUILD configure for building on BUILD [guessed]
  1262. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1263. _ACEOF
  1264. fi
  1265. if test -n "$ac_init_help"; then
  1266. case $ac_init_help in
  1267. short | recursive ) echo "Configuration of file 5.22:";;
  1268. esac
  1269. cat <<\_ACEOF
  1270. Optional Features:
  1271. --disable-option-checking ignore unrecognized --enable/--with options
  1272. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1273. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1274. --enable-silent-rules less verbose build output (undo: "make V=1")
  1275. --disable-silent-rules verbose build output (undo: "make V=0")
  1276. --disable-elf disable builtin ELF support
  1277. --disable-elf-core disable ELF core file support
  1278. --enable-fsect-man5 enable file formats in man section 5
  1279. --enable-dependency-tracking
  1280. do not reject slow dependency extractors
  1281. --disable-dependency-tracking
  1282. speeds up one-time build
  1283. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
  1284. --enable-shared@<:@=PKGS@:>@ build shared 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. --disable-largefile omit support for large files
  1289. --disable-warnings disable compiler warnings
  1290. Optional Packages:
  1291. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1292. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1293. --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
  1294. both@:>@
  1295. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1296. --with-sysroot=DIR Search for dependent libraries within DIR
  1297. (or the compiler's sysroot if not specified).
  1298. Some influential environment variables:
  1299. CC C compiler command
  1300. CFLAGS C compiler flags
  1301. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1302. nonstandard directory <lib dir>
  1303. LIBS libraries to pass to the linker, e.g. -l<library>
  1304. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1305. you have headers in a nonstandard directory <include dir>
  1306. CPP C preprocessor
  1307. Use these variables to override the choices made by `configure' or to help
  1308. it to find libraries and programs with nonstandard names/locations.
  1309. Report bugs to <christos@astron.com>.
  1310. _ACEOF
  1311. ac_status=$?
  1312. fi
  1313. if test "$ac_init_help" = "recursive"; then
  1314. # If there are subdirs, report their specific --help.
  1315. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1316. test -d "$ac_dir" ||
  1317. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1318. continue
  1319. ac_builddir=.
  1320. case "$ac_dir" in
  1321. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1322. *)
  1323. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1324. # A ".." for each directory in $ac_dir_suffix.
  1325. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1326. case $ac_top_builddir_sub in
  1327. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1328. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1329. esac ;;
  1330. esac
  1331. ac_abs_top_builddir=$ac_pwd
  1332. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1333. # for backward compatibility:
  1334. ac_top_builddir=$ac_top_build_prefix
  1335. case $srcdir in
  1336. .) # We are building in place.
  1337. ac_srcdir=.
  1338. ac_top_srcdir=$ac_top_builddir_sub
  1339. ac_abs_top_srcdir=$ac_pwd ;;
  1340. [\\/]* | ?:[\\/]* ) # Absolute name.
  1341. ac_srcdir=$srcdir$ac_dir_suffix;
  1342. ac_top_srcdir=$srcdir
  1343. ac_abs_top_srcdir=$srcdir ;;
  1344. *) # Relative name.
  1345. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1346. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1347. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1348. esac
  1349. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1350. cd "$ac_dir" || { ac_status=$?; continue; }
  1351. # Check for guested configure.
  1352. if test -f "$ac_srcdir/configure.gnu"; then
  1353. echo &&
  1354. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1355. elif test -f "$ac_srcdir/configure"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure" --help=recursive
  1358. else
  1359. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1360. fi || ac_status=$?
  1361. cd "$ac_pwd" || { ac_status=$?; break; }
  1362. done
  1363. fi
  1364. test -n "$ac_init_help" && exit $ac_status
  1365. if $ac_init_version; then
  1366. cat <<\_ACEOF
  1367. file configure 5.22
  1368. generated by GNU Autoconf 2.69
  1369. Copyright (C) 2012 Free Software Foundation, Inc.
  1370. This configure script is free software; the Free Software Foundation
  1371. gives unlimited permission to copy, distribute and modify it.
  1372. _ACEOF
  1373. exit
  1374. fi
  1375. ## ------------------------ ##
  1376. ## Autoconf initialization. ##
  1377. ## ------------------------ ##
  1378. @%:@ ac_fn_c_try_compile LINENO
  1379. @%:@ --------------------------
  1380. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1381. ac_fn_c_try_compile ()
  1382. {
  1383. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1384. rm -f conftest.$ac_objext
  1385. if { { ac_try="$ac_compile"
  1386. case "(($ac_try" in
  1387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1388. *) ac_try_echo=$ac_try;;
  1389. esac
  1390. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1391. $as_echo "$ac_try_echo"; } >&5
  1392. (eval "$ac_compile") 2>conftest.err
  1393. ac_status=$?
  1394. if test -s conftest.err; then
  1395. grep -v '^ *+' conftest.err >conftest.er1
  1396. cat conftest.er1 >&5
  1397. mv -f conftest.er1 conftest.err
  1398. fi
  1399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1400. test $ac_status = 0; } && {
  1401. test -z "$ac_c_werror_flag" ||
  1402. test ! -s conftest.err
  1403. } && test -s conftest.$ac_objext; then :
  1404. ac_retval=0
  1405. else
  1406. $as_echo "$as_me: failed program was:" >&5
  1407. sed 's/^/| /' conftest.$ac_ext >&5
  1408. ac_retval=1
  1409. fi
  1410. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1411. as_fn_set_status $ac_retval
  1412. } @%:@ ac_fn_c_try_compile
  1413. @%:@ ac_fn_c_try_cpp LINENO
  1414. @%:@ ----------------------
  1415. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1416. ac_fn_c_try_cpp ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1420. case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1427. ac_status=$?
  1428. if test -s conftest.err; then
  1429. grep -v '^ *+' conftest.err >conftest.er1
  1430. cat conftest.er1 >&5
  1431. mv -f conftest.er1 conftest.err
  1432. fi
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; } > conftest.i && {
  1435. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1436. test ! -s conftest.err
  1437. }; then :
  1438. ac_retval=0
  1439. else
  1440. $as_echo "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442. ac_retval=1
  1443. fi
  1444. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1445. as_fn_set_status $ac_retval
  1446. } @%:@ ac_fn_c_try_cpp
  1447. @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1448. @%:@ -------------------------------------------------------
  1449. @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1450. @%:@ the include files in INCLUDES and setting the cache variable VAR
  1451. @%:@ accordingly.
  1452. ac_fn_c_check_header_mongrel ()
  1453. {
  1454. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1455. if eval \${$3+:} false; then :
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1457. $as_echo_n "checking for $2... " >&6; }
  1458. if eval \${$3+:} false; then :
  1459. $as_echo_n "(cached) " >&6
  1460. fi
  1461. eval ac_res=\$$3
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1463. $as_echo "$ac_res" >&6; }
  1464. else
  1465. # Is the header compilable?
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1467. $as_echo_n "checking $2 usability... " >&6; }
  1468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1469. /* end confdefs.h. */
  1470. $4
  1471. @%:@include <$2>
  1472. _ACEOF
  1473. if ac_fn_c_try_compile "$LINENO"; then :
  1474. ac_header_compiler=yes
  1475. else
  1476. ac_header_compiler=no
  1477. fi
  1478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1480. $as_echo "$ac_header_compiler" >&6; }
  1481. # Is the header present?
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1483. $as_echo_n "checking $2 presence... " >&6; }
  1484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1485. /* end confdefs.h. */
  1486. @%:@include <$2>
  1487. _ACEOF
  1488. if ac_fn_c_try_cpp "$LINENO"; then :
  1489. ac_header_preproc=yes
  1490. else
  1491. ac_header_preproc=no
  1492. fi
  1493. rm -f conftest.err conftest.i conftest.$ac_ext
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1495. $as_echo "$ac_header_preproc" >&6; }
  1496. # So? What about this header?
  1497. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1498. yes:no: )
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1500. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1502. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1503. ;;
  1504. no:yes:* )
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1506. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1508. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1510. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1512. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1514. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1515. ( $as_echo "## ---------------------------------- ##
  1516. ## Report this to christos@astron.com ##
  1517. ## ---------------------------------- ##"
  1518. ) | sed "s/^/$as_me: WARNING: /" >&2
  1519. ;;
  1520. esac
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1522. $as_echo_n "checking for $2... " >&6; }
  1523. if eval \${$3+:} false; then :
  1524. $as_echo_n "(cached) " >&6
  1525. else
  1526. eval "$3=\$ac_header_compiler"
  1527. fi
  1528. eval ac_res=\$$3
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1530. $as_echo "$ac_res" >&6; }
  1531. fi
  1532. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1533. } @%:@ ac_fn_c_check_header_mongrel
  1534. @%:@ ac_fn_c_try_run LINENO
  1535. @%:@ ----------------------
  1536. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1537. @%:@ that executables *can* be run.
  1538. ac_fn_c_try_run ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. if { { ac_try="$ac_link"
  1542. case "(($ac_try" in
  1543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1544. *) ac_try_echo=$ac_try;;
  1545. esac
  1546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1547. $as_echo "$ac_try_echo"; } >&5
  1548. (eval "$ac_link") 2>&5
  1549. ac_status=$?
  1550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1551. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1552. { { case "(($ac_try" in
  1553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1554. *) ac_try_echo=$ac_try;;
  1555. esac
  1556. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1557. $as_echo "$ac_try_echo"; } >&5
  1558. (eval "$ac_try") 2>&5
  1559. ac_status=$?
  1560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1561. test $ac_status = 0; }; }; then :
  1562. ac_retval=0
  1563. else
  1564. $as_echo "$as_me: program exited with status $ac_status" >&5
  1565. $as_echo "$as_me: failed program was:" >&5
  1566. sed 's/^/| /' conftest.$ac_ext >&5
  1567. ac_retval=$ac_status
  1568. fi
  1569. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1570. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1571. as_fn_set_status $ac_retval
  1572. } @%:@ ac_fn_c_try_run
  1573. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1574. @%:@ -------------------------------------------------------
  1575. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1576. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1577. ac_fn_c_check_header_compile ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1581. $as_echo_n "checking for $2... " >&6; }
  1582. if eval \${$3+:} false; then :
  1583. $as_echo_n "(cached) " >&6
  1584. else
  1585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1586. /* end confdefs.h. */
  1587. $4
  1588. @%:@include <$2>
  1589. _ACEOF
  1590. if ac_fn_c_try_compile "$LINENO"; then :
  1591. eval "$3=yes"
  1592. else
  1593. eval "$3=no"
  1594. fi
  1595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1596. fi
  1597. eval ac_res=\$$3
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1599. $as_echo "$ac_res" >&6; }
  1600. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1601. } @%:@ ac_fn_c_check_header_compile
  1602. @%:@ ac_fn_c_try_link LINENO
  1603. @%:@ -----------------------
  1604. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1605. ac_fn_c_try_link ()
  1606. {
  1607. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1608. rm -f conftest.$ac_objext conftest$ac_exeext
  1609. if { { ac_try="$ac_link"
  1610. case "(($ac_try" in
  1611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1612. *) ac_try_echo=$ac_try;;
  1613. esac
  1614. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1615. $as_echo "$ac_try_echo"; } >&5
  1616. (eval "$ac_link") 2>conftest.err
  1617. ac_status=$?
  1618. if test -s conftest.err; then
  1619. grep -v '^ *+' conftest.err >conftest.er1
  1620. cat conftest.er1 >&5
  1621. mv -f conftest.er1 conftest.err
  1622. fi
  1623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1624. test $ac_status = 0; } && {
  1625. test -z "$ac_c_werror_flag" ||
  1626. test ! -s conftest.err
  1627. } && test -s conftest$ac_exeext && {
  1628. test "$cross_compiling" = yes ||
  1629. test -x conftest$ac_exeext
  1630. }; then :
  1631. ac_retval=0
  1632. else
  1633. $as_echo "$as_me: failed program was:" >&5
  1634. sed 's/^/| /' conftest.$ac_ext >&5
  1635. ac_retval=1
  1636. fi
  1637. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1638. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1639. # interfere with the next link command; also delete a directory that is
  1640. # left behind by Apple's compiler. We do this before executing the actions.
  1641. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1642. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1643. as_fn_set_status $ac_retval
  1644. } @%:@ ac_fn_c_try_link
  1645. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1646. @%:@ ----------------------------------
  1647. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1648. ac_fn_c_check_func ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1652. $as_echo_n "checking for $2... " >&6; }
  1653. if eval \${$3+:} false; then :
  1654. $as_echo_n "(cached) " >&6
  1655. else
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1659. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1660. #define $2 innocuous_$2
  1661. /* System header to define __stub macros and hopefully few prototypes,
  1662. which can conflict with char $2 (); below.
  1663. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1664. <limits.h> exists even on freestanding compilers. */
  1665. #ifdef __STDC__
  1666. # include <limits.h>
  1667. #else
  1668. # include <assert.h>
  1669. #endif
  1670. #undef $2
  1671. /* Override any GCC internal prototype to avoid an error.
  1672. Use char because int might match the return type of a GCC
  1673. builtin and then its argument prototype would still apply. */
  1674. #ifdef __cplusplus
  1675. extern "C"
  1676. #endif
  1677. char $2 ();
  1678. /* The GNU C library defines this for functions which it implements
  1679. to always fail with ENOSYS. Some functions are actually named
  1680. something starting with __ and the normal name is an alias. */
  1681. #if defined __stub_$2 || defined __stub___$2
  1682. choke me
  1683. #endif
  1684. int
  1685. main ()
  1686. {
  1687. return $2 ();
  1688. ;
  1689. return 0;
  1690. }
  1691. _ACEOF
  1692. if ac_fn_c_try_link "$LINENO"; then :
  1693. eval "$3=yes"
  1694. else
  1695. eval "$3=no"
  1696. fi
  1697. rm -f core conftest.err conftest.$ac_objext \
  1698. conftest$ac_exeext conftest.$ac_ext
  1699. fi
  1700. eval ac_res=\$$3
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1702. $as_echo "$ac_res" >&6; }
  1703. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1704. } @%:@ ac_fn_c_check_func
  1705. @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1706. @%:@ -------------------------------------------
  1707. @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
  1708. @%:@ variable VAR accordingly.
  1709. ac_fn_c_check_type ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1713. $as_echo_n "checking for $2... " >&6; }
  1714. if eval \${$3+:} false; then :
  1715. $as_echo_n "(cached) " >&6
  1716. else
  1717. eval "$3=no"
  1718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1719. /* end confdefs.h. */
  1720. $4
  1721. int
  1722. main ()
  1723. {
  1724. if (sizeof ($2))
  1725. return 0;
  1726. ;
  1727. return 0;
  1728. }
  1729. _ACEOF
  1730. if ac_fn_c_try_compile "$LINENO"; then :
  1731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1732. /* end confdefs.h. */
  1733. $4
  1734. int
  1735. main ()
  1736. {
  1737. if (sizeof (($2)))
  1738. return 0;
  1739. ;
  1740. return 0;
  1741. }
  1742. _ACEOF
  1743. if ac_fn_c_try_compile "$LINENO"; then :
  1744. else
  1745. eval "$3=yes"
  1746. fi
  1747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1748. fi
  1749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1750. fi
  1751. eval ac_res=\$$3
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1753. $as_echo "$ac_res" >&6; }
  1754. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1755. } @%:@ ac_fn_c_check_type
  1756. @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1757. @%:@ ----------------------------------------------------
  1758. @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
  1759. @%:@ INCLUDES, setting cache variable VAR accordingly.
  1760. ac_fn_c_check_member ()
  1761. {
  1762. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1764. $as_echo_n "checking for $2.$3... " >&6; }
  1765. if eval \${$4+:} false; then :
  1766. $as_echo_n "(cached) " >&6
  1767. else
  1768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1769. /* end confdefs.h. */
  1770. $5
  1771. int
  1772. main ()
  1773. {
  1774. static $2 ac_aggr;
  1775. if (ac_aggr.$3)
  1776. return 0;
  1777. ;
  1778. return 0;
  1779. }
  1780. _ACEOF
  1781. if ac_fn_c_try_compile "$LINENO"; then :
  1782. eval "$4=yes"
  1783. else
  1784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1785. /* end confdefs.h. */
  1786. $5
  1787. int
  1788. main ()
  1789. {
  1790. static $2 ac_aggr;
  1791. if (sizeof ac_aggr.$3)
  1792. return 0;
  1793. ;
  1794. return 0;
  1795. }
  1796. _ACEOF
  1797. if ac_fn_c_try_compile "$LINENO"; then :
  1798. eval "$4=yes"
  1799. else
  1800. eval "$4=no"
  1801. fi
  1802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1803. fi
  1804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1805. fi
  1806. eval ac_res=\$$4
  1807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1808. $as_echo "$ac_res" >&6; }
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. } @%:@ ac_fn_c_check_member
  1811. @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1812. @%:@ ---------------------------------------------
  1813. @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1814. @%:@ accordingly.
  1815. ac_fn_c_check_decl ()
  1816. {
  1817. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1818. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1819. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1821. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1822. if eval \${$3+:} false; then :
  1823. $as_echo_n "(cached) " >&6
  1824. else
  1825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1826. /* end confdefs.h. */
  1827. $4
  1828. int
  1829. main ()
  1830. {
  1831. @%:@ifndef $as_decl_name
  1832. @%:@ifdef __cplusplus
  1833. (void) $as_decl_use;
  1834. @%:@else
  1835. (void) $as_decl_name;
  1836. @%:@endif
  1837. @%:@endif
  1838. ;
  1839. return 0;
  1840. }
  1841. _ACEOF
  1842. if ac_fn_c_try_compile "$LINENO"; then :
  1843. eval "$3=yes"
  1844. else
  1845. eval "$3=no"
  1846. fi
  1847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1848. fi
  1849. eval ac_res=\$$3
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1851. $as_echo "$ac_res" >&6; }
  1852. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1853. } @%:@ ac_fn_c_check_decl
  1854. @%:@ ac_fn_c_find_uintX_t LINENO BITS VAR
  1855. @%:@ ------------------------------------
  1856. @%:@ Finds an unsigned integer type with width BITS, setting cache variable VAR
  1857. @%:@ accordingly.
  1858. ac_fn_c_find_uintX_t ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1862. $as_echo_n "checking for uint$2_t... " >&6; }
  1863. if eval \${$3+:} false; then :
  1864. $as_echo_n "(cached) " >&6
  1865. else
  1866. eval "$3=no"
  1867. # Order is important - never check a type that is potentially smaller
  1868. # than half of the expected target width.
  1869. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1870. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1872. /* end confdefs.h. */
  1873. $ac_includes_default
  1874. int
  1875. main ()
  1876. {
  1877. static int test_array @<:@1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)@:>@;
  1878. test_array @<:@0@:>@ = 0;
  1879. return test_array @<:@0@:>@;
  1880. ;
  1881. return 0;
  1882. }
  1883. _ACEOF
  1884. if ac_fn_c_try_compile "$LINENO"; then :
  1885. case $ac_type in @%:@(
  1886. uint$2_t) :
  1887. eval "$3=yes" ;; @%:@(
  1888. *) :
  1889. eval "$3=\$ac_type" ;;
  1890. esac
  1891. fi
  1892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1893. if eval test \"x\$"$3"\" = x"no"; then :
  1894. else
  1895. break
  1896. fi
  1897. done
  1898. fi
  1899. eval ac_res=\$$3
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1901. $as_echo "$ac_res" >&6; }
  1902. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1903. } @%:@ ac_fn_c_find_uintX_t
  1904. @%:@ ac_fn_c_find_intX_t LINENO BITS VAR
  1905. @%:@ -----------------------------------
  1906. @%:@ Finds a signed integer type with width BITS, setting cache variable VAR
  1907. @%:@ accordingly.
  1908. ac_fn_c_find_intX_t ()
  1909. {
  1910. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1912. $as_echo_n "checking for int$2_t... " >&6; }
  1913. if eval \${$3+:} false; then :
  1914. $as_echo_n "(cached) " >&6
  1915. else
  1916. eval "$3=no"
  1917. # Order is important - never check a type that is potentially smaller
  1918. # than half of the expected target width.
  1919. for ac_type in int$2_t 'int' 'long int' \
  1920. 'long long int' 'short int' 'signed char'; do
  1921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1922. /* end confdefs.h. */
  1923. $ac_includes_default
  1924. enum { N = $2 / 2 - 1 };
  1925. int
  1926. main ()
  1927. {
  1928. static int test_array @<:@1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))@:>@;
  1929. test_array @<:@0@:>@ = 0;
  1930. return test_array @<:@0@:>@;
  1931. ;
  1932. return 0;
  1933. }
  1934. _ACEOF
  1935. if ac_fn_c_try_compile "$LINENO"; then :
  1936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1937. /* end confdefs.h. */
  1938. $ac_includes_default
  1939. enum { N = $2 / 2 - 1 };
  1940. int
  1941. main ()
  1942. {
  1943. static int test_array @<:@1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1944. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))@:>@;
  1945. test_array @<:@0@:>@ = 0;
  1946. return test_array @<:@0@:>@;
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. if ac_fn_c_try_compile "$LINENO"; then :
  1952. else
  1953. case $ac_type in @%:@(
  1954. int$2_t) :
  1955. eval "$3=yes" ;; @%:@(
  1956. *) :
  1957. eval "$3=\$ac_type" ;;
  1958. esac
  1959. fi
  1960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1961. fi
  1962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1963. if eval test \"x\$"$3"\" = x"no"; then :
  1964. else
  1965. break
  1966. fi
  1967. done
  1968. fi
  1969. eval ac_res=\$$3
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1971. $as_echo "$ac_res" >&6; }
  1972. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1973. } @%:@ ac_fn_c_find_intX_t
  1974. cat >config.log <<_ACEOF
  1975. This file contains any messages produced by compilers while
  1976. running configure, to aid debugging if configure makes a mistake.
  1977. It was created by file $as_me 5.22, which was
  1978. generated by GNU Autoconf 2.69. Invocation command line was
  1979. $ $0 $@
  1980. _ACEOF
  1981. exec 5>>config.log
  1982. {
  1983. cat <<_ASUNAME
  1984. ## --------- ##
  1985. ## Platform. ##
  1986. ## --------- ##
  1987. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1988. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1989. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1990. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1991. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1992. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1993. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1994. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1995. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1996. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1997. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1998. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1999. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2000. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2001. _ASUNAME
  2002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2003. for as_dir in $PATH
  2004. do
  2005. IFS=$as_save_IFS
  2006. test -z "$as_dir" && as_dir=.
  2007. $as_echo "PATH: $as_dir"
  2008. done
  2009. IFS=$as_save_IFS
  2010. } >&5
  2011. cat >&5 <<_ACEOF
  2012. ## ----------- ##
  2013. ## Core tests. ##
  2014. ## ----------- ##
  2015. _ACEOF
  2016. # Keep a trace of the command line.
  2017. # Strip out --no-create and --no-recursion so they do not pile up.
  2018. # Strip out --silent because we don't want to record it for future runs.
  2019. # Also quote any args containing shell meta-characters.
  2020. # Make two passes to allow for proper duplicate-argument suppression.
  2021. ac_configure_args=
  2022. ac_configure_args0=
  2023. ac_configure_args1=
  2024. ac_must_keep_next=false
  2025. for ac_pass in 1 2
  2026. do
  2027. for ac_arg
  2028. do
  2029. case $ac_arg in
  2030. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2031. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2032. | -silent | --silent | --silen | --sile | --sil)
  2033. continue ;;
  2034. *\'*)
  2035. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2036. esac
  2037. case $ac_pass in
  2038. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2039. 2)
  2040. as_fn_append ac_configure_args1 " '$ac_arg'"
  2041. if test $ac_must_keep_next = true; then
  2042. ac_must_keep_next=false # Got value, back to normal.
  2043. else
  2044. case $ac_arg in
  2045. *=* | --config-cache | -C | -disable-* | --disable-* \
  2046. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2047. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2048. | -with-* | --with-* | -without-* | --without-* | --x)
  2049. case "$ac_configure_args0 " in
  2050. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2051. esac
  2052. ;;
  2053. -* ) ac_must_keep_next=true ;;
  2054. esac
  2055. fi
  2056. as_fn_append ac_configure_args " '$ac_arg'"
  2057. ;;
  2058. esac
  2059. done
  2060. done
  2061. { ac_configure_args0=; unset ac_configure_args0;}
  2062. { ac_configure_args1=; unset ac_configure_args1;}
  2063. # When interrupted or exit'd, cleanup temporary files, and complete
  2064. # config.log. We remove comments because anyway the quotes in there
  2065. # would cause problems or look ugly.
  2066. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2067. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2068. trap 'exit_status=$?
  2069. # Save into config.log some information that might help in debugging.
  2070. {
  2071. echo
  2072. $as_echo "## ---------------- ##
  2073. ## Cache variables. ##
  2074. ## ---------------- ##"
  2075. echo
  2076. # The following way of writing the cache mishandles newlines in values,
  2077. (
  2078. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2079. eval ac_val=\$$ac_var
  2080. case $ac_val in #(
  2081. *${as_nl}*)
  2082. case $ac_var in #(
  2083. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2084. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2085. esac
  2086. case $ac_var in #(
  2087. _ | IFS | as_nl) ;; #(
  2088. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2089. *) { eval $ac_var=; unset $ac_var;} ;;
  2090. esac ;;
  2091. esac
  2092. done
  2093. (set) 2>&1 |
  2094. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2095. *${as_nl}ac_space=\ *)
  2096. sed -n \
  2097. "s/'\''/'\''\\\\'\'''\''/g;
  2098. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2099. ;; #(
  2100. *)
  2101. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2102. ;;
  2103. esac |
  2104. sort
  2105. )
  2106. echo
  2107. $as_echo "## ----------------- ##
  2108. ## Output variables. ##
  2109. ## ----------------- ##"
  2110. echo
  2111. for ac_var in $ac_subst_vars
  2112. do
  2113. eval ac_val=\$$ac_var
  2114. case $ac_val in
  2115. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2116. esac
  2117. $as_echo "$ac_var='\''$ac_val'\''"
  2118. done | sort
  2119. echo
  2120. if test -n "$ac_subst_files"; then
  2121. $as_echo "## ------------------- ##
  2122. ## File substitutions. ##
  2123. ## ------------------- ##"
  2124. echo
  2125. for ac_var in $ac_subst_files
  2126. do
  2127. eval ac_val=\$$ac_var
  2128. case $ac_val in
  2129. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2130. esac
  2131. $as_echo "$ac_var='\''$ac_val'\''"
  2132. done | sort
  2133. echo
  2134. fi
  2135. if test -s confdefs.h; then
  2136. $as_echo "## ----------- ##
  2137. ## confdefs.h. ##
  2138. ## ----------- ##"
  2139. echo
  2140. cat confdefs.h
  2141. echo
  2142. fi
  2143. test "$ac_signal" != 0 &&
  2144. $as_echo "$as_me: caught signal $ac_signal"
  2145. $as_echo "$as_me: exit $exit_status"
  2146. } >&5
  2147. rm -f core *.core core.conftest.* &&
  2148. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2149. exit $exit_status
  2150. ' 0
  2151. for ac_signal in 1 2 13 15; do
  2152. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2153. done
  2154. ac_signal=0
  2155. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2156. rm -f -r conftest* confdefs.h
  2157. $as_echo "/* confdefs.h */" > confdefs.h
  2158. # Predefined preprocessor variables.
  2159. cat >>confdefs.h <<_ACEOF
  2160. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  2161. _ACEOF
  2162. cat >>confdefs.h <<_ACEOF
  2163. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2164. _ACEOF
  2165. cat >>confdefs.h <<_ACEOF
  2166. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  2167. _ACEOF
  2168. cat >>confdefs.h <<_ACEOF
  2169. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  2170. _ACEOF
  2171. cat >>confdefs.h <<_ACEOF
  2172. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2173. _ACEOF
  2174. cat >>confdefs.h <<_ACEOF
  2175. @%:@define PACKAGE_URL "$PACKAGE_URL"
  2176. _ACEOF
  2177. # Let the site file select an alternate cache file if it wants to.
  2178. # Prefer an explicitly selected file to automatically selected ones.
  2179. ac_site_file1=NONE
  2180. ac_site_file2=NONE
  2181. if test -n "$CONFIG_SITE"; then
  2182. # We do not want a PATH search for config.site.
  2183. case $CONFIG_SITE in @%:@((
  2184. -*) ac_site_file1=./$CONFIG_SITE;;
  2185. */*) ac_site_file1=$CONFIG_SITE;;
  2186. *) ac_site_file1=./$CONFIG_SITE;;
  2187. esac
  2188. elif test "x$prefix" != xNONE; then
  2189. ac_site_file1=$prefix/share/config.site
  2190. ac_site_file2=$prefix/etc/config.site
  2191. else
  2192. ac_site_file1=$ac_default_prefix/share/config.site
  2193. ac_site_file2=$ac_default_prefix/etc/config.site
  2194. fi
  2195. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2196. do
  2197. test "x$ac_site_file" = xNONE && continue
  2198. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2200. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2201. sed 's/^/| /' "$ac_site_file" >&5
  2202. . "$ac_site_file" \
  2203. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2204. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2205. as_fn_error $? "failed to load site script $ac_site_file
  2206. See \`config.log' for more details" "$LINENO" 5; }
  2207. fi
  2208. done
  2209. if test -r "$cache_file"; then
  2210. # Some versions of bash will fail to source /dev/null (special files
  2211. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2212. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2214. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2215. case $cache_file in
  2216. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2217. *) . "./$cache_file";;
  2218. esac
  2219. fi
  2220. else
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2222. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2223. >$cache_file
  2224. fi
  2225. as_fn_append ac_header_list " stdlib.h"
  2226. as_fn_append ac_header_list " unistd.h"
  2227. as_fn_append ac_header_list " sys/param.h"
  2228. # Check that the precious variables saved in the cache have kept the same
  2229. # value.
  2230. ac_cache_corrupted=false
  2231. for ac_var in $ac_precious_vars; do
  2232. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2233. eval ac_new_set=\$ac_env_${ac_var}_set
  2234. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2235. eval ac_new_val=\$ac_env_${ac_var}_value
  2236. case $ac_old_set,$ac_new_set in
  2237. set,)
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2239. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2240. ac_cache_corrupted=: ;;
  2241. ,set)
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2243. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2244. ac_cache_corrupted=: ;;
  2245. ,);;
  2246. *)
  2247. if test "x$ac_old_val" != "x$ac_new_val"; then
  2248. # differences in whitespace do not lead to failure.
  2249. ac_old_val_w=`echo x $ac_old_val`
  2250. ac_new_val_w=`echo x $ac_new_val`
  2251. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2253. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2254. ac_cache_corrupted=:
  2255. else
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2257. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2258. eval $ac_var=\$ac_old_val
  2259. fi
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2261. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2263. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2264. fi;;
  2265. esac
  2266. # Pass precious variables to config.status.
  2267. if test "$ac_new_set" = set; then
  2268. case $ac_new_val in
  2269. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2270. *) ac_arg=$ac_var=$ac_new_val ;;
  2271. esac
  2272. case " $ac_configure_args " in
  2273. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2274. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2275. esac
  2276. fi
  2277. done
  2278. if $ac_cache_corrupted; then
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2280. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2282. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2283. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2284. fi
  2285. ## -------------------- ##
  2286. ## Main body of script. ##
  2287. ## -------------------- ##
  2288. ac_ext=c
  2289. ac_cpp='$CPP $CPPFLAGS'
  2290. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2291. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2292. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2293. am__api_version='1.14'
  2294. ac_aux_dir=
  2295. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2296. if test -f "$ac_dir/install-sh"; then
  2297. ac_aux_dir=$ac_dir
  2298. ac_install_sh="$ac_aux_dir/install-sh -c"
  2299. break
  2300. elif test -f "$ac_dir/install.sh"; then
  2301. ac_aux_dir=$ac_dir
  2302. ac_install_sh="$ac_aux_dir/install.sh -c"
  2303. break
  2304. elif test -f "$ac_dir/shtool"; then
  2305. ac_aux_dir=$ac_dir
  2306. ac_install_sh="$ac_aux_dir/shtool install -c"
  2307. break
  2308. fi
  2309. done
  2310. if test -z "$ac_aux_dir"; then
  2311. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2312. fi
  2313. # These three variables are undocumented and unsupported,
  2314. # and are intended to be withdrawn in a future Autoconf release.
  2315. # They can cause serious problems if a builder's source tree is in a directory
  2316. # whose full name contains unusual characters.
  2317. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2318. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2319. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2320. # Find a good install program. We prefer a C program (faster),
  2321. # so one script is as good as another. But avoid the broken or
  2322. # incompatible versions:
  2323. # SysV /etc/install, /usr/sbin/install
  2324. # SunOS /usr/etc/install
  2325. # IRIX /sbin/install
  2326. # AIX /bin/install
  2327. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2328. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2329. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2330. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2331. # OS/2's system install, which has a completely different semantic
  2332. # ./install, which can be erroneously created by make from ./install.sh.
  2333. # Reject install programs that cannot install multiple files.
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2335. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2336. if test -z "$INSTALL"; then
  2337. if ${ac_cv_path_install+:} false; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2341. for as_dir in $PATH
  2342. do
  2343. IFS=$as_save_IFS
  2344. test -z "$as_dir" && as_dir=.
  2345. # Account for people who put trailing slashes in PATH elements.
  2346. case $as_dir/ in @%:@((
  2347. ./ | .// | /[cC]/* | \
  2348. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2349. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2350. /usr/ucb/* ) ;;
  2351. *)
  2352. # OSF1 and SCO ODT 3.0 have their own names for install.
  2353. # Don't use installbsd from OSF since it installs stuff as root
  2354. # by default.
  2355. for ac_prog in ginstall scoinst install; do
  2356. for ac_exec_ext in '' $ac_executable_extensions; do
  2357. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2358. if test $ac_prog = install &&
  2359. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2360. # AIX install. It has an incompatible calling convention.
  2361. :
  2362. elif test $ac_prog = install &&
  2363. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2364. # program-specific install script used by HP pwplus--don't use.
  2365. :
  2366. else
  2367. rm -rf conftest.one conftest.two conftest.dir
  2368. echo one > conftest.one
  2369. echo two > conftest.two
  2370. mkdir conftest.dir
  2371. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2372. test -s conftest.one && test -s conftest.two &&
  2373. test -s conftest.dir/conftest.one &&
  2374. test -s conftest.dir/conftest.two
  2375. then
  2376. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2377. break 3
  2378. fi
  2379. fi
  2380. fi
  2381. done
  2382. done
  2383. ;;
  2384. esac
  2385. done
  2386. IFS=$as_save_IFS
  2387. rm -rf conftest.one conftest.two conftest.dir
  2388. fi
  2389. if test "${ac_cv_path_install+set}" = set; then
  2390. INSTALL=$ac_cv_path_install
  2391. else
  2392. # As a last resort, use the slow shell script. Don't cache a
  2393. # value for INSTALL within a source directory, because that will
  2394. # break other packages using the cache if that directory is
  2395. # removed, or if the value is a relative name.
  2396. INSTALL=$ac_install_sh
  2397. fi
  2398. fi
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2400. $as_echo "$INSTALL" >&6; }
  2401. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2402. # It thinks the first close brace ends the variable substitution.
  2403. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2404. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2405. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2407. $as_echo_n "checking whether build environment is sane... " >&6; }
  2408. # Reject unsafe characters in $srcdir or the absolute working directory
  2409. # name. Accept space and tab only in the latter.
  2410. am_lf='
  2411. '
  2412. case `pwd` in
  2413. *[\\\"\#\$\&\'\`$am_lf]*)
  2414. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2415. esac
  2416. case $srcdir in
  2417. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2418. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2419. esac
  2420. # Do 'set' in a subshell so we don't clobber the current shell's
  2421. # arguments. Must try -L first in case configure is actually a
  2422. # symlink; some systems play weird games with the mod time of symlinks
  2423. # (eg FreeBSD returns the mod time of the symlink's containing
  2424. # directory).
  2425. if (
  2426. am_has_slept=no
  2427. for am_try in 1 2; do
  2428. echo "timestamp, slept: $am_has_slept" > conftest.file
  2429. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2430. if test "$*" = "X"; then
  2431. # -L didn't work.
  2432. set X `ls -t "$srcdir/configure" conftest.file`
  2433. fi
  2434. if test "$*" != "X $srcdir/configure conftest.file" \
  2435. && test "$*" != "X conftest.file $srcdir/configure"; then
  2436. # If neither matched, then we have a broken ls. This can happen
  2437. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2438. # broken ls alias from the environment. This has actually
  2439. # happened. Such a system could not be considered "sane".
  2440. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2441. alias in your environment" "$LINENO" 5
  2442. fi
  2443. if test "$2" = conftest.file || test $am_try -eq 2; then
  2444. break
  2445. fi
  2446. # Just in case.
  2447. sleep 1
  2448. am_has_slept=yes
  2449. done
  2450. test "$2" = conftest.file
  2451. )
  2452. then
  2453. # Ok.
  2454. :
  2455. else
  2456. as_fn_error $? "newly created file is older than distributed files!
  2457. Check your system clock" "$LINENO" 5
  2458. fi
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2460. $as_echo "yes" >&6; }
  2461. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2462. # generated files are strictly newer.
  2463. am_sleep_pid=
  2464. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2465. ( sleep 1 ) &
  2466. am_sleep_pid=$!
  2467. fi
  2468. rm -f conftest.file
  2469. test "$program_prefix" != NONE &&
  2470. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2471. # Use a double $ so make ignores it.
  2472. test "$program_suffix" != NONE &&
  2473. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2474. # Double any \ or $.
  2475. # By default was `s,x,x', remove it if useless.
  2476. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2477. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2478. # Expand $ac_aux_dir to an absolute path.
  2479. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2480. if test x"${MISSING+set}" != xset; then
  2481. case $am_aux_dir in
  2482. *\ * | *\ *)
  2483. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2484. *)
  2485. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2486. esac
  2487. fi
  2488. # Use eval to expand $SHELL
  2489. if eval "$MISSING --is-lightweight"; then
  2490. am_missing_run="$MISSING "
  2491. else
  2492. am_missing_run=
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2494. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2495. fi
  2496. if test x"${install_sh}" != xset; then
  2497. case $am_aux_dir in
  2498. *\ * | *\ *)
  2499. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2500. *)
  2501. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2502. esac
  2503. fi
  2504. # Installed binaries are usually stripped using 'strip' when the user
  2505. # run "make install-strip". However 'strip' might not be the right
  2506. # tool to use in cross-compilation environments, therefore Automake
  2507. # will honor the 'STRIP' environment variable to overrule this program.
  2508. if test "$cross_compiling" != no; then
  2509. if test -n "$ac_tool_prefix"; then
  2510. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2511. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2513. $as_echo_n "checking for $ac_word... " >&6; }
  2514. if ${ac_cv_prog_STRIP+:} false; then :
  2515. $as_echo_n "(cached) " >&6
  2516. else
  2517. if test -n "$STRIP"; then
  2518. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2519. else
  2520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2521. for as_dir in $PATH
  2522. do
  2523. IFS=$as_save_IFS
  2524. test -z "$as_dir" && as_dir=.
  2525. for ac_exec_ext in '' $ac_executable_extensions; do
  2526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2527. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2529. break 2
  2530. fi
  2531. done
  2532. done
  2533. IFS=$as_save_IFS
  2534. fi
  2535. fi
  2536. STRIP=$ac_cv_prog_STRIP
  2537. if test -n "$STRIP"; then
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2539. $as_echo "$STRIP" >&6; }
  2540. else
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2542. $as_echo "no" >&6; }
  2543. fi
  2544. fi
  2545. if test -z "$ac_cv_prog_STRIP"; then
  2546. ac_ct_STRIP=$STRIP
  2547. # Extract the first word of "strip", so it can be a program name with args.
  2548. set dummy strip; ac_word=$2
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2550. $as_echo_n "checking for $ac_word... " >&6; }
  2551. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2552. $as_echo_n "(cached) " >&6
  2553. else
  2554. if test -n "$ac_ct_STRIP"; then
  2555. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2556. else
  2557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2558. for as_dir in $PATH
  2559. do
  2560. IFS=$as_save_IFS
  2561. test -z "$as_dir" && as_dir=.
  2562. for ac_exec_ext in '' $ac_executable_extensions; do
  2563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2564. ac_cv_prog_ac_ct_STRIP="strip"
  2565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2566. break 2
  2567. fi
  2568. done
  2569. done
  2570. IFS=$as_save_IFS
  2571. fi
  2572. fi
  2573. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2574. if test -n "$ac_ct_STRIP"; then
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2576. $as_echo "$ac_ct_STRIP" >&6; }
  2577. else
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2579. $as_echo "no" >&6; }
  2580. fi
  2581. if test "x$ac_ct_STRIP" = x; then
  2582. STRIP=":"
  2583. else
  2584. case $cross_compiling:$ac_tool_warned in
  2585. yes:)
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2587. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2588. ac_tool_warned=yes ;;
  2589. esac
  2590. STRIP=$ac_ct_STRIP
  2591. fi
  2592. else
  2593. STRIP="$ac_cv_prog_STRIP"
  2594. fi
  2595. fi
  2596. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2598. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2599. if test -z "$MKDIR_P"; then
  2600. if ${ac_cv_path_mkdir+:} false; then :
  2601. $as_echo_n "(cached) " >&6
  2602. else
  2603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2604. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2605. do
  2606. IFS=$as_save_IFS
  2607. test -z "$as_dir" && as_dir=.
  2608. for ac_prog in mkdir gmkdir; do
  2609. for ac_exec_ext in '' $ac_executable_extensions; do
  2610. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2611. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2612. 'mkdir (GNU coreutils) '* | \
  2613. 'mkdir (coreutils) '* | \
  2614. 'mkdir (fileutils) '4.1*)
  2615. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2616. break 3;;
  2617. esac
  2618. done
  2619. done
  2620. done
  2621. IFS=$as_save_IFS
  2622. fi
  2623. test -d ./--version && rmdir ./--version
  2624. if test "${ac_cv_path_mkdir+set}" = set; then
  2625. MKDIR_P="$ac_cv_path_mkdir -p"
  2626. else
  2627. # As a last resort, use the slow shell script. Don't cache a
  2628. # value for MKDIR_P within a source directory, because that will
  2629. # break other packages using the cache if that directory is
  2630. # removed, or if the value is a relative name.
  2631. MKDIR_P="$ac_install_sh -d"
  2632. fi
  2633. fi
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2635. $as_echo "$MKDIR_P" >&6; }
  2636. for ac_prog in gawk mawk nawk awk
  2637. do
  2638. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2639. set dummy $ac_prog; ac_word=$2
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2641. $as_echo_n "checking for $ac_word... " >&6; }
  2642. if ${ac_cv_prog_AWK+:} false; then :
  2643. $as_echo_n "(cached) " >&6
  2644. else
  2645. if test -n "$AWK"; then
  2646. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2647. else
  2648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2649. for as_dir in $PATH
  2650. do
  2651. IFS=$as_save_IFS
  2652. test -z "$as_dir" && as_dir=.
  2653. for ac_exec_ext in '' $ac_executable_extensions; do
  2654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2655. ac_cv_prog_AWK="$ac_prog"
  2656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2657. break 2
  2658. fi
  2659. done
  2660. done
  2661. IFS=$as_save_IFS
  2662. fi
  2663. fi
  2664. AWK=$ac_cv_prog_AWK
  2665. if test -n "$AWK"; then
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2667. $as_echo "$AWK" >&6; }
  2668. else
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2670. $as_echo "no" >&6; }
  2671. fi
  2672. test -n "$AWK" && break
  2673. done
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2675. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2676. set x ${MAKE-make}
  2677. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2678. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2679. $as_echo_n "(cached) " >&6
  2680. else
  2681. cat >conftest.make <<\_ACEOF
  2682. SHELL = /bin/sh
  2683. all:
  2684. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2685. _ACEOF
  2686. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2687. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2688. *@@@%%%=?*=@@@%%%*)
  2689. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2690. *)
  2691. eval ac_cv_prog_make_${ac_make}_set=no;;
  2692. esac
  2693. rm -f conftest.make
  2694. fi
  2695. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2697. $as_echo "yes" >&6; }
  2698. SET_MAKE=
  2699. else
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2701. $as_echo "no" >&6; }
  2702. SET_MAKE="MAKE=${MAKE-make}"
  2703. fi
  2704. rm -rf .tst 2>/dev/null
  2705. mkdir .tst 2>/dev/null
  2706. if test -d .tst; then
  2707. am__leading_dot=.
  2708. else
  2709. am__leading_dot=_
  2710. fi
  2711. rmdir .tst 2>/dev/null
  2712. @%:@ Check whether --enable-silent-rules was given.
  2713. if test "${enable_silent_rules+set}" = set; then :
  2714. enableval=$enable_silent_rules;
  2715. fi
  2716. case $enable_silent_rules in @%:@ (((
  2717. yes) AM_DEFAULT_VERBOSITY=0;;
  2718. no) AM_DEFAULT_VERBOSITY=1;;
  2719. *) AM_DEFAULT_VERBOSITY=1;;
  2720. esac
  2721. am_make=${MAKE-make}
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2723. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2724. if ${am_cv_make_support_nested_variables+:} false; then :
  2725. $as_echo_n "(cached) " >&6
  2726. else
  2727. if $as_echo 'TRUE=$(BAR$(V))
  2728. BAR0=false
  2729. BAR1=true
  2730. V=1
  2731. am__doit:
  2732. @$(TRUE)
  2733. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2734. am_cv_make_support_nested_variables=yes
  2735. else
  2736. am_cv_make_support_nested_variables=no
  2737. fi
  2738. fi
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2740. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2741. if test $am_cv_make_support_nested_variables = yes; then
  2742. AM_V='$(V)'
  2743. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2744. else
  2745. AM_V=$AM_DEFAULT_VERBOSITY
  2746. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2747. fi
  2748. AM_BACKSLASH='\'
  2749. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2750. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2751. # is not polluted with repeated "-I."
  2752. am__isrc=' -I$(srcdir)'
  2753. # test to see if srcdir already configured
  2754. if test -f $srcdir/config.status; then
  2755. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2756. fi
  2757. fi
  2758. # test whether we have cygpath
  2759. if test -z "$CYGPATH_W"; then
  2760. if (cygpath --version) >/dev/null 2>/dev/null; then
  2761. CYGPATH_W='cygpath -w'
  2762. else
  2763. CYGPATH_W=echo
  2764. fi
  2765. fi
  2766. # Define the identity of the package.
  2767. PACKAGE='file'
  2768. VERSION='5.22'
  2769. cat >>confdefs.h <<_ACEOF
  2770. @%:@define PACKAGE "$PACKAGE"
  2771. _ACEOF
  2772. cat >>confdefs.h <<_ACEOF
  2773. @%:@define VERSION "$VERSION"
  2774. _ACEOF
  2775. # Some tools Automake needs.
  2776. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2777. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2778. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2779. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2780. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2781. # For better backward compatibility. To be removed once Automake 1.9.x
  2782. # dies out for good. For more background, see:
  2783. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2784. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2785. mkdir_p='$(MKDIR_P)'
  2786. # We need awk for the "check" target. The system "awk" is bad on
  2787. # some platforms.
  2788. # Always define AMTAR for backward compatibility. Yes, it's still used
  2789. # in the wild :-( We should find a proper way to deprecate it ...
  2790. AMTAR='$${TAR-tar}'
  2791. # We'll loop over all known methods to create a tar archive until one works.
  2792. _am_tools='gnutar pax cpio none'
  2793. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2794. # POSIX will say in a future version that running "rm -f" with no argument
  2795. # is OK; and we want to be able to make that assumption in our Makefile
  2796. # recipes. So use an aggressive probe to check that the usage we want is
  2797. # actually supported "in the wild" to an acceptable degree.
  2798. # See automake bug#10828.
  2799. # To make any issue more visible, cause the running configure to be aborted
  2800. # by default if the 'rm' program in use doesn't match our expectations; the
  2801. # user can still override this though.
  2802. if rm -f && rm -fr && rm -rf; then : OK; else
  2803. cat >&2 <<'END'
  2804. Oops!
  2805. Your 'rm' program seems unable to run without file operands specified
  2806. on the command line, even when the '-f' option is present. This is contrary
  2807. to the behaviour of most rm programs out there, and not conforming with
  2808. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2809. Please tell bug-automake@gnu.org about your system, including the value
  2810. of your $PATH and any error possibly output before this message. This
  2811. can help us improve future automake versions.
  2812. END
  2813. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2814. echo 'Configuration will proceed anyway, since you have set the' >&2
  2815. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2816. echo >&2
  2817. else
  2818. cat >&2 <<'END'
  2819. Aborting the configuration process, to ensure you take notice of the issue.
  2820. You can download and install GNU coreutils to get an 'rm' implementation
  2821. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2822. If you want to complete the configuration process using your problematic
  2823. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2824. to "yes", and re-run configure.
  2825. END
  2826. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2827. fi
  2828. fi
  2829. @%:@ Check whether --enable-silent-rules was given.
  2830. if test "${enable_silent_rules+set}" = set; then :
  2831. enableval=$enable_silent_rules;
  2832. fi
  2833. case $enable_silent_rules in @%:@ (((
  2834. yes) AM_DEFAULT_VERBOSITY=0;;
  2835. no) AM_DEFAULT_VERBOSITY=1;;
  2836. *) AM_DEFAULT_VERBOSITY=0;;
  2837. esac
  2838. am_make=${MAKE-make}
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2840. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2841. if ${am_cv_make_support_nested_variables+:} false; then :
  2842. $as_echo_n "(cached) " >&6
  2843. else
  2844. if $as_echo 'TRUE=$(BAR$(V))
  2845. BAR0=false
  2846. BAR1=true
  2847. V=1
  2848. am__doit:
  2849. @$(TRUE)
  2850. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2851. am_cv_make_support_nested_variables=yes
  2852. else
  2853. am_cv_make_support_nested_variables=no
  2854. fi
  2855. fi
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2857. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2858. if test $am_cv_make_support_nested_variables = yes; then
  2859. AM_V='$(V)'
  2860. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2861. else
  2862. AM_V=$AM_DEFAULT_VERBOSITY
  2863. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2864. fi
  2865. AM_BACKSLASH='\'
  2866. ac_config_headers="$ac_config_headers config.h"
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  2868. $as_echo_n "checking for builtin ELF support... " >&6; }
  2869. @%:@ Check whether --enable-elf was given.
  2870. if test "${enable_elf+set}" = set; then :
  2871. enableval=$enable_elf; if test "${enableval}" = yes; then
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2873. $as_echo "yes" >&6; }
  2874. $as_echo "@%:@define BUILTIN_ELF 1" >>confdefs.h
  2875. else
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2877. $as_echo "no" >&6; }
  2878. fi
  2879. else
  2880. # enable by default
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2882. $as_echo "yes" >&6; }
  2883. $as_echo "@%:@define BUILTIN_ELF 1" >>confdefs.h
  2884. fi
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  2886. $as_echo_n "checking for ELF core file support... " >&6; }
  2887. @%:@ Check whether --enable-elf-core was given.
  2888. if test "${enable_elf_core+set}" = set; then :
  2889. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2891. $as_echo "yes" >&6; }
  2892. $as_echo "@%:@define ELFCORE 1" >>confdefs.h
  2893. else
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2895. $as_echo "no" >&6; }
  2896. fi
  2897. else
  2898. # enable by default
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2900. $as_echo "yes" >&6; }
  2901. $as_echo "@%:@define ELFCORE 1" >>confdefs.h
  2902. fi
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  2904. $as_echo_n "checking for file formats in man section 5... " >&6; }
  2905. @%:@ Check whether --enable-fsect-man5 was given.
  2906. if test "${enable_fsect_man5+set}" = set; then :
  2907. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2909. $as_echo "yes" >&6; }
  2910. fsect=5
  2911. else
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2913. $as_echo "no" >&6; }
  2914. fsect=4
  2915. fi
  2916. else
  2917. # disable by default
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2919. $as_echo "no" >&6; }
  2920. fsect=4
  2921. fi
  2922. # Make sure we can run config.sub.
  2923. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2924. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2926. $as_echo_n "checking build system type... " >&6; }
  2927. if ${ac_cv_build+:} false; then :
  2928. $as_echo_n "(cached) " >&6
  2929. else
  2930. ac_build_alias=$build_alias
  2931. test "x$ac_build_alias" = x &&
  2932. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2933. test "x$ac_build_alias" = x &&
  2934. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2935. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2936. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2937. fi
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2939. $as_echo "$ac_cv_build" >&6; }
  2940. case $ac_cv_build in
  2941. *-*-*) ;;
  2942. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2943. esac
  2944. build=$ac_cv_build
  2945. ac_save_IFS=$IFS; IFS='-'
  2946. set x $ac_cv_build
  2947. shift
  2948. build_cpu=$1
  2949. build_vendor=$2
  2950. shift; shift
  2951. # Remember, the first character of IFS is used to create $*,
  2952. # except with old shells:
  2953. build_os=$*
  2954. IFS=$ac_save_IFS
  2955. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2957. $as_echo_n "checking host system type... " >&6; }
  2958. if ${ac_cv_host+:} false; then :
  2959. $as_echo_n "(cached) " >&6
  2960. else
  2961. if test "x$host_alias" = x; then
  2962. ac_cv_host=$ac_cv_build
  2963. else
  2964. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2965. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2966. fi
  2967. fi
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2969. $as_echo "$ac_cv_host" >&6; }
  2970. case $ac_cv_host in
  2971. *-*-*) ;;
  2972. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2973. esac
  2974. host=$ac_cv_host
  2975. ac_save_IFS=$IFS; IFS='-'
  2976. set x $ac_cv_host
  2977. shift
  2978. host_cpu=$1
  2979. host_vendor=$2
  2980. shift; shift
  2981. # Remember, the first character of IFS is used to create $*,
  2982. # except with old shells:
  2983. host_os=$*
  2984. IFS=$ac_save_IFS
  2985. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2986. case "$host_os" in
  2987. mingw32*)
  2988. MINGW=1
  2989. ;;
  2990. *)
  2991. MINGW=0
  2992. ;;
  2993. esac
  2994. if test "$MINGW" = 1; then
  2995. MINGW_TRUE=
  2996. MINGW_FALSE='#'
  2997. else
  2998. MINGW_TRUE='#'
  2999. MINGW_FALSE=
  3000. fi
  3001. pkgdatadir='$(datadir)/misc'
  3002. if test x$fsect = x5; then
  3003. FSECT5_TRUE=
  3004. FSECT5_FALSE='#'
  3005. else
  3006. FSECT5_TRUE='#'
  3007. FSECT5_FALSE=
  3008. fi
  3009. DEPDIR="${am__leading_dot}deps"
  3010. ac_config_commands="$ac_config_commands depfiles"
  3011. am_make=${MAKE-make}
  3012. cat > confinc << 'END'
  3013. am__doit:
  3014. @echo this is the am__doit target
  3015. .PHONY: am__doit
  3016. END
  3017. # If we don't find an include directive, just comment out the code.
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3019. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3020. am__include="#"
  3021. am__quote=
  3022. _am_result=none
  3023. # First try GNU make style include.
  3024. echo "include confinc" > confmf
  3025. # Ignore all kinds of additional output from 'make'.
  3026. case `$am_make -s -f confmf 2> /dev/null` in #(
  3027. *the\ am__doit\ target*)
  3028. am__include=include
  3029. am__quote=
  3030. _am_result=GNU
  3031. ;;
  3032. esac
  3033. # Now try BSD make style include.
  3034. if test "$am__include" = "#"; then
  3035. echo '.include "confinc"' > confmf
  3036. case `$am_make -s -f confmf 2> /dev/null` in #(
  3037. *the\ am__doit\ target*)
  3038. am__include=.include
  3039. am__quote="\""
  3040. _am_result=BSD
  3041. ;;
  3042. esac
  3043. fi
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3045. $as_echo "$_am_result" >&6; }
  3046. rm -f confinc confmf
  3047. @%:@ Check whether --enable-dependency-tracking was given.
  3048. if test "${enable_dependency_tracking+set}" = set; then :
  3049. enableval=$enable_dependency_tracking;
  3050. fi
  3051. if test "x$enable_dependency_tracking" != xno; then
  3052. am_depcomp="$ac_aux_dir/depcomp"
  3053. AMDEPBACKSLASH='\'
  3054. am__nodep='_no'
  3055. fi
  3056. if test "x$enable_dependency_tracking" != xno; then
  3057. AMDEP_TRUE=
  3058. AMDEP_FALSE='#'
  3059. else
  3060. AMDEP_TRUE='#'
  3061. AMDEP_FALSE=
  3062. fi
  3063. ac_ext=c
  3064. ac_cpp='$CPP $CPPFLAGS'
  3065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3068. if test -n "$ac_tool_prefix"; then
  3069. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3070. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3072. $as_echo_n "checking for $ac_word... " >&6; }
  3073. if ${ac_cv_prog_CC+:} false; then :
  3074. $as_echo_n "(cached) " >&6
  3075. else
  3076. if test -n "$CC"; then
  3077. ac_cv_prog_CC="$CC" # Let the user override the test.
  3078. else
  3079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3080. for as_dir in $PATH
  3081. do
  3082. IFS=$as_save_IFS
  3083. test -z "$as_dir" && as_dir=.
  3084. for ac_exec_ext in '' $ac_executable_extensions; do
  3085. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3086. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3088. break 2
  3089. fi
  3090. done
  3091. done
  3092. IFS=$as_save_IFS
  3093. fi
  3094. fi
  3095. CC=$ac_cv_prog_CC
  3096. if test -n "$CC"; then
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3098. $as_echo "$CC" >&6; }
  3099. else
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3101. $as_echo "no" >&6; }
  3102. fi
  3103. fi
  3104. if test -z "$ac_cv_prog_CC"; then
  3105. ac_ct_CC=$CC
  3106. # Extract the first word of "gcc", so it can be a program name with args.
  3107. set dummy gcc; ac_word=$2
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3109. $as_echo_n "checking for $ac_word... " >&6; }
  3110. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3111. $as_echo_n "(cached) " >&6
  3112. else
  3113. if test -n "$ac_ct_CC"; then
  3114. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3115. else
  3116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3117. for as_dir in $PATH
  3118. do
  3119. IFS=$as_save_IFS
  3120. test -z "$as_dir" && as_dir=.
  3121. for ac_exec_ext in '' $ac_executable_extensions; do
  3122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3123. ac_cv_prog_ac_ct_CC="gcc"
  3124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3125. break 2
  3126. fi
  3127. done
  3128. done
  3129. IFS=$as_save_IFS
  3130. fi
  3131. fi
  3132. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3133. if test -n "$ac_ct_CC"; then
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3135. $as_echo "$ac_ct_CC" >&6; }
  3136. else
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3138. $as_echo "no" >&6; }
  3139. fi
  3140. if test "x$ac_ct_CC" = x; then
  3141. CC=""
  3142. else
  3143. case $cross_compiling:$ac_tool_warned in
  3144. yes:)
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3146. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3147. ac_tool_warned=yes ;;
  3148. esac
  3149. CC=$ac_ct_CC
  3150. fi
  3151. else
  3152. CC="$ac_cv_prog_CC"
  3153. fi
  3154. if test -z "$CC"; then
  3155. if test -n "$ac_tool_prefix"; then
  3156. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3157. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3159. $as_echo_n "checking for $ac_word... " >&6; }
  3160. if ${ac_cv_prog_CC+:} false; then :
  3161. $as_echo_n "(cached) " >&6
  3162. else
  3163. if test -n "$CC"; then
  3164. ac_cv_prog_CC="$CC" # Let the user override the test.
  3165. else
  3166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3167. for as_dir in $PATH
  3168. do
  3169. IFS=$as_save_IFS
  3170. test -z "$as_dir" && as_dir=.
  3171. for ac_exec_ext in '' $ac_executable_extensions; do
  3172. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3173. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3175. break 2
  3176. fi
  3177. done
  3178. done
  3179. IFS=$as_save_IFS
  3180. fi
  3181. fi
  3182. CC=$ac_cv_prog_CC
  3183. if test -n "$CC"; then
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3185. $as_echo "$CC" >&6; }
  3186. else
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3188. $as_echo "no" >&6; }
  3189. fi
  3190. fi
  3191. fi
  3192. if test -z "$CC"; then
  3193. # Extract the first word of "cc", so it can be a program name with args.
  3194. set dummy cc; ac_word=$2
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3196. $as_echo_n "checking for $ac_word... " >&6; }
  3197. if ${ac_cv_prog_CC+:} false; then :
  3198. $as_echo_n "(cached) " >&6
  3199. else
  3200. if test -n "$CC"; then
  3201. ac_cv_prog_CC="$CC" # Let the user override the test.
  3202. else
  3203. ac_prog_rejected=no
  3204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3205. for as_dir in $PATH
  3206. do
  3207. IFS=$as_save_IFS
  3208. test -z "$as_dir" && as_dir=.
  3209. for ac_exec_ext in '' $ac_executable_extensions; do
  3210. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3211. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3212. ac_prog_rejected=yes
  3213. continue
  3214. fi
  3215. ac_cv_prog_CC="cc"
  3216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3217. break 2
  3218. fi
  3219. done
  3220. done
  3221. IFS=$as_save_IFS
  3222. if test $ac_prog_rejected = yes; then
  3223. # We found a bogon in the path, so make sure we never use it.
  3224. set dummy $ac_cv_prog_CC
  3225. shift
  3226. if test $@%:@ != 0; then
  3227. # We chose a different compiler from the bogus one.
  3228. # However, it has the same basename, so the bogon will be chosen
  3229. # first if we set CC to just the basename; use the full file name.
  3230. shift
  3231. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3232. fi
  3233. fi
  3234. fi
  3235. fi
  3236. CC=$ac_cv_prog_CC
  3237. if test -n "$CC"; then
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3239. $as_echo "$CC" >&6; }
  3240. else
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3242. $as_echo "no" >&6; }
  3243. fi
  3244. fi
  3245. if test -z "$CC"; then
  3246. if test -n "$ac_tool_prefix"; then
  3247. for ac_prog in cl.exe
  3248. do
  3249. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3250. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3252. $as_echo_n "checking for $ac_word... " >&6; }
  3253. if ${ac_cv_prog_CC+:} false; then :
  3254. $as_echo_n "(cached) " >&6
  3255. else
  3256. if test -n "$CC"; then
  3257. ac_cv_prog_CC="$CC" # Let the user override the test.
  3258. else
  3259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3260. for as_dir in $PATH
  3261. do
  3262. IFS=$as_save_IFS
  3263. test -z "$as_dir" && as_dir=.
  3264. for ac_exec_ext in '' $ac_executable_extensions; do
  3265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3266. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3268. break 2
  3269. fi
  3270. done
  3271. done
  3272. IFS=$as_save_IFS
  3273. fi
  3274. fi
  3275. CC=$ac_cv_prog_CC
  3276. if test -n "$CC"; then
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3278. $as_echo "$CC" >&6; }
  3279. else
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3281. $as_echo "no" >&6; }
  3282. fi
  3283. test -n "$CC" && break
  3284. done
  3285. fi
  3286. if test -z "$CC"; then
  3287. ac_ct_CC=$CC
  3288. for ac_prog in cl.exe
  3289. do
  3290. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3291. set dummy $ac_prog; ac_word=$2
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3293. $as_echo_n "checking for $ac_word... " >&6; }
  3294. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. if test -n "$ac_ct_CC"; then
  3298. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3299. else
  3300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3301. for as_dir in $PATH
  3302. do
  3303. IFS=$as_save_IFS
  3304. test -z "$as_dir" && as_dir=.
  3305. for ac_exec_ext in '' $ac_executable_extensions; do
  3306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3307. ac_cv_prog_ac_ct_CC="$ac_prog"
  3308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3309. break 2
  3310. fi
  3311. done
  3312. done
  3313. IFS=$as_save_IFS
  3314. fi
  3315. fi
  3316. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3317. if test -n "$ac_ct_CC"; then
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3319. $as_echo "$ac_ct_CC" >&6; }
  3320. else
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3322. $as_echo "no" >&6; }
  3323. fi
  3324. test -n "$ac_ct_CC" && break
  3325. done
  3326. if test "x$ac_ct_CC" = x; then
  3327. CC=""
  3328. else
  3329. case $cross_compiling:$ac_tool_warned in
  3330. yes:)
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3332. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3333. ac_tool_warned=yes ;;
  3334. esac
  3335. CC=$ac_ct_CC
  3336. fi
  3337. fi
  3338. fi
  3339. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3340. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3341. as_fn_error $? "no acceptable C compiler found in \$PATH
  3342. See \`config.log' for more details" "$LINENO" 5; }
  3343. # Provide some information about the compiler.
  3344. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3345. set X $ac_compile
  3346. ac_compiler=$2
  3347. for ac_option in --version -v -V -qversion; do
  3348. { { ac_try="$ac_compiler $ac_option >&5"
  3349. case "(($ac_try" in
  3350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3351. *) ac_try_echo=$ac_try;;
  3352. esac
  3353. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3354. $as_echo "$ac_try_echo"; } >&5
  3355. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3356. ac_status=$?
  3357. if test -s conftest.err; then
  3358. sed '10a\
  3359. ... rest of stderr output deleted ...
  3360. 10q' conftest.err >conftest.er1
  3361. cat conftest.er1 >&5
  3362. fi
  3363. rm -f conftest.er1 conftest.err
  3364. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3365. test $ac_status = 0; }
  3366. done
  3367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end confdefs.h. */
  3369. int
  3370. main ()
  3371. {
  3372. ;
  3373. return 0;
  3374. }
  3375. _ACEOF
  3376. ac_clean_files_save=$ac_clean_files
  3377. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3378. # Try to create an executable without -o first, disregard a.out.
  3379. # It will help us diagnose broken compilers, and finding out an intuition
  3380. # of exeext.
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3382. $as_echo_n "checking whether the C compiler works... " >&6; }
  3383. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3384. # The possible output files:
  3385. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3386. ac_rmfiles=
  3387. for ac_file in $ac_files
  3388. do
  3389. case $ac_file in
  3390. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3391. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3392. esac
  3393. done
  3394. rm -f $ac_rmfiles
  3395. if { { ac_try="$ac_link_default"
  3396. case "(($ac_try" in
  3397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3398. *) ac_try_echo=$ac_try;;
  3399. esac
  3400. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3401. $as_echo "$ac_try_echo"; } >&5
  3402. (eval "$ac_link_default") 2>&5
  3403. ac_status=$?
  3404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3405. test $ac_status = 0; }; then :
  3406. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3407. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3408. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3409. # so that the user can short-circuit this test for compilers unknown to
  3410. # Autoconf.
  3411. for ac_file in $ac_files ''
  3412. do
  3413. test -f "$ac_file" || continue
  3414. case $ac_file in
  3415. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3416. ;;
  3417. [ab].out )
  3418. # We found the default executable, but exeext='' is most
  3419. # certainly right.
  3420. break;;
  3421. *.* )
  3422. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3423. then :; else
  3424. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3425. fi
  3426. # We set ac_cv_exeext here because the later test for it is not
  3427. # safe: cross compilers may not add the suffix if given an `-o'
  3428. # argument, so we may need to know it at that point already.
  3429. # Even if this section looks crufty: it has the advantage of
  3430. # actually working.
  3431. break;;
  3432. * )
  3433. break;;
  3434. esac
  3435. done
  3436. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3437. else
  3438. ac_file=''
  3439. fi
  3440. if test -z "$ac_file"; then :
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3442. $as_echo "no" >&6; }
  3443. $as_echo "$as_me: failed program was:" >&5
  3444. sed 's/^/| /' conftest.$ac_ext >&5
  3445. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3446. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3447. as_fn_error 77 "C compiler cannot create executables
  3448. See \`config.log' for more details" "$LINENO" 5; }
  3449. else
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3451. $as_echo "yes" >&6; }
  3452. fi
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3454. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3456. $as_echo "$ac_file" >&6; }
  3457. ac_exeext=$ac_cv_exeext
  3458. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3459. ac_clean_files=$ac_clean_files_save
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3461. $as_echo_n "checking for suffix of executables... " >&6; }
  3462. if { { ac_try="$ac_link"
  3463. case "(($ac_try" in
  3464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3465. *) ac_try_echo=$ac_try;;
  3466. esac
  3467. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3468. $as_echo "$ac_try_echo"; } >&5
  3469. (eval "$ac_link") 2>&5
  3470. ac_status=$?
  3471. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3472. test $ac_status = 0; }; then :
  3473. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3474. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3475. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3476. # `rm'.
  3477. for ac_file in conftest.exe conftest conftest.*; do
  3478. test -f "$ac_file" || continue
  3479. case $ac_file in
  3480. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3481. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3482. break;;
  3483. * ) break;;
  3484. esac
  3485. done
  3486. else
  3487. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3488. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3489. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3490. See \`config.log' for more details" "$LINENO" 5; }
  3491. fi
  3492. rm -f conftest conftest$ac_cv_exeext
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3494. $as_echo "$ac_cv_exeext" >&6; }
  3495. rm -f conftest.$ac_ext
  3496. EXEEXT=$ac_cv_exeext
  3497. ac_exeext=$EXEEXT
  3498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3499. /* end confdefs.h. */
  3500. @%:@include <stdio.h>
  3501. int
  3502. main ()
  3503. {
  3504. FILE *f = fopen ("conftest.out", "w");
  3505. return ferror (f) || fclose (f) != 0;
  3506. ;
  3507. return 0;
  3508. }
  3509. _ACEOF
  3510. ac_clean_files="$ac_clean_files conftest.out"
  3511. # Check that the compiler produces executables we can run. If not, either
  3512. # the compiler is broken, or we cross compile.
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3514. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3515. if test "$cross_compiling" != yes; then
  3516. { { ac_try="$ac_link"
  3517. case "(($ac_try" in
  3518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3519. *) ac_try_echo=$ac_try;;
  3520. esac
  3521. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3522. $as_echo "$ac_try_echo"; } >&5
  3523. (eval "$ac_link") 2>&5
  3524. ac_status=$?
  3525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3526. test $ac_status = 0; }
  3527. if { ac_try='./conftest$ac_cv_exeext'
  3528. { { case "(($ac_try" in
  3529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3530. *) ac_try_echo=$ac_try;;
  3531. esac
  3532. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3533. $as_echo "$ac_try_echo"; } >&5
  3534. (eval "$ac_try") 2>&5
  3535. ac_status=$?
  3536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3537. test $ac_status = 0; }; }; then
  3538. cross_compiling=no
  3539. else
  3540. if test "$cross_compiling" = maybe; then
  3541. cross_compiling=yes
  3542. else
  3543. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3544. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3545. as_fn_error $? "cannot run C compiled programs.
  3546. If you meant to cross compile, use \`--host'.
  3547. See \`config.log' for more details" "$LINENO" 5; }
  3548. fi
  3549. fi
  3550. fi
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3552. $as_echo "$cross_compiling" >&6; }
  3553. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3554. ac_clean_files=$ac_clean_files_save
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3556. $as_echo_n "checking for suffix of object files... " >&6; }
  3557. if ${ac_cv_objext+:} false; then :
  3558. $as_echo_n "(cached) " >&6
  3559. else
  3560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3561. /* end confdefs.h. */
  3562. int
  3563. main ()
  3564. {
  3565. ;
  3566. return 0;
  3567. }
  3568. _ACEOF
  3569. rm -f conftest.o conftest.obj
  3570. if { { ac_try="$ac_compile"
  3571. case "(($ac_try" in
  3572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3573. *) ac_try_echo=$ac_try;;
  3574. esac
  3575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3576. $as_echo "$ac_try_echo"; } >&5
  3577. (eval "$ac_compile") 2>&5
  3578. ac_status=$?
  3579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3580. test $ac_status = 0; }; then :
  3581. for ac_file in conftest.o conftest.obj conftest.*; do
  3582. test -f "$ac_file" || continue;
  3583. case $ac_file in
  3584. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3585. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3586. break;;
  3587. esac
  3588. done
  3589. else
  3590. $as_echo "$as_me: failed program was:" >&5
  3591. sed 's/^/| /' conftest.$ac_ext >&5
  3592. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3593. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3594. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3595. See \`config.log' for more details" "$LINENO" 5; }
  3596. fi
  3597. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3598. fi
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3600. $as_echo "$ac_cv_objext" >&6; }
  3601. OBJEXT=$ac_cv_objext
  3602. ac_objext=$OBJEXT
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3604. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3605. if ${ac_cv_c_compiler_gnu+:} false; then :
  3606. $as_echo_n "(cached) " >&6
  3607. else
  3608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3609. /* end confdefs.h. */
  3610. int
  3611. main ()
  3612. {
  3613. #ifndef __GNUC__
  3614. choke me
  3615. #endif
  3616. ;
  3617. return 0;
  3618. }
  3619. _ACEOF
  3620. if ac_fn_c_try_compile "$LINENO"; then :
  3621. ac_compiler_gnu=yes
  3622. else
  3623. ac_compiler_gnu=no
  3624. fi
  3625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3626. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3627. fi
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3629. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3630. if test $ac_compiler_gnu = yes; then
  3631. GCC=yes
  3632. else
  3633. GCC=
  3634. fi
  3635. ac_test_CFLAGS=${CFLAGS+set}
  3636. ac_save_CFLAGS=$CFLAGS
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3638. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3639. if ${ac_cv_prog_cc_g+:} false; then :
  3640. $as_echo_n "(cached) " >&6
  3641. else
  3642. ac_save_c_werror_flag=$ac_c_werror_flag
  3643. ac_c_werror_flag=yes
  3644. ac_cv_prog_cc_g=no
  3645. CFLAGS="-g"
  3646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3647. /* end confdefs.h. */
  3648. int
  3649. main ()
  3650. {
  3651. ;
  3652. return 0;
  3653. }
  3654. _ACEOF
  3655. if ac_fn_c_try_compile "$LINENO"; then :
  3656. ac_cv_prog_cc_g=yes
  3657. else
  3658. CFLAGS=""
  3659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3660. /* end confdefs.h. */
  3661. int
  3662. main ()
  3663. {
  3664. ;
  3665. return 0;
  3666. }
  3667. _ACEOF
  3668. if ac_fn_c_try_compile "$LINENO"; then :
  3669. else
  3670. ac_c_werror_flag=$ac_save_c_werror_flag
  3671. CFLAGS="-g"
  3672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3673. /* end confdefs.h. */
  3674. int
  3675. main ()
  3676. {
  3677. ;
  3678. return 0;
  3679. }
  3680. _ACEOF
  3681. if ac_fn_c_try_compile "$LINENO"; then :
  3682. ac_cv_prog_cc_g=yes
  3683. fi
  3684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3685. fi
  3686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3687. fi
  3688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3689. ac_c_werror_flag=$ac_save_c_werror_flag
  3690. fi
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3692. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3693. if test "$ac_test_CFLAGS" = set; then
  3694. CFLAGS=$ac_save_CFLAGS
  3695. elif test $ac_cv_prog_cc_g = yes; then
  3696. if test "$GCC" = yes; then
  3697. CFLAGS="-g -O2"
  3698. else
  3699. CFLAGS="-g"
  3700. fi
  3701. else
  3702. if test "$GCC" = yes; then
  3703. CFLAGS="-O2"
  3704. else
  3705. CFLAGS=
  3706. fi
  3707. fi
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3709. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3710. if ${ac_cv_prog_cc_c89+:} false; then :
  3711. $as_echo_n "(cached) " >&6
  3712. else
  3713. ac_cv_prog_cc_c89=no
  3714. ac_save_CC=$CC
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. #include <stdarg.h>
  3718. #include <stdio.h>
  3719. struct stat;
  3720. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3721. struct buf { int x; };
  3722. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3723. static char *e (p, i)
  3724. char **p;
  3725. int i;
  3726. {
  3727. return p[i];
  3728. }
  3729. static char *f (char * (*g) (char **, int), char **p, ...)
  3730. {
  3731. char *s;
  3732. va_list v;
  3733. va_start (v,p);
  3734. s = g (p, va_arg (v,int));
  3735. va_end (v);
  3736. return s;
  3737. }
  3738. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3739. function prototypes and stuff, but not '\xHH' hex character constants.
  3740. These don't provoke an error unfortunately, instead are silently treated
  3741. as 'x'. The following induces an error, until -std is added to get
  3742. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3743. array size at least. It's necessary to write '\x00'==0 to get something
  3744. that's true only with -std. */
  3745. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3746. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3747. inside strings and character constants. */
  3748. #define FOO(x) 'x'
  3749. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3750. int test (int i, double x);
  3751. struct s1 {int (*f) (int a);};
  3752. struct s2 {int (*f) (double a);};
  3753. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3754. int argc;
  3755. char **argv;
  3756. int
  3757. main ()
  3758. {
  3759. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3760. ;
  3761. return 0;
  3762. }
  3763. _ACEOF
  3764. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3765. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3766. do
  3767. CC="$ac_save_CC $ac_arg"
  3768. if ac_fn_c_try_compile "$LINENO"; then :
  3769. ac_cv_prog_cc_c89=$ac_arg
  3770. fi
  3771. rm -f core conftest.err conftest.$ac_objext
  3772. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3773. done
  3774. rm -f conftest.$ac_ext
  3775. CC=$ac_save_CC
  3776. fi
  3777. # AC_CACHE_VAL
  3778. case "x$ac_cv_prog_cc_c89" in
  3779. x)
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3781. $as_echo "none needed" >&6; } ;;
  3782. xno)
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3784. $as_echo "unsupported" >&6; } ;;
  3785. *)
  3786. CC="$CC $ac_cv_prog_cc_c89"
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3788. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3789. esac
  3790. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3791. fi
  3792. ac_ext=c
  3793. ac_cpp='$CPP $CPPFLAGS'
  3794. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3795. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3797. ac_ext=c
  3798. ac_cpp='$CPP $CPPFLAGS'
  3799. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3800. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3801. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3803. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3804. if ${am_cv_prog_cc_c_o+:} false; then :
  3805. $as_echo_n "(cached) " >&6
  3806. else
  3807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3808. /* end confdefs.h. */
  3809. int
  3810. main ()
  3811. {
  3812. ;
  3813. return 0;
  3814. }
  3815. _ACEOF
  3816. # Make sure it works both with $CC and with simple cc.
  3817. # Following AC_PROG_CC_C_O, we do the test twice because some
  3818. # compilers refuse to overwrite an existing .o file with -o,
  3819. # though they will create one.
  3820. am_cv_prog_cc_c_o=yes
  3821. for am_i in 1 2; do
  3822. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3823. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3824. ac_status=$?
  3825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3826. (exit $ac_status); } \
  3827. && test -f conftest2.$ac_objext; then
  3828. : OK
  3829. else
  3830. am_cv_prog_cc_c_o=no
  3831. break
  3832. fi
  3833. done
  3834. rm -f core conftest*
  3835. unset am_i
  3836. fi
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3838. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3839. if test "$am_cv_prog_cc_c_o" != yes; then
  3840. # Losing compiler, so override with the script.
  3841. # FIXME: It is wrong to rewrite CC.
  3842. # But if we don't then we get into trouble of one sort or another.
  3843. # A longer-term fix would be to have automake use am__CC in this case,
  3844. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3845. CC="$am_aux_dir/compile $CC"
  3846. fi
  3847. ac_ext=c
  3848. ac_cpp='$CPP $CPPFLAGS'
  3849. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3850. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3851. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3852. depcc="$CC" am_compiler_list=
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3854. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3855. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3859. # We make a subdir and do the tests there. Otherwise we can end up
  3860. # making bogus files that we don't know about and never remove. For
  3861. # instance it was reported that on HP-UX the gcc test will end up
  3862. # making a dummy file named 'D' -- because '-MD' means "put the output
  3863. # in D".
  3864. rm -rf conftest.dir
  3865. mkdir conftest.dir
  3866. # Copy depcomp to subdir because otherwise we won't find it if we're
  3867. # using a relative directory.
  3868. cp "$am_depcomp" conftest.dir
  3869. cd conftest.dir
  3870. # We will build objects and dependencies in a subdirectory because
  3871. # it helps to detect inapplicable dependency modes. For instance
  3872. # both Tru64's cc and ICC support -MD to output dependencies as a
  3873. # side effect of compilation, but ICC will put the dependencies in
  3874. # the current directory while Tru64 will put them in the object
  3875. # directory.
  3876. mkdir sub
  3877. am_cv_CC_dependencies_compiler_type=none
  3878. if test "$am_compiler_list" = ""; then
  3879. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3880. fi
  3881. am__universal=false
  3882. case " $depcc " in #(
  3883. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3884. esac
  3885. for depmode in $am_compiler_list; do
  3886. # Setup a source with many dependencies, because some compilers
  3887. # like to wrap large dependency lists on column 80 (with \), and
  3888. # we should not choose a depcomp mode which is confused by this.
  3889. #
  3890. # We need to recreate these files for each test, as the compiler may
  3891. # overwrite some of them when testing with obscure command lines.
  3892. # This happens at least with the AIX C compiler.
  3893. : > sub/conftest.c
  3894. for i in 1 2 3 4 5 6; do
  3895. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3896. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3897. # Solaris 10 /bin/sh.
  3898. echo '/* dummy */' > sub/conftst$i.h
  3899. done
  3900. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3901. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3902. # mode. It turns out that the SunPro C++ compiler does not properly
  3903. # handle '-M -o', and we need to detect this. Also, some Intel
  3904. # versions had trouble with output in subdirs.
  3905. am__obj=sub/conftest.${OBJEXT-o}
  3906. am__minus_obj="-o $am__obj"
  3907. case $depmode in
  3908. gcc)
  3909. # This depmode causes a compiler race in universal mode.
  3910. test "$am__universal" = false || continue
  3911. ;;
  3912. nosideeffect)
  3913. # After this tag, mechanisms are not by side-effect, so they'll
  3914. # only be used when explicitly requested.
  3915. if test "x$enable_dependency_tracking" = xyes; then
  3916. continue
  3917. else
  3918. break
  3919. fi
  3920. ;;
  3921. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3922. # This compiler won't grok '-c -o', but also, the minuso test has
  3923. # not run yet. These depmodes are late enough in the game, and
  3924. # so weak that their functioning should not be impacted.
  3925. am__obj=conftest.${OBJEXT-o}
  3926. am__minus_obj=
  3927. ;;
  3928. none) break ;;
  3929. esac
  3930. if depmode=$depmode \
  3931. source=sub/conftest.c object=$am__obj \
  3932. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3933. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3934. >/dev/null 2>conftest.err &&
  3935. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3936. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3937. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3938. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3939. # icc doesn't choke on unknown options, it will just issue warnings
  3940. # or remarks (even with -Werror). So we grep stderr for any message
  3941. # that says an option was ignored or not supported.
  3942. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3943. # icc: Command line warning: ignoring option '-M'; no argument required
  3944. # The diagnosis changed in icc 8.0:
  3945. # icc: Command line remark: option '-MP' not supported
  3946. if (grep 'ignoring option' conftest.err ||
  3947. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3948. am_cv_CC_dependencies_compiler_type=$depmode
  3949. break
  3950. fi
  3951. fi
  3952. done
  3953. cd ..
  3954. rm -rf conftest.dir
  3955. else
  3956. am_cv_CC_dependencies_compiler_type=none
  3957. fi
  3958. fi
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3960. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3961. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3962. if
  3963. test "x$enable_dependency_tracking" != xno \
  3964. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3965. am__fastdepCC_TRUE=
  3966. am__fastdepCC_FALSE='#'
  3967. else
  3968. am__fastdepCC_TRUE='#'
  3969. am__fastdepCC_FALSE=
  3970. fi
  3971. case $ac_cv_prog_cc_stdc in @%:@(
  3972. no) :
  3973. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; @%:@(
  3974. *) :
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3976. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3977. if ${ac_cv_prog_cc_c99+:} false; then :
  3978. $as_echo_n "(cached) " >&6
  3979. else
  3980. ac_cv_prog_cc_c99=no
  3981. ac_save_CC=$CC
  3982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3983. /* end confdefs.h. */
  3984. #include <stdarg.h>
  3985. #include <stdbool.h>
  3986. #include <stdlib.h>
  3987. #include <wchar.h>
  3988. #include <stdio.h>
  3989. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3990. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3991. #define showlist(...) puts (#__VA_ARGS__)
  3992. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3993. static void
  3994. test_varargs_macros (void)
  3995. {
  3996. int x = 1234;
  3997. int y = 5678;
  3998. debug ("Flag");
  3999. debug ("X = %d\n", x);
  4000. showlist (The first, second, and third items.);
  4001. report (x>y, "x is %d but y is %d", x, y);
  4002. }
  4003. // Check long long types.
  4004. #define BIG64 18446744073709551615ull
  4005. #define BIG32 4294967295ul
  4006. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4007. #if !BIG_OK
  4008. your preprocessor is broken;
  4009. #endif
  4010. #if BIG_OK
  4011. #else
  4012. your preprocessor is broken;
  4013. #endif
  4014. static long long int bignum = -9223372036854775807LL;
  4015. static unsigned long long int ubignum = BIG64;
  4016. struct incomplete_array
  4017. {
  4018. int datasize;
  4019. double data[];
  4020. };
  4021. struct named_init {
  4022. int number;
  4023. const wchar_t *name;
  4024. double average;
  4025. };
  4026. typedef const char *ccp;
  4027. static inline int
  4028. test_restrict (ccp restrict text)
  4029. {
  4030. // See if C++-style comments work.
  4031. // Iterate through items via the restricted pointer.
  4032. // Also check for declarations in for loops.
  4033. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4034. continue;
  4035. return 0;
  4036. }
  4037. // Check varargs and va_copy.
  4038. static void
  4039. test_varargs (const char *format, ...)
  4040. {
  4041. va_list args;
  4042. va_start (args, format);
  4043. va_list args_copy;
  4044. va_copy (args_copy, args);
  4045. const char *str;
  4046. int number;
  4047. float fnumber;
  4048. while (*format)
  4049. {
  4050. switch (*format++)
  4051. {
  4052. case 's': // string
  4053. str = va_arg (args_copy, const char *);
  4054. break;
  4055. case 'd': // int
  4056. number = va_arg (args_copy, int);
  4057. break;
  4058. case 'f': // float
  4059. fnumber = va_arg (args_copy, double);
  4060. break;
  4061. default:
  4062. break;
  4063. }
  4064. }
  4065. va_end (args_copy);
  4066. va_end (args);
  4067. }
  4068. int
  4069. main ()
  4070. {
  4071. // Check bool.
  4072. _Bool success = false;
  4073. // Check restrict.
  4074. if (test_restrict ("String literal") == 0)
  4075. success = true;
  4076. char *restrict newvar = "Another string";
  4077. // Check varargs.
  4078. test_varargs ("s, d' f .", "string", 65, 34.234);
  4079. test_varargs_macros ();
  4080. // Check flexible array members.
  4081. struct incomplete_array *ia =
  4082. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4083. ia->datasize = 10;
  4084. for (int i = 0; i < ia->datasize; ++i)
  4085. ia->data[i] = i * 1.234;
  4086. // Check named initializers.
  4087. struct named_init ni = {
  4088. .number = 34,
  4089. .name = L"Test wide string",
  4090. .average = 543.34343,
  4091. };
  4092. ni.number = 58;
  4093. int dynamic_array[ni.number];
  4094. dynamic_array[ni.number - 1] = 543;
  4095. // work around unused variable warnings
  4096. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4097. || dynamic_array[ni.number - 1] != 543);
  4098. ;
  4099. return 0;
  4100. }
  4101. _ACEOF
  4102. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4103. do
  4104. CC="$ac_save_CC $ac_arg"
  4105. if ac_fn_c_try_compile "$LINENO"; then :
  4106. ac_cv_prog_cc_c99=$ac_arg
  4107. fi
  4108. rm -f core conftest.err conftest.$ac_objext
  4109. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4110. done
  4111. rm -f conftest.$ac_ext
  4112. CC=$ac_save_CC
  4113. fi
  4114. # AC_CACHE_VAL
  4115. case "x$ac_cv_prog_cc_c99" in
  4116. x)
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4118. $as_echo "none needed" >&6; } ;;
  4119. xno)
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4121. $as_echo "unsupported" >&6; } ;;
  4122. *)
  4123. CC="$CC $ac_cv_prog_cc_c99"
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4125. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4126. esac
  4127. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4128. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4129. else
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4131. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4132. if ${ac_cv_prog_cc_c89+:} false; then :
  4133. $as_echo_n "(cached) " >&6
  4134. else
  4135. ac_cv_prog_cc_c89=no
  4136. ac_save_CC=$CC
  4137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4138. /* end confdefs.h. */
  4139. #include <stdarg.h>
  4140. #include <stdio.h>
  4141. struct stat;
  4142. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4143. struct buf { int x; };
  4144. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4145. static char *e (p, i)
  4146. char **p;
  4147. int i;
  4148. {
  4149. return p[i];
  4150. }
  4151. static char *f (char * (*g) (char **, int), char **p, ...)
  4152. {
  4153. char *s;
  4154. va_list v;
  4155. va_start (v,p);
  4156. s = g (p, va_arg (v,int));
  4157. va_end (v);
  4158. return s;
  4159. }
  4160. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4161. function prototypes and stuff, but not '\xHH' hex character constants.
  4162. These don't provoke an error unfortunately, instead are silently treated
  4163. as 'x'. The following induces an error, until -std is added to get
  4164. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4165. array size at least. It's necessary to write '\x00'==0 to get something
  4166. that's true only with -std. */
  4167. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4168. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4169. inside strings and character constants. */
  4170. #define FOO(x) 'x'
  4171. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4172. int test (int i, double x);
  4173. struct s1 {int (*f) (int a);};
  4174. struct s2 {int (*f) (double a);};
  4175. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4176. int argc;
  4177. char **argv;
  4178. int
  4179. main ()
  4180. {
  4181. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4182. ;
  4183. return 0;
  4184. }
  4185. _ACEOF
  4186. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4187. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4188. do
  4189. CC="$ac_save_CC $ac_arg"
  4190. if ac_fn_c_try_compile "$LINENO"; then :
  4191. ac_cv_prog_cc_c89=$ac_arg
  4192. fi
  4193. rm -f core conftest.err conftest.$ac_objext
  4194. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4195. done
  4196. rm -f conftest.$ac_ext
  4197. CC=$ac_save_CC
  4198. fi
  4199. # AC_CACHE_VAL
  4200. case "x$ac_cv_prog_cc_c89" in
  4201. x)
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4203. $as_echo "none needed" >&6; } ;;
  4204. xno)
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4206. $as_echo "unsupported" >&6; } ;;
  4207. *)
  4208. CC="$CC $ac_cv_prog_cc_c89"
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4210. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4211. esac
  4212. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4213. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4214. else
  4215. ac_cv_prog_cc_stdc=no
  4216. fi
  4217. fi
  4218. ;;
  4219. esac
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4221. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4222. if ${ac_cv_prog_cc_stdc+:} false; then :
  4223. $as_echo_n "(cached) " >&6
  4224. fi
  4225. case $ac_cv_prog_cc_stdc in @%:@(
  4226. no) :
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4228. $as_echo "unsupported" >&6; } ;; @%:@(
  4229. '') :
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4231. $as_echo "none needed" >&6; } ;; @%:@(
  4232. *) :
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4234. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4235. esac
  4236. ac_ext=c
  4237. ac_cpp='$CPP $CPPFLAGS'
  4238. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4239. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4240. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4242. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4243. # On Suns, sometimes $CPP names a directory.
  4244. if test -n "$CPP" && test -d "$CPP"; then
  4245. CPP=
  4246. fi
  4247. if test -z "$CPP"; then
  4248. if ${ac_cv_prog_CPP+:} false; then :
  4249. $as_echo_n "(cached) " >&6
  4250. else
  4251. # Double quotes because CPP needs to be expanded
  4252. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4253. do
  4254. ac_preproc_ok=false
  4255. for ac_c_preproc_warn_flag in '' yes
  4256. do
  4257. # Use a header file that comes with gcc, so configuring glibc
  4258. # with a fresh cross-compiler works.
  4259. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4260. # <limits.h> exists even on freestanding compilers.
  4261. # On the NeXT, cc -E runs the code through the compiler's parser,
  4262. # not just through cpp. "Syntax error" is here to catch this case.
  4263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4264. /* end confdefs.h. */
  4265. @%:@ifdef __STDC__
  4266. @%:@ include <limits.h>
  4267. @%:@else
  4268. @%:@ include <assert.h>
  4269. @%:@endif
  4270. Syntax error
  4271. _ACEOF
  4272. if ac_fn_c_try_cpp "$LINENO"; then :
  4273. else
  4274. # Broken: fails on valid input.
  4275. continue
  4276. fi
  4277. rm -f conftest.err conftest.i conftest.$ac_ext
  4278. # OK, works on sane cases. Now check whether nonexistent headers
  4279. # can be detected and how.
  4280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4281. /* end confdefs.h. */
  4282. @%:@include <ac_nonexistent.h>
  4283. _ACEOF
  4284. if ac_fn_c_try_cpp "$LINENO"; then :
  4285. # Broken: success on invalid input.
  4286. continue
  4287. else
  4288. # Passes both tests.
  4289. ac_preproc_ok=:
  4290. break
  4291. fi
  4292. rm -f conftest.err conftest.i conftest.$ac_ext
  4293. done
  4294. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4295. rm -f conftest.i conftest.err conftest.$ac_ext
  4296. if $ac_preproc_ok; then :
  4297. break
  4298. fi
  4299. done
  4300. ac_cv_prog_CPP=$CPP
  4301. fi
  4302. CPP=$ac_cv_prog_CPP
  4303. else
  4304. ac_cv_prog_CPP=$CPP
  4305. fi
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4307. $as_echo "$CPP" >&6; }
  4308. ac_preproc_ok=false
  4309. for ac_c_preproc_warn_flag in '' yes
  4310. do
  4311. # Use a header file that comes with gcc, so configuring glibc
  4312. # with a fresh cross-compiler works.
  4313. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4314. # <limits.h> exists even on freestanding compilers.
  4315. # On the NeXT, cc -E runs the code through the compiler's parser,
  4316. # not just through cpp. "Syntax error" is here to catch this case.
  4317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4318. /* end confdefs.h. */
  4319. @%:@ifdef __STDC__
  4320. @%:@ include <limits.h>
  4321. @%:@else
  4322. @%:@ include <assert.h>
  4323. @%:@endif
  4324. Syntax error
  4325. _ACEOF
  4326. if ac_fn_c_try_cpp "$LINENO"; then :
  4327. else
  4328. # Broken: fails on valid input.
  4329. continue
  4330. fi
  4331. rm -f conftest.err conftest.i conftest.$ac_ext
  4332. # OK, works on sane cases. Now check whether nonexistent headers
  4333. # can be detected and how.
  4334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4335. /* end confdefs.h. */
  4336. @%:@include <ac_nonexistent.h>
  4337. _ACEOF
  4338. if ac_fn_c_try_cpp "$LINENO"; then :
  4339. # Broken: success on invalid input.
  4340. continue
  4341. else
  4342. # Passes both tests.
  4343. ac_preproc_ok=:
  4344. break
  4345. fi
  4346. rm -f conftest.err conftest.i conftest.$ac_ext
  4347. done
  4348. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4349. rm -f conftest.i conftest.err conftest.$ac_ext
  4350. if $ac_preproc_ok; then :
  4351. else
  4352. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4353. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4354. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4355. See \`config.log' for more details" "$LINENO" 5; }
  4356. fi
  4357. ac_ext=c
  4358. ac_cpp='$CPP $CPPFLAGS'
  4359. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4360. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4361. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4363. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4364. if ${ac_cv_path_GREP+:} false; then :
  4365. $as_echo_n "(cached) " >&6
  4366. else
  4367. if test -z "$GREP"; then
  4368. ac_path_GREP_found=false
  4369. # Loop through the user's path and test for each of PROGNAME-LIST
  4370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4371. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4372. do
  4373. IFS=$as_save_IFS
  4374. test -z "$as_dir" && as_dir=.
  4375. for ac_prog in grep ggrep; do
  4376. for ac_exec_ext in '' $ac_executable_extensions; do
  4377. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4378. as_fn_executable_p "$ac_path_GREP" || continue
  4379. # Check for GNU ac_path_GREP and select it if it is found.
  4380. # Check for GNU $ac_path_GREP
  4381. case `"$ac_path_GREP" --version 2>&1` in
  4382. *GNU*)
  4383. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4384. *)
  4385. ac_count=0
  4386. $as_echo_n 0123456789 >"conftest.in"
  4387. while :
  4388. do
  4389. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4390. mv "conftest.tmp" "conftest.in"
  4391. cp "conftest.in" "conftest.nl"
  4392. $as_echo 'GREP' >> "conftest.nl"
  4393. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4394. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4395. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4396. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4397. # Best one so far, save it but keep looking for a better one
  4398. ac_cv_path_GREP="$ac_path_GREP"
  4399. ac_path_GREP_max=$ac_count
  4400. fi
  4401. # 10*(2^10) chars as input seems more than enough
  4402. test $ac_count -gt 10 && break
  4403. done
  4404. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4405. esac
  4406. $ac_path_GREP_found && break 3
  4407. done
  4408. done
  4409. done
  4410. IFS=$as_save_IFS
  4411. if test -z "$ac_cv_path_GREP"; then
  4412. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4413. fi
  4414. else
  4415. ac_cv_path_GREP=$GREP
  4416. fi
  4417. fi
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4419. $as_echo "$ac_cv_path_GREP" >&6; }
  4420. GREP="$ac_cv_path_GREP"
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4422. $as_echo_n "checking for egrep... " >&6; }
  4423. if ${ac_cv_path_EGREP+:} false; then :
  4424. $as_echo_n "(cached) " >&6
  4425. else
  4426. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4427. then ac_cv_path_EGREP="$GREP -E"
  4428. else
  4429. if test -z "$EGREP"; then
  4430. ac_path_EGREP_found=false
  4431. # Loop through the user's path and test for each of PROGNAME-LIST
  4432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4433. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4434. do
  4435. IFS=$as_save_IFS
  4436. test -z "$as_dir" && as_dir=.
  4437. for ac_prog in egrep; do
  4438. for ac_exec_ext in '' $ac_executable_extensions; do
  4439. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4440. as_fn_executable_p "$ac_path_EGREP" || continue
  4441. # Check for GNU ac_path_EGREP and select it if it is found.
  4442. # Check for GNU $ac_path_EGREP
  4443. case `"$ac_path_EGREP" --version 2>&1` in
  4444. *GNU*)
  4445. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4446. *)
  4447. ac_count=0
  4448. $as_echo_n 0123456789 >"conftest.in"
  4449. while :
  4450. do
  4451. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4452. mv "conftest.tmp" "conftest.in"
  4453. cp "conftest.in" "conftest.nl"
  4454. $as_echo 'EGREP' >> "conftest.nl"
  4455. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4456. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4457. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4458. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4459. # Best one so far, save it but keep looking for a better one
  4460. ac_cv_path_EGREP="$ac_path_EGREP"
  4461. ac_path_EGREP_max=$ac_count
  4462. fi
  4463. # 10*(2^10) chars as input seems more than enough
  4464. test $ac_count -gt 10 && break
  4465. done
  4466. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4467. esac
  4468. $ac_path_EGREP_found && break 3
  4469. done
  4470. done
  4471. done
  4472. IFS=$as_save_IFS
  4473. if test -z "$ac_cv_path_EGREP"; then
  4474. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4475. fi
  4476. else
  4477. ac_cv_path_EGREP=$EGREP
  4478. fi
  4479. fi
  4480. fi
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4482. $as_echo "$ac_cv_path_EGREP" >&6; }
  4483. EGREP="$ac_cv_path_EGREP"
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4485. $as_echo_n "checking for ANSI C header files... " >&6; }
  4486. if ${ac_cv_header_stdc+:} false; then :
  4487. $as_echo_n "(cached) " >&6
  4488. else
  4489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4490. /* end confdefs.h. */
  4491. #include <stdlib.h>
  4492. #include <stdarg.h>
  4493. #include <string.h>
  4494. #include <float.h>
  4495. int
  4496. main ()
  4497. {
  4498. ;
  4499. return 0;
  4500. }
  4501. _ACEOF
  4502. if ac_fn_c_try_compile "$LINENO"; then :
  4503. ac_cv_header_stdc=yes
  4504. else
  4505. ac_cv_header_stdc=no
  4506. fi
  4507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4508. if test $ac_cv_header_stdc = yes; then
  4509. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4511. /* end confdefs.h. */
  4512. #include <string.h>
  4513. _ACEOF
  4514. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4515. $EGREP "memchr" >/dev/null 2>&1; then :
  4516. else
  4517. ac_cv_header_stdc=no
  4518. fi
  4519. rm -f conftest*
  4520. fi
  4521. if test $ac_cv_header_stdc = yes; then
  4522. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4524. /* end confdefs.h. */
  4525. #include <stdlib.h>
  4526. _ACEOF
  4527. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4528. $EGREP "free" >/dev/null 2>&1; then :
  4529. else
  4530. ac_cv_header_stdc=no
  4531. fi
  4532. rm -f conftest*
  4533. fi
  4534. if test $ac_cv_header_stdc = yes; then
  4535. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4536. if test "$cross_compiling" = yes; then :
  4537. :
  4538. else
  4539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4540. /* end confdefs.h. */
  4541. #include <ctype.h>
  4542. #include <stdlib.h>
  4543. #if ((' ' & 0x0FF) == 0x020)
  4544. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4545. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4546. #else
  4547. # define ISLOWER(c) \
  4548. (('a' <= (c) && (c) <= 'i') \
  4549. || ('j' <= (c) && (c) <= 'r') \
  4550. || ('s' <= (c) && (c) <= 'z'))
  4551. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4552. #endif
  4553. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4554. int
  4555. main ()
  4556. {
  4557. int i;
  4558. for (i = 0; i < 256; i++)
  4559. if (XOR (islower (i), ISLOWER (i))
  4560. || toupper (i) != TOUPPER (i))
  4561. return 2;
  4562. return 0;
  4563. }
  4564. _ACEOF
  4565. if ac_fn_c_try_run "$LINENO"; then :
  4566. else
  4567. ac_cv_header_stdc=no
  4568. fi
  4569. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4570. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4571. fi
  4572. fi
  4573. fi
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4575. $as_echo "$ac_cv_header_stdc" >&6; }
  4576. if test $ac_cv_header_stdc = yes; then
  4577. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  4578. fi
  4579. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4580. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4581. inttypes.h stdint.h unistd.h
  4582. do :
  4583. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4584. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4585. "
  4586. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4587. cat >>confdefs.h <<_ACEOF
  4588. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4589. _ACEOF
  4590. fi
  4591. done
  4592. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4593. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4594. MINIX=yes
  4595. else
  4596. MINIX=
  4597. fi
  4598. if test "$MINIX" = yes; then
  4599. $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
  4600. $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
  4601. $as_echo "@%:@define _MINIX 1" >>confdefs.h
  4602. fi
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4604. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4605. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4609. /* end confdefs.h. */
  4610. # define __EXTENSIONS__ 1
  4611. $ac_includes_default
  4612. int
  4613. main ()
  4614. {
  4615. ;
  4616. return 0;
  4617. }
  4618. _ACEOF
  4619. if ac_fn_c_try_compile "$LINENO"; then :
  4620. ac_cv_safe_to_define___extensions__=yes
  4621. else
  4622. ac_cv_safe_to_define___extensions__=no
  4623. fi
  4624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4625. fi
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4627. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4628. test $ac_cv_safe_to_define___extensions__ = yes &&
  4629. $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
  4630. $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
  4631. $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
  4632. $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4633. $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4635. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4636. if ${ac_cv_c_bigendian+:} false; then :
  4637. $as_echo_n "(cached) " >&6
  4638. else
  4639. ac_cv_c_bigendian=unknown
  4640. # See if we're dealing with a universal compiler.
  4641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4642. /* end confdefs.h. */
  4643. #ifndef __APPLE_CC__
  4644. not a universal capable compiler
  4645. #endif
  4646. typedef int dummy;
  4647. _ACEOF
  4648. if ac_fn_c_try_compile "$LINENO"; then :
  4649. # Check for potential -arch flags. It is not universal unless
  4650. # there are at least two -arch flags with different values.
  4651. ac_arch=
  4652. ac_prev=
  4653. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4654. if test -n "$ac_prev"; then
  4655. case $ac_word in
  4656. i?86 | x86_64 | ppc | ppc64)
  4657. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4658. ac_arch=$ac_word
  4659. else
  4660. ac_cv_c_bigendian=universal
  4661. break
  4662. fi
  4663. ;;
  4664. esac
  4665. ac_prev=
  4666. elif test "x$ac_word" = "x-arch"; then
  4667. ac_prev=arch
  4668. fi
  4669. done
  4670. fi
  4671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4672. if test $ac_cv_c_bigendian = unknown; then
  4673. # See if sys/param.h defines the BYTE_ORDER macro.
  4674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4675. /* end confdefs.h. */
  4676. #include <sys/types.h>
  4677. #include <sys/param.h>
  4678. int
  4679. main ()
  4680. {
  4681. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4682. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4683. && LITTLE_ENDIAN)
  4684. bogus endian macros
  4685. #endif
  4686. ;
  4687. return 0;
  4688. }
  4689. _ACEOF
  4690. if ac_fn_c_try_compile "$LINENO"; then :
  4691. # It does; now see whether it defined to BIG_ENDIAN or not.
  4692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4693. /* end confdefs.h. */
  4694. #include <sys/types.h>
  4695. #include <sys/param.h>
  4696. int
  4697. main ()
  4698. {
  4699. #if BYTE_ORDER != BIG_ENDIAN
  4700. not big endian
  4701. #endif
  4702. ;
  4703. return 0;
  4704. }
  4705. _ACEOF
  4706. if ac_fn_c_try_compile "$LINENO"; then :
  4707. ac_cv_c_bigendian=yes
  4708. else
  4709. ac_cv_c_bigendian=no
  4710. fi
  4711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4712. fi
  4713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4714. fi
  4715. if test $ac_cv_c_bigendian = unknown; then
  4716. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4718. /* end confdefs.h. */
  4719. #include <limits.h>
  4720. int
  4721. main ()
  4722. {
  4723. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4724. bogus endian macros
  4725. #endif
  4726. ;
  4727. return 0;
  4728. }
  4729. _ACEOF
  4730. if ac_fn_c_try_compile "$LINENO"; then :
  4731. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4733. /* end confdefs.h. */
  4734. #include <limits.h>
  4735. int
  4736. main ()
  4737. {
  4738. #ifndef _BIG_ENDIAN
  4739. not big endian
  4740. #endif
  4741. ;
  4742. return 0;
  4743. }
  4744. _ACEOF
  4745. if ac_fn_c_try_compile "$LINENO"; then :
  4746. ac_cv_c_bigendian=yes
  4747. else
  4748. ac_cv_c_bigendian=no
  4749. fi
  4750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4751. fi
  4752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4753. fi
  4754. if test $ac_cv_c_bigendian = unknown; then
  4755. # Compile a test program.
  4756. if test "$cross_compiling" = yes; then :
  4757. # Try to guess by grepping values from an object file.
  4758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4759. /* end confdefs.h. */
  4760. short int ascii_mm[] =
  4761. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4762. short int ascii_ii[] =
  4763. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4764. int use_ascii (int i) {
  4765. return ascii_mm[i] + ascii_ii[i];
  4766. }
  4767. short int ebcdic_ii[] =
  4768. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4769. short int ebcdic_mm[] =
  4770. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4771. int use_ebcdic (int i) {
  4772. return ebcdic_mm[i] + ebcdic_ii[i];
  4773. }
  4774. extern int foo;
  4775. int
  4776. main ()
  4777. {
  4778. return use_ascii (foo) == use_ebcdic (foo);
  4779. ;
  4780. return 0;
  4781. }
  4782. _ACEOF
  4783. if ac_fn_c_try_compile "$LINENO"; then :
  4784. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4785. ac_cv_c_bigendian=yes
  4786. fi
  4787. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4788. if test "$ac_cv_c_bigendian" = unknown; then
  4789. ac_cv_c_bigendian=no
  4790. else
  4791. # finding both strings is unlikely to happen, but who knows?
  4792. ac_cv_c_bigendian=unknown
  4793. fi
  4794. fi
  4795. fi
  4796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4797. else
  4798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4799. /* end confdefs.h. */
  4800. $ac_includes_default
  4801. int
  4802. main ()
  4803. {
  4804. /* Are we little or big endian? From Harbison&Steele. */
  4805. union
  4806. {
  4807. long int l;
  4808. char c[sizeof (long int)];
  4809. } u;
  4810. u.l = 1;
  4811. return u.c[sizeof (long int) - 1] == 1;
  4812. ;
  4813. return 0;
  4814. }
  4815. _ACEOF
  4816. if ac_fn_c_try_run "$LINENO"; then :
  4817. ac_cv_c_bigendian=no
  4818. else
  4819. ac_cv_c_bigendian=yes
  4820. fi
  4821. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4822. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4823. fi
  4824. fi
  4825. fi
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4827. $as_echo "$ac_cv_c_bigendian" >&6; }
  4828. case $ac_cv_c_bigendian in #(
  4829. yes)
  4830. $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
  4831. ;; #(
  4832. no)
  4833. ;; #(
  4834. universal)
  4835. $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4836. ;; #(
  4837. *)
  4838. as_fn_error $? "unknown endianness
  4839. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4840. esac
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4842. $as_echo_n "checking whether ln -s works... " >&6; }
  4843. LN_S=$as_ln_s
  4844. if test "$LN_S" = "ln -s"; then
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4846. $as_echo "yes" >&6; }
  4847. else
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4849. $as_echo "no, using $LN_S" >&6; }
  4850. fi
  4851. case `pwd` in
  4852. *\ * | *\ *)
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4854. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4855. esac
  4856. macro_version='2.4.2'
  4857. macro_revision='1.3337'
  4858. ltmain="$ac_aux_dir/ltmain.sh"
  4859. # Backslashify metacharacters that are still active within
  4860. # double-quoted strings.
  4861. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4862. # Same as above, but do not quote variable references.
  4863. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4864. # Sed substitution to delay expansion of an escaped shell variable in a
  4865. # double_quote_subst'ed string.
  4866. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4867. # Sed substitution to delay expansion of an escaped single quote.
  4868. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4869. # Sed substitution to avoid accidental globbing in evaled expressions
  4870. no_glob_subst='s/\*/\\\*/g'
  4871. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4872. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4873. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4875. $as_echo_n "checking how to print strings... " >&6; }
  4876. # Test print first, because it will be a builtin if present.
  4877. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4878. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4879. ECHO='print -r --'
  4880. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4881. ECHO='printf %s\n'
  4882. else
  4883. # Use this function as a fallback that always works.
  4884. func_fallback_echo ()
  4885. {
  4886. eval 'cat <<_LTECHO_EOF
  4887. $1
  4888. _LTECHO_EOF'
  4889. }
  4890. ECHO='func_fallback_echo'
  4891. fi
  4892. # func_echo_all arg...
  4893. # Invoke $ECHO with all args, space-separated.
  4894. func_echo_all ()
  4895. {
  4896. $ECHO ""
  4897. }
  4898. case "$ECHO" in
  4899. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4900. $as_echo "printf" >&6; } ;;
  4901. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4902. $as_echo "print -r" >&6; } ;;
  4903. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4904. $as_echo "cat" >&6; } ;;
  4905. esac
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4907. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4908. if ${ac_cv_path_SED+:} false; then :
  4909. $as_echo_n "(cached) " >&6
  4910. else
  4911. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4912. for ac_i in 1 2 3 4 5 6 7; do
  4913. ac_script="$ac_script$as_nl$ac_script"
  4914. done
  4915. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4916. { ac_script=; unset ac_script;}
  4917. if test -z "$SED"; then
  4918. ac_path_SED_found=false
  4919. # Loop through the user's path and test for each of PROGNAME-LIST
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_prog in sed gsed; do
  4926. for ac_exec_ext in '' $ac_executable_extensions; do
  4927. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4928. as_fn_executable_p "$ac_path_SED" || continue
  4929. # Check for GNU ac_path_SED and select it if it is found.
  4930. # Check for GNU $ac_path_SED
  4931. case `"$ac_path_SED" --version 2>&1` in
  4932. *GNU*)
  4933. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4934. *)
  4935. ac_count=0
  4936. $as_echo_n 0123456789 >"conftest.in"
  4937. while :
  4938. do
  4939. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4940. mv "conftest.tmp" "conftest.in"
  4941. cp "conftest.in" "conftest.nl"
  4942. $as_echo '' >> "conftest.nl"
  4943. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4944. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4945. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4946. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4947. # Best one so far, save it but keep looking for a better one
  4948. ac_cv_path_SED="$ac_path_SED"
  4949. ac_path_SED_max=$ac_count
  4950. fi
  4951. # 10*(2^10) chars as input seems more than enough
  4952. test $ac_count -gt 10 && break
  4953. done
  4954. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4955. esac
  4956. $ac_path_SED_found && break 3
  4957. done
  4958. done
  4959. done
  4960. IFS=$as_save_IFS
  4961. if test -z "$ac_cv_path_SED"; then
  4962. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4963. fi
  4964. else
  4965. ac_cv_path_SED=$SED
  4966. fi
  4967. fi
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4969. $as_echo "$ac_cv_path_SED" >&6; }
  4970. SED="$ac_cv_path_SED"
  4971. rm -f conftest.sed
  4972. test -z "$SED" && SED=sed
  4973. Xsed="$SED -e 1s/^X//"
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4975. $as_echo_n "checking for fgrep... " >&6; }
  4976. if ${ac_cv_path_FGREP+:} false; then :
  4977. $as_echo_n "(cached) " >&6
  4978. else
  4979. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4980. then ac_cv_path_FGREP="$GREP -F"
  4981. else
  4982. if test -z "$FGREP"; then
  4983. ac_path_FGREP_found=false
  4984. # Loop through the user's path and test for each of PROGNAME-LIST
  4985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4986. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4987. do
  4988. IFS=$as_save_IFS
  4989. test -z "$as_dir" && as_dir=.
  4990. for ac_prog in fgrep; do
  4991. for ac_exec_ext in '' $ac_executable_extensions; do
  4992. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4993. as_fn_executable_p "$ac_path_FGREP" || continue
  4994. # Check for GNU ac_path_FGREP and select it if it is found.
  4995. # Check for GNU $ac_path_FGREP
  4996. case `"$ac_path_FGREP" --version 2>&1` in
  4997. *GNU*)
  4998. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4999. *)
  5000. ac_count=0
  5001. $as_echo_n 0123456789 >"conftest.in"
  5002. while :
  5003. do
  5004. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5005. mv "conftest.tmp" "conftest.in"
  5006. cp "conftest.in" "conftest.nl"
  5007. $as_echo 'FGREP' >> "conftest.nl"
  5008. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5009. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5010. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5011. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5012. # Best one so far, save it but keep looking for a better one
  5013. ac_cv_path_FGREP="$ac_path_FGREP"
  5014. ac_path_FGREP_max=$ac_count
  5015. fi
  5016. # 10*(2^10) chars as input seems more than enough
  5017. test $ac_count -gt 10 && break
  5018. done
  5019. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5020. esac
  5021. $ac_path_FGREP_found && break 3
  5022. done
  5023. done
  5024. done
  5025. IFS=$as_save_IFS
  5026. if test -z "$ac_cv_path_FGREP"; then
  5027. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5028. fi
  5029. else
  5030. ac_cv_path_FGREP=$FGREP
  5031. fi
  5032. fi
  5033. fi
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5035. $as_echo "$ac_cv_path_FGREP" >&6; }
  5036. FGREP="$ac_cv_path_FGREP"
  5037. test -z "$GREP" && GREP=grep
  5038. @%:@ Check whether --with-gnu-ld was given.
  5039. if test "${with_gnu_ld+set}" = set; then :
  5040. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5041. else
  5042. with_gnu_ld=no
  5043. fi
  5044. ac_prog=ld
  5045. if test "$GCC" = yes; then
  5046. # Check if gcc -print-prog-name=ld gives a path.
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5048. $as_echo_n "checking for ld used by $CC... " >&6; }
  5049. case $host in
  5050. *-*-mingw*)
  5051. # gcc leaves a trailing carriage return which upsets mingw
  5052. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5053. *)
  5054. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5055. esac
  5056. case $ac_prog in
  5057. # Accept absolute paths.
  5058. [\\/]* | ?:[\\/]*)
  5059. re_direlt='/[^/][^/]*/\.\./'
  5060. # Canonicalize the pathname of ld
  5061. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5062. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5063. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5064. done
  5065. test -z "$LD" && LD="$ac_prog"
  5066. ;;
  5067. "")
  5068. # If it fails, then pretend we aren't using GCC.
  5069. ac_prog=ld
  5070. ;;
  5071. *)
  5072. # If it is relative, then search for the first ld in PATH.
  5073. with_gnu_ld=unknown
  5074. ;;
  5075. esac
  5076. elif test "$with_gnu_ld" = yes; then
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5078. $as_echo_n "checking for GNU ld... " >&6; }
  5079. else
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5081. $as_echo_n "checking for non-GNU ld... " >&6; }
  5082. fi
  5083. if ${lt_cv_path_LD+:} false; then :
  5084. $as_echo_n "(cached) " >&6
  5085. else
  5086. if test -z "$LD"; then
  5087. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5088. for ac_dir in $PATH; do
  5089. IFS="$lt_save_ifs"
  5090. test -z "$ac_dir" && ac_dir=.
  5091. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5092. lt_cv_path_LD="$ac_dir/$ac_prog"
  5093. # Check to see if the program is GNU ld. I'd rather use --version,
  5094. # but apparently some variants of GNU ld only accept -v.
  5095. # Break only if it was the GNU/non-GNU ld that we prefer.
  5096. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5097. *GNU* | *'with BFD'*)
  5098. test "$with_gnu_ld" != no && break
  5099. ;;
  5100. *)
  5101. test "$with_gnu_ld" != yes && break
  5102. ;;
  5103. esac
  5104. fi
  5105. done
  5106. IFS="$lt_save_ifs"
  5107. else
  5108. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5109. fi
  5110. fi
  5111. LD="$lt_cv_path_LD"
  5112. if test -n "$LD"; then
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5114. $as_echo "$LD" >&6; }
  5115. else
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5117. $as_echo "no" >&6; }
  5118. fi
  5119. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5121. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5122. if ${lt_cv_prog_gnu_ld+:} false; then :
  5123. $as_echo_n "(cached) " >&6
  5124. else
  5125. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5126. case `$LD -v 2>&1 </dev/null` in
  5127. *GNU* | *'with BFD'*)
  5128. lt_cv_prog_gnu_ld=yes
  5129. ;;
  5130. *)
  5131. lt_cv_prog_gnu_ld=no
  5132. ;;
  5133. esac
  5134. fi
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5136. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5137. with_gnu_ld=$lt_cv_prog_gnu_ld
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5139. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5140. if ${lt_cv_path_NM+:} false; then :
  5141. $as_echo_n "(cached) " >&6
  5142. else
  5143. if test -n "$NM"; then
  5144. # Let the user override the test.
  5145. lt_cv_path_NM="$NM"
  5146. else
  5147. lt_nm_to_check="${ac_tool_prefix}nm"
  5148. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5149. lt_nm_to_check="$lt_nm_to_check nm"
  5150. fi
  5151. for lt_tmp_nm in $lt_nm_to_check; do
  5152. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5153. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5154. IFS="$lt_save_ifs"
  5155. test -z "$ac_dir" && ac_dir=.
  5156. tmp_nm="$ac_dir/$lt_tmp_nm"
  5157. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5158. # Check to see if the nm accepts a BSD-compat flag.
  5159. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5160. # nm: unknown option "B" ignored
  5161. # Tru64's nm complains that /dev/null is an invalid object file
  5162. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5163. */dev/null* | *'Invalid file or object type'*)
  5164. lt_cv_path_NM="$tmp_nm -B"
  5165. break
  5166. ;;
  5167. *)
  5168. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5169. */dev/null*)
  5170. lt_cv_path_NM="$tmp_nm -p"
  5171. break
  5172. ;;
  5173. *)
  5174. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5175. continue # so that we can try to find one that supports BSD flags
  5176. ;;
  5177. esac
  5178. ;;
  5179. esac
  5180. fi
  5181. done
  5182. IFS="$lt_save_ifs"
  5183. done
  5184. : ${lt_cv_path_NM=no}
  5185. fi
  5186. fi
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5188. $as_echo "$lt_cv_path_NM" >&6; }
  5189. if test "$lt_cv_path_NM" != "no"; then
  5190. NM="$lt_cv_path_NM"
  5191. else
  5192. # Didn't find any BSD compatible name lister, look for dumpbin.
  5193. if test -n "$DUMPBIN"; then :
  5194. # Let the user override the test.
  5195. else
  5196. if test -n "$ac_tool_prefix"; then
  5197. for ac_prog in dumpbin "link -dump"
  5198. do
  5199. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5200. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5202. $as_echo_n "checking for $ac_word... " >&6; }
  5203. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5204. $as_echo_n "(cached) " >&6
  5205. else
  5206. if test -n "$DUMPBIN"; then
  5207. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5208. else
  5209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5210. for as_dir in $PATH
  5211. do
  5212. IFS=$as_save_IFS
  5213. test -z "$as_dir" && as_dir=.
  5214. for ac_exec_ext in '' $ac_executable_extensions; do
  5215. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5216. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5218. break 2
  5219. fi
  5220. done
  5221. done
  5222. IFS=$as_save_IFS
  5223. fi
  5224. fi
  5225. DUMPBIN=$ac_cv_prog_DUMPBIN
  5226. if test -n "$DUMPBIN"; then
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5228. $as_echo "$DUMPBIN" >&6; }
  5229. else
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5231. $as_echo "no" >&6; }
  5232. fi
  5233. test -n "$DUMPBIN" && break
  5234. done
  5235. fi
  5236. if test -z "$DUMPBIN"; then
  5237. ac_ct_DUMPBIN=$DUMPBIN
  5238. for ac_prog in dumpbin "link -dump"
  5239. do
  5240. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5241. set dummy $ac_prog; ac_word=$2
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5243. $as_echo_n "checking for $ac_word... " >&6; }
  5244. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5245. $as_echo_n "(cached) " >&6
  5246. else
  5247. if test -n "$ac_ct_DUMPBIN"; then
  5248. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5249. else
  5250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5251. for as_dir in $PATH
  5252. do
  5253. IFS=$as_save_IFS
  5254. test -z "$as_dir" && as_dir=.
  5255. for ac_exec_ext in '' $ac_executable_extensions; do
  5256. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5257. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5258. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5259. break 2
  5260. fi
  5261. done
  5262. done
  5263. IFS=$as_save_IFS
  5264. fi
  5265. fi
  5266. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5267. if test -n "$ac_ct_DUMPBIN"; then
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5269. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5270. else
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5272. $as_echo "no" >&6; }
  5273. fi
  5274. test -n "$ac_ct_DUMPBIN" && break
  5275. done
  5276. if test "x$ac_ct_DUMPBIN" = x; then
  5277. DUMPBIN=":"
  5278. else
  5279. case $cross_compiling:$ac_tool_warned in
  5280. yes:)
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5282. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5283. ac_tool_warned=yes ;;
  5284. esac
  5285. DUMPBIN=$ac_ct_DUMPBIN
  5286. fi
  5287. fi
  5288. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5289. *COFF*)
  5290. DUMPBIN="$DUMPBIN -symbols"
  5291. ;;
  5292. *)
  5293. DUMPBIN=:
  5294. ;;
  5295. esac
  5296. fi
  5297. if test "$DUMPBIN" != ":"; then
  5298. NM="$DUMPBIN"
  5299. fi
  5300. fi
  5301. test -z "$NM" && NM=nm
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5303. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5304. if ${lt_cv_nm_interface+:} false; then :
  5305. $as_echo_n "(cached) " >&6
  5306. else
  5307. lt_cv_nm_interface="BSD nm"
  5308. echo "int some_variable = 0;" > conftest.$ac_ext
  5309. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5310. (eval "$ac_compile" 2>conftest.err)
  5311. cat conftest.err >&5
  5312. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5313. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5314. cat conftest.err >&5
  5315. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5316. cat conftest.out >&5
  5317. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5318. lt_cv_nm_interface="MS dumpbin"
  5319. fi
  5320. rm -f conftest*
  5321. fi
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5323. $as_echo "$lt_cv_nm_interface" >&6; }
  5324. # find the maximum length of command line arguments
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5326. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5327. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5328. $as_echo_n "(cached) " >&6
  5329. else
  5330. i=0
  5331. teststring="ABCD"
  5332. case $build_os in
  5333. msdosdjgpp*)
  5334. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5335. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5336. # during glob expansion). Even if it were fixed, the result of this
  5337. # check would be larger than it should be.
  5338. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5339. ;;
  5340. gnu*)
  5341. # Under GNU Hurd, this test is not required because there is
  5342. # no limit to the length of command line arguments.
  5343. # Libtool will interpret -1 as no limit whatsoever
  5344. lt_cv_sys_max_cmd_len=-1;
  5345. ;;
  5346. cygwin* | mingw* | cegcc*)
  5347. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5348. # about 5 minutes as the teststring grows exponentially.
  5349. # Worse, since 9x/ME are not pre-emptively multitasking,
  5350. # you end up with a "frozen" computer, even though with patience
  5351. # the test eventually succeeds (with a max line length of 256k).
  5352. # Instead, let's just punt: use the minimum linelength reported by
  5353. # all of the supported platforms: 8192 (on NT/2K/XP).
  5354. lt_cv_sys_max_cmd_len=8192;
  5355. ;;
  5356. mint*)
  5357. # On MiNT this can take a long time and run out of memory.
  5358. lt_cv_sys_max_cmd_len=8192;
  5359. ;;
  5360. amigaos*)
  5361. # On AmigaOS with pdksh, this test takes hours, literally.
  5362. # So we just punt and use a minimum line length of 8192.
  5363. lt_cv_sys_max_cmd_len=8192;
  5364. ;;
  5365. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5366. # This has been around since 386BSD, at least. Likely further.
  5367. if test -x /sbin/sysctl; then
  5368. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5369. elif test -x /usr/sbin/sysctl; then
  5370. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5371. else
  5372. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5373. fi
  5374. # And add a safety zone
  5375. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5376. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5377. ;;
  5378. interix*)
  5379. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5380. lt_cv_sys_max_cmd_len=196608
  5381. ;;
  5382. os2*)
  5383. # The test takes a long time on OS/2.
  5384. lt_cv_sys_max_cmd_len=8192
  5385. ;;
  5386. osf*)
  5387. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5388. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5389. # nice to cause kernel panics so lets avoid the loop below.
  5390. # First set a reasonable default.
  5391. lt_cv_sys_max_cmd_len=16384
  5392. #
  5393. if test -x /sbin/sysconfig; then
  5394. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5395. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5396. esac
  5397. fi
  5398. ;;
  5399. sco3.2v5*)
  5400. lt_cv_sys_max_cmd_len=102400
  5401. ;;
  5402. sysv5* | sco5v6* | sysv4.2uw2*)
  5403. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5404. if test -n "$kargmax"; then
  5405. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5406. else
  5407. lt_cv_sys_max_cmd_len=32768
  5408. fi
  5409. ;;
  5410. *)
  5411. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5412. if test -n "$lt_cv_sys_max_cmd_len" && \
  5413. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5414. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5415. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5416. else
  5417. # Make teststring a little bigger before we do anything with it.
  5418. # a 1K string should be a reasonable start.
  5419. for i in 1 2 3 4 5 6 7 8 ; do
  5420. teststring=$teststring$teststring
  5421. done
  5422. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5423. # If test is not a shell built-in, we'll probably end up computing a
  5424. # maximum length that is only half of the actual maximum length, but
  5425. # we can't tell.
  5426. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5427. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5428. test $i != 17 # 1/2 MB should be enough
  5429. do
  5430. i=`expr $i + 1`
  5431. teststring=$teststring$teststring
  5432. done
  5433. # Only check the string length outside the loop.
  5434. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5435. teststring=
  5436. # Add a significant safety factor because C++ compilers can tack on
  5437. # massive amounts of additional arguments before passing them to the
  5438. # linker. It appears as though 1/2 is a usable value.
  5439. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5440. fi
  5441. ;;
  5442. esac
  5443. fi
  5444. if test -n $lt_cv_sys_max_cmd_len ; then
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5446. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5447. else
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5449. $as_echo "none" >&6; }
  5450. fi
  5451. max_cmd_len=$lt_cv_sys_max_cmd_len
  5452. : ${CP="cp -f"}
  5453. : ${MV="mv -f"}
  5454. : ${RM="rm -f"}
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5456. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5457. # Try some XSI features
  5458. xsi_shell=no
  5459. ( _lt_dummy="a/b/c"
  5460. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5461. = c,a/b,b/c, \
  5462. && eval 'test $(( 1 + 1 )) -eq 2 \
  5463. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5464. && xsi_shell=yes
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5466. $as_echo "$xsi_shell" >&6; }
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5468. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5469. lt_shell_append=no
  5470. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5471. >/dev/null 2>&1 \
  5472. && lt_shell_append=yes
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5474. $as_echo "$lt_shell_append" >&6; }
  5475. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5476. lt_unset=unset
  5477. else
  5478. lt_unset=false
  5479. fi
  5480. # test EBCDIC or ASCII
  5481. case `echo X|tr X '\101'` in
  5482. A) # ASCII based system
  5483. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5484. lt_SP2NL='tr \040 \012'
  5485. lt_NL2SP='tr \015\012 \040\040'
  5486. ;;
  5487. *) # EBCDIC based system
  5488. lt_SP2NL='tr \100 \n'
  5489. lt_NL2SP='tr \r\n \100\100'
  5490. ;;
  5491. esac
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5493. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5494. if ${lt_cv_to_host_file_cmd+:} false; then :
  5495. $as_echo_n "(cached) " >&6
  5496. else
  5497. case $host in
  5498. *-*-mingw* )
  5499. case $build in
  5500. *-*-mingw* ) # actually msys
  5501. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5502. ;;
  5503. *-*-cygwin* )
  5504. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5505. ;;
  5506. * ) # otherwise, assume *nix
  5507. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5508. ;;
  5509. esac
  5510. ;;
  5511. *-*-cygwin* )
  5512. case $build in
  5513. *-*-mingw* ) # actually msys
  5514. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5515. ;;
  5516. *-*-cygwin* )
  5517. lt_cv_to_host_file_cmd=func_convert_file_noop
  5518. ;;
  5519. * ) # otherwise, assume *nix
  5520. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5521. ;;
  5522. esac
  5523. ;;
  5524. * ) # unhandled hosts (and "normal" native builds)
  5525. lt_cv_to_host_file_cmd=func_convert_file_noop
  5526. ;;
  5527. esac
  5528. fi
  5529. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5531. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5533. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5534. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5535. $as_echo_n "(cached) " >&6
  5536. else
  5537. #assume ordinary cross tools, or native build.
  5538. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5539. case $host in
  5540. *-*-mingw* )
  5541. case $build in
  5542. *-*-mingw* ) # actually msys
  5543. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5544. ;;
  5545. esac
  5546. ;;
  5547. esac
  5548. fi
  5549. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5551. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5553. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5554. if ${lt_cv_ld_reload_flag+:} false; then :
  5555. $as_echo_n "(cached) " >&6
  5556. else
  5557. lt_cv_ld_reload_flag='-r'
  5558. fi
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5560. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5561. reload_flag=$lt_cv_ld_reload_flag
  5562. case $reload_flag in
  5563. "" | " "*) ;;
  5564. *) reload_flag=" $reload_flag" ;;
  5565. esac
  5566. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5567. case $host_os in
  5568. cygwin* | mingw* | pw32* | cegcc*)
  5569. if test "$GCC" != yes; then
  5570. reload_cmds=false
  5571. fi
  5572. ;;
  5573. darwin*)
  5574. if test "$GCC" = yes; then
  5575. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5576. else
  5577. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5578. fi
  5579. ;;
  5580. esac
  5581. if test -n "$ac_tool_prefix"; then
  5582. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5583. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5585. $as_echo_n "checking for $ac_word... " >&6; }
  5586. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5587. $as_echo_n "(cached) " >&6
  5588. else
  5589. if test -n "$OBJDUMP"; then
  5590. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5591. else
  5592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5593. for as_dir in $PATH
  5594. do
  5595. IFS=$as_save_IFS
  5596. test -z "$as_dir" && as_dir=.
  5597. for ac_exec_ext in '' $ac_executable_extensions; do
  5598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5599. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5601. break 2
  5602. fi
  5603. done
  5604. done
  5605. IFS=$as_save_IFS
  5606. fi
  5607. fi
  5608. OBJDUMP=$ac_cv_prog_OBJDUMP
  5609. if test -n "$OBJDUMP"; then
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5611. $as_echo "$OBJDUMP" >&6; }
  5612. else
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5614. $as_echo "no" >&6; }
  5615. fi
  5616. fi
  5617. if test -z "$ac_cv_prog_OBJDUMP"; then
  5618. ac_ct_OBJDUMP=$OBJDUMP
  5619. # Extract the first word of "objdump", so it can be a program name with args.
  5620. set dummy objdump; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$ac_ct_OBJDUMP"; then
  5627. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5646. if test -n "$ac_ct_OBJDUMP"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5648. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. if test "x$ac_ct_OBJDUMP" = x; then
  5654. OBJDUMP="false"
  5655. else
  5656. case $cross_compiling:$ac_tool_warned in
  5657. yes:)
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5659. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5660. ac_tool_warned=yes ;;
  5661. esac
  5662. OBJDUMP=$ac_ct_OBJDUMP
  5663. fi
  5664. else
  5665. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5666. fi
  5667. test -z "$OBJDUMP" && OBJDUMP=objdump
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5669. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5670. if ${lt_cv_deplibs_check_method+:} false; then :
  5671. $as_echo_n "(cached) " >&6
  5672. else
  5673. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5674. lt_cv_file_magic_test_file=
  5675. lt_cv_deplibs_check_method='unknown'
  5676. # Need to set the preceding variable on all platforms that support
  5677. # interlibrary dependencies.
  5678. # 'none' -- dependencies not supported.
  5679. # `unknown' -- same as none, but documents that we really don't know.
  5680. # 'pass_all' -- all dependencies passed with no checks.
  5681. # 'test_compile' -- check by making test program.
  5682. # 'file_magic [[regex]]' -- check by looking for files in library path
  5683. # which responds to the $file_magic_cmd with a given extended regex.
  5684. # If you have `file' or equivalent on your system and you're not sure
  5685. # whether `pass_all' will *always* work, you probably want this one.
  5686. case $host_os in
  5687. aix[4-9]*)
  5688. lt_cv_deplibs_check_method=pass_all
  5689. ;;
  5690. beos*)
  5691. lt_cv_deplibs_check_method=pass_all
  5692. ;;
  5693. bsdi[45]*)
  5694. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5695. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5696. lt_cv_file_magic_test_file=/shlib/libc.so
  5697. ;;
  5698. cygwin*)
  5699. # func_win32_libid is a shell function defined in ltmain.sh
  5700. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5701. lt_cv_file_magic_cmd='func_win32_libid'
  5702. ;;
  5703. mingw* | pw32*)
  5704. # Base MSYS/MinGW do not provide the 'file' command needed by
  5705. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5706. # unless we find 'file', for example because we are cross-compiling.
  5707. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5708. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5709. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5710. lt_cv_file_magic_cmd='func_win32_libid'
  5711. else
  5712. # Keep this pattern in sync with the one in func_win32_libid.
  5713. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5714. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5715. fi
  5716. ;;
  5717. cegcc*)
  5718. # use the weaker test based on 'objdump'. See mingw*.
  5719. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5720. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5721. ;;
  5722. darwin* | rhapsody*)
  5723. lt_cv_deplibs_check_method=pass_all
  5724. ;;
  5725. freebsd* | dragonfly*)
  5726. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5727. case $host_cpu in
  5728. i*86 )
  5729. # Not sure whether the presence of OpenBSD here was a mistake.
  5730. # Let's accept both of them until this is cleared up.
  5731. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5732. lt_cv_file_magic_cmd=/usr/bin/file
  5733. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5734. ;;
  5735. esac
  5736. else
  5737. lt_cv_deplibs_check_method=pass_all
  5738. fi
  5739. ;;
  5740. haiku*)
  5741. lt_cv_deplibs_check_method=pass_all
  5742. ;;
  5743. hpux10.20* | hpux11*)
  5744. lt_cv_file_magic_cmd=/usr/bin/file
  5745. case $host_cpu in
  5746. ia64*)
  5747. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5748. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5749. ;;
  5750. hppa*64*)
  5751. 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]'
  5752. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5753. ;;
  5754. *)
  5755. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5756. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5757. ;;
  5758. esac
  5759. ;;
  5760. interix[3-9]*)
  5761. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5762. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5763. ;;
  5764. irix5* | irix6* | nonstopux*)
  5765. case $LD in
  5766. *-32|*"-32 ") libmagic=32-bit;;
  5767. *-n32|*"-n32 ") libmagic=N32;;
  5768. *-64|*"-64 ") libmagic=64-bit;;
  5769. *) libmagic=never-match;;
  5770. esac
  5771. lt_cv_deplibs_check_method=pass_all
  5772. ;;
  5773. # This must be glibc/ELF.
  5774. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5775. lt_cv_deplibs_check_method=pass_all
  5776. ;;
  5777. netbsd* | netbsdelf*-gnu)
  5778. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5779. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5780. else
  5781. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5782. fi
  5783. ;;
  5784. newos6*)
  5785. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5786. lt_cv_file_magic_cmd=/usr/bin/file
  5787. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5788. ;;
  5789. *nto* | *qnx*)
  5790. lt_cv_deplibs_check_method=pass_all
  5791. ;;
  5792. openbsd*)
  5793. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5794. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5795. else
  5796. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5797. fi
  5798. ;;
  5799. osf3* | osf4* | osf5*)
  5800. lt_cv_deplibs_check_method=pass_all
  5801. ;;
  5802. rdos*)
  5803. lt_cv_deplibs_check_method=pass_all
  5804. ;;
  5805. solaris*)
  5806. lt_cv_deplibs_check_method=pass_all
  5807. ;;
  5808. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5809. lt_cv_deplibs_check_method=pass_all
  5810. ;;
  5811. sysv4 | sysv4.3*)
  5812. case $host_vendor in
  5813. motorola)
  5814. 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]'
  5815. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5816. ;;
  5817. ncr)
  5818. lt_cv_deplibs_check_method=pass_all
  5819. ;;
  5820. sequent)
  5821. lt_cv_file_magic_cmd='/bin/file'
  5822. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5823. ;;
  5824. sni)
  5825. lt_cv_file_magic_cmd='/bin/file'
  5826. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5827. lt_cv_file_magic_test_file=/lib/libc.so
  5828. ;;
  5829. siemens)
  5830. lt_cv_deplibs_check_method=pass_all
  5831. ;;
  5832. pc)
  5833. lt_cv_deplibs_check_method=pass_all
  5834. ;;
  5835. esac
  5836. ;;
  5837. tpf*)
  5838. lt_cv_deplibs_check_method=pass_all
  5839. ;;
  5840. esac
  5841. fi
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5843. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5844. file_magic_glob=
  5845. want_nocaseglob=no
  5846. if test "$build" = "$host"; then
  5847. case $host_os in
  5848. mingw* | pw32*)
  5849. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5850. want_nocaseglob=yes
  5851. else
  5852. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5853. fi
  5854. ;;
  5855. esac
  5856. fi
  5857. file_magic_cmd=$lt_cv_file_magic_cmd
  5858. deplibs_check_method=$lt_cv_deplibs_check_method
  5859. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5860. if test -n "$ac_tool_prefix"; then
  5861. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5862. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5864. $as_echo_n "checking for $ac_word... " >&6; }
  5865. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5866. $as_echo_n "(cached) " >&6
  5867. else
  5868. if test -n "$DLLTOOL"; then
  5869. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5870. else
  5871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5872. for as_dir in $PATH
  5873. do
  5874. IFS=$as_save_IFS
  5875. test -z "$as_dir" && as_dir=.
  5876. for ac_exec_ext in '' $ac_executable_extensions; do
  5877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5878. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5880. break 2
  5881. fi
  5882. done
  5883. done
  5884. IFS=$as_save_IFS
  5885. fi
  5886. fi
  5887. DLLTOOL=$ac_cv_prog_DLLTOOL
  5888. if test -n "$DLLTOOL"; then
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5890. $as_echo "$DLLTOOL" >&6; }
  5891. else
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5893. $as_echo "no" >&6; }
  5894. fi
  5895. fi
  5896. if test -z "$ac_cv_prog_DLLTOOL"; then
  5897. ac_ct_DLLTOOL=$DLLTOOL
  5898. # Extract the first word of "dlltool", so it can be a program name with args.
  5899. set dummy dlltool; ac_word=$2
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5901. $as_echo_n "checking for $ac_word... " >&6; }
  5902. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5903. $as_echo_n "(cached) " >&6
  5904. else
  5905. if test -n "$ac_ct_DLLTOOL"; then
  5906. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5907. else
  5908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5909. for as_dir in $PATH
  5910. do
  5911. IFS=$as_save_IFS
  5912. test -z "$as_dir" && as_dir=.
  5913. for ac_exec_ext in '' $ac_executable_extensions; do
  5914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5915. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5917. break 2
  5918. fi
  5919. done
  5920. done
  5921. IFS=$as_save_IFS
  5922. fi
  5923. fi
  5924. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5925. if test -n "$ac_ct_DLLTOOL"; then
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5927. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5928. else
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5930. $as_echo "no" >&6; }
  5931. fi
  5932. if test "x$ac_ct_DLLTOOL" = x; then
  5933. DLLTOOL="false"
  5934. else
  5935. case $cross_compiling:$ac_tool_warned in
  5936. yes:)
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5939. ac_tool_warned=yes ;;
  5940. esac
  5941. DLLTOOL=$ac_ct_DLLTOOL
  5942. fi
  5943. else
  5944. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5945. fi
  5946. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5948. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5949. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5950. $as_echo_n "(cached) " >&6
  5951. else
  5952. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5953. case $host_os in
  5954. cygwin* | mingw* | pw32* | cegcc*)
  5955. # two different shell functions defined in ltmain.sh
  5956. # decide which to use based on capabilities of $DLLTOOL
  5957. case `$DLLTOOL --help 2>&1` in
  5958. *--identify-strict*)
  5959. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5960. ;;
  5961. *)
  5962. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5963. ;;
  5964. esac
  5965. ;;
  5966. *)
  5967. # fallback: assume linklib IS sharedlib
  5968. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5969. ;;
  5970. esac
  5971. fi
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5973. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5974. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5975. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5976. if test -n "$ac_tool_prefix"; then
  5977. for ac_prog in ar
  5978. do
  5979. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5980. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5982. $as_echo_n "checking for $ac_word... " >&6; }
  5983. if ${ac_cv_prog_AR+:} false; then :
  5984. $as_echo_n "(cached) " >&6
  5985. else
  5986. if test -n "$AR"; then
  5987. ac_cv_prog_AR="$AR" # Let the user override the test.
  5988. else
  5989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5990. for as_dir in $PATH
  5991. do
  5992. IFS=$as_save_IFS
  5993. test -z "$as_dir" && as_dir=.
  5994. for ac_exec_ext in '' $ac_executable_extensions; do
  5995. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5996. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5998. break 2
  5999. fi
  6000. done
  6001. done
  6002. IFS=$as_save_IFS
  6003. fi
  6004. fi
  6005. AR=$ac_cv_prog_AR
  6006. if test -n "$AR"; then
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6008. $as_echo "$AR" >&6; }
  6009. else
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6011. $as_echo "no" >&6; }
  6012. fi
  6013. test -n "$AR" && break
  6014. done
  6015. fi
  6016. if test -z "$AR"; then
  6017. ac_ct_AR=$AR
  6018. for ac_prog in ar
  6019. do
  6020. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6021. set dummy $ac_prog; ac_word=$2
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6023. $as_echo_n "checking for $ac_word... " >&6; }
  6024. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6025. $as_echo_n "(cached) " >&6
  6026. else
  6027. if test -n "$ac_ct_AR"; then
  6028. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6029. else
  6030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6031. for as_dir in $PATH
  6032. do
  6033. IFS=$as_save_IFS
  6034. test -z "$as_dir" && as_dir=.
  6035. for ac_exec_ext in '' $ac_executable_extensions; do
  6036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6037. ac_cv_prog_ac_ct_AR="$ac_prog"
  6038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6039. break 2
  6040. fi
  6041. done
  6042. done
  6043. IFS=$as_save_IFS
  6044. fi
  6045. fi
  6046. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6047. if test -n "$ac_ct_AR"; then
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6049. $as_echo "$ac_ct_AR" >&6; }
  6050. else
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6052. $as_echo "no" >&6; }
  6053. fi
  6054. test -n "$ac_ct_AR" && break
  6055. done
  6056. if test "x$ac_ct_AR" = x; then
  6057. AR="false"
  6058. else
  6059. case $cross_compiling:$ac_tool_warned in
  6060. yes:)
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6062. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6063. ac_tool_warned=yes ;;
  6064. esac
  6065. AR=$ac_ct_AR
  6066. fi
  6067. fi
  6068. : ${AR=ar}
  6069. : ${AR_FLAGS=cru}
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6071. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6072. if ${lt_cv_ar_at_file+:} false; then :
  6073. $as_echo_n "(cached) " >&6
  6074. else
  6075. lt_cv_ar_at_file=no
  6076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6077. /* end confdefs.h. */
  6078. int
  6079. main ()
  6080. {
  6081. ;
  6082. return 0;
  6083. }
  6084. _ACEOF
  6085. if ac_fn_c_try_compile "$LINENO"; then :
  6086. echo conftest.$ac_objext > conftest.lst
  6087. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6088. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6089. (eval $lt_ar_try) 2>&5
  6090. ac_status=$?
  6091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6092. test $ac_status = 0; }
  6093. if test "$ac_status" -eq 0; then
  6094. # Ensure the archiver fails upon bogus file names.
  6095. rm -f conftest.$ac_objext libconftest.a
  6096. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6097. (eval $lt_ar_try) 2>&5
  6098. ac_status=$?
  6099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6100. test $ac_status = 0; }
  6101. if test "$ac_status" -ne 0; then
  6102. lt_cv_ar_at_file=@
  6103. fi
  6104. fi
  6105. rm -f conftest.* libconftest.a
  6106. fi
  6107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6108. fi
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6110. $as_echo "$lt_cv_ar_at_file" >&6; }
  6111. if test "x$lt_cv_ar_at_file" = xno; then
  6112. archiver_list_spec=
  6113. else
  6114. archiver_list_spec=$lt_cv_ar_at_file
  6115. fi
  6116. if test -n "$ac_tool_prefix"; then
  6117. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6118. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6120. $as_echo_n "checking for $ac_word... " >&6; }
  6121. if ${ac_cv_prog_STRIP+:} false; then :
  6122. $as_echo_n "(cached) " >&6
  6123. else
  6124. if test -n "$STRIP"; then
  6125. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6126. else
  6127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6128. for as_dir in $PATH
  6129. do
  6130. IFS=$as_save_IFS
  6131. test -z "$as_dir" && as_dir=.
  6132. for ac_exec_ext in '' $ac_executable_extensions; do
  6133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6134. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6136. break 2
  6137. fi
  6138. done
  6139. done
  6140. IFS=$as_save_IFS
  6141. fi
  6142. fi
  6143. STRIP=$ac_cv_prog_STRIP
  6144. if test -n "$STRIP"; then
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6146. $as_echo "$STRIP" >&6; }
  6147. else
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6149. $as_echo "no" >&6; }
  6150. fi
  6151. fi
  6152. if test -z "$ac_cv_prog_STRIP"; then
  6153. ac_ct_STRIP=$STRIP
  6154. # Extract the first word of "strip", so it can be a program name with args.
  6155. set dummy strip; ac_word=$2
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6157. $as_echo_n "checking for $ac_word... " >&6; }
  6158. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6159. $as_echo_n "(cached) " >&6
  6160. else
  6161. if test -n "$ac_ct_STRIP"; then
  6162. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6163. else
  6164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6165. for as_dir in $PATH
  6166. do
  6167. IFS=$as_save_IFS
  6168. test -z "$as_dir" && as_dir=.
  6169. for ac_exec_ext in '' $ac_executable_extensions; do
  6170. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6171. ac_cv_prog_ac_ct_STRIP="strip"
  6172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6173. break 2
  6174. fi
  6175. done
  6176. done
  6177. IFS=$as_save_IFS
  6178. fi
  6179. fi
  6180. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6181. if test -n "$ac_ct_STRIP"; then
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6183. $as_echo "$ac_ct_STRIP" >&6; }
  6184. else
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6186. $as_echo "no" >&6; }
  6187. fi
  6188. if test "x$ac_ct_STRIP" = x; then
  6189. STRIP=":"
  6190. else
  6191. case $cross_compiling:$ac_tool_warned in
  6192. yes:)
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6195. ac_tool_warned=yes ;;
  6196. esac
  6197. STRIP=$ac_ct_STRIP
  6198. fi
  6199. else
  6200. STRIP="$ac_cv_prog_STRIP"
  6201. fi
  6202. test -z "$STRIP" && STRIP=:
  6203. if test -n "$ac_tool_prefix"; then
  6204. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6205. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6207. $as_echo_n "checking for $ac_word... " >&6; }
  6208. if ${ac_cv_prog_RANLIB+:} false; then :
  6209. $as_echo_n "(cached) " >&6
  6210. else
  6211. if test -n "$RANLIB"; then
  6212. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6213. else
  6214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6215. for as_dir in $PATH
  6216. do
  6217. IFS=$as_save_IFS
  6218. test -z "$as_dir" && as_dir=.
  6219. for ac_exec_ext in '' $ac_executable_extensions; do
  6220. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6221. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6223. break 2
  6224. fi
  6225. done
  6226. done
  6227. IFS=$as_save_IFS
  6228. fi
  6229. fi
  6230. RANLIB=$ac_cv_prog_RANLIB
  6231. if test -n "$RANLIB"; then
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6233. $as_echo "$RANLIB" >&6; }
  6234. else
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6236. $as_echo "no" >&6; }
  6237. fi
  6238. fi
  6239. if test -z "$ac_cv_prog_RANLIB"; then
  6240. ac_ct_RANLIB=$RANLIB
  6241. # Extract the first word of "ranlib", so it can be a program name with args.
  6242. set dummy ranlib; ac_word=$2
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6244. $as_echo_n "checking for $ac_word... " >&6; }
  6245. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6246. $as_echo_n "(cached) " >&6
  6247. else
  6248. if test -n "$ac_ct_RANLIB"; then
  6249. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6250. else
  6251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6252. for as_dir in $PATH
  6253. do
  6254. IFS=$as_save_IFS
  6255. test -z "$as_dir" && as_dir=.
  6256. for ac_exec_ext in '' $ac_executable_extensions; do
  6257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6258. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6260. break 2
  6261. fi
  6262. done
  6263. done
  6264. IFS=$as_save_IFS
  6265. fi
  6266. fi
  6267. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6268. if test -n "$ac_ct_RANLIB"; then
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6270. $as_echo "$ac_ct_RANLIB" >&6; }
  6271. else
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6273. $as_echo "no" >&6; }
  6274. fi
  6275. if test "x$ac_ct_RANLIB" = x; then
  6276. RANLIB=":"
  6277. else
  6278. case $cross_compiling:$ac_tool_warned in
  6279. yes:)
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6281. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6282. ac_tool_warned=yes ;;
  6283. esac
  6284. RANLIB=$ac_ct_RANLIB
  6285. fi
  6286. else
  6287. RANLIB="$ac_cv_prog_RANLIB"
  6288. fi
  6289. test -z "$RANLIB" && RANLIB=:
  6290. # Determine commands to create old-style static archives.
  6291. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6292. old_postinstall_cmds='chmod 644 $oldlib'
  6293. old_postuninstall_cmds=
  6294. if test -n "$RANLIB"; then
  6295. case $host_os in
  6296. openbsd*)
  6297. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6298. ;;
  6299. *)
  6300. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6301. ;;
  6302. esac
  6303. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6304. fi
  6305. case $host_os in
  6306. darwin*)
  6307. lock_old_archive_extraction=yes ;;
  6308. *)
  6309. lock_old_archive_extraction=no ;;
  6310. esac
  6311. # If no C compiler was specified, use CC.
  6312. LTCC=${LTCC-"$CC"}
  6313. # If no C compiler flags were specified, use CFLAGS.
  6314. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6315. # Allow CC to be a program name with arguments.
  6316. compiler=$CC
  6317. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6319. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6320. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6321. $as_echo_n "(cached) " >&6
  6322. else
  6323. # These are sane defaults that work on at least a few old systems.
  6324. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6325. # Character class describing NM global symbol codes.
  6326. symcode='[BCDEGRST]'
  6327. # Regexp to match symbols that can be accessed directly from C.
  6328. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6329. # Define system-specific variables.
  6330. case $host_os in
  6331. aix*)
  6332. symcode='[BCDT]'
  6333. ;;
  6334. cygwin* | mingw* | pw32* | cegcc*)
  6335. symcode='[ABCDGISTW]'
  6336. ;;
  6337. hpux*)
  6338. if test "$host_cpu" = ia64; then
  6339. symcode='[ABCDEGRST]'
  6340. fi
  6341. ;;
  6342. irix* | nonstopux*)
  6343. symcode='[BCDEGRST]'
  6344. ;;
  6345. osf*)
  6346. symcode='[BCDEGQRST]'
  6347. ;;
  6348. solaris*)
  6349. symcode='[BDRT]'
  6350. ;;
  6351. sco3.2v5*)
  6352. symcode='[DT]'
  6353. ;;
  6354. sysv4.2uw2*)
  6355. symcode='[DT]'
  6356. ;;
  6357. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6358. symcode='[ABDT]'
  6359. ;;
  6360. sysv4)
  6361. symcode='[DFNSTU]'
  6362. ;;
  6363. esac
  6364. # If we're using GNU nm, then use its standard symbol codes.
  6365. case `$NM -V 2>&1` in
  6366. *GNU* | *'with BFD'*)
  6367. symcode='[ABCDGIRSTW]' ;;
  6368. esac
  6369. # Transform an extracted symbol line into a proper C declaration.
  6370. # Some systems (esp. on ia64) link data and code symbols differently,
  6371. # so use this general approach.
  6372. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6373. # Transform an extracted symbol line into symbol name and symbol address
  6374. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6375. 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'"
  6376. # Handle CRLF in mingw tool chain
  6377. opt_cr=
  6378. case $build_os in
  6379. mingw*)
  6380. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6381. ;;
  6382. esac
  6383. # Try without a prefix underscore, then with it.
  6384. for ac_symprfx in "" "_"; do
  6385. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6386. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6387. # Write the raw and C identifiers.
  6388. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6389. # Fake it for dumpbin and say T for any non-static function
  6390. # and D for any global variable.
  6391. # Also find C++ and __fastcall symbols from MSVC++,
  6392. # which start with @ or ?.
  6393. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6394. " {last_section=section; section=\$ 3};"\
  6395. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6396. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6397. " \$ 0!~/External *\|/{next};"\
  6398. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6399. " {if(hide[section]) next};"\
  6400. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6401. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6402. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6403. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6404. " ' prfx=^$ac_symprfx"
  6405. else
  6406. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6407. fi
  6408. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6409. # Check to see that the pipe works correctly.
  6410. pipe_works=no
  6411. rm -f conftest*
  6412. cat > conftest.$ac_ext <<_LT_EOF
  6413. #ifdef __cplusplus
  6414. extern "C" {
  6415. #endif
  6416. char nm_test_var;
  6417. void nm_test_func(void);
  6418. void nm_test_func(void){}
  6419. #ifdef __cplusplus
  6420. }
  6421. #endif
  6422. int main(){nm_test_var='a';nm_test_func();return(0);}
  6423. _LT_EOF
  6424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6425. (eval $ac_compile) 2>&5
  6426. ac_status=$?
  6427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6428. test $ac_status = 0; }; then
  6429. # Now try to grab the symbols.
  6430. nlist=conftest.nm
  6431. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6432. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6433. ac_status=$?
  6434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6435. test $ac_status = 0; } && test -s "$nlist"; then
  6436. # Try sorting and uniquifying the output.
  6437. if sort "$nlist" | uniq > "$nlist"T; then
  6438. mv -f "$nlist"T "$nlist"
  6439. else
  6440. rm -f "$nlist"T
  6441. fi
  6442. # Make sure that we snagged all the symbols we need.
  6443. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6444. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6445. cat <<_LT_EOF > conftest.$ac_ext
  6446. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6447. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6448. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6449. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6450. # define LT@&t@_DLSYM_CONST
  6451. #elif defined(__osf__)
  6452. /* This system does not cope well with relocations in const data. */
  6453. # define LT@&t@_DLSYM_CONST
  6454. #else
  6455. # define LT@&t@_DLSYM_CONST const
  6456. #endif
  6457. #ifdef __cplusplus
  6458. extern "C" {
  6459. #endif
  6460. _LT_EOF
  6461. # Now generate the symbol file.
  6462. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6463. cat <<_LT_EOF >> conftest.$ac_ext
  6464. /* The mapping between symbol names and symbols. */
  6465. LT@&t@_DLSYM_CONST struct {
  6466. const char *name;
  6467. void *address;
  6468. }
  6469. lt__PROGRAM__LTX_preloaded_symbols[] =
  6470. {
  6471. { "@PROGRAM@", (void *) 0 },
  6472. _LT_EOF
  6473. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6474. cat <<\_LT_EOF >> conftest.$ac_ext
  6475. {0, (void *) 0}
  6476. };
  6477. /* This works around a problem in FreeBSD linker */
  6478. #ifdef FREEBSD_WORKAROUND
  6479. static const void *lt_preloaded_setup() {
  6480. return lt__PROGRAM__LTX_preloaded_symbols;
  6481. }
  6482. #endif
  6483. #ifdef __cplusplus
  6484. }
  6485. #endif
  6486. _LT_EOF
  6487. # Now try linking the two files.
  6488. mv conftest.$ac_objext conftstm.$ac_objext
  6489. lt_globsym_save_LIBS=$LIBS
  6490. lt_globsym_save_CFLAGS=$CFLAGS
  6491. LIBS="conftstm.$ac_objext"
  6492. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6494. (eval $ac_link) 2>&5
  6495. ac_status=$?
  6496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6497. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6498. pipe_works=yes
  6499. fi
  6500. LIBS=$lt_globsym_save_LIBS
  6501. CFLAGS=$lt_globsym_save_CFLAGS
  6502. else
  6503. echo "cannot find nm_test_func in $nlist" >&5
  6504. fi
  6505. else
  6506. echo "cannot find nm_test_var in $nlist" >&5
  6507. fi
  6508. else
  6509. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6510. fi
  6511. else
  6512. echo "$progname: failed program was:" >&5
  6513. cat conftest.$ac_ext >&5
  6514. fi
  6515. rm -rf conftest* conftst*
  6516. # Do not use the global_symbol_pipe unless it works.
  6517. if test "$pipe_works" = yes; then
  6518. break
  6519. else
  6520. lt_cv_sys_global_symbol_pipe=
  6521. fi
  6522. done
  6523. fi
  6524. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6525. lt_cv_sys_global_symbol_to_cdecl=
  6526. fi
  6527. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6529. $as_echo "failed" >&6; }
  6530. else
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6532. $as_echo "ok" >&6; }
  6533. fi
  6534. # Response file support.
  6535. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6536. nm_file_list_spec='@'
  6537. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6538. nm_file_list_spec='@'
  6539. fi
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6541. $as_echo_n "checking for sysroot... " >&6; }
  6542. @%:@ Check whether --with-sysroot was given.
  6543. if test "${with_sysroot+set}" = set; then :
  6544. withval=$with_sysroot;
  6545. else
  6546. with_sysroot=no
  6547. fi
  6548. lt_sysroot=
  6549. case ${with_sysroot} in #(
  6550. yes)
  6551. if test "$GCC" = yes; then
  6552. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6553. fi
  6554. ;; #(
  6555. /*)
  6556. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6557. ;; #(
  6558. no|'')
  6559. ;; #(
  6560. *)
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6562. $as_echo "${with_sysroot}" >&6; }
  6563. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6564. ;;
  6565. esac
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6567. $as_echo "${lt_sysroot:-no}" >&6; }
  6568. @%:@ Check whether --enable-libtool-lock was given.
  6569. if test "${enable_libtool_lock+set}" = set; then :
  6570. enableval=$enable_libtool_lock;
  6571. fi
  6572. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6573. # Some flags need to be propagated to the compiler or linker for good
  6574. # libtool support.
  6575. case $host in
  6576. ia64-*-hpux*)
  6577. # Find out which ABI we are using.
  6578. echo 'int i;' > conftest.$ac_ext
  6579. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6580. (eval $ac_compile) 2>&5
  6581. ac_status=$?
  6582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6583. test $ac_status = 0; }; then
  6584. case `/usr/bin/file conftest.$ac_objext` in
  6585. *ELF-32*)
  6586. HPUX_IA64_MODE="32"
  6587. ;;
  6588. *ELF-64*)
  6589. HPUX_IA64_MODE="64"
  6590. ;;
  6591. esac
  6592. fi
  6593. rm -rf conftest*
  6594. ;;
  6595. *-*-irix6*)
  6596. # Find out which ABI we are using.
  6597. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6598. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6599. (eval $ac_compile) 2>&5
  6600. ac_status=$?
  6601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6602. test $ac_status = 0; }; then
  6603. if test "$lt_cv_prog_gnu_ld" = yes; then
  6604. case `/usr/bin/file conftest.$ac_objext` in
  6605. *32-bit*)
  6606. LD="${LD-ld} -melf32bsmip"
  6607. ;;
  6608. *N32*)
  6609. LD="${LD-ld} -melf32bmipn32"
  6610. ;;
  6611. *64-bit*)
  6612. LD="${LD-ld} -melf64bmip"
  6613. ;;
  6614. esac
  6615. else
  6616. case `/usr/bin/file conftest.$ac_objext` in
  6617. *32-bit*)
  6618. LD="${LD-ld} -32"
  6619. ;;
  6620. *N32*)
  6621. LD="${LD-ld} -n32"
  6622. ;;
  6623. *64-bit*)
  6624. LD="${LD-ld} -64"
  6625. ;;
  6626. esac
  6627. fi
  6628. fi
  6629. rm -rf conftest*
  6630. ;;
  6631. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6632. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6633. # Find out which ABI we are using.
  6634. echo 'int i;' > conftest.$ac_ext
  6635. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6636. (eval $ac_compile) 2>&5
  6637. ac_status=$?
  6638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6639. test $ac_status = 0; }; then
  6640. case `/usr/bin/file conftest.o` in
  6641. *32-bit*)
  6642. case $host in
  6643. x86_64-*kfreebsd*-gnu)
  6644. LD="${LD-ld} -m elf_i386_fbsd"
  6645. ;;
  6646. x86_64-*linux*)
  6647. case `/usr/bin/file conftest.o` in
  6648. *x86-64*)
  6649. LD="${LD-ld} -m elf32_x86_64"
  6650. ;;
  6651. *)
  6652. LD="${LD-ld} -m elf_i386"
  6653. ;;
  6654. esac
  6655. ;;
  6656. powerpc64le-*)
  6657. LD="${LD-ld} -m elf32lppclinux"
  6658. ;;
  6659. powerpc64-*)
  6660. LD="${LD-ld} -m elf32ppclinux"
  6661. ;;
  6662. s390x-*linux*)
  6663. LD="${LD-ld} -m elf_s390"
  6664. ;;
  6665. sparc64-*linux*)
  6666. LD="${LD-ld} -m elf32_sparc"
  6667. ;;
  6668. esac
  6669. ;;
  6670. *64-bit*)
  6671. case $host in
  6672. x86_64-*kfreebsd*-gnu)
  6673. LD="${LD-ld} -m elf_x86_64_fbsd"
  6674. ;;
  6675. x86_64-*linux*)
  6676. LD="${LD-ld} -m elf_x86_64"
  6677. ;;
  6678. powerpcle-*)
  6679. LD="${LD-ld} -m elf64lppc"
  6680. ;;
  6681. powerpc-*)
  6682. LD="${LD-ld} -m elf64ppc"
  6683. ;;
  6684. s390*-*linux*|s390*-*tpf*)
  6685. LD="${LD-ld} -m elf64_s390"
  6686. ;;
  6687. sparc*-*linux*)
  6688. LD="${LD-ld} -m elf64_sparc"
  6689. ;;
  6690. esac
  6691. ;;
  6692. esac
  6693. fi
  6694. rm -rf conftest*
  6695. ;;
  6696. *-*-sco3.2v5*)
  6697. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6698. SAVE_CFLAGS="$CFLAGS"
  6699. CFLAGS="$CFLAGS -belf"
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6701. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6702. if ${lt_cv_cc_needs_belf+:} false; then :
  6703. $as_echo_n "(cached) " >&6
  6704. else
  6705. ac_ext=c
  6706. ac_cpp='$CPP $CPPFLAGS'
  6707. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6708. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6709. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6711. /* end confdefs.h. */
  6712. int
  6713. main ()
  6714. {
  6715. ;
  6716. return 0;
  6717. }
  6718. _ACEOF
  6719. if ac_fn_c_try_link "$LINENO"; then :
  6720. lt_cv_cc_needs_belf=yes
  6721. else
  6722. lt_cv_cc_needs_belf=no
  6723. fi
  6724. rm -f core conftest.err conftest.$ac_objext \
  6725. conftest$ac_exeext conftest.$ac_ext
  6726. ac_ext=c
  6727. ac_cpp='$CPP $CPPFLAGS'
  6728. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6729. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6730. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6731. fi
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6733. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6734. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6735. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6736. CFLAGS="$SAVE_CFLAGS"
  6737. fi
  6738. ;;
  6739. *-*solaris*)
  6740. # Find out which ABI we are using.
  6741. echo 'int i;' > conftest.$ac_ext
  6742. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6743. (eval $ac_compile) 2>&5
  6744. ac_status=$?
  6745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6746. test $ac_status = 0; }; then
  6747. case `/usr/bin/file conftest.o` in
  6748. *64-bit*)
  6749. case $lt_cv_prog_gnu_ld in
  6750. yes*)
  6751. case $host in
  6752. i?86-*-solaris*)
  6753. LD="${LD-ld} -m elf_x86_64"
  6754. ;;
  6755. sparc*-*-solaris*)
  6756. LD="${LD-ld} -m elf64_sparc"
  6757. ;;
  6758. esac
  6759. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6760. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6761. LD="${LD-ld}_sol2"
  6762. fi
  6763. ;;
  6764. *)
  6765. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6766. LD="${LD-ld} -64"
  6767. fi
  6768. ;;
  6769. esac
  6770. ;;
  6771. esac
  6772. fi
  6773. rm -rf conftest*
  6774. ;;
  6775. esac
  6776. need_locks="$enable_libtool_lock"
  6777. if test -n "$ac_tool_prefix"; then
  6778. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6779. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6781. $as_echo_n "checking for $ac_word... " >&6; }
  6782. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6783. $as_echo_n "(cached) " >&6
  6784. else
  6785. if test -n "$MANIFEST_TOOL"; then
  6786. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6787. else
  6788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6789. for as_dir in $PATH
  6790. do
  6791. IFS=$as_save_IFS
  6792. test -z "$as_dir" && as_dir=.
  6793. for ac_exec_ext in '' $ac_executable_extensions; do
  6794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6795. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6797. break 2
  6798. fi
  6799. done
  6800. done
  6801. IFS=$as_save_IFS
  6802. fi
  6803. fi
  6804. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6805. if test -n "$MANIFEST_TOOL"; then
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6807. $as_echo "$MANIFEST_TOOL" >&6; }
  6808. else
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6810. $as_echo "no" >&6; }
  6811. fi
  6812. fi
  6813. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6814. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6815. # Extract the first word of "mt", so it can be a program name with args.
  6816. set dummy mt; ac_word=$2
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6818. $as_echo_n "checking for $ac_word... " >&6; }
  6819. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6820. $as_echo_n "(cached) " >&6
  6821. else
  6822. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6823. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6824. else
  6825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6826. for as_dir in $PATH
  6827. do
  6828. IFS=$as_save_IFS
  6829. test -z "$as_dir" && as_dir=.
  6830. for ac_exec_ext in '' $ac_executable_extensions; do
  6831. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6832. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6834. break 2
  6835. fi
  6836. done
  6837. done
  6838. IFS=$as_save_IFS
  6839. fi
  6840. fi
  6841. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6842. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6844. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6845. else
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6847. $as_echo "no" >&6; }
  6848. fi
  6849. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6850. MANIFEST_TOOL=":"
  6851. else
  6852. case $cross_compiling:$ac_tool_warned in
  6853. yes:)
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6855. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6856. ac_tool_warned=yes ;;
  6857. esac
  6858. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6859. fi
  6860. else
  6861. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6862. fi
  6863. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6865. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6866. if ${lt_cv_path_mainfest_tool+:} false; then :
  6867. $as_echo_n "(cached) " >&6
  6868. else
  6869. lt_cv_path_mainfest_tool=no
  6870. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6871. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6872. cat conftest.err >&5
  6873. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6874. lt_cv_path_mainfest_tool=yes
  6875. fi
  6876. rm -f conftest*
  6877. fi
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6879. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6880. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6881. MANIFEST_TOOL=:
  6882. fi
  6883. case $host_os in
  6884. rhapsody* | darwin*)
  6885. if test -n "$ac_tool_prefix"; then
  6886. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6887. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6889. $as_echo_n "checking for $ac_word... " >&6; }
  6890. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6891. $as_echo_n "(cached) " >&6
  6892. else
  6893. if test -n "$DSYMUTIL"; then
  6894. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6895. else
  6896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6897. for as_dir in $PATH
  6898. do
  6899. IFS=$as_save_IFS
  6900. test -z "$as_dir" && as_dir=.
  6901. for ac_exec_ext in '' $ac_executable_extensions; do
  6902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6903. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6905. break 2
  6906. fi
  6907. done
  6908. done
  6909. IFS=$as_save_IFS
  6910. fi
  6911. fi
  6912. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6913. if test -n "$DSYMUTIL"; then
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6915. $as_echo "$DSYMUTIL" >&6; }
  6916. else
  6917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6918. $as_echo "no" >&6; }
  6919. fi
  6920. fi
  6921. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6922. ac_ct_DSYMUTIL=$DSYMUTIL
  6923. # Extract the first word of "dsymutil", so it can be a program name with args.
  6924. set dummy dsymutil; ac_word=$2
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6926. $as_echo_n "checking for $ac_word... " >&6; }
  6927. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6928. $as_echo_n "(cached) " >&6
  6929. else
  6930. if test -n "$ac_ct_DSYMUTIL"; then
  6931. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6932. else
  6933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6934. for as_dir in $PATH
  6935. do
  6936. IFS=$as_save_IFS
  6937. test -z "$as_dir" && as_dir=.
  6938. for ac_exec_ext in '' $ac_executable_extensions; do
  6939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6940. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6942. break 2
  6943. fi
  6944. done
  6945. done
  6946. IFS=$as_save_IFS
  6947. fi
  6948. fi
  6949. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6950. if test -n "$ac_ct_DSYMUTIL"; then
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6952. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6953. else
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6955. $as_echo "no" >&6; }
  6956. fi
  6957. if test "x$ac_ct_DSYMUTIL" = x; then
  6958. DSYMUTIL=":"
  6959. else
  6960. case $cross_compiling:$ac_tool_warned in
  6961. yes:)
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6963. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6964. ac_tool_warned=yes ;;
  6965. esac
  6966. DSYMUTIL=$ac_ct_DSYMUTIL
  6967. fi
  6968. else
  6969. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6970. fi
  6971. if test -n "$ac_tool_prefix"; then
  6972. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6973. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6975. $as_echo_n "checking for $ac_word... " >&6; }
  6976. if ${ac_cv_prog_NMEDIT+:} false; then :
  6977. $as_echo_n "(cached) " >&6
  6978. else
  6979. if test -n "$NMEDIT"; then
  6980. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6981. else
  6982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6983. for as_dir in $PATH
  6984. do
  6985. IFS=$as_save_IFS
  6986. test -z "$as_dir" && as_dir=.
  6987. for ac_exec_ext in '' $ac_executable_extensions; do
  6988. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6989. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6991. break 2
  6992. fi
  6993. done
  6994. done
  6995. IFS=$as_save_IFS
  6996. fi
  6997. fi
  6998. NMEDIT=$ac_cv_prog_NMEDIT
  6999. if test -n "$NMEDIT"; then
  7000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7001. $as_echo "$NMEDIT" >&6; }
  7002. else
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7004. $as_echo "no" >&6; }
  7005. fi
  7006. fi
  7007. if test -z "$ac_cv_prog_NMEDIT"; then
  7008. ac_ct_NMEDIT=$NMEDIT
  7009. # Extract the first word of "nmedit", so it can be a program name with args.
  7010. set dummy nmedit; ac_word=$2
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7012. $as_echo_n "checking for $ac_word... " >&6; }
  7013. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7014. $as_echo_n "(cached) " >&6
  7015. else
  7016. if test -n "$ac_ct_NMEDIT"; then
  7017. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7018. else
  7019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7020. for as_dir in $PATH
  7021. do
  7022. IFS=$as_save_IFS
  7023. test -z "$as_dir" && as_dir=.
  7024. for ac_exec_ext in '' $ac_executable_extensions; do
  7025. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7026. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7028. break 2
  7029. fi
  7030. done
  7031. done
  7032. IFS=$as_save_IFS
  7033. fi
  7034. fi
  7035. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7036. if test -n "$ac_ct_NMEDIT"; then
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7038. $as_echo "$ac_ct_NMEDIT" >&6; }
  7039. else
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7041. $as_echo "no" >&6; }
  7042. fi
  7043. if test "x$ac_ct_NMEDIT" = x; then
  7044. NMEDIT=":"
  7045. else
  7046. case $cross_compiling:$ac_tool_warned in
  7047. yes:)
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7049. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7050. ac_tool_warned=yes ;;
  7051. esac
  7052. NMEDIT=$ac_ct_NMEDIT
  7053. fi
  7054. else
  7055. NMEDIT="$ac_cv_prog_NMEDIT"
  7056. fi
  7057. if test -n "$ac_tool_prefix"; then
  7058. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7059. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7061. $as_echo_n "checking for $ac_word... " >&6; }
  7062. if ${ac_cv_prog_LIPO+:} false; then :
  7063. $as_echo_n "(cached) " >&6
  7064. else
  7065. if test -n "$LIPO"; then
  7066. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7067. else
  7068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7069. for as_dir in $PATH
  7070. do
  7071. IFS=$as_save_IFS
  7072. test -z "$as_dir" && as_dir=.
  7073. for ac_exec_ext in '' $ac_executable_extensions; do
  7074. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7075. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7077. break 2
  7078. fi
  7079. done
  7080. done
  7081. IFS=$as_save_IFS
  7082. fi
  7083. fi
  7084. LIPO=$ac_cv_prog_LIPO
  7085. if test -n "$LIPO"; then
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7087. $as_echo "$LIPO" >&6; }
  7088. else
  7089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7090. $as_echo "no" >&6; }
  7091. fi
  7092. fi
  7093. if test -z "$ac_cv_prog_LIPO"; then
  7094. ac_ct_LIPO=$LIPO
  7095. # Extract the first word of "lipo", so it can be a program name with args.
  7096. set dummy lipo; ac_word=$2
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7098. $as_echo_n "checking for $ac_word... " >&6; }
  7099. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7100. $as_echo_n "(cached) " >&6
  7101. else
  7102. if test -n "$ac_ct_LIPO"; then
  7103. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7104. else
  7105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7106. for as_dir in $PATH
  7107. do
  7108. IFS=$as_save_IFS
  7109. test -z "$as_dir" && as_dir=.
  7110. for ac_exec_ext in '' $ac_executable_extensions; do
  7111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7112. ac_cv_prog_ac_ct_LIPO="lipo"
  7113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7114. break 2
  7115. fi
  7116. done
  7117. done
  7118. IFS=$as_save_IFS
  7119. fi
  7120. fi
  7121. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7122. if test -n "$ac_ct_LIPO"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7124. $as_echo "$ac_ct_LIPO" >&6; }
  7125. else
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7127. $as_echo "no" >&6; }
  7128. fi
  7129. if test "x$ac_ct_LIPO" = x; then
  7130. LIPO=":"
  7131. else
  7132. case $cross_compiling:$ac_tool_warned in
  7133. yes:)
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7135. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7136. ac_tool_warned=yes ;;
  7137. esac
  7138. LIPO=$ac_ct_LIPO
  7139. fi
  7140. else
  7141. LIPO="$ac_cv_prog_LIPO"
  7142. fi
  7143. if test -n "$ac_tool_prefix"; then
  7144. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7145. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7147. $as_echo_n "checking for $ac_word... " >&6; }
  7148. if ${ac_cv_prog_OTOOL+:} false; then :
  7149. $as_echo_n "(cached) " >&6
  7150. else
  7151. if test -n "$OTOOL"; then
  7152. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7153. else
  7154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7155. for as_dir in $PATH
  7156. do
  7157. IFS=$as_save_IFS
  7158. test -z "$as_dir" && as_dir=.
  7159. for ac_exec_ext in '' $ac_executable_extensions; do
  7160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7161. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7163. break 2
  7164. fi
  7165. done
  7166. done
  7167. IFS=$as_save_IFS
  7168. fi
  7169. fi
  7170. OTOOL=$ac_cv_prog_OTOOL
  7171. if test -n "$OTOOL"; then
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7173. $as_echo "$OTOOL" >&6; }
  7174. else
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7176. $as_echo "no" >&6; }
  7177. fi
  7178. fi
  7179. if test -z "$ac_cv_prog_OTOOL"; then
  7180. ac_ct_OTOOL=$OTOOL
  7181. # Extract the first word of "otool", so it can be a program name with args.
  7182. set dummy otool; ac_word=$2
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7184. $as_echo_n "checking for $ac_word... " >&6; }
  7185. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7186. $as_echo_n "(cached) " >&6
  7187. else
  7188. if test -n "$ac_ct_OTOOL"; then
  7189. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7190. else
  7191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7192. for as_dir in $PATH
  7193. do
  7194. IFS=$as_save_IFS
  7195. test -z "$as_dir" && as_dir=.
  7196. for ac_exec_ext in '' $ac_executable_extensions; do
  7197. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7198. ac_cv_prog_ac_ct_OTOOL="otool"
  7199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7200. break 2
  7201. fi
  7202. done
  7203. done
  7204. IFS=$as_save_IFS
  7205. fi
  7206. fi
  7207. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7208. if test -n "$ac_ct_OTOOL"; then
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7210. $as_echo "$ac_ct_OTOOL" >&6; }
  7211. else
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7213. $as_echo "no" >&6; }
  7214. fi
  7215. if test "x$ac_ct_OTOOL" = x; then
  7216. OTOOL=":"
  7217. else
  7218. case $cross_compiling:$ac_tool_warned in
  7219. yes:)
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7221. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7222. ac_tool_warned=yes ;;
  7223. esac
  7224. OTOOL=$ac_ct_OTOOL
  7225. fi
  7226. else
  7227. OTOOL="$ac_cv_prog_OTOOL"
  7228. fi
  7229. if test -n "$ac_tool_prefix"; then
  7230. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7231. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7233. $as_echo_n "checking for $ac_word... " >&6; }
  7234. if ${ac_cv_prog_OTOOL64+:} false; then :
  7235. $as_echo_n "(cached) " >&6
  7236. else
  7237. if test -n "$OTOOL64"; then
  7238. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7239. else
  7240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7241. for as_dir in $PATH
  7242. do
  7243. IFS=$as_save_IFS
  7244. test -z "$as_dir" && as_dir=.
  7245. for ac_exec_ext in '' $ac_executable_extensions; do
  7246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7247. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7249. break 2
  7250. fi
  7251. done
  7252. done
  7253. IFS=$as_save_IFS
  7254. fi
  7255. fi
  7256. OTOOL64=$ac_cv_prog_OTOOL64
  7257. if test -n "$OTOOL64"; then
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7259. $as_echo "$OTOOL64" >&6; }
  7260. else
  7261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7262. $as_echo "no" >&6; }
  7263. fi
  7264. fi
  7265. if test -z "$ac_cv_prog_OTOOL64"; then
  7266. ac_ct_OTOOL64=$OTOOL64
  7267. # Extract the first word of "otool64", so it can be a program name with args.
  7268. set dummy otool64; ac_word=$2
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7270. $as_echo_n "checking for $ac_word... " >&6; }
  7271. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. if test -n "$ac_ct_OTOOL64"; then
  7275. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7276. else
  7277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7278. for as_dir in $PATH
  7279. do
  7280. IFS=$as_save_IFS
  7281. test -z "$as_dir" && as_dir=.
  7282. for ac_exec_ext in '' $ac_executable_extensions; do
  7283. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7284. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7286. break 2
  7287. fi
  7288. done
  7289. done
  7290. IFS=$as_save_IFS
  7291. fi
  7292. fi
  7293. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7294. if test -n "$ac_ct_OTOOL64"; then
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7296. $as_echo "$ac_ct_OTOOL64" >&6; }
  7297. else
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7299. $as_echo "no" >&6; }
  7300. fi
  7301. if test "x$ac_ct_OTOOL64" = x; then
  7302. OTOOL64=":"
  7303. else
  7304. case $cross_compiling:$ac_tool_warned in
  7305. yes:)
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7307. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7308. ac_tool_warned=yes ;;
  7309. esac
  7310. OTOOL64=$ac_ct_OTOOL64
  7311. fi
  7312. else
  7313. OTOOL64="$ac_cv_prog_OTOOL64"
  7314. fi
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7316. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7317. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7318. $as_echo_n "(cached) " >&6
  7319. else
  7320. lt_cv_apple_cc_single_mod=no
  7321. if test -z "${LT_MULTI_MODULE}"; then
  7322. # By default we will add the -single_module flag. You can override
  7323. # by either setting the environment variable LT_MULTI_MODULE
  7324. # non-empty at configure time, or by adding -multi_module to the
  7325. # link flags.
  7326. rm -rf libconftest.dylib*
  7327. echo "int foo(void){return 1;}" > conftest.c
  7328. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7329. -dynamiclib -Wl,-single_module conftest.c" >&5
  7330. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7331. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7332. _lt_result=$?
  7333. # If there is a non-empty error log, and "single_module"
  7334. # appears in it, assume the flag caused a linker warning
  7335. if test -s conftest.err && $GREP single_module conftest.err; then
  7336. cat conftest.err >&5
  7337. # Otherwise, if the output was created with a 0 exit code from
  7338. # the compiler, it worked.
  7339. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7340. lt_cv_apple_cc_single_mod=yes
  7341. else
  7342. cat conftest.err >&5
  7343. fi
  7344. rm -rf libconftest.dylib*
  7345. rm -f conftest.*
  7346. fi
  7347. fi
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7349. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7351. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7352. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7353. $as_echo_n "(cached) " >&6
  7354. else
  7355. lt_cv_ld_exported_symbols_list=no
  7356. save_LDFLAGS=$LDFLAGS
  7357. echo "_main" > conftest.sym
  7358. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7360. /* end confdefs.h. */
  7361. int
  7362. main ()
  7363. {
  7364. ;
  7365. return 0;
  7366. }
  7367. _ACEOF
  7368. if ac_fn_c_try_link "$LINENO"; then :
  7369. lt_cv_ld_exported_symbols_list=yes
  7370. else
  7371. lt_cv_ld_exported_symbols_list=no
  7372. fi
  7373. rm -f core conftest.err conftest.$ac_objext \
  7374. conftest$ac_exeext conftest.$ac_ext
  7375. LDFLAGS="$save_LDFLAGS"
  7376. fi
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7378. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7380. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7381. if ${lt_cv_ld_force_load+:} false; then :
  7382. $as_echo_n "(cached) " >&6
  7383. else
  7384. lt_cv_ld_force_load=no
  7385. cat > conftest.c << _LT_EOF
  7386. int forced_loaded() { return 2;}
  7387. _LT_EOF
  7388. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7389. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7390. echo "$AR cru libconftest.a conftest.o" >&5
  7391. $AR cru libconftest.a conftest.o 2>&5
  7392. echo "$RANLIB libconftest.a" >&5
  7393. $RANLIB libconftest.a 2>&5
  7394. cat > conftest.c << _LT_EOF
  7395. int main() { return 0;}
  7396. _LT_EOF
  7397. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7398. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7399. _lt_result=$?
  7400. if test -s conftest.err && $GREP force_load conftest.err; then
  7401. cat conftest.err >&5
  7402. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7403. lt_cv_ld_force_load=yes
  7404. else
  7405. cat conftest.err >&5
  7406. fi
  7407. rm -f conftest.err libconftest.a conftest conftest.c
  7408. rm -rf conftest.dSYM
  7409. fi
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7411. $as_echo "$lt_cv_ld_force_load" >&6; }
  7412. case $host_os in
  7413. rhapsody* | darwin1.[012])
  7414. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7415. darwin1.*)
  7416. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7417. darwin*) # darwin 5.x on
  7418. # if running on 10.5 or later, the deployment target defaults
  7419. # to the OS version, if on x86, and 10.4, the deployment
  7420. # target defaults to 10.4. Don't you love it?
  7421. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7422. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7423. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7424. 10.[012]*)
  7425. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7426. 10.*)
  7427. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7428. esac
  7429. ;;
  7430. esac
  7431. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7432. _lt_dar_single_mod='$single_module'
  7433. fi
  7434. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7435. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7436. else
  7437. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7438. fi
  7439. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7440. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7441. else
  7442. _lt_dsymutil=
  7443. fi
  7444. ;;
  7445. esac
  7446. for ac_header in dlfcn.h
  7447. do :
  7448. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7449. "
  7450. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7451. cat >>confdefs.h <<_ACEOF
  7452. @%:@define HAVE_DLFCN_H 1
  7453. _ACEOF
  7454. fi
  7455. done
  7456. # Set options
  7457. @%:@ Check whether --enable-static was given.
  7458. if test "${enable_static+set}" = set; then :
  7459. enableval=$enable_static; p=${PACKAGE-default}
  7460. case $enableval in
  7461. yes) enable_static=yes ;;
  7462. no) enable_static=no ;;
  7463. *)
  7464. enable_static=no
  7465. # Look at the argument we got. We use all the common list separators.
  7466. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7467. for pkg in $enableval; do
  7468. IFS="$lt_save_ifs"
  7469. if test "X$pkg" = "X$p"; then
  7470. enable_static=yes
  7471. fi
  7472. done
  7473. IFS="$lt_save_ifs"
  7474. ;;
  7475. esac
  7476. else
  7477. enable_static=no
  7478. fi
  7479. @%:@ Check whether --with-pic was given.
  7480. if test "${with_pic+set}" = set; then :
  7481. withval=$with_pic; lt_p=${PACKAGE-default}
  7482. case $withval in
  7483. yes|no) pic_mode=$withval ;;
  7484. *)
  7485. pic_mode=default
  7486. # Look at the argument we got. We use all the common list separators.
  7487. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7488. for lt_pkg in $withval; do
  7489. IFS="$lt_save_ifs"
  7490. if test "X$lt_pkg" = "X$lt_p"; then
  7491. pic_mode=yes
  7492. fi
  7493. done
  7494. IFS="$lt_save_ifs"
  7495. ;;
  7496. esac
  7497. else
  7498. pic_mode=default
  7499. fi
  7500. test -z "$pic_mode" && pic_mode=yes
  7501. enable_dlopen=no
  7502. enable_win32_dll=no
  7503. @%:@ Check whether --enable-shared was given.
  7504. if test "${enable_shared+set}" = set; then :
  7505. enableval=$enable_shared; p=${PACKAGE-default}
  7506. case $enableval in
  7507. yes) enable_shared=yes ;;
  7508. no) enable_shared=no ;;
  7509. *)
  7510. enable_shared=no
  7511. # Look at the argument we got. We use all the common list separators.
  7512. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7513. for pkg in $enableval; do
  7514. IFS="$lt_save_ifs"
  7515. if test "X$pkg" = "X$p"; then
  7516. enable_shared=yes
  7517. fi
  7518. done
  7519. IFS="$lt_save_ifs"
  7520. ;;
  7521. esac
  7522. else
  7523. enable_shared=yes
  7524. fi
  7525. @%:@ Check whether --enable-fast-install was given.
  7526. if test "${enable_fast_install+set}" = set; then :
  7527. enableval=$enable_fast_install; p=${PACKAGE-default}
  7528. case $enableval in
  7529. yes) enable_fast_install=yes ;;
  7530. no) enable_fast_install=no ;;
  7531. *)
  7532. enable_fast_install=no
  7533. # Look at the argument we got. We use all the common list separators.
  7534. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7535. for pkg in $enableval; do
  7536. IFS="$lt_save_ifs"
  7537. if test "X$pkg" = "X$p"; then
  7538. enable_fast_install=yes
  7539. fi
  7540. done
  7541. IFS="$lt_save_ifs"
  7542. ;;
  7543. esac
  7544. else
  7545. enable_fast_install=yes
  7546. fi
  7547. # This can be used to rebuild libtool when needed
  7548. LIBTOOL_DEPS="$ltmain"
  7549. # Always use our own libtool.
  7550. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7551. test -z "$LN_S" && LN_S="ln -s"
  7552. if test -n "${ZSH_VERSION+set}" ; then
  7553. setopt NO_GLOB_SUBST
  7554. fi
  7555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7556. $as_echo_n "checking for objdir... " >&6; }
  7557. if ${lt_cv_objdir+:} false; then :
  7558. $as_echo_n "(cached) " >&6
  7559. else
  7560. rm -f .libs 2>/dev/null
  7561. mkdir .libs 2>/dev/null
  7562. if test -d .libs; then
  7563. lt_cv_objdir=.libs
  7564. else
  7565. # MS-DOS does not allow filenames that begin with a dot.
  7566. lt_cv_objdir=_libs
  7567. fi
  7568. rmdir .libs 2>/dev/null
  7569. fi
  7570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7571. $as_echo "$lt_cv_objdir" >&6; }
  7572. objdir=$lt_cv_objdir
  7573. cat >>confdefs.h <<_ACEOF
  7574. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  7575. _ACEOF
  7576. case $host_os in
  7577. aix3*)
  7578. # AIX sometimes has problems with the GCC collect2 program. For some
  7579. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7580. # vanish in a puff of smoke.
  7581. if test "X${COLLECT_NAMES+set}" != Xset; then
  7582. COLLECT_NAMES=
  7583. export COLLECT_NAMES
  7584. fi
  7585. ;;
  7586. esac
  7587. # Global variables:
  7588. ofile=libtool
  7589. can_build_shared=yes
  7590. # All known linkers require a `.a' archive for static linking (except MSVC,
  7591. # which needs '.lib').
  7592. libext=a
  7593. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7594. old_CC="$CC"
  7595. old_CFLAGS="$CFLAGS"
  7596. # Set sane defaults for various variables
  7597. test -z "$CC" && CC=cc
  7598. test -z "$LTCC" && LTCC=$CC
  7599. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7600. test -z "$LD" && LD=ld
  7601. test -z "$ac_objext" && ac_objext=o
  7602. for cc_temp in $compiler""; do
  7603. case $cc_temp in
  7604. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7605. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7606. \-*) ;;
  7607. *) break;;
  7608. esac
  7609. done
  7610. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7611. # Only perform the check for file, if the check method requires it
  7612. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7613. case $deplibs_check_method in
  7614. file_magic*)
  7615. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7617. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7618. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7619. $as_echo_n "(cached) " >&6
  7620. else
  7621. case $MAGIC_CMD in
  7622. [\\/*] | ?:[\\/]*)
  7623. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7624. ;;
  7625. *)
  7626. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7627. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7628. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7629. for ac_dir in $ac_dummy; do
  7630. IFS="$lt_save_ifs"
  7631. test -z "$ac_dir" && ac_dir=.
  7632. if test -f $ac_dir/${ac_tool_prefix}file; then
  7633. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7634. if test -n "$file_magic_test_file"; then
  7635. case $deplibs_check_method in
  7636. "file_magic "*)
  7637. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7638. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7639. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7640. $EGREP "$file_magic_regex" > /dev/null; then
  7641. :
  7642. else
  7643. cat <<_LT_EOF 1>&2
  7644. *** Warning: the command libtool uses to detect shared libraries,
  7645. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7646. *** The result is that libtool may fail to recognize shared libraries
  7647. *** as such. This will affect the creation of libtool libraries that
  7648. *** depend on shared libraries, but programs linked with such libtool
  7649. *** libraries will work regardless of this problem. Nevertheless, you
  7650. *** may want to report the problem to your system manager and/or to
  7651. *** bug-libtool@gnu.org
  7652. _LT_EOF
  7653. fi ;;
  7654. esac
  7655. fi
  7656. break
  7657. fi
  7658. done
  7659. IFS="$lt_save_ifs"
  7660. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7661. ;;
  7662. esac
  7663. fi
  7664. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7665. if test -n "$MAGIC_CMD"; then
  7666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7667. $as_echo "$MAGIC_CMD" >&6; }
  7668. else
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7670. $as_echo "no" >&6; }
  7671. fi
  7672. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7673. if test -n "$ac_tool_prefix"; then
  7674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7675. $as_echo_n "checking for file... " >&6; }
  7676. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7677. $as_echo_n "(cached) " >&6
  7678. else
  7679. case $MAGIC_CMD in
  7680. [\\/*] | ?:[\\/]*)
  7681. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7682. ;;
  7683. *)
  7684. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7685. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7686. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7687. for ac_dir in $ac_dummy; do
  7688. IFS="$lt_save_ifs"
  7689. test -z "$ac_dir" && ac_dir=.
  7690. if test -f $ac_dir/file; then
  7691. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7692. if test -n "$file_magic_test_file"; then
  7693. case $deplibs_check_method in
  7694. "file_magic "*)
  7695. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7696. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7697. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7698. $EGREP "$file_magic_regex" > /dev/null; then
  7699. :
  7700. else
  7701. cat <<_LT_EOF 1>&2
  7702. *** Warning: the command libtool uses to detect shared libraries,
  7703. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7704. *** The result is that libtool may fail to recognize shared libraries
  7705. *** as such. This will affect the creation of libtool libraries that
  7706. *** depend on shared libraries, but programs linked with such libtool
  7707. *** libraries will work regardless of this problem. Nevertheless, you
  7708. *** may want to report the problem to your system manager and/or to
  7709. *** bug-libtool@gnu.org
  7710. _LT_EOF
  7711. fi ;;
  7712. esac
  7713. fi
  7714. break
  7715. fi
  7716. done
  7717. IFS="$lt_save_ifs"
  7718. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7719. ;;
  7720. esac
  7721. fi
  7722. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7723. if test -n "$MAGIC_CMD"; then
  7724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7725. $as_echo "$MAGIC_CMD" >&6; }
  7726. else
  7727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7728. $as_echo "no" >&6; }
  7729. fi
  7730. else
  7731. MAGIC_CMD=:
  7732. fi
  7733. fi
  7734. fi
  7735. ;;
  7736. esac
  7737. # Use C for the default configuration in the libtool script
  7738. lt_save_CC="$CC"
  7739. ac_ext=c
  7740. ac_cpp='$CPP $CPPFLAGS'
  7741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7744. # Source file extension for C test sources.
  7745. ac_ext=c
  7746. # Object file extension for compiled C test sources.
  7747. objext=o
  7748. objext=$objext
  7749. # Code to be used in simple compile tests
  7750. lt_simple_compile_test_code="int some_variable = 0;"
  7751. # Code to be used in simple link tests
  7752. lt_simple_link_test_code='int main(){return(0);}'
  7753. # If no C compiler was specified, use CC.
  7754. LTCC=${LTCC-"$CC"}
  7755. # If no C compiler flags were specified, use CFLAGS.
  7756. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7757. # Allow CC to be a program name with arguments.
  7758. compiler=$CC
  7759. # Save the default compiler, since it gets overwritten when the other
  7760. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7761. compiler_DEFAULT=$CC
  7762. # save warnings/boilerplate of simple test code
  7763. ac_outfile=conftest.$ac_objext
  7764. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7765. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7766. _lt_compiler_boilerplate=`cat conftest.err`
  7767. $RM conftest*
  7768. ac_outfile=conftest.$ac_objext
  7769. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7770. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7771. _lt_linker_boilerplate=`cat conftest.err`
  7772. $RM -r conftest*
  7773. ## CAVEAT EMPTOR:
  7774. ## There is no encapsulation within the following macros, do not change
  7775. ## the running order or otherwise move them around unless you know exactly
  7776. ## what you are doing...
  7777. if test -n "$compiler"; then
  7778. lt_prog_compiler_no_builtin_flag=
  7779. if test "$GCC" = yes; then
  7780. case $cc_basename in
  7781. nvcc*)
  7782. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7783. *)
  7784. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7785. esac
  7786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7787. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7788. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7789. $as_echo_n "(cached) " >&6
  7790. else
  7791. lt_cv_prog_compiler_rtti_exceptions=no
  7792. ac_outfile=conftest.$ac_objext
  7793. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7794. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7795. # Insert the option either (1) after the last *FLAGS variable, or
  7796. # (2) before a word containing "conftest.", or (3) at the end.
  7797. # Note that $ac_compile itself does not contain backslashes and begins
  7798. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7799. # The option is referenced via a variable to avoid confusing sed.
  7800. lt_compile=`echo "$ac_compile" | $SED \
  7801. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7802. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7803. -e 's:$: $lt_compiler_flag:'`
  7804. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7805. (eval "$lt_compile" 2>conftest.err)
  7806. ac_status=$?
  7807. cat conftest.err >&5
  7808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7809. if (exit $ac_status) && test -s "$ac_outfile"; then
  7810. # The compiler can only warn and ignore the option if not recognized
  7811. # So say no if there are warnings other than the usual output.
  7812. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7813. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7814. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7815. lt_cv_prog_compiler_rtti_exceptions=yes
  7816. fi
  7817. fi
  7818. $RM conftest*
  7819. fi
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7821. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7822. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7823. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7824. else
  7825. :
  7826. fi
  7827. fi
  7828. lt_prog_compiler_wl=
  7829. lt_prog_compiler_pic=
  7830. lt_prog_compiler_static=
  7831. if test "$GCC" = yes; then
  7832. lt_prog_compiler_wl='-Wl,'
  7833. lt_prog_compiler_static='-static'
  7834. case $host_os in
  7835. aix*)
  7836. # All AIX code is PIC.
  7837. if test "$host_cpu" = ia64; then
  7838. # AIX 5 now supports IA64 processor
  7839. lt_prog_compiler_static='-Bstatic'
  7840. fi
  7841. ;;
  7842. amigaos*)
  7843. case $host_cpu in
  7844. powerpc)
  7845. # see comment about AmigaOS4 .so support
  7846. lt_prog_compiler_pic='-fPIC'
  7847. ;;
  7848. m68k)
  7849. # FIXME: we need at least 68020 code to build shared libraries, but
  7850. # adding the `-m68020' flag to GCC prevents building anything better,
  7851. # like `-m68040'.
  7852. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7853. ;;
  7854. esac
  7855. ;;
  7856. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7857. # PIC is the default for these OSes.
  7858. ;;
  7859. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7860. # This hack is so that the source file can tell whether it is being
  7861. # built for inclusion in a dll (and should export symbols for example).
  7862. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7863. # (--disable-auto-import) libraries
  7864. lt_prog_compiler_pic='-DDLL_EXPORT'
  7865. ;;
  7866. darwin* | rhapsody*)
  7867. # PIC is the default on this platform
  7868. # Common symbols not allowed in MH_DYLIB files
  7869. lt_prog_compiler_pic='-fno-common'
  7870. ;;
  7871. haiku*)
  7872. # PIC is the default for Haiku.
  7873. # The "-static" flag exists, but is broken.
  7874. lt_prog_compiler_static=
  7875. ;;
  7876. hpux*)
  7877. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7878. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7879. # sets the default TLS model and affects inlining.
  7880. case $host_cpu in
  7881. hppa*64*)
  7882. # +Z the default
  7883. ;;
  7884. *)
  7885. lt_prog_compiler_pic='-fPIC'
  7886. ;;
  7887. esac
  7888. ;;
  7889. interix[3-9]*)
  7890. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7891. # Instead, we relocate shared libraries at runtime.
  7892. ;;
  7893. msdosdjgpp*)
  7894. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7895. # on systems that don't support them.
  7896. lt_prog_compiler_can_build_shared=no
  7897. enable_shared=no
  7898. ;;
  7899. *nto* | *qnx*)
  7900. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7901. # it will coredump.
  7902. lt_prog_compiler_pic='-fPIC -shared'
  7903. ;;
  7904. sysv4*MP*)
  7905. if test -d /usr/nec; then
  7906. lt_prog_compiler_pic=-Kconform_pic
  7907. fi
  7908. ;;
  7909. *)
  7910. lt_prog_compiler_pic='-fPIC'
  7911. ;;
  7912. esac
  7913. case $cc_basename in
  7914. nvcc*) # Cuda Compiler Driver 2.2
  7915. lt_prog_compiler_wl='-Xlinker '
  7916. if test -n "$lt_prog_compiler_pic"; then
  7917. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7918. fi
  7919. ;;
  7920. esac
  7921. else
  7922. # PORTME Check for flag to pass linker flags through the system compiler.
  7923. case $host_os in
  7924. aix*)
  7925. lt_prog_compiler_wl='-Wl,'
  7926. if test "$host_cpu" = ia64; then
  7927. # AIX 5 now supports IA64 processor
  7928. lt_prog_compiler_static='-Bstatic'
  7929. else
  7930. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7931. fi
  7932. ;;
  7933. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7934. # This hack is so that the source file can tell whether it is being
  7935. # built for inclusion in a dll (and should export symbols for example).
  7936. lt_prog_compiler_pic='-DDLL_EXPORT'
  7937. ;;
  7938. hpux9* | hpux10* | hpux11*)
  7939. lt_prog_compiler_wl='-Wl,'
  7940. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7941. # not for PA HP-UX.
  7942. case $host_cpu in
  7943. hppa*64*|ia64*)
  7944. # +Z the default
  7945. ;;
  7946. *)
  7947. lt_prog_compiler_pic='+Z'
  7948. ;;
  7949. esac
  7950. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7951. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7952. ;;
  7953. irix5* | irix6* | nonstopux*)
  7954. lt_prog_compiler_wl='-Wl,'
  7955. # PIC (with -KPIC) is the default.
  7956. lt_prog_compiler_static='-non_shared'
  7957. ;;
  7958. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7959. case $cc_basename in
  7960. # old Intel for x86_64 which still supported -KPIC.
  7961. ecc*)
  7962. lt_prog_compiler_wl='-Wl,'
  7963. lt_prog_compiler_pic='-KPIC'
  7964. lt_prog_compiler_static='-static'
  7965. ;;
  7966. # icc used to be incompatible with GCC.
  7967. # ICC 10 doesn't accept -KPIC any more.
  7968. icc* | ifort*)
  7969. lt_prog_compiler_wl='-Wl,'
  7970. lt_prog_compiler_pic='-fPIC'
  7971. lt_prog_compiler_static='-static'
  7972. ;;
  7973. # Lahey Fortran 8.1.
  7974. lf95*)
  7975. lt_prog_compiler_wl='-Wl,'
  7976. lt_prog_compiler_pic='--shared'
  7977. lt_prog_compiler_static='--static'
  7978. ;;
  7979. nagfor*)
  7980. # NAG Fortran compiler
  7981. lt_prog_compiler_wl='-Wl,-Wl,,'
  7982. lt_prog_compiler_pic='-PIC'
  7983. lt_prog_compiler_static='-Bstatic'
  7984. ;;
  7985. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7986. # Portland Group compilers (*not* the Pentium gcc compiler,
  7987. # which looks to be a dead project)
  7988. lt_prog_compiler_wl='-Wl,'
  7989. lt_prog_compiler_pic='-fpic'
  7990. lt_prog_compiler_static='-Bstatic'
  7991. ;;
  7992. ccc*)
  7993. lt_prog_compiler_wl='-Wl,'
  7994. # All Alpha code is PIC.
  7995. lt_prog_compiler_static='-non_shared'
  7996. ;;
  7997. xl* | bgxl* | bgf* | mpixl*)
  7998. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7999. lt_prog_compiler_wl='-Wl,'
  8000. lt_prog_compiler_pic='-qpic'
  8001. lt_prog_compiler_static='-qstaticlink'
  8002. ;;
  8003. *)
  8004. case `$CC -V 2>&1 | sed 5q` in
  8005. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8006. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8007. lt_prog_compiler_pic='-KPIC'
  8008. lt_prog_compiler_static='-Bstatic'
  8009. lt_prog_compiler_wl=''
  8010. ;;
  8011. *Sun\ F* | *Sun*Fortran*)
  8012. lt_prog_compiler_pic='-KPIC'
  8013. lt_prog_compiler_static='-Bstatic'
  8014. lt_prog_compiler_wl='-Qoption ld '
  8015. ;;
  8016. *Sun\ C*)
  8017. # Sun C 5.9
  8018. lt_prog_compiler_pic='-KPIC'
  8019. lt_prog_compiler_static='-Bstatic'
  8020. lt_prog_compiler_wl='-Wl,'
  8021. ;;
  8022. *Intel*\ [CF]*Compiler*)
  8023. lt_prog_compiler_wl='-Wl,'
  8024. lt_prog_compiler_pic='-fPIC'
  8025. lt_prog_compiler_static='-static'
  8026. ;;
  8027. *Portland\ Group*)
  8028. lt_prog_compiler_wl='-Wl,'
  8029. lt_prog_compiler_pic='-fpic'
  8030. lt_prog_compiler_static='-Bstatic'
  8031. ;;
  8032. esac
  8033. ;;
  8034. esac
  8035. ;;
  8036. newsos6)
  8037. lt_prog_compiler_pic='-KPIC'
  8038. lt_prog_compiler_static='-Bstatic'
  8039. ;;
  8040. *nto* | *qnx*)
  8041. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8042. # it will coredump.
  8043. lt_prog_compiler_pic='-fPIC -shared'
  8044. ;;
  8045. osf3* | osf4* | osf5*)
  8046. lt_prog_compiler_wl='-Wl,'
  8047. # All OSF/1 code is PIC.
  8048. lt_prog_compiler_static='-non_shared'
  8049. ;;
  8050. rdos*)
  8051. lt_prog_compiler_static='-non_shared'
  8052. ;;
  8053. solaris*)
  8054. lt_prog_compiler_pic='-KPIC'
  8055. lt_prog_compiler_static='-Bstatic'
  8056. case $cc_basename in
  8057. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8058. lt_prog_compiler_wl='-Qoption ld ';;
  8059. *)
  8060. lt_prog_compiler_wl='-Wl,';;
  8061. esac
  8062. ;;
  8063. sunos4*)
  8064. lt_prog_compiler_wl='-Qoption ld '
  8065. lt_prog_compiler_pic='-PIC'
  8066. lt_prog_compiler_static='-Bstatic'
  8067. ;;
  8068. sysv4 | sysv4.2uw2* | sysv4.3*)
  8069. lt_prog_compiler_wl='-Wl,'
  8070. lt_prog_compiler_pic='-KPIC'
  8071. lt_prog_compiler_static='-Bstatic'
  8072. ;;
  8073. sysv4*MP*)
  8074. if test -d /usr/nec ;then
  8075. lt_prog_compiler_pic='-Kconform_pic'
  8076. lt_prog_compiler_static='-Bstatic'
  8077. fi
  8078. ;;
  8079. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8080. lt_prog_compiler_wl='-Wl,'
  8081. lt_prog_compiler_pic='-KPIC'
  8082. lt_prog_compiler_static='-Bstatic'
  8083. ;;
  8084. unicos*)
  8085. lt_prog_compiler_wl='-Wl,'
  8086. lt_prog_compiler_can_build_shared=no
  8087. ;;
  8088. uts4*)
  8089. lt_prog_compiler_pic='-pic'
  8090. lt_prog_compiler_static='-Bstatic'
  8091. ;;
  8092. *)
  8093. lt_prog_compiler_can_build_shared=no
  8094. ;;
  8095. esac
  8096. fi
  8097. case $host_os in
  8098. # For platforms which do not support PIC, -DPIC is meaningless:
  8099. *djgpp*)
  8100. lt_prog_compiler_pic=
  8101. ;;
  8102. *)
  8103. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  8104. ;;
  8105. esac
  8106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8107. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8108. if ${lt_cv_prog_compiler_pic+:} false; then :
  8109. $as_echo_n "(cached) " >&6
  8110. else
  8111. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8112. fi
  8113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8114. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8115. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8116. #
  8117. # Check to make sure the PIC flag actually works.
  8118. #
  8119. if test -n "$lt_prog_compiler_pic"; then
  8120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8121. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8122. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8123. $as_echo_n "(cached) " >&6
  8124. else
  8125. lt_cv_prog_compiler_pic_works=no
  8126. ac_outfile=conftest.$ac_objext
  8127. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8128. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  8129. # Insert the option either (1) after the last *FLAGS variable, or
  8130. # (2) before a word containing "conftest.", or (3) at the end.
  8131. # Note that $ac_compile itself does not contain backslashes and begins
  8132. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8133. # The option is referenced via a variable to avoid confusing sed.
  8134. lt_compile=`echo "$ac_compile" | $SED \
  8135. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8136. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8137. -e 's:$: $lt_compiler_flag:'`
  8138. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8139. (eval "$lt_compile" 2>conftest.err)
  8140. ac_status=$?
  8141. cat conftest.err >&5
  8142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8143. if (exit $ac_status) && test -s "$ac_outfile"; then
  8144. # The compiler can only warn and ignore the option if not recognized
  8145. # So say no if there are warnings other than the usual output.
  8146. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8147. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8148. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8149. lt_cv_prog_compiler_pic_works=yes
  8150. fi
  8151. fi
  8152. $RM conftest*
  8153. fi
  8154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8155. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8156. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8157. case $lt_prog_compiler_pic in
  8158. "" | " "*) ;;
  8159. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8160. esac
  8161. else
  8162. lt_prog_compiler_pic=
  8163. lt_prog_compiler_can_build_shared=no
  8164. fi
  8165. fi
  8166. #
  8167. # Check to make sure the static flag actually works.
  8168. #
  8169. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8171. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8172. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8173. $as_echo_n "(cached) " >&6
  8174. else
  8175. lt_cv_prog_compiler_static_works=no
  8176. save_LDFLAGS="$LDFLAGS"
  8177. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8178. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8179. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8180. # The linker can only warn and ignore the option if not recognized
  8181. # So say no if there are warnings
  8182. if test -s conftest.err; then
  8183. # Append any errors to the config.log.
  8184. cat conftest.err 1>&5
  8185. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8186. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8187. if diff conftest.exp conftest.er2 >/dev/null; then
  8188. lt_cv_prog_compiler_static_works=yes
  8189. fi
  8190. else
  8191. lt_cv_prog_compiler_static_works=yes
  8192. fi
  8193. fi
  8194. $RM -r conftest*
  8195. LDFLAGS="$save_LDFLAGS"
  8196. fi
  8197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8198. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8199. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8200. :
  8201. else
  8202. lt_prog_compiler_static=
  8203. fi
  8204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8205. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8206. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8207. $as_echo_n "(cached) " >&6
  8208. else
  8209. lt_cv_prog_compiler_c_o=no
  8210. $RM -r conftest 2>/dev/null
  8211. mkdir conftest
  8212. cd conftest
  8213. mkdir out
  8214. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8215. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8216. # Insert the option either (1) after the last *FLAGS variable, or
  8217. # (2) before a word containing "conftest.", or (3) at the end.
  8218. # Note that $ac_compile itself does not contain backslashes and begins
  8219. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8220. lt_compile=`echo "$ac_compile" | $SED \
  8221. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8222. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8223. -e 's:$: $lt_compiler_flag:'`
  8224. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8225. (eval "$lt_compile" 2>out/conftest.err)
  8226. ac_status=$?
  8227. cat out/conftest.err >&5
  8228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8229. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8230. then
  8231. # The compiler can only warn and ignore the option if not recognized
  8232. # So say no if there are warnings
  8233. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8234. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8235. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8236. lt_cv_prog_compiler_c_o=yes
  8237. fi
  8238. fi
  8239. chmod u+w . 2>&5
  8240. $RM conftest*
  8241. # SGI C++ compiler will create directory out/ii_files/ for
  8242. # template instantiation
  8243. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8244. $RM out/* && rmdir out
  8245. cd ..
  8246. $RM -r conftest
  8247. $RM conftest*
  8248. fi
  8249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8250. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8252. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8253. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8254. $as_echo_n "(cached) " >&6
  8255. else
  8256. lt_cv_prog_compiler_c_o=no
  8257. $RM -r conftest 2>/dev/null
  8258. mkdir conftest
  8259. cd conftest
  8260. mkdir out
  8261. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8262. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8263. # Insert the option either (1) after the last *FLAGS variable, or
  8264. # (2) before a word containing "conftest.", or (3) at the end.
  8265. # Note that $ac_compile itself does not contain backslashes and begins
  8266. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8267. lt_compile=`echo "$ac_compile" | $SED \
  8268. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8269. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8270. -e 's:$: $lt_compiler_flag:'`
  8271. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8272. (eval "$lt_compile" 2>out/conftest.err)
  8273. ac_status=$?
  8274. cat out/conftest.err >&5
  8275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8276. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8277. then
  8278. # The compiler can only warn and ignore the option if not recognized
  8279. # So say no if there are warnings
  8280. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8281. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8282. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8283. lt_cv_prog_compiler_c_o=yes
  8284. fi
  8285. fi
  8286. chmod u+w . 2>&5
  8287. $RM conftest*
  8288. # SGI C++ compiler will create directory out/ii_files/ for
  8289. # template instantiation
  8290. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8291. $RM out/* && rmdir out
  8292. cd ..
  8293. $RM -r conftest
  8294. $RM conftest*
  8295. fi
  8296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8297. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8298. hard_links="nottested"
  8299. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8300. # do not overwrite the value of need_locks provided by the user
  8301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8302. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8303. hard_links=yes
  8304. $RM conftest*
  8305. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8306. touch conftest.a
  8307. ln conftest.a conftest.b 2>&5 || hard_links=no
  8308. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8310. $as_echo "$hard_links" >&6; }
  8311. if test "$hard_links" = no; then
  8312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8313. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8314. need_locks=warn
  8315. fi
  8316. else
  8317. need_locks=no
  8318. fi
  8319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8320. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8321. runpath_var=
  8322. allow_undefined_flag=
  8323. always_export_symbols=no
  8324. archive_cmds=
  8325. archive_expsym_cmds=
  8326. compiler_needs_object=no
  8327. enable_shared_with_static_runtimes=no
  8328. export_dynamic_flag_spec=
  8329. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8330. hardcode_automatic=no
  8331. hardcode_direct=no
  8332. hardcode_direct_absolute=no
  8333. hardcode_libdir_flag_spec=
  8334. hardcode_libdir_separator=
  8335. hardcode_minus_L=no
  8336. hardcode_shlibpath_var=unsupported
  8337. inherit_rpath=no
  8338. link_all_deplibs=unknown
  8339. module_cmds=
  8340. module_expsym_cmds=
  8341. old_archive_from_new_cmds=
  8342. old_archive_from_expsyms_cmds=
  8343. thread_safe_flag_spec=
  8344. whole_archive_flag_spec=
  8345. # include_expsyms should be a list of space-separated symbols to be *always*
  8346. # included in the symbol list
  8347. include_expsyms=
  8348. # exclude_expsyms can be an extended regexp of symbols to exclude
  8349. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8350. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8351. # as well as any symbol that contains `d'.
  8352. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8353. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8354. # platforms (ab)use it in PIC code, but their linkers get confused if
  8355. # the symbol is explicitly referenced. Since portable code cannot
  8356. # rely on this symbol name, it's probably fine to never include it in
  8357. # preloaded symbol tables.
  8358. # Exclude shared library initialization/finalization symbols.
  8359. extract_expsyms_cmds=
  8360. case $host_os in
  8361. cygwin* | mingw* | pw32* | cegcc*)
  8362. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8363. # When not using gcc, we currently assume that we are using
  8364. # Microsoft Visual C++.
  8365. if test "$GCC" != yes; then
  8366. with_gnu_ld=no
  8367. fi
  8368. ;;
  8369. interix*)
  8370. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8371. with_gnu_ld=yes
  8372. ;;
  8373. openbsd*)
  8374. with_gnu_ld=no
  8375. ;;
  8376. linux* | k*bsd*-gnu | gnu*)
  8377. link_all_deplibs=no
  8378. ;;
  8379. esac
  8380. ld_shlibs=yes
  8381. # On some targets, GNU ld is compatible enough with the native linker
  8382. # that we're better off using the native interface for both.
  8383. lt_use_gnu_ld_interface=no
  8384. if test "$with_gnu_ld" = yes; then
  8385. case $host_os in
  8386. aix*)
  8387. # The AIX port of GNU ld has always aspired to compatibility
  8388. # with the native linker. However, as the warning in the GNU ld
  8389. # block says, versions before 2.19.5* couldn't really create working
  8390. # shared libraries, regardless of the interface used.
  8391. case `$LD -v 2>&1` in
  8392. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8393. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8394. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8395. *)
  8396. lt_use_gnu_ld_interface=yes
  8397. ;;
  8398. esac
  8399. ;;
  8400. *)
  8401. lt_use_gnu_ld_interface=yes
  8402. ;;
  8403. esac
  8404. fi
  8405. if test "$lt_use_gnu_ld_interface" = yes; then
  8406. # If archive_cmds runs LD, not CC, wlarc should be empty
  8407. wlarc='${wl}'
  8408. # Set some defaults for GNU ld with shared library support. These
  8409. # are reset later if shared libraries are not supported. Putting them
  8410. # here allows them to be overridden if necessary.
  8411. runpath_var=LD_RUN_PATH
  8412. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8413. export_dynamic_flag_spec='${wl}--export-dynamic'
  8414. # ancient GNU ld didn't support --whole-archive et. al.
  8415. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8416. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8417. else
  8418. whole_archive_flag_spec=
  8419. fi
  8420. supports_anon_versioning=no
  8421. case `$LD -v 2>&1` in
  8422. *GNU\ gold*) supports_anon_versioning=yes ;;
  8423. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8424. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8425. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8426. *\ 2.11.*) ;; # other 2.11 versions
  8427. *) supports_anon_versioning=yes ;;
  8428. esac
  8429. # See if GNU ld supports shared libraries.
  8430. case $host_os in
  8431. aix[3-9]*)
  8432. # On AIX/PPC, the GNU linker is very broken
  8433. if test "$host_cpu" != ia64; then
  8434. ld_shlibs=no
  8435. cat <<_LT_EOF 1>&2
  8436. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8437. *** to be unable to reliably create shared libraries on AIX.
  8438. *** Therefore, libtool is disabling shared libraries support. If you
  8439. *** really care for shared libraries, you may want to install binutils
  8440. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8441. *** You will then need to restart the configuration process.
  8442. _LT_EOF
  8443. fi
  8444. ;;
  8445. amigaos*)
  8446. case $host_cpu in
  8447. powerpc)
  8448. # see comment about AmigaOS4 .so support
  8449. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8450. archive_expsym_cmds=''
  8451. ;;
  8452. m68k)
  8453. 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)'
  8454. hardcode_libdir_flag_spec='-L$libdir'
  8455. hardcode_minus_L=yes
  8456. ;;
  8457. esac
  8458. ;;
  8459. beos*)
  8460. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8461. allow_undefined_flag=unsupported
  8462. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8463. # support --undefined. This deserves some investigation. FIXME
  8464. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8465. else
  8466. ld_shlibs=no
  8467. fi
  8468. ;;
  8469. cygwin* | mingw* | pw32* | cegcc*)
  8470. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8471. # as there is no search path for DLLs.
  8472. hardcode_libdir_flag_spec='-L$libdir'
  8473. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8474. allow_undefined_flag=unsupported
  8475. always_export_symbols=no
  8476. enable_shared_with_static_runtimes=yes
  8477. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8478. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8479. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8480. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8481. # If the export-symbols file already is a .def file (1st line
  8482. # is EXPORTS), use it as is; otherwise, prepend...
  8483. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8484. cp $export_symbols $output_objdir/$soname.def;
  8485. else
  8486. echo EXPORTS > $output_objdir/$soname.def;
  8487. cat $export_symbols >> $output_objdir/$soname.def;
  8488. fi~
  8489. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8490. else
  8491. ld_shlibs=no
  8492. fi
  8493. ;;
  8494. haiku*)
  8495. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8496. link_all_deplibs=yes
  8497. ;;
  8498. interix[3-9]*)
  8499. hardcode_direct=no
  8500. hardcode_shlibpath_var=no
  8501. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8502. export_dynamic_flag_spec='${wl}-E'
  8503. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8504. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8505. # default) and relocated if they conflict, which is a slow very memory
  8506. # consuming and fragmenting process. To avoid this, we pick a random,
  8507. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8508. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8509. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8510. 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'
  8511. ;;
  8512. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8513. tmp_diet=no
  8514. if test "$host_os" = linux-dietlibc; then
  8515. case $cc_basename in
  8516. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8517. esac
  8518. fi
  8519. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8520. && test "$tmp_diet" = no
  8521. then
  8522. tmp_addflag=' $pic_flag'
  8523. tmp_sharedflag='-shared'
  8524. case $cc_basename,$host_cpu in
  8525. pgcc*) # Portland Group C compiler
  8526. 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'
  8527. tmp_addflag=' $pic_flag'
  8528. ;;
  8529. pgf77* | pgf90* | pgf95* | pgfortran*)
  8530. # Portland Group f77 and f90 compilers
  8531. 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'
  8532. tmp_addflag=' $pic_flag -Mnomain' ;;
  8533. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8534. tmp_addflag=' -i_dynamic' ;;
  8535. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8536. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8537. ifc* | ifort*) # Intel Fortran compiler
  8538. tmp_addflag=' -nofor_main' ;;
  8539. lf95*) # Lahey Fortran 8.1
  8540. whole_archive_flag_spec=
  8541. tmp_sharedflag='--shared' ;;
  8542. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8543. tmp_sharedflag='-qmkshrobj'
  8544. tmp_addflag= ;;
  8545. nvcc*) # Cuda Compiler Driver 2.2
  8546. 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'
  8547. compiler_needs_object=yes
  8548. ;;
  8549. esac
  8550. case `$CC -V 2>&1 | sed 5q` in
  8551. *Sun\ C*) # Sun C 5.9
  8552. 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'
  8553. compiler_needs_object=yes
  8554. tmp_sharedflag='-G' ;;
  8555. *Sun\ F*) # Sun Fortran 8.3
  8556. tmp_sharedflag='-G' ;;
  8557. esac
  8558. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8559. if test "x$supports_anon_versioning" = xyes; then
  8560. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8561. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8562. echo "local: *; };" >> $output_objdir/$libname.ver~
  8563. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8564. fi
  8565. case $cc_basename in
  8566. xlf* | bgf* | bgxlf* | mpixlf*)
  8567. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8568. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8569. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8570. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8571. if test "x$supports_anon_versioning" = xyes; then
  8572. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8573. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8574. echo "local: *; };" >> $output_objdir/$libname.ver~
  8575. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8576. fi
  8577. ;;
  8578. esac
  8579. else
  8580. ld_shlibs=no
  8581. fi
  8582. ;;
  8583. netbsd* | netbsdelf*-gnu)
  8584. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8585. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8586. wlarc=
  8587. else
  8588. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8589. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8590. fi
  8591. ;;
  8592. solaris*)
  8593. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8594. ld_shlibs=no
  8595. cat <<_LT_EOF 1>&2
  8596. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8597. *** create shared libraries on Solaris systems. Therefore, libtool
  8598. *** is disabling shared libraries support. We urge you to upgrade GNU
  8599. *** binutils to release 2.9.1 or newer. Another option is to modify
  8600. *** your PATH or compiler configuration so that the native linker is
  8601. *** used, and then restart.
  8602. _LT_EOF
  8603. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8604. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8605. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8606. else
  8607. ld_shlibs=no
  8608. fi
  8609. ;;
  8610. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8611. case `$LD -v 2>&1` in
  8612. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8613. ld_shlibs=no
  8614. cat <<_LT_EOF 1>&2
  8615. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8616. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8617. *** is disabling shared libraries support. We urge you to upgrade GNU
  8618. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8619. *** your PATH or compiler configuration so that the native linker is
  8620. *** used, and then restart.
  8621. _LT_EOF
  8622. ;;
  8623. *)
  8624. # For security reasons, it is highly recommended that you always
  8625. # use absolute paths for naming shared libraries, and exclude the
  8626. # DT_RUNPATH tag from executables and libraries. But doing so
  8627. # requires that you compile everything twice, which is a pain.
  8628. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8629. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8630. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8631. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8632. else
  8633. ld_shlibs=no
  8634. fi
  8635. ;;
  8636. esac
  8637. ;;
  8638. sunos4*)
  8639. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8640. wlarc=
  8641. hardcode_direct=yes
  8642. hardcode_shlibpath_var=no
  8643. ;;
  8644. *)
  8645. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8646. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8647. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8648. else
  8649. ld_shlibs=no
  8650. fi
  8651. ;;
  8652. esac
  8653. if test "$ld_shlibs" = no; then
  8654. runpath_var=
  8655. hardcode_libdir_flag_spec=
  8656. export_dynamic_flag_spec=
  8657. whole_archive_flag_spec=
  8658. fi
  8659. else
  8660. # PORTME fill in a description of your system's linker (not GNU ld)
  8661. case $host_os in
  8662. aix3*)
  8663. allow_undefined_flag=unsupported
  8664. always_export_symbols=yes
  8665. 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'
  8666. # Note: this linker hardcodes the directories in LIBPATH if there
  8667. # are no directories specified by -L.
  8668. hardcode_minus_L=yes
  8669. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8670. # Neither direct hardcoding nor static linking is supported with a
  8671. # broken collect2.
  8672. hardcode_direct=unsupported
  8673. fi
  8674. ;;
  8675. aix[4-9]*)
  8676. if test "$host_cpu" = ia64; then
  8677. # On IA64, the linker does run time linking by default, so we don't
  8678. # have to do anything special.
  8679. aix_use_runtimelinking=no
  8680. exp_sym_flag='-Bexport'
  8681. no_entry_flag=""
  8682. else
  8683. # If we're using GNU nm, then we don't want the "-C" option.
  8684. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8685. # Also, AIX nm treats weak defined symbols like other global
  8686. # defined symbols, whereas GNU nm marks them as "W".
  8687. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8688. 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'
  8689. else
  8690. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8691. fi
  8692. aix_use_runtimelinking=no
  8693. # Test if we are trying to use run time linking or normal
  8694. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8695. # need to do runtime linking.
  8696. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8697. for ld_flag in $LDFLAGS; do
  8698. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8699. aix_use_runtimelinking=yes
  8700. break
  8701. fi
  8702. done
  8703. ;;
  8704. esac
  8705. exp_sym_flag='-bexport'
  8706. no_entry_flag='-bnoentry'
  8707. fi
  8708. # When large executables or shared objects are built, AIX ld can
  8709. # have problems creating the table of contents. If linking a library
  8710. # or program results in "error TOC overflow" add -mminimal-toc to
  8711. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8712. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8713. archive_cmds=''
  8714. hardcode_direct=yes
  8715. hardcode_direct_absolute=yes
  8716. hardcode_libdir_separator=':'
  8717. link_all_deplibs=yes
  8718. file_list_spec='${wl}-f,'
  8719. if test "$GCC" = yes; then
  8720. case $host_os in aix4.[012]|aix4.[012].*)
  8721. # We only want to do this on AIX 4.2 and lower, the check
  8722. # below for broken collect2 doesn't work under 4.3+
  8723. collect2name=`${CC} -print-prog-name=collect2`
  8724. if test -f "$collect2name" &&
  8725. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8726. then
  8727. # We have reworked collect2
  8728. :
  8729. else
  8730. # We have old collect2
  8731. hardcode_direct=unsupported
  8732. # It fails to find uninstalled libraries when the uninstalled
  8733. # path is not listed in the libpath. Setting hardcode_minus_L
  8734. # to unsupported forces relinking
  8735. hardcode_minus_L=yes
  8736. hardcode_libdir_flag_spec='-L$libdir'
  8737. hardcode_libdir_separator=
  8738. fi
  8739. ;;
  8740. esac
  8741. shared_flag='-shared'
  8742. if test "$aix_use_runtimelinking" = yes; then
  8743. shared_flag="$shared_flag "'${wl}-G'
  8744. fi
  8745. link_all_deplibs=no
  8746. else
  8747. # not using gcc
  8748. if test "$host_cpu" = ia64; then
  8749. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8750. # chokes on -Wl,-G. The following line is correct:
  8751. shared_flag='-G'
  8752. else
  8753. if test "$aix_use_runtimelinking" = yes; then
  8754. shared_flag='${wl}-G'
  8755. else
  8756. shared_flag='${wl}-bM:SRE'
  8757. fi
  8758. fi
  8759. fi
  8760. export_dynamic_flag_spec='${wl}-bexpall'
  8761. # It seems that -bexpall does not export symbols beginning with
  8762. # underscore (_), so it is better to generate a list of symbols to export.
  8763. always_export_symbols=yes
  8764. if test "$aix_use_runtimelinking" = yes; then
  8765. # Warning - without using the other runtime loading flags (-brtl),
  8766. # -berok will link without error, but may produce a broken library.
  8767. allow_undefined_flag='-berok'
  8768. # Determine the default libpath from the value encoded in an
  8769. # empty executable.
  8770. if test "${lt_cv_aix_libpath+set}" = set; then
  8771. aix_libpath=$lt_cv_aix_libpath
  8772. else
  8773. if ${lt_cv_aix_libpath_+:} false; then :
  8774. $as_echo_n "(cached) " >&6
  8775. else
  8776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8777. /* end confdefs.h. */
  8778. int
  8779. main ()
  8780. {
  8781. ;
  8782. return 0;
  8783. }
  8784. _ACEOF
  8785. if ac_fn_c_try_link "$LINENO"; then :
  8786. lt_aix_libpath_sed='
  8787. /Import File Strings/,/^$/ {
  8788. /^0/ {
  8789. s/^0 *\([^ ]*\) *$/\1/
  8790. p
  8791. }
  8792. }'
  8793. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8794. # Check for a 64-bit object if we didn't find anything.
  8795. if test -z "$lt_cv_aix_libpath_"; then
  8796. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8797. fi
  8798. fi
  8799. rm -f core conftest.err conftest.$ac_objext \
  8800. conftest$ac_exeext conftest.$ac_ext
  8801. if test -z "$lt_cv_aix_libpath_"; then
  8802. lt_cv_aix_libpath_="/usr/lib:/lib"
  8803. fi
  8804. fi
  8805. aix_libpath=$lt_cv_aix_libpath_
  8806. fi
  8807. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8808. 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"
  8809. else
  8810. if test "$host_cpu" = ia64; then
  8811. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8812. allow_undefined_flag="-z nodefs"
  8813. 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"
  8814. else
  8815. # Determine the default libpath from the value encoded in an
  8816. # empty executable.
  8817. if test "${lt_cv_aix_libpath+set}" = set; then
  8818. aix_libpath=$lt_cv_aix_libpath
  8819. else
  8820. if ${lt_cv_aix_libpath_+:} false; then :
  8821. $as_echo_n "(cached) " >&6
  8822. else
  8823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8824. /* end confdefs.h. */
  8825. int
  8826. main ()
  8827. {
  8828. ;
  8829. return 0;
  8830. }
  8831. _ACEOF
  8832. if ac_fn_c_try_link "$LINENO"; then :
  8833. lt_aix_libpath_sed='
  8834. /Import File Strings/,/^$/ {
  8835. /^0/ {
  8836. s/^0 *\([^ ]*\) *$/\1/
  8837. p
  8838. }
  8839. }'
  8840. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8841. # Check for a 64-bit object if we didn't find anything.
  8842. if test -z "$lt_cv_aix_libpath_"; then
  8843. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8844. fi
  8845. fi
  8846. rm -f core conftest.err conftest.$ac_objext \
  8847. conftest$ac_exeext conftest.$ac_ext
  8848. if test -z "$lt_cv_aix_libpath_"; then
  8849. lt_cv_aix_libpath_="/usr/lib:/lib"
  8850. fi
  8851. fi
  8852. aix_libpath=$lt_cv_aix_libpath_
  8853. fi
  8854. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8855. # Warning - without using the other run time loading flags,
  8856. # -berok will link without error, but may produce a broken library.
  8857. no_undefined_flag=' ${wl}-bernotok'
  8858. allow_undefined_flag=' ${wl}-berok'
  8859. if test "$with_gnu_ld" = yes; then
  8860. # We only use this code for GNU lds that support --whole-archive.
  8861. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8862. else
  8863. # Exported symbols can be pulled into shared objects from archives
  8864. whole_archive_flag_spec='$convenience'
  8865. fi
  8866. archive_cmds_need_lc=yes
  8867. # This is similar to how AIX traditionally builds its shared libraries.
  8868. 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'
  8869. fi
  8870. fi
  8871. ;;
  8872. amigaos*)
  8873. case $host_cpu in
  8874. powerpc)
  8875. # see comment about AmigaOS4 .so support
  8876. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8877. archive_expsym_cmds=''
  8878. ;;
  8879. m68k)
  8880. 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)'
  8881. hardcode_libdir_flag_spec='-L$libdir'
  8882. hardcode_minus_L=yes
  8883. ;;
  8884. esac
  8885. ;;
  8886. bsdi[45]*)
  8887. export_dynamic_flag_spec=-rdynamic
  8888. ;;
  8889. cygwin* | mingw* | pw32* | cegcc*)
  8890. # When not using gcc, we currently assume that we are using
  8891. # Microsoft Visual C++.
  8892. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8893. # no search path for DLLs.
  8894. case $cc_basename in
  8895. cl*)
  8896. # Native MSVC
  8897. hardcode_libdir_flag_spec=' '
  8898. allow_undefined_flag=unsupported
  8899. always_export_symbols=yes
  8900. file_list_spec='@'
  8901. # Tell ltmain to make .lib files, not .a files.
  8902. libext=lib
  8903. # Tell ltmain to make .dll files, not .so files.
  8904. shrext_cmds=".dll"
  8905. # FIXME: Setting linknames here is a bad hack.
  8906. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8907. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8908. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8909. else
  8910. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8911. fi~
  8912. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8913. linknames='
  8914. # The linker will not automatically build a static lib if we build a DLL.
  8915. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8916. enable_shared_with_static_runtimes=yes
  8917. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8918. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8919. # Don't use ranlib
  8920. old_postinstall_cmds='chmod 644 $oldlib'
  8921. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8922. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8923. case $lt_outputfile in
  8924. *.exe|*.EXE) ;;
  8925. *)
  8926. lt_outputfile="$lt_outputfile.exe"
  8927. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8928. ;;
  8929. esac~
  8930. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8931. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8932. $RM "$lt_outputfile.manifest";
  8933. fi'
  8934. ;;
  8935. *)
  8936. # Assume MSVC wrapper
  8937. hardcode_libdir_flag_spec=' '
  8938. allow_undefined_flag=unsupported
  8939. # Tell ltmain to make .lib files, not .a files.
  8940. libext=lib
  8941. # Tell ltmain to make .dll files, not .so files.
  8942. shrext_cmds=".dll"
  8943. # FIXME: Setting linknames here is a bad hack.
  8944. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8945. # The linker will automatically build a .lib file if we build a DLL.
  8946. old_archive_from_new_cmds='true'
  8947. # FIXME: Should let the user specify the lib program.
  8948. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8949. enable_shared_with_static_runtimes=yes
  8950. ;;
  8951. esac
  8952. ;;
  8953. darwin* | rhapsody*)
  8954. archive_cmds_need_lc=no
  8955. hardcode_direct=no
  8956. hardcode_automatic=yes
  8957. hardcode_shlibpath_var=unsupported
  8958. if test "$lt_cv_ld_force_load" = "yes"; then
  8959. 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\"`'
  8960. else
  8961. whole_archive_flag_spec=''
  8962. fi
  8963. link_all_deplibs=yes
  8964. allow_undefined_flag="$_lt_dar_allow_undefined"
  8965. case $cc_basename in
  8966. ifort*) _lt_dar_can_shared=yes ;;
  8967. *) _lt_dar_can_shared=$GCC ;;
  8968. esac
  8969. if test "$_lt_dar_can_shared" = "yes"; then
  8970. output_verbose_link_cmd=func_echo_all
  8971. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8972. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8973. 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}"
  8974. 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}"
  8975. else
  8976. ld_shlibs=no
  8977. fi
  8978. ;;
  8979. dgux*)
  8980. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8981. hardcode_libdir_flag_spec='-L$libdir'
  8982. hardcode_shlibpath_var=no
  8983. ;;
  8984. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8985. # support. Future versions do this automatically, but an explicit c++rt0.o
  8986. # does not break anything, and helps significantly (at the cost of a little
  8987. # extra space).
  8988. freebsd2.2*)
  8989. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8990. hardcode_libdir_flag_spec='-R$libdir'
  8991. hardcode_direct=yes
  8992. hardcode_shlibpath_var=no
  8993. ;;
  8994. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8995. freebsd2.*)
  8996. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8997. hardcode_direct=yes
  8998. hardcode_minus_L=yes
  8999. hardcode_shlibpath_var=no
  9000. ;;
  9001. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9002. freebsd* | dragonfly*)
  9003. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9004. hardcode_libdir_flag_spec='-R$libdir'
  9005. hardcode_direct=yes
  9006. hardcode_shlibpath_var=no
  9007. ;;
  9008. hpux9*)
  9009. if test "$GCC" = yes; then
  9010. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9011. else
  9012. 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'
  9013. fi
  9014. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9015. hardcode_libdir_separator=:
  9016. hardcode_direct=yes
  9017. # hardcode_minus_L: Not really in the search PATH,
  9018. # but as the default location of the library.
  9019. hardcode_minus_L=yes
  9020. export_dynamic_flag_spec='${wl}-E'
  9021. ;;
  9022. hpux10*)
  9023. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9024. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9025. else
  9026. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9027. fi
  9028. if test "$with_gnu_ld" = no; then
  9029. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9030. hardcode_libdir_separator=:
  9031. hardcode_direct=yes
  9032. hardcode_direct_absolute=yes
  9033. export_dynamic_flag_spec='${wl}-E'
  9034. # hardcode_minus_L: Not really in the search PATH,
  9035. # but as the default location of the library.
  9036. hardcode_minus_L=yes
  9037. fi
  9038. ;;
  9039. hpux11*)
  9040. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9041. case $host_cpu in
  9042. hppa*64*)
  9043. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9044. ;;
  9045. ia64*)
  9046. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9047. ;;
  9048. *)
  9049. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9050. ;;
  9051. esac
  9052. else
  9053. case $host_cpu in
  9054. hppa*64*)
  9055. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9056. ;;
  9057. ia64*)
  9058. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9059. ;;
  9060. *)
  9061. # Older versions of the 11.00 compiler do not understand -b yet
  9062. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9064. $as_echo_n "checking if $CC understands -b... " >&6; }
  9065. if ${lt_cv_prog_compiler__b+:} false; then :
  9066. $as_echo_n "(cached) " >&6
  9067. else
  9068. lt_cv_prog_compiler__b=no
  9069. save_LDFLAGS="$LDFLAGS"
  9070. LDFLAGS="$LDFLAGS -b"
  9071. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9072. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9073. # The linker can only warn and ignore the option if not recognized
  9074. # So say no if there are warnings
  9075. if test -s conftest.err; then
  9076. # Append any errors to the config.log.
  9077. cat conftest.err 1>&5
  9078. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9079. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9080. if diff conftest.exp conftest.er2 >/dev/null; then
  9081. lt_cv_prog_compiler__b=yes
  9082. fi
  9083. else
  9084. lt_cv_prog_compiler__b=yes
  9085. fi
  9086. fi
  9087. $RM -r conftest*
  9088. LDFLAGS="$save_LDFLAGS"
  9089. fi
  9090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9091. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9092. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9093. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9094. else
  9095. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9096. fi
  9097. ;;
  9098. esac
  9099. fi
  9100. if test "$with_gnu_ld" = no; then
  9101. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9102. hardcode_libdir_separator=:
  9103. case $host_cpu in
  9104. hppa*64*|ia64*)
  9105. hardcode_direct=no
  9106. hardcode_shlibpath_var=no
  9107. ;;
  9108. *)
  9109. hardcode_direct=yes
  9110. hardcode_direct_absolute=yes
  9111. export_dynamic_flag_spec='${wl}-E'
  9112. # hardcode_minus_L: Not really in the search PATH,
  9113. # but as the default location of the library.
  9114. hardcode_minus_L=yes
  9115. ;;
  9116. esac
  9117. fi
  9118. ;;
  9119. irix5* | irix6* | nonstopux*)
  9120. if test "$GCC" = yes; then
  9121. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9122. # Try to use the -exported_symbol ld option, if it does not
  9123. # work, assume that -exports_file does not work either and
  9124. # implicitly export all symbols.
  9125. # This should be the same for all languages, so no per-tag cache variable.
  9126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9127. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9128. if ${lt_cv_irix_exported_symbol+:} false; then :
  9129. $as_echo_n "(cached) " >&6
  9130. else
  9131. save_LDFLAGS="$LDFLAGS"
  9132. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9134. /* end confdefs.h. */
  9135. int foo (void) { return 0; }
  9136. _ACEOF
  9137. if ac_fn_c_try_link "$LINENO"; then :
  9138. lt_cv_irix_exported_symbol=yes
  9139. else
  9140. lt_cv_irix_exported_symbol=no
  9141. fi
  9142. rm -f core conftest.err conftest.$ac_objext \
  9143. conftest$ac_exeext conftest.$ac_ext
  9144. LDFLAGS="$save_LDFLAGS"
  9145. fi
  9146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9147. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9148. if test "$lt_cv_irix_exported_symbol" = yes; then
  9149. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9150. fi
  9151. else
  9152. 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'
  9153. 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'
  9154. fi
  9155. archive_cmds_need_lc='no'
  9156. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9157. hardcode_libdir_separator=:
  9158. inherit_rpath=yes
  9159. link_all_deplibs=yes
  9160. ;;
  9161. netbsd* | netbsdelf*-gnu)
  9162. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9163. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9164. else
  9165. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9166. fi
  9167. hardcode_libdir_flag_spec='-R$libdir'
  9168. hardcode_direct=yes
  9169. hardcode_shlibpath_var=no
  9170. ;;
  9171. newsos6)
  9172. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9173. hardcode_direct=yes
  9174. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9175. hardcode_libdir_separator=:
  9176. hardcode_shlibpath_var=no
  9177. ;;
  9178. *nto* | *qnx*)
  9179. ;;
  9180. openbsd*)
  9181. if test -f /usr/libexec/ld.so; then
  9182. hardcode_direct=yes
  9183. hardcode_shlibpath_var=no
  9184. hardcode_direct_absolute=yes
  9185. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9186. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9187. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9188. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9189. export_dynamic_flag_spec='${wl}-E'
  9190. else
  9191. case $host_os in
  9192. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9193. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9194. hardcode_libdir_flag_spec='-R$libdir'
  9195. ;;
  9196. *)
  9197. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9198. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9199. ;;
  9200. esac
  9201. fi
  9202. else
  9203. ld_shlibs=no
  9204. fi
  9205. ;;
  9206. os2*)
  9207. hardcode_libdir_flag_spec='-L$libdir'
  9208. hardcode_minus_L=yes
  9209. allow_undefined_flag=unsupported
  9210. 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'
  9211. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9212. ;;
  9213. osf3*)
  9214. if test "$GCC" = yes; then
  9215. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9216. 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'
  9217. else
  9218. allow_undefined_flag=' -expect_unresolved \*'
  9219. 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'
  9220. fi
  9221. archive_cmds_need_lc='no'
  9222. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9223. hardcode_libdir_separator=:
  9224. ;;
  9225. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9226. if test "$GCC" = yes; then
  9227. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9228. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9229. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9230. else
  9231. allow_undefined_flag=' -expect_unresolved \*'
  9232. 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'
  9233. 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~
  9234. $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'
  9235. # Both c and cxx compiler support -rpath directly
  9236. hardcode_libdir_flag_spec='-rpath $libdir'
  9237. fi
  9238. archive_cmds_need_lc='no'
  9239. hardcode_libdir_separator=:
  9240. ;;
  9241. solaris*)
  9242. no_undefined_flag=' -z defs'
  9243. if test "$GCC" = yes; then
  9244. wlarc='${wl}'
  9245. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9246. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9247. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9248. else
  9249. case `$CC -V 2>&1` in
  9250. *"Compilers 5.0"*)
  9251. wlarc=''
  9252. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9253. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9254. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9255. ;;
  9256. *)
  9257. wlarc='${wl}'
  9258. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9259. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9260. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9261. ;;
  9262. esac
  9263. fi
  9264. hardcode_libdir_flag_spec='-R$libdir'
  9265. hardcode_shlibpath_var=no
  9266. case $host_os in
  9267. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9268. *)
  9269. # The compiler driver will combine and reorder linker options,
  9270. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9271. # but is careful enough not to reorder.
  9272. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9273. if test "$GCC" = yes; then
  9274. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9275. else
  9276. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9277. fi
  9278. ;;
  9279. esac
  9280. link_all_deplibs=yes
  9281. ;;
  9282. sunos4*)
  9283. if test "x$host_vendor" = xsequent; then
  9284. # Use $CC to link under sequent, because it throws in some extra .o
  9285. # files that make .init and .fini sections work.
  9286. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9287. else
  9288. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9289. fi
  9290. hardcode_libdir_flag_spec='-L$libdir'
  9291. hardcode_direct=yes
  9292. hardcode_minus_L=yes
  9293. hardcode_shlibpath_var=no
  9294. ;;
  9295. sysv4)
  9296. case $host_vendor in
  9297. sni)
  9298. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9299. hardcode_direct=yes # is this really true???
  9300. ;;
  9301. siemens)
  9302. ## LD is ld it makes a PLAMLIB
  9303. ## CC just makes a GrossModule.
  9304. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9305. reload_cmds='$CC -r -o $output$reload_objs'
  9306. hardcode_direct=no
  9307. ;;
  9308. motorola)
  9309. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9310. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9311. ;;
  9312. esac
  9313. runpath_var='LD_RUN_PATH'
  9314. hardcode_shlibpath_var=no
  9315. ;;
  9316. sysv4.3*)
  9317. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9318. hardcode_shlibpath_var=no
  9319. export_dynamic_flag_spec='-Bexport'
  9320. ;;
  9321. sysv4*MP*)
  9322. if test -d /usr/nec; then
  9323. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9324. hardcode_shlibpath_var=no
  9325. runpath_var=LD_RUN_PATH
  9326. hardcode_runpath_var=yes
  9327. ld_shlibs=yes
  9328. fi
  9329. ;;
  9330. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9331. no_undefined_flag='${wl}-z,text'
  9332. archive_cmds_need_lc=no
  9333. hardcode_shlibpath_var=no
  9334. runpath_var='LD_RUN_PATH'
  9335. if test "$GCC" = yes; then
  9336. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9337. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9338. else
  9339. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9340. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9341. fi
  9342. ;;
  9343. sysv5* | sco3.2v5* | sco5v6*)
  9344. # Note: We can NOT use -z defs as we might desire, because we do not
  9345. # link with -lc, and that would cause any symbols used from libc to
  9346. # always be unresolved, which means just about no library would
  9347. # ever link correctly. If we're not using GNU ld we use -z text
  9348. # though, which does catch some bad symbols but isn't as heavy-handed
  9349. # as -z defs.
  9350. no_undefined_flag='${wl}-z,text'
  9351. allow_undefined_flag='${wl}-z,nodefs'
  9352. archive_cmds_need_lc=no
  9353. hardcode_shlibpath_var=no
  9354. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9355. hardcode_libdir_separator=':'
  9356. link_all_deplibs=yes
  9357. export_dynamic_flag_spec='${wl}-Bexport'
  9358. runpath_var='LD_RUN_PATH'
  9359. if test "$GCC" = yes; then
  9360. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9361. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9362. else
  9363. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9364. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9365. fi
  9366. ;;
  9367. uts4*)
  9368. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9369. hardcode_libdir_flag_spec='-L$libdir'
  9370. hardcode_shlibpath_var=no
  9371. ;;
  9372. *)
  9373. ld_shlibs=no
  9374. ;;
  9375. esac
  9376. if test x$host_vendor = xsni; then
  9377. case $host in
  9378. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9379. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9380. ;;
  9381. esac
  9382. fi
  9383. fi
  9384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9385. $as_echo "$ld_shlibs" >&6; }
  9386. test "$ld_shlibs" = no && can_build_shared=no
  9387. with_gnu_ld=$with_gnu_ld
  9388. #
  9389. # Do we need to explicitly link libc?
  9390. #
  9391. case "x$archive_cmds_need_lc" in
  9392. x|xyes)
  9393. # Assume -lc should be added
  9394. archive_cmds_need_lc=yes
  9395. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9396. case $archive_cmds in
  9397. *'~'*)
  9398. # FIXME: we may have to deal with multi-command sequences.
  9399. ;;
  9400. '$CC '*)
  9401. # Test whether the compiler implicitly links with -lc since on some
  9402. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9403. # to ld, don't add -lc before -lgcc.
  9404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9405. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9406. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9407. $as_echo_n "(cached) " >&6
  9408. else
  9409. $RM conftest*
  9410. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9411. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9412. (eval $ac_compile) 2>&5
  9413. ac_status=$?
  9414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9415. test $ac_status = 0; } 2>conftest.err; then
  9416. soname=conftest
  9417. lib=conftest
  9418. libobjs=conftest.$ac_objext
  9419. deplibs=
  9420. wl=$lt_prog_compiler_wl
  9421. pic_flag=$lt_prog_compiler_pic
  9422. compiler_flags=-v
  9423. linker_flags=-v
  9424. verstring=
  9425. output_objdir=.
  9426. libname=conftest
  9427. lt_save_allow_undefined_flag=$allow_undefined_flag
  9428. allow_undefined_flag=
  9429. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9430. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9431. ac_status=$?
  9432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9433. test $ac_status = 0; }
  9434. then
  9435. lt_cv_archive_cmds_need_lc=no
  9436. else
  9437. lt_cv_archive_cmds_need_lc=yes
  9438. fi
  9439. allow_undefined_flag=$lt_save_allow_undefined_flag
  9440. else
  9441. cat conftest.err 1>&5
  9442. fi
  9443. $RM conftest*
  9444. fi
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9446. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9447. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9448. ;;
  9449. esac
  9450. fi
  9451. ;;
  9452. esac
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9454. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9455. if test "$GCC" = yes; then
  9456. case $host_os in
  9457. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9458. *) lt_awk_arg="/^libraries:/" ;;
  9459. esac
  9460. case $host_os in
  9461. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9462. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9463. esac
  9464. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9465. case $lt_search_path_spec in
  9466. *\;*)
  9467. # if the path contains ";" then we assume it to be the separator
  9468. # otherwise default to the standard path separator (i.e. ":") - it is
  9469. # assumed that no part of a normal pathname contains ";" but that should
  9470. # okay in the real world where ";" in dirpaths is itself problematic.
  9471. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9472. ;;
  9473. *)
  9474. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9475. ;;
  9476. esac
  9477. # Ok, now we have the path, separated by spaces, we can step through it
  9478. # and add multilib dir if necessary.
  9479. lt_tmp_lt_search_path_spec=
  9480. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9481. for lt_sys_path in $lt_search_path_spec; do
  9482. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9483. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9484. else
  9485. test -d "$lt_sys_path" && \
  9486. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9487. fi
  9488. done
  9489. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9490. BEGIN {RS=" "; FS="/|\n";} {
  9491. lt_foo="";
  9492. lt_count=0;
  9493. for (lt_i = NF; lt_i > 0; lt_i--) {
  9494. if ($lt_i != "" && $lt_i != ".") {
  9495. if ($lt_i == "..") {
  9496. lt_count++;
  9497. } else {
  9498. if (lt_count == 0) {
  9499. lt_foo="/" $lt_i lt_foo;
  9500. } else {
  9501. lt_count--;
  9502. }
  9503. }
  9504. }
  9505. }
  9506. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9507. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9508. }'`
  9509. # AWK program above erroneously prepends '/' to C:/dos/paths
  9510. # for these hosts.
  9511. case $host_os in
  9512. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9513. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9514. esac
  9515. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9516. else
  9517. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9518. fi
  9519. library_names_spec=
  9520. libname_spec='lib$name'
  9521. soname_spec=
  9522. shrext_cmds=".so"
  9523. postinstall_cmds=
  9524. postuninstall_cmds=
  9525. finish_cmds=
  9526. finish_eval=
  9527. shlibpath_var=
  9528. shlibpath_overrides_runpath=unknown
  9529. version_type=none
  9530. dynamic_linker="$host_os ld.so"
  9531. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9532. need_lib_prefix=unknown
  9533. hardcode_into_libs=no
  9534. # when you set need_version to no, make sure it does not cause -set_version
  9535. # flags to be left without arguments
  9536. need_version=unknown
  9537. case $host_os in
  9538. aix3*)
  9539. version_type=linux # correct to gnu/linux during the next big refactor
  9540. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9541. shlibpath_var=LIBPATH
  9542. # AIX 3 has no versioning support, so we append a major version to the name.
  9543. soname_spec='${libname}${release}${shared_ext}$major'
  9544. ;;
  9545. aix[4-9]*)
  9546. version_type=linux # correct to gnu/linux during the next big refactor
  9547. need_lib_prefix=no
  9548. need_version=no
  9549. hardcode_into_libs=yes
  9550. if test "$host_cpu" = ia64; then
  9551. # AIX 5 supports IA64
  9552. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9553. shlibpath_var=LD_LIBRARY_PATH
  9554. else
  9555. # With GCC up to 2.95.x, collect2 would create an import file
  9556. # for dependence libraries. The import file would start with
  9557. # the line `#! .'. This would cause the generated library to
  9558. # depend on `.', always an invalid library. This was fixed in
  9559. # development snapshots of GCC prior to 3.0.
  9560. case $host_os in
  9561. aix4 | aix4.[01] | aix4.[01].*)
  9562. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9563. echo ' yes '
  9564. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9565. :
  9566. else
  9567. can_build_shared=no
  9568. fi
  9569. ;;
  9570. esac
  9571. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9572. # soname into executable. Probably we can add versioning support to
  9573. # collect2, so additional links can be useful in future.
  9574. if test "$aix_use_runtimelinking" = yes; then
  9575. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9576. # instead of lib<name>.a to let people know that these are not
  9577. # typical AIX shared libraries.
  9578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9579. else
  9580. # We preserve .a as extension for shared libraries through AIX4.2
  9581. # and later when we are not doing run time linking.
  9582. library_names_spec='${libname}${release}.a $libname.a'
  9583. soname_spec='${libname}${release}${shared_ext}$major'
  9584. fi
  9585. shlibpath_var=LIBPATH
  9586. fi
  9587. ;;
  9588. amigaos*)
  9589. case $host_cpu in
  9590. powerpc)
  9591. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9592. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9594. ;;
  9595. m68k)
  9596. library_names_spec='$libname.ixlibrary $libname.a'
  9597. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9598. 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'
  9599. ;;
  9600. esac
  9601. ;;
  9602. beos*)
  9603. library_names_spec='${libname}${shared_ext}'
  9604. dynamic_linker="$host_os ld.so"
  9605. shlibpath_var=LIBRARY_PATH
  9606. ;;
  9607. bsdi[45]*)
  9608. version_type=linux # correct to gnu/linux during the next big refactor
  9609. need_version=no
  9610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9611. soname_spec='${libname}${release}${shared_ext}$major'
  9612. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9613. shlibpath_var=LD_LIBRARY_PATH
  9614. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9615. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9616. # the default ld.so.conf also contains /usr/contrib/lib and
  9617. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9618. # libtool to hard-code these into programs
  9619. ;;
  9620. cygwin* | mingw* | pw32* | cegcc*)
  9621. version_type=windows
  9622. shrext_cmds=".dll"
  9623. need_version=no
  9624. need_lib_prefix=no
  9625. case $GCC,$cc_basename in
  9626. yes,*)
  9627. # gcc
  9628. library_names_spec='$libname.dll.a'
  9629. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9630. postinstall_cmds='base_file=`basename \${file}`~
  9631. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9632. dldir=$destdir/`dirname \$dlpath`~
  9633. test -d \$dldir || mkdir -p \$dldir~
  9634. $install_prog $dir/$dlname \$dldir/$dlname~
  9635. chmod a+x \$dldir/$dlname~
  9636. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9637. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9638. fi'
  9639. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9640. dlpath=$dir/\$dldll~
  9641. $RM \$dlpath'
  9642. shlibpath_overrides_runpath=yes
  9643. case $host_os in
  9644. cygwin*)
  9645. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9646. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9647. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9648. ;;
  9649. mingw* | cegcc*)
  9650. # MinGW DLLs use traditional 'lib' prefix
  9651. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9652. ;;
  9653. pw32*)
  9654. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9655. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9656. ;;
  9657. esac
  9658. dynamic_linker='Win32 ld.exe'
  9659. ;;
  9660. *,cl*)
  9661. # Native MSVC
  9662. libname_spec='$name'
  9663. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9664. library_names_spec='${libname}.dll.lib'
  9665. case $build_os in
  9666. mingw*)
  9667. sys_lib_search_path_spec=
  9668. lt_save_ifs=$IFS
  9669. IFS=';'
  9670. for lt_path in $LIB
  9671. do
  9672. IFS=$lt_save_ifs
  9673. # Let DOS variable expansion print the short 8.3 style file name.
  9674. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9675. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9676. done
  9677. IFS=$lt_save_ifs
  9678. # Convert to MSYS style.
  9679. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9680. ;;
  9681. cygwin*)
  9682. # Convert to unix form, then to dos form, then back to unix form
  9683. # but this time dos style (no spaces!) so that the unix form looks
  9684. # like /cygdrive/c/PROGRA~1:/cygdr...
  9685. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9686. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9687. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9688. ;;
  9689. *)
  9690. sys_lib_search_path_spec="$LIB"
  9691. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9692. # It is most probably a Windows format PATH.
  9693. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9694. else
  9695. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9696. fi
  9697. # FIXME: find the short name or the path components, as spaces are
  9698. # common. (e.g. "Program Files" -> "PROGRA~1")
  9699. ;;
  9700. esac
  9701. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9702. postinstall_cmds='base_file=`basename \${file}`~
  9703. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9704. dldir=$destdir/`dirname \$dlpath`~
  9705. test -d \$dldir || mkdir -p \$dldir~
  9706. $install_prog $dir/$dlname \$dldir/$dlname'
  9707. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9708. dlpath=$dir/\$dldll~
  9709. $RM \$dlpath'
  9710. shlibpath_overrides_runpath=yes
  9711. dynamic_linker='Win32 link.exe'
  9712. ;;
  9713. *)
  9714. # Assume MSVC wrapper
  9715. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9716. dynamic_linker='Win32 ld.exe'
  9717. ;;
  9718. esac
  9719. # FIXME: first we should search . and the directory the executable is in
  9720. shlibpath_var=PATH
  9721. ;;
  9722. darwin* | rhapsody*)
  9723. dynamic_linker="$host_os dyld"
  9724. version_type=darwin
  9725. need_lib_prefix=no
  9726. need_version=no
  9727. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9728. soname_spec='${libname}${release}${major}$shared_ext'
  9729. shlibpath_overrides_runpath=yes
  9730. shlibpath_var=DYLD_LIBRARY_PATH
  9731. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9732. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9733. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9734. ;;
  9735. dgux*)
  9736. version_type=linux # correct to gnu/linux during the next big refactor
  9737. need_lib_prefix=no
  9738. need_version=no
  9739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9740. soname_spec='${libname}${release}${shared_ext}$major'
  9741. shlibpath_var=LD_LIBRARY_PATH
  9742. ;;
  9743. freebsd* | dragonfly*)
  9744. # DragonFly does not have aout. When/if they implement a new
  9745. # versioning mechanism, adjust this.
  9746. if test -x /usr/bin/objformat; then
  9747. objformat=`/usr/bin/objformat`
  9748. else
  9749. case $host_os in
  9750. freebsd[23].*) objformat=aout ;;
  9751. *) objformat=elf ;;
  9752. esac
  9753. fi
  9754. version_type=freebsd-$objformat
  9755. case $version_type in
  9756. freebsd-elf*)
  9757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9758. need_version=no
  9759. need_lib_prefix=no
  9760. ;;
  9761. freebsd-*)
  9762. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9763. need_version=yes
  9764. ;;
  9765. esac
  9766. shlibpath_var=LD_LIBRARY_PATH
  9767. case $host_os in
  9768. freebsd2.*)
  9769. shlibpath_overrides_runpath=yes
  9770. ;;
  9771. freebsd3.[01]* | freebsdelf3.[01]*)
  9772. shlibpath_overrides_runpath=yes
  9773. hardcode_into_libs=yes
  9774. ;;
  9775. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9776. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9777. shlibpath_overrides_runpath=no
  9778. hardcode_into_libs=yes
  9779. ;;
  9780. *) # from 4.6 on, and DragonFly
  9781. shlibpath_overrides_runpath=yes
  9782. hardcode_into_libs=yes
  9783. ;;
  9784. esac
  9785. ;;
  9786. haiku*)
  9787. version_type=linux # correct to gnu/linux during the next big refactor
  9788. need_lib_prefix=no
  9789. need_version=no
  9790. dynamic_linker="$host_os runtime_loader"
  9791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9792. soname_spec='${libname}${release}${shared_ext}$major'
  9793. shlibpath_var=LIBRARY_PATH
  9794. shlibpath_overrides_runpath=yes
  9795. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9796. hardcode_into_libs=yes
  9797. ;;
  9798. hpux9* | hpux10* | hpux11*)
  9799. # Give a soname corresponding to the major version so that dld.sl refuses to
  9800. # link against other versions.
  9801. version_type=sunos
  9802. need_lib_prefix=no
  9803. need_version=no
  9804. case $host_cpu in
  9805. ia64*)
  9806. shrext_cmds='.so'
  9807. hardcode_into_libs=yes
  9808. dynamic_linker="$host_os dld.so"
  9809. shlibpath_var=LD_LIBRARY_PATH
  9810. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9812. soname_spec='${libname}${release}${shared_ext}$major'
  9813. if test "X$HPUX_IA64_MODE" = X32; then
  9814. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9815. else
  9816. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9817. fi
  9818. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9819. ;;
  9820. hppa*64*)
  9821. shrext_cmds='.sl'
  9822. hardcode_into_libs=yes
  9823. dynamic_linker="$host_os dld.sl"
  9824. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9825. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9827. soname_spec='${libname}${release}${shared_ext}$major'
  9828. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9829. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9830. ;;
  9831. *)
  9832. shrext_cmds='.sl'
  9833. dynamic_linker="$host_os dld.sl"
  9834. shlibpath_var=SHLIB_PATH
  9835. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9837. soname_spec='${libname}${release}${shared_ext}$major'
  9838. ;;
  9839. esac
  9840. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9841. postinstall_cmds='chmod 555 $lib'
  9842. # or fails outright, so override atomically:
  9843. install_override_mode=555
  9844. ;;
  9845. interix[3-9]*)
  9846. version_type=linux # correct to gnu/linux during the next big refactor
  9847. need_lib_prefix=no
  9848. need_version=no
  9849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9850. soname_spec='${libname}${release}${shared_ext}$major'
  9851. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9852. shlibpath_var=LD_LIBRARY_PATH
  9853. shlibpath_overrides_runpath=no
  9854. hardcode_into_libs=yes
  9855. ;;
  9856. irix5* | irix6* | nonstopux*)
  9857. case $host_os in
  9858. nonstopux*) version_type=nonstopux ;;
  9859. *)
  9860. if test "$lt_cv_prog_gnu_ld" = yes; then
  9861. version_type=linux # correct to gnu/linux during the next big refactor
  9862. else
  9863. version_type=irix
  9864. fi ;;
  9865. esac
  9866. need_lib_prefix=no
  9867. need_version=no
  9868. soname_spec='${libname}${release}${shared_ext}$major'
  9869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9870. case $host_os in
  9871. irix5* | nonstopux*)
  9872. libsuff= shlibsuff=
  9873. ;;
  9874. *)
  9875. case $LD in # libtool.m4 will add one of these switches to LD
  9876. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9877. libsuff= shlibsuff= libmagic=32-bit;;
  9878. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9879. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9880. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9881. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9882. *) libsuff= shlibsuff= libmagic=never-match;;
  9883. esac
  9884. ;;
  9885. esac
  9886. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9887. shlibpath_overrides_runpath=no
  9888. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9889. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9890. hardcode_into_libs=yes
  9891. ;;
  9892. # No shared lib support for Linux oldld, aout, or coff.
  9893. linux*oldld* | linux*aout* | linux*coff*)
  9894. dynamic_linker=no
  9895. ;;
  9896. # This must be glibc/ELF.
  9897. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9898. version_type=linux # correct to gnu/linux during the next big refactor
  9899. need_lib_prefix=no
  9900. need_version=no
  9901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9902. soname_spec='${libname}${release}${shared_ext}$major'
  9903. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9904. shlibpath_var=LD_LIBRARY_PATH
  9905. shlibpath_overrides_runpath=no
  9906. # Some binutils ld are patched to set DT_RUNPATH
  9907. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9908. $as_echo_n "(cached) " >&6
  9909. else
  9910. lt_cv_shlibpath_overrides_runpath=no
  9911. save_LDFLAGS=$LDFLAGS
  9912. save_libdir=$libdir
  9913. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9914. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9916. /* end confdefs.h. */
  9917. int
  9918. main ()
  9919. {
  9920. ;
  9921. return 0;
  9922. }
  9923. _ACEOF
  9924. if ac_fn_c_try_link "$LINENO"; then :
  9925. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9926. lt_cv_shlibpath_overrides_runpath=yes
  9927. fi
  9928. fi
  9929. rm -f core conftest.err conftest.$ac_objext \
  9930. conftest$ac_exeext conftest.$ac_ext
  9931. LDFLAGS=$save_LDFLAGS
  9932. libdir=$save_libdir
  9933. fi
  9934. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9935. # This implies no fast_install, which is unacceptable.
  9936. # Some rework will be needed to allow for fast_install
  9937. # before this can be enabled.
  9938. hardcode_into_libs=yes
  9939. # Append ld.so.conf contents to the search path
  9940. if test -f /etc/ld.so.conf; then
  9941. 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' ' '`
  9942. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9943. fi
  9944. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9945. # powerpc, because MkLinux only supported shared libraries with the
  9946. # GNU dynamic linker. Since this was broken with cross compilers,
  9947. # most powerpc-linux boxes support dynamic linking these days and
  9948. # people can always --disable-shared, the test was removed, and we
  9949. # assume the GNU/Linux dynamic linker is in use.
  9950. dynamic_linker='GNU/Linux ld.so'
  9951. ;;
  9952. netbsdelf*-gnu)
  9953. version_type=linux
  9954. need_lib_prefix=no
  9955. need_version=no
  9956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9957. soname_spec='${libname}${release}${shared_ext}$major'
  9958. shlibpath_var=LD_LIBRARY_PATH
  9959. shlibpath_overrides_runpath=no
  9960. hardcode_into_libs=yes
  9961. dynamic_linker='NetBSD ld.elf_so'
  9962. ;;
  9963. netbsd*)
  9964. version_type=sunos
  9965. need_lib_prefix=no
  9966. need_version=no
  9967. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9969. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9970. dynamic_linker='NetBSD (a.out) ld.so'
  9971. else
  9972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9973. soname_spec='${libname}${release}${shared_ext}$major'
  9974. dynamic_linker='NetBSD ld.elf_so'
  9975. fi
  9976. shlibpath_var=LD_LIBRARY_PATH
  9977. shlibpath_overrides_runpath=yes
  9978. hardcode_into_libs=yes
  9979. ;;
  9980. newsos6)
  9981. version_type=linux # correct to gnu/linux during the next big refactor
  9982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9983. shlibpath_var=LD_LIBRARY_PATH
  9984. shlibpath_overrides_runpath=yes
  9985. ;;
  9986. *nto* | *qnx*)
  9987. version_type=qnx
  9988. need_lib_prefix=no
  9989. need_version=no
  9990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9991. soname_spec='${libname}${release}${shared_ext}$major'
  9992. shlibpath_var=LD_LIBRARY_PATH
  9993. shlibpath_overrides_runpath=no
  9994. hardcode_into_libs=yes
  9995. dynamic_linker='ldqnx.so'
  9996. ;;
  9997. openbsd*)
  9998. version_type=sunos
  9999. sys_lib_dlsearch_path_spec="/usr/lib"
  10000. need_lib_prefix=no
  10001. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10002. case $host_os in
  10003. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10004. *) need_version=no ;;
  10005. esac
  10006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10007. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10008. shlibpath_var=LD_LIBRARY_PATH
  10009. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10010. case $host_os in
  10011. openbsd2.[89] | openbsd2.[89].*)
  10012. shlibpath_overrides_runpath=no
  10013. ;;
  10014. *)
  10015. shlibpath_overrides_runpath=yes
  10016. ;;
  10017. esac
  10018. else
  10019. shlibpath_overrides_runpath=yes
  10020. fi
  10021. ;;
  10022. os2*)
  10023. libname_spec='$name'
  10024. shrext_cmds=".dll"
  10025. need_lib_prefix=no
  10026. library_names_spec='$libname${shared_ext} $libname.a'
  10027. dynamic_linker='OS/2 ld.exe'
  10028. shlibpath_var=LIBPATH
  10029. ;;
  10030. osf3* | osf4* | osf5*)
  10031. version_type=osf
  10032. need_lib_prefix=no
  10033. need_version=no
  10034. soname_spec='${libname}${release}${shared_ext}$major'
  10035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10036. shlibpath_var=LD_LIBRARY_PATH
  10037. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10038. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10039. ;;
  10040. rdos*)
  10041. dynamic_linker=no
  10042. ;;
  10043. solaris*)
  10044. version_type=linux # correct to gnu/linux during the next big refactor
  10045. need_lib_prefix=no
  10046. need_version=no
  10047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10048. soname_spec='${libname}${release}${shared_ext}$major'
  10049. shlibpath_var=LD_LIBRARY_PATH
  10050. shlibpath_overrides_runpath=yes
  10051. hardcode_into_libs=yes
  10052. # ldd complains unless libraries are executable
  10053. postinstall_cmds='chmod +x $lib'
  10054. ;;
  10055. sunos4*)
  10056. version_type=sunos
  10057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10058. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10059. shlibpath_var=LD_LIBRARY_PATH
  10060. shlibpath_overrides_runpath=yes
  10061. if test "$with_gnu_ld" = yes; then
  10062. need_lib_prefix=no
  10063. fi
  10064. need_version=yes
  10065. ;;
  10066. sysv4 | sysv4.3*)
  10067. version_type=linux # correct to gnu/linux during the next big refactor
  10068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10069. soname_spec='${libname}${release}${shared_ext}$major'
  10070. shlibpath_var=LD_LIBRARY_PATH
  10071. case $host_vendor in
  10072. sni)
  10073. shlibpath_overrides_runpath=no
  10074. need_lib_prefix=no
  10075. runpath_var=LD_RUN_PATH
  10076. ;;
  10077. siemens)
  10078. need_lib_prefix=no
  10079. ;;
  10080. motorola)
  10081. need_lib_prefix=no
  10082. need_version=no
  10083. shlibpath_overrides_runpath=no
  10084. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10085. ;;
  10086. esac
  10087. ;;
  10088. sysv4*MP*)
  10089. if test -d /usr/nec ;then
  10090. version_type=linux # correct to gnu/linux during the next big refactor
  10091. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10092. soname_spec='$libname${shared_ext}.$major'
  10093. shlibpath_var=LD_LIBRARY_PATH
  10094. fi
  10095. ;;
  10096. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10097. version_type=freebsd-elf
  10098. need_lib_prefix=no
  10099. need_version=no
  10100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10101. soname_spec='${libname}${release}${shared_ext}$major'
  10102. shlibpath_var=LD_LIBRARY_PATH
  10103. shlibpath_overrides_runpath=yes
  10104. hardcode_into_libs=yes
  10105. if test "$with_gnu_ld" = yes; then
  10106. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10107. else
  10108. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10109. case $host_os in
  10110. sco3.2v5*)
  10111. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10112. ;;
  10113. esac
  10114. fi
  10115. sys_lib_dlsearch_path_spec='/usr/lib'
  10116. ;;
  10117. tpf*)
  10118. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10119. version_type=linux # correct to gnu/linux during the next big refactor
  10120. need_lib_prefix=no
  10121. need_version=no
  10122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10123. shlibpath_var=LD_LIBRARY_PATH
  10124. shlibpath_overrides_runpath=no
  10125. hardcode_into_libs=yes
  10126. ;;
  10127. uts4*)
  10128. version_type=linux # correct to gnu/linux during the next big refactor
  10129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10130. soname_spec='${libname}${release}${shared_ext}$major'
  10131. shlibpath_var=LD_LIBRARY_PATH
  10132. ;;
  10133. *)
  10134. dynamic_linker=no
  10135. ;;
  10136. esac
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10138. $as_echo "$dynamic_linker" >&6; }
  10139. test "$dynamic_linker" = no && can_build_shared=no
  10140. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10141. if test "$GCC" = yes; then
  10142. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10143. fi
  10144. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10145. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10146. fi
  10147. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10148. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10149. fi
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10151. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10152. hardcode_action=
  10153. if test -n "$hardcode_libdir_flag_spec" ||
  10154. test -n "$runpath_var" ||
  10155. test "X$hardcode_automatic" = "Xyes" ; then
  10156. # We can hardcode non-existent directories.
  10157. if test "$hardcode_direct" != no &&
  10158. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10159. # have to relink, otherwise we might link with an installed library
  10160. # when we should be linking with a yet-to-be-installed one
  10161. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10162. test "$hardcode_minus_L" != no; then
  10163. # Linking always hardcodes the temporary library directory.
  10164. hardcode_action=relink
  10165. else
  10166. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10167. hardcode_action=immediate
  10168. fi
  10169. else
  10170. # We cannot hardcode anything, or else we can only hardcode existing
  10171. # directories.
  10172. hardcode_action=unsupported
  10173. fi
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10175. $as_echo "$hardcode_action" >&6; }
  10176. if test "$hardcode_action" = relink ||
  10177. test "$inherit_rpath" = yes; then
  10178. # Fast installation is not supported
  10179. enable_fast_install=no
  10180. elif test "$shlibpath_overrides_runpath" = yes ||
  10181. test "$enable_shared" = no; then
  10182. # Fast installation is not necessary
  10183. enable_fast_install=needless
  10184. fi
  10185. if test "x$enable_dlopen" != xyes; then
  10186. enable_dlopen=unknown
  10187. enable_dlopen_self=unknown
  10188. enable_dlopen_self_static=unknown
  10189. else
  10190. lt_cv_dlopen=no
  10191. lt_cv_dlopen_libs=
  10192. case $host_os in
  10193. beos*)
  10194. lt_cv_dlopen="load_add_on"
  10195. lt_cv_dlopen_libs=
  10196. lt_cv_dlopen_self=yes
  10197. ;;
  10198. mingw* | pw32* | cegcc*)
  10199. lt_cv_dlopen="LoadLibrary"
  10200. lt_cv_dlopen_libs=
  10201. ;;
  10202. cygwin*)
  10203. lt_cv_dlopen="dlopen"
  10204. lt_cv_dlopen_libs=
  10205. ;;
  10206. darwin*)
  10207. # if libdl is installed we need to link against it
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10209. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10210. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10211. $as_echo_n "(cached) " >&6
  10212. else
  10213. ac_check_lib_save_LIBS=$LIBS
  10214. LIBS="-ldl $LIBS"
  10215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10216. /* end confdefs.h. */
  10217. /* Override any GCC internal prototype to avoid an error.
  10218. Use char because int might match the return type of a GCC
  10219. builtin and then its argument prototype would still apply. */
  10220. #ifdef __cplusplus
  10221. extern "C"
  10222. #endif
  10223. char dlopen ();
  10224. int
  10225. main ()
  10226. {
  10227. return dlopen ();
  10228. ;
  10229. return 0;
  10230. }
  10231. _ACEOF
  10232. if ac_fn_c_try_link "$LINENO"; then :
  10233. ac_cv_lib_dl_dlopen=yes
  10234. else
  10235. ac_cv_lib_dl_dlopen=no
  10236. fi
  10237. rm -f core conftest.err conftest.$ac_objext \
  10238. conftest$ac_exeext conftest.$ac_ext
  10239. LIBS=$ac_check_lib_save_LIBS
  10240. fi
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10242. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10243. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10244. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10245. else
  10246. lt_cv_dlopen="dyld"
  10247. lt_cv_dlopen_libs=
  10248. lt_cv_dlopen_self=yes
  10249. fi
  10250. ;;
  10251. *)
  10252. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10253. if test "x$ac_cv_func_shl_load" = xyes; then :
  10254. lt_cv_dlopen="shl_load"
  10255. else
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10257. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10258. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10259. $as_echo_n "(cached) " >&6
  10260. else
  10261. ac_check_lib_save_LIBS=$LIBS
  10262. LIBS="-ldld $LIBS"
  10263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10264. /* end confdefs.h. */
  10265. /* Override any GCC internal prototype to avoid an error.
  10266. Use char because int might match the return type of a GCC
  10267. builtin and then its argument prototype would still apply. */
  10268. #ifdef __cplusplus
  10269. extern "C"
  10270. #endif
  10271. char shl_load ();
  10272. int
  10273. main ()
  10274. {
  10275. return shl_load ();
  10276. ;
  10277. return 0;
  10278. }
  10279. _ACEOF
  10280. if ac_fn_c_try_link "$LINENO"; then :
  10281. ac_cv_lib_dld_shl_load=yes
  10282. else
  10283. ac_cv_lib_dld_shl_load=no
  10284. fi
  10285. rm -f core conftest.err conftest.$ac_objext \
  10286. conftest$ac_exeext conftest.$ac_ext
  10287. LIBS=$ac_check_lib_save_LIBS
  10288. fi
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10290. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10291. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10292. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10293. else
  10294. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10295. if test "x$ac_cv_func_dlopen" = xyes; then :
  10296. lt_cv_dlopen="dlopen"
  10297. else
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10299. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10300. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10301. $as_echo_n "(cached) " >&6
  10302. else
  10303. ac_check_lib_save_LIBS=$LIBS
  10304. LIBS="-ldl $LIBS"
  10305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10306. /* end confdefs.h. */
  10307. /* Override any GCC internal prototype to avoid an error.
  10308. Use char because int might match the return type of a GCC
  10309. builtin and then its argument prototype would still apply. */
  10310. #ifdef __cplusplus
  10311. extern "C"
  10312. #endif
  10313. char dlopen ();
  10314. int
  10315. main ()
  10316. {
  10317. return dlopen ();
  10318. ;
  10319. return 0;
  10320. }
  10321. _ACEOF
  10322. if ac_fn_c_try_link "$LINENO"; then :
  10323. ac_cv_lib_dl_dlopen=yes
  10324. else
  10325. ac_cv_lib_dl_dlopen=no
  10326. fi
  10327. rm -f core conftest.err conftest.$ac_objext \
  10328. conftest$ac_exeext conftest.$ac_ext
  10329. LIBS=$ac_check_lib_save_LIBS
  10330. fi
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10332. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10333. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10334. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10335. else
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10337. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10338. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10339. $as_echo_n "(cached) " >&6
  10340. else
  10341. ac_check_lib_save_LIBS=$LIBS
  10342. LIBS="-lsvld $LIBS"
  10343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10344. /* end confdefs.h. */
  10345. /* Override any GCC internal prototype to avoid an error.
  10346. Use char because int might match the return type of a GCC
  10347. builtin and then its argument prototype would still apply. */
  10348. #ifdef __cplusplus
  10349. extern "C"
  10350. #endif
  10351. char dlopen ();
  10352. int
  10353. main ()
  10354. {
  10355. return dlopen ();
  10356. ;
  10357. return 0;
  10358. }
  10359. _ACEOF
  10360. if ac_fn_c_try_link "$LINENO"; then :
  10361. ac_cv_lib_svld_dlopen=yes
  10362. else
  10363. ac_cv_lib_svld_dlopen=no
  10364. fi
  10365. rm -f core conftest.err conftest.$ac_objext \
  10366. conftest$ac_exeext conftest.$ac_ext
  10367. LIBS=$ac_check_lib_save_LIBS
  10368. fi
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10370. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10371. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10372. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10373. else
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10375. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10376. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10377. $as_echo_n "(cached) " >&6
  10378. else
  10379. ac_check_lib_save_LIBS=$LIBS
  10380. LIBS="-ldld $LIBS"
  10381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10382. /* end confdefs.h. */
  10383. /* Override any GCC internal prototype to avoid an error.
  10384. Use char because int might match the return type of a GCC
  10385. builtin and then its argument prototype would still apply. */
  10386. #ifdef __cplusplus
  10387. extern "C"
  10388. #endif
  10389. char dld_link ();
  10390. int
  10391. main ()
  10392. {
  10393. return dld_link ();
  10394. ;
  10395. return 0;
  10396. }
  10397. _ACEOF
  10398. if ac_fn_c_try_link "$LINENO"; then :
  10399. ac_cv_lib_dld_dld_link=yes
  10400. else
  10401. ac_cv_lib_dld_dld_link=no
  10402. fi
  10403. rm -f core conftest.err conftest.$ac_objext \
  10404. conftest$ac_exeext conftest.$ac_ext
  10405. LIBS=$ac_check_lib_save_LIBS
  10406. fi
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10408. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10409. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10410. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10411. fi
  10412. fi
  10413. fi
  10414. fi
  10415. fi
  10416. fi
  10417. ;;
  10418. esac
  10419. if test "x$lt_cv_dlopen" != xno; then
  10420. enable_dlopen=yes
  10421. else
  10422. enable_dlopen=no
  10423. fi
  10424. case $lt_cv_dlopen in
  10425. dlopen)
  10426. save_CPPFLAGS="$CPPFLAGS"
  10427. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10428. save_LDFLAGS="$LDFLAGS"
  10429. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10430. save_LIBS="$LIBS"
  10431. LIBS="$lt_cv_dlopen_libs $LIBS"
  10432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10433. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10434. if ${lt_cv_dlopen_self+:} false; then :
  10435. $as_echo_n "(cached) " >&6
  10436. else
  10437. if test "$cross_compiling" = yes; then :
  10438. lt_cv_dlopen_self=cross
  10439. else
  10440. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10441. lt_status=$lt_dlunknown
  10442. cat > conftest.$ac_ext <<_LT_EOF
  10443. #line $LINENO "configure"
  10444. #include "confdefs.h"
  10445. #if HAVE_DLFCN_H
  10446. #include <dlfcn.h>
  10447. #endif
  10448. #include <stdio.h>
  10449. #ifdef RTLD_GLOBAL
  10450. # define LT_DLGLOBAL RTLD_GLOBAL
  10451. #else
  10452. # ifdef DL_GLOBAL
  10453. # define LT_DLGLOBAL DL_GLOBAL
  10454. # else
  10455. # define LT_DLGLOBAL 0
  10456. # endif
  10457. #endif
  10458. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10459. find out it does not work in some platform. */
  10460. #ifndef LT_DLLAZY_OR_NOW
  10461. # ifdef RTLD_LAZY
  10462. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10463. # else
  10464. # ifdef DL_LAZY
  10465. # define LT_DLLAZY_OR_NOW DL_LAZY
  10466. # else
  10467. # ifdef RTLD_NOW
  10468. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10469. # else
  10470. # ifdef DL_NOW
  10471. # define LT_DLLAZY_OR_NOW DL_NOW
  10472. # else
  10473. # define LT_DLLAZY_OR_NOW 0
  10474. # endif
  10475. # endif
  10476. # endif
  10477. # endif
  10478. #endif
  10479. /* When -fvisbility=hidden is used, assume the code has been annotated
  10480. correspondingly for the symbols needed. */
  10481. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10482. int fnord () __attribute__((visibility("default")));
  10483. #endif
  10484. int fnord () { return 42; }
  10485. int main ()
  10486. {
  10487. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10488. int status = $lt_dlunknown;
  10489. if (self)
  10490. {
  10491. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10492. else
  10493. {
  10494. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10495. else puts (dlerror ());
  10496. }
  10497. /* dlclose (self); */
  10498. }
  10499. else
  10500. puts (dlerror ());
  10501. return status;
  10502. }
  10503. _LT_EOF
  10504. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10505. (eval $ac_link) 2>&5
  10506. ac_status=$?
  10507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10508. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10509. (./conftest; exit; ) >&5 2>/dev/null
  10510. lt_status=$?
  10511. case x$lt_status in
  10512. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10513. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10514. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10515. esac
  10516. else :
  10517. # compilation failed
  10518. lt_cv_dlopen_self=no
  10519. fi
  10520. fi
  10521. rm -fr conftest*
  10522. fi
  10523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10524. $as_echo "$lt_cv_dlopen_self" >&6; }
  10525. if test "x$lt_cv_dlopen_self" = xyes; then
  10526. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10528. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10529. if ${lt_cv_dlopen_self_static+:} false; then :
  10530. $as_echo_n "(cached) " >&6
  10531. else
  10532. if test "$cross_compiling" = yes; then :
  10533. lt_cv_dlopen_self_static=cross
  10534. else
  10535. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10536. lt_status=$lt_dlunknown
  10537. cat > conftest.$ac_ext <<_LT_EOF
  10538. #line $LINENO "configure"
  10539. #include "confdefs.h"
  10540. #if HAVE_DLFCN_H
  10541. #include <dlfcn.h>
  10542. #endif
  10543. #include <stdio.h>
  10544. #ifdef RTLD_GLOBAL
  10545. # define LT_DLGLOBAL RTLD_GLOBAL
  10546. #else
  10547. # ifdef DL_GLOBAL
  10548. # define LT_DLGLOBAL DL_GLOBAL
  10549. # else
  10550. # define LT_DLGLOBAL 0
  10551. # endif
  10552. #endif
  10553. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10554. find out it does not work in some platform. */
  10555. #ifndef LT_DLLAZY_OR_NOW
  10556. # ifdef RTLD_LAZY
  10557. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10558. # else
  10559. # ifdef DL_LAZY
  10560. # define LT_DLLAZY_OR_NOW DL_LAZY
  10561. # else
  10562. # ifdef RTLD_NOW
  10563. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10564. # else
  10565. # ifdef DL_NOW
  10566. # define LT_DLLAZY_OR_NOW DL_NOW
  10567. # else
  10568. # define LT_DLLAZY_OR_NOW 0
  10569. # endif
  10570. # endif
  10571. # endif
  10572. # endif
  10573. #endif
  10574. /* When -fvisbility=hidden is used, assume the code has been annotated
  10575. correspondingly for the symbols needed. */
  10576. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10577. int fnord () __attribute__((visibility("default")));
  10578. #endif
  10579. int fnord () { return 42; }
  10580. int main ()
  10581. {
  10582. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10583. int status = $lt_dlunknown;
  10584. if (self)
  10585. {
  10586. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10587. else
  10588. {
  10589. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10590. else puts (dlerror ());
  10591. }
  10592. /* dlclose (self); */
  10593. }
  10594. else
  10595. puts (dlerror ());
  10596. return status;
  10597. }
  10598. _LT_EOF
  10599. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10600. (eval $ac_link) 2>&5
  10601. ac_status=$?
  10602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10603. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10604. (./conftest; exit; ) >&5 2>/dev/null
  10605. lt_status=$?
  10606. case x$lt_status in
  10607. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10608. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10609. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10610. esac
  10611. else :
  10612. # compilation failed
  10613. lt_cv_dlopen_self_static=no
  10614. fi
  10615. fi
  10616. rm -fr conftest*
  10617. fi
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10619. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10620. fi
  10621. CPPFLAGS="$save_CPPFLAGS"
  10622. LDFLAGS="$save_LDFLAGS"
  10623. LIBS="$save_LIBS"
  10624. ;;
  10625. esac
  10626. case $lt_cv_dlopen_self in
  10627. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10628. *) enable_dlopen_self=unknown ;;
  10629. esac
  10630. case $lt_cv_dlopen_self_static in
  10631. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10632. *) enable_dlopen_self_static=unknown ;;
  10633. esac
  10634. fi
  10635. striplib=
  10636. old_striplib=
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10638. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10639. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10640. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10641. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10643. $as_echo "yes" >&6; }
  10644. else
  10645. # FIXME - insert some real tests, host_os isn't really good enough
  10646. case $host_os in
  10647. darwin*)
  10648. if test -n "$STRIP" ; then
  10649. striplib="$STRIP -x"
  10650. old_striplib="$STRIP -S"
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10652. $as_echo "yes" >&6; }
  10653. else
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10655. $as_echo "no" >&6; }
  10656. fi
  10657. ;;
  10658. *)
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10660. $as_echo "no" >&6; }
  10661. ;;
  10662. esac
  10663. fi
  10664. # Report which library types will actually be built
  10665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10666. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10668. $as_echo "$can_build_shared" >&6; }
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10670. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10671. test "$can_build_shared" = "no" && enable_shared=no
  10672. # On AIX, shared libraries and static libraries use the same namespace, and
  10673. # are all built from PIC.
  10674. case $host_os in
  10675. aix3*)
  10676. test "$enable_shared" = yes && enable_static=no
  10677. if test -n "$RANLIB"; then
  10678. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10679. postinstall_cmds='$RANLIB $lib'
  10680. fi
  10681. ;;
  10682. aix[4-9]*)
  10683. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10684. test "$enable_shared" = yes && enable_static=no
  10685. fi
  10686. ;;
  10687. esac
  10688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10689. $as_echo "$enable_shared" >&6; }
  10690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10691. $as_echo_n "checking whether to build static libraries... " >&6; }
  10692. # Make sure either enable_shared or enable_static is yes.
  10693. test "$enable_shared" = yes || enable_static=yes
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10695. $as_echo "$enable_static" >&6; }
  10696. fi
  10697. ac_ext=c
  10698. ac_cpp='$CPP $CPPFLAGS'
  10699. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10700. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10701. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10702. CC="$lt_save_CC"
  10703. ac_config_commands="$ac_config_commands libtool"
  10704. # Only expand once:
  10705. CFLAG_VISIBILITY=
  10706. HAVE_VISIBILITY=0
  10707. if test -n "$GCC"; then
  10708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  10709. $as_echo_n "checking whether the -Werror option is usable... " >&6; }
  10710. if ${gl_cv_cc_vis_werror+:} false; then :
  10711. $as_echo_n "(cached) " >&6
  10712. else
  10713. gl_save_CFLAGS="$CFLAGS"
  10714. CFLAGS="$CFLAGS -Werror"
  10715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10716. /* end confdefs.h. */
  10717. int
  10718. main ()
  10719. {
  10720. ;
  10721. return 0;
  10722. }
  10723. _ACEOF
  10724. if ac_fn_c_try_compile "$LINENO"; then :
  10725. gl_cv_cc_vis_werror=yes
  10726. else
  10727. gl_cv_cc_vis_werror=no
  10728. fi
  10729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10730. CFLAGS="$gl_save_CFLAGS"
  10731. fi
  10732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  10733. $as_echo "$gl_cv_cc_vis_werror" >&6; }
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  10735. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10736. if ${gl_cv_cc_visibility+:} false; then :
  10737. $as_echo_n "(cached) " >&6
  10738. else
  10739. gl_save_CFLAGS="$CFLAGS"
  10740. CFLAGS="$CFLAGS -fvisibility=hidden"
  10741. if test $gl_cv_cc_vis_werror = yes; then
  10742. CFLAGS="$CFLAGS -Werror"
  10743. fi
  10744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10745. /* end confdefs.h. */
  10746. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10747. extern __attribute__((__visibility__("default"))) int exportedvar;
  10748. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10749. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10750. void dummyfunc (void) {}
  10751. int
  10752. main ()
  10753. {
  10754. ;
  10755. return 0;
  10756. }
  10757. _ACEOF
  10758. if ac_fn_c_try_compile "$LINENO"; then :
  10759. gl_cv_cc_visibility=yes
  10760. else
  10761. gl_cv_cc_visibility=no
  10762. fi
  10763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10764. CFLAGS="$gl_save_CFLAGS"
  10765. fi
  10766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  10767. $as_echo "$gl_cv_cc_visibility" >&6; }
  10768. if test $gl_cv_cc_visibility = yes; then
  10769. CFLAG_VISIBILITY="-fvisibility=hidden"
  10770. HAVE_VISIBILITY=1
  10771. fi
  10772. fi
  10773. cat >>confdefs.h <<_ACEOF
  10774. @%:@define HAVE_VISIBILITY $HAVE_VISIBILITY
  10775. _ACEOF
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10777. $as_echo_n "checking for ANSI C header files... " >&6; }
  10778. if ${ac_cv_header_stdc+:} false; then :
  10779. $as_echo_n "(cached) " >&6
  10780. else
  10781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10782. /* end confdefs.h. */
  10783. #include <stdlib.h>
  10784. #include <stdarg.h>
  10785. #include <string.h>
  10786. #include <float.h>
  10787. int
  10788. main ()
  10789. {
  10790. ;
  10791. return 0;
  10792. }
  10793. _ACEOF
  10794. if ac_fn_c_try_compile "$LINENO"; then :
  10795. ac_cv_header_stdc=yes
  10796. else
  10797. ac_cv_header_stdc=no
  10798. fi
  10799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10800. if test $ac_cv_header_stdc = yes; then
  10801. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10803. /* end confdefs.h. */
  10804. #include <string.h>
  10805. _ACEOF
  10806. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10807. $EGREP "memchr" >/dev/null 2>&1; then :
  10808. else
  10809. ac_cv_header_stdc=no
  10810. fi
  10811. rm -f conftest*
  10812. fi
  10813. if test $ac_cv_header_stdc = yes; then
  10814. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10816. /* end confdefs.h. */
  10817. #include <stdlib.h>
  10818. _ACEOF
  10819. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10820. $EGREP "free" >/dev/null 2>&1; then :
  10821. else
  10822. ac_cv_header_stdc=no
  10823. fi
  10824. rm -f conftest*
  10825. fi
  10826. if test $ac_cv_header_stdc = yes; then
  10827. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10828. if test "$cross_compiling" = yes; then :
  10829. :
  10830. else
  10831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10832. /* end confdefs.h. */
  10833. #include <ctype.h>
  10834. #include <stdlib.h>
  10835. #if ((' ' & 0x0FF) == 0x020)
  10836. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10837. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10838. #else
  10839. # define ISLOWER(c) \
  10840. (('a' <= (c) && (c) <= 'i') \
  10841. || ('j' <= (c) && (c) <= 'r') \
  10842. || ('s' <= (c) && (c) <= 'z'))
  10843. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10844. #endif
  10845. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10846. int
  10847. main ()
  10848. {
  10849. int i;
  10850. for (i = 0; i < 256; i++)
  10851. if (XOR (islower (i), ISLOWER (i))
  10852. || toupper (i) != TOUPPER (i))
  10853. return 2;
  10854. return 0;
  10855. }
  10856. _ACEOF
  10857. if ac_fn_c_try_run "$LINENO"; then :
  10858. else
  10859. ac_cv_header_stdc=no
  10860. fi
  10861. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10862. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10863. fi
  10864. fi
  10865. fi
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10867. $as_echo "$ac_cv_header_stdc" >&6; }
  10868. if test $ac_cv_header_stdc = yes; then
  10869. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  10870. fi
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  10872. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  10873. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  10874. $as_echo_n "(cached) " >&6
  10875. else
  10876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10877. /* end confdefs.h. */
  10878. @%:@include <sys/types.h>
  10879. int
  10880. main ()
  10881. {
  10882. return makedev(0, 0);
  10883. ;
  10884. return 0;
  10885. }
  10886. _ACEOF
  10887. if ac_fn_c_try_link "$LINENO"; then :
  10888. ac_cv_header_sys_types_h_makedev=yes
  10889. else
  10890. ac_cv_header_sys_types_h_makedev=no
  10891. fi
  10892. rm -f core conftest.err conftest.$ac_objext \
  10893. conftest$ac_exeext conftest.$ac_ext
  10894. fi
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  10896. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  10897. if test $ac_cv_header_sys_types_h_makedev = no; then
  10898. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  10899. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  10900. $as_echo "@%:@define MAJOR_IN_MKDEV 1" >>confdefs.h
  10901. fi
  10902. if test $ac_cv_header_sys_mkdev_h = no; then
  10903. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  10904. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  10905. $as_echo "@%:@define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  10906. fi
  10907. fi
  10908. fi
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10910. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10911. if ${ac_cv_header_sys_wait_h+:} false; then :
  10912. $as_echo_n "(cached) " >&6
  10913. else
  10914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10915. /* end confdefs.h. */
  10916. #include <sys/types.h>
  10917. #include <sys/wait.h>
  10918. #ifndef WEXITSTATUS
  10919. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10920. #endif
  10921. #ifndef WIFEXITED
  10922. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10923. #endif
  10924. int
  10925. main ()
  10926. {
  10927. int s;
  10928. wait (&s);
  10929. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10930. ;
  10931. return 0;
  10932. }
  10933. _ACEOF
  10934. if ac_fn_c_try_compile "$LINENO"; then :
  10935. ac_cv_header_sys_wait_h=yes
  10936. else
  10937. ac_cv_header_sys_wait_h=no
  10938. fi
  10939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10940. fi
  10941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10942. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10943. if test $ac_cv_header_sys_wait_h = yes; then
  10944. $as_echo "@%:@define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10945. fi
  10946. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  10947. do :
  10948. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10949. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10950. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10951. cat >>confdefs.h <<_ACEOF
  10952. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10953. _ACEOF
  10954. fi
  10955. done
  10956. for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
  10957. do :
  10958. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10959. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10960. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10961. cat >>confdefs.h <<_ACEOF
  10962. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10963. _ACEOF
  10964. fi
  10965. done
  10966. for ac_header in getopt.h err.h xlocale.h
  10967. do :
  10968. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10969. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10970. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10971. cat >>confdefs.h <<_ACEOF
  10972. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10973. _ACEOF
  10974. fi
  10975. done
  10976. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
  10977. do :
  10978. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10979. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10980. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10981. cat >>confdefs.h <<_ACEOF
  10982. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10983. _ACEOF
  10984. fi
  10985. done
  10986. for ac_header in zlib.h
  10987. do :
  10988. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  10989. if test "x$ac_cv_header_zlib_h" = xyes; then :
  10990. cat >>confdefs.h <<_ACEOF
  10991. @%:@define HAVE_ZLIB_H 1
  10992. _ACEOF
  10993. fi
  10994. done
  10995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10996. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10997. if ${ac_cv_c_const+:} false; then :
  10998. $as_echo_n "(cached) " >&6
  10999. else
  11000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11001. /* end confdefs.h. */
  11002. int
  11003. main ()
  11004. {
  11005. #ifndef __cplusplus
  11006. /* Ultrix mips cc rejects this sort of thing. */
  11007. typedef int charset[2];
  11008. const charset cs = { 0, 0 };
  11009. /* SunOS 4.1.1 cc rejects this. */
  11010. char const *const *pcpcc;
  11011. char **ppc;
  11012. /* NEC SVR4.0.2 mips cc rejects this. */
  11013. struct point {int x, y;};
  11014. static struct point const zero = {0,0};
  11015. /* AIX XL C 1.02.0.0 rejects this.
  11016. It does not let you subtract one const X* pointer from another in
  11017. an arm of an if-expression whose if-part is not a constant
  11018. expression */
  11019. const char *g = "string";
  11020. pcpcc = &g + (g ? g-g : 0);
  11021. /* HPUX 7.0 cc rejects these. */
  11022. ++pcpcc;
  11023. ppc = (char**) pcpcc;
  11024. pcpcc = (char const *const *) ppc;
  11025. { /* SCO 3.2v4 cc rejects this sort of thing. */
  11026. char tx;
  11027. char *t = &tx;
  11028. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11029. *t++ = 0;
  11030. if (s) return 0;
  11031. }
  11032. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11033. int x[] = {25, 17};
  11034. const int *foo = &x[0];
  11035. ++foo;
  11036. }
  11037. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11038. typedef const int *iptr;
  11039. iptr p = 0;
  11040. ++p;
  11041. }
  11042. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  11043. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11044. struct s { int j; const int *ap[3]; } bx;
  11045. struct s *b = &bx; b->j = 5;
  11046. }
  11047. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11048. const int foo = 10;
  11049. if (!foo) return 0;
  11050. }
  11051. return !cs[0] && !zero.x;
  11052. #endif
  11053. ;
  11054. return 0;
  11055. }
  11056. _ACEOF
  11057. if ac_fn_c_try_compile "$LINENO"; then :
  11058. ac_cv_c_const=yes
  11059. else
  11060. ac_cv_c_const=no
  11061. fi
  11062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11063. fi
  11064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  11065. $as_echo "$ac_cv_c_const" >&6; }
  11066. if test $ac_cv_c_const = no; then
  11067. $as_echo "@%:@define const /**/" >>confdefs.h
  11068. fi
  11069. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11070. if test "x$ac_cv_type_off_t" = xyes; then :
  11071. else
  11072. cat >>confdefs.h <<_ACEOF
  11073. @%:@define off_t long int
  11074. _ACEOF
  11075. fi
  11076. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11077. if test "x$ac_cv_type_size_t" = xyes; then :
  11078. else
  11079. cat >>confdefs.h <<_ACEOF
  11080. @%:@define size_t unsigned int
  11081. _ACEOF
  11082. fi
  11083. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  11084. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  11085. cat >>confdefs.h <<_ACEOF
  11086. @%:@define HAVE_STRUCT_STAT_ST_RDEV 1
  11087. _ACEOF
  11088. fi
  11089. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
  11090. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  11091. cat >>confdefs.h <<_ACEOF
  11092. @%:@define HAVE_STRUCT_TM_TM_GMTOFF 1
  11093. _ACEOF
  11094. fi
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11096. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11097. if ${ac_cv_struct_tm+:} false; then :
  11098. $as_echo_n "(cached) " >&6
  11099. else
  11100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11101. /* end confdefs.h. */
  11102. #include <sys/types.h>
  11103. #include <time.h>
  11104. int
  11105. main ()
  11106. {
  11107. struct tm tm;
  11108. int *p = &tm.tm_sec;
  11109. return !p;
  11110. ;
  11111. return 0;
  11112. }
  11113. _ACEOF
  11114. if ac_fn_c_try_compile "$LINENO"; then :
  11115. ac_cv_struct_tm=time.h
  11116. else
  11117. ac_cv_struct_tm=sys/time.h
  11118. fi
  11119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11120. fi
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11122. $as_echo "$ac_cv_struct_tm" >&6; }
  11123. if test $ac_cv_struct_tm = sys/time.h; then
  11124. $as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
  11125. fi
  11126. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  11127. #include <$ac_cv_struct_tm>
  11128. "
  11129. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  11130. cat >>confdefs.h <<_ACEOF
  11131. @%:@define HAVE_STRUCT_TM_TM_ZONE 1
  11132. _ACEOF
  11133. fi
  11134. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  11135. $as_echo "@%:@define HAVE_TM_ZONE 1" >>confdefs.h
  11136. else
  11137. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11138. "
  11139. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11140. ac_have_decl=1
  11141. else
  11142. ac_have_decl=0
  11143. fi
  11144. cat >>confdefs.h <<_ACEOF
  11145. @%:@define HAVE_DECL_TZNAME $ac_have_decl
  11146. _ACEOF
  11147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11148. $as_echo_n "checking for tzname... " >&6; }
  11149. if ${ac_cv_var_tzname+:} false; then :
  11150. $as_echo_n "(cached) " >&6
  11151. else
  11152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11153. /* end confdefs.h. */
  11154. #include <time.h>
  11155. #if !HAVE_DECL_TZNAME
  11156. extern char *tzname[];
  11157. #endif
  11158. int
  11159. main ()
  11160. {
  11161. return tzname[0][0];
  11162. ;
  11163. return 0;
  11164. }
  11165. _ACEOF
  11166. if ac_fn_c_try_link "$LINENO"; then :
  11167. ac_cv_var_tzname=yes
  11168. else
  11169. ac_cv_var_tzname=no
  11170. fi
  11171. rm -f core conftest.err conftest.$ac_objext \
  11172. conftest$ac_exeext conftest.$ac_ext
  11173. fi
  11174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11175. $as_echo "$ac_cv_var_tzname" >&6; }
  11176. if test $ac_cv_var_tzname = yes; then
  11177. $as_echo "@%:@define HAVE_TZNAME 1" >>confdefs.h
  11178. fi
  11179. fi
  11180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  11181. $as_echo_n "checking for tm_zone in struct tm... " >&6; }
  11182. if ${ac_cv_struct_tm_zone+:} false; then :
  11183. $as_echo_n "(cached) " >&6
  11184. else
  11185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11186. /* end confdefs.h. */
  11187. #include <sys/types.h>
  11188. #include <$ac_cv_struct_tm>
  11189. int
  11190. main ()
  11191. {
  11192. struct tm tm; tm.tm_zone;
  11193. ;
  11194. return 0;
  11195. }
  11196. _ACEOF
  11197. if ac_fn_c_try_compile "$LINENO"; then :
  11198. ac_cv_struct_tm_zone=yes
  11199. else
  11200. ac_cv_struct_tm_zone=no
  11201. fi
  11202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11203. fi
  11204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  11205. $as_echo "$ac_cv_struct_tm_zone" >&6; }
  11206. if test "$ac_cv_struct_tm_zone" = yes; then
  11207. $as_echo "@%:@define HAVE_TM_ZONE 1" >>confdefs.h
  11208. fi
  11209. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  11210. # consider it declared and we won't give our own extern.
  11211. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11212. "
  11213. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11214. ac_have_decl=1
  11215. else
  11216. ac_have_decl=0
  11217. fi
  11218. cat >>confdefs.h <<_ACEOF
  11219. @%:@define HAVE_DECL_TZNAME $ac_have_decl
  11220. _ACEOF
  11221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11222. $as_echo_n "checking for tzname... " >&6; }
  11223. if ${ac_cv_var_tzname+:} false; then :
  11224. $as_echo_n "(cached) " >&6
  11225. else
  11226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11227. /* end confdefs.h. */
  11228. #include <time.h>
  11229. #if !HAVE_DECL_TZNAME
  11230. extern char *tzname[];
  11231. #endif
  11232. int
  11233. main ()
  11234. {
  11235. return tzname[0][0];
  11236. ;
  11237. return 0;
  11238. }
  11239. _ACEOF
  11240. if ac_fn_c_try_link "$LINENO"; then :
  11241. ac_cv_var_tzname=yes
  11242. else
  11243. ac_cv_var_tzname=no
  11244. fi
  11245. rm -f core conftest.err conftest.$ac_objext \
  11246. conftest$ac_exeext conftest.$ac_ext
  11247. fi
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11249. $as_echo "$ac_cv_var_tzname" >&6; }
  11250. if test $ac_cv_var_tzname = yes; then
  11251. $as_echo "@%:@define HAVE_TZNAME 1" >>confdefs.h
  11252. fi
  11253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  11254. $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  11255. if ${ac_cv_struct_tm_isdst+:} false; then :
  11256. $as_echo_n "(cached) " >&6
  11257. else
  11258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11259. /* end confdefs.h. */
  11260. #include <sys/types.h>
  11261. #include <$ac_cv_struct_tm>
  11262. int
  11263. main ()
  11264. {
  11265. struct tm tm; tm.tm_isdst;
  11266. ;
  11267. return 0;
  11268. }
  11269. _ACEOF
  11270. if ac_fn_c_try_compile "$LINENO"; then :
  11271. ac_cv_struct_tm_isdst=yes
  11272. else
  11273. ac_cv_struct_tm_isdst=no
  11274. fi
  11275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11276. fi
  11277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  11278. $as_echo "$ac_cv_struct_tm_isdst" >&6; }
  11279. if test "$ac_cv_struct_tm_isdst" = yes; then
  11280. $as_echo "@%:@define HAVE_TM_ISDST 1" >>confdefs.h
  11281. fi
  11282. ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  11283. "
  11284. if test "x$ac_cv_have_decl_daylight" = xyes; then :
  11285. ac_have_decl=1
  11286. else
  11287. ac_have_decl=0
  11288. fi
  11289. cat >>confdefs.h <<_ACEOF
  11290. @%:@define HAVE_DECL_DAYLIGHT $ac_have_decl
  11291. _ACEOF
  11292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  11293. $as_echo_n "checking for daylight... " >&6; }
  11294. if ${ac_cv_var_daylight+:} false; then :
  11295. $as_echo_n "(cached) " >&6
  11296. else
  11297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11298. /* end confdefs.h. */
  11299. #include <time.h>
  11300. #if !HAVE_DECL_DAYLIGHT
  11301. extern int daylight;
  11302. #endif
  11303. int
  11304. main ()
  11305. {
  11306. atoi(daylight);
  11307. ;
  11308. return 0;
  11309. }
  11310. _ACEOF
  11311. if ac_fn_c_try_link "$LINENO"; then :
  11312. ac_cv_var_daylight=yes
  11313. else
  11314. ac_cv_var_daylight=no
  11315. fi
  11316. rm -f core conftest.err conftest.$ac_objext \
  11317. conftest$ac_exeext conftest.$ac_ext
  11318. fi
  11319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  11320. $as_echo "$ac_cv_var_daylight" >&6; }
  11321. if test $ac_cv_var_daylight = yes; then
  11322. $as_echo "@%:@define HAVE_DAYLIGHT 1" >>confdefs.h
  11323. fi
  11324. @%:@ Check whether --enable-largefile was given.
  11325. if test "${enable_largefile+set}" = set; then :
  11326. enableval=$enable_largefile;
  11327. fi
  11328. if test "$enable_largefile" != no; then
  11329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11330. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11331. if ${ac_cv_sys_largefile_CC+:} false; then :
  11332. $as_echo_n "(cached) " >&6
  11333. else
  11334. ac_cv_sys_largefile_CC=no
  11335. if test "$GCC" != yes; then
  11336. ac_save_CC=$CC
  11337. while :; do
  11338. # IRIX 6.2 and later do not support large files by default,
  11339. # so use the C compiler's -n32 option if that helps.
  11340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11341. /* end confdefs.h. */
  11342. @%:@include <sys/types.h>
  11343. /* Check that off_t can represent 2**63 - 1 correctly.
  11344. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11345. since some C++ compilers masquerading as C compilers
  11346. incorrectly reject 9223372036854775807. */
  11347. @%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  11348. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11349. && LARGE_OFF_T % 2147483647 == 1)
  11350. ? 1 : -1];
  11351. int
  11352. main ()
  11353. {
  11354. ;
  11355. return 0;
  11356. }
  11357. _ACEOF
  11358. if ac_fn_c_try_compile "$LINENO"; then :
  11359. break
  11360. fi
  11361. rm -f core conftest.err conftest.$ac_objext
  11362. CC="$CC -n32"
  11363. if ac_fn_c_try_compile "$LINENO"; then :
  11364. ac_cv_sys_largefile_CC=' -n32'; break
  11365. fi
  11366. rm -f core conftest.err conftest.$ac_objext
  11367. break
  11368. done
  11369. CC=$ac_save_CC
  11370. rm -f conftest.$ac_ext
  11371. fi
  11372. fi
  11373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11374. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11375. if test "$ac_cv_sys_largefile_CC" != no; then
  11376. CC=$CC$ac_cv_sys_largefile_CC
  11377. fi
  11378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11379. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11380. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11381. $as_echo_n "(cached) " >&6
  11382. else
  11383. while :; do
  11384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11385. /* end confdefs.h. */
  11386. @%:@include <sys/types.h>
  11387. /* Check that off_t can represent 2**63 - 1 correctly.
  11388. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11389. since some C++ compilers masquerading as C compilers
  11390. incorrectly reject 9223372036854775807. */
  11391. @%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  11392. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11393. && LARGE_OFF_T % 2147483647 == 1)
  11394. ? 1 : -1];
  11395. int
  11396. main ()
  11397. {
  11398. ;
  11399. return 0;
  11400. }
  11401. _ACEOF
  11402. if ac_fn_c_try_compile "$LINENO"; then :
  11403. ac_cv_sys_file_offset_bits=no; break
  11404. fi
  11405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11407. /* end confdefs.h. */
  11408. @%:@define _FILE_OFFSET_BITS 64
  11409. @%:@include <sys/types.h>
  11410. /* Check that off_t can represent 2**63 - 1 correctly.
  11411. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11412. since some C++ compilers masquerading as C compilers
  11413. incorrectly reject 9223372036854775807. */
  11414. @%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  11415. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11416. && LARGE_OFF_T % 2147483647 == 1)
  11417. ? 1 : -1];
  11418. int
  11419. main ()
  11420. {
  11421. ;
  11422. return 0;
  11423. }
  11424. _ACEOF
  11425. if ac_fn_c_try_compile "$LINENO"; then :
  11426. ac_cv_sys_file_offset_bits=64; break
  11427. fi
  11428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11429. ac_cv_sys_file_offset_bits=unknown
  11430. break
  11431. done
  11432. fi
  11433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11434. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11435. case $ac_cv_sys_file_offset_bits in #(
  11436. no | unknown) ;;
  11437. *)
  11438. cat >>confdefs.h <<_ACEOF
  11439. @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11440. _ACEOF
  11441. ;;
  11442. esac
  11443. rm -rf conftest*
  11444. if test $ac_cv_sys_file_offset_bits = unknown; then
  11445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11446. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11447. if ${ac_cv_sys_large_files+:} false; then :
  11448. $as_echo_n "(cached) " >&6
  11449. else
  11450. while :; do
  11451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11452. /* end confdefs.h. */
  11453. @%:@include <sys/types.h>
  11454. /* Check that off_t can represent 2**63 - 1 correctly.
  11455. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11456. since some C++ compilers masquerading as C compilers
  11457. incorrectly reject 9223372036854775807. */
  11458. @%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  11459. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11460. && LARGE_OFF_T % 2147483647 == 1)
  11461. ? 1 : -1];
  11462. int
  11463. main ()
  11464. {
  11465. ;
  11466. return 0;
  11467. }
  11468. _ACEOF
  11469. if ac_fn_c_try_compile "$LINENO"; then :
  11470. ac_cv_sys_large_files=no; break
  11471. fi
  11472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11474. /* end confdefs.h. */
  11475. @%:@define _LARGE_FILES 1
  11476. @%:@include <sys/types.h>
  11477. /* Check that off_t can represent 2**63 - 1 correctly.
  11478. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11479. since some C++ compilers masquerading as C compilers
  11480. incorrectly reject 9223372036854775807. */
  11481. @%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  11482. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11483. && LARGE_OFF_T % 2147483647 == 1)
  11484. ? 1 : -1];
  11485. int
  11486. main ()
  11487. {
  11488. ;
  11489. return 0;
  11490. }
  11491. _ACEOF
  11492. if ac_fn_c_try_compile "$LINENO"; then :
  11493. ac_cv_sys_large_files=1; break
  11494. fi
  11495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11496. ac_cv_sys_large_files=unknown
  11497. break
  11498. done
  11499. fi
  11500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  11501. $as_echo "$ac_cv_sys_large_files" >&6; }
  11502. case $ac_cv_sys_large_files in #(
  11503. no | unknown) ;;
  11504. *)
  11505. cat >>confdefs.h <<_ACEOF
  11506. @%:@define _LARGE_FILES $ac_cv_sys_large_files
  11507. _ACEOF
  11508. ;;
  11509. esac
  11510. rm -rf conftest*
  11511. fi
  11512. fi
  11513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11514. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  11515. if ${ac_cv_sys_largefile_source+:} false; then :
  11516. $as_echo_n "(cached) " >&6
  11517. else
  11518. while :; do
  11519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11520. /* end confdefs.h. */
  11521. #include <sys/types.h> /* for off_t */
  11522. #include <stdio.h>
  11523. int
  11524. main ()
  11525. {
  11526. int (*fp) (FILE *, off_t, int) = fseeko;
  11527. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11528. ;
  11529. return 0;
  11530. }
  11531. _ACEOF
  11532. if ac_fn_c_try_link "$LINENO"; then :
  11533. ac_cv_sys_largefile_source=no; break
  11534. fi
  11535. rm -f core conftest.err conftest.$ac_objext \
  11536. conftest$ac_exeext conftest.$ac_ext
  11537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11538. /* end confdefs.h. */
  11539. @%:@define _LARGEFILE_SOURCE 1
  11540. #include <sys/types.h> /* for off_t */
  11541. #include <stdio.h>
  11542. int
  11543. main ()
  11544. {
  11545. int (*fp) (FILE *, off_t, int) = fseeko;
  11546. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11547. ;
  11548. return 0;
  11549. }
  11550. _ACEOF
  11551. if ac_fn_c_try_link "$LINENO"; then :
  11552. ac_cv_sys_largefile_source=1; break
  11553. fi
  11554. rm -f core conftest.err conftest.$ac_objext \
  11555. conftest$ac_exeext conftest.$ac_ext
  11556. ac_cv_sys_largefile_source=unknown
  11557. break
  11558. done
  11559. fi
  11560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  11561. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  11562. case $ac_cv_sys_largefile_source in #(
  11563. no | unknown) ;;
  11564. *)
  11565. cat >>confdefs.h <<_ACEOF
  11566. @%:@define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11567. _ACEOF
  11568. ;;
  11569. esac
  11570. rm -rf conftest*
  11571. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11572. # in glibc 2.1.3, but that breaks too many other things.
  11573. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11574. if test $ac_cv_sys_largefile_source != unknown; then
  11575. $as_echo "@%:@define HAVE_FSEEKO 1" >>confdefs.h
  11576. fi
  11577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  11578. $as_echo_n "checking for mbstate_t... " >&6; }
  11579. if ${ac_cv_type_mbstate_t+:} false; then :
  11580. $as_echo_n "(cached) " >&6
  11581. else
  11582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11583. /* end confdefs.h. */
  11584. $ac_includes_default
  11585. # include <wchar.h>
  11586. int
  11587. main ()
  11588. {
  11589. mbstate_t x; return sizeof x;
  11590. ;
  11591. return 0;
  11592. }
  11593. _ACEOF
  11594. if ac_fn_c_try_compile "$LINENO"; then :
  11595. ac_cv_type_mbstate_t=yes
  11596. else
  11597. ac_cv_type_mbstate_t=no
  11598. fi
  11599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11600. fi
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  11602. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  11603. if test $ac_cv_type_mbstate_t = yes; then
  11604. $as_echo "@%:@define HAVE_MBSTATE_T 1" >>confdefs.h
  11605. else
  11606. $as_echo "@%:@define mbstate_t int" >>confdefs.h
  11607. fi
  11608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  11609. $as_echo_n "checking for struct option in getopt... " >&6; }
  11610. if ${ac_cv_struct_option_getopt_h+:} false; then :
  11611. $as_echo_n "(cached) " >&6
  11612. else
  11613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11614. /* end confdefs.h. */
  11615. #include <getopt.h>
  11616. int
  11617. main ()
  11618. {
  11619. struct option op; op.name;
  11620. ;
  11621. return 0;
  11622. }
  11623. _ACEOF
  11624. if ac_fn_c_try_compile "$LINENO"; then :
  11625. ac_cv_struct_option_getopt_h=yes
  11626. else
  11627. ac_cv_struct_option_getopt_h=no
  11628. fi
  11629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11630. fi
  11631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  11632. $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  11633. if test "$ac_cv_struct_option_getopt_h" = yes; then
  11634. $as_echo "@%:@define HAVE_STRUCT_OPTION 1" >>confdefs.h
  11635. fi
  11636. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  11637. if test "x$ac_cv_type_pid_t" = xyes; then :
  11638. else
  11639. cat >>confdefs.h <<_ACEOF
  11640. @%:@define pid_t int
  11641. _ACEOF
  11642. fi
  11643. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  11644. case $ac_cv_c_uint8_t in #(
  11645. no|yes) ;; #(
  11646. *)
  11647. $as_echo "@%:@define _UINT8_T 1" >>confdefs.h
  11648. cat >>confdefs.h <<_ACEOF
  11649. @%:@define uint8_t $ac_cv_c_uint8_t
  11650. _ACEOF
  11651. ;;
  11652. esac
  11653. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  11654. case $ac_cv_c_uint16_t in #(
  11655. no|yes) ;; #(
  11656. *)
  11657. cat >>confdefs.h <<_ACEOF
  11658. @%:@define uint16_t $ac_cv_c_uint16_t
  11659. _ACEOF
  11660. ;;
  11661. esac
  11662. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  11663. case $ac_cv_c_uint32_t in #(
  11664. no|yes) ;; #(
  11665. *)
  11666. $as_echo "@%:@define _UINT32_T 1" >>confdefs.h
  11667. cat >>confdefs.h <<_ACEOF
  11668. @%:@define uint32_t $ac_cv_c_uint32_t
  11669. _ACEOF
  11670. ;;
  11671. esac
  11672. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  11673. case $ac_cv_c_int32_t in #(
  11674. no|yes) ;; #(
  11675. *)
  11676. cat >>confdefs.h <<_ACEOF
  11677. @%:@define int32_t $ac_cv_c_int32_t
  11678. _ACEOF
  11679. ;;
  11680. esac
  11681. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  11682. case $ac_cv_c_uint64_t in #(
  11683. no|yes) ;; #(
  11684. *)
  11685. $as_echo "@%:@define _UINT64_T 1" >>confdefs.h
  11686. cat >>confdefs.h <<_ACEOF
  11687. @%:@define uint64_t $ac_cv_c_uint64_t
  11688. _ACEOF
  11689. ;;
  11690. esac
  11691. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  11692. case $ac_cv_c_int64_t in #(
  11693. no|yes) ;; #(
  11694. *)
  11695. cat >>confdefs.h <<_ACEOF
  11696. @%:@define int64_t $ac_cv_c_int64_t
  11697. _ACEOF
  11698. ;;
  11699. esac
  11700. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  11701. if test "x$ac_cv_type_intptr_t" = xyes; then :
  11702. $as_echo "@%:@define HAVE_INTPTR_T 1" >>confdefs.h
  11703. else
  11704. for ac_type in 'int' 'long int' 'long long int'; do
  11705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11706. /* end confdefs.h. */
  11707. $ac_includes_default
  11708. int
  11709. main ()
  11710. {
  11711. static int test_array @<:@1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))@:>@;
  11712. test_array @<:@0@:>@ = 0;
  11713. return test_array @<:@0@:>@;
  11714. ;
  11715. return 0;
  11716. }
  11717. _ACEOF
  11718. if ac_fn_c_try_compile "$LINENO"; then :
  11719. cat >>confdefs.h <<_ACEOF
  11720. @%:@define intptr_t $ac_type
  11721. _ACEOF
  11722. ac_type=
  11723. fi
  11724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11725. test -z "$ac_type" && break
  11726. done
  11727. fi
  11728. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  11729. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  11730. $as_echo "@%:@define HAVE_UINTPTR_T 1" >>confdefs.h
  11731. else
  11732. for ac_type in 'unsigned int' 'unsigned long int' \
  11733. 'unsigned long long int'; do
  11734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11735. /* end confdefs.h. */
  11736. $ac_includes_default
  11737. int
  11738. main ()
  11739. {
  11740. static int test_array @<:@1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))@:>@;
  11741. test_array @<:@0@:>@ = 0;
  11742. return test_array @<:@0@:>@;
  11743. ;
  11744. return 0;
  11745. }
  11746. _ACEOF
  11747. if ac_fn_c_try_compile "$LINENO"; then :
  11748. cat >>confdefs.h <<_ACEOF
  11749. @%:@define uintptr_t $ac_type
  11750. _ACEOF
  11751. ac_type=
  11752. fi
  11753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11754. test -z "$ac_type" && break
  11755. done
  11756. fi
  11757. for ac_header in $ac_header_list
  11758. do :
  11759. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11760. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11761. "
  11762. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11763. cat >>confdefs.h <<_ACEOF
  11764. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11765. _ACEOF
  11766. fi
  11767. done
  11768. for ac_func in getpagesize
  11769. do :
  11770. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  11771. if test "x$ac_cv_func_getpagesize" = xyes; then :
  11772. cat >>confdefs.h <<_ACEOF
  11773. @%:@define HAVE_GETPAGESIZE 1
  11774. _ACEOF
  11775. fi
  11776. done
  11777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  11778. $as_echo_n "checking for working mmap... " >&6; }
  11779. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  11780. $as_echo_n "(cached) " >&6
  11781. else
  11782. if test "$cross_compiling" = yes; then :
  11783. ac_cv_func_mmap_fixed_mapped=no
  11784. else
  11785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11786. /* end confdefs.h. */
  11787. $ac_includes_default
  11788. /* malloc might have been renamed as rpl_malloc. */
  11789. #undef malloc
  11790. /* Thanks to Mike Haertel and Jim Avera for this test.
  11791. Here is a matrix of mmap possibilities:
  11792. mmap private not fixed
  11793. mmap private fixed at somewhere currently unmapped
  11794. mmap private fixed at somewhere already mapped
  11795. mmap shared not fixed
  11796. mmap shared fixed at somewhere currently unmapped
  11797. mmap shared fixed at somewhere already mapped
  11798. For private mappings, we should verify that changes cannot be read()
  11799. back from the file, nor mmap's back from the file at a different
  11800. address. (There have been systems where private was not correctly
  11801. implemented like the infamous i386 svr4.0, and systems where the
  11802. VM page cache was not coherent with the file system buffer cache
  11803. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11804. For shared mappings, we should conversely verify that changes get
  11805. propagated back to all the places they're supposed to be.
  11806. Grep wants private fixed already mapped.
  11807. The main things grep needs to know about mmap are:
  11808. * does it exist and is it safe to write into the mmap'd area
  11809. * how to use it (BSD variants) */
  11810. #include <fcntl.h>
  11811. #include <sys/mman.h>
  11812. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11813. char *malloc ();
  11814. #endif
  11815. /* This mess was copied from the GNU getpagesize.h. */
  11816. #ifndef HAVE_GETPAGESIZE
  11817. # ifdef _SC_PAGESIZE
  11818. # define getpagesize() sysconf(_SC_PAGESIZE)
  11819. # else /* no _SC_PAGESIZE */
  11820. # ifdef HAVE_SYS_PARAM_H
  11821. # include <sys/param.h>
  11822. # ifdef EXEC_PAGESIZE
  11823. # define getpagesize() EXEC_PAGESIZE
  11824. # else /* no EXEC_PAGESIZE */
  11825. # ifdef NBPG
  11826. # define getpagesize() NBPG * CLSIZE
  11827. # ifndef CLSIZE
  11828. # define CLSIZE 1
  11829. # endif /* no CLSIZE */
  11830. # else /* no NBPG */
  11831. # ifdef NBPC
  11832. # define getpagesize() NBPC
  11833. # else /* no NBPC */
  11834. # ifdef PAGESIZE
  11835. # define getpagesize() PAGESIZE
  11836. # endif /* PAGESIZE */
  11837. # endif /* no NBPC */
  11838. # endif /* no NBPG */
  11839. # endif /* no EXEC_PAGESIZE */
  11840. # else /* no HAVE_SYS_PARAM_H */
  11841. # define getpagesize() 8192 /* punt totally */
  11842. # endif /* no HAVE_SYS_PARAM_H */
  11843. # endif /* no _SC_PAGESIZE */
  11844. #endif /* no HAVE_GETPAGESIZE */
  11845. int
  11846. main ()
  11847. {
  11848. char *data, *data2, *data3;
  11849. const char *cdata2;
  11850. int i, pagesize;
  11851. int fd, fd2;
  11852. pagesize = getpagesize ();
  11853. /* First, make a file with some known garbage in it. */
  11854. data = (char *) malloc (pagesize);
  11855. if (!data)
  11856. return 1;
  11857. for (i = 0; i < pagesize; ++i)
  11858. *(data + i) = rand ();
  11859. umask (0);
  11860. fd = creat ("conftest.mmap", 0600);
  11861. if (fd < 0)
  11862. return 2;
  11863. if (write (fd, data, pagesize) != pagesize)
  11864. return 3;
  11865. close (fd);
  11866. /* Next, check that the tail of a page is zero-filled. File must have
  11867. non-zero length, otherwise we risk SIGBUS for entire page. */
  11868. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11869. if (fd2 < 0)
  11870. return 4;
  11871. cdata2 = "";
  11872. if (write (fd2, cdata2, 1) != 1)
  11873. return 5;
  11874. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11875. if (data2 == MAP_FAILED)
  11876. return 6;
  11877. for (i = 0; i < pagesize; ++i)
  11878. if (*(data2 + i))
  11879. return 7;
  11880. close (fd2);
  11881. if (munmap (data2, pagesize))
  11882. return 8;
  11883. /* Next, try to mmap the file at a fixed address which already has
  11884. something else allocated at it. If we can, also make sure that
  11885. we see the same garbage. */
  11886. fd = open ("conftest.mmap", O_RDWR);
  11887. if (fd < 0)
  11888. return 9;
  11889. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11890. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11891. return 10;
  11892. for (i = 0; i < pagesize; ++i)
  11893. if (*(data + i) != *(data2 + i))
  11894. return 11;
  11895. /* Finally, make sure that changes to the mapped area do not
  11896. percolate back to the file as seen by read(). (This is a bug on
  11897. some variants of i386 svr4.0.) */
  11898. for (i = 0; i < pagesize; ++i)
  11899. *(data2 + i) = *(data2 + i) + 1;
  11900. data3 = (char *) malloc (pagesize);
  11901. if (!data3)
  11902. return 12;
  11903. if (read (fd, data3, pagesize) != pagesize)
  11904. return 13;
  11905. for (i = 0; i < pagesize; ++i)
  11906. if (*(data + i) != *(data3 + i))
  11907. return 14;
  11908. close (fd);
  11909. return 0;
  11910. }
  11911. _ACEOF
  11912. if ac_fn_c_try_run "$LINENO"; then :
  11913. ac_cv_func_mmap_fixed_mapped=yes
  11914. else
  11915. ac_cv_func_mmap_fixed_mapped=no
  11916. fi
  11917. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11918. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11919. fi
  11920. fi
  11921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11922. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11923. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11924. $as_echo "@%:@define HAVE_MMAP 1" >>confdefs.h
  11925. fi
  11926. rm -f conftest.mmap conftest.txt
  11927. for ac_header in vfork.h
  11928. do :
  11929. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11930. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11931. cat >>confdefs.h <<_ACEOF
  11932. @%:@define HAVE_VFORK_H 1
  11933. _ACEOF
  11934. fi
  11935. done
  11936. for ac_func in fork vfork
  11937. do :
  11938. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11939. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11940. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11941. cat >>confdefs.h <<_ACEOF
  11942. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11943. _ACEOF
  11944. fi
  11945. done
  11946. if test "x$ac_cv_func_fork" = xyes; then
  11947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11948. $as_echo_n "checking for working fork... " >&6; }
  11949. if ${ac_cv_func_fork_works+:} false; then :
  11950. $as_echo_n "(cached) " >&6
  11951. else
  11952. if test "$cross_compiling" = yes; then :
  11953. ac_cv_func_fork_works=cross
  11954. else
  11955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11956. /* end confdefs.h. */
  11957. $ac_includes_default
  11958. int
  11959. main ()
  11960. {
  11961. /* By Ruediger Kuhlmann. */
  11962. return fork () < 0;
  11963. ;
  11964. return 0;
  11965. }
  11966. _ACEOF
  11967. if ac_fn_c_try_run "$LINENO"; then :
  11968. ac_cv_func_fork_works=yes
  11969. else
  11970. ac_cv_func_fork_works=no
  11971. fi
  11972. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11973. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11974. fi
  11975. fi
  11976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11977. $as_echo "$ac_cv_func_fork_works" >&6; }
  11978. else
  11979. ac_cv_func_fork_works=$ac_cv_func_fork
  11980. fi
  11981. if test "x$ac_cv_func_fork_works" = xcross; then
  11982. case $host in
  11983. *-*-amigaos* | *-*-msdosdjgpp*)
  11984. # Override, as these systems have only a dummy fork() stub
  11985. ac_cv_func_fork_works=no
  11986. ;;
  11987. *)
  11988. ac_cv_func_fork_works=yes
  11989. ;;
  11990. esac
  11991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11992. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11993. fi
  11994. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11995. if test "x$ac_cv_func_vfork" = xyes; then
  11996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11997. $as_echo_n "checking for working vfork... " >&6; }
  11998. if ${ac_cv_func_vfork_works+:} false; then :
  11999. $as_echo_n "(cached) " >&6
  12000. else
  12001. if test "$cross_compiling" = yes; then :
  12002. ac_cv_func_vfork_works=cross
  12003. else
  12004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12005. /* end confdefs.h. */
  12006. /* Thanks to Paul Eggert for this test. */
  12007. $ac_includes_default
  12008. #include <sys/wait.h>
  12009. #ifdef HAVE_VFORK_H
  12010. # include <vfork.h>
  12011. #endif
  12012. /* On some sparc systems, changes by the child to local and incoming
  12013. argument registers are propagated back to the parent. The compiler
  12014. is told about this with #include <vfork.h>, but some compilers
  12015. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12016. static variable whose address is put into a register that is
  12017. clobbered by the vfork. */
  12018. static void
  12019. #ifdef __cplusplus
  12020. sparc_address_test (int arg)
  12021. # else
  12022. sparc_address_test (arg) int arg;
  12023. #endif
  12024. {
  12025. static pid_t child;
  12026. if (!child) {
  12027. child = vfork ();
  12028. if (child < 0) {
  12029. perror ("vfork");
  12030. _exit(2);
  12031. }
  12032. if (!child) {
  12033. arg = getpid();
  12034. write(-1, "", 0);
  12035. _exit (arg);
  12036. }
  12037. }
  12038. }
  12039. int
  12040. main ()
  12041. {
  12042. pid_t parent = getpid ();
  12043. pid_t child;
  12044. sparc_address_test (0);
  12045. child = vfork ();
  12046. if (child == 0) {
  12047. /* Here is another test for sparc vfork register problems. This
  12048. test uses lots of local variables, at least as many local
  12049. variables as main has allocated so far including compiler
  12050. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12051. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12052. reuse the register of parent for one of the local variables,
  12053. since it will think that parent can't possibly be used any more
  12054. in this routine. Assigning to the local variable will thus
  12055. munge parent in the parent process. */
  12056. pid_t
  12057. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12058. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12059. /* Convince the compiler that p..p7 are live; otherwise, it might
  12060. use the same hardware register for all 8 local variables. */
  12061. if (p != p1 || p != p2 || p != p3 || p != p4
  12062. || p != p5 || p != p6 || p != p7)
  12063. _exit(1);
  12064. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12065. from child file descriptors. If the child closes a descriptor
  12066. before it execs or exits, this munges the parent's descriptor
  12067. as well. Test for this by closing stdout in the child. */
  12068. _exit(close(fileno(stdout)) != 0);
  12069. } else {
  12070. int status;
  12071. struct stat st;
  12072. while (wait(&status) != child)
  12073. ;
  12074. return (
  12075. /* Was there some problem with vforking? */
  12076. child < 0
  12077. /* Did the child fail? (This shouldn't happen.) */
  12078. || status
  12079. /* Did the vfork/compiler bug occur? */
  12080. || parent != getpid()
  12081. /* Did the file descriptor bug occur? */
  12082. || fstat(fileno(stdout), &st) != 0
  12083. );
  12084. }
  12085. }
  12086. _ACEOF
  12087. if ac_fn_c_try_run "$LINENO"; then :
  12088. ac_cv_func_vfork_works=yes
  12089. else
  12090. ac_cv_func_vfork_works=no
  12091. fi
  12092. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12093. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12094. fi
  12095. fi
  12096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12097. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12098. fi;
  12099. if test "x$ac_cv_func_fork_works" = xcross; then
  12100. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12102. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12103. fi
  12104. if test "x$ac_cv_func_vfork_works" = xyes; then
  12105. $as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h
  12106. else
  12107. $as_echo "@%:@define vfork fork" >>confdefs.h
  12108. fi
  12109. if test "x$ac_cv_func_fork_works" = xyes; then
  12110. $as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h
  12111. fi
  12112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  12113. $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  12114. if ${ac_cv_func_mbrtowc+:} false; then :
  12115. $as_echo_n "(cached) " >&6
  12116. else
  12117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12118. /* end confdefs.h. */
  12119. @%:@include <wchar.h>
  12120. int
  12121. main ()
  12122. {
  12123. wchar_t wc;
  12124. char const s[] = "";
  12125. size_t n = 1;
  12126. mbstate_t state;
  12127. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  12128. ;
  12129. return 0;
  12130. }
  12131. _ACEOF
  12132. if ac_fn_c_try_link "$LINENO"; then :
  12133. ac_cv_func_mbrtowc=yes
  12134. else
  12135. ac_cv_func_mbrtowc=no
  12136. fi
  12137. rm -f core conftest.err conftest.$ac_objext \
  12138. conftest$ac_exeext conftest.$ac_ext
  12139. fi
  12140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  12141. $as_echo "$ac_cv_func_mbrtowc" >&6; }
  12142. if test $ac_cv_func_mbrtowc = yes; then
  12143. $as_echo "@%:@define HAVE_MBRTOWC 1" >>confdefs.h
  12144. fi
  12145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  12146. $as_echo_n "checking for gcc compiler warnings... " >&6; }
  12147. @%:@ Check whether --enable-warnings was given.
  12148. if test "${enable_warnings+set}" = set; then :
  12149. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  12150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12151. $as_echo "no" >&6; }
  12152. WARNINGS=
  12153. else
  12154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12155. $as_echo "yes" >&6; }
  12156. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12157. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12158. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12159. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12160. fi
  12161. else
  12162. if test "$GCC" = yes; then
  12163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12164. $as_echo "yes" >&6; }
  12165. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12166. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12167. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12168. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12169. else
  12170. WARNINGS=
  12171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12172. $as_echo "no" >&6; }
  12173. fi
  12174. fi
  12175. for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale
  12176. do :
  12177. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12178. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12179. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12180. cat >>confdefs.h <<_ACEOF
  12181. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12182. _ACEOF
  12183. fi
  12184. done
  12185. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  12186. if test "x$ac_cv_func_getopt_long" = xyes; then :
  12187. $as_echo "@%:@define HAVE_GETOPT_LONG 1" >>confdefs.h
  12188. else
  12189. case " $LIB@&t@OBJS " in
  12190. *" getopt_long.$ac_objext "* ) ;;
  12191. *) LIB@&t@OBJS="$LIB@&t@OBJS getopt_long.$ac_objext"
  12192. ;;
  12193. esac
  12194. fi
  12195. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  12196. if test "x$ac_cv_func_asprintf" = xyes; then :
  12197. $as_echo "@%:@define HAVE_ASPRINTF 1" >>confdefs.h
  12198. else
  12199. case " $LIB@&t@OBJS " in
  12200. *" asprintf.$ac_objext "* ) ;;
  12201. *) LIB@&t@OBJS="$LIB@&t@OBJS asprintf.$ac_objext"
  12202. ;;
  12203. esac
  12204. fi
  12205. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  12206. if test "x$ac_cv_func_vasprintf" = xyes; then :
  12207. $as_echo "@%:@define HAVE_VASPRINTF 1" >>confdefs.h
  12208. else
  12209. case " $LIB@&t@OBJS " in
  12210. *" vasprintf.$ac_objext "* ) ;;
  12211. *) LIB@&t@OBJS="$LIB@&t@OBJS vasprintf.$ac_objext"
  12212. ;;
  12213. esac
  12214. fi
  12215. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  12216. if test "x$ac_cv_func_strlcpy" = xyes; then :
  12217. $as_echo "@%:@define HAVE_STRLCPY 1" >>confdefs.h
  12218. else
  12219. case " $LIB@&t@OBJS " in
  12220. *" strlcpy.$ac_objext "* ) ;;
  12221. *) LIB@&t@OBJS="$LIB@&t@OBJS strlcpy.$ac_objext"
  12222. ;;
  12223. esac
  12224. fi
  12225. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  12226. if test "x$ac_cv_func_strlcat" = xyes; then :
  12227. $as_echo "@%:@define HAVE_STRLCAT 1" >>confdefs.h
  12228. else
  12229. case " $LIB@&t@OBJS " in
  12230. *" strlcat.$ac_objext "* ) ;;
  12231. *) LIB@&t@OBJS="$LIB@&t@OBJS strlcat.$ac_objext"
  12232. ;;
  12233. esac
  12234. fi
  12235. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  12236. if test "x$ac_cv_func_getline" = xyes; then :
  12237. $as_echo "@%:@define HAVE_GETLINE 1" >>confdefs.h
  12238. else
  12239. case " $LIB@&t@OBJS " in
  12240. *" getline.$ac_objext "* ) ;;
  12241. *) LIB@&t@OBJS="$LIB@&t@OBJS getline.$ac_objext"
  12242. ;;
  12243. esac
  12244. fi
  12245. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  12246. if test "x$ac_cv_func_ctime_r" = xyes; then :
  12247. $as_echo "@%:@define HAVE_CTIME_R 1" >>confdefs.h
  12248. else
  12249. case " $LIB@&t@OBJS " in
  12250. *" ctime_r.$ac_objext "* ) ;;
  12251. *) LIB@&t@OBJS="$LIB@&t@OBJS ctime_r.$ac_objext"
  12252. ;;
  12253. esac
  12254. fi
  12255. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12256. if test "x$ac_cv_func_asctime_r" = xyes; then :
  12257. $as_echo "@%:@define HAVE_ASCTIME_R 1" >>confdefs.h
  12258. else
  12259. case " $LIB@&t@OBJS " in
  12260. *" asctime_r.$ac_objext "* ) ;;
  12261. *) LIB@&t@OBJS="$LIB@&t@OBJS asctime_r.$ac_objext"
  12262. ;;
  12263. esac
  12264. fi
  12265. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  12266. if test "x$ac_cv_func_pread" = xyes; then :
  12267. $as_echo "@%:@define HAVE_PREAD 1" >>confdefs.h
  12268. else
  12269. case " $LIB@&t@OBJS " in
  12270. *" pread.$ac_objext "* ) ;;
  12271. *) LIB@&t@OBJS="$LIB@&t@OBJS pread.$ac_objext"
  12272. ;;
  12273. esac
  12274. fi
  12275. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  12276. if test "x$ac_cv_func_strcasestr" = xyes; then :
  12277. $as_echo "@%:@define HAVE_STRCASESTR 1" >>confdefs.h
  12278. else
  12279. case " $LIB@&t@OBJS " in
  12280. *" strcasestr.$ac_objext "* ) ;;
  12281. *) LIB@&t@OBJS="$LIB@&t@OBJS strcasestr.$ac_objext"
  12282. ;;
  12283. esac
  12284. fi
  12285. ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
  12286. if test "x$ac_cv_func_fmtcheck" = xyes; then :
  12287. $as_echo "@%:@define HAVE_FMTCHECK 1" >>confdefs.h
  12288. else
  12289. case " $LIB@&t@OBJS " in
  12290. *" fmtcheck.$ac_objext "* ) ;;
  12291. *) LIB@&t@OBJS="$LIB@&t@OBJS fmtcheck.$ac_objext"
  12292. ;;
  12293. esac
  12294. fi
  12295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  12296. $as_echo_n "checking for gzopen in -lz... " >&6; }
  12297. if ${ac_cv_lib_z_gzopen+:} false; then :
  12298. $as_echo_n "(cached) " >&6
  12299. else
  12300. ac_check_lib_save_LIBS=$LIBS
  12301. LIBS="-lz $LIBS"
  12302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12303. /* end confdefs.h. */
  12304. /* Override any GCC internal prototype to avoid an error.
  12305. Use char because int might match the return type of a GCC
  12306. builtin and then its argument prototype would still apply. */
  12307. #ifdef __cplusplus
  12308. extern "C"
  12309. #endif
  12310. char gzopen ();
  12311. int
  12312. main ()
  12313. {
  12314. return gzopen ();
  12315. ;
  12316. return 0;
  12317. }
  12318. _ACEOF
  12319. if ac_fn_c_try_link "$LINENO"; then :
  12320. ac_cv_lib_z_gzopen=yes
  12321. else
  12322. ac_cv_lib_z_gzopen=no
  12323. fi
  12324. rm -f core conftest.err conftest.$ac_objext \
  12325. conftest$ac_exeext conftest.$ac_ext
  12326. LIBS=$ac_check_lib_save_LIBS
  12327. fi
  12328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  12329. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  12330. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  12331. cat >>confdefs.h <<_ACEOF
  12332. @%:@define HAVE_LIBZ 1
  12333. _ACEOF
  12334. LIBS="-lz $LIBS"
  12335. fi
  12336. if test "$MINGW" = 1; then
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  12338. $as_echo_n "checking for regexec in -lgnurx... " >&6; }
  12339. if ${ac_cv_lib_gnurx_regexec+:} false; then :
  12340. $as_echo_n "(cached) " >&6
  12341. else
  12342. ac_check_lib_save_LIBS=$LIBS
  12343. LIBS="-lgnurx $LIBS"
  12344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12345. /* end confdefs.h. */
  12346. /* Override any GCC internal prototype to avoid an error.
  12347. Use char because int might match the return type of a GCC
  12348. builtin and then its argument prototype would still apply. */
  12349. #ifdef __cplusplus
  12350. extern "C"
  12351. #endif
  12352. char regexec ();
  12353. int
  12354. main ()
  12355. {
  12356. return regexec ();
  12357. ;
  12358. return 0;
  12359. }
  12360. _ACEOF
  12361. if ac_fn_c_try_link "$LINENO"; then :
  12362. ac_cv_lib_gnurx_regexec=yes
  12363. else
  12364. ac_cv_lib_gnurx_regexec=no
  12365. fi
  12366. rm -f core conftest.err conftest.$ac_objext \
  12367. conftest$ac_exeext conftest.$ac_ext
  12368. LIBS=$ac_check_lib_save_LIBS
  12369. fi
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  12371. $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
  12372. if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
  12373. cat >>confdefs.h <<_ACEOF
  12374. @%:@define HAVE_LIBGNURX 1
  12375. _ACEOF
  12376. LIBS="-lgnurx $LIBS"
  12377. else
  12378. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  12379. fi
  12380. fi
  12381. if test "$cross_compiling" = yes; then
  12382. IS_CROSS_COMPILE_TRUE=
  12383. IS_CROSS_COMPILE_FALSE='#'
  12384. else
  12385. IS_CROSS_COMPILE_TRUE='#'
  12386. IS_CROSS_COMPILE_FALSE=
  12387. fi
  12388. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  12389. cat >confcache <<\_ACEOF
  12390. # This file is a shell script that caches the results of configure
  12391. # tests run on this system so they can be shared between configure
  12392. # scripts and configure runs, see configure's option --config-cache.
  12393. # It is not useful on other systems. If it contains results you don't
  12394. # want to keep, you may remove or edit it.
  12395. #
  12396. # config.status only pays attention to the cache file if you give it
  12397. # the --recheck option to rerun configure.
  12398. #
  12399. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12400. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12401. # following values.
  12402. _ACEOF
  12403. # The following way of writing the cache mishandles newlines in values,
  12404. # but we know of no workaround that is simple, portable, and efficient.
  12405. # So, we kill variables containing newlines.
  12406. # Ultrix sh set writes to stderr and can't be redirected directly,
  12407. # and sets the high bit in the cache file unless we assign to the vars.
  12408. (
  12409. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12410. eval ac_val=\$$ac_var
  12411. case $ac_val in #(
  12412. *${as_nl}*)
  12413. case $ac_var in #(
  12414. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12415. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12416. esac
  12417. case $ac_var in #(
  12418. _ | IFS | as_nl) ;; #(
  12419. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12420. *) { eval $ac_var=; unset $ac_var;} ;;
  12421. esac ;;
  12422. esac
  12423. done
  12424. (set) 2>&1 |
  12425. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12426. *${as_nl}ac_space=\ *)
  12427. # `set' does not quote correctly, so add quotes: double-quote
  12428. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12429. sed -n \
  12430. "s/'/'\\\\''/g;
  12431. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12432. ;; #(
  12433. *)
  12434. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12435. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12436. ;;
  12437. esac |
  12438. sort
  12439. ) |
  12440. sed '
  12441. /^ac_cv_env_/b end
  12442. t clear
  12443. :clear
  12444. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12445. t end
  12446. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12447. :end' >>confcache
  12448. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12449. if test -w "$cache_file"; then
  12450. if test "x$cache_file" != "x/dev/null"; then
  12451. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12452. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12453. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12454. cat confcache >"$cache_file"
  12455. else
  12456. case $cache_file in #(
  12457. */* | ?:*)
  12458. mv -f confcache "$cache_file"$$ &&
  12459. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12460. *)
  12461. mv -f confcache "$cache_file" ;;
  12462. esac
  12463. fi
  12464. fi
  12465. else
  12466. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12467. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12468. fi
  12469. fi
  12470. rm -f confcache
  12471. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12472. # Let make expand exec_prefix.
  12473. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12474. DEFS=-DHAVE_CONFIG_H
  12475. ac_libobjs=
  12476. ac_ltlibobjs=
  12477. U=
  12478. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  12479. # 1. Remove the extension, and $U if already installed.
  12480. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12481. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12482. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12483. # will be set to the directory where LIBOBJS objects are built.
  12484. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12485. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12486. done
  12487. LIB@&t@OBJS=$ac_libobjs
  12488. LTLIBOBJS=$ac_ltlibobjs
  12489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12490. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12491. if test -n "$am_sleep_pid"; then
  12492. # Hide warnings about reused PIDs.
  12493. wait $am_sleep_pid 2>/dev/null
  12494. fi
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12496. $as_echo "done" >&6; }
  12497. if test -n "$EXEEXT"; then
  12498. am__EXEEXT_TRUE=
  12499. am__EXEEXT_FALSE='#'
  12500. else
  12501. am__EXEEXT_TRUE='#'
  12502. am__EXEEXT_FALSE=
  12503. fi
  12504. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  12505. as_fn_error $? "conditional \"MINGW\" was never defined.
  12506. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12507. fi
  12508. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  12509. as_fn_error $? "conditional \"FSECT5\" was never defined.
  12510. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12511. fi
  12512. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12513. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12514. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12515. fi
  12516. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12517. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12518. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12519. fi
  12520. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  12521. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  12522. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12523. fi
  12524. : "${CONFIG_STATUS=./config.status}"
  12525. ac_write_fail=0
  12526. ac_clean_files_save=$ac_clean_files
  12527. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12529. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12530. as_write_fail=0
  12531. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12532. #! $SHELL
  12533. # Generated by $as_me.
  12534. # Run this file to recreate the current configuration.
  12535. # Compiler output produced by configure, useful for debugging
  12536. # configure, is in config.log if it exists.
  12537. debug=false
  12538. ac_cs_recheck=false
  12539. ac_cs_silent=false
  12540. SHELL=\${CONFIG_SHELL-$SHELL}
  12541. export SHELL
  12542. _ASEOF
  12543. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12544. ## -------------------- ##
  12545. ## M4sh Initialization. ##
  12546. ## -------------------- ##
  12547. # Be more Bourne compatible
  12548. DUALCASE=1; export DUALCASE # for MKS sh
  12549. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12550. emulate sh
  12551. NULLCMD=:
  12552. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12553. # is contrary to our usage. Disable this feature.
  12554. alias -g '${1+"$@"}'='"$@"'
  12555. setopt NO_GLOB_SUBST
  12556. else
  12557. case `(set -o) 2>/dev/null` in @%:@(
  12558. *posix*) :
  12559. set -o posix ;; @%:@(
  12560. *) :
  12561. ;;
  12562. esac
  12563. fi
  12564. as_nl='
  12565. '
  12566. export as_nl
  12567. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12568. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12569. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12570. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12571. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12572. # but without wasting forks for bash or zsh.
  12573. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12574. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12575. as_echo='print -r --'
  12576. as_echo_n='print -rn --'
  12577. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12578. as_echo='printf %s\n'
  12579. as_echo_n='printf %s'
  12580. else
  12581. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12582. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12583. as_echo_n='/usr/ucb/echo -n'
  12584. else
  12585. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12586. as_echo_n_body='eval
  12587. arg=$1;
  12588. case $arg in @%:@(
  12589. *"$as_nl"*)
  12590. expr "X$arg" : "X\\(.*\\)$as_nl";
  12591. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12592. esac;
  12593. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12594. '
  12595. export as_echo_n_body
  12596. as_echo_n='sh -c $as_echo_n_body as_echo'
  12597. fi
  12598. export as_echo_body
  12599. as_echo='sh -c $as_echo_body as_echo'
  12600. fi
  12601. # The user is always right.
  12602. if test "${PATH_SEPARATOR+set}" != set; then
  12603. PATH_SEPARATOR=:
  12604. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12605. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12606. PATH_SEPARATOR=';'
  12607. }
  12608. fi
  12609. # IFS
  12610. # We need space, tab and new line, in precisely that order. Quoting is
  12611. # there to prevent editors from complaining about space-tab.
  12612. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12613. # splitting by setting IFS to empty value.)
  12614. IFS=" "" $as_nl"
  12615. # Find who we are. Look in the path if we contain no directory separator.
  12616. as_myself=
  12617. case $0 in @%:@((
  12618. *[\\/]* ) as_myself=$0 ;;
  12619. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12620. for as_dir in $PATH
  12621. do
  12622. IFS=$as_save_IFS
  12623. test -z "$as_dir" && as_dir=.
  12624. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12625. done
  12626. IFS=$as_save_IFS
  12627. ;;
  12628. esac
  12629. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12630. # in which case we are not to be found in the path.
  12631. if test "x$as_myself" = x; then
  12632. as_myself=$0
  12633. fi
  12634. if test ! -f "$as_myself"; then
  12635. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12636. exit 1
  12637. fi
  12638. # Unset variables that we do not need and which cause bugs (e.g. in
  12639. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12640. # suppresses any "Segmentation fault" message there. '((' could
  12641. # trigger a bug in pdksh 5.2.14.
  12642. for as_var in BASH_ENV ENV MAIL MAILPATH
  12643. do eval test x\${$as_var+set} = xset \
  12644. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12645. done
  12646. PS1='$ '
  12647. PS2='> '
  12648. PS4='+ '
  12649. # NLS nuisances.
  12650. LC_ALL=C
  12651. export LC_ALL
  12652. LANGUAGE=C
  12653. export LANGUAGE
  12654. # CDPATH.
  12655. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12656. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  12657. @%:@ ----------------------------------------
  12658. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12659. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12660. @%:@ script with STATUS, using 1 if that was 0.
  12661. as_fn_error ()
  12662. {
  12663. as_status=$1; test $as_status -eq 0 && as_status=1
  12664. if test "$4"; then
  12665. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12666. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12667. fi
  12668. $as_echo "$as_me: error: $2" >&2
  12669. as_fn_exit $as_status
  12670. } @%:@ as_fn_error
  12671. @%:@ as_fn_set_status STATUS
  12672. @%:@ -----------------------
  12673. @%:@ Set @S|@? to STATUS, without forking.
  12674. as_fn_set_status ()
  12675. {
  12676. return $1
  12677. } @%:@ as_fn_set_status
  12678. @%:@ as_fn_exit STATUS
  12679. @%:@ -----------------
  12680. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12681. as_fn_exit ()
  12682. {
  12683. set +e
  12684. as_fn_set_status $1
  12685. exit $1
  12686. } @%:@ as_fn_exit
  12687. @%:@ as_fn_unset VAR
  12688. @%:@ ---------------
  12689. @%:@ Portably unset VAR.
  12690. as_fn_unset ()
  12691. {
  12692. { eval $1=; unset $1;}
  12693. }
  12694. as_unset=as_fn_unset
  12695. @%:@ as_fn_append VAR VALUE
  12696. @%:@ ----------------------
  12697. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  12698. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  12699. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  12700. @%:@ implementations.
  12701. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12702. eval 'as_fn_append ()
  12703. {
  12704. eval $1+=\$2
  12705. }'
  12706. else
  12707. as_fn_append ()
  12708. {
  12709. eval $1=\$$1\$2
  12710. }
  12711. fi # as_fn_append
  12712. @%:@ as_fn_arith ARG...
  12713. @%:@ ------------------
  12714. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  12715. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  12716. @%:@ must be portable across @S|@(()) and expr.
  12717. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12718. eval 'as_fn_arith ()
  12719. {
  12720. as_val=$(( $* ))
  12721. }'
  12722. else
  12723. as_fn_arith ()
  12724. {
  12725. as_val=`expr "$@" || test $? -eq 1`
  12726. }
  12727. fi # as_fn_arith
  12728. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12729. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12730. as_expr=expr
  12731. else
  12732. as_expr=false
  12733. fi
  12734. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12735. as_basename=basename
  12736. else
  12737. as_basename=false
  12738. fi
  12739. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12740. as_dirname=dirname
  12741. else
  12742. as_dirname=false
  12743. fi
  12744. as_me=`$as_basename -- "$0" ||
  12745. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12746. X"$0" : 'X\(//\)$' \| \
  12747. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12748. $as_echo X/"$0" |
  12749. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12750. s//\1/
  12751. q
  12752. }
  12753. /^X\/\(\/\/\)$/{
  12754. s//\1/
  12755. q
  12756. }
  12757. /^X\/\(\/\).*/{
  12758. s//\1/
  12759. q
  12760. }
  12761. s/.*/./; q'`
  12762. # Avoid depending upon Character Ranges.
  12763. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12764. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12765. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12766. as_cr_digits='0123456789'
  12767. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12768. ECHO_C= ECHO_N= ECHO_T=
  12769. case `echo -n x` in @%:@(((((
  12770. -n*)
  12771. case `echo 'xy\c'` in
  12772. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12773. xy) ECHO_C='\c';;
  12774. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12775. ECHO_T=' ';;
  12776. esac;;
  12777. *)
  12778. ECHO_N='-n';;
  12779. esac
  12780. rm -f conf$$ conf$$.exe conf$$.file
  12781. if test -d conf$$.dir; then
  12782. rm -f conf$$.dir/conf$$.file
  12783. else
  12784. rm -f conf$$.dir
  12785. mkdir conf$$.dir 2>/dev/null
  12786. fi
  12787. if (echo >conf$$.file) 2>/dev/null; then
  12788. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12789. as_ln_s='ln -s'
  12790. # ... but there are two gotchas:
  12791. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12792. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12793. # In both cases, we have to default to `cp -pR'.
  12794. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12795. as_ln_s='cp -pR'
  12796. elif ln conf$$.file conf$$ 2>/dev/null; then
  12797. as_ln_s=ln
  12798. else
  12799. as_ln_s='cp -pR'
  12800. fi
  12801. else
  12802. as_ln_s='cp -pR'
  12803. fi
  12804. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12805. rmdir conf$$.dir 2>/dev/null
  12806. @%:@ as_fn_mkdir_p
  12807. @%:@ -------------
  12808. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  12809. as_fn_mkdir_p ()
  12810. {
  12811. case $as_dir in #(
  12812. -*) as_dir=./$as_dir;;
  12813. esac
  12814. test -d "$as_dir" || eval $as_mkdir_p || {
  12815. as_dirs=
  12816. while :; do
  12817. case $as_dir in #(
  12818. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12819. *) as_qdir=$as_dir;;
  12820. esac
  12821. as_dirs="'$as_qdir' $as_dirs"
  12822. as_dir=`$as_dirname -- "$as_dir" ||
  12823. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12824. X"$as_dir" : 'X\(//\)[^/]' \| \
  12825. X"$as_dir" : 'X\(//\)$' \| \
  12826. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12827. $as_echo X"$as_dir" |
  12828. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12829. s//\1/
  12830. q
  12831. }
  12832. /^X\(\/\/\)[^/].*/{
  12833. s//\1/
  12834. q
  12835. }
  12836. /^X\(\/\/\)$/{
  12837. s//\1/
  12838. q
  12839. }
  12840. /^X\(\/\).*/{
  12841. s//\1/
  12842. q
  12843. }
  12844. s/.*/./; q'`
  12845. test -d "$as_dir" && break
  12846. done
  12847. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12848. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12849. } @%:@ as_fn_mkdir_p
  12850. if mkdir -p . 2>/dev/null; then
  12851. as_mkdir_p='mkdir -p "$as_dir"'
  12852. else
  12853. test -d ./-p && rmdir ./-p
  12854. as_mkdir_p=false
  12855. fi
  12856. @%:@ as_fn_executable_p FILE
  12857. @%:@ -----------------------
  12858. @%:@ Test if FILE is an executable regular file.
  12859. as_fn_executable_p ()
  12860. {
  12861. test -f "$1" && test -x "$1"
  12862. } @%:@ as_fn_executable_p
  12863. as_test_x='test -x'
  12864. as_executable_p=as_fn_executable_p
  12865. # Sed expression to map a string onto a valid CPP name.
  12866. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12867. # Sed expression to map a string onto a valid variable name.
  12868. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12869. exec 6>&1
  12870. ## ----------------------------------- ##
  12871. ## Main body of $CONFIG_STATUS script. ##
  12872. ## ----------------------------------- ##
  12873. _ASEOF
  12874. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12875. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12876. # Save the log message, to keep $0 and so on meaningful, and to
  12877. # report actual input values of CONFIG_FILES etc. instead of their
  12878. # values after options handling.
  12879. ac_log="
  12880. This file was extended by file $as_me 5.22, which was
  12881. generated by GNU Autoconf 2.69. Invocation command line was
  12882. CONFIG_FILES = $CONFIG_FILES
  12883. CONFIG_HEADERS = $CONFIG_HEADERS
  12884. CONFIG_LINKS = $CONFIG_LINKS
  12885. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12886. $ $0 $@
  12887. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12888. "
  12889. _ACEOF
  12890. case $ac_config_files in *"
  12891. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12892. esac
  12893. case $ac_config_headers in *"
  12894. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12895. esac
  12896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12897. # Files that config.status was made for.
  12898. config_files="$ac_config_files"
  12899. config_headers="$ac_config_headers"
  12900. config_commands="$ac_config_commands"
  12901. _ACEOF
  12902. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12903. ac_cs_usage="\
  12904. \`$as_me' instantiates files and other configuration actions
  12905. from templates according to the current configuration. Unless the files
  12906. and actions are specified as TAGs, all are instantiated by default.
  12907. Usage: $0 [OPTION]... [TAG]...
  12908. -h, --help print this help, then exit
  12909. -V, --version print version number and configuration settings, then exit
  12910. --config print configuration, then exit
  12911. -q, --quiet, --silent
  12912. do not print progress messages
  12913. -d, --debug don't remove temporary files
  12914. --recheck update $as_me by reconfiguring in the same conditions
  12915. --file=FILE[:TEMPLATE]
  12916. instantiate the configuration file FILE
  12917. --header=FILE[:TEMPLATE]
  12918. instantiate the configuration header FILE
  12919. Configuration files:
  12920. $config_files
  12921. Configuration headers:
  12922. $config_headers
  12923. Configuration commands:
  12924. $config_commands
  12925. Report bugs to <christos@astron.com>."
  12926. _ACEOF
  12927. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12928. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12929. ac_cs_version="\\
  12930. file config.status 5.22
  12931. configured by $0, generated by GNU Autoconf 2.69,
  12932. with options \\"\$ac_cs_config\\"
  12933. Copyright (C) 2012 Free Software Foundation, Inc.
  12934. This config.status script is free software; the Free Software Foundation
  12935. gives unlimited permission to copy, distribute and modify it."
  12936. ac_pwd='$ac_pwd'
  12937. srcdir='$srcdir'
  12938. INSTALL='$INSTALL'
  12939. MKDIR_P='$MKDIR_P'
  12940. AWK='$AWK'
  12941. test -n "\$AWK" || AWK=awk
  12942. _ACEOF
  12943. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12944. # The default lists apply if the user does not specify any file.
  12945. ac_need_defaults=:
  12946. while test $# != 0
  12947. do
  12948. case $1 in
  12949. --*=?*)
  12950. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12951. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12952. ac_shift=:
  12953. ;;
  12954. --*=)
  12955. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12956. ac_optarg=
  12957. ac_shift=:
  12958. ;;
  12959. *)
  12960. ac_option=$1
  12961. ac_optarg=$2
  12962. ac_shift=shift
  12963. ;;
  12964. esac
  12965. case $ac_option in
  12966. # Handling of the options.
  12967. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12968. ac_cs_recheck=: ;;
  12969. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12970. $as_echo "$ac_cs_version"; exit ;;
  12971. --config | --confi | --conf | --con | --co | --c )
  12972. $as_echo "$ac_cs_config"; exit ;;
  12973. --debug | --debu | --deb | --de | --d | -d )
  12974. debug=: ;;
  12975. --file | --fil | --fi | --f )
  12976. $ac_shift
  12977. case $ac_optarg in
  12978. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12979. '') as_fn_error $? "missing file argument" ;;
  12980. esac
  12981. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12982. ac_need_defaults=false;;
  12983. --header | --heade | --head | --hea )
  12984. $ac_shift
  12985. case $ac_optarg in
  12986. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12987. esac
  12988. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12989. ac_need_defaults=false;;
  12990. --he | --h)
  12991. # Conflict between --help and --header
  12992. as_fn_error $? "ambiguous option: \`$1'
  12993. Try \`$0 --help' for more information.";;
  12994. --help | --hel | -h )
  12995. $as_echo "$ac_cs_usage"; exit ;;
  12996. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12997. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12998. ac_cs_silent=: ;;
  12999. # This is an error.
  13000. -*) as_fn_error $? "unrecognized option: \`$1'
  13001. Try \`$0 --help' for more information." ;;
  13002. *) as_fn_append ac_config_targets " $1"
  13003. ac_need_defaults=false ;;
  13004. esac
  13005. shift
  13006. done
  13007. ac_configure_extra_args=
  13008. if $ac_cs_silent; then
  13009. exec 6>/dev/null
  13010. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13011. fi
  13012. _ACEOF
  13013. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13014. if \$ac_cs_recheck; then
  13015. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13016. shift
  13017. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13018. CONFIG_SHELL='$SHELL'
  13019. export CONFIG_SHELL
  13020. exec "\$@"
  13021. fi
  13022. _ACEOF
  13023. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13024. exec 5>>config.log
  13025. {
  13026. echo
  13027. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  13028. @%:@@%:@ Running $as_me. @%:@@%:@
  13029. _ASBOX
  13030. $as_echo "$ac_log"
  13031. } >&5
  13032. _ACEOF
  13033. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13034. #
  13035. # INIT-COMMANDS
  13036. #
  13037. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13038. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13039. # if CDPATH is set.
  13040. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13041. sed_quote_subst='$sed_quote_subst'
  13042. double_quote_subst='$double_quote_subst'
  13043. delay_variable_subst='$delay_variable_subst'
  13044. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13045. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13046. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13047. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13048. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13049. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13050. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13051. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13052. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13053. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13054. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13055. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13056. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13057. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13058. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13059. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13060. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13061. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13062. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13063. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13064. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13065. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13066. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13067. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13068. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13069. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13070. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13071. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13072. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13073. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13074. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13075. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13076. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13077. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13078. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13079. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13080. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13081. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13082. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13083. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13084. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13085. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13086. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13087. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13088. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13089. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13090. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13091. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13092. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13093. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13094. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13095. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13096. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13097. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13098. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13099. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13100. 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"`'
  13101. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13102. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13103. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13104. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13105. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13106. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13107. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13108. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13109. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13110. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13111. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13112. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13113. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13114. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13115. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13116. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13117. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13118. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13119. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13120. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13121. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13122. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13123. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13124. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13125. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13126. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13127. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13128. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13129. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13130. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13131. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13132. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13133. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13134. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13135. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13136. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13137. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13138. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13139. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13140. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13141. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13142. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13143. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13144. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13145. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13146. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13147. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13148. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13149. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13150. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13151. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13152. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13153. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13154. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13155. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13156. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13157. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13158. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13159. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13160. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13161. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13162. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13163. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13164. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13165. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13166. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13167. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13168. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13169. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13170. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13171. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13172. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13173. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13174. LTCC='$LTCC'
  13175. LTCFLAGS='$LTCFLAGS'
  13176. compiler='$compiler_DEFAULT'
  13177. # A function that is used when there is no print builtin or printf.
  13178. func_fallback_echo ()
  13179. {
  13180. eval 'cat <<_LTECHO_EOF
  13181. \$1
  13182. _LTECHO_EOF'
  13183. }
  13184. # Quote evaled strings.
  13185. for var in SHELL \
  13186. ECHO \
  13187. PATH_SEPARATOR \
  13188. SED \
  13189. GREP \
  13190. EGREP \
  13191. FGREP \
  13192. LD \
  13193. NM \
  13194. LN_S \
  13195. lt_SP2NL \
  13196. lt_NL2SP \
  13197. reload_flag \
  13198. OBJDUMP \
  13199. deplibs_check_method \
  13200. file_magic_cmd \
  13201. file_magic_glob \
  13202. want_nocaseglob \
  13203. DLLTOOL \
  13204. sharedlib_from_linklib_cmd \
  13205. AR \
  13206. AR_FLAGS \
  13207. archiver_list_spec \
  13208. STRIP \
  13209. RANLIB \
  13210. CC \
  13211. CFLAGS \
  13212. compiler \
  13213. lt_cv_sys_global_symbol_pipe \
  13214. lt_cv_sys_global_symbol_to_cdecl \
  13215. lt_cv_sys_global_symbol_to_c_name_address \
  13216. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13217. nm_file_list_spec \
  13218. lt_prog_compiler_no_builtin_flag \
  13219. lt_prog_compiler_pic \
  13220. lt_prog_compiler_wl \
  13221. lt_prog_compiler_static \
  13222. lt_cv_prog_compiler_c_o \
  13223. need_locks \
  13224. MANIFEST_TOOL \
  13225. DSYMUTIL \
  13226. NMEDIT \
  13227. LIPO \
  13228. OTOOL \
  13229. OTOOL64 \
  13230. shrext_cmds \
  13231. export_dynamic_flag_spec \
  13232. whole_archive_flag_spec \
  13233. compiler_needs_object \
  13234. with_gnu_ld \
  13235. allow_undefined_flag \
  13236. no_undefined_flag \
  13237. hardcode_libdir_flag_spec \
  13238. hardcode_libdir_separator \
  13239. exclude_expsyms \
  13240. include_expsyms \
  13241. file_list_spec \
  13242. variables_saved_for_relink \
  13243. libname_spec \
  13244. library_names_spec \
  13245. soname_spec \
  13246. install_override_mode \
  13247. finish_eval \
  13248. old_striplib \
  13249. striplib; do
  13250. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13251. *[\\\\\\\`\\"\\\$]*)
  13252. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13253. ;;
  13254. *)
  13255. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13256. ;;
  13257. esac
  13258. done
  13259. # Double-quote double-evaled strings.
  13260. for var in reload_cmds \
  13261. old_postinstall_cmds \
  13262. old_postuninstall_cmds \
  13263. old_archive_cmds \
  13264. extract_expsyms_cmds \
  13265. old_archive_from_new_cmds \
  13266. old_archive_from_expsyms_cmds \
  13267. archive_cmds \
  13268. archive_expsym_cmds \
  13269. module_cmds \
  13270. module_expsym_cmds \
  13271. export_symbols_cmds \
  13272. prelink_cmds \
  13273. postlink_cmds \
  13274. postinstall_cmds \
  13275. postuninstall_cmds \
  13276. finish_cmds \
  13277. sys_lib_search_path_spec \
  13278. sys_lib_dlsearch_path_spec; do
  13279. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13280. *[\\\\\\\`\\"\\\$]*)
  13281. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13282. ;;
  13283. *)
  13284. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13285. ;;
  13286. esac
  13287. done
  13288. ac_aux_dir='$ac_aux_dir'
  13289. xsi_shell='$xsi_shell'
  13290. lt_shell_append='$lt_shell_append'
  13291. # See if we are running on zsh, and set the options which allow our
  13292. # commands through without removal of \ escapes INIT.
  13293. if test -n "\${ZSH_VERSION+set}" ; then
  13294. setopt NO_GLOB_SUBST
  13295. fi
  13296. PACKAGE='$PACKAGE'
  13297. VERSION='$VERSION'
  13298. TIMESTAMP='$TIMESTAMP'
  13299. RM='$RM'
  13300. ofile='$ofile'
  13301. _ACEOF
  13302. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13303. # Handling of arguments.
  13304. for ac_config_target in $ac_config_targets
  13305. do
  13306. case $ac_config_target in
  13307. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13308. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13309. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13310. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13311. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13312. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  13313. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  13314. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13315. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  13316. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13317. esac
  13318. done
  13319. # If the user did not use the arguments to specify the items to instantiate,
  13320. # then the envvar interface is used. Set only those that are not.
  13321. # We use the long form for the default assignment because of an extremely
  13322. # bizarre bug on SunOS 4.1.3.
  13323. if $ac_need_defaults; then
  13324. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13325. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13326. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13327. fi
  13328. # Have a temporary directory for convenience. Make it in the build tree
  13329. # simply because there is no reason against having it here, and in addition,
  13330. # creating and moving files from /tmp can sometimes cause problems.
  13331. # Hook for its removal unless debugging.
  13332. # Note that there is a small window in which the directory will not be cleaned:
  13333. # after its creation but before its name has been assigned to `$tmp'.
  13334. $debug ||
  13335. {
  13336. tmp= ac_tmp=
  13337. trap 'exit_status=$?
  13338. : "${ac_tmp:=$tmp}"
  13339. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13340. ' 0
  13341. trap 'as_fn_exit 1' 1 2 13 15
  13342. }
  13343. # Create a (secure) tmp directory for tmp files.
  13344. {
  13345. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13346. test -d "$tmp"
  13347. } ||
  13348. {
  13349. tmp=./conf$$-$RANDOM
  13350. (umask 077 && mkdir "$tmp")
  13351. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13352. ac_tmp=$tmp
  13353. # Set up the scripts for CONFIG_FILES section.
  13354. # No need to generate them if there are no CONFIG_FILES.
  13355. # This happens for instance with `./config.status config.h'.
  13356. if test -n "$CONFIG_FILES"; then
  13357. ac_cr=`echo X | tr X '\015'`
  13358. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13359. # But we know of no other shell where ac_cr would be empty at this
  13360. # point, so we can use a bashism as a fallback.
  13361. if test "x$ac_cr" = x; then
  13362. eval ac_cr=\$\'\\r\'
  13363. fi
  13364. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13365. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13366. ac_cs_awk_cr='\\r'
  13367. else
  13368. ac_cs_awk_cr=$ac_cr
  13369. fi
  13370. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13371. _ACEOF
  13372. {
  13373. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13374. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13375. echo "_ACEOF"
  13376. } >conf$$subs.sh ||
  13377. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13378. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13379. ac_delim='%!_!# '
  13380. for ac_last_try in false false false false false :; do
  13381. . ./conf$$subs.sh ||
  13382. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13383. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13384. if test $ac_delim_n = $ac_delim_num; then
  13385. break
  13386. elif $ac_last_try; then
  13387. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13388. else
  13389. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13390. fi
  13391. done
  13392. rm -f conf$$subs.sh
  13393. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13394. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13395. _ACEOF
  13396. sed -n '
  13397. h
  13398. s/^/S["/; s/!.*/"]=/
  13399. p
  13400. g
  13401. s/^[^!]*!//
  13402. :repl
  13403. t repl
  13404. s/'"$ac_delim"'$//
  13405. t delim
  13406. :nl
  13407. h
  13408. s/\(.\{148\}\)..*/\1/
  13409. t more1
  13410. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13411. p
  13412. n
  13413. b repl
  13414. :more1
  13415. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13416. p
  13417. g
  13418. s/.\{148\}//
  13419. t nl
  13420. :delim
  13421. h
  13422. s/\(.\{148\}\)..*/\1/
  13423. t more2
  13424. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13425. p
  13426. b
  13427. :more2
  13428. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13429. p
  13430. g
  13431. s/.\{148\}//
  13432. t delim
  13433. ' <conf$$subs.awk | sed '
  13434. /^[^""]/{
  13435. N
  13436. s/\n//
  13437. }
  13438. ' >>$CONFIG_STATUS || ac_write_fail=1
  13439. rm -f conf$$subs.awk
  13440. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13441. _ACAWK
  13442. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13443. for (key in S) S_is_set[key] = 1
  13444. FS = ""
  13445. }
  13446. {
  13447. line = $ 0
  13448. nfields = split(line, field, "@")
  13449. substed = 0
  13450. len = length(field[1])
  13451. for (i = 2; i < nfields; i++) {
  13452. key = field[i]
  13453. keylen = length(key)
  13454. if (S_is_set[key]) {
  13455. value = S[key]
  13456. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13457. len += length(value) + length(field[++i])
  13458. substed = 1
  13459. } else
  13460. len += 1 + keylen
  13461. }
  13462. print line
  13463. }
  13464. _ACAWK
  13465. _ACEOF
  13466. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13467. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13468. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13469. else
  13470. cat
  13471. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13472. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13473. _ACEOF
  13474. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13475. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13476. # trailing colons and then remove the whole line if VPATH becomes empty
  13477. # (actually we leave an empty line to preserve line numbers).
  13478. if test "x$srcdir" = x.; then
  13479. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13480. h
  13481. s///
  13482. s/^/:/
  13483. s/[ ]*$/:/
  13484. s/:\$(srcdir):/:/g
  13485. s/:\${srcdir}:/:/g
  13486. s/:@srcdir@:/:/g
  13487. s/^:*//
  13488. s/:*$//
  13489. x
  13490. s/\(=[ ]*\).*/\1/
  13491. G
  13492. s/\n//
  13493. s/^[^=]*=[ ]*$//
  13494. }'
  13495. fi
  13496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13497. fi # test -n "$CONFIG_FILES"
  13498. # Set up the scripts for CONFIG_HEADERS section.
  13499. # No need to generate them if there are no CONFIG_HEADERS.
  13500. # This happens for instance with `./config.status Makefile'.
  13501. if test -n "$CONFIG_HEADERS"; then
  13502. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13503. BEGIN {
  13504. _ACEOF
  13505. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13506. # here-document in config.status, that substitutes the proper values into
  13507. # config.h.in to produce config.h.
  13508. # Create a delimiter string that does not exist in confdefs.h, to ease
  13509. # handling of long lines.
  13510. ac_delim='%!_!# '
  13511. for ac_last_try in false false :; do
  13512. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13513. if test -z "$ac_tt"; then
  13514. break
  13515. elif $ac_last_try; then
  13516. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13517. else
  13518. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13519. fi
  13520. done
  13521. # For the awk script, D is an array of macro values keyed by name,
  13522. # likewise P contains macro parameters if any. Preserve backslash
  13523. # newline sequences.
  13524. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13525. sed -n '
  13526. s/.\{148\}/&'"$ac_delim"'/g
  13527. t rset
  13528. :rset
  13529. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13530. t def
  13531. d
  13532. :def
  13533. s/\\$//
  13534. t bsnl
  13535. s/["\\]/\\&/g
  13536. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13537. D["\1"]=" \3"/p
  13538. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13539. d
  13540. :bsnl
  13541. s/["\\]/\\&/g
  13542. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13543. D["\1"]=" \3\\\\\\n"\\/p
  13544. t cont
  13545. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13546. t cont
  13547. d
  13548. :cont
  13549. n
  13550. s/.\{148\}/&'"$ac_delim"'/g
  13551. t clear
  13552. :clear
  13553. s/\\$//
  13554. t bsnlc
  13555. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13556. d
  13557. :bsnlc
  13558. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13559. b cont
  13560. ' <confdefs.h | sed '
  13561. s/'"$ac_delim"'/"\\\
  13562. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13563. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13564. for (key in D) D_is_set[key] = 1
  13565. FS = ""
  13566. }
  13567. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13568. line = \$ 0
  13569. split(line, arg, " ")
  13570. if (arg[1] == "#") {
  13571. defundef = arg[2]
  13572. mac1 = arg[3]
  13573. } else {
  13574. defundef = substr(arg[1], 2)
  13575. mac1 = arg[2]
  13576. }
  13577. split(mac1, mac2, "(") #)
  13578. macro = mac2[1]
  13579. prefix = substr(line, 1, index(line, defundef) - 1)
  13580. if (D_is_set[macro]) {
  13581. # Preserve the white space surrounding the "#".
  13582. print prefix "define", macro P[macro] D[macro]
  13583. next
  13584. } else {
  13585. # Replace #undef with comments. This is necessary, for example,
  13586. # in the case of _POSIX_SOURCE, which is predefined and required
  13587. # on some systems where configure will not decide to define it.
  13588. if (defundef == "undef") {
  13589. print "/*", prefix defundef, macro, "*/"
  13590. next
  13591. }
  13592. }
  13593. }
  13594. { print }
  13595. _ACAWK
  13596. _ACEOF
  13597. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13598. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13599. fi # test -n "$CONFIG_HEADERS"
  13600. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13601. shift
  13602. for ac_tag
  13603. do
  13604. case $ac_tag in
  13605. :[FHLC]) ac_mode=$ac_tag; continue;;
  13606. esac
  13607. case $ac_mode$ac_tag in
  13608. :[FHL]*:*);;
  13609. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13610. :[FH]-) ac_tag=-:-;;
  13611. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13612. esac
  13613. ac_save_IFS=$IFS
  13614. IFS=:
  13615. set x $ac_tag
  13616. IFS=$ac_save_IFS
  13617. shift
  13618. ac_file=$1
  13619. shift
  13620. case $ac_mode in
  13621. :L) ac_source=$1;;
  13622. :[FH])
  13623. ac_file_inputs=
  13624. for ac_f
  13625. do
  13626. case $ac_f in
  13627. -) ac_f="$ac_tmp/stdin";;
  13628. *) # Look for the file first in the build tree, then in the source tree
  13629. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13630. # because $ac_f cannot contain `:'.
  13631. test -f "$ac_f" ||
  13632. case $ac_f in
  13633. [\\/$]*) false;;
  13634. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13635. esac ||
  13636. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13637. esac
  13638. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13639. as_fn_append ac_file_inputs " '$ac_f'"
  13640. done
  13641. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13642. # use $as_me), people would be surprised to read:
  13643. # /* config.h. Generated by config.status. */
  13644. configure_input='Generated from '`
  13645. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13646. `' by configure.'
  13647. if test x"$ac_file" != x-; then
  13648. configure_input="$ac_file. $configure_input"
  13649. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13650. $as_echo "$as_me: creating $ac_file" >&6;}
  13651. fi
  13652. # Neutralize special characters interpreted by sed in replacement strings.
  13653. case $configure_input in #(
  13654. *\&* | *\|* | *\\* )
  13655. ac_sed_conf_input=`$as_echo "$configure_input" |
  13656. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13657. *) ac_sed_conf_input=$configure_input;;
  13658. esac
  13659. case $ac_tag in
  13660. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13661. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13662. esac
  13663. ;;
  13664. esac
  13665. ac_dir=`$as_dirname -- "$ac_file" ||
  13666. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13667. X"$ac_file" : 'X\(//\)[^/]' \| \
  13668. X"$ac_file" : 'X\(//\)$' \| \
  13669. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13670. $as_echo X"$ac_file" |
  13671. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13672. s//\1/
  13673. q
  13674. }
  13675. /^X\(\/\/\)[^/].*/{
  13676. s//\1/
  13677. q
  13678. }
  13679. /^X\(\/\/\)$/{
  13680. s//\1/
  13681. q
  13682. }
  13683. /^X\(\/\).*/{
  13684. s//\1/
  13685. q
  13686. }
  13687. s/.*/./; q'`
  13688. as_dir="$ac_dir"; as_fn_mkdir_p
  13689. ac_builddir=.
  13690. case "$ac_dir" in
  13691. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13692. *)
  13693. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13694. # A ".." for each directory in $ac_dir_suffix.
  13695. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13696. case $ac_top_builddir_sub in
  13697. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13698. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13699. esac ;;
  13700. esac
  13701. ac_abs_top_builddir=$ac_pwd
  13702. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13703. # for backward compatibility:
  13704. ac_top_builddir=$ac_top_build_prefix
  13705. case $srcdir in
  13706. .) # We are building in place.
  13707. ac_srcdir=.
  13708. ac_top_srcdir=$ac_top_builddir_sub
  13709. ac_abs_top_srcdir=$ac_pwd ;;
  13710. [\\/]* | ?:[\\/]* ) # Absolute name.
  13711. ac_srcdir=$srcdir$ac_dir_suffix;
  13712. ac_top_srcdir=$srcdir
  13713. ac_abs_top_srcdir=$srcdir ;;
  13714. *) # Relative name.
  13715. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13716. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13717. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13718. esac
  13719. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13720. case $ac_mode in
  13721. :F)
  13722. #
  13723. # CONFIG_FILE
  13724. #
  13725. case $INSTALL in
  13726. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13727. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13728. esac
  13729. ac_MKDIR_P=$MKDIR_P
  13730. case $MKDIR_P in
  13731. [\\/$]* | ?:[\\/]* ) ;;
  13732. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13733. esac
  13734. _ACEOF
  13735. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13736. # If the template does not know about datarootdir, expand it.
  13737. # FIXME: This hack should be removed a few years after 2.60.
  13738. ac_datarootdir_hack=; ac_datarootdir_seen=
  13739. ac_sed_dataroot='
  13740. /datarootdir/ {
  13741. p
  13742. q
  13743. }
  13744. /@datadir@/p
  13745. /@docdir@/p
  13746. /@infodir@/p
  13747. /@localedir@/p
  13748. /@mandir@/p'
  13749. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13750. *datarootdir*) ac_datarootdir_seen=yes;;
  13751. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13753. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13754. _ACEOF
  13755. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13756. ac_datarootdir_hack='
  13757. s&@datadir@&$datadir&g
  13758. s&@docdir@&$docdir&g
  13759. s&@infodir@&$infodir&g
  13760. s&@localedir@&$localedir&g
  13761. s&@mandir@&$mandir&g
  13762. s&\\\${datarootdir}&$datarootdir&g' ;;
  13763. esac
  13764. _ACEOF
  13765. # Neutralize VPATH when `$srcdir' = `.'.
  13766. # Shell code in configure.ac might set extrasub.
  13767. # FIXME: do we really want to maintain this feature?
  13768. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13769. ac_sed_extra="$ac_vpsub
  13770. $extrasub
  13771. _ACEOF
  13772. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13773. :t
  13774. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13775. s|@configure_input@|$ac_sed_conf_input|;t t
  13776. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13777. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13778. s&@srcdir@&$ac_srcdir&;t t
  13779. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13780. s&@top_srcdir@&$ac_top_srcdir&;t t
  13781. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13782. s&@builddir@&$ac_builddir&;t t
  13783. s&@abs_builddir@&$ac_abs_builddir&;t t
  13784. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13785. s&@INSTALL@&$ac_INSTALL&;t t
  13786. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13787. $ac_datarootdir_hack
  13788. "
  13789. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13790. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13791. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13792. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13793. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13794. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13796. which seems to be undefined. Please make sure it is defined" >&5
  13797. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13798. which seems to be undefined. Please make sure it is defined" >&2;}
  13799. rm -f "$ac_tmp/stdin"
  13800. case $ac_file in
  13801. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13802. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13803. esac \
  13804. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13805. ;;
  13806. :H)
  13807. #
  13808. # CONFIG_HEADER
  13809. #
  13810. if test x"$ac_file" != x-; then
  13811. {
  13812. $as_echo "/* $configure_input */" \
  13813. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13814. } >"$ac_tmp/config.h" \
  13815. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13816. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13817. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13818. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13819. else
  13820. rm -f "$ac_file"
  13821. mv "$ac_tmp/config.h" "$ac_file" \
  13822. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13823. fi
  13824. else
  13825. $as_echo "/* $configure_input */" \
  13826. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13827. || as_fn_error $? "could not create -" "$LINENO" 5
  13828. fi
  13829. # Compute "$ac_file"'s index in $config_headers.
  13830. _am_arg="$ac_file"
  13831. _am_stamp_count=1
  13832. for _am_header in $config_headers :; do
  13833. case $_am_header in
  13834. $_am_arg | $_am_arg:* )
  13835. break ;;
  13836. * )
  13837. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13838. esac
  13839. done
  13840. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13841. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13842. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13843. X"$_am_arg" : 'X\(//\)$' \| \
  13844. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13845. $as_echo X"$_am_arg" |
  13846. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13847. s//\1/
  13848. q
  13849. }
  13850. /^X\(\/\/\)[^/].*/{
  13851. s//\1/
  13852. q
  13853. }
  13854. /^X\(\/\/\)$/{
  13855. s//\1/
  13856. q
  13857. }
  13858. /^X\(\/\).*/{
  13859. s//\1/
  13860. q
  13861. }
  13862. s/.*/./; q'`/stamp-h$_am_stamp_count
  13863. ;;
  13864. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13865. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13866. ;;
  13867. esac
  13868. case $ac_file$ac_mode in
  13869. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13870. # Older Autoconf quotes --file arguments for eval, but not when files
  13871. # are listed without --file. Let's play safe and only enable the eval
  13872. # if we detect the quoting.
  13873. case $CONFIG_FILES in
  13874. *\'*) eval set x "$CONFIG_FILES" ;;
  13875. *) set x $CONFIG_FILES ;;
  13876. esac
  13877. shift
  13878. for mf
  13879. do
  13880. # Strip MF so we end up with the name of the file.
  13881. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13882. # Check whether this is an Automake generated Makefile or not.
  13883. # We used to match only the files named 'Makefile.in', but
  13884. # some people rename them; so instead we look at the file content.
  13885. # Grep'ing the first line is not enough: some people post-process
  13886. # each Makefile.in and add a new line on top of each file to say so.
  13887. # Grep'ing the whole file is not good either: AIX grep has a line
  13888. # limit of 2048, but all sed's we know have understand at least 4000.
  13889. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13890. dirpart=`$as_dirname -- "$mf" ||
  13891. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13892. X"$mf" : 'X\(//\)[^/]' \| \
  13893. X"$mf" : 'X\(//\)$' \| \
  13894. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13895. $as_echo X"$mf" |
  13896. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13897. s//\1/
  13898. q
  13899. }
  13900. /^X\(\/\/\)[^/].*/{
  13901. s//\1/
  13902. q
  13903. }
  13904. /^X\(\/\/\)$/{
  13905. s//\1/
  13906. q
  13907. }
  13908. /^X\(\/\).*/{
  13909. s//\1/
  13910. q
  13911. }
  13912. s/.*/./; q'`
  13913. else
  13914. continue
  13915. fi
  13916. # Extract the definition of DEPDIR, am__include, and am__quote
  13917. # from the Makefile without running 'make'.
  13918. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13919. test -z "$DEPDIR" && continue
  13920. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13921. test -z "$am__include" && continue
  13922. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13923. # Find all dependency output files, they are included files with
  13924. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13925. # simplest approach to changing $(DEPDIR) to its actual value in the
  13926. # expansion.
  13927. for file in `sed -n "
  13928. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13929. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13930. # Make sure the directory exists.
  13931. test -f "$dirpart/$file" && continue
  13932. fdir=`$as_dirname -- "$file" ||
  13933. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13934. X"$file" : 'X\(//\)[^/]' \| \
  13935. X"$file" : 'X\(//\)$' \| \
  13936. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13937. $as_echo X"$file" |
  13938. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13939. s//\1/
  13940. q
  13941. }
  13942. /^X\(\/\/\)[^/].*/{
  13943. s//\1/
  13944. q
  13945. }
  13946. /^X\(\/\/\)$/{
  13947. s//\1/
  13948. q
  13949. }
  13950. /^X\(\/\).*/{
  13951. s//\1/
  13952. q
  13953. }
  13954. s/.*/./; q'`
  13955. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13956. # echo "creating $dirpart/$file"
  13957. echo '# dummy' > "$dirpart/$file"
  13958. done
  13959. done
  13960. }
  13961. ;;
  13962. "libtool":C)
  13963. # See if we are running on zsh, and set the options which allow our
  13964. # commands through without removal of \ escapes.
  13965. if test -n "${ZSH_VERSION+set}" ; then
  13966. setopt NO_GLOB_SUBST
  13967. fi
  13968. cfgfile="${ofile}T"
  13969. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13970. $RM "$cfgfile"
  13971. cat <<_LT_EOF >> "$cfgfile"
  13972. #! $SHELL
  13973. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13974. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13975. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13976. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13977. #
  13978. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13979. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  13980. # Foundation, Inc.
  13981. # Written by Gordon Matzigkeit, 1996
  13982. #
  13983. # This file is part of GNU Libtool.
  13984. #
  13985. # GNU Libtool is free software; you can redistribute it and/or
  13986. # modify it under the terms of the GNU General Public License as
  13987. # published by the Free Software Foundation; either version 2 of
  13988. # the License, or (at your option) any later version.
  13989. #
  13990. # As a special exception to the GNU General Public License,
  13991. # if you distribute this file as part of a program or library that
  13992. # is built using GNU Libtool, you may include this file under the
  13993. # same distribution terms that you use for the rest of that program.
  13994. #
  13995. # GNU Libtool is distributed in the hope that it will be useful,
  13996. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13997. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13998. # GNU General Public License for more details.
  13999. #
  14000. # You should have received a copy of the GNU General Public License
  14001. # along with GNU Libtool; see the file COPYING. If not, a copy
  14002. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14003. # obtained by writing to the Free Software Foundation, Inc.,
  14004. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14005. # The names of the tagged configurations supported by this script.
  14006. available_tags=""
  14007. # ### BEGIN LIBTOOL CONFIG
  14008. # Which release of libtool.m4 was used?
  14009. macro_version=$macro_version
  14010. macro_revision=$macro_revision
  14011. # Whether or not to build static libraries.
  14012. build_old_libs=$enable_static
  14013. # What type of objects to build.
  14014. pic_mode=$pic_mode
  14015. # Whether or not to build shared libraries.
  14016. build_libtool_libs=$enable_shared
  14017. # Whether or not to optimize for fast installation.
  14018. fast_install=$enable_fast_install
  14019. # Shell to use when invoking shell scripts.
  14020. SHELL=$lt_SHELL
  14021. # An echo program that protects backslashes.
  14022. ECHO=$lt_ECHO
  14023. # The PATH separator for the build system.
  14024. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14025. # The host system.
  14026. host_alias=$host_alias
  14027. host=$host
  14028. host_os=$host_os
  14029. # The build system.
  14030. build_alias=$build_alias
  14031. build=$build
  14032. build_os=$build_os
  14033. # A sed program that does not truncate output.
  14034. SED=$lt_SED
  14035. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14036. Xsed="\$SED -e 1s/^X//"
  14037. # A grep program that handles long lines.
  14038. GREP=$lt_GREP
  14039. # An ERE matcher.
  14040. EGREP=$lt_EGREP
  14041. # A literal string matcher.
  14042. FGREP=$lt_FGREP
  14043. # A BSD- or MS-compatible name lister.
  14044. NM=$lt_NM
  14045. # Whether we need soft or hard links.
  14046. LN_S=$lt_LN_S
  14047. # What is the maximum length of a command?
  14048. max_cmd_len=$max_cmd_len
  14049. # Object file suffix (normally "o").
  14050. objext=$ac_objext
  14051. # Executable file suffix (normally "").
  14052. exeext=$exeext
  14053. # whether the shell understands "unset".
  14054. lt_unset=$lt_unset
  14055. # turn spaces into newlines.
  14056. SP2NL=$lt_lt_SP2NL
  14057. # turn newlines into spaces.
  14058. NL2SP=$lt_lt_NL2SP
  14059. # convert \$build file names to \$host format.
  14060. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14061. # convert \$build files to toolchain format.
  14062. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14063. # An object symbol dumper.
  14064. OBJDUMP=$lt_OBJDUMP
  14065. # Method to check whether dependent libraries are shared objects.
  14066. deplibs_check_method=$lt_deplibs_check_method
  14067. # Command to use when deplibs_check_method = "file_magic".
  14068. file_magic_cmd=$lt_file_magic_cmd
  14069. # How to find potential files when deplibs_check_method = "file_magic".
  14070. file_magic_glob=$lt_file_magic_glob
  14071. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14072. want_nocaseglob=$lt_want_nocaseglob
  14073. # DLL creation program.
  14074. DLLTOOL=$lt_DLLTOOL
  14075. # Command to associate shared and link libraries.
  14076. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14077. # The archiver.
  14078. AR=$lt_AR
  14079. # Flags to create an archive.
  14080. AR_FLAGS=$lt_AR_FLAGS
  14081. # How to feed a file listing to the archiver.
  14082. archiver_list_spec=$lt_archiver_list_spec
  14083. # A symbol stripping program.
  14084. STRIP=$lt_STRIP
  14085. # Commands used to install an old-style archive.
  14086. RANLIB=$lt_RANLIB
  14087. old_postinstall_cmds=$lt_old_postinstall_cmds
  14088. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14089. # Whether to use a lock for old archive extraction.
  14090. lock_old_archive_extraction=$lock_old_archive_extraction
  14091. # A C compiler.
  14092. LTCC=$lt_CC
  14093. # LTCC compiler flags.
  14094. LTCFLAGS=$lt_CFLAGS
  14095. # Take the output of nm and produce a listing of raw symbols and C names.
  14096. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14097. # Transform the output of nm in a proper C declaration.
  14098. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14099. # Transform the output of nm in a C name address pair.
  14100. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14101. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14102. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14103. # Specify filename containing input files for \$NM.
  14104. nm_file_list_spec=$lt_nm_file_list_spec
  14105. # The root where to search for dependent libraries,and in which our libraries should be installed.
  14106. lt_sysroot=$lt_sysroot
  14107. # The name of the directory that contains temporary libtool files.
  14108. objdir=$objdir
  14109. # Used to examine libraries when file_magic_cmd begins with "file".
  14110. MAGIC_CMD=$MAGIC_CMD
  14111. # Must we lock files when doing compilation?
  14112. need_locks=$lt_need_locks
  14113. # Manifest tool.
  14114. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14115. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14116. DSYMUTIL=$lt_DSYMUTIL
  14117. # Tool to change global to local symbols on Mac OS X.
  14118. NMEDIT=$lt_NMEDIT
  14119. # Tool to manipulate fat objects and archives on Mac OS X.
  14120. LIPO=$lt_LIPO
  14121. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14122. OTOOL=$lt_OTOOL
  14123. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14124. OTOOL64=$lt_OTOOL64
  14125. # Old archive suffix (normally "a").
  14126. libext=$libext
  14127. # Shared library suffix (normally ".so").
  14128. shrext_cmds=$lt_shrext_cmds
  14129. # The commands to extract the exported symbol list from a shared archive.
  14130. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14131. # Variables whose values should be saved in libtool wrapper scripts and
  14132. # restored at link time.
  14133. variables_saved_for_relink=$lt_variables_saved_for_relink
  14134. # Do we need the "lib" prefix for modules?
  14135. need_lib_prefix=$need_lib_prefix
  14136. # Do we need a version for libraries?
  14137. need_version=$need_version
  14138. # Library versioning type.
  14139. version_type=$version_type
  14140. # Shared library runtime path variable.
  14141. runpath_var=$runpath_var
  14142. # Shared library path variable.
  14143. shlibpath_var=$shlibpath_var
  14144. # Is shlibpath searched before the hard-coded library search path?
  14145. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14146. # Format of library name prefix.
  14147. libname_spec=$lt_libname_spec
  14148. # List of archive names. First name is the real one, the rest are links.
  14149. # The last name is the one that the linker finds with -lNAME
  14150. library_names_spec=$lt_library_names_spec
  14151. # The coded name of the library, if different from the real name.
  14152. soname_spec=$lt_soname_spec
  14153. # Permission mode override for installation of shared libraries.
  14154. install_override_mode=$lt_install_override_mode
  14155. # Command to use after installation of a shared archive.
  14156. postinstall_cmds=$lt_postinstall_cmds
  14157. # Command to use after uninstallation of a shared archive.
  14158. postuninstall_cmds=$lt_postuninstall_cmds
  14159. # Commands used to finish a libtool library installation in a directory.
  14160. finish_cmds=$lt_finish_cmds
  14161. # As "finish_cmds", except a single script fragment to be evaled but
  14162. # not shown.
  14163. finish_eval=$lt_finish_eval
  14164. # Whether we should hardcode library paths into libraries.
  14165. hardcode_into_libs=$hardcode_into_libs
  14166. # Compile-time system search path for libraries.
  14167. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14168. # Run-time system search path for libraries.
  14169. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14170. # Whether dlopen is supported.
  14171. dlopen_support=$enable_dlopen
  14172. # Whether dlopen of programs is supported.
  14173. dlopen_self=$enable_dlopen_self
  14174. # Whether dlopen of statically linked programs is supported.
  14175. dlopen_self_static=$enable_dlopen_self_static
  14176. # Commands to strip libraries.
  14177. old_striplib=$lt_old_striplib
  14178. striplib=$lt_striplib
  14179. # The linker used to build libraries.
  14180. LD=$lt_LD
  14181. # How to create reloadable object files.
  14182. reload_flag=$lt_reload_flag
  14183. reload_cmds=$lt_reload_cmds
  14184. # Commands used to build an old-style archive.
  14185. old_archive_cmds=$lt_old_archive_cmds
  14186. # A language specific compiler.
  14187. CC=$lt_compiler
  14188. # Is the compiler the GNU compiler?
  14189. with_gcc=$GCC
  14190. # Compiler flag to turn off builtin functions.
  14191. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14192. # Additional compiler flags for building library objects.
  14193. pic_flag=$lt_lt_prog_compiler_pic
  14194. # How to pass a linker flag through the compiler.
  14195. wl=$lt_lt_prog_compiler_wl
  14196. # Compiler flag to prevent dynamic linking.
  14197. link_static_flag=$lt_lt_prog_compiler_static
  14198. # Does compiler simultaneously support -c and -o options?
  14199. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14200. # Whether or not to add -lc for building shared libraries.
  14201. build_libtool_need_lc=$archive_cmds_need_lc
  14202. # Whether or not to disallow shared libs when runtime libs are static.
  14203. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14204. # Compiler flag to allow reflexive dlopens.
  14205. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14206. # Compiler flag to generate shared objects directly from archives.
  14207. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14208. # Whether the compiler copes with passing no objects directly.
  14209. compiler_needs_object=$lt_compiler_needs_object
  14210. # Create an old-style archive from a shared archive.
  14211. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14212. # Create a temporary old-style archive to link instead of a shared archive.
  14213. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14214. # Commands used to build a shared archive.
  14215. archive_cmds=$lt_archive_cmds
  14216. archive_expsym_cmds=$lt_archive_expsym_cmds
  14217. # Commands used to build a loadable module if different from building
  14218. # a shared archive.
  14219. module_cmds=$lt_module_cmds
  14220. module_expsym_cmds=$lt_module_expsym_cmds
  14221. # Whether we are building with GNU ld or not.
  14222. with_gnu_ld=$lt_with_gnu_ld
  14223. # Flag that allows shared libraries with undefined symbols to be built.
  14224. allow_undefined_flag=$lt_allow_undefined_flag
  14225. # Flag that enforces no undefined symbols.
  14226. no_undefined_flag=$lt_no_undefined_flag
  14227. # Flag to hardcode \$libdir into a binary during linking.
  14228. # This must work even if \$libdir does not exist
  14229. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14230. # Whether we need a single "-rpath" flag with a separated argument.
  14231. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14232. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14233. # DIR into the resulting binary.
  14234. hardcode_direct=$hardcode_direct
  14235. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14236. # DIR into the resulting binary and the resulting library dependency is
  14237. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14238. # library is relocated.
  14239. hardcode_direct_absolute=$hardcode_direct_absolute
  14240. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14241. # into the resulting binary.
  14242. hardcode_minus_L=$hardcode_minus_L
  14243. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14244. # into the resulting binary.
  14245. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14246. # Set to "yes" if building a shared library automatically hardcodes DIR
  14247. # into the library and all subsequent libraries and executables linked
  14248. # against it.
  14249. hardcode_automatic=$hardcode_automatic
  14250. # Set to yes if linker adds runtime paths of dependent libraries
  14251. # to runtime path list.
  14252. inherit_rpath=$inherit_rpath
  14253. # Whether libtool must link a program against all its dependency libraries.
  14254. link_all_deplibs=$link_all_deplibs
  14255. # Set to "yes" if exported symbols are required.
  14256. always_export_symbols=$always_export_symbols
  14257. # The commands to list exported symbols.
  14258. export_symbols_cmds=$lt_export_symbols_cmds
  14259. # Symbols that should not be listed in the preloaded symbols.
  14260. exclude_expsyms=$lt_exclude_expsyms
  14261. # Symbols that must always be exported.
  14262. include_expsyms=$lt_include_expsyms
  14263. # Commands necessary for linking programs (against libraries) with templates.
  14264. prelink_cmds=$lt_prelink_cmds
  14265. # Commands necessary for finishing linking programs.
  14266. postlink_cmds=$lt_postlink_cmds
  14267. # Specify filename containing input files.
  14268. file_list_spec=$lt_file_list_spec
  14269. # How to hardcode a shared library path into an executable.
  14270. hardcode_action=$hardcode_action
  14271. # ### END LIBTOOL CONFIG
  14272. _LT_EOF
  14273. case $host_os in
  14274. aix3*)
  14275. cat <<\_LT_EOF >> "$cfgfile"
  14276. # AIX sometimes has problems with the GCC collect2 program. For some
  14277. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14278. # vanish in a puff of smoke.
  14279. if test "X${COLLECT_NAMES+set}" != Xset; then
  14280. COLLECT_NAMES=
  14281. export COLLECT_NAMES
  14282. fi
  14283. _LT_EOF
  14284. ;;
  14285. esac
  14286. ltmain="$ac_aux_dir/ltmain.sh"
  14287. # We use sed instead of cat because bash on DJGPP gets confused if
  14288. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14289. # text mode, it properly converts lines to CR/LF. This bash problem
  14290. # is reportedly fixed, but why not run on old versions too?
  14291. sed '$q' "$ltmain" >> "$cfgfile" \
  14292. || (rm -f "$cfgfile"; exit 1)
  14293. if test x"$xsi_shell" = xyes; then
  14294. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  14295. func_dirname ()\
  14296. {\
  14297. \ case ${1} in\
  14298. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  14299. \ * ) func_dirname_result="${3}" ;;\
  14300. \ esac\
  14301. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  14302. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14303. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14304. test 0 -eq $? || _lt_function_replace_fail=:
  14305. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  14306. func_basename ()\
  14307. {\
  14308. \ func_basename_result="${1##*/}"\
  14309. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  14310. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14311. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14312. test 0 -eq $? || _lt_function_replace_fail=:
  14313. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  14314. func_dirname_and_basename ()\
  14315. {\
  14316. \ case ${1} in\
  14317. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  14318. \ * ) func_dirname_result="${3}" ;;\
  14319. \ esac\
  14320. \ func_basename_result="${1##*/}"\
  14321. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  14322. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14323. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14324. test 0 -eq $? || _lt_function_replace_fail=:
  14325. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  14326. func_stripname ()\
  14327. {\
  14328. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  14329. \ # positional parameters, so assign one to ordinary parameter first.\
  14330. \ func_stripname_result=${3}\
  14331. \ func_stripname_result=${func_stripname_result#"${1}"}\
  14332. \ func_stripname_result=${func_stripname_result%"${2}"}\
  14333. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  14334. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14335. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14336. test 0 -eq $? || _lt_function_replace_fail=:
  14337. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  14338. func_split_long_opt ()\
  14339. {\
  14340. \ func_split_long_opt_name=${1%%=*}\
  14341. \ func_split_long_opt_arg=${1#*=}\
  14342. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  14343. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14344. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14345. test 0 -eq $? || _lt_function_replace_fail=:
  14346. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  14347. func_split_short_opt ()\
  14348. {\
  14349. \ func_split_short_opt_arg=${1#??}\
  14350. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  14351. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  14352. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14353. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14354. test 0 -eq $? || _lt_function_replace_fail=:
  14355. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  14356. func_lo2o ()\
  14357. {\
  14358. \ case ${1} in\
  14359. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  14360. \ *) func_lo2o_result=${1} ;;\
  14361. \ esac\
  14362. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  14363. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14364. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14365. test 0 -eq $? || _lt_function_replace_fail=:
  14366. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  14367. func_xform ()\
  14368. {\
  14369. func_xform_result=${1%.*}.lo\
  14370. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  14371. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14372. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14373. test 0 -eq $? || _lt_function_replace_fail=:
  14374. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  14375. func_arith ()\
  14376. {\
  14377. func_arith_result=$(( $* ))\
  14378. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  14379. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14380. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14381. test 0 -eq $? || _lt_function_replace_fail=:
  14382. sed -e '/^func_len ()$/,/^} # func_len /c\
  14383. func_len ()\
  14384. {\
  14385. func_len_result=${#1}\
  14386. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  14387. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14388. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14389. test 0 -eq $? || _lt_function_replace_fail=:
  14390. fi
  14391. if test x"$lt_shell_append" = xyes; then
  14392. sed -e '/^func_append ()$/,/^} # func_append /c\
  14393. func_append ()\
  14394. {\
  14395. eval "${1}+=\\${2}"\
  14396. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  14397. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14398. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14399. test 0 -eq $? || _lt_function_replace_fail=:
  14400. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  14401. func_append_quoted ()\
  14402. {\
  14403. \ func_quote_for_eval "${2}"\
  14404. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  14405. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  14406. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14407. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14408. test 0 -eq $? || _lt_function_replace_fail=:
  14409. # Save a `func_append' function call where possible by direct use of '+='
  14410. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  14411. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14412. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14413. test 0 -eq $? || _lt_function_replace_fail=:
  14414. else
  14415. # Save a `func_append' function call even when '+=' is not available
  14416. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  14417. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14418. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14419. test 0 -eq $? || _lt_function_replace_fail=:
  14420. fi
  14421. if test x"$_lt_function_replace_fail" = x":"; then
  14422. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  14423. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  14424. fi
  14425. mv -f "$cfgfile" "$ofile" ||
  14426. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14427. chmod +x "$ofile"
  14428. ;;
  14429. esac
  14430. done # for ac_tag
  14431. as_fn_exit 0
  14432. _ACEOF
  14433. ac_clean_files=$ac_clean_files_save
  14434. test $ac_write_fail = 0 ||
  14435. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14436. # configure is writing to config.log, and then calls config.status.
  14437. # config.status does its own redirection, appending to config.log.
  14438. # Unfortunately, on DOS this fails, as config.log is still kept open
  14439. # by configure, so config.status won't be able to write to it; its
  14440. # output is simply discarded. So we exec the FD to /dev/null,
  14441. # effectively closing config.log, so it can be properly (re)opened and
  14442. # appended to by config.status. When coming back to configure, we
  14443. # need to make the FD available again.
  14444. if test "$no_create" != yes; then
  14445. ac_cs_success=:
  14446. ac_config_status_args=
  14447. test "$silent" = yes &&
  14448. ac_config_status_args="$ac_config_status_args --quiet"
  14449. exec 5>/dev/null
  14450. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14451. exec 5>>config.log
  14452. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14453. # would make configure fail if this is the last instruction.
  14454. $ac_cs_success || as_fn_exit 1
  14455. fi
  14456. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14458. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14459. fi