1
0

configure 484 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for libjpeg 7.0.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  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. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  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. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME='libjpeg'
  647. PACKAGE_TARNAME='libjpeg'
  648. PACKAGE_VERSION='7.0'
  649. PACKAGE_STRING='libjpeg 7.0'
  650. PACKAGE_BUGREPORT=''
  651. # Factoring default headers for most tests.
  652. ac_includes_default="\
  653. #include <stdio.h>
  654. #ifdef HAVE_SYS_TYPES_H
  655. # include <sys/types.h>
  656. #endif
  657. #ifdef HAVE_SYS_STAT_H
  658. # include <sys/stat.h>
  659. #endif
  660. #ifdef STDC_HEADERS
  661. # include <stdlib.h>
  662. # include <stddef.h>
  663. #else
  664. # ifdef HAVE_STDLIB_H
  665. # include <stdlib.h>
  666. # endif
  667. #endif
  668. #ifdef HAVE_STRING_H
  669. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  670. # include <memory.h>
  671. # endif
  672. # include <string.h>
  673. #endif
  674. #ifdef HAVE_STRINGS_H
  675. # include <strings.h>
  676. #endif
  677. #ifdef HAVE_INTTYPES_H
  678. # include <inttypes.h>
  679. #endif
  680. #ifdef HAVE_STDINT_H
  681. # include <stdint.h>
  682. #endif
  683. #ifdef HAVE_UNISTD_H
  684. # include <unistd.h>
  685. #endif"
  686. ac_subst_vars='am__EXEEXT_FALSE
  687. am__EXEEXT_TRUE
  688. LTLIBOBJS
  689. LIBOBJS
  690. JPEG_LIB_VERSION
  691. MEMORYMGR
  692. OTOOL64
  693. OTOOL
  694. LIPO
  695. NMEDIT
  696. DSYMUTIL
  697. lt_ECHO
  698. RANLIB
  699. AR
  700. NM
  701. ac_ct_DUMPBIN
  702. DUMPBIN
  703. LD
  704. FGREP
  705. SED
  706. LIBTOOL
  707. OBJDUMP
  708. DLLTOOL
  709. AS
  710. HAVE_LD_VERSION_SCRIPT_FALSE
  711. HAVE_LD_VERSION_SCRIPT_TRUE
  712. LN_S
  713. MAINT
  714. MAINTAINER_MODE_FALSE
  715. MAINTAINER_MODE_TRUE
  716. ANSI2KNR
  717. U
  718. EGREP
  719. GREP
  720. CPP
  721. am__fastdepCC_FALSE
  722. am__fastdepCC_TRUE
  723. CCDEPMODE
  724. AMDEPBACKSLASH
  725. AMDEP_FALSE
  726. AMDEP_TRUE
  727. am__quote
  728. am__include
  729. DEPDIR
  730. OBJEXT
  731. EXEEXT
  732. ac_ct_CC
  733. CPPFLAGS
  734. LDFLAGS
  735. CFLAGS
  736. CC
  737. AM_BACKSLASH
  738. AM_DEFAULT_VERBOSITY
  739. am__untar
  740. am__tar
  741. AMTAR
  742. am__leading_dot
  743. SET_MAKE
  744. AWK
  745. mkdir_p
  746. MKDIR_P
  747. INSTALL_STRIP_PROGRAM
  748. STRIP
  749. install_sh
  750. MAKEINFO
  751. AUTOHEADER
  752. AUTOMAKE
  753. AUTOCONF
  754. ACLOCAL
  755. VERSION
  756. PACKAGE
  757. CYGPATH_W
  758. am__isrc
  759. INSTALL_DATA
  760. INSTALL_SCRIPT
  761. INSTALL_PROGRAM
  762. target_os
  763. target_vendor
  764. target_cpu
  765. target
  766. host_os
  767. host_vendor
  768. host_cpu
  769. host
  770. build_os
  771. build_vendor
  772. build_cpu
  773. build
  774. target_alias
  775. host_alias
  776. build_alias
  777. LIBS
  778. ECHO_T
  779. ECHO_N
  780. ECHO_C
  781. DEFS
  782. mandir
  783. localedir
  784. libdir
  785. psdir
  786. pdfdir
  787. dvidir
  788. htmldir
  789. infodir
  790. docdir
  791. oldincludedir
  792. includedir
  793. localstatedir
  794. sharedstatedir
  795. sysconfdir
  796. datadir
  797. datarootdir
  798. libexecdir
  799. sbindir
  800. bindir
  801. program_transform_name
  802. prefix
  803. exec_prefix
  804. PACKAGE_BUGREPORT
  805. PACKAGE_STRING
  806. PACKAGE_VERSION
  807. PACKAGE_TARNAME
  808. PACKAGE_NAME
  809. PATH_SEPARATOR
  810. SHELL'
  811. ac_subst_files=''
  812. ac_user_opts='
  813. enable_option_checking
  814. enable_silent_rules
  815. enable_dependency_tracking
  816. enable_maintainer_mode
  817. enable_ld_version_script
  818. enable_shared
  819. enable_static
  820. with_pic
  821. enable_fast_install
  822. with_gnu_ld
  823. enable_libtool_lock
  824. enable_maxmem
  825. '
  826. ac_precious_vars='build_alias
  827. host_alias
  828. target_alias
  829. CC
  830. CFLAGS
  831. LDFLAGS
  832. LIBS
  833. CPPFLAGS
  834. CPP'
  835. # Initialize some variables set by options.
  836. ac_init_help=
  837. ac_init_version=false
  838. ac_unrecognized_opts=
  839. ac_unrecognized_sep=
  840. # The variables have the same names as the options, with
  841. # dashes changed to underlines.
  842. cache_file=/dev/null
  843. exec_prefix=NONE
  844. no_create=
  845. no_recursion=
  846. prefix=NONE
  847. program_prefix=NONE
  848. program_suffix=NONE
  849. program_transform_name=s,x,x,
  850. silent=
  851. site=
  852. srcdir=
  853. verbose=
  854. x_includes=NONE
  855. x_libraries=NONE
  856. # Installation directory options.
  857. # These are left unexpanded so users can "make install exec_prefix=/foo"
  858. # and all the variables that are supposed to be based on exec_prefix
  859. # by default will actually change.
  860. # Use braces instead of parens because sh, perl, etc. also accept them.
  861. # (The list follows the same order as the GNU Coding Standards.)
  862. bindir='${exec_prefix}/bin'
  863. sbindir='${exec_prefix}/sbin'
  864. libexecdir='${exec_prefix}/libexec'
  865. datarootdir='${prefix}/share'
  866. datadir='${datarootdir}'
  867. sysconfdir='${prefix}/etc'
  868. sharedstatedir='${prefix}/com'
  869. localstatedir='${prefix}/var'
  870. includedir='${prefix}/include'
  871. oldincludedir='/usr/include'
  872. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  873. infodir='${datarootdir}/info'
  874. htmldir='${docdir}'
  875. dvidir='${docdir}'
  876. pdfdir='${docdir}'
  877. psdir='${docdir}'
  878. libdir='${exec_prefix}/lib'
  879. localedir='${datarootdir}/locale'
  880. mandir='${datarootdir}/man'
  881. ac_prev=
  882. ac_dashdash=
  883. for ac_option
  884. do
  885. # If the previous option needs an argument, assign it.
  886. if test -n "$ac_prev"; then
  887. eval $ac_prev=\$ac_option
  888. ac_prev=
  889. continue
  890. fi
  891. case $ac_option in
  892. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  893. *) ac_optarg=yes ;;
  894. esac
  895. # Accept the important Cygnus configure options, so we can diagnose typos.
  896. case $ac_dashdash$ac_option in
  897. --)
  898. ac_dashdash=yes ;;
  899. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  900. ac_prev=bindir ;;
  901. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  902. bindir=$ac_optarg ;;
  903. -build | --build | --buil | --bui | --bu)
  904. ac_prev=build_alias ;;
  905. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  906. build_alias=$ac_optarg ;;
  907. -cache-file | --cache-file | --cache-fil | --cache-fi \
  908. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  909. ac_prev=cache_file ;;
  910. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  911. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  912. cache_file=$ac_optarg ;;
  913. --config-cache | -C)
  914. cache_file=config.cache ;;
  915. -datadir | --datadir | --datadi | --datad)
  916. ac_prev=datadir ;;
  917. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  918. datadir=$ac_optarg ;;
  919. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  920. | --dataroo | --dataro | --datar)
  921. ac_prev=datarootdir ;;
  922. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  923. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  924. datarootdir=$ac_optarg ;;
  925. -disable-* | --disable-*)
  926. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  927. # Reject names that are not valid shell variable names.
  928. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  929. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  930. { (exit 1); exit 1; }; }
  931. ac_useropt_orig=$ac_useropt
  932. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  933. case $ac_user_opts in
  934. *"
  935. "enable_$ac_useropt"
  936. "*) ;;
  937. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  938. ac_unrecognized_sep=', ';;
  939. esac
  940. eval enable_$ac_useropt=no ;;
  941. -docdir | --docdir | --docdi | --doc | --do)
  942. ac_prev=docdir ;;
  943. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  944. docdir=$ac_optarg ;;
  945. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  946. ac_prev=dvidir ;;
  947. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  948. dvidir=$ac_optarg ;;
  949. -enable-* | --enable-*)
  950. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  951. # Reject names that are not valid shell variable names.
  952. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  953. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  954. { (exit 1); exit 1; }; }
  955. ac_useropt_orig=$ac_useropt
  956. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  957. case $ac_user_opts in
  958. *"
  959. "enable_$ac_useropt"
  960. "*) ;;
  961. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  962. ac_unrecognized_sep=', ';;
  963. esac
  964. eval enable_$ac_useropt=\$ac_optarg ;;
  965. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  966. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  967. | --exec | --exe | --ex)
  968. ac_prev=exec_prefix ;;
  969. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  970. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  971. | --exec=* | --exe=* | --ex=*)
  972. exec_prefix=$ac_optarg ;;
  973. -gas | --gas | --ga | --g)
  974. # Obsolete; use --with-gas.
  975. with_gas=yes ;;
  976. -help | --help | --hel | --he | -h)
  977. ac_init_help=long ;;
  978. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  979. ac_init_help=recursive ;;
  980. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  981. ac_init_help=short ;;
  982. -host | --host | --hos | --ho)
  983. ac_prev=host_alias ;;
  984. -host=* | --host=* | --hos=* | --ho=*)
  985. host_alias=$ac_optarg ;;
  986. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  987. ac_prev=htmldir ;;
  988. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  989. | --ht=*)
  990. htmldir=$ac_optarg ;;
  991. -includedir | --includedir | --includedi | --included | --include \
  992. | --includ | --inclu | --incl | --inc)
  993. ac_prev=includedir ;;
  994. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  995. | --includ=* | --inclu=* | --incl=* | --inc=*)
  996. includedir=$ac_optarg ;;
  997. -infodir | --infodir | --infodi | --infod | --info | --inf)
  998. ac_prev=infodir ;;
  999. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1000. infodir=$ac_optarg ;;
  1001. -libdir | --libdir | --libdi | --libd)
  1002. ac_prev=libdir ;;
  1003. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1004. libdir=$ac_optarg ;;
  1005. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1006. | --libexe | --libex | --libe)
  1007. ac_prev=libexecdir ;;
  1008. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1009. | --libexe=* | --libex=* | --libe=*)
  1010. libexecdir=$ac_optarg ;;
  1011. -localedir | --localedir | --localedi | --localed | --locale)
  1012. ac_prev=localedir ;;
  1013. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1014. localedir=$ac_optarg ;;
  1015. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1016. | --localstate | --localstat | --localsta | --localst | --locals)
  1017. ac_prev=localstatedir ;;
  1018. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1019. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1020. localstatedir=$ac_optarg ;;
  1021. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1022. ac_prev=mandir ;;
  1023. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1024. mandir=$ac_optarg ;;
  1025. -nfp | --nfp | --nf)
  1026. # Obsolete; use --without-fp.
  1027. with_fp=no ;;
  1028. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1029. | --no-cr | --no-c | -n)
  1030. no_create=yes ;;
  1031. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1032. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1033. no_recursion=yes ;;
  1034. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1035. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1036. | --oldin | --oldi | --old | --ol | --o)
  1037. ac_prev=oldincludedir ;;
  1038. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1039. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1040. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1041. oldincludedir=$ac_optarg ;;
  1042. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1043. ac_prev=prefix ;;
  1044. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1045. prefix=$ac_optarg ;;
  1046. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1047. | --program-pre | --program-pr | --program-p)
  1048. ac_prev=program_prefix ;;
  1049. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1050. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1051. program_prefix=$ac_optarg ;;
  1052. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1053. | --program-suf | --program-su | --program-s)
  1054. ac_prev=program_suffix ;;
  1055. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1056. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1057. program_suffix=$ac_optarg ;;
  1058. -program-transform-name | --program-transform-name \
  1059. | --program-transform-nam | --program-transform-na \
  1060. | --program-transform-n | --program-transform- \
  1061. | --program-transform | --program-transfor \
  1062. | --program-transfo | --program-transf \
  1063. | --program-trans | --program-tran \
  1064. | --progr-tra | --program-tr | --program-t)
  1065. ac_prev=program_transform_name ;;
  1066. -program-transform-name=* | --program-transform-name=* \
  1067. | --program-transform-nam=* | --program-transform-na=* \
  1068. | --program-transform-n=* | --program-transform-=* \
  1069. | --program-transform=* | --program-transfor=* \
  1070. | --program-transfo=* | --program-transf=* \
  1071. | --program-trans=* | --program-tran=* \
  1072. | --progr-tra=* | --program-tr=* | --program-t=*)
  1073. program_transform_name=$ac_optarg ;;
  1074. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1075. ac_prev=pdfdir ;;
  1076. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1077. pdfdir=$ac_optarg ;;
  1078. -psdir | --psdir | --psdi | --psd | --ps)
  1079. ac_prev=psdir ;;
  1080. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1081. psdir=$ac_optarg ;;
  1082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1083. | -silent | --silent | --silen | --sile | --sil)
  1084. silent=yes ;;
  1085. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1086. ac_prev=sbindir ;;
  1087. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1088. | --sbi=* | --sb=*)
  1089. sbindir=$ac_optarg ;;
  1090. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1091. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1092. | --sharedst | --shareds | --shared | --share | --shar \
  1093. | --sha | --sh)
  1094. ac_prev=sharedstatedir ;;
  1095. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1096. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1097. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1098. | --sha=* | --sh=*)
  1099. sharedstatedir=$ac_optarg ;;
  1100. -site | --site | --sit)
  1101. ac_prev=site ;;
  1102. -site=* | --site=* | --sit=*)
  1103. site=$ac_optarg ;;
  1104. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1105. ac_prev=srcdir ;;
  1106. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1107. srcdir=$ac_optarg ;;
  1108. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1109. | --syscon | --sysco | --sysc | --sys | --sy)
  1110. ac_prev=sysconfdir ;;
  1111. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1112. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1113. sysconfdir=$ac_optarg ;;
  1114. -target | --target | --targe | --targ | --tar | --ta | --t)
  1115. ac_prev=target_alias ;;
  1116. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1117. target_alias=$ac_optarg ;;
  1118. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1119. verbose=yes ;;
  1120. -version | --version | --versio | --versi | --vers | -V)
  1121. ac_init_version=: ;;
  1122. -with-* | --with-*)
  1123. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1124. # Reject names that are not valid shell variable names.
  1125. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1127. { (exit 1); exit 1; }; }
  1128. ac_useropt_orig=$ac_useropt
  1129. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1130. case $ac_user_opts in
  1131. *"
  1132. "with_$ac_useropt"
  1133. "*) ;;
  1134. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1135. ac_unrecognized_sep=', ';;
  1136. esac
  1137. eval with_$ac_useropt=\$ac_optarg ;;
  1138. -without-* | --without-*)
  1139. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1140. # Reject names that are not valid shell variable names.
  1141. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1142. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1143. { (exit 1); exit 1; }; }
  1144. ac_useropt_orig=$ac_useropt
  1145. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1146. case $ac_user_opts in
  1147. *"
  1148. "with_$ac_useropt"
  1149. "*) ;;
  1150. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1151. ac_unrecognized_sep=', ';;
  1152. esac
  1153. eval with_$ac_useropt=no ;;
  1154. --x)
  1155. # Obsolete; use --with-x.
  1156. with_x=yes ;;
  1157. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1158. | --x-incl | --x-inc | --x-in | --x-i)
  1159. ac_prev=x_includes ;;
  1160. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1161. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1162. x_includes=$ac_optarg ;;
  1163. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1164. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1165. ac_prev=x_libraries ;;
  1166. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1167. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1168. x_libraries=$ac_optarg ;;
  1169. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1170. Try \`$0 --help' for more information." >&2
  1171. { (exit 1); exit 1; }; }
  1172. ;;
  1173. *=*)
  1174. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1175. # Reject names that are not valid shell variable names.
  1176. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1177. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1178. { (exit 1); exit 1; }; }
  1179. eval $ac_envvar=\$ac_optarg
  1180. export $ac_envvar ;;
  1181. *)
  1182. # FIXME: should be removed in autoconf 3.0.
  1183. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1184. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1185. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1186. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1187. ;;
  1188. esac
  1189. done
  1190. if test -n "$ac_prev"; then
  1191. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1192. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1193. { (exit 1); exit 1; }; }
  1194. fi
  1195. if test -n "$ac_unrecognized_opts"; then
  1196. case $enable_option_checking in
  1197. no) ;;
  1198. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1199. { (exit 1); exit 1; }; } ;;
  1200. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1201. esac
  1202. fi
  1203. # Check all directory arguments for consistency.
  1204. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1205. datadir sysconfdir sharedstatedir localstatedir includedir \
  1206. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1207. libdir localedir mandir
  1208. do
  1209. eval ac_val=\$$ac_var
  1210. # Remove trailing slashes.
  1211. case $ac_val in
  1212. */ )
  1213. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1214. eval $ac_var=\$ac_val;;
  1215. esac
  1216. # Be sure to have absolute directory names.
  1217. case $ac_val in
  1218. [\\/$]* | ?:[\\/]* ) continue;;
  1219. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1220. esac
  1221. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1222. { (exit 1); exit 1; }; }
  1223. done
  1224. # There might be people who depend on the old broken behavior: `$host'
  1225. # used to hold the argument of --host etc.
  1226. # FIXME: To remove some day.
  1227. build=$build_alias
  1228. host=$host_alias
  1229. target=$target_alias
  1230. # FIXME: To remove some day.
  1231. if test "x$host_alias" != x; then
  1232. if test "x$build_alias" = x; then
  1233. cross_compiling=maybe
  1234. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1235. If a cross compiler is detected then cross compile mode will be used." >&2
  1236. elif test "x$build_alias" != "x$host_alias"; then
  1237. cross_compiling=yes
  1238. fi
  1239. fi
  1240. ac_tool_prefix=
  1241. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1242. test "$silent" = yes && exec 6>/dev/null
  1243. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1244. ac_ls_di=`ls -di .` &&
  1245. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1246. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1247. { (exit 1); exit 1; }; }
  1248. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1249. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1250. { (exit 1); exit 1; }; }
  1251. # Find the source files, if location was not specified.
  1252. if test -z "$srcdir"; then
  1253. ac_srcdir_defaulted=yes
  1254. # Try the directory containing this script, then the parent directory.
  1255. ac_confdir=`$as_dirname -- "$as_myself" ||
  1256. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1257. X"$as_myself" : 'X\(//\)[^/]' \| \
  1258. X"$as_myself" : 'X\(//\)$' \| \
  1259. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1260. $as_echo X"$as_myself" |
  1261. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\/\)[^/].*/{
  1266. s//\1/
  1267. q
  1268. }
  1269. /^X\(\/\/\)$/{
  1270. s//\1/
  1271. q
  1272. }
  1273. /^X\(\/\).*/{
  1274. s//\1/
  1275. q
  1276. }
  1277. s/.*/./; q'`
  1278. srcdir=$ac_confdir
  1279. if test ! -r "$srcdir/$ac_unique_file"; then
  1280. srcdir=..
  1281. fi
  1282. else
  1283. ac_srcdir_defaulted=no
  1284. fi
  1285. if test ! -r "$srcdir/$ac_unique_file"; then
  1286. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1287. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1288. { (exit 1); exit 1; }; }
  1289. fi
  1290. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1291. ac_abs_confdir=`(
  1292. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1293. { (exit 1); exit 1; }; }
  1294. pwd)`
  1295. # When building in place, set srcdir=.
  1296. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1297. srcdir=.
  1298. fi
  1299. # Remove unnecessary trailing slashes from srcdir.
  1300. # Double slashes in file names in object file debugging info
  1301. # mess up M-x gdb in Emacs.
  1302. case $srcdir in
  1303. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1304. esac
  1305. for ac_var in $ac_precious_vars; do
  1306. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1307. eval ac_env_${ac_var}_value=\$${ac_var}
  1308. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1309. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1310. done
  1311. #
  1312. # Report the --help message.
  1313. #
  1314. if test "$ac_init_help" = "long"; then
  1315. # Omit some internal or obsolete options to make the list less imposing.
  1316. # This message is too long to be a string in the A/UX 3.1 sh.
  1317. cat <<_ACEOF
  1318. \`configure' configures libjpeg 7.0 to adapt to many kinds of systems.
  1319. Usage: $0 [OPTION]... [VAR=VALUE]...
  1320. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1321. VAR=VALUE. See below for descriptions of some of the useful variables.
  1322. Defaults for the options are specified in brackets.
  1323. Configuration:
  1324. -h, --help display this help and exit
  1325. --help=short display options specific to this package
  1326. --help=recursive display the short help of all the included packages
  1327. -V, --version display version information and exit
  1328. -q, --quiet, --silent do not print \`checking...' messages
  1329. --cache-file=FILE cache test results in FILE [disabled]
  1330. -C, --config-cache alias for \`--cache-file=config.cache'
  1331. -n, --no-create do not create output files
  1332. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1333. Installation directories:
  1334. --prefix=PREFIX install architecture-independent files in PREFIX
  1335. [$ac_default_prefix]
  1336. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1337. [PREFIX]
  1338. By default, \`make install' will install all the files in
  1339. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1340. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1341. for instance \`--prefix=\$HOME'.
  1342. For better control, use the options below.
  1343. Fine tuning of the installation directories:
  1344. --bindir=DIR user executables [EPREFIX/bin]
  1345. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1346. --libexecdir=DIR program executables [EPREFIX/libexec]
  1347. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1348. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1349. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1350. --libdir=DIR object code libraries [EPREFIX/lib]
  1351. --includedir=DIR C header files [PREFIX/include]
  1352. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1353. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1354. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1355. --infodir=DIR info documentation [DATAROOTDIR/info]
  1356. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1357. --mandir=DIR man documentation [DATAROOTDIR/man]
  1358. --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
  1359. --htmldir=DIR html documentation [DOCDIR]
  1360. --dvidir=DIR dvi documentation [DOCDIR]
  1361. --pdfdir=DIR pdf documentation [DOCDIR]
  1362. --psdir=DIR ps documentation [DOCDIR]
  1363. _ACEOF
  1364. cat <<\_ACEOF
  1365. Program names:
  1366. --program-prefix=PREFIX prepend PREFIX to installed program names
  1367. --program-suffix=SUFFIX append SUFFIX to installed program names
  1368. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1369. System types:
  1370. --build=BUILD configure for building on BUILD [guessed]
  1371. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1372. --target=TARGET configure for building compilers for TARGET [HOST]
  1373. _ACEOF
  1374. fi
  1375. if test -n "$ac_init_help"; then
  1376. case $ac_init_help in
  1377. short | recursive ) echo "Configuration of libjpeg 7.0:";;
  1378. esac
  1379. cat <<\_ACEOF
  1380. Optional Features:
  1381. --disable-option-checking ignore unrecognized --enable/--with options
  1382. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1383. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1384. --enable-silent-rules less verbose build output (undo: `make V=1')
  1385. --disable-silent-rules verbose build output (undo: `make V=0')
  1386. --disable-dependency-tracking speeds up one-time build
  1387. --enable-dependency-tracking do not reject slow dependency extractors
  1388. --enable-maintainer-mode enable make rules and dependencies not useful
  1389. (and sometimes confusing) to the casual installer
  1390. --enable-ld-version-script
  1391. enable linker version script (default is enabled
  1392. when possible)
  1393. --enable-shared[=PKGS] build shared libraries [default=yes]
  1394. --enable-static[=PKGS] build static libraries [default=yes]
  1395. --enable-fast-install[=PKGS]
  1396. optimize for fast installation [default=yes]
  1397. --disable-libtool-lock avoid locking (might break parallel builds)
  1398. --enable-maxmem=N enable use of temp files, set max mem usage to N MB
  1399. Optional Packages:
  1400. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1401. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1402. --with-pic try to use only PIC/non-PIC objects [default=use
  1403. both]
  1404. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1405. Some influential environment variables:
  1406. CC C compiler command
  1407. CFLAGS C compiler flags
  1408. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1409. nonstandard directory <lib dir>
  1410. LIBS libraries to pass to the linker, e.g. -l<library>
  1411. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1412. you have headers in a nonstandard directory <include dir>
  1413. CPP C preprocessor
  1414. Use these variables to override the choices made by `configure' or to help
  1415. it to find libraries and programs with nonstandard names/locations.
  1416. _ACEOF
  1417. ac_status=$?
  1418. fi
  1419. if test "$ac_init_help" = "recursive"; then
  1420. # If there are subdirs, report their specific --help.
  1421. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1422. test -d "$ac_dir" ||
  1423. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1424. continue
  1425. ac_builddir=.
  1426. case "$ac_dir" in
  1427. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1428. *)
  1429. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1430. # A ".." for each directory in $ac_dir_suffix.
  1431. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1432. case $ac_top_builddir_sub in
  1433. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1434. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1435. esac ;;
  1436. esac
  1437. ac_abs_top_builddir=$ac_pwd
  1438. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1439. # for backward compatibility:
  1440. ac_top_builddir=$ac_top_build_prefix
  1441. case $srcdir in
  1442. .) # We are building in place.
  1443. ac_srcdir=.
  1444. ac_top_srcdir=$ac_top_builddir_sub
  1445. ac_abs_top_srcdir=$ac_pwd ;;
  1446. [\\/]* | ?:[\\/]* ) # Absolute name.
  1447. ac_srcdir=$srcdir$ac_dir_suffix;
  1448. ac_top_srcdir=$srcdir
  1449. ac_abs_top_srcdir=$srcdir ;;
  1450. *) # Relative name.
  1451. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1452. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1453. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1454. esac
  1455. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1456. cd "$ac_dir" || { ac_status=$?; continue; }
  1457. # Check for guested configure.
  1458. if test -f "$ac_srcdir/configure.gnu"; then
  1459. echo &&
  1460. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1461. elif test -f "$ac_srcdir/configure"; then
  1462. echo &&
  1463. $SHELL "$ac_srcdir/configure" --help=recursive
  1464. else
  1465. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1466. fi || ac_status=$?
  1467. cd "$ac_pwd" || { ac_status=$?; break; }
  1468. done
  1469. fi
  1470. test -n "$ac_init_help" && exit $ac_status
  1471. if $ac_init_version; then
  1472. cat <<\_ACEOF
  1473. libjpeg configure 7.0
  1474. generated by GNU Autoconf 2.63
  1475. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1476. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1477. This configure script is free software; the Free Software Foundation
  1478. gives unlimited permission to copy, distribute and modify it.
  1479. _ACEOF
  1480. exit
  1481. fi
  1482. cat >config.log <<_ACEOF
  1483. This file contains any messages produced by compilers while
  1484. running configure, to aid debugging if configure makes a mistake.
  1485. It was created by libjpeg $as_me 7.0, which was
  1486. generated by GNU Autoconf 2.63. Invocation command line was
  1487. $ $0 $@
  1488. _ACEOF
  1489. exec 5>>config.log
  1490. {
  1491. cat <<_ASUNAME
  1492. ## --------- ##
  1493. ## Platform. ##
  1494. ## --------- ##
  1495. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1496. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1497. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1498. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1499. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1500. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1501. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1502. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1503. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1504. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1505. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1506. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1507. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1508. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1509. _ASUNAME
  1510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1511. for as_dir in $PATH
  1512. do
  1513. IFS=$as_save_IFS
  1514. test -z "$as_dir" && as_dir=.
  1515. $as_echo "PATH: $as_dir"
  1516. done
  1517. IFS=$as_save_IFS
  1518. } >&5
  1519. cat >&5 <<_ACEOF
  1520. ## ----------- ##
  1521. ## Core tests. ##
  1522. ## ----------- ##
  1523. _ACEOF
  1524. # Keep a trace of the command line.
  1525. # Strip out --no-create and --no-recursion so they do not pile up.
  1526. # Strip out --silent because we don't want to record it for future runs.
  1527. # Also quote any args containing shell meta-characters.
  1528. # Make two passes to allow for proper duplicate-argument suppression.
  1529. ac_configure_args=
  1530. ac_configure_args0=
  1531. ac_configure_args1=
  1532. ac_must_keep_next=false
  1533. for ac_pass in 1 2
  1534. do
  1535. for ac_arg
  1536. do
  1537. case $ac_arg in
  1538. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1539. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1540. | -silent | --silent | --silen | --sile | --sil)
  1541. continue ;;
  1542. *\'*)
  1543. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1544. esac
  1545. case $ac_pass in
  1546. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1547. 2)
  1548. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1549. if test $ac_must_keep_next = true; then
  1550. ac_must_keep_next=false # Got value, back to normal.
  1551. else
  1552. case $ac_arg in
  1553. *=* | --config-cache | -C | -disable-* | --disable-* \
  1554. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1555. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1556. | -with-* | --with-* | -without-* | --without-* | --x)
  1557. case "$ac_configure_args0 " in
  1558. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1559. esac
  1560. ;;
  1561. -* ) ac_must_keep_next=true ;;
  1562. esac
  1563. fi
  1564. ac_configure_args="$ac_configure_args '$ac_arg'"
  1565. ;;
  1566. esac
  1567. done
  1568. done
  1569. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1570. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1571. # When interrupted or exit'd, cleanup temporary files, and complete
  1572. # config.log. We remove comments because anyway the quotes in there
  1573. # would cause problems or look ugly.
  1574. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1575. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1576. trap 'exit_status=$?
  1577. # Save into config.log some information that might help in debugging.
  1578. {
  1579. echo
  1580. cat <<\_ASBOX
  1581. ## ---------------- ##
  1582. ## Cache variables. ##
  1583. ## ---------------- ##
  1584. _ASBOX
  1585. echo
  1586. # The following way of writing the cache mishandles newlines in values,
  1587. (
  1588. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1589. eval ac_val=\$$ac_var
  1590. case $ac_val in #(
  1591. *${as_nl}*)
  1592. case $ac_var in #(
  1593. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1594. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1595. esac
  1596. case $ac_var in #(
  1597. _ | IFS | as_nl) ;; #(
  1598. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1599. *) $as_unset $ac_var ;;
  1600. esac ;;
  1601. esac
  1602. done
  1603. (set) 2>&1 |
  1604. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1605. *${as_nl}ac_space=\ *)
  1606. sed -n \
  1607. "s/'\''/'\''\\\\'\'''\''/g;
  1608. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1609. ;; #(
  1610. *)
  1611. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1612. ;;
  1613. esac |
  1614. sort
  1615. )
  1616. echo
  1617. cat <<\_ASBOX
  1618. ## ----------------- ##
  1619. ## Output variables. ##
  1620. ## ----------------- ##
  1621. _ASBOX
  1622. echo
  1623. for ac_var in $ac_subst_vars
  1624. do
  1625. eval ac_val=\$$ac_var
  1626. case $ac_val in
  1627. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1628. esac
  1629. $as_echo "$ac_var='\''$ac_val'\''"
  1630. done | sort
  1631. echo
  1632. if test -n "$ac_subst_files"; then
  1633. cat <<\_ASBOX
  1634. ## ------------------- ##
  1635. ## File substitutions. ##
  1636. ## ------------------- ##
  1637. _ASBOX
  1638. echo
  1639. for ac_var in $ac_subst_files
  1640. do
  1641. eval ac_val=\$$ac_var
  1642. case $ac_val in
  1643. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1644. esac
  1645. $as_echo "$ac_var='\''$ac_val'\''"
  1646. done | sort
  1647. echo
  1648. fi
  1649. if test -s confdefs.h; then
  1650. cat <<\_ASBOX
  1651. ## ----------- ##
  1652. ## confdefs.h. ##
  1653. ## ----------- ##
  1654. _ASBOX
  1655. echo
  1656. cat confdefs.h
  1657. echo
  1658. fi
  1659. test "$ac_signal" != 0 &&
  1660. $as_echo "$as_me: caught signal $ac_signal"
  1661. $as_echo "$as_me: exit $exit_status"
  1662. } >&5
  1663. rm -f core *.core core.conftest.* &&
  1664. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1665. exit $exit_status
  1666. ' 0
  1667. for ac_signal in 1 2 13 15; do
  1668. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1669. done
  1670. ac_signal=0
  1671. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1672. rm -f -r conftest* confdefs.h
  1673. # Predefined preprocessor variables.
  1674. cat >>confdefs.h <<_ACEOF
  1675. #define PACKAGE_NAME "$PACKAGE_NAME"
  1676. _ACEOF
  1677. cat >>confdefs.h <<_ACEOF
  1678. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1679. _ACEOF
  1680. cat >>confdefs.h <<_ACEOF
  1681. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1682. _ACEOF
  1683. cat >>confdefs.h <<_ACEOF
  1684. #define PACKAGE_STRING "$PACKAGE_STRING"
  1685. _ACEOF
  1686. cat >>confdefs.h <<_ACEOF
  1687. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1688. _ACEOF
  1689. # Let the site file select an alternate cache file if it wants to.
  1690. # Prefer an explicitly selected file to automatically selected ones.
  1691. ac_site_file1=NONE
  1692. ac_site_file2=NONE
  1693. if test -n "$CONFIG_SITE"; then
  1694. ac_site_file1=$CONFIG_SITE
  1695. elif test "x$prefix" != xNONE; then
  1696. ac_site_file1=$prefix/share/config.site
  1697. ac_site_file2=$prefix/etc/config.site
  1698. else
  1699. ac_site_file1=$ac_default_prefix/share/config.site
  1700. ac_site_file2=$ac_default_prefix/etc/config.site
  1701. fi
  1702. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1703. do
  1704. test "x$ac_site_file" = xNONE && continue
  1705. if test -r "$ac_site_file"; then
  1706. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1707. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1708. sed 's/^/| /' "$ac_site_file" >&5
  1709. . "$ac_site_file"
  1710. fi
  1711. done
  1712. if test -r "$cache_file"; then
  1713. # Some versions of bash will fail to source /dev/null (special
  1714. # files actually), so we avoid doing that.
  1715. if test -f "$cache_file"; then
  1716. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1717. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1718. case $cache_file in
  1719. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1720. *) . "./$cache_file";;
  1721. esac
  1722. fi
  1723. else
  1724. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1725. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1726. >$cache_file
  1727. fi
  1728. # Check that the precious variables saved in the cache have kept the same
  1729. # value.
  1730. ac_cache_corrupted=false
  1731. for ac_var in $ac_precious_vars; do
  1732. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1733. eval ac_new_set=\$ac_env_${ac_var}_set
  1734. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1735. eval ac_new_val=\$ac_env_${ac_var}_value
  1736. case $ac_old_set,$ac_new_set in
  1737. set,)
  1738. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1739. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1740. ac_cache_corrupted=: ;;
  1741. ,set)
  1742. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1743. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1744. ac_cache_corrupted=: ;;
  1745. ,);;
  1746. *)
  1747. if test "x$ac_old_val" != "x$ac_new_val"; then
  1748. # differences in whitespace do not lead to failure.
  1749. ac_old_val_w=`echo x $ac_old_val`
  1750. ac_new_val_w=`echo x $ac_new_val`
  1751. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1752. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1753. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1754. ac_cache_corrupted=:
  1755. else
  1756. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1757. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1758. eval $ac_var=\$ac_old_val
  1759. fi
  1760. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1761. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1762. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1763. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1764. fi;;
  1765. esac
  1766. # Pass precious variables to config.status.
  1767. if test "$ac_new_set" = set; then
  1768. case $ac_new_val in
  1769. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1770. *) ac_arg=$ac_var=$ac_new_val ;;
  1771. esac
  1772. case " $ac_configure_args " in
  1773. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1774. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1775. esac
  1776. fi
  1777. done
  1778. if $ac_cache_corrupted; then
  1779. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1780. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1781. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1782. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1783. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1784. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1785. { (exit 1); exit 1; }; }
  1786. fi
  1787. ac_ext=c
  1788. ac_cpp='$CPP $CPPFLAGS'
  1789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1792. # Directory where autotools helper scripts lives.
  1793. ac_aux_dir=
  1794. for ac_dir in . "$srcdir"/.; do
  1795. if test -f "$ac_dir/install-sh"; then
  1796. ac_aux_dir=$ac_dir
  1797. ac_install_sh="$ac_aux_dir/install-sh -c"
  1798. break
  1799. elif test -f "$ac_dir/install.sh"; then
  1800. ac_aux_dir=$ac_dir
  1801. ac_install_sh="$ac_aux_dir/install.sh -c"
  1802. break
  1803. elif test -f "$ac_dir/shtool"; then
  1804. ac_aux_dir=$ac_dir
  1805. ac_install_sh="$ac_aux_dir/shtool install -c"
  1806. break
  1807. fi
  1808. done
  1809. if test -z "$ac_aux_dir"; then
  1810. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
  1811. $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
  1812. { (exit 1); exit 1; }; }
  1813. fi
  1814. # These three variables are undocumented and unsupported,
  1815. # and are intended to be withdrawn in a future Autoconf release.
  1816. # They can cause serious problems if a builder's source tree is in a directory
  1817. # whose full name contains unusual characters.
  1818. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1819. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1820. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1821. # Generate configuration headers.
  1822. ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
  1823. # Hack: disable autoheader so that it doesn't overwrite our cfg template.
  1824. AUTOHEADER="echo autoheader ignored"
  1825. # Check system type
  1826. # Make sure we can run config.sub.
  1827. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1828. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1829. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1830. { (exit 1); exit 1; }; }
  1831. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1832. $as_echo_n "checking build system type... " >&6; }
  1833. if test "${ac_cv_build+set}" = set; then
  1834. $as_echo_n "(cached) " >&6
  1835. else
  1836. ac_build_alias=$build_alias
  1837. test "x$ac_build_alias" = x &&
  1838. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1839. test "x$ac_build_alias" = x &&
  1840. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1841. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1842. { (exit 1); exit 1; }; }
  1843. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1844. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1845. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1846. { (exit 1); exit 1; }; }
  1847. fi
  1848. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1849. $as_echo "$ac_cv_build" >&6; }
  1850. case $ac_cv_build in
  1851. *-*-*) ;;
  1852. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1853. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  1854. { (exit 1); exit 1; }; };;
  1855. esac
  1856. build=$ac_cv_build
  1857. ac_save_IFS=$IFS; IFS='-'
  1858. set x $ac_cv_build
  1859. shift
  1860. build_cpu=$1
  1861. build_vendor=$2
  1862. shift; shift
  1863. # Remember, the first character of IFS is used to create $*,
  1864. # except with old shells:
  1865. build_os=$*
  1866. IFS=$ac_save_IFS
  1867. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1868. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  1869. $as_echo_n "checking host system type... " >&6; }
  1870. if test "${ac_cv_host+set}" = set; then
  1871. $as_echo_n "(cached) " >&6
  1872. else
  1873. if test "x$host_alias" = x; then
  1874. ac_cv_host=$ac_cv_build
  1875. else
  1876. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1877. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1878. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1879. { (exit 1); exit 1; }; }
  1880. fi
  1881. fi
  1882. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1883. $as_echo "$ac_cv_host" >&6; }
  1884. case $ac_cv_host in
  1885. *-*-*) ;;
  1886. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1887. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  1888. { (exit 1); exit 1; }; };;
  1889. esac
  1890. host=$ac_cv_host
  1891. ac_save_IFS=$IFS; IFS='-'
  1892. set x $ac_cv_host
  1893. shift
  1894. host_cpu=$1
  1895. host_vendor=$2
  1896. shift; shift
  1897. # Remember, the first character of IFS is used to create $*,
  1898. # except with old shells:
  1899. host_os=$*
  1900. IFS=$ac_save_IFS
  1901. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1902. { $as_echo "$as_me:$LINENO: checking target system type" >&5
  1903. $as_echo_n "checking target system type... " >&6; }
  1904. if test "${ac_cv_target+set}" = set; then
  1905. $as_echo_n "(cached) " >&6
  1906. else
  1907. if test "x$target_alias" = x; then
  1908. ac_cv_target=$ac_cv_host
  1909. else
  1910. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1911. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1912. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1913. { (exit 1); exit 1; }; }
  1914. fi
  1915. fi
  1916. { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1917. $as_echo "$ac_cv_target" >&6; }
  1918. case $ac_cv_target in
  1919. *-*-*) ;;
  1920. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1921. $as_echo "$as_me: error: invalid value of canonical target" >&2;}
  1922. { (exit 1); exit 1; }; };;
  1923. esac
  1924. target=$ac_cv_target
  1925. ac_save_IFS=$IFS; IFS='-'
  1926. set x $ac_cv_target
  1927. shift
  1928. target_cpu=$1
  1929. target_vendor=$2
  1930. shift; shift
  1931. # Remember, the first character of IFS is used to create $*,
  1932. # except with old shells:
  1933. target_os=$*
  1934. IFS=$ac_save_IFS
  1935. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1936. # The aliases save the names the user supplied, while $host etc.
  1937. # will get canonicalized.
  1938. test -n "$target_alias" &&
  1939. test "$program_prefix$program_suffix$program_transform_name" = \
  1940. NONENONEs,x,x, &&
  1941. program_prefix=${target_alias}-
  1942. # Initialize Automake
  1943. # Don't require all the GNU mandated files
  1944. am__api_version='1.11'
  1945. # Find a good install program. We prefer a C program (faster),
  1946. # so one script is as good as another. But avoid the broken or
  1947. # incompatible versions:
  1948. # SysV /etc/install, /usr/sbin/install
  1949. # SunOS /usr/etc/install
  1950. # IRIX /sbin/install
  1951. # AIX /bin/install
  1952. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1953. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1954. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1955. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1956. # OS/2's system install, which has a completely different semantic
  1957. # ./install, which can be erroneously created by make from ./install.sh.
  1958. # Reject install programs that cannot install multiple files.
  1959. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1960. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1961. if test -z "$INSTALL"; then
  1962. if test "${ac_cv_path_install+set}" = set; then
  1963. $as_echo_n "(cached) " >&6
  1964. else
  1965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1966. for as_dir in $PATH
  1967. do
  1968. IFS=$as_save_IFS
  1969. test -z "$as_dir" && as_dir=.
  1970. # Account for people who put trailing slashes in PATH elements.
  1971. case $as_dir/ in
  1972. ./ | .// | /cC/* | \
  1973. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1974. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1975. /usr/ucb/* ) ;;
  1976. *)
  1977. # OSF1 and SCO ODT 3.0 have their own names for install.
  1978. # Don't use installbsd from OSF since it installs stuff as root
  1979. # by default.
  1980. for ac_prog in ginstall scoinst install; do
  1981. for ac_exec_ext in '' $ac_executable_extensions; do
  1982. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1983. if test $ac_prog = install &&
  1984. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1985. # AIX install. It has an incompatible calling convention.
  1986. :
  1987. elif test $ac_prog = install &&
  1988. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1989. # program-specific install script used by HP pwplus--don't use.
  1990. :
  1991. else
  1992. rm -rf conftest.one conftest.two conftest.dir
  1993. echo one > conftest.one
  1994. echo two > conftest.two
  1995. mkdir conftest.dir
  1996. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1997. test -s conftest.one && test -s conftest.two &&
  1998. test -s conftest.dir/conftest.one &&
  1999. test -s conftest.dir/conftest.two
  2000. then
  2001. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2002. break 3
  2003. fi
  2004. fi
  2005. fi
  2006. done
  2007. done
  2008. ;;
  2009. esac
  2010. done
  2011. IFS=$as_save_IFS
  2012. rm -rf conftest.one conftest.two conftest.dir
  2013. fi
  2014. if test "${ac_cv_path_install+set}" = set; then
  2015. INSTALL=$ac_cv_path_install
  2016. else
  2017. # As a last resort, use the slow shell script. Don't cache a
  2018. # value for INSTALL within a source directory, because that will
  2019. # break other packages using the cache if that directory is
  2020. # removed, or if the value is a relative name.
  2021. INSTALL=$ac_install_sh
  2022. fi
  2023. fi
  2024. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2025. $as_echo "$INSTALL" >&6; }
  2026. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2027. # It thinks the first close brace ends the variable substitution.
  2028. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2029. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2030. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2031. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2032. $as_echo_n "checking whether build environment is sane... " >&6; }
  2033. # Just in case
  2034. sleep 1
  2035. echo timestamp > conftest.file
  2036. # Reject unsafe characters in $srcdir or the absolute working directory
  2037. # name. Accept space and tab only in the latter.
  2038. am_lf='
  2039. '
  2040. case `pwd` in
  2041. *[\\\"\#\$\&\'\`$am_lf]*)
  2042. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  2043. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  2044. { (exit 1); exit 1; }; };;
  2045. esac
  2046. case $srcdir in
  2047. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2048. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  2049. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  2050. { (exit 1); exit 1; }; };;
  2051. esac
  2052. # Do `set' in a subshell so we don't clobber the current shell's
  2053. # arguments. Must try -L first in case configure is actually a
  2054. # symlink; some systems play weird games with the mod time of symlinks
  2055. # (eg FreeBSD returns the mod time of the symlink's containing
  2056. # directory).
  2057. if (
  2058. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2059. if test "$*" = "X"; then
  2060. # -L didn't work.
  2061. set X `ls -t "$srcdir/configure" conftest.file`
  2062. fi
  2063. rm -f conftest.file
  2064. if test "$*" != "X $srcdir/configure conftest.file" \
  2065. && test "$*" != "X conftest.file $srcdir/configure"; then
  2066. # If neither matched, then we have a broken ls. This can happen
  2067. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2068. # broken ls alias from the environment. This has actually
  2069. # happened. Such a system could not be considered "sane".
  2070. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2071. alias in your environment" >&5
  2072. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2073. alias in your environment" >&2;}
  2074. { (exit 1); exit 1; }; }
  2075. fi
  2076. test "$2" = conftest.file
  2077. )
  2078. then
  2079. # Ok.
  2080. :
  2081. else
  2082. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2083. Check your system clock" >&5
  2084. $as_echo "$as_me: error: newly created file is older than distributed files!
  2085. Check your system clock" >&2;}
  2086. { (exit 1); exit 1; }; }
  2087. fi
  2088. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2089. $as_echo "yes" >&6; }
  2090. test "$program_prefix" != NONE &&
  2091. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2092. # Use a double $ so make ignores it.
  2093. test "$program_suffix" != NONE &&
  2094. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2095. # Double any \ or $.
  2096. # By default was `s,x,x', remove it if useless.
  2097. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2098. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2099. # expand $ac_aux_dir to an absolute path
  2100. am_aux_dir=`cd $ac_aux_dir && pwd`
  2101. if test x"${MISSING+set}" != xset; then
  2102. case $am_aux_dir in
  2103. *\ * | *\ *)
  2104. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2105. *)
  2106. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2107. esac
  2108. fi
  2109. # Use eval to expand $SHELL
  2110. if eval "$MISSING --run true"; then
  2111. am_missing_run="$MISSING --run "
  2112. else
  2113. am_missing_run=
  2114. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2115. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2116. fi
  2117. if test x"${install_sh}" != xset; then
  2118. case $am_aux_dir in
  2119. *\ * | *\ *)
  2120. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2121. *)
  2122. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2123. esac
  2124. fi
  2125. # Installed binaries are usually stripped using `strip' when the user
  2126. # run `make install-strip'. However `strip' might not be the right
  2127. # tool to use in cross-compilation environments, therefore Automake
  2128. # will honor the `STRIP' environment variable to overrule this program.
  2129. if test "$cross_compiling" != no; then
  2130. if test -n "$ac_tool_prefix"; then
  2131. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2132. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2133. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2134. $as_echo_n "checking for $ac_word... " >&6; }
  2135. if test "${ac_cv_prog_STRIP+set}" = set; then
  2136. $as_echo_n "(cached) " >&6
  2137. else
  2138. if test -n "$STRIP"; then
  2139. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2140. else
  2141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2142. for as_dir in $PATH
  2143. do
  2144. IFS=$as_save_IFS
  2145. test -z "$as_dir" && as_dir=.
  2146. for ac_exec_ext in '' $ac_executable_extensions; do
  2147. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2148. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2149. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2150. break 2
  2151. fi
  2152. done
  2153. done
  2154. IFS=$as_save_IFS
  2155. fi
  2156. fi
  2157. STRIP=$ac_cv_prog_STRIP
  2158. if test -n "$STRIP"; then
  2159. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2160. $as_echo "$STRIP" >&6; }
  2161. else
  2162. { $as_echo "$as_me:$LINENO: result: no" >&5
  2163. $as_echo "no" >&6; }
  2164. fi
  2165. fi
  2166. if test -z "$ac_cv_prog_STRIP"; then
  2167. ac_ct_STRIP=$STRIP
  2168. # Extract the first word of "strip", so it can be a program name with args.
  2169. set dummy strip; ac_word=$2
  2170. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2171. $as_echo_n "checking for $ac_word... " >&6; }
  2172. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2173. $as_echo_n "(cached) " >&6
  2174. else
  2175. if test -n "$ac_ct_STRIP"; then
  2176. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2177. else
  2178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2179. for as_dir in $PATH
  2180. do
  2181. IFS=$as_save_IFS
  2182. test -z "$as_dir" && as_dir=.
  2183. for ac_exec_ext in '' $ac_executable_extensions; do
  2184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2185. ac_cv_prog_ac_ct_STRIP="strip"
  2186. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2187. break 2
  2188. fi
  2189. done
  2190. done
  2191. IFS=$as_save_IFS
  2192. fi
  2193. fi
  2194. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2195. if test -n "$ac_ct_STRIP"; then
  2196. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2197. $as_echo "$ac_ct_STRIP" >&6; }
  2198. else
  2199. { $as_echo "$as_me:$LINENO: result: no" >&5
  2200. $as_echo "no" >&6; }
  2201. fi
  2202. if test "x$ac_ct_STRIP" = x; then
  2203. STRIP=":"
  2204. else
  2205. case $cross_compiling:$ac_tool_warned in
  2206. yes:)
  2207. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2208. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2209. ac_tool_warned=yes ;;
  2210. esac
  2211. STRIP=$ac_ct_STRIP
  2212. fi
  2213. else
  2214. STRIP="$ac_cv_prog_STRIP"
  2215. fi
  2216. fi
  2217. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2218. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2219. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2220. if test -z "$MKDIR_P"; then
  2221. if test "${ac_cv_path_mkdir+set}" = set; then
  2222. $as_echo_n "(cached) " >&6
  2223. else
  2224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2225. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2226. do
  2227. IFS=$as_save_IFS
  2228. test -z "$as_dir" && as_dir=.
  2229. for ac_prog in mkdir gmkdir; do
  2230. for ac_exec_ext in '' $ac_executable_extensions; do
  2231. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2232. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2233. 'mkdir (GNU coreutils) '* | \
  2234. 'mkdir (coreutils) '* | \
  2235. 'mkdir (fileutils) '4.1*)
  2236. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2237. break 3;;
  2238. esac
  2239. done
  2240. done
  2241. done
  2242. IFS=$as_save_IFS
  2243. fi
  2244. if test "${ac_cv_path_mkdir+set}" = set; then
  2245. MKDIR_P="$ac_cv_path_mkdir -p"
  2246. else
  2247. # As a last resort, use the slow shell script. Don't cache a
  2248. # value for MKDIR_P within a source directory, because that will
  2249. # break other packages using the cache if that directory is
  2250. # removed, or if the value is a relative name.
  2251. test -d ./--version && rmdir ./--version
  2252. MKDIR_P="$ac_install_sh -d"
  2253. fi
  2254. fi
  2255. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2256. $as_echo "$MKDIR_P" >&6; }
  2257. mkdir_p="$MKDIR_P"
  2258. case $mkdir_p in
  2259. [\\/$]* | ?:[\\/]*) ;;
  2260. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2261. esac
  2262. for ac_prog in gawk mawk nawk awk
  2263. do
  2264. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2265. set dummy $ac_prog; ac_word=$2
  2266. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2267. $as_echo_n "checking for $ac_word... " >&6; }
  2268. if test "${ac_cv_prog_AWK+set}" = set; then
  2269. $as_echo_n "(cached) " >&6
  2270. else
  2271. if test -n "$AWK"; then
  2272. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2273. else
  2274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2275. for as_dir in $PATH
  2276. do
  2277. IFS=$as_save_IFS
  2278. test -z "$as_dir" && as_dir=.
  2279. for ac_exec_ext in '' $ac_executable_extensions; do
  2280. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2281. ac_cv_prog_AWK="$ac_prog"
  2282. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2283. break 2
  2284. fi
  2285. done
  2286. done
  2287. IFS=$as_save_IFS
  2288. fi
  2289. fi
  2290. AWK=$ac_cv_prog_AWK
  2291. if test -n "$AWK"; then
  2292. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2293. $as_echo "$AWK" >&6; }
  2294. else
  2295. { $as_echo "$as_me:$LINENO: result: no" >&5
  2296. $as_echo "no" >&6; }
  2297. fi
  2298. test -n "$AWK" && break
  2299. done
  2300. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2301. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2302. set x ${MAKE-make}
  2303. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2304. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2305. $as_echo_n "(cached) " >&6
  2306. else
  2307. cat >conftest.make <<\_ACEOF
  2308. SHELL = /bin/sh
  2309. all:
  2310. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2311. _ACEOF
  2312. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2313. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2314. *@@@%%%=?*=@@@%%%*)
  2315. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2316. *)
  2317. eval ac_cv_prog_make_${ac_make}_set=no;;
  2318. esac
  2319. rm -f conftest.make
  2320. fi
  2321. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2322. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2323. $as_echo "yes" >&6; }
  2324. SET_MAKE=
  2325. else
  2326. { $as_echo "$as_me:$LINENO: result: no" >&5
  2327. $as_echo "no" >&6; }
  2328. SET_MAKE="MAKE=${MAKE-make}"
  2329. fi
  2330. rm -rf .tst 2>/dev/null
  2331. mkdir .tst 2>/dev/null
  2332. if test -d .tst; then
  2333. am__leading_dot=.
  2334. else
  2335. am__leading_dot=_
  2336. fi
  2337. rmdir .tst 2>/dev/null
  2338. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2339. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2340. # is not polluted with repeated "-I."
  2341. am__isrc=' -I$(srcdir)'
  2342. # test to see if srcdir already configured
  2343. if test -f $srcdir/config.status; then
  2344. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2345. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2346. { (exit 1); exit 1; }; }
  2347. fi
  2348. fi
  2349. # test whether we have cygpath
  2350. if test -z "$CYGPATH_W"; then
  2351. if (cygpath --version) >/dev/null 2>/dev/null; then
  2352. CYGPATH_W='cygpath -w'
  2353. else
  2354. CYGPATH_W=echo
  2355. fi
  2356. fi
  2357. # Define the identity of the package.
  2358. PACKAGE='libjpeg'
  2359. VERSION='7.0'
  2360. cat >>confdefs.h <<_ACEOF
  2361. #define PACKAGE "$PACKAGE"
  2362. _ACEOF
  2363. cat >>confdefs.h <<_ACEOF
  2364. #define VERSION "$VERSION"
  2365. _ACEOF
  2366. # Some tools Automake needs.
  2367. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2368. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2369. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2370. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2371. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2372. # We need awk for the "check" target. The system "awk" is bad on
  2373. # some platforms.
  2374. # Always define AMTAR for backward compatibility.
  2375. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2376. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2377. # Make --enable-silent-rules the default.
  2378. # To get verbose build output you may configure
  2379. # with --disable-silent-rules or use "make V=1".
  2380. # Check whether --enable-silent-rules was given.
  2381. if test "${enable_silent_rules+set}" = set; then
  2382. enableval=$enable_silent_rules;
  2383. fi
  2384. case $enable_silent_rules in
  2385. yes) AM_DEFAULT_VERBOSITY=0;;
  2386. no) AM_DEFAULT_VERBOSITY=1;;
  2387. *) AM_DEFAULT_VERBOSITY=0;;
  2388. esac
  2389. AM_BACKSLASH='\'
  2390. # This is required when using the de-ANSI-fication feature.
  2391. DEPDIR="${am__leading_dot}deps"
  2392. ac_config_commands="$ac_config_commands depfiles"
  2393. am_make=${MAKE-make}
  2394. cat > confinc << 'END'
  2395. am__doit:
  2396. @echo this is the am__doit target
  2397. .PHONY: am__doit
  2398. END
  2399. # If we don't find an include directive, just comment out the code.
  2400. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2401. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2402. am__include="#"
  2403. am__quote=
  2404. _am_result=none
  2405. # First try GNU make style include.
  2406. echo "include confinc" > confmf
  2407. # Ignore all kinds of additional output from `make'.
  2408. case `$am_make -s -f confmf 2> /dev/null` in #(
  2409. *the\ am__doit\ target*)
  2410. am__include=include
  2411. am__quote=
  2412. _am_result=GNU
  2413. ;;
  2414. esac
  2415. # Now try BSD make style include.
  2416. if test "$am__include" = "#"; then
  2417. echo '.include "confinc"' > confmf
  2418. case `$am_make -s -f confmf 2> /dev/null` in #(
  2419. *the\ am__doit\ target*)
  2420. am__include=.include
  2421. am__quote="\""
  2422. _am_result=BSD
  2423. ;;
  2424. esac
  2425. fi
  2426. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2427. $as_echo "$_am_result" >&6; }
  2428. rm -f confinc confmf
  2429. # Check whether --enable-dependency-tracking was given.
  2430. if test "${enable_dependency_tracking+set}" = set; then
  2431. enableval=$enable_dependency_tracking;
  2432. fi
  2433. if test "x$enable_dependency_tracking" != xno; then
  2434. am_depcomp="$ac_aux_dir/depcomp"
  2435. AMDEPBACKSLASH='\'
  2436. fi
  2437. if test "x$enable_dependency_tracking" != xno; then
  2438. AMDEP_TRUE=
  2439. AMDEP_FALSE='#'
  2440. else
  2441. AMDEP_TRUE='#'
  2442. AMDEP_FALSE=
  2443. fi
  2444. ac_ext=c
  2445. ac_cpp='$CPP $CPPFLAGS'
  2446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2449. if test -n "$ac_tool_prefix"; then
  2450. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2451. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2452. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2453. $as_echo_n "checking for $ac_word... " >&6; }
  2454. if test "${ac_cv_prog_CC+set}" = set; then
  2455. $as_echo_n "(cached) " >&6
  2456. else
  2457. if test -n "$CC"; then
  2458. ac_cv_prog_CC="$CC" # Let the user override the test.
  2459. else
  2460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2461. for as_dir in $PATH
  2462. do
  2463. IFS=$as_save_IFS
  2464. test -z "$as_dir" && as_dir=.
  2465. for ac_exec_ext in '' $ac_executable_extensions; do
  2466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2467. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2468. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2469. break 2
  2470. fi
  2471. done
  2472. done
  2473. IFS=$as_save_IFS
  2474. fi
  2475. fi
  2476. CC=$ac_cv_prog_CC
  2477. if test -n "$CC"; then
  2478. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2479. $as_echo "$CC" >&6; }
  2480. else
  2481. { $as_echo "$as_me:$LINENO: result: no" >&5
  2482. $as_echo "no" >&6; }
  2483. fi
  2484. fi
  2485. if test -z "$ac_cv_prog_CC"; then
  2486. ac_ct_CC=$CC
  2487. # Extract the first word of "gcc", so it can be a program name with args.
  2488. set dummy gcc; ac_word=$2
  2489. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2490. $as_echo_n "checking for $ac_word... " >&6; }
  2491. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2492. $as_echo_n "(cached) " >&6
  2493. else
  2494. if test -n "$ac_ct_CC"; then
  2495. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2496. else
  2497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2498. for as_dir in $PATH
  2499. do
  2500. IFS=$as_save_IFS
  2501. test -z "$as_dir" && as_dir=.
  2502. for ac_exec_ext in '' $ac_executable_extensions; do
  2503. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2504. ac_cv_prog_ac_ct_CC="gcc"
  2505. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2506. break 2
  2507. fi
  2508. done
  2509. done
  2510. IFS=$as_save_IFS
  2511. fi
  2512. fi
  2513. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2514. if test -n "$ac_ct_CC"; then
  2515. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2516. $as_echo "$ac_ct_CC" >&6; }
  2517. else
  2518. { $as_echo "$as_me:$LINENO: result: no" >&5
  2519. $as_echo "no" >&6; }
  2520. fi
  2521. if test "x$ac_ct_CC" = x; then
  2522. CC=""
  2523. else
  2524. case $cross_compiling:$ac_tool_warned in
  2525. yes:)
  2526. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2528. ac_tool_warned=yes ;;
  2529. esac
  2530. CC=$ac_ct_CC
  2531. fi
  2532. else
  2533. CC="$ac_cv_prog_CC"
  2534. fi
  2535. if test -z "$CC"; then
  2536. if test -n "$ac_tool_prefix"; then
  2537. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2538. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2539. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2540. $as_echo_n "checking for $ac_word... " >&6; }
  2541. if test "${ac_cv_prog_CC+set}" = set; then
  2542. $as_echo_n "(cached) " >&6
  2543. else
  2544. if test -n "$CC"; then
  2545. ac_cv_prog_CC="$CC" # Let the user override the test.
  2546. else
  2547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2548. for as_dir in $PATH
  2549. do
  2550. IFS=$as_save_IFS
  2551. test -z "$as_dir" && as_dir=.
  2552. for ac_exec_ext in '' $ac_executable_extensions; do
  2553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2554. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2555. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2556. break 2
  2557. fi
  2558. done
  2559. done
  2560. IFS=$as_save_IFS
  2561. fi
  2562. fi
  2563. CC=$ac_cv_prog_CC
  2564. if test -n "$CC"; then
  2565. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2566. $as_echo "$CC" >&6; }
  2567. else
  2568. { $as_echo "$as_me:$LINENO: result: no" >&5
  2569. $as_echo "no" >&6; }
  2570. fi
  2571. fi
  2572. fi
  2573. if test -z "$CC"; then
  2574. # Extract the first word of "cc", so it can be a program name with args.
  2575. set dummy cc; ac_word=$2
  2576. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2577. $as_echo_n "checking for $ac_word... " >&6; }
  2578. if test "${ac_cv_prog_CC+set}" = set; then
  2579. $as_echo_n "(cached) " >&6
  2580. else
  2581. if test -n "$CC"; then
  2582. ac_cv_prog_CC="$CC" # Let the user override the test.
  2583. else
  2584. ac_prog_rejected=no
  2585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2586. for as_dir in $PATH
  2587. do
  2588. IFS=$as_save_IFS
  2589. test -z "$as_dir" && as_dir=.
  2590. for ac_exec_ext in '' $ac_executable_extensions; do
  2591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2592. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2593. ac_prog_rejected=yes
  2594. continue
  2595. fi
  2596. ac_cv_prog_CC="cc"
  2597. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2598. break 2
  2599. fi
  2600. done
  2601. done
  2602. IFS=$as_save_IFS
  2603. if test $ac_prog_rejected = yes; then
  2604. # We found a bogon in the path, so make sure we never use it.
  2605. set dummy $ac_cv_prog_CC
  2606. shift
  2607. if test $# != 0; then
  2608. # We chose a different compiler from the bogus one.
  2609. # However, it has the same basename, so the bogon will be chosen
  2610. # first if we set CC to just the basename; use the full file name.
  2611. shift
  2612. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2613. fi
  2614. fi
  2615. fi
  2616. fi
  2617. CC=$ac_cv_prog_CC
  2618. if test -n "$CC"; then
  2619. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2620. $as_echo "$CC" >&6; }
  2621. else
  2622. { $as_echo "$as_me:$LINENO: result: no" >&5
  2623. $as_echo "no" >&6; }
  2624. fi
  2625. fi
  2626. if test -z "$CC"; then
  2627. if test -n "$ac_tool_prefix"; then
  2628. for ac_prog in cl.exe
  2629. do
  2630. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2631. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2632. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2633. $as_echo_n "checking for $ac_word... " >&6; }
  2634. if test "${ac_cv_prog_CC+set}" = set; then
  2635. $as_echo_n "(cached) " >&6
  2636. else
  2637. if test -n "$CC"; then
  2638. ac_cv_prog_CC="$CC" # Let the user override the test.
  2639. else
  2640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2641. for as_dir in $PATH
  2642. do
  2643. IFS=$as_save_IFS
  2644. test -z "$as_dir" && as_dir=.
  2645. for ac_exec_ext in '' $ac_executable_extensions; do
  2646. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2647. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2648. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2649. break 2
  2650. fi
  2651. done
  2652. done
  2653. IFS=$as_save_IFS
  2654. fi
  2655. fi
  2656. CC=$ac_cv_prog_CC
  2657. if test -n "$CC"; then
  2658. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2659. $as_echo "$CC" >&6; }
  2660. else
  2661. { $as_echo "$as_me:$LINENO: result: no" >&5
  2662. $as_echo "no" >&6; }
  2663. fi
  2664. test -n "$CC" && break
  2665. done
  2666. fi
  2667. if test -z "$CC"; then
  2668. ac_ct_CC=$CC
  2669. for ac_prog in cl.exe
  2670. do
  2671. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2672. set dummy $ac_prog; ac_word=$2
  2673. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2674. $as_echo_n "checking for $ac_word... " >&6; }
  2675. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2676. $as_echo_n "(cached) " >&6
  2677. else
  2678. if test -n "$ac_ct_CC"; then
  2679. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2680. else
  2681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2682. for as_dir in $PATH
  2683. do
  2684. IFS=$as_save_IFS
  2685. test -z "$as_dir" && as_dir=.
  2686. for ac_exec_ext in '' $ac_executable_extensions; do
  2687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2688. ac_cv_prog_ac_ct_CC="$ac_prog"
  2689. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2690. break 2
  2691. fi
  2692. done
  2693. done
  2694. IFS=$as_save_IFS
  2695. fi
  2696. fi
  2697. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2698. if test -n "$ac_ct_CC"; then
  2699. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2700. $as_echo "$ac_ct_CC" >&6; }
  2701. else
  2702. { $as_echo "$as_me:$LINENO: result: no" >&5
  2703. $as_echo "no" >&6; }
  2704. fi
  2705. test -n "$ac_ct_CC" && break
  2706. done
  2707. if test "x$ac_ct_CC" = x; then
  2708. CC=""
  2709. else
  2710. case $cross_compiling:$ac_tool_warned in
  2711. yes:)
  2712. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2714. ac_tool_warned=yes ;;
  2715. esac
  2716. CC=$ac_ct_CC
  2717. fi
  2718. fi
  2719. fi
  2720. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2721. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2722. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2723. See \`config.log' for more details." >&5
  2724. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2725. See \`config.log' for more details." >&2;}
  2726. { (exit 1); exit 1; }; }; }
  2727. # Provide some information about the compiler.
  2728. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2729. set X $ac_compile
  2730. ac_compiler=$2
  2731. { (ac_try="$ac_compiler --version >&5"
  2732. case "(($ac_try" in
  2733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2734. *) ac_try_echo=$ac_try;;
  2735. esac
  2736. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2737. $as_echo "$ac_try_echo") >&5
  2738. (eval "$ac_compiler --version >&5") 2>&5
  2739. ac_status=$?
  2740. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2741. (exit $ac_status); }
  2742. { (ac_try="$ac_compiler -v >&5"
  2743. case "(($ac_try" in
  2744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2745. *) ac_try_echo=$ac_try;;
  2746. esac
  2747. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2748. $as_echo "$ac_try_echo") >&5
  2749. (eval "$ac_compiler -v >&5") 2>&5
  2750. ac_status=$?
  2751. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2752. (exit $ac_status); }
  2753. { (ac_try="$ac_compiler -V >&5"
  2754. case "(($ac_try" in
  2755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2756. *) ac_try_echo=$ac_try;;
  2757. esac
  2758. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2759. $as_echo "$ac_try_echo") >&5
  2760. (eval "$ac_compiler -V >&5") 2>&5
  2761. ac_status=$?
  2762. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2763. (exit $ac_status); }
  2764. cat >conftest.$ac_ext <<_ACEOF
  2765. /* confdefs.h. */
  2766. _ACEOF
  2767. cat confdefs.h >>conftest.$ac_ext
  2768. cat >>conftest.$ac_ext <<_ACEOF
  2769. /* end confdefs.h. */
  2770. int
  2771. main ()
  2772. {
  2773. ;
  2774. return 0;
  2775. }
  2776. _ACEOF
  2777. ac_clean_files_save=$ac_clean_files
  2778. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2779. # Try to create an executable without -o first, disregard a.out.
  2780. # It will help us diagnose broken compilers, and finding out an intuition
  2781. # of exeext.
  2782. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2783. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2784. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2785. # The possible output files:
  2786. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2787. ac_rmfiles=
  2788. for ac_file in $ac_files
  2789. do
  2790. case $ac_file in
  2791. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2792. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2793. esac
  2794. done
  2795. rm -f $ac_rmfiles
  2796. if { (ac_try="$ac_link_default"
  2797. case "(($ac_try" in
  2798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2799. *) ac_try_echo=$ac_try;;
  2800. esac
  2801. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2802. $as_echo "$ac_try_echo") >&5
  2803. (eval "$ac_link_default") 2>&5
  2804. ac_status=$?
  2805. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2806. (exit $ac_status); }; then
  2807. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2808. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2809. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2810. # so that the user can short-circuit this test for compilers unknown to
  2811. # Autoconf.
  2812. for ac_file in $ac_files ''
  2813. do
  2814. test -f "$ac_file" || continue
  2815. case $ac_file in
  2816. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2817. ;;
  2818. [ab].out )
  2819. # We found the default executable, but exeext='' is most
  2820. # certainly right.
  2821. break;;
  2822. *.* )
  2823. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2824. then :; else
  2825. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2826. fi
  2827. # We set ac_cv_exeext here because the later test for it is not
  2828. # safe: cross compilers may not add the suffix if given an `-o'
  2829. # argument, so we may need to know it at that point already.
  2830. # Even if this section looks crufty: it has the advantage of
  2831. # actually working.
  2832. break;;
  2833. * )
  2834. break;;
  2835. esac
  2836. done
  2837. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2838. else
  2839. ac_file=''
  2840. fi
  2841. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2842. $as_echo "$ac_file" >&6; }
  2843. if test -z "$ac_file"; then
  2844. $as_echo "$as_me: failed program was:" >&5
  2845. sed 's/^/| /' conftest.$ac_ext >&5
  2846. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2847. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2848. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2849. See \`config.log' for more details." >&5
  2850. $as_echo "$as_me: error: C compiler cannot create executables
  2851. See \`config.log' for more details." >&2;}
  2852. { (exit 77); exit 77; }; }; }
  2853. fi
  2854. ac_exeext=$ac_cv_exeext
  2855. # Check that the compiler produces executables we can run. If not, either
  2856. # the compiler is broken, or we cross compile.
  2857. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2858. $as_echo_n "checking whether the C compiler works... " >&6; }
  2859. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2860. # If not cross compiling, check that we can run a simple program.
  2861. if test "$cross_compiling" != yes; then
  2862. if { ac_try='./$ac_file'
  2863. { (case "(($ac_try" in
  2864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2865. *) ac_try_echo=$ac_try;;
  2866. esac
  2867. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2868. $as_echo "$ac_try_echo") >&5
  2869. (eval "$ac_try") 2>&5
  2870. ac_status=$?
  2871. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); }; }; then
  2873. cross_compiling=no
  2874. else
  2875. if test "$cross_compiling" = maybe; then
  2876. cross_compiling=yes
  2877. else
  2878. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2879. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2880. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2881. If you meant to cross compile, use \`--host'.
  2882. See \`config.log' for more details." >&5
  2883. $as_echo "$as_me: error: cannot run C compiled programs.
  2884. If you meant to cross compile, use \`--host'.
  2885. See \`config.log' for more details." >&2;}
  2886. { (exit 1); exit 1; }; }; }
  2887. fi
  2888. fi
  2889. fi
  2890. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2891. $as_echo "yes" >&6; }
  2892. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2893. ac_clean_files=$ac_clean_files_save
  2894. # Check that the compiler produces executables we can run. If not, either
  2895. # the compiler is broken, or we cross compile.
  2896. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2897. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2898. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2899. $as_echo "$cross_compiling" >&6; }
  2900. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2901. $as_echo_n "checking for suffix of executables... " >&6; }
  2902. if { (ac_try="$ac_link"
  2903. case "(($ac_try" in
  2904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2905. *) ac_try_echo=$ac_try;;
  2906. esac
  2907. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2908. $as_echo "$ac_try_echo") >&5
  2909. (eval "$ac_link") 2>&5
  2910. ac_status=$?
  2911. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2912. (exit $ac_status); }; then
  2913. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2914. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2915. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2916. # `rm'.
  2917. for ac_file in conftest.exe conftest conftest.*; do
  2918. test -f "$ac_file" || continue
  2919. case $ac_file in
  2920. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2921. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2922. break;;
  2923. * ) break;;
  2924. esac
  2925. done
  2926. else
  2927. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2928. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2929. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2930. See \`config.log' for more details." >&5
  2931. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2932. See \`config.log' for more details." >&2;}
  2933. { (exit 1); exit 1; }; }; }
  2934. fi
  2935. rm -f conftest$ac_cv_exeext
  2936. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2937. $as_echo "$ac_cv_exeext" >&6; }
  2938. rm -f conftest.$ac_ext
  2939. EXEEXT=$ac_cv_exeext
  2940. ac_exeext=$EXEEXT
  2941. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2942. $as_echo_n "checking for suffix of object files... " >&6; }
  2943. if test "${ac_cv_objext+set}" = set; then
  2944. $as_echo_n "(cached) " >&6
  2945. else
  2946. cat >conftest.$ac_ext <<_ACEOF
  2947. /* confdefs.h. */
  2948. _ACEOF
  2949. cat confdefs.h >>conftest.$ac_ext
  2950. cat >>conftest.$ac_ext <<_ACEOF
  2951. /* end confdefs.h. */
  2952. int
  2953. main ()
  2954. {
  2955. ;
  2956. return 0;
  2957. }
  2958. _ACEOF
  2959. rm -f conftest.o conftest.obj
  2960. if { (ac_try="$ac_compile"
  2961. case "(($ac_try" in
  2962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2963. *) ac_try_echo=$ac_try;;
  2964. esac
  2965. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2966. $as_echo "$ac_try_echo") >&5
  2967. (eval "$ac_compile") 2>&5
  2968. ac_status=$?
  2969. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2970. (exit $ac_status); }; then
  2971. for ac_file in conftest.o conftest.obj conftest.*; do
  2972. test -f "$ac_file" || continue;
  2973. case $ac_file in
  2974. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2975. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2976. break;;
  2977. esac
  2978. done
  2979. else
  2980. $as_echo "$as_me: failed program was:" >&5
  2981. sed 's/^/| /' conftest.$ac_ext >&5
  2982. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2983. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2984. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2985. See \`config.log' for more details." >&5
  2986. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2987. See \`config.log' for more details." >&2;}
  2988. { (exit 1); exit 1; }; }; }
  2989. fi
  2990. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2991. fi
  2992. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2993. $as_echo "$ac_cv_objext" >&6; }
  2994. OBJEXT=$ac_cv_objext
  2995. ac_objext=$OBJEXT
  2996. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2997. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2998. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2999. $as_echo_n "(cached) " >&6
  3000. else
  3001. cat >conftest.$ac_ext <<_ACEOF
  3002. /* confdefs.h. */
  3003. _ACEOF
  3004. cat confdefs.h >>conftest.$ac_ext
  3005. cat >>conftest.$ac_ext <<_ACEOF
  3006. /* end confdefs.h. */
  3007. int
  3008. main ()
  3009. {
  3010. #ifndef __GNUC__
  3011. choke me
  3012. #endif
  3013. ;
  3014. return 0;
  3015. }
  3016. _ACEOF
  3017. rm -f conftest.$ac_objext
  3018. if { (ac_try="$ac_compile"
  3019. case "(($ac_try" in
  3020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3021. *) ac_try_echo=$ac_try;;
  3022. esac
  3023. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3024. $as_echo "$ac_try_echo") >&5
  3025. (eval "$ac_compile") 2>conftest.er1
  3026. ac_status=$?
  3027. grep -v '^ *+' conftest.er1 >conftest.err
  3028. rm -f conftest.er1
  3029. cat conftest.err >&5
  3030. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3031. (exit $ac_status); } && {
  3032. test -z "$ac_c_werror_flag" ||
  3033. test ! -s conftest.err
  3034. } && test -s conftest.$ac_objext; then
  3035. ac_compiler_gnu=yes
  3036. else
  3037. $as_echo "$as_me: failed program was:" >&5
  3038. sed 's/^/| /' conftest.$ac_ext >&5
  3039. ac_compiler_gnu=no
  3040. fi
  3041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3042. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3043. fi
  3044. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3045. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3046. if test $ac_compiler_gnu = yes; then
  3047. GCC=yes
  3048. else
  3049. GCC=
  3050. fi
  3051. ac_test_CFLAGS=${CFLAGS+set}
  3052. ac_save_CFLAGS=$CFLAGS
  3053. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3054. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3055. if test "${ac_cv_prog_cc_g+set}" = set; then
  3056. $as_echo_n "(cached) " >&6
  3057. else
  3058. ac_save_c_werror_flag=$ac_c_werror_flag
  3059. ac_c_werror_flag=yes
  3060. ac_cv_prog_cc_g=no
  3061. CFLAGS="-g"
  3062. cat >conftest.$ac_ext <<_ACEOF
  3063. /* confdefs.h. */
  3064. _ACEOF
  3065. cat confdefs.h >>conftest.$ac_ext
  3066. cat >>conftest.$ac_ext <<_ACEOF
  3067. /* end confdefs.h. */
  3068. int
  3069. main ()
  3070. {
  3071. ;
  3072. return 0;
  3073. }
  3074. _ACEOF
  3075. rm -f conftest.$ac_objext
  3076. if { (ac_try="$ac_compile"
  3077. case "(($ac_try" in
  3078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3079. *) ac_try_echo=$ac_try;;
  3080. esac
  3081. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3082. $as_echo "$ac_try_echo") >&5
  3083. (eval "$ac_compile") 2>conftest.er1
  3084. ac_status=$?
  3085. grep -v '^ *+' conftest.er1 >conftest.err
  3086. rm -f conftest.er1
  3087. cat conftest.err >&5
  3088. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3089. (exit $ac_status); } && {
  3090. test -z "$ac_c_werror_flag" ||
  3091. test ! -s conftest.err
  3092. } && test -s conftest.$ac_objext; then
  3093. ac_cv_prog_cc_g=yes
  3094. else
  3095. $as_echo "$as_me: failed program was:" >&5
  3096. sed 's/^/| /' conftest.$ac_ext >&5
  3097. CFLAGS=""
  3098. cat >conftest.$ac_ext <<_ACEOF
  3099. /* confdefs.h. */
  3100. _ACEOF
  3101. cat confdefs.h >>conftest.$ac_ext
  3102. cat >>conftest.$ac_ext <<_ACEOF
  3103. /* end confdefs.h. */
  3104. int
  3105. main ()
  3106. {
  3107. ;
  3108. return 0;
  3109. }
  3110. _ACEOF
  3111. rm -f conftest.$ac_objext
  3112. if { (ac_try="$ac_compile"
  3113. case "(($ac_try" in
  3114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3115. *) ac_try_echo=$ac_try;;
  3116. esac
  3117. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3118. $as_echo "$ac_try_echo") >&5
  3119. (eval "$ac_compile") 2>conftest.er1
  3120. ac_status=$?
  3121. grep -v '^ *+' conftest.er1 >conftest.err
  3122. rm -f conftest.er1
  3123. cat conftest.err >&5
  3124. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3125. (exit $ac_status); } && {
  3126. test -z "$ac_c_werror_flag" ||
  3127. test ! -s conftest.err
  3128. } && test -s conftest.$ac_objext; then
  3129. :
  3130. else
  3131. $as_echo "$as_me: failed program was:" >&5
  3132. sed 's/^/| /' conftest.$ac_ext >&5
  3133. ac_c_werror_flag=$ac_save_c_werror_flag
  3134. CFLAGS="-g"
  3135. cat >conftest.$ac_ext <<_ACEOF
  3136. /* confdefs.h. */
  3137. _ACEOF
  3138. cat confdefs.h >>conftest.$ac_ext
  3139. cat >>conftest.$ac_ext <<_ACEOF
  3140. /* end confdefs.h. */
  3141. int
  3142. main ()
  3143. {
  3144. ;
  3145. return 0;
  3146. }
  3147. _ACEOF
  3148. rm -f conftest.$ac_objext
  3149. if { (ac_try="$ac_compile"
  3150. case "(($ac_try" in
  3151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3152. *) ac_try_echo=$ac_try;;
  3153. esac
  3154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3155. $as_echo "$ac_try_echo") >&5
  3156. (eval "$ac_compile") 2>conftest.er1
  3157. ac_status=$?
  3158. grep -v '^ *+' conftest.er1 >conftest.err
  3159. rm -f conftest.er1
  3160. cat conftest.err >&5
  3161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3162. (exit $ac_status); } && {
  3163. test -z "$ac_c_werror_flag" ||
  3164. test ! -s conftest.err
  3165. } && test -s conftest.$ac_objext; then
  3166. ac_cv_prog_cc_g=yes
  3167. else
  3168. $as_echo "$as_me: failed program was:" >&5
  3169. sed 's/^/| /' conftest.$ac_ext >&5
  3170. fi
  3171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3172. fi
  3173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3174. fi
  3175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3176. ac_c_werror_flag=$ac_save_c_werror_flag
  3177. fi
  3178. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3179. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3180. if test "$ac_test_CFLAGS" = set; then
  3181. CFLAGS=$ac_save_CFLAGS
  3182. elif test $ac_cv_prog_cc_g = yes; then
  3183. if test "$GCC" = yes; then
  3184. CFLAGS="-g -O2"
  3185. else
  3186. CFLAGS="-g"
  3187. fi
  3188. else
  3189. if test "$GCC" = yes; then
  3190. CFLAGS="-O2"
  3191. else
  3192. CFLAGS=
  3193. fi
  3194. fi
  3195. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3196. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3197. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3198. $as_echo_n "(cached) " >&6
  3199. else
  3200. ac_cv_prog_cc_c89=no
  3201. ac_save_CC=$CC
  3202. cat >conftest.$ac_ext <<_ACEOF
  3203. /* confdefs.h. */
  3204. _ACEOF
  3205. cat confdefs.h >>conftest.$ac_ext
  3206. cat >>conftest.$ac_ext <<_ACEOF
  3207. /* end confdefs.h. */
  3208. #include <stdarg.h>
  3209. #include <stdio.h>
  3210. #include <sys/types.h>
  3211. #include <sys/stat.h>
  3212. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3213. struct buf { int x; };
  3214. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3215. static char *e (p, i)
  3216. char **p;
  3217. int i;
  3218. {
  3219. return p[i];
  3220. }
  3221. static char *f (char * (*g) (char **, int), char **p, ...)
  3222. {
  3223. char *s;
  3224. va_list v;
  3225. va_start (v,p);
  3226. s = g (p, va_arg (v,int));
  3227. va_end (v);
  3228. return s;
  3229. }
  3230. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3231. function prototypes and stuff, but not '\xHH' hex character constants.
  3232. These don't provoke an error unfortunately, instead are silently treated
  3233. as 'x'. The following induces an error, until -std is added to get
  3234. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3235. array size at least. It's necessary to write '\x00'==0 to get something
  3236. that's true only with -std. */
  3237. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3238. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3239. inside strings and character constants. */
  3240. #define FOO(x) 'x'
  3241. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3242. int test (int i, double x);
  3243. struct s1 {int (*f) (int a);};
  3244. struct s2 {int (*f) (double a);};
  3245. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3246. int argc;
  3247. char **argv;
  3248. int
  3249. main ()
  3250. {
  3251. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3252. ;
  3253. return 0;
  3254. }
  3255. _ACEOF
  3256. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3257. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3258. do
  3259. CC="$ac_save_CC $ac_arg"
  3260. rm -f conftest.$ac_objext
  3261. if { (ac_try="$ac_compile"
  3262. case "(($ac_try" in
  3263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3264. *) ac_try_echo=$ac_try;;
  3265. esac
  3266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3267. $as_echo "$ac_try_echo") >&5
  3268. (eval "$ac_compile") 2>conftest.er1
  3269. ac_status=$?
  3270. grep -v '^ *+' conftest.er1 >conftest.err
  3271. rm -f conftest.er1
  3272. cat conftest.err >&5
  3273. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3274. (exit $ac_status); } && {
  3275. test -z "$ac_c_werror_flag" ||
  3276. test ! -s conftest.err
  3277. } && test -s conftest.$ac_objext; then
  3278. ac_cv_prog_cc_c89=$ac_arg
  3279. else
  3280. $as_echo "$as_me: failed program was:" >&5
  3281. sed 's/^/| /' conftest.$ac_ext >&5
  3282. fi
  3283. rm -f core conftest.err conftest.$ac_objext
  3284. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3285. done
  3286. rm -f conftest.$ac_ext
  3287. CC=$ac_save_CC
  3288. fi
  3289. # AC_CACHE_VAL
  3290. case "x$ac_cv_prog_cc_c89" in
  3291. x)
  3292. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3293. $as_echo "none needed" >&6; } ;;
  3294. xno)
  3295. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3296. $as_echo "unsupported" >&6; } ;;
  3297. *)
  3298. CC="$CC $ac_cv_prog_cc_c89"
  3299. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3300. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3301. esac
  3302. ac_ext=c
  3303. ac_cpp='$CPP $CPPFLAGS'
  3304. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3305. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3306. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3307. depcc="$CC" am_compiler_list=
  3308. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3309. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3310. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3311. $as_echo_n "(cached) " >&6
  3312. else
  3313. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3314. # We make a subdir and do the tests there. Otherwise we can end up
  3315. # making bogus files that we don't know about and never remove. For
  3316. # instance it was reported that on HP-UX the gcc test will end up
  3317. # making a dummy file named `D' -- because `-MD' means `put the output
  3318. # in D'.
  3319. mkdir conftest.dir
  3320. # Copy depcomp to subdir because otherwise we won't find it if we're
  3321. # using a relative directory.
  3322. cp "$am_depcomp" conftest.dir
  3323. cd conftest.dir
  3324. # We will build objects and dependencies in a subdirectory because
  3325. # it helps to detect inapplicable dependency modes. For instance
  3326. # both Tru64's cc and ICC support -MD to output dependencies as a
  3327. # side effect of compilation, but ICC will put the dependencies in
  3328. # the current directory while Tru64 will put them in the object
  3329. # directory.
  3330. mkdir sub
  3331. am_cv_CC_dependencies_compiler_type=none
  3332. if test "$am_compiler_list" = ""; then
  3333. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3334. fi
  3335. am__universal=false
  3336. case " $depcc " in #(
  3337. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3338. esac
  3339. for depmode in $am_compiler_list; do
  3340. # Setup a source with many dependencies, because some compilers
  3341. # like to wrap large dependency lists on column 80 (with \), and
  3342. # we should not choose a depcomp mode which is confused by this.
  3343. #
  3344. # We need to recreate these files for each test, as the compiler may
  3345. # overwrite some of them when testing with obscure command lines.
  3346. # This happens at least with the AIX C compiler.
  3347. : > sub/conftest.c
  3348. for i in 1 2 3 4 5 6; do
  3349. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3350. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3351. # Solaris 8's {/usr,}/bin/sh.
  3352. touch sub/conftst$i.h
  3353. done
  3354. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3355. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3356. # mode. It turns out that the SunPro C++ compiler does not properly
  3357. # handle `-M -o', and we need to detect this. Also, some Intel
  3358. # versions had trouble with output in subdirs
  3359. am__obj=sub/conftest.${OBJEXT-o}
  3360. am__minus_obj="-o $am__obj"
  3361. case $depmode in
  3362. gcc)
  3363. # This depmode causes a compiler race in universal mode.
  3364. test "$am__universal" = false || continue
  3365. ;;
  3366. nosideeffect)
  3367. # after this tag, mechanisms are not by side-effect, so they'll
  3368. # only be used when explicitly requested
  3369. if test "x$enable_dependency_tracking" = xyes; then
  3370. continue
  3371. else
  3372. break
  3373. fi
  3374. ;;
  3375. msvisualcpp | msvcmsys)
  3376. # This compiler won't grok `-c -o', but also, the minuso test has
  3377. # not run yet. These depmodes are late enough in the game, and
  3378. # so weak that their functioning should not be impacted.
  3379. am__obj=conftest.${OBJEXT-o}
  3380. am__minus_obj=
  3381. ;;
  3382. none) break ;;
  3383. esac
  3384. if depmode=$depmode \
  3385. source=sub/conftest.c object=$am__obj \
  3386. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3387. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3388. >/dev/null 2>conftest.err &&
  3389. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3390. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3391. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3392. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3393. # icc doesn't choke on unknown options, it will just issue warnings
  3394. # or remarks (even with -Werror). So we grep stderr for any message
  3395. # that says an option was ignored or not supported.
  3396. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3397. # icc: Command line warning: ignoring option '-M'; no argument required
  3398. # The diagnosis changed in icc 8.0:
  3399. # icc: Command line remark: option '-MP' not supported
  3400. if (grep 'ignoring option' conftest.err ||
  3401. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3402. am_cv_CC_dependencies_compiler_type=$depmode
  3403. break
  3404. fi
  3405. fi
  3406. done
  3407. cd ..
  3408. rm -rf conftest.dir
  3409. else
  3410. am_cv_CC_dependencies_compiler_type=none
  3411. fi
  3412. fi
  3413. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3414. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3415. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3416. if
  3417. test "x$enable_dependency_tracking" != xno \
  3418. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3419. am__fastdepCC_TRUE=
  3420. am__fastdepCC_FALSE='#'
  3421. else
  3422. am__fastdepCC_TRUE='#'
  3423. am__fastdepCC_FALSE=
  3424. fi
  3425. { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
  3426. $as_echo_n "checking for function prototypes... " >&6; }
  3427. if test "$ac_cv_prog_cc_c89" != no; then
  3428. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3429. $as_echo "yes" >&6; }
  3430. cat >>confdefs.h <<\_ACEOF
  3431. #define PROTOTYPES 1
  3432. _ACEOF
  3433. cat >>confdefs.h <<\_ACEOF
  3434. #define __PROTOTYPES 1
  3435. _ACEOF
  3436. else
  3437. { $as_echo "$as_me:$LINENO: result: no" >&5
  3438. $as_echo "no" >&6; }
  3439. fi
  3440. ac_ext=c
  3441. ac_cpp='$CPP $CPPFLAGS'
  3442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3445. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3446. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3447. # On Suns, sometimes $CPP names a directory.
  3448. if test -n "$CPP" && test -d "$CPP"; then
  3449. CPP=
  3450. fi
  3451. if test -z "$CPP"; then
  3452. if test "${ac_cv_prog_CPP+set}" = set; then
  3453. $as_echo_n "(cached) " >&6
  3454. else
  3455. # Double quotes because CPP needs to be expanded
  3456. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3457. do
  3458. ac_preproc_ok=false
  3459. for ac_c_preproc_warn_flag in '' yes
  3460. do
  3461. # Use a header file that comes with gcc, so configuring glibc
  3462. # with a fresh cross-compiler works.
  3463. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3464. # <limits.h> exists even on freestanding compilers.
  3465. # On the NeXT, cc -E runs the code through the compiler's parser,
  3466. # not just through cpp. "Syntax error" is here to catch this case.
  3467. cat >conftest.$ac_ext <<_ACEOF
  3468. /* confdefs.h. */
  3469. _ACEOF
  3470. cat confdefs.h >>conftest.$ac_ext
  3471. cat >>conftest.$ac_ext <<_ACEOF
  3472. /* end confdefs.h. */
  3473. #ifdef __STDC__
  3474. # include <limits.h>
  3475. #else
  3476. # include <assert.h>
  3477. #endif
  3478. Syntax error
  3479. _ACEOF
  3480. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3481. case "(($ac_try" in
  3482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3483. *) ac_try_echo=$ac_try;;
  3484. esac
  3485. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3486. $as_echo "$ac_try_echo") >&5
  3487. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3488. ac_status=$?
  3489. grep -v '^ *+' conftest.er1 >conftest.err
  3490. rm -f conftest.er1
  3491. cat conftest.err >&5
  3492. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3493. (exit $ac_status); } >/dev/null && {
  3494. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3495. test ! -s conftest.err
  3496. }; then
  3497. :
  3498. else
  3499. $as_echo "$as_me: failed program was:" >&5
  3500. sed 's/^/| /' conftest.$ac_ext >&5
  3501. # Broken: fails on valid input.
  3502. continue
  3503. fi
  3504. rm -f conftest.err conftest.$ac_ext
  3505. # OK, works on sane cases. Now check whether nonexistent headers
  3506. # can be detected and how.
  3507. cat >conftest.$ac_ext <<_ACEOF
  3508. /* confdefs.h. */
  3509. _ACEOF
  3510. cat confdefs.h >>conftest.$ac_ext
  3511. cat >>conftest.$ac_ext <<_ACEOF
  3512. /* end confdefs.h. */
  3513. #include <ac_nonexistent.h>
  3514. _ACEOF
  3515. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3516. case "(($ac_try" in
  3517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3518. *) ac_try_echo=$ac_try;;
  3519. esac
  3520. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3521. $as_echo "$ac_try_echo") >&5
  3522. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3523. ac_status=$?
  3524. grep -v '^ *+' conftest.er1 >conftest.err
  3525. rm -f conftest.er1
  3526. cat conftest.err >&5
  3527. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3528. (exit $ac_status); } >/dev/null && {
  3529. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3530. test ! -s conftest.err
  3531. }; then
  3532. # Broken: success on invalid input.
  3533. continue
  3534. else
  3535. $as_echo "$as_me: failed program was:" >&5
  3536. sed 's/^/| /' conftest.$ac_ext >&5
  3537. # Passes both tests.
  3538. ac_preproc_ok=:
  3539. break
  3540. fi
  3541. rm -f conftest.err conftest.$ac_ext
  3542. done
  3543. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3544. rm -f conftest.err conftest.$ac_ext
  3545. if $ac_preproc_ok; then
  3546. break
  3547. fi
  3548. done
  3549. ac_cv_prog_CPP=$CPP
  3550. fi
  3551. CPP=$ac_cv_prog_CPP
  3552. else
  3553. ac_cv_prog_CPP=$CPP
  3554. fi
  3555. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  3556. $as_echo "$CPP" >&6; }
  3557. ac_preproc_ok=false
  3558. for ac_c_preproc_warn_flag in '' yes
  3559. do
  3560. # Use a header file that comes with gcc, so configuring glibc
  3561. # with a fresh cross-compiler works.
  3562. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3563. # <limits.h> exists even on freestanding compilers.
  3564. # On the NeXT, cc -E runs the code through the compiler's parser,
  3565. # not just through cpp. "Syntax error" is here to catch this case.
  3566. cat >conftest.$ac_ext <<_ACEOF
  3567. /* confdefs.h. */
  3568. _ACEOF
  3569. cat confdefs.h >>conftest.$ac_ext
  3570. cat >>conftest.$ac_ext <<_ACEOF
  3571. /* end confdefs.h. */
  3572. #ifdef __STDC__
  3573. # include <limits.h>
  3574. #else
  3575. # include <assert.h>
  3576. #endif
  3577. Syntax error
  3578. _ACEOF
  3579. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3580. case "(($ac_try" in
  3581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3582. *) ac_try_echo=$ac_try;;
  3583. esac
  3584. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3585. $as_echo "$ac_try_echo") >&5
  3586. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3587. ac_status=$?
  3588. grep -v '^ *+' conftest.er1 >conftest.err
  3589. rm -f conftest.er1
  3590. cat conftest.err >&5
  3591. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3592. (exit $ac_status); } >/dev/null && {
  3593. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3594. test ! -s conftest.err
  3595. }; then
  3596. :
  3597. else
  3598. $as_echo "$as_me: failed program was:" >&5
  3599. sed 's/^/| /' conftest.$ac_ext >&5
  3600. # Broken: fails on valid input.
  3601. continue
  3602. fi
  3603. rm -f conftest.err conftest.$ac_ext
  3604. # OK, works on sane cases. Now check whether nonexistent headers
  3605. # can be detected and how.
  3606. cat >conftest.$ac_ext <<_ACEOF
  3607. /* confdefs.h. */
  3608. _ACEOF
  3609. cat confdefs.h >>conftest.$ac_ext
  3610. cat >>conftest.$ac_ext <<_ACEOF
  3611. /* end confdefs.h. */
  3612. #include <ac_nonexistent.h>
  3613. _ACEOF
  3614. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3615. case "(($ac_try" in
  3616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3617. *) ac_try_echo=$ac_try;;
  3618. esac
  3619. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3620. $as_echo "$ac_try_echo") >&5
  3621. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3622. ac_status=$?
  3623. grep -v '^ *+' conftest.er1 >conftest.err
  3624. rm -f conftest.er1
  3625. cat conftest.err >&5
  3626. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3627. (exit $ac_status); } >/dev/null && {
  3628. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3629. test ! -s conftest.err
  3630. }; then
  3631. # Broken: success on invalid input.
  3632. continue
  3633. else
  3634. $as_echo "$as_me: failed program was:" >&5
  3635. sed 's/^/| /' conftest.$ac_ext >&5
  3636. # Passes both tests.
  3637. ac_preproc_ok=:
  3638. break
  3639. fi
  3640. rm -f conftest.err conftest.$ac_ext
  3641. done
  3642. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3643. rm -f conftest.err conftest.$ac_ext
  3644. if $ac_preproc_ok; then
  3645. :
  3646. else
  3647. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3648. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3649. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3650. See \`config.log' for more details." >&5
  3651. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3652. See \`config.log' for more details." >&2;}
  3653. { (exit 1); exit 1; }; }; }
  3654. fi
  3655. ac_ext=c
  3656. ac_cpp='$CPP $CPPFLAGS'
  3657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3660. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3661. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3662. if test "${ac_cv_path_GREP+set}" = set; then
  3663. $as_echo_n "(cached) " >&6
  3664. else
  3665. if test -z "$GREP"; then
  3666. ac_path_GREP_found=false
  3667. # Loop through the user's path and test for each of PROGNAME-LIST
  3668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3669. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3670. do
  3671. IFS=$as_save_IFS
  3672. test -z "$as_dir" && as_dir=.
  3673. for ac_prog in grep ggrep; do
  3674. for ac_exec_ext in '' $ac_executable_extensions; do
  3675. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3676. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3677. # Check for GNU ac_path_GREP and select it if it is found.
  3678. # Check for GNU $ac_path_GREP
  3679. case `"$ac_path_GREP" --version 2>&1` in
  3680. *GNU*)
  3681. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3682. *)
  3683. ac_count=0
  3684. $as_echo_n 0123456789 >"conftest.in"
  3685. while :
  3686. do
  3687. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3688. mv "conftest.tmp" "conftest.in"
  3689. cp "conftest.in" "conftest.nl"
  3690. $as_echo 'GREP' >> "conftest.nl"
  3691. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3692. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3693. ac_count=`expr $ac_count + 1`
  3694. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3695. # Best one so far, save it but keep looking for a better one
  3696. ac_cv_path_GREP="$ac_path_GREP"
  3697. ac_path_GREP_max=$ac_count
  3698. fi
  3699. # 10*(2^10) chars as input seems more than enough
  3700. test $ac_count -gt 10 && break
  3701. done
  3702. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3703. esac
  3704. $ac_path_GREP_found && break 3
  3705. done
  3706. done
  3707. done
  3708. IFS=$as_save_IFS
  3709. if test -z "$ac_cv_path_GREP"; then
  3710. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3711. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3712. { (exit 1); exit 1; }; }
  3713. fi
  3714. else
  3715. ac_cv_path_GREP=$GREP
  3716. fi
  3717. fi
  3718. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3719. $as_echo "$ac_cv_path_GREP" >&6; }
  3720. GREP="$ac_cv_path_GREP"
  3721. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3722. $as_echo_n "checking for egrep... " >&6; }
  3723. if test "${ac_cv_path_EGREP+set}" = set; then
  3724. $as_echo_n "(cached) " >&6
  3725. else
  3726. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3727. then ac_cv_path_EGREP="$GREP -E"
  3728. else
  3729. if test -z "$EGREP"; then
  3730. ac_path_EGREP_found=false
  3731. # Loop through the user's path and test for each of PROGNAME-LIST
  3732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3733. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3734. do
  3735. IFS=$as_save_IFS
  3736. test -z "$as_dir" && as_dir=.
  3737. for ac_prog in egrep; do
  3738. for ac_exec_ext in '' $ac_executable_extensions; do
  3739. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3740. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3741. # Check for GNU ac_path_EGREP and select it if it is found.
  3742. # Check for GNU $ac_path_EGREP
  3743. case `"$ac_path_EGREP" --version 2>&1` in
  3744. *GNU*)
  3745. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3746. *)
  3747. ac_count=0
  3748. $as_echo_n 0123456789 >"conftest.in"
  3749. while :
  3750. do
  3751. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3752. mv "conftest.tmp" "conftest.in"
  3753. cp "conftest.in" "conftest.nl"
  3754. $as_echo 'EGREP' >> "conftest.nl"
  3755. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3756. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3757. ac_count=`expr $ac_count + 1`
  3758. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3759. # Best one so far, save it but keep looking for a better one
  3760. ac_cv_path_EGREP="$ac_path_EGREP"
  3761. ac_path_EGREP_max=$ac_count
  3762. fi
  3763. # 10*(2^10) chars as input seems more than enough
  3764. test $ac_count -gt 10 && break
  3765. done
  3766. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3767. esac
  3768. $ac_path_EGREP_found && break 3
  3769. done
  3770. done
  3771. done
  3772. IFS=$as_save_IFS
  3773. if test -z "$ac_cv_path_EGREP"; then
  3774. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3775. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3776. { (exit 1); exit 1; }; }
  3777. fi
  3778. else
  3779. ac_cv_path_EGREP=$EGREP
  3780. fi
  3781. fi
  3782. fi
  3783. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3784. $as_echo "$ac_cv_path_EGREP" >&6; }
  3785. EGREP="$ac_cv_path_EGREP"
  3786. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3787. $as_echo_n "checking for ANSI C header files... " >&6; }
  3788. if test "${ac_cv_header_stdc+set}" = set; then
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. cat >conftest.$ac_ext <<_ACEOF
  3792. /* confdefs.h. */
  3793. _ACEOF
  3794. cat confdefs.h >>conftest.$ac_ext
  3795. cat >>conftest.$ac_ext <<_ACEOF
  3796. /* end confdefs.h. */
  3797. #include <stdlib.h>
  3798. #include <stdarg.h>
  3799. #include <string.h>
  3800. #include <float.h>
  3801. int
  3802. main ()
  3803. {
  3804. ;
  3805. return 0;
  3806. }
  3807. _ACEOF
  3808. rm -f conftest.$ac_objext
  3809. if { (ac_try="$ac_compile"
  3810. case "(($ac_try" in
  3811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3812. *) ac_try_echo=$ac_try;;
  3813. esac
  3814. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3815. $as_echo "$ac_try_echo") >&5
  3816. (eval "$ac_compile") 2>conftest.er1
  3817. ac_status=$?
  3818. grep -v '^ *+' conftest.er1 >conftest.err
  3819. rm -f conftest.er1
  3820. cat conftest.err >&5
  3821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3822. (exit $ac_status); } && {
  3823. test -z "$ac_c_werror_flag" ||
  3824. test ! -s conftest.err
  3825. } && test -s conftest.$ac_objext; then
  3826. ac_cv_header_stdc=yes
  3827. else
  3828. $as_echo "$as_me: failed program was:" >&5
  3829. sed 's/^/| /' conftest.$ac_ext >&5
  3830. ac_cv_header_stdc=no
  3831. fi
  3832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3833. if test $ac_cv_header_stdc = yes; then
  3834. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3835. cat >conftest.$ac_ext <<_ACEOF
  3836. /* confdefs.h. */
  3837. _ACEOF
  3838. cat confdefs.h >>conftest.$ac_ext
  3839. cat >>conftest.$ac_ext <<_ACEOF
  3840. /* end confdefs.h. */
  3841. #include <string.h>
  3842. _ACEOF
  3843. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3844. $EGREP "memchr" >/dev/null 2>&1; then
  3845. :
  3846. else
  3847. ac_cv_header_stdc=no
  3848. fi
  3849. rm -f conftest*
  3850. fi
  3851. if test $ac_cv_header_stdc = yes; then
  3852. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3853. cat >conftest.$ac_ext <<_ACEOF
  3854. /* confdefs.h. */
  3855. _ACEOF
  3856. cat confdefs.h >>conftest.$ac_ext
  3857. cat >>conftest.$ac_ext <<_ACEOF
  3858. /* end confdefs.h. */
  3859. #include <stdlib.h>
  3860. _ACEOF
  3861. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3862. $EGREP "free" >/dev/null 2>&1; then
  3863. :
  3864. else
  3865. ac_cv_header_stdc=no
  3866. fi
  3867. rm -f conftest*
  3868. fi
  3869. if test $ac_cv_header_stdc = yes; then
  3870. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3871. if test "$cross_compiling" = yes; then
  3872. :
  3873. else
  3874. cat >conftest.$ac_ext <<_ACEOF
  3875. /* confdefs.h. */
  3876. _ACEOF
  3877. cat confdefs.h >>conftest.$ac_ext
  3878. cat >>conftest.$ac_ext <<_ACEOF
  3879. /* end confdefs.h. */
  3880. #include <ctype.h>
  3881. #include <stdlib.h>
  3882. #if ((' ' & 0x0FF) == 0x020)
  3883. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3884. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3885. #else
  3886. # define ISLOWER(c) \
  3887. (('a' <= (c) && (c) <= 'i') \
  3888. || ('j' <= (c) && (c) <= 'r') \
  3889. || ('s' <= (c) && (c) <= 'z'))
  3890. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3891. #endif
  3892. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3893. int
  3894. main ()
  3895. {
  3896. int i;
  3897. for (i = 0; i < 256; i++)
  3898. if (XOR (islower (i), ISLOWER (i))
  3899. || toupper (i) != TOUPPER (i))
  3900. return 2;
  3901. return 0;
  3902. }
  3903. _ACEOF
  3904. rm -f conftest$ac_exeext
  3905. if { (ac_try="$ac_link"
  3906. case "(($ac_try" in
  3907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3908. *) ac_try_echo=$ac_try;;
  3909. esac
  3910. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3911. $as_echo "$ac_try_echo") >&5
  3912. (eval "$ac_link") 2>&5
  3913. ac_status=$?
  3914. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3915. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3916. { (case "(($ac_try" in
  3917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3918. *) ac_try_echo=$ac_try;;
  3919. esac
  3920. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3921. $as_echo "$ac_try_echo") >&5
  3922. (eval "$ac_try") 2>&5
  3923. ac_status=$?
  3924. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3925. (exit $ac_status); }; }; then
  3926. :
  3927. else
  3928. $as_echo "$as_me: program exited with status $ac_status" >&5
  3929. $as_echo "$as_me: failed program was:" >&5
  3930. sed 's/^/| /' conftest.$ac_ext >&5
  3931. ( exit $ac_status )
  3932. ac_cv_header_stdc=no
  3933. fi
  3934. rm -rf conftest.dSYM
  3935. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3936. fi
  3937. fi
  3938. fi
  3939. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3940. $as_echo "$ac_cv_header_stdc" >&6; }
  3941. if test $ac_cv_header_stdc = yes; then
  3942. cat >>confdefs.h <<\_ACEOF
  3943. #define STDC_HEADERS 1
  3944. _ACEOF
  3945. fi
  3946. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3947. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3948. inttypes.h stdint.h unistd.h
  3949. do
  3950. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3951. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  3952. $as_echo_n "checking for $ac_header... " >&6; }
  3953. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3954. $as_echo_n "(cached) " >&6
  3955. else
  3956. cat >conftest.$ac_ext <<_ACEOF
  3957. /* confdefs.h. */
  3958. _ACEOF
  3959. cat confdefs.h >>conftest.$ac_ext
  3960. cat >>conftest.$ac_ext <<_ACEOF
  3961. /* end confdefs.h. */
  3962. $ac_includes_default
  3963. #include <$ac_header>
  3964. _ACEOF
  3965. rm -f conftest.$ac_objext
  3966. if { (ac_try="$ac_compile"
  3967. case "(($ac_try" in
  3968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3969. *) ac_try_echo=$ac_try;;
  3970. esac
  3971. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3972. $as_echo "$ac_try_echo") >&5
  3973. (eval "$ac_compile") 2>conftest.er1
  3974. ac_status=$?
  3975. grep -v '^ *+' conftest.er1 >conftest.err
  3976. rm -f conftest.er1
  3977. cat conftest.err >&5
  3978. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3979. (exit $ac_status); } && {
  3980. test -z "$ac_c_werror_flag" ||
  3981. test ! -s conftest.err
  3982. } && test -s conftest.$ac_objext; then
  3983. eval "$as_ac_Header=yes"
  3984. else
  3985. $as_echo "$as_me: failed program was:" >&5
  3986. sed 's/^/| /' conftest.$ac_ext >&5
  3987. eval "$as_ac_Header=no"
  3988. fi
  3989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3990. fi
  3991. ac_res=`eval 'as_val=${'$as_ac_Header'}
  3992. $as_echo "$as_val"'`
  3993. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  3994. $as_echo "$ac_res" >&6; }
  3995. as_val=`eval 'as_val=${'$as_ac_Header'}
  3996. $as_echo "$as_val"'`
  3997. if test "x$as_val" = x""yes; then
  3998. cat >>confdefs.h <<_ACEOF
  3999. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4000. _ACEOF
  4001. fi
  4002. done
  4003. if test "$ac_cv_prog_cc_stdc" != no; then
  4004. U= ANSI2KNR=
  4005. else
  4006. U=_ ANSI2KNR=./ansi2knr
  4007. fi
  4008. # Ensure some checks needed by ansi2knr itself.
  4009. for ac_header in string.h
  4010. do
  4011. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4012. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4013. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4014. $as_echo_n "checking for $ac_header... " >&6; }
  4015. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4016. $as_echo_n "(cached) " >&6
  4017. fi
  4018. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4019. $as_echo "$as_val"'`
  4020. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4021. $as_echo "$ac_res" >&6; }
  4022. else
  4023. # Is the header compilable?
  4024. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4025. $as_echo_n "checking $ac_header usability... " >&6; }
  4026. cat >conftest.$ac_ext <<_ACEOF
  4027. /* confdefs.h. */
  4028. _ACEOF
  4029. cat confdefs.h >>conftest.$ac_ext
  4030. cat >>conftest.$ac_ext <<_ACEOF
  4031. /* end confdefs.h. */
  4032. $ac_includes_default
  4033. #include <$ac_header>
  4034. _ACEOF
  4035. rm -f conftest.$ac_objext
  4036. if { (ac_try="$ac_compile"
  4037. case "(($ac_try" in
  4038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4039. *) ac_try_echo=$ac_try;;
  4040. esac
  4041. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4042. $as_echo "$ac_try_echo") >&5
  4043. (eval "$ac_compile") 2>conftest.er1
  4044. ac_status=$?
  4045. grep -v '^ *+' conftest.er1 >conftest.err
  4046. rm -f conftest.er1
  4047. cat conftest.err >&5
  4048. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4049. (exit $ac_status); } && {
  4050. test -z "$ac_c_werror_flag" ||
  4051. test ! -s conftest.err
  4052. } && test -s conftest.$ac_objext; then
  4053. ac_header_compiler=yes
  4054. else
  4055. $as_echo "$as_me: failed program was:" >&5
  4056. sed 's/^/| /' conftest.$ac_ext >&5
  4057. ac_header_compiler=no
  4058. fi
  4059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4060. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4061. $as_echo "$ac_header_compiler" >&6; }
  4062. # Is the header present?
  4063. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4064. $as_echo_n "checking $ac_header presence... " >&6; }
  4065. cat >conftest.$ac_ext <<_ACEOF
  4066. /* confdefs.h. */
  4067. _ACEOF
  4068. cat confdefs.h >>conftest.$ac_ext
  4069. cat >>conftest.$ac_ext <<_ACEOF
  4070. /* end confdefs.h. */
  4071. #include <$ac_header>
  4072. _ACEOF
  4073. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4074. case "(($ac_try" in
  4075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4076. *) ac_try_echo=$ac_try;;
  4077. esac
  4078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4079. $as_echo "$ac_try_echo") >&5
  4080. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4081. ac_status=$?
  4082. grep -v '^ *+' conftest.er1 >conftest.err
  4083. rm -f conftest.er1
  4084. cat conftest.err >&5
  4085. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4086. (exit $ac_status); } >/dev/null && {
  4087. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4088. test ! -s conftest.err
  4089. }; then
  4090. ac_header_preproc=yes
  4091. else
  4092. $as_echo "$as_me: failed program was:" >&5
  4093. sed 's/^/| /' conftest.$ac_ext >&5
  4094. ac_header_preproc=no
  4095. fi
  4096. rm -f conftest.err conftest.$ac_ext
  4097. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4098. $as_echo "$ac_header_preproc" >&6; }
  4099. # So? What about this header?
  4100. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4101. yes:no: )
  4102. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4103. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4104. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4105. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4106. ac_header_preproc=yes
  4107. ;;
  4108. no:yes:* )
  4109. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4110. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4111. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4112. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4113. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4114. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4115. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4116. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4117. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4118. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4119. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4120. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4121. ;;
  4122. esac
  4123. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4124. $as_echo_n "checking for $ac_header... " >&6; }
  4125. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4126. $as_echo_n "(cached) " >&6
  4127. else
  4128. eval "$as_ac_Header=\$ac_header_preproc"
  4129. fi
  4130. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4131. $as_echo "$as_val"'`
  4132. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4133. $as_echo "$ac_res" >&6; }
  4134. fi
  4135. as_val=`eval 'as_val=${'$as_ac_Header'}
  4136. $as_echo "$as_val"'`
  4137. if test "x$as_val" = x""yes; then
  4138. cat >>confdefs.h <<_ACEOF
  4139. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4140. _ACEOF
  4141. fi
  4142. done
  4143. # Add configure option --enable-maintainer-mode which enables
  4144. # dependency checking and generation useful to package maintainers.
  4145. # This is made an option to avoid confusing end users.
  4146. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4147. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4148. # Check whether --enable-maintainer-mode was given.
  4149. if test "${enable_maintainer_mode+set}" = set; then
  4150. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4151. else
  4152. USE_MAINTAINER_MODE=no
  4153. fi
  4154. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  4155. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4156. if test $USE_MAINTAINER_MODE = yes; then
  4157. MAINTAINER_MODE_TRUE=
  4158. MAINTAINER_MODE_FALSE='#'
  4159. else
  4160. MAINTAINER_MODE_TRUE='#'
  4161. MAINTAINER_MODE_FALSE=
  4162. fi
  4163. MAINT=$MAINTAINER_MODE_TRUE
  4164. # Check for programs
  4165. ac_ext=c
  4166. ac_cpp='$CPP $CPPFLAGS'
  4167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4170. if test -n "$ac_tool_prefix"; then
  4171. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4172. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4173. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4174. $as_echo_n "checking for $ac_word... " >&6; }
  4175. if test "${ac_cv_prog_CC+set}" = set; then
  4176. $as_echo_n "(cached) " >&6
  4177. else
  4178. if test -n "$CC"; then
  4179. ac_cv_prog_CC="$CC" # Let the user override the test.
  4180. else
  4181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4182. for as_dir in $PATH
  4183. do
  4184. IFS=$as_save_IFS
  4185. test -z "$as_dir" && as_dir=.
  4186. for ac_exec_ext in '' $ac_executable_extensions; do
  4187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4188. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4189. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4190. break 2
  4191. fi
  4192. done
  4193. done
  4194. IFS=$as_save_IFS
  4195. fi
  4196. fi
  4197. CC=$ac_cv_prog_CC
  4198. if test -n "$CC"; then
  4199. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4200. $as_echo "$CC" >&6; }
  4201. else
  4202. { $as_echo "$as_me:$LINENO: result: no" >&5
  4203. $as_echo "no" >&6; }
  4204. fi
  4205. fi
  4206. if test -z "$ac_cv_prog_CC"; then
  4207. ac_ct_CC=$CC
  4208. # Extract the first word of "gcc", so it can be a program name with args.
  4209. set dummy gcc; ac_word=$2
  4210. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4211. $as_echo_n "checking for $ac_word... " >&6; }
  4212. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. if test -n "$ac_ct_CC"; then
  4216. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4217. else
  4218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4219. for as_dir in $PATH
  4220. do
  4221. IFS=$as_save_IFS
  4222. test -z "$as_dir" && as_dir=.
  4223. for ac_exec_ext in '' $ac_executable_extensions; do
  4224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4225. ac_cv_prog_ac_ct_CC="gcc"
  4226. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4227. break 2
  4228. fi
  4229. done
  4230. done
  4231. IFS=$as_save_IFS
  4232. fi
  4233. fi
  4234. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4235. if test -n "$ac_ct_CC"; then
  4236. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4237. $as_echo "$ac_ct_CC" >&6; }
  4238. else
  4239. { $as_echo "$as_me:$LINENO: result: no" >&5
  4240. $as_echo "no" >&6; }
  4241. fi
  4242. if test "x$ac_ct_CC" = x; then
  4243. CC=""
  4244. else
  4245. case $cross_compiling:$ac_tool_warned in
  4246. yes:)
  4247. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4248. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4249. ac_tool_warned=yes ;;
  4250. esac
  4251. CC=$ac_ct_CC
  4252. fi
  4253. else
  4254. CC="$ac_cv_prog_CC"
  4255. fi
  4256. if test -z "$CC"; then
  4257. if test -n "$ac_tool_prefix"; then
  4258. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4259. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4260. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4261. $as_echo_n "checking for $ac_word... " >&6; }
  4262. if test "${ac_cv_prog_CC+set}" = set; then
  4263. $as_echo_n "(cached) " >&6
  4264. else
  4265. if test -n "$CC"; then
  4266. ac_cv_prog_CC="$CC" # Let the user override the test.
  4267. else
  4268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4269. for as_dir in $PATH
  4270. do
  4271. IFS=$as_save_IFS
  4272. test -z "$as_dir" && as_dir=.
  4273. for ac_exec_ext in '' $ac_executable_extensions; do
  4274. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4275. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4276. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4277. break 2
  4278. fi
  4279. done
  4280. done
  4281. IFS=$as_save_IFS
  4282. fi
  4283. fi
  4284. CC=$ac_cv_prog_CC
  4285. if test -n "$CC"; then
  4286. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4287. $as_echo "$CC" >&6; }
  4288. else
  4289. { $as_echo "$as_me:$LINENO: result: no" >&5
  4290. $as_echo "no" >&6; }
  4291. fi
  4292. fi
  4293. fi
  4294. if test -z "$CC"; then
  4295. # Extract the first word of "cc", so it can be a program name with args.
  4296. set dummy cc; ac_word=$2
  4297. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4298. $as_echo_n "checking for $ac_word... " >&6; }
  4299. if test "${ac_cv_prog_CC+set}" = set; then
  4300. $as_echo_n "(cached) " >&6
  4301. else
  4302. if test -n "$CC"; then
  4303. ac_cv_prog_CC="$CC" # Let the user override the test.
  4304. else
  4305. ac_prog_rejected=no
  4306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4307. for as_dir in $PATH
  4308. do
  4309. IFS=$as_save_IFS
  4310. test -z "$as_dir" && as_dir=.
  4311. for ac_exec_ext in '' $ac_executable_extensions; do
  4312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4313. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4314. ac_prog_rejected=yes
  4315. continue
  4316. fi
  4317. ac_cv_prog_CC="cc"
  4318. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4319. break 2
  4320. fi
  4321. done
  4322. done
  4323. IFS=$as_save_IFS
  4324. if test $ac_prog_rejected = yes; then
  4325. # We found a bogon in the path, so make sure we never use it.
  4326. set dummy $ac_cv_prog_CC
  4327. shift
  4328. if test $# != 0; then
  4329. # We chose a different compiler from the bogus one.
  4330. # However, it has the same basename, so the bogon will be chosen
  4331. # first if we set CC to just the basename; use the full file name.
  4332. shift
  4333. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4334. fi
  4335. fi
  4336. fi
  4337. fi
  4338. CC=$ac_cv_prog_CC
  4339. if test -n "$CC"; then
  4340. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4341. $as_echo "$CC" >&6; }
  4342. else
  4343. { $as_echo "$as_me:$LINENO: result: no" >&5
  4344. $as_echo "no" >&6; }
  4345. fi
  4346. fi
  4347. if test -z "$CC"; then
  4348. if test -n "$ac_tool_prefix"; then
  4349. for ac_prog in cl.exe
  4350. do
  4351. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4352. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4353. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4354. $as_echo_n "checking for $ac_word... " >&6; }
  4355. if test "${ac_cv_prog_CC+set}" = set; then
  4356. $as_echo_n "(cached) " >&6
  4357. else
  4358. if test -n "$CC"; then
  4359. ac_cv_prog_CC="$CC" # Let the user override the test.
  4360. else
  4361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4362. for as_dir in $PATH
  4363. do
  4364. IFS=$as_save_IFS
  4365. test -z "$as_dir" && as_dir=.
  4366. for ac_exec_ext in '' $ac_executable_extensions; do
  4367. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4368. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4369. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4370. break 2
  4371. fi
  4372. done
  4373. done
  4374. IFS=$as_save_IFS
  4375. fi
  4376. fi
  4377. CC=$ac_cv_prog_CC
  4378. if test -n "$CC"; then
  4379. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  4380. $as_echo "$CC" >&6; }
  4381. else
  4382. { $as_echo "$as_me:$LINENO: result: no" >&5
  4383. $as_echo "no" >&6; }
  4384. fi
  4385. test -n "$CC" && break
  4386. done
  4387. fi
  4388. if test -z "$CC"; then
  4389. ac_ct_CC=$CC
  4390. for ac_prog in cl.exe
  4391. do
  4392. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4393. set dummy $ac_prog; ac_word=$2
  4394. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4395. $as_echo_n "checking for $ac_word... " >&6; }
  4396. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test -n "$ac_ct_CC"; then
  4400. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4401. else
  4402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4403. for as_dir in $PATH
  4404. do
  4405. IFS=$as_save_IFS
  4406. test -z "$as_dir" && as_dir=.
  4407. for ac_exec_ext in '' $ac_executable_extensions; do
  4408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4409. ac_cv_prog_ac_ct_CC="$ac_prog"
  4410. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4411. break 2
  4412. fi
  4413. done
  4414. done
  4415. IFS=$as_save_IFS
  4416. fi
  4417. fi
  4418. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4419. if test -n "$ac_ct_CC"; then
  4420. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  4421. $as_echo "$ac_ct_CC" >&6; }
  4422. else
  4423. { $as_echo "$as_me:$LINENO: result: no" >&5
  4424. $as_echo "no" >&6; }
  4425. fi
  4426. test -n "$ac_ct_CC" && break
  4427. done
  4428. if test "x$ac_ct_CC" = x; then
  4429. CC=""
  4430. else
  4431. case $cross_compiling:$ac_tool_warned in
  4432. yes:)
  4433. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4434. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4435. ac_tool_warned=yes ;;
  4436. esac
  4437. CC=$ac_ct_CC
  4438. fi
  4439. fi
  4440. fi
  4441. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4442. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4443. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  4444. See \`config.log' for more details." >&5
  4445. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  4446. See \`config.log' for more details." >&2;}
  4447. { (exit 1); exit 1; }; }; }
  4448. # Provide some information about the compiler.
  4449. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  4450. set X $ac_compile
  4451. ac_compiler=$2
  4452. { (ac_try="$ac_compiler --version >&5"
  4453. case "(($ac_try" in
  4454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4455. *) ac_try_echo=$ac_try;;
  4456. esac
  4457. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4458. $as_echo "$ac_try_echo") >&5
  4459. (eval "$ac_compiler --version >&5") 2>&5
  4460. ac_status=$?
  4461. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4462. (exit $ac_status); }
  4463. { (ac_try="$ac_compiler -v >&5"
  4464. case "(($ac_try" in
  4465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4466. *) ac_try_echo=$ac_try;;
  4467. esac
  4468. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4469. $as_echo "$ac_try_echo") >&5
  4470. (eval "$ac_compiler -v >&5") 2>&5
  4471. ac_status=$?
  4472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4473. (exit $ac_status); }
  4474. { (ac_try="$ac_compiler -V >&5"
  4475. case "(($ac_try" in
  4476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4477. *) ac_try_echo=$ac_try;;
  4478. esac
  4479. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4480. $as_echo "$ac_try_echo") >&5
  4481. (eval "$ac_compiler -V >&5") 2>&5
  4482. ac_status=$?
  4483. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4484. (exit $ac_status); }
  4485. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4486. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4487. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4488. $as_echo_n "(cached) " >&6
  4489. else
  4490. cat >conftest.$ac_ext <<_ACEOF
  4491. /* confdefs.h. */
  4492. _ACEOF
  4493. cat confdefs.h >>conftest.$ac_ext
  4494. cat >>conftest.$ac_ext <<_ACEOF
  4495. /* end confdefs.h. */
  4496. int
  4497. main ()
  4498. {
  4499. #ifndef __GNUC__
  4500. choke me
  4501. #endif
  4502. ;
  4503. return 0;
  4504. }
  4505. _ACEOF
  4506. rm -f conftest.$ac_objext
  4507. if { (ac_try="$ac_compile"
  4508. case "(($ac_try" in
  4509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4510. *) ac_try_echo=$ac_try;;
  4511. esac
  4512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4513. $as_echo "$ac_try_echo") >&5
  4514. (eval "$ac_compile") 2>conftest.er1
  4515. ac_status=$?
  4516. grep -v '^ *+' conftest.er1 >conftest.err
  4517. rm -f conftest.er1
  4518. cat conftest.err >&5
  4519. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4520. (exit $ac_status); } && {
  4521. test -z "$ac_c_werror_flag" ||
  4522. test ! -s conftest.err
  4523. } && test -s conftest.$ac_objext; then
  4524. ac_compiler_gnu=yes
  4525. else
  4526. $as_echo "$as_me: failed program was:" >&5
  4527. sed 's/^/| /' conftest.$ac_ext >&5
  4528. ac_compiler_gnu=no
  4529. fi
  4530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4531. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4532. fi
  4533. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4534. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4535. if test $ac_compiler_gnu = yes; then
  4536. GCC=yes
  4537. else
  4538. GCC=
  4539. fi
  4540. ac_test_CFLAGS=${CFLAGS+set}
  4541. ac_save_CFLAGS=$CFLAGS
  4542. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4543. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4544. if test "${ac_cv_prog_cc_g+set}" = set; then
  4545. $as_echo_n "(cached) " >&6
  4546. else
  4547. ac_save_c_werror_flag=$ac_c_werror_flag
  4548. ac_c_werror_flag=yes
  4549. ac_cv_prog_cc_g=no
  4550. CFLAGS="-g"
  4551. cat >conftest.$ac_ext <<_ACEOF
  4552. /* confdefs.h. */
  4553. _ACEOF
  4554. cat confdefs.h >>conftest.$ac_ext
  4555. cat >>conftest.$ac_ext <<_ACEOF
  4556. /* end confdefs.h. */
  4557. int
  4558. main ()
  4559. {
  4560. ;
  4561. return 0;
  4562. }
  4563. _ACEOF
  4564. rm -f conftest.$ac_objext
  4565. if { (ac_try="$ac_compile"
  4566. case "(($ac_try" in
  4567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4568. *) ac_try_echo=$ac_try;;
  4569. esac
  4570. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4571. $as_echo "$ac_try_echo") >&5
  4572. (eval "$ac_compile") 2>conftest.er1
  4573. ac_status=$?
  4574. grep -v '^ *+' conftest.er1 >conftest.err
  4575. rm -f conftest.er1
  4576. cat conftest.err >&5
  4577. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4578. (exit $ac_status); } && {
  4579. test -z "$ac_c_werror_flag" ||
  4580. test ! -s conftest.err
  4581. } && test -s conftest.$ac_objext; then
  4582. ac_cv_prog_cc_g=yes
  4583. else
  4584. $as_echo "$as_me: failed program was:" >&5
  4585. sed 's/^/| /' conftest.$ac_ext >&5
  4586. CFLAGS=""
  4587. cat >conftest.$ac_ext <<_ACEOF
  4588. /* confdefs.h. */
  4589. _ACEOF
  4590. cat confdefs.h >>conftest.$ac_ext
  4591. cat >>conftest.$ac_ext <<_ACEOF
  4592. /* end confdefs.h. */
  4593. int
  4594. main ()
  4595. {
  4596. ;
  4597. return 0;
  4598. }
  4599. _ACEOF
  4600. rm -f conftest.$ac_objext
  4601. if { (ac_try="$ac_compile"
  4602. case "(($ac_try" in
  4603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4604. *) ac_try_echo=$ac_try;;
  4605. esac
  4606. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4607. $as_echo "$ac_try_echo") >&5
  4608. (eval "$ac_compile") 2>conftest.er1
  4609. ac_status=$?
  4610. grep -v '^ *+' conftest.er1 >conftest.err
  4611. rm -f conftest.er1
  4612. cat conftest.err >&5
  4613. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4614. (exit $ac_status); } && {
  4615. test -z "$ac_c_werror_flag" ||
  4616. test ! -s conftest.err
  4617. } && test -s conftest.$ac_objext; then
  4618. :
  4619. else
  4620. $as_echo "$as_me: failed program was:" >&5
  4621. sed 's/^/| /' conftest.$ac_ext >&5
  4622. ac_c_werror_flag=$ac_save_c_werror_flag
  4623. CFLAGS="-g"
  4624. cat >conftest.$ac_ext <<_ACEOF
  4625. /* confdefs.h. */
  4626. _ACEOF
  4627. cat confdefs.h >>conftest.$ac_ext
  4628. cat >>conftest.$ac_ext <<_ACEOF
  4629. /* end confdefs.h. */
  4630. int
  4631. main ()
  4632. {
  4633. ;
  4634. return 0;
  4635. }
  4636. _ACEOF
  4637. rm -f conftest.$ac_objext
  4638. if { (ac_try="$ac_compile"
  4639. case "(($ac_try" in
  4640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4641. *) ac_try_echo=$ac_try;;
  4642. esac
  4643. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4644. $as_echo "$ac_try_echo") >&5
  4645. (eval "$ac_compile") 2>conftest.er1
  4646. ac_status=$?
  4647. grep -v '^ *+' conftest.er1 >conftest.err
  4648. rm -f conftest.er1
  4649. cat conftest.err >&5
  4650. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4651. (exit $ac_status); } && {
  4652. test -z "$ac_c_werror_flag" ||
  4653. test ! -s conftest.err
  4654. } && test -s conftest.$ac_objext; then
  4655. ac_cv_prog_cc_g=yes
  4656. else
  4657. $as_echo "$as_me: failed program was:" >&5
  4658. sed 's/^/| /' conftest.$ac_ext >&5
  4659. fi
  4660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4661. fi
  4662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4663. fi
  4664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4665. ac_c_werror_flag=$ac_save_c_werror_flag
  4666. fi
  4667. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4668. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4669. if test "$ac_test_CFLAGS" = set; then
  4670. CFLAGS=$ac_save_CFLAGS
  4671. elif test $ac_cv_prog_cc_g = yes; then
  4672. if test "$GCC" = yes; then
  4673. CFLAGS="-g -O2"
  4674. else
  4675. CFLAGS="-g"
  4676. fi
  4677. else
  4678. if test "$GCC" = yes; then
  4679. CFLAGS="-O2"
  4680. else
  4681. CFLAGS=
  4682. fi
  4683. fi
  4684. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  4685. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4686. if test "${ac_cv_prog_cc_c89+set}" = set; then
  4687. $as_echo_n "(cached) " >&6
  4688. else
  4689. ac_cv_prog_cc_c89=no
  4690. ac_save_CC=$CC
  4691. cat >conftest.$ac_ext <<_ACEOF
  4692. /* confdefs.h. */
  4693. _ACEOF
  4694. cat confdefs.h >>conftest.$ac_ext
  4695. cat >>conftest.$ac_ext <<_ACEOF
  4696. /* end confdefs.h. */
  4697. #include <stdarg.h>
  4698. #include <stdio.h>
  4699. #include <sys/types.h>
  4700. #include <sys/stat.h>
  4701. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4702. struct buf { int x; };
  4703. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4704. static char *e (p, i)
  4705. char **p;
  4706. int i;
  4707. {
  4708. return p[i];
  4709. }
  4710. static char *f (char * (*g) (char **, int), char **p, ...)
  4711. {
  4712. char *s;
  4713. va_list v;
  4714. va_start (v,p);
  4715. s = g (p, va_arg (v,int));
  4716. va_end (v);
  4717. return s;
  4718. }
  4719. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4720. function prototypes and stuff, but not '\xHH' hex character constants.
  4721. These don't provoke an error unfortunately, instead are silently treated
  4722. as 'x'. The following induces an error, until -std is added to get
  4723. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4724. array size at least. It's necessary to write '\x00'==0 to get something
  4725. that's true only with -std. */
  4726. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4727. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4728. inside strings and character constants. */
  4729. #define FOO(x) 'x'
  4730. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4731. int test (int i, double x);
  4732. struct s1 {int (*f) (int a);};
  4733. struct s2 {int (*f) (double a);};
  4734. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4735. int argc;
  4736. char **argv;
  4737. int
  4738. main ()
  4739. {
  4740. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4741. ;
  4742. return 0;
  4743. }
  4744. _ACEOF
  4745. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4746. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4747. do
  4748. CC="$ac_save_CC $ac_arg"
  4749. rm -f conftest.$ac_objext
  4750. if { (ac_try="$ac_compile"
  4751. case "(($ac_try" in
  4752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4753. *) ac_try_echo=$ac_try;;
  4754. esac
  4755. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4756. $as_echo "$ac_try_echo") >&5
  4757. (eval "$ac_compile") 2>conftest.er1
  4758. ac_status=$?
  4759. grep -v '^ *+' conftest.er1 >conftest.err
  4760. rm -f conftest.er1
  4761. cat conftest.err >&5
  4762. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4763. (exit $ac_status); } && {
  4764. test -z "$ac_c_werror_flag" ||
  4765. test ! -s conftest.err
  4766. } && test -s conftest.$ac_objext; then
  4767. ac_cv_prog_cc_c89=$ac_arg
  4768. else
  4769. $as_echo "$as_me: failed program was:" >&5
  4770. sed 's/^/| /' conftest.$ac_ext >&5
  4771. fi
  4772. rm -f core conftest.err conftest.$ac_objext
  4773. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4774. done
  4775. rm -f conftest.$ac_ext
  4776. CC=$ac_save_CC
  4777. fi
  4778. # AC_CACHE_VAL
  4779. case "x$ac_cv_prog_cc_c89" in
  4780. x)
  4781. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4782. $as_echo "none needed" >&6; } ;;
  4783. xno)
  4784. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4785. $as_echo "unsupported" >&6; } ;;
  4786. *)
  4787. CC="$CC $ac_cv_prog_cc_c89"
  4788. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4789. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4790. esac
  4791. ac_ext=c
  4792. ac_cpp='$CPP $CPPFLAGS'
  4793. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4794. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4795. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4796. depcc="$CC" am_compiler_list=
  4797. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4798. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4799. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4803. # We make a subdir and do the tests there. Otherwise we can end up
  4804. # making bogus files that we don't know about and never remove. For
  4805. # instance it was reported that on HP-UX the gcc test will end up
  4806. # making a dummy file named `D' -- because `-MD' means `put the output
  4807. # in D'.
  4808. mkdir conftest.dir
  4809. # Copy depcomp to subdir because otherwise we won't find it if we're
  4810. # using a relative directory.
  4811. cp "$am_depcomp" conftest.dir
  4812. cd conftest.dir
  4813. # We will build objects and dependencies in a subdirectory because
  4814. # it helps to detect inapplicable dependency modes. For instance
  4815. # both Tru64's cc and ICC support -MD to output dependencies as a
  4816. # side effect of compilation, but ICC will put the dependencies in
  4817. # the current directory while Tru64 will put them in the object
  4818. # directory.
  4819. mkdir sub
  4820. am_cv_CC_dependencies_compiler_type=none
  4821. if test "$am_compiler_list" = ""; then
  4822. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4823. fi
  4824. am__universal=false
  4825. case " $depcc " in #(
  4826. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4827. esac
  4828. for depmode in $am_compiler_list; do
  4829. # Setup a source with many dependencies, because some compilers
  4830. # like to wrap large dependency lists on column 80 (with \), and
  4831. # we should not choose a depcomp mode which is confused by this.
  4832. #
  4833. # We need to recreate these files for each test, as the compiler may
  4834. # overwrite some of them when testing with obscure command lines.
  4835. # This happens at least with the AIX C compiler.
  4836. : > sub/conftest.c
  4837. for i in 1 2 3 4 5 6; do
  4838. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4839. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4840. # Solaris 8's {/usr,}/bin/sh.
  4841. touch sub/conftst$i.h
  4842. done
  4843. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4844. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4845. # mode. It turns out that the SunPro C++ compiler does not properly
  4846. # handle `-M -o', and we need to detect this. Also, some Intel
  4847. # versions had trouble with output in subdirs
  4848. am__obj=sub/conftest.${OBJEXT-o}
  4849. am__minus_obj="-o $am__obj"
  4850. case $depmode in
  4851. gcc)
  4852. # This depmode causes a compiler race in universal mode.
  4853. test "$am__universal" = false || continue
  4854. ;;
  4855. nosideeffect)
  4856. # after this tag, mechanisms are not by side-effect, so they'll
  4857. # only be used when explicitly requested
  4858. if test "x$enable_dependency_tracking" = xyes; then
  4859. continue
  4860. else
  4861. break
  4862. fi
  4863. ;;
  4864. msvisualcpp | msvcmsys)
  4865. # This compiler won't grok `-c -o', but also, the minuso test has
  4866. # not run yet. These depmodes are late enough in the game, and
  4867. # so weak that their functioning should not be impacted.
  4868. am__obj=conftest.${OBJEXT-o}
  4869. am__minus_obj=
  4870. ;;
  4871. none) break ;;
  4872. esac
  4873. if depmode=$depmode \
  4874. source=sub/conftest.c object=$am__obj \
  4875. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4876. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4877. >/dev/null 2>conftest.err &&
  4878. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4879. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4880. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4881. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4882. # icc doesn't choke on unknown options, it will just issue warnings
  4883. # or remarks (even with -Werror). So we grep stderr for any message
  4884. # that says an option was ignored or not supported.
  4885. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4886. # icc: Command line warning: ignoring option '-M'; no argument required
  4887. # The diagnosis changed in icc 8.0:
  4888. # icc: Command line remark: option '-MP' not supported
  4889. if (grep 'ignoring option' conftest.err ||
  4890. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4891. am_cv_CC_dependencies_compiler_type=$depmode
  4892. break
  4893. fi
  4894. fi
  4895. done
  4896. cd ..
  4897. rm -rf conftest.dir
  4898. else
  4899. am_cv_CC_dependencies_compiler_type=none
  4900. fi
  4901. fi
  4902. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4903. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4904. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4905. if
  4906. test "x$enable_dependency_tracking" != xno \
  4907. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4908. am__fastdepCC_TRUE=
  4909. am__fastdepCC_FALSE='#'
  4910. else
  4911. am__fastdepCC_TRUE='#'
  4912. am__fastdepCC_FALSE=
  4913. fi
  4914. case $ac_cv_prog_cc_stdc in
  4915. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  4916. *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  4917. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  4918. if test "${ac_cv_prog_cc_c99+set}" = set; then
  4919. $as_echo_n "(cached) " >&6
  4920. else
  4921. ac_cv_prog_cc_c99=no
  4922. ac_save_CC=$CC
  4923. cat >conftest.$ac_ext <<_ACEOF
  4924. /* confdefs.h. */
  4925. _ACEOF
  4926. cat confdefs.h >>conftest.$ac_ext
  4927. cat >>conftest.$ac_ext <<_ACEOF
  4928. /* end confdefs.h. */
  4929. #include <stdarg.h>
  4930. #include <stdbool.h>
  4931. #include <stdlib.h>
  4932. #include <wchar.h>
  4933. #include <stdio.h>
  4934. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  4935. #define debug(...) fprintf (stderr, __VA_ARGS__)
  4936. #define showlist(...) puts (#__VA_ARGS__)
  4937. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  4938. static void
  4939. test_varargs_macros (void)
  4940. {
  4941. int x = 1234;
  4942. int y = 5678;
  4943. debug ("Flag");
  4944. debug ("X = %d\n", x);
  4945. showlist (The first, second, and third items.);
  4946. report (x>y, "x is %d but y is %d", x, y);
  4947. }
  4948. // Check long long types.
  4949. #define BIG64 18446744073709551615ull
  4950. #define BIG32 4294967295ul
  4951. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4952. #if !BIG_OK
  4953. your preprocessor is broken;
  4954. #endif
  4955. #if BIG_OK
  4956. #else
  4957. your preprocessor is broken;
  4958. #endif
  4959. static long long int bignum = -9223372036854775807LL;
  4960. static unsigned long long int ubignum = BIG64;
  4961. struct incomplete_array
  4962. {
  4963. int datasize;
  4964. double data[];
  4965. };
  4966. struct named_init {
  4967. int number;
  4968. const wchar_t *name;
  4969. double average;
  4970. };
  4971. typedef const char *ccp;
  4972. static inline int
  4973. test_restrict (ccp restrict text)
  4974. {
  4975. // See if C++-style comments work.
  4976. // Iterate through items via the restricted pointer.
  4977. // Also check for declarations in for loops.
  4978. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4979. continue;
  4980. return 0;
  4981. }
  4982. // Check varargs and va_copy.
  4983. static void
  4984. test_varargs (const char *format, ...)
  4985. {
  4986. va_list args;
  4987. va_start (args, format);
  4988. va_list args_copy;
  4989. va_copy (args_copy, args);
  4990. const char *str;
  4991. int number;
  4992. float fnumber;
  4993. while (*format)
  4994. {
  4995. switch (*format++)
  4996. {
  4997. case 's': // string
  4998. str = va_arg (args_copy, const char *);
  4999. break;
  5000. case 'd': // int
  5001. number = va_arg (args_copy, int);
  5002. break;
  5003. case 'f': // float
  5004. fnumber = va_arg (args_copy, double);
  5005. break;
  5006. default:
  5007. break;
  5008. }
  5009. }
  5010. va_end (args_copy);
  5011. va_end (args);
  5012. }
  5013. int
  5014. main ()
  5015. {
  5016. // Check bool.
  5017. _Bool success = false;
  5018. // Check restrict.
  5019. if (test_restrict ("String literal") == 0)
  5020. success = true;
  5021. char *restrict newvar = "Another string";
  5022. // Check varargs.
  5023. test_varargs ("s, d' f .", "string", 65, 34.234);
  5024. test_varargs_macros ();
  5025. // Check flexible array members.
  5026. struct incomplete_array *ia =
  5027. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  5028. ia->datasize = 10;
  5029. for (int i = 0; i < ia->datasize; ++i)
  5030. ia->data[i] = i * 1.234;
  5031. // Check named initializers.
  5032. struct named_init ni = {
  5033. .number = 34,
  5034. .name = L"Test wide string",
  5035. .average = 543.34343,
  5036. };
  5037. ni.number = 58;
  5038. int dynamic_array[ni.number];
  5039. dynamic_array[ni.number - 1] = 543;
  5040. // work around unused variable warnings
  5041. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  5042. || dynamic_array[ni.number - 1] != 543);
  5043. ;
  5044. return 0;
  5045. }
  5046. _ACEOF
  5047. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  5048. do
  5049. CC="$ac_save_CC $ac_arg"
  5050. rm -f conftest.$ac_objext
  5051. if { (ac_try="$ac_compile"
  5052. case "(($ac_try" in
  5053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5054. *) ac_try_echo=$ac_try;;
  5055. esac
  5056. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5057. $as_echo "$ac_try_echo") >&5
  5058. (eval "$ac_compile") 2>conftest.er1
  5059. ac_status=$?
  5060. grep -v '^ *+' conftest.er1 >conftest.err
  5061. rm -f conftest.er1
  5062. cat conftest.err >&5
  5063. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5064. (exit $ac_status); } && {
  5065. test -z "$ac_c_werror_flag" ||
  5066. test ! -s conftest.err
  5067. } && test -s conftest.$ac_objext; then
  5068. ac_cv_prog_cc_c99=$ac_arg
  5069. else
  5070. $as_echo "$as_me: failed program was:" >&5
  5071. sed 's/^/| /' conftest.$ac_ext >&5
  5072. fi
  5073. rm -f core conftest.err conftest.$ac_objext
  5074. test "x$ac_cv_prog_cc_c99" != "xno" && break
  5075. done
  5076. rm -f conftest.$ac_ext
  5077. CC=$ac_save_CC
  5078. fi
  5079. # AC_CACHE_VAL
  5080. case "x$ac_cv_prog_cc_c99" in
  5081. x)
  5082. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5083. $as_echo "none needed" >&6; } ;;
  5084. xno)
  5085. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5086. $as_echo "unsupported" >&6; } ;;
  5087. *)
  5088. CC="$CC $ac_cv_prog_cc_c99"
  5089. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  5090. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  5091. esac
  5092. if test "x$ac_cv_prog_cc_c99" != xno; then
  5093. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  5094. else
  5095. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  5096. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5097. if test "${ac_cv_prog_cc_c89+set}" = set; then
  5098. $as_echo_n "(cached) " >&6
  5099. else
  5100. ac_cv_prog_cc_c89=no
  5101. ac_save_CC=$CC
  5102. cat >conftest.$ac_ext <<_ACEOF
  5103. /* confdefs.h. */
  5104. _ACEOF
  5105. cat confdefs.h >>conftest.$ac_ext
  5106. cat >>conftest.$ac_ext <<_ACEOF
  5107. /* end confdefs.h. */
  5108. #include <stdarg.h>
  5109. #include <stdio.h>
  5110. #include <sys/types.h>
  5111. #include <sys/stat.h>
  5112. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5113. struct buf { int x; };
  5114. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5115. static char *e (p, i)
  5116. char **p;
  5117. int i;
  5118. {
  5119. return p[i];
  5120. }
  5121. static char *f (char * (*g) (char **, int), char **p, ...)
  5122. {
  5123. char *s;
  5124. va_list v;
  5125. va_start (v,p);
  5126. s = g (p, va_arg (v,int));
  5127. va_end (v);
  5128. return s;
  5129. }
  5130. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5131. function prototypes and stuff, but not '\xHH' hex character constants.
  5132. These don't provoke an error unfortunately, instead are silently treated
  5133. as 'x'. The following induces an error, until -std is added to get
  5134. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5135. array size at least. It's necessary to write '\x00'==0 to get something
  5136. that's true only with -std. */
  5137. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5138. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5139. inside strings and character constants. */
  5140. #define FOO(x) 'x'
  5141. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5142. int test (int i, double x);
  5143. struct s1 {int (*f) (int a);};
  5144. struct s2 {int (*f) (double a);};
  5145. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5146. int argc;
  5147. char **argv;
  5148. int
  5149. main ()
  5150. {
  5151. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5152. ;
  5153. return 0;
  5154. }
  5155. _ACEOF
  5156. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5157. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5158. do
  5159. CC="$ac_save_CC $ac_arg"
  5160. rm -f conftest.$ac_objext
  5161. if { (ac_try="$ac_compile"
  5162. case "(($ac_try" in
  5163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5164. *) ac_try_echo=$ac_try;;
  5165. esac
  5166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5167. $as_echo "$ac_try_echo") >&5
  5168. (eval "$ac_compile") 2>conftest.er1
  5169. ac_status=$?
  5170. grep -v '^ *+' conftest.er1 >conftest.err
  5171. rm -f conftest.er1
  5172. cat conftest.err >&5
  5173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5174. (exit $ac_status); } && {
  5175. test -z "$ac_c_werror_flag" ||
  5176. test ! -s conftest.err
  5177. } && test -s conftest.$ac_objext; then
  5178. ac_cv_prog_cc_c89=$ac_arg
  5179. else
  5180. $as_echo "$as_me: failed program was:" >&5
  5181. sed 's/^/| /' conftest.$ac_ext >&5
  5182. fi
  5183. rm -f core conftest.err conftest.$ac_objext
  5184. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5185. done
  5186. rm -f conftest.$ac_ext
  5187. CC=$ac_save_CC
  5188. fi
  5189. # AC_CACHE_VAL
  5190. case "x$ac_cv_prog_cc_c89" in
  5191. x)
  5192. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5193. $as_echo "none needed" >&6; } ;;
  5194. xno)
  5195. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5196. $as_echo "unsupported" >&6; } ;;
  5197. *)
  5198. CC="$CC $ac_cv_prog_cc_c89"
  5199. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  5200. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5201. esac
  5202. if test "x$ac_cv_prog_cc_c89" != xno; then
  5203. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  5204. else
  5205. ac_cv_prog_cc_stdc=no
  5206. fi
  5207. fi
  5208. ;;
  5209. esac
  5210. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  5211. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  5212. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  5213. $as_echo_n "(cached) " >&6
  5214. fi
  5215. case $ac_cv_prog_cc_stdc in
  5216. no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  5217. $as_echo "unsupported" >&6; } ;;
  5218. '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
  5219. $as_echo "none needed" >&6; } ;;
  5220. *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  5221. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  5222. esac
  5223. ac_ext=c
  5224. ac_cpp='$CPP $CPPFLAGS'
  5225. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5226. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5227. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5228. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5229. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5230. # On Suns, sometimes $CPP names a directory.
  5231. if test -n "$CPP" && test -d "$CPP"; then
  5232. CPP=
  5233. fi
  5234. if test -z "$CPP"; then
  5235. if test "${ac_cv_prog_CPP+set}" = set; then
  5236. $as_echo_n "(cached) " >&6
  5237. else
  5238. # Double quotes because CPP needs to be expanded
  5239. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5240. do
  5241. ac_preproc_ok=false
  5242. for ac_c_preproc_warn_flag in '' yes
  5243. do
  5244. # Use a header file that comes with gcc, so configuring glibc
  5245. # with a fresh cross-compiler works.
  5246. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5247. # <limits.h> exists even on freestanding compilers.
  5248. # On the NeXT, cc -E runs the code through the compiler's parser,
  5249. # not just through cpp. "Syntax error" is here to catch this case.
  5250. cat >conftest.$ac_ext <<_ACEOF
  5251. /* confdefs.h. */
  5252. _ACEOF
  5253. cat confdefs.h >>conftest.$ac_ext
  5254. cat >>conftest.$ac_ext <<_ACEOF
  5255. /* end confdefs.h. */
  5256. #ifdef __STDC__
  5257. # include <limits.h>
  5258. #else
  5259. # include <assert.h>
  5260. #endif
  5261. Syntax error
  5262. _ACEOF
  5263. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5264. case "(($ac_try" in
  5265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5266. *) ac_try_echo=$ac_try;;
  5267. esac
  5268. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5269. $as_echo "$ac_try_echo") >&5
  5270. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5271. ac_status=$?
  5272. grep -v '^ *+' conftest.er1 >conftest.err
  5273. rm -f conftest.er1
  5274. cat conftest.err >&5
  5275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5276. (exit $ac_status); } >/dev/null && {
  5277. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5278. test ! -s conftest.err
  5279. }; then
  5280. :
  5281. else
  5282. $as_echo "$as_me: failed program was:" >&5
  5283. sed 's/^/| /' conftest.$ac_ext >&5
  5284. # Broken: fails on valid input.
  5285. continue
  5286. fi
  5287. rm -f conftest.err conftest.$ac_ext
  5288. # OK, works on sane cases. Now check whether nonexistent headers
  5289. # can be detected and how.
  5290. cat >conftest.$ac_ext <<_ACEOF
  5291. /* confdefs.h. */
  5292. _ACEOF
  5293. cat confdefs.h >>conftest.$ac_ext
  5294. cat >>conftest.$ac_ext <<_ACEOF
  5295. /* end confdefs.h. */
  5296. #include <ac_nonexistent.h>
  5297. _ACEOF
  5298. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5299. case "(($ac_try" in
  5300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5301. *) ac_try_echo=$ac_try;;
  5302. esac
  5303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5304. $as_echo "$ac_try_echo") >&5
  5305. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5306. ac_status=$?
  5307. grep -v '^ *+' conftest.er1 >conftest.err
  5308. rm -f conftest.er1
  5309. cat conftest.err >&5
  5310. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5311. (exit $ac_status); } >/dev/null && {
  5312. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5313. test ! -s conftest.err
  5314. }; then
  5315. # Broken: success on invalid input.
  5316. continue
  5317. else
  5318. $as_echo "$as_me: failed program was:" >&5
  5319. sed 's/^/| /' conftest.$ac_ext >&5
  5320. # Passes both tests.
  5321. ac_preproc_ok=:
  5322. break
  5323. fi
  5324. rm -f conftest.err conftest.$ac_ext
  5325. done
  5326. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5327. rm -f conftest.err conftest.$ac_ext
  5328. if $ac_preproc_ok; then
  5329. break
  5330. fi
  5331. done
  5332. ac_cv_prog_CPP=$CPP
  5333. fi
  5334. CPP=$ac_cv_prog_CPP
  5335. else
  5336. ac_cv_prog_CPP=$CPP
  5337. fi
  5338. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5339. $as_echo "$CPP" >&6; }
  5340. ac_preproc_ok=false
  5341. for ac_c_preproc_warn_flag in '' yes
  5342. do
  5343. # Use a header file that comes with gcc, so configuring glibc
  5344. # with a fresh cross-compiler works.
  5345. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5346. # <limits.h> exists even on freestanding compilers.
  5347. # On the NeXT, cc -E runs the code through the compiler's parser,
  5348. # not just through cpp. "Syntax error" is here to catch this case.
  5349. cat >conftest.$ac_ext <<_ACEOF
  5350. /* confdefs.h. */
  5351. _ACEOF
  5352. cat confdefs.h >>conftest.$ac_ext
  5353. cat >>conftest.$ac_ext <<_ACEOF
  5354. /* end confdefs.h. */
  5355. #ifdef __STDC__
  5356. # include <limits.h>
  5357. #else
  5358. # include <assert.h>
  5359. #endif
  5360. Syntax error
  5361. _ACEOF
  5362. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5363. case "(($ac_try" in
  5364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5365. *) ac_try_echo=$ac_try;;
  5366. esac
  5367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5368. $as_echo "$ac_try_echo") >&5
  5369. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5370. ac_status=$?
  5371. grep -v '^ *+' conftest.er1 >conftest.err
  5372. rm -f conftest.er1
  5373. cat conftest.err >&5
  5374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5375. (exit $ac_status); } >/dev/null && {
  5376. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5377. test ! -s conftest.err
  5378. }; then
  5379. :
  5380. else
  5381. $as_echo "$as_me: failed program was:" >&5
  5382. sed 's/^/| /' conftest.$ac_ext >&5
  5383. # Broken: fails on valid input.
  5384. continue
  5385. fi
  5386. rm -f conftest.err conftest.$ac_ext
  5387. # OK, works on sane cases. Now check whether nonexistent headers
  5388. # can be detected and how.
  5389. cat >conftest.$ac_ext <<_ACEOF
  5390. /* confdefs.h. */
  5391. _ACEOF
  5392. cat confdefs.h >>conftest.$ac_ext
  5393. cat >>conftest.$ac_ext <<_ACEOF
  5394. /* end confdefs.h. */
  5395. #include <ac_nonexistent.h>
  5396. _ACEOF
  5397. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5398. case "(($ac_try" in
  5399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5400. *) ac_try_echo=$ac_try;;
  5401. esac
  5402. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5403. $as_echo "$ac_try_echo") >&5
  5404. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5405. ac_status=$?
  5406. grep -v '^ *+' conftest.er1 >conftest.err
  5407. rm -f conftest.er1
  5408. cat conftest.err >&5
  5409. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5410. (exit $ac_status); } >/dev/null && {
  5411. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5412. test ! -s conftest.err
  5413. }; then
  5414. # Broken: success on invalid input.
  5415. continue
  5416. else
  5417. $as_echo "$as_me: failed program was:" >&5
  5418. sed 's/^/| /' conftest.$ac_ext >&5
  5419. # Passes both tests.
  5420. ac_preproc_ok=:
  5421. break
  5422. fi
  5423. rm -f conftest.err conftest.$ac_ext
  5424. done
  5425. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5426. rm -f conftest.err conftest.$ac_ext
  5427. if $ac_preproc_ok; then
  5428. :
  5429. else
  5430. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5431. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5432. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5433. See \`config.log' for more details." >&5
  5434. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5435. See \`config.log' for more details." >&2;}
  5436. { (exit 1); exit 1; }; }; }
  5437. fi
  5438. ac_ext=c
  5439. ac_cpp='$CPP $CPPFLAGS'
  5440. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5441. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5442. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5443. # Find a good install program. We prefer a C program (faster),
  5444. # so one script is as good as another. But avoid the broken or
  5445. # incompatible versions:
  5446. # SysV /etc/install, /usr/sbin/install
  5447. # SunOS /usr/etc/install
  5448. # IRIX /sbin/install
  5449. # AIX /bin/install
  5450. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5451. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5452. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5453. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5454. # OS/2's system install, which has a completely different semantic
  5455. # ./install, which can be erroneously created by make from ./install.sh.
  5456. # Reject install programs that cannot install multiple files.
  5457. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  5458. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  5459. if test -z "$INSTALL"; then
  5460. if test "${ac_cv_path_install+set}" = set; then
  5461. $as_echo_n "(cached) " >&6
  5462. else
  5463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5464. for as_dir in $PATH
  5465. do
  5466. IFS=$as_save_IFS
  5467. test -z "$as_dir" && as_dir=.
  5468. # Account for people who put trailing slashes in PATH elements.
  5469. case $as_dir/ in
  5470. ./ | .// | /cC/* | \
  5471. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5472. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  5473. /usr/ucb/* ) ;;
  5474. *)
  5475. # OSF1 and SCO ODT 3.0 have their own names for install.
  5476. # Don't use installbsd from OSF since it installs stuff as root
  5477. # by default.
  5478. for ac_prog in ginstall scoinst install; do
  5479. for ac_exec_ext in '' $ac_executable_extensions; do
  5480. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  5481. if test $ac_prog = install &&
  5482. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5483. # AIX install. It has an incompatible calling convention.
  5484. :
  5485. elif test $ac_prog = install &&
  5486. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5487. # program-specific install script used by HP pwplus--don't use.
  5488. :
  5489. else
  5490. rm -rf conftest.one conftest.two conftest.dir
  5491. echo one > conftest.one
  5492. echo two > conftest.two
  5493. mkdir conftest.dir
  5494. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  5495. test -s conftest.one && test -s conftest.two &&
  5496. test -s conftest.dir/conftest.one &&
  5497. test -s conftest.dir/conftest.two
  5498. then
  5499. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5500. break 3
  5501. fi
  5502. fi
  5503. fi
  5504. done
  5505. done
  5506. ;;
  5507. esac
  5508. done
  5509. IFS=$as_save_IFS
  5510. rm -rf conftest.one conftest.two conftest.dir
  5511. fi
  5512. if test "${ac_cv_path_install+set}" = set; then
  5513. INSTALL=$ac_cv_path_install
  5514. else
  5515. # As a last resort, use the slow shell script. Don't cache a
  5516. # value for INSTALL within a source directory, because that will
  5517. # break other packages using the cache if that directory is
  5518. # removed, or if the value is a relative name.
  5519. INSTALL=$ac_install_sh
  5520. fi
  5521. fi
  5522. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  5523. $as_echo "$INSTALL" >&6; }
  5524. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5525. # It thinks the first close brace ends the variable substitution.
  5526. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5527. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5528. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5529. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  5530. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  5531. set x ${MAKE-make}
  5532. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  5533. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. cat >conftest.make <<\_ACEOF
  5537. SHELL = /bin/sh
  5538. all:
  5539. @echo '@@@%%%=$(MAKE)=@@@%%%'
  5540. _ACEOF
  5541. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  5542. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  5543. *@@@%%%=?*=@@@%%%*)
  5544. eval ac_cv_prog_make_${ac_make}_set=yes;;
  5545. *)
  5546. eval ac_cv_prog_make_${ac_make}_set=no;;
  5547. esac
  5548. rm -f conftest.make
  5549. fi
  5550. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  5551. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5552. $as_echo "yes" >&6; }
  5553. SET_MAKE=
  5554. else
  5555. { $as_echo "$as_me:$LINENO: result: no" >&5
  5556. $as_echo "no" >&6; }
  5557. SET_MAKE="MAKE=${MAKE-make}"
  5558. fi
  5559. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5560. $as_echo_n "checking whether ln -s works... " >&6; }
  5561. LN_S=$as_ln_s
  5562. if test "$LN_S" = "ln -s"; then
  5563. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5564. $as_echo "yes" >&6; }
  5565. else
  5566. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5567. $as_echo "no, using $LN_S" >&6; }
  5568. fi
  5569. # Check if LD supports linker scripts,
  5570. # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
  5571. # Check whether --enable-ld-version-script was given.
  5572. if test "${enable_ld_version_script+set}" = set; then
  5573. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  5574. fi
  5575. if test -z "$have_ld_version_script"; then
  5576. { $as_echo "$as_me:$LINENO: checking if LD -Wl,--version-script works" >&5
  5577. $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
  5578. save_LDFLAGS="$LDFLAGS"
  5579. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  5580. cat > conftest.map <<EOF
  5581. VERS_1 {
  5582. global: sym;
  5583. };
  5584. VERS_2 {
  5585. global: sym;
  5586. } VERS_1;
  5587. EOF
  5588. cat >conftest.$ac_ext <<_ACEOF
  5589. /* confdefs.h. */
  5590. _ACEOF
  5591. cat confdefs.h >>conftest.$ac_ext
  5592. cat >>conftest.$ac_ext <<_ACEOF
  5593. /* end confdefs.h. */
  5594. int
  5595. main ()
  5596. {
  5597. ;
  5598. return 0;
  5599. }
  5600. _ACEOF
  5601. rm -f conftest.$ac_objext conftest$ac_exeext
  5602. if { (ac_try="$ac_link"
  5603. case "(($ac_try" in
  5604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5605. *) ac_try_echo=$ac_try;;
  5606. esac
  5607. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5608. $as_echo "$ac_try_echo") >&5
  5609. (eval "$ac_link") 2>conftest.er1
  5610. ac_status=$?
  5611. grep -v '^ *+' conftest.er1 >conftest.err
  5612. rm -f conftest.er1
  5613. cat conftest.err >&5
  5614. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5615. (exit $ac_status); } && {
  5616. test -z "$ac_c_werror_flag" ||
  5617. test ! -s conftest.err
  5618. } && test -s conftest$ac_exeext && {
  5619. test "$cross_compiling" = yes ||
  5620. $as_test_x conftest$ac_exeext
  5621. }; then
  5622. have_ld_version_script=yes
  5623. else
  5624. $as_echo "$as_me: failed program was:" >&5
  5625. sed 's/^/| /' conftest.$ac_ext >&5
  5626. have_ld_version_script=no
  5627. fi
  5628. rm -rf conftest.dSYM
  5629. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5630. conftest$ac_exeext conftest.$ac_ext
  5631. rm -f conftest.map
  5632. LDFLAGS="$save_LDFLAGS"
  5633. { $as_echo "$as_me:$LINENO: result: $have_ld_version_script" >&5
  5634. $as_echo "$have_ld_version_script" >&6; }
  5635. fi
  5636. if test "$have_ld_version_script" = "yes"; then
  5637. HAVE_LD_VERSION_SCRIPT_TRUE=
  5638. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  5639. else
  5640. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  5641. HAVE_LD_VERSION_SCRIPT_FALSE=
  5642. fi
  5643. # See if compiler supports prototypes.
  5644. { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
  5645. $as_echo_n "checking for function prototypes... " >&6; }
  5646. if test "${ijg_cv_have_prototypes+set}" = set; then
  5647. $as_echo_n "(cached) " >&6
  5648. else
  5649. cat >conftest.$ac_ext <<_ACEOF
  5650. /* confdefs.h. */
  5651. _ACEOF
  5652. cat confdefs.h >>conftest.$ac_ext
  5653. cat >>conftest.$ac_ext <<_ACEOF
  5654. /* end confdefs.h. */
  5655. int testfunction (int arg1, int * arg2); /* check prototypes */
  5656. struct methods_struct { /* check method-pointer declarations */
  5657. int (*error_exit) (char *msgtext);
  5658. int (*trace_message) (char *msgtext);
  5659. int (*another_method) (void);
  5660. };
  5661. int testfunction (int arg1, int * arg2) /* check definitions */
  5662. { return arg2[arg1]; }
  5663. int test2function (void) /* check void arg list */
  5664. { return 0; }
  5665. int
  5666. main ()
  5667. {
  5668. ;
  5669. return 0;
  5670. }
  5671. _ACEOF
  5672. rm -f conftest.$ac_objext
  5673. if { (ac_try="$ac_compile"
  5674. case "(($ac_try" in
  5675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5676. *) ac_try_echo=$ac_try;;
  5677. esac
  5678. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5679. $as_echo "$ac_try_echo") >&5
  5680. (eval "$ac_compile") 2>conftest.er1
  5681. ac_status=$?
  5682. grep -v '^ *+' conftest.er1 >conftest.err
  5683. rm -f conftest.er1
  5684. cat conftest.err >&5
  5685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5686. (exit $ac_status); } && {
  5687. test -z "$ac_c_werror_flag" ||
  5688. test ! -s conftest.err
  5689. } && test -s conftest.$ac_objext; then
  5690. ijg_cv_have_prototypes=yes
  5691. else
  5692. $as_echo "$as_me: failed program was:" >&5
  5693. sed 's/^/| /' conftest.$ac_ext >&5
  5694. ijg_cv_have_prototypes=no
  5695. fi
  5696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5697. fi
  5698. { $as_echo "$as_me:$LINENO: result: $ijg_cv_have_prototypes" >&5
  5699. $as_echo "$ijg_cv_have_prototypes" >&6; }
  5700. if test $ijg_cv_have_prototypes = yes; then
  5701. cat >>confdefs.h <<\_ACEOF
  5702. #define HAVE_PROTOTYPES 1
  5703. _ACEOF
  5704. else
  5705. echo Your compiler does not seem to know about function prototypes.
  5706. echo Perhaps it needs a special switch to enable ANSI C mode.
  5707. echo If so, we recommend running configure like this:
  5708. echo " ./configure CC='cc -switch'"
  5709. echo where -switch is the proper switch.
  5710. fi
  5711. # Check header files
  5712. for ac_header in stddef.h stdlib.h locale.h
  5713. do
  5714. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5715. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5716. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5717. $as_echo_n "checking for $ac_header... " >&6; }
  5718. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5719. $as_echo_n "(cached) " >&6
  5720. fi
  5721. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5722. $as_echo "$as_val"'`
  5723. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5724. $as_echo "$ac_res" >&6; }
  5725. else
  5726. # Is the header compilable?
  5727. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5728. $as_echo_n "checking $ac_header usability... " >&6; }
  5729. cat >conftest.$ac_ext <<_ACEOF
  5730. /* confdefs.h. */
  5731. _ACEOF
  5732. cat confdefs.h >>conftest.$ac_ext
  5733. cat >>conftest.$ac_ext <<_ACEOF
  5734. /* end confdefs.h. */
  5735. $ac_includes_default
  5736. #include <$ac_header>
  5737. _ACEOF
  5738. rm -f conftest.$ac_objext
  5739. if { (ac_try="$ac_compile"
  5740. case "(($ac_try" in
  5741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5742. *) ac_try_echo=$ac_try;;
  5743. esac
  5744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5745. $as_echo "$ac_try_echo") >&5
  5746. (eval "$ac_compile") 2>conftest.er1
  5747. ac_status=$?
  5748. grep -v '^ *+' conftest.er1 >conftest.err
  5749. rm -f conftest.er1
  5750. cat conftest.err >&5
  5751. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5752. (exit $ac_status); } && {
  5753. test -z "$ac_c_werror_flag" ||
  5754. test ! -s conftest.err
  5755. } && test -s conftest.$ac_objext; then
  5756. ac_header_compiler=yes
  5757. else
  5758. $as_echo "$as_me: failed program was:" >&5
  5759. sed 's/^/| /' conftest.$ac_ext >&5
  5760. ac_header_compiler=no
  5761. fi
  5762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5763. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5764. $as_echo "$ac_header_compiler" >&6; }
  5765. # Is the header present?
  5766. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5767. $as_echo_n "checking $ac_header presence... " >&6; }
  5768. cat >conftest.$ac_ext <<_ACEOF
  5769. /* confdefs.h. */
  5770. _ACEOF
  5771. cat confdefs.h >>conftest.$ac_ext
  5772. cat >>conftest.$ac_ext <<_ACEOF
  5773. /* end confdefs.h. */
  5774. #include <$ac_header>
  5775. _ACEOF
  5776. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5777. case "(($ac_try" in
  5778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5779. *) ac_try_echo=$ac_try;;
  5780. esac
  5781. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5782. $as_echo "$ac_try_echo") >&5
  5783. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5784. ac_status=$?
  5785. grep -v '^ *+' conftest.er1 >conftest.err
  5786. rm -f conftest.er1
  5787. cat conftest.err >&5
  5788. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5789. (exit $ac_status); } >/dev/null && {
  5790. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5791. test ! -s conftest.err
  5792. }; then
  5793. ac_header_preproc=yes
  5794. else
  5795. $as_echo "$as_me: failed program was:" >&5
  5796. sed 's/^/| /' conftest.$ac_ext >&5
  5797. ac_header_preproc=no
  5798. fi
  5799. rm -f conftest.err conftest.$ac_ext
  5800. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5801. $as_echo "$ac_header_preproc" >&6; }
  5802. # So? What about this header?
  5803. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5804. yes:no: )
  5805. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5806. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5807. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5808. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5809. ac_header_preproc=yes
  5810. ;;
  5811. no:yes:* )
  5812. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5813. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5814. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5815. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5816. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5817. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5818. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5819. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5820. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5821. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5822. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5823. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5824. ;;
  5825. esac
  5826. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5827. $as_echo_n "checking for $ac_header... " >&6; }
  5828. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5829. $as_echo_n "(cached) " >&6
  5830. else
  5831. eval "$as_ac_Header=\$ac_header_preproc"
  5832. fi
  5833. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5834. $as_echo "$as_val"'`
  5835. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5836. $as_echo "$ac_res" >&6; }
  5837. fi
  5838. as_val=`eval 'as_val=${'$as_ac_Header'}
  5839. $as_echo "$as_val"'`
  5840. if test "x$as_val" = x""yes; then
  5841. cat >>confdefs.h <<_ACEOF
  5842. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5843. _ACEOF
  5844. fi
  5845. done
  5846. if test "${ac_cv_header_string_h+set}" = set; then
  5847. { $as_echo "$as_me:$LINENO: checking for string.h" >&5
  5848. $as_echo_n "checking for string.h... " >&6; }
  5849. if test "${ac_cv_header_string_h+set}" = set; then
  5850. $as_echo_n "(cached) " >&6
  5851. fi
  5852. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  5853. $as_echo "$ac_cv_header_string_h" >&6; }
  5854. else
  5855. # Is the header compilable?
  5856. { $as_echo "$as_me:$LINENO: checking string.h usability" >&5
  5857. $as_echo_n "checking string.h usability... " >&6; }
  5858. cat >conftest.$ac_ext <<_ACEOF
  5859. /* confdefs.h. */
  5860. _ACEOF
  5861. cat confdefs.h >>conftest.$ac_ext
  5862. cat >>conftest.$ac_ext <<_ACEOF
  5863. /* end confdefs.h. */
  5864. $ac_includes_default
  5865. #include <string.h>
  5866. _ACEOF
  5867. rm -f conftest.$ac_objext
  5868. if { (ac_try="$ac_compile"
  5869. case "(($ac_try" in
  5870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5871. *) ac_try_echo=$ac_try;;
  5872. esac
  5873. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5874. $as_echo "$ac_try_echo") >&5
  5875. (eval "$ac_compile") 2>conftest.er1
  5876. ac_status=$?
  5877. grep -v '^ *+' conftest.er1 >conftest.err
  5878. rm -f conftest.er1
  5879. cat conftest.err >&5
  5880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5881. (exit $ac_status); } && {
  5882. test -z "$ac_c_werror_flag" ||
  5883. test ! -s conftest.err
  5884. } && test -s conftest.$ac_objext; then
  5885. ac_header_compiler=yes
  5886. else
  5887. $as_echo "$as_me: failed program was:" >&5
  5888. sed 's/^/| /' conftest.$ac_ext >&5
  5889. ac_header_compiler=no
  5890. fi
  5891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5892. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5893. $as_echo "$ac_header_compiler" >&6; }
  5894. # Is the header present?
  5895. { $as_echo "$as_me:$LINENO: checking string.h presence" >&5
  5896. $as_echo_n "checking string.h presence... " >&6; }
  5897. cat >conftest.$ac_ext <<_ACEOF
  5898. /* confdefs.h. */
  5899. _ACEOF
  5900. cat confdefs.h >>conftest.$ac_ext
  5901. cat >>conftest.$ac_ext <<_ACEOF
  5902. /* end confdefs.h. */
  5903. #include <string.h>
  5904. _ACEOF
  5905. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5906. case "(($ac_try" in
  5907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5908. *) ac_try_echo=$ac_try;;
  5909. esac
  5910. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5911. $as_echo "$ac_try_echo") >&5
  5912. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5913. ac_status=$?
  5914. grep -v '^ *+' conftest.er1 >conftest.err
  5915. rm -f conftest.er1
  5916. cat conftest.err >&5
  5917. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5918. (exit $ac_status); } >/dev/null && {
  5919. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5920. test ! -s conftest.err
  5921. }; then
  5922. ac_header_preproc=yes
  5923. else
  5924. $as_echo "$as_me: failed program was:" >&5
  5925. sed 's/^/| /' conftest.$ac_ext >&5
  5926. ac_header_preproc=no
  5927. fi
  5928. rm -f conftest.err conftest.$ac_ext
  5929. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5930. $as_echo "$ac_header_preproc" >&6; }
  5931. # So? What about this header?
  5932. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5933. yes:no: )
  5934. { $as_echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5935. $as_echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5936. { $as_echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
  5937. $as_echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
  5938. ac_header_preproc=yes
  5939. ;;
  5940. no:yes:* )
  5941. { $as_echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
  5942. $as_echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
  5943. { $as_echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
  5944. $as_echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
  5945. { $as_echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
  5946. $as_echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
  5947. { $as_echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
  5948. $as_echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
  5949. { $as_echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
  5950. $as_echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
  5951. { $as_echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
  5952. $as_echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
  5953. ;;
  5954. esac
  5955. { $as_echo "$as_me:$LINENO: checking for string.h" >&5
  5956. $as_echo_n "checking for string.h... " >&6; }
  5957. if test "${ac_cv_header_string_h+set}" = set; then
  5958. $as_echo_n "(cached) " >&6
  5959. else
  5960. ac_cv_header_string_h=$ac_header_preproc
  5961. fi
  5962. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
  5963. $as_echo "$ac_cv_header_string_h" >&6; }
  5964. fi
  5965. if test "x$ac_cv_header_string_h" = x""yes; then
  5966. :
  5967. else
  5968. cat >>confdefs.h <<\_ACEOF
  5969. #define NEED_BSD_STRINGS 1
  5970. _ACEOF
  5971. fi
  5972. # See whether type size_t is defined in any ANSI-standard places;
  5973. # if not, perhaps it is defined in <sys/types.h>.
  5974. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  5975. $as_echo_n "checking for size_t... " >&6; }
  5976. cat >conftest.$ac_ext <<_ACEOF
  5977. /* confdefs.h. */
  5978. _ACEOF
  5979. cat confdefs.h >>conftest.$ac_ext
  5980. cat >>conftest.$ac_ext <<_ACEOF
  5981. /* end confdefs.h. */
  5982. #ifdef HAVE_STDDEF_H
  5983. #include <stddef.h>
  5984. #endif
  5985. #ifdef HAVE_STDLIB_H
  5986. #include <stdlib.h>
  5987. #endif
  5988. #include <stdio.h>
  5989. #ifdef NEED_BSD_STRINGS
  5990. #include <strings.h>
  5991. #else
  5992. #include <string.h>
  5993. #endif
  5994. typedef size_t my_size_t;
  5995. int
  5996. main ()
  5997. {
  5998. my_size_t foovar;
  5999. ;
  6000. return 0;
  6001. }
  6002. _ACEOF
  6003. rm -f conftest.$ac_objext
  6004. if { (ac_try="$ac_compile"
  6005. case "(($ac_try" in
  6006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6007. *) ac_try_echo=$ac_try;;
  6008. esac
  6009. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6010. $as_echo "$ac_try_echo") >&5
  6011. (eval "$ac_compile") 2>conftest.er1
  6012. ac_status=$?
  6013. grep -v '^ *+' conftest.er1 >conftest.err
  6014. rm -f conftest.er1
  6015. cat conftest.err >&5
  6016. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6017. (exit $ac_status); } && {
  6018. test -z "$ac_c_werror_flag" ||
  6019. test ! -s conftest.err
  6020. } && test -s conftest.$ac_objext; then
  6021. ijg_size_t_ok=yes
  6022. else
  6023. $as_echo "$as_me: failed program was:" >&5
  6024. sed 's/^/| /' conftest.$ac_ext >&5
  6025. ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
  6026. fi
  6027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6028. { $as_echo "$as_me:$LINENO: result: $ijg_size_t_ok" >&5
  6029. $as_echo "$ijg_size_t_ok" >&6; }
  6030. if test "$ijg_size_t_ok" != yes; then
  6031. if test "${ac_cv_header_sys_types_h+set}" = set; then
  6032. { $as_echo "$as_me:$LINENO: checking for sys/types.h" >&5
  6033. $as_echo_n "checking for sys/types.h... " >&6; }
  6034. if test "${ac_cv_header_sys_types_h+set}" = set; then
  6035. $as_echo_n "(cached) " >&6
  6036. fi
  6037. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
  6038. $as_echo "$ac_cv_header_sys_types_h" >&6; }
  6039. else
  6040. # Is the header compilable?
  6041. { $as_echo "$as_me:$LINENO: checking sys/types.h usability" >&5
  6042. $as_echo_n "checking sys/types.h usability... " >&6; }
  6043. cat >conftest.$ac_ext <<_ACEOF
  6044. /* confdefs.h. */
  6045. _ACEOF
  6046. cat confdefs.h >>conftest.$ac_ext
  6047. cat >>conftest.$ac_ext <<_ACEOF
  6048. /* end confdefs.h. */
  6049. $ac_includes_default
  6050. #include <sys/types.h>
  6051. _ACEOF
  6052. rm -f conftest.$ac_objext
  6053. if { (ac_try="$ac_compile"
  6054. case "(($ac_try" in
  6055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6056. *) ac_try_echo=$ac_try;;
  6057. esac
  6058. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6059. $as_echo "$ac_try_echo") >&5
  6060. (eval "$ac_compile") 2>conftest.er1
  6061. ac_status=$?
  6062. grep -v '^ *+' conftest.er1 >conftest.err
  6063. rm -f conftest.er1
  6064. cat conftest.err >&5
  6065. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6066. (exit $ac_status); } && {
  6067. test -z "$ac_c_werror_flag" ||
  6068. test ! -s conftest.err
  6069. } && test -s conftest.$ac_objext; then
  6070. ac_header_compiler=yes
  6071. else
  6072. $as_echo "$as_me: failed program was:" >&5
  6073. sed 's/^/| /' conftest.$ac_ext >&5
  6074. ac_header_compiler=no
  6075. fi
  6076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6077. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6078. $as_echo "$ac_header_compiler" >&6; }
  6079. # Is the header present?
  6080. { $as_echo "$as_me:$LINENO: checking sys/types.h presence" >&5
  6081. $as_echo_n "checking sys/types.h presence... " >&6; }
  6082. cat >conftest.$ac_ext <<_ACEOF
  6083. /* confdefs.h. */
  6084. _ACEOF
  6085. cat confdefs.h >>conftest.$ac_ext
  6086. cat >>conftest.$ac_ext <<_ACEOF
  6087. /* end confdefs.h. */
  6088. #include <sys/types.h>
  6089. _ACEOF
  6090. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6091. case "(($ac_try" in
  6092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6093. *) ac_try_echo=$ac_try;;
  6094. esac
  6095. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6096. $as_echo "$ac_try_echo") >&5
  6097. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6098. ac_status=$?
  6099. grep -v '^ *+' conftest.er1 >conftest.err
  6100. rm -f conftest.er1
  6101. cat conftest.err >&5
  6102. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6103. (exit $ac_status); } >/dev/null && {
  6104. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6105. test ! -s conftest.err
  6106. }; then
  6107. ac_header_preproc=yes
  6108. else
  6109. $as_echo "$as_me: failed program was:" >&5
  6110. sed 's/^/| /' conftest.$ac_ext >&5
  6111. ac_header_preproc=no
  6112. fi
  6113. rm -f conftest.err conftest.$ac_ext
  6114. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6115. $as_echo "$ac_header_preproc" >&6; }
  6116. # So? What about this header?
  6117. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6118. yes:no: )
  6119. { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
  6120. $as_echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6121. { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
  6122. $as_echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
  6123. ac_header_preproc=yes
  6124. ;;
  6125. no:yes:* )
  6126. { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
  6127. $as_echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
  6128. { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
  6129. $as_echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
  6130. { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
  6131. $as_echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
  6132. { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
  6133. $as_echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
  6134. { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
  6135. $as_echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
  6136. { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
  6137. $as_echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
  6138. ;;
  6139. esac
  6140. { $as_echo "$as_me:$LINENO: checking for sys/types.h" >&5
  6141. $as_echo_n "checking for sys/types.h... " >&6; }
  6142. if test "${ac_cv_header_sys_types_h+set}" = set; then
  6143. $as_echo_n "(cached) " >&6
  6144. else
  6145. ac_cv_header_sys_types_h=$ac_header_preproc
  6146. fi
  6147. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
  6148. $as_echo "$ac_cv_header_sys_types_h" >&6; }
  6149. fi
  6150. if test "x$ac_cv_header_sys_types_h" = x""yes; then
  6151. cat >>confdefs.h <<\_ACEOF
  6152. #define NEED_SYS_TYPES_H 1
  6153. _ACEOF
  6154. cat >conftest.$ac_ext <<_ACEOF
  6155. /* confdefs.h. */
  6156. _ACEOF
  6157. cat confdefs.h >>conftest.$ac_ext
  6158. cat >>conftest.$ac_ext <<_ACEOF
  6159. /* end confdefs.h. */
  6160. #include <sys/types.h>
  6161. _ACEOF
  6162. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6163. $EGREP "size_t" >/dev/null 2>&1; then
  6164. ijg_size_t_ok="size_t is in sys/types.h"
  6165. else
  6166. ijg_size_t_ok=no
  6167. fi
  6168. rm -f conftest*
  6169. else
  6170. ijg_size_t_ok=no
  6171. fi
  6172. { $as_echo "$as_me:$LINENO: result: $ijg_size_t_ok" >&5
  6173. $as_echo "$ijg_size_t_ok" >&6; }
  6174. if test "$ijg_size_t_ok" = no; then
  6175. echo Type size_t is not defined in any of the usual places.
  6176. echo Try putting '"typedef unsigned int size_t;"' in jconfig.h.
  6177. fi
  6178. fi
  6179. # Check compiler characteristics
  6180. { $as_echo "$as_me:$LINENO: checking for type unsigned char" >&5
  6181. $as_echo_n "checking for type unsigned char... " >&6; }
  6182. cat >conftest.$ac_ext <<_ACEOF
  6183. /* confdefs.h. */
  6184. _ACEOF
  6185. cat confdefs.h >>conftest.$ac_ext
  6186. cat >>conftest.$ac_ext <<_ACEOF
  6187. /* end confdefs.h. */
  6188. int
  6189. main ()
  6190. {
  6191. unsigned char un_char;
  6192. ;
  6193. return 0;
  6194. }
  6195. _ACEOF
  6196. rm -f conftest.$ac_objext
  6197. if { (ac_try="$ac_compile"
  6198. case "(($ac_try" in
  6199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6200. *) ac_try_echo=$ac_try;;
  6201. esac
  6202. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6203. $as_echo "$ac_try_echo") >&5
  6204. (eval "$ac_compile") 2>conftest.er1
  6205. ac_status=$?
  6206. grep -v '^ *+' conftest.er1 >conftest.err
  6207. rm -f conftest.er1
  6208. cat conftest.err >&5
  6209. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6210. (exit $ac_status); } && {
  6211. test -z "$ac_c_werror_flag" ||
  6212. test ! -s conftest.err
  6213. } && test -s conftest.$ac_objext; then
  6214. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6215. $as_echo "yes" >&6; }
  6216. cat >>confdefs.h <<\_ACEOF
  6217. #define HAVE_UNSIGNED_CHAR 1
  6218. _ACEOF
  6219. else
  6220. $as_echo "$as_me: failed program was:" >&5
  6221. sed 's/^/| /' conftest.$ac_ext >&5
  6222. { $as_echo "$as_me:$LINENO: result: no" >&5
  6223. $as_echo "no" >&6; }
  6224. fi
  6225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6226. { $as_echo "$as_me:$LINENO: checking for type unsigned short" >&5
  6227. $as_echo_n "checking for type unsigned short... " >&6; }
  6228. cat >conftest.$ac_ext <<_ACEOF
  6229. /* confdefs.h. */
  6230. _ACEOF
  6231. cat confdefs.h >>conftest.$ac_ext
  6232. cat >>conftest.$ac_ext <<_ACEOF
  6233. /* end confdefs.h. */
  6234. int
  6235. main ()
  6236. {
  6237. unsigned short un_short;
  6238. ;
  6239. return 0;
  6240. }
  6241. _ACEOF
  6242. rm -f conftest.$ac_objext
  6243. if { (ac_try="$ac_compile"
  6244. case "(($ac_try" in
  6245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6246. *) ac_try_echo=$ac_try;;
  6247. esac
  6248. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6249. $as_echo "$ac_try_echo") >&5
  6250. (eval "$ac_compile") 2>conftest.er1
  6251. ac_status=$?
  6252. grep -v '^ *+' conftest.er1 >conftest.err
  6253. rm -f conftest.er1
  6254. cat conftest.err >&5
  6255. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); } && {
  6257. test -z "$ac_c_werror_flag" ||
  6258. test ! -s conftest.err
  6259. } && test -s conftest.$ac_objext; then
  6260. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6261. $as_echo "yes" >&6; }
  6262. cat >>confdefs.h <<\_ACEOF
  6263. #define HAVE_UNSIGNED_SHORT 1
  6264. _ACEOF
  6265. else
  6266. $as_echo "$as_me: failed program was:" >&5
  6267. sed 's/^/| /' conftest.$ac_ext >&5
  6268. { $as_echo "$as_me:$LINENO: result: no" >&5
  6269. $as_echo "no" >&6; }
  6270. fi
  6271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6272. { $as_echo "$as_me:$LINENO: checking for type void" >&5
  6273. $as_echo_n "checking for type void... " >&6; }
  6274. cat >conftest.$ac_ext <<_ACEOF
  6275. /* confdefs.h. */
  6276. _ACEOF
  6277. cat confdefs.h >>conftest.$ac_ext
  6278. cat >>conftest.$ac_ext <<_ACEOF
  6279. /* end confdefs.h. */
  6280. /* Caution: a C++ compiler will insist on valid prototypes */
  6281. typedef void * void_ptr; /* check void * */
  6282. #ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
  6283. typedef void (*void_func) (int a, int b);
  6284. #else
  6285. typedef void (*void_func) ();
  6286. #endif
  6287. #ifdef HAVE_PROTOTYPES /* check void function result */
  6288. void test3function (void_ptr arg1, void_func arg2)
  6289. #else
  6290. void test3function (arg1, arg2)
  6291. void_ptr arg1;
  6292. void_func arg2;
  6293. #endif
  6294. {
  6295. char * locptr = (char *) arg1; /* check casting to and from void * */
  6296. arg1 = (void *) locptr;
  6297. (*arg2) (1, 2); /* check call of fcn returning void */
  6298. }
  6299. int
  6300. main ()
  6301. {
  6302. ;
  6303. return 0;
  6304. }
  6305. _ACEOF
  6306. rm -f conftest.$ac_objext
  6307. if { (ac_try="$ac_compile"
  6308. case "(($ac_try" in
  6309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6310. *) ac_try_echo=$ac_try;;
  6311. esac
  6312. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6313. $as_echo "$ac_try_echo") >&5
  6314. (eval "$ac_compile") 2>conftest.er1
  6315. ac_status=$?
  6316. grep -v '^ *+' conftest.er1 >conftest.err
  6317. rm -f conftest.er1
  6318. cat conftest.err >&5
  6319. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6320. (exit $ac_status); } && {
  6321. test -z "$ac_c_werror_flag" ||
  6322. test ! -s conftest.err
  6323. } && test -s conftest.$ac_objext; then
  6324. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6325. $as_echo "yes" >&6; }
  6326. else
  6327. $as_echo "$as_me: failed program was:" >&5
  6328. sed 's/^/| /' conftest.$ac_ext >&5
  6329. { $as_echo "$as_me:$LINENO: result: no" >&5
  6330. $as_echo "no" >&6; }
  6331. cat >>confdefs.h <<\_ACEOF
  6332. #define void char
  6333. _ACEOF
  6334. fi
  6335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6336. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6337. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  6338. if test "${ac_cv_c_const+set}" = set; then
  6339. $as_echo_n "(cached) " >&6
  6340. else
  6341. cat >conftest.$ac_ext <<_ACEOF
  6342. /* confdefs.h. */
  6343. _ACEOF
  6344. cat confdefs.h >>conftest.$ac_ext
  6345. cat >>conftest.$ac_ext <<_ACEOF
  6346. /* end confdefs.h. */
  6347. int
  6348. main ()
  6349. {
  6350. /* FIXME: Include the comments suggested by Paul. */
  6351. #ifndef __cplusplus
  6352. /* Ultrix mips cc rejects this. */
  6353. typedef int charset[2];
  6354. const charset cs;
  6355. /* SunOS 4.1.1 cc rejects this. */
  6356. char const *const *pcpcc;
  6357. char **ppc;
  6358. /* NEC SVR4.0.2 mips cc rejects this. */
  6359. struct point {int x, y;};
  6360. static struct point const zero = {0,0};
  6361. /* AIX XL C 1.02.0.0 rejects this.
  6362. It does not let you subtract one const X* pointer from another in
  6363. an arm of an if-expression whose if-part is not a constant
  6364. expression */
  6365. const char *g = "string";
  6366. pcpcc = &g + (g ? g-g : 0);
  6367. /* HPUX 7.0 cc rejects these. */
  6368. ++pcpcc;
  6369. ppc = (char**) pcpcc;
  6370. pcpcc = (char const *const *) ppc;
  6371. { /* SCO 3.2v4 cc rejects this. */
  6372. char *t;
  6373. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6374. *t++ = 0;
  6375. if (s) return 0;
  6376. }
  6377. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6378. int x[] = {25, 17};
  6379. const int *foo = &x[0];
  6380. ++foo;
  6381. }
  6382. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6383. typedef const int *iptr;
  6384. iptr p = 0;
  6385. ++p;
  6386. }
  6387. { /* AIX XL C 1.02.0.0 rejects this saying
  6388. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6389. struct s { int j; const int *ap[3]; };
  6390. struct s *b; b->j = 5;
  6391. }
  6392. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6393. const int foo = 10;
  6394. if (!foo) return 0;
  6395. }
  6396. return !cs[0] && !zero.x;
  6397. #endif
  6398. ;
  6399. return 0;
  6400. }
  6401. _ACEOF
  6402. rm -f conftest.$ac_objext
  6403. if { (ac_try="$ac_compile"
  6404. case "(($ac_try" in
  6405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6406. *) ac_try_echo=$ac_try;;
  6407. esac
  6408. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6409. $as_echo "$ac_try_echo") >&5
  6410. (eval "$ac_compile") 2>conftest.er1
  6411. ac_status=$?
  6412. grep -v '^ *+' conftest.er1 >conftest.err
  6413. rm -f conftest.er1
  6414. cat conftest.err >&5
  6415. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6416. (exit $ac_status); } && {
  6417. test -z "$ac_c_werror_flag" ||
  6418. test ! -s conftest.err
  6419. } && test -s conftest.$ac_objext; then
  6420. ac_cv_c_const=yes
  6421. else
  6422. $as_echo "$as_me: failed program was:" >&5
  6423. sed 's/^/| /' conftest.$ac_ext >&5
  6424. ac_cv_c_const=no
  6425. fi
  6426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6427. fi
  6428. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6429. $as_echo "$ac_cv_c_const" >&6; }
  6430. if test $ac_cv_c_const = no; then
  6431. cat >>confdefs.h <<\_ACEOF
  6432. #define const /**/
  6433. _ACEOF
  6434. fi
  6435. # Check for non-broken inline under various spellings
  6436. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  6437. $as_echo_n "checking for inline... " >&6; }
  6438. ijg_cv_inline=""
  6439. cat >conftest.$ac_ext <<_ACEOF
  6440. /* confdefs.h. */
  6441. _ACEOF
  6442. cat confdefs.h >>conftest.$ac_ext
  6443. cat >>conftest.$ac_ext <<_ACEOF
  6444. /* end confdefs.h. */
  6445. int
  6446. main ()
  6447. {
  6448. } __inline__ int foo() { return 0; }
  6449. int bar() { return foo();
  6450. ;
  6451. return 0;
  6452. }
  6453. _ACEOF
  6454. rm -f conftest.$ac_objext
  6455. if { (ac_try="$ac_compile"
  6456. case "(($ac_try" in
  6457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6458. *) ac_try_echo=$ac_try;;
  6459. esac
  6460. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6461. $as_echo "$ac_try_echo") >&5
  6462. (eval "$ac_compile") 2>conftest.er1
  6463. ac_status=$?
  6464. grep -v '^ *+' conftest.er1 >conftest.err
  6465. rm -f conftest.er1
  6466. cat conftest.err >&5
  6467. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6468. (exit $ac_status); } && {
  6469. test -z "$ac_c_werror_flag" ||
  6470. test ! -s conftest.err
  6471. } && test -s conftest.$ac_objext; then
  6472. ijg_cv_inline="__inline__"
  6473. else
  6474. $as_echo "$as_me: failed program was:" >&5
  6475. sed 's/^/| /' conftest.$ac_ext >&5
  6476. cat >conftest.$ac_ext <<_ACEOF
  6477. /* confdefs.h. */
  6478. _ACEOF
  6479. cat confdefs.h >>conftest.$ac_ext
  6480. cat >>conftest.$ac_ext <<_ACEOF
  6481. /* end confdefs.h. */
  6482. int
  6483. main ()
  6484. {
  6485. } __inline int foo() { return 0; }
  6486. int bar() { return foo();
  6487. ;
  6488. return 0;
  6489. }
  6490. _ACEOF
  6491. rm -f conftest.$ac_objext
  6492. if { (ac_try="$ac_compile"
  6493. case "(($ac_try" in
  6494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6495. *) ac_try_echo=$ac_try;;
  6496. esac
  6497. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6498. $as_echo "$ac_try_echo") >&5
  6499. (eval "$ac_compile") 2>conftest.er1
  6500. ac_status=$?
  6501. grep -v '^ *+' conftest.er1 >conftest.err
  6502. rm -f conftest.er1
  6503. cat conftest.err >&5
  6504. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6505. (exit $ac_status); } && {
  6506. test -z "$ac_c_werror_flag" ||
  6507. test ! -s conftest.err
  6508. } && test -s conftest.$ac_objext; then
  6509. ijg_cv_inline="__inline"
  6510. else
  6511. $as_echo "$as_me: failed program was:" >&5
  6512. sed 's/^/| /' conftest.$ac_ext >&5
  6513. cat >conftest.$ac_ext <<_ACEOF
  6514. /* confdefs.h. */
  6515. _ACEOF
  6516. cat confdefs.h >>conftest.$ac_ext
  6517. cat >>conftest.$ac_ext <<_ACEOF
  6518. /* end confdefs.h. */
  6519. int
  6520. main ()
  6521. {
  6522. } inline int foo() { return 0; }
  6523. int bar() { return foo();
  6524. ;
  6525. return 0;
  6526. }
  6527. _ACEOF
  6528. rm -f conftest.$ac_objext
  6529. if { (ac_try="$ac_compile"
  6530. case "(($ac_try" in
  6531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6532. *) ac_try_echo=$ac_try;;
  6533. esac
  6534. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6535. $as_echo "$ac_try_echo") >&5
  6536. (eval "$ac_compile") 2>conftest.er1
  6537. ac_status=$?
  6538. grep -v '^ *+' conftest.er1 >conftest.err
  6539. rm -f conftest.er1
  6540. cat conftest.err >&5
  6541. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6542. (exit $ac_status); } && {
  6543. test -z "$ac_c_werror_flag" ||
  6544. test ! -s conftest.err
  6545. } && test -s conftest.$ac_objext; then
  6546. ijg_cv_inline="inline"
  6547. else
  6548. $as_echo "$as_me: failed program was:" >&5
  6549. sed 's/^/| /' conftest.$ac_ext >&5
  6550. fi
  6551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6552. fi
  6553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6554. fi
  6555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6556. { $as_echo "$as_me:$LINENO: result: $ijg_cv_inline" >&5
  6557. $as_echo "$ijg_cv_inline" >&6; }
  6558. cat >>confdefs.h <<_ACEOF
  6559. #define INLINE $ijg_cv_inline
  6560. _ACEOF
  6561. # We cannot check for bogus warnings, but at least we can check for errors
  6562. { $as_echo "$as_me:$LINENO: checking for broken incomplete types" >&5
  6563. $as_echo_n "checking for broken incomplete types... " >&6; }
  6564. cat >conftest.$ac_ext <<_ACEOF
  6565. /* confdefs.h. */
  6566. _ACEOF
  6567. cat confdefs.h >>conftest.$ac_ext
  6568. cat >>conftest.$ac_ext <<_ACEOF
  6569. /* end confdefs.h. */
  6570. typedef struct undefined_structure * undef_struct_ptr;
  6571. int
  6572. main ()
  6573. {
  6574. ;
  6575. return 0;
  6576. }
  6577. _ACEOF
  6578. rm -f conftest.$ac_objext
  6579. if { (ac_try="$ac_compile"
  6580. case "(($ac_try" in
  6581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6582. *) ac_try_echo=$ac_try;;
  6583. esac
  6584. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6585. $as_echo "$ac_try_echo") >&5
  6586. (eval "$ac_compile") 2>conftest.er1
  6587. ac_status=$?
  6588. grep -v '^ *+' conftest.er1 >conftest.err
  6589. rm -f conftest.er1
  6590. cat conftest.err >&5
  6591. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6592. (exit $ac_status); } && {
  6593. test -z "$ac_c_werror_flag" ||
  6594. test ! -s conftest.err
  6595. } && test -s conftest.$ac_objext; then
  6596. { $as_echo "$as_me:$LINENO: result: ok" >&5
  6597. $as_echo "ok" >&6; }
  6598. else
  6599. $as_echo "$as_me: failed program was:" >&5
  6600. sed 's/^/| /' conftest.$ac_ext >&5
  6601. { $as_echo "$as_me:$LINENO: result: broken" >&5
  6602. $as_echo "broken" >&6; }
  6603. cat >>confdefs.h <<\_ACEOF
  6604. #define INCOMPLETE_TYPES_BROKEN 1
  6605. _ACEOF
  6606. fi
  6607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6608. # Test whether global names are unique to at least 15 chars
  6609. { $as_echo "$as_me:$LINENO: checking for short external names" >&5
  6610. $as_echo_n "checking for short external names... " >&6; }
  6611. cat >conftest.$ac_ext <<_ACEOF
  6612. /* confdefs.h. */
  6613. _ACEOF
  6614. cat confdefs.h >>conftest.$ac_ext
  6615. cat >>conftest.$ac_ext <<_ACEOF
  6616. /* end confdefs.h. */
  6617. int possibly_duplicate_function () { return 0; }
  6618. int possibly_dupli_function () { return 1; }
  6619. int
  6620. main ()
  6621. {
  6622. ;
  6623. return 0;
  6624. }
  6625. _ACEOF
  6626. rm -f conftest.$ac_objext conftest$ac_exeext
  6627. if { (ac_try="$ac_link"
  6628. case "(($ac_try" in
  6629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6630. *) ac_try_echo=$ac_try;;
  6631. esac
  6632. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6633. $as_echo "$ac_try_echo") >&5
  6634. (eval "$ac_link") 2>conftest.er1
  6635. ac_status=$?
  6636. grep -v '^ *+' conftest.er1 >conftest.err
  6637. rm -f conftest.er1
  6638. cat conftest.err >&5
  6639. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6640. (exit $ac_status); } && {
  6641. test -z "$ac_c_werror_flag" ||
  6642. test ! -s conftest.err
  6643. } && test -s conftest$ac_exeext && {
  6644. test "$cross_compiling" = yes ||
  6645. $as_test_x conftest$ac_exeext
  6646. }; then
  6647. { $as_echo "$as_me:$LINENO: result: ok" >&5
  6648. $as_echo "ok" >&6; }
  6649. else
  6650. $as_echo "$as_me: failed program was:" >&5
  6651. sed 's/^/| /' conftest.$ac_ext >&5
  6652. { $as_echo "$as_me:$LINENO: result: short" >&5
  6653. $as_echo "short" >&6; }
  6654. cat >>confdefs.h <<\_ACEOF
  6655. #define NEED_SHORT_EXTERNAL_NAMES 1
  6656. _ACEOF
  6657. fi
  6658. rm -rf conftest.dSYM
  6659. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6660. conftest$ac_exeext conftest.$ac_ext
  6661. # Run-time checks
  6662. { $as_echo "$as_me:$LINENO: checking to see if char is signed" >&5
  6663. $as_echo_n "checking to see if char is signed... " >&6; }
  6664. if test "$cross_compiling" = yes; then
  6665. echo Assuming that char is signed on target machine.
  6666. echo If it is unsigned, this will be a little bit inefficient.
  6667. else
  6668. cat >conftest.$ac_ext <<_ACEOF
  6669. /* confdefs.h. */
  6670. _ACEOF
  6671. cat confdefs.h >>conftest.$ac_ext
  6672. cat >>conftest.$ac_ext <<_ACEOF
  6673. /* end confdefs.h. */
  6674. #ifdef HAVE_PROTOTYPES
  6675. int is_char_signed (int arg)
  6676. #else
  6677. int is_char_signed (arg)
  6678. int arg;
  6679. #endif
  6680. {
  6681. if (arg == 189) { /* expected result for unsigned char */
  6682. return 0; /* type char is unsigned */
  6683. }
  6684. else if (arg != -67) { /* expected result for signed char */
  6685. printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
  6686. printf("I fear the JPEG software will not work at all.\n\n");
  6687. }
  6688. return 1; /* assume char is signed otherwise */
  6689. }
  6690. char signed_char_check = (char) (-67);
  6691. int main() {
  6692. exit(is_char_signed((int) signed_char_check));
  6693. }
  6694. _ACEOF
  6695. rm -f conftest$ac_exeext
  6696. if { (ac_try="$ac_link"
  6697. case "(($ac_try" in
  6698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6699. *) ac_try_echo=$ac_try;;
  6700. esac
  6701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6702. $as_echo "$ac_try_echo") >&5
  6703. (eval "$ac_link") 2>&5
  6704. ac_status=$?
  6705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6706. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6707. { (case "(($ac_try" in
  6708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6709. *) ac_try_echo=$ac_try;;
  6710. esac
  6711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6712. $as_echo "$ac_try_echo") >&5
  6713. (eval "$ac_try") 2>&5
  6714. ac_status=$?
  6715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6716. (exit $ac_status); }; }; then
  6717. { $as_echo "$as_me:$LINENO: result: no" >&5
  6718. $as_echo "no" >&6; }
  6719. cat >>confdefs.h <<\_ACEOF
  6720. #define CHAR_IS_UNSIGNED 1
  6721. _ACEOF
  6722. else
  6723. $as_echo "$as_me: program exited with status $ac_status" >&5
  6724. $as_echo "$as_me: failed program was:" >&5
  6725. sed 's/^/| /' conftest.$ac_ext >&5
  6726. ( exit $ac_status )
  6727. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6728. $as_echo "yes" >&6; }
  6729. fi
  6730. rm -rf conftest.dSYM
  6731. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6732. fi
  6733. { $as_echo "$as_me:$LINENO: checking to see if right shift is signed" >&5
  6734. $as_echo_n "checking to see if right shift is signed... " >&6; }
  6735. if test "$cross_compiling" = yes; then
  6736. { $as_echo "$as_me:$LINENO: result: Assuming that right shift is signed on target machine." >&5
  6737. $as_echo "Assuming that right shift is signed on target machine." >&6; }
  6738. else
  6739. cat >conftest.$ac_ext <<_ACEOF
  6740. /* confdefs.h. */
  6741. _ACEOF
  6742. cat confdefs.h >>conftest.$ac_ext
  6743. cat >>conftest.$ac_ext <<_ACEOF
  6744. /* end confdefs.h. */
  6745. #ifdef HAVE_PROTOTYPES
  6746. int is_shifting_signed (long arg)
  6747. #else
  6748. int is_shifting_signed (arg)
  6749. long arg;
  6750. #endif
  6751. /* See whether right-shift on a long is signed or not. */
  6752. {
  6753. long res = arg >> 4;
  6754. if (res == -0x7F7E80CL) { /* expected result for signed shift */
  6755. return 1; /* right shift is signed */
  6756. }
  6757. /* see if unsigned-shift hack will fix it. */
  6758. /* we can't just test exact value since it depends on width of long... */
  6759. res |= (~0L) << (32-4);
  6760. if (res == -0x7F7E80CL) { /* expected result now? */
  6761. return 0; /* right shift is unsigned */
  6762. }
  6763. printf("Right shift isn't acting as I expect it to.\n");
  6764. printf("I fear the JPEG software will not work at all.\n\n");
  6765. return 0; /* try it with unsigned anyway */
  6766. }
  6767. int main() {
  6768. exit(is_shifting_signed(-0x7F7E80B1L));
  6769. }
  6770. _ACEOF
  6771. rm -f conftest$ac_exeext
  6772. if { (ac_try="$ac_link"
  6773. case "(($ac_try" in
  6774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6775. *) ac_try_echo=$ac_try;;
  6776. esac
  6777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6778. $as_echo "$ac_try_echo") >&5
  6779. (eval "$ac_link") 2>&5
  6780. ac_status=$?
  6781. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6782. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6783. { (case "(($ac_try" in
  6784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6785. *) ac_try_echo=$ac_try;;
  6786. esac
  6787. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6788. $as_echo "$ac_try_echo") >&5
  6789. (eval "$ac_try") 2>&5
  6790. ac_status=$?
  6791. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6792. (exit $ac_status); }; }; then
  6793. { $as_echo "$as_me:$LINENO: result: no" >&5
  6794. $as_echo "no" >&6; }
  6795. cat >>confdefs.h <<\_ACEOF
  6796. #define RIGHT_SHIFT_IS_UNSIGNED 1
  6797. _ACEOF
  6798. else
  6799. $as_echo "$as_me: program exited with status $ac_status" >&5
  6800. $as_echo "$as_me: failed program was:" >&5
  6801. sed 's/^/| /' conftest.$ac_ext >&5
  6802. ( exit $ac_status )
  6803. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6804. $as_echo "yes" >&6; }
  6805. fi
  6806. rm -rf conftest.dSYM
  6807. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6808. fi
  6809. { $as_echo "$as_me:$LINENO: checking to see if fopen accepts b spec" >&5
  6810. $as_echo_n "checking to see if fopen accepts b spec... " >&6; }
  6811. if test "$cross_compiling" = yes; then
  6812. { $as_echo "$as_me:$LINENO: result: Assuming that it does." >&5
  6813. $as_echo "Assuming that it does." >&6; }
  6814. else
  6815. cat >conftest.$ac_ext <<_ACEOF
  6816. /* confdefs.h. */
  6817. _ACEOF
  6818. cat confdefs.h >>conftest.$ac_ext
  6819. cat >>conftest.$ac_ext <<_ACEOF
  6820. /* end confdefs.h. */
  6821. #include <stdio.h>
  6822. int main() {
  6823. if (fopen("conftestdata", "wb") != NULL)
  6824. exit(0);
  6825. exit(1);
  6826. }
  6827. _ACEOF
  6828. rm -f conftest$ac_exeext
  6829. if { (ac_try="$ac_link"
  6830. case "(($ac_try" in
  6831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6832. *) ac_try_echo=$ac_try;;
  6833. esac
  6834. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6835. $as_echo "$ac_try_echo") >&5
  6836. (eval "$ac_link") 2>&5
  6837. ac_status=$?
  6838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6839. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6840. { (case "(($ac_try" in
  6841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6842. *) ac_try_echo=$ac_try;;
  6843. esac
  6844. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6845. $as_echo "$ac_try_echo") >&5
  6846. (eval "$ac_try") 2>&5
  6847. ac_status=$?
  6848. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6849. (exit $ac_status); }; }; then
  6850. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6851. $as_echo "yes" >&6; }
  6852. else
  6853. $as_echo "$as_me: program exited with status $ac_status" >&5
  6854. $as_echo "$as_me: failed program was:" >&5
  6855. sed 's/^/| /' conftest.$ac_ext >&5
  6856. ( exit $ac_status )
  6857. { $as_echo "$as_me:$LINENO: result: no" >&5
  6858. $as_echo "no" >&6; }
  6859. cat >>confdefs.h <<\_ACEOF
  6860. #define DONT_USE_B_MODE 1
  6861. _ACEOF
  6862. fi
  6863. rm -rf conftest.dSYM
  6864. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6865. fi
  6866. # Configure libtool
  6867. enable_win32_dll=yes
  6868. case $host in
  6869. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  6870. if test -n "$ac_tool_prefix"; then
  6871. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6872. set dummy ${ac_tool_prefix}as; ac_word=$2
  6873. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6874. $as_echo_n "checking for $ac_word... " >&6; }
  6875. if test "${ac_cv_prog_AS+set}" = set; then
  6876. $as_echo_n "(cached) " >&6
  6877. else
  6878. if test -n "$AS"; then
  6879. ac_cv_prog_AS="$AS" # Let the user override the test.
  6880. else
  6881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6882. for as_dir in $PATH
  6883. do
  6884. IFS=$as_save_IFS
  6885. test -z "$as_dir" && as_dir=.
  6886. for ac_exec_ext in '' $ac_executable_extensions; do
  6887. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6888. ac_cv_prog_AS="${ac_tool_prefix}as"
  6889. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6890. break 2
  6891. fi
  6892. done
  6893. done
  6894. IFS=$as_save_IFS
  6895. fi
  6896. fi
  6897. AS=$ac_cv_prog_AS
  6898. if test -n "$AS"; then
  6899. { $as_echo "$as_me:$LINENO: result: $AS" >&5
  6900. $as_echo "$AS" >&6; }
  6901. else
  6902. { $as_echo "$as_me:$LINENO: result: no" >&5
  6903. $as_echo "no" >&6; }
  6904. fi
  6905. fi
  6906. if test -z "$ac_cv_prog_AS"; then
  6907. ac_ct_AS=$AS
  6908. # Extract the first word of "as", so it can be a program name with args.
  6909. set dummy as; ac_word=$2
  6910. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6911. $as_echo_n "checking for $ac_word... " >&6; }
  6912. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  6913. $as_echo_n "(cached) " >&6
  6914. else
  6915. if test -n "$ac_ct_AS"; then
  6916. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6917. else
  6918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6919. for as_dir in $PATH
  6920. do
  6921. IFS=$as_save_IFS
  6922. test -z "$as_dir" && as_dir=.
  6923. for ac_exec_ext in '' $ac_executable_extensions; do
  6924. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6925. ac_cv_prog_ac_ct_AS="as"
  6926. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6927. break 2
  6928. fi
  6929. done
  6930. done
  6931. IFS=$as_save_IFS
  6932. fi
  6933. fi
  6934. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6935. if test -n "$ac_ct_AS"; then
  6936. { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  6937. $as_echo "$ac_ct_AS" >&6; }
  6938. else
  6939. { $as_echo "$as_me:$LINENO: result: no" >&5
  6940. $as_echo "no" >&6; }
  6941. fi
  6942. if test "x$ac_ct_AS" = x; then
  6943. AS="false"
  6944. else
  6945. case $cross_compiling:$ac_tool_warned in
  6946. yes:)
  6947. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6948. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6949. ac_tool_warned=yes ;;
  6950. esac
  6951. AS=$ac_ct_AS
  6952. fi
  6953. else
  6954. AS="$ac_cv_prog_AS"
  6955. fi
  6956. if test -n "$ac_tool_prefix"; then
  6957. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6958. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6959. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6960. $as_echo_n "checking for $ac_word... " >&6; }
  6961. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  6962. $as_echo_n "(cached) " >&6
  6963. else
  6964. if test -n "$DLLTOOL"; then
  6965. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6966. else
  6967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6968. for as_dir in $PATH
  6969. do
  6970. IFS=$as_save_IFS
  6971. test -z "$as_dir" && as_dir=.
  6972. for ac_exec_ext in '' $ac_executable_extensions; do
  6973. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6974. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6975. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6976. break 2
  6977. fi
  6978. done
  6979. done
  6980. IFS=$as_save_IFS
  6981. fi
  6982. fi
  6983. DLLTOOL=$ac_cv_prog_DLLTOOL
  6984. if test -n "$DLLTOOL"; then
  6985. { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  6986. $as_echo "$DLLTOOL" >&6; }
  6987. else
  6988. { $as_echo "$as_me:$LINENO: result: no" >&5
  6989. $as_echo "no" >&6; }
  6990. fi
  6991. fi
  6992. if test -z "$ac_cv_prog_DLLTOOL"; then
  6993. ac_ct_DLLTOOL=$DLLTOOL
  6994. # Extract the first word of "dlltool", so it can be a program name with args.
  6995. set dummy dlltool; ac_word=$2
  6996. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6997. $as_echo_n "checking for $ac_word... " >&6; }
  6998. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  6999. $as_echo_n "(cached) " >&6
  7000. else
  7001. if test -n "$ac_ct_DLLTOOL"; then
  7002. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7003. else
  7004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7005. for as_dir in $PATH
  7006. do
  7007. IFS=$as_save_IFS
  7008. test -z "$as_dir" && as_dir=.
  7009. for ac_exec_ext in '' $ac_executable_extensions; do
  7010. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7011. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7012. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7013. break 2
  7014. fi
  7015. done
  7016. done
  7017. IFS=$as_save_IFS
  7018. fi
  7019. fi
  7020. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7021. if test -n "$ac_ct_DLLTOOL"; then
  7022. { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  7023. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7024. else
  7025. { $as_echo "$as_me:$LINENO: result: no" >&5
  7026. $as_echo "no" >&6; }
  7027. fi
  7028. if test "x$ac_ct_DLLTOOL" = x; then
  7029. DLLTOOL="false"
  7030. else
  7031. case $cross_compiling:$ac_tool_warned in
  7032. yes:)
  7033. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7034. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7035. ac_tool_warned=yes ;;
  7036. esac
  7037. DLLTOOL=$ac_ct_DLLTOOL
  7038. fi
  7039. else
  7040. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7041. fi
  7042. if test -n "$ac_tool_prefix"; then
  7043. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7044. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7045. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7046. $as_echo_n "checking for $ac_word... " >&6; }
  7047. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. if test -n "$OBJDUMP"; then
  7051. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7052. else
  7053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7054. for as_dir in $PATH
  7055. do
  7056. IFS=$as_save_IFS
  7057. test -z "$as_dir" && as_dir=.
  7058. for ac_exec_ext in '' $ac_executable_extensions; do
  7059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7060. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7061. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7062. break 2
  7063. fi
  7064. done
  7065. done
  7066. IFS=$as_save_IFS
  7067. fi
  7068. fi
  7069. OBJDUMP=$ac_cv_prog_OBJDUMP
  7070. if test -n "$OBJDUMP"; then
  7071. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  7072. $as_echo "$OBJDUMP" >&6; }
  7073. else
  7074. { $as_echo "$as_me:$LINENO: result: no" >&5
  7075. $as_echo "no" >&6; }
  7076. fi
  7077. fi
  7078. if test -z "$ac_cv_prog_OBJDUMP"; then
  7079. ac_ct_OBJDUMP=$OBJDUMP
  7080. # Extract the first word of "objdump", so it can be a program name with args.
  7081. set dummy objdump; ac_word=$2
  7082. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7083. $as_echo_n "checking for $ac_word... " >&6; }
  7084. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  7085. $as_echo_n "(cached) " >&6
  7086. else
  7087. if test -n "$ac_ct_OBJDUMP"; then
  7088. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7089. else
  7090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7091. for as_dir in $PATH
  7092. do
  7093. IFS=$as_save_IFS
  7094. test -z "$as_dir" && as_dir=.
  7095. for ac_exec_ext in '' $ac_executable_extensions; do
  7096. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7097. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7098. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7099. break 2
  7100. fi
  7101. done
  7102. done
  7103. IFS=$as_save_IFS
  7104. fi
  7105. fi
  7106. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7107. if test -n "$ac_ct_OBJDUMP"; then
  7108. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  7109. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7110. else
  7111. { $as_echo "$as_me:$LINENO: result: no" >&5
  7112. $as_echo "no" >&6; }
  7113. fi
  7114. if test "x$ac_ct_OBJDUMP" = x; then
  7115. OBJDUMP="false"
  7116. else
  7117. case $cross_compiling:$ac_tool_warned in
  7118. yes:)
  7119. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7120. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7121. ac_tool_warned=yes ;;
  7122. esac
  7123. OBJDUMP=$ac_ct_OBJDUMP
  7124. fi
  7125. else
  7126. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7127. fi
  7128. ;;
  7129. esac
  7130. test -z "$AS" && AS=as
  7131. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7132. test -z "$OBJDUMP" && OBJDUMP=objdump
  7133. case `pwd` in
  7134. *\ * | *\ *)
  7135. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  7136. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  7137. esac
  7138. macro_version='2.2.6'
  7139. macro_revision='1.3012'
  7140. ltmain="$ac_aux_dir/ltmain.sh"
  7141. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  7142. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  7143. if test "${ac_cv_path_SED+set}" = set; then
  7144. $as_echo_n "(cached) " >&6
  7145. else
  7146. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7147. for ac_i in 1 2 3 4 5 6 7; do
  7148. ac_script="$ac_script$as_nl$ac_script"
  7149. done
  7150. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  7151. $as_unset ac_script || ac_script=
  7152. if test -z "$SED"; then
  7153. ac_path_SED_found=false
  7154. # Loop through the user's path and test for each of PROGNAME-LIST
  7155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7156. for as_dir in $PATH
  7157. do
  7158. IFS=$as_save_IFS
  7159. test -z "$as_dir" && as_dir=.
  7160. for ac_prog in sed gsed; do
  7161. for ac_exec_ext in '' $ac_executable_extensions; do
  7162. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  7163. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  7164. # Check for GNU ac_path_SED and select it if it is found.
  7165. # Check for GNU $ac_path_SED
  7166. case `"$ac_path_SED" --version 2>&1` in
  7167. *GNU*)
  7168. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7169. *)
  7170. ac_count=0
  7171. $as_echo_n 0123456789 >"conftest.in"
  7172. while :
  7173. do
  7174. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7175. mv "conftest.tmp" "conftest.in"
  7176. cp "conftest.in" "conftest.nl"
  7177. $as_echo '' >> "conftest.nl"
  7178. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7179. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7180. ac_count=`expr $ac_count + 1`
  7181. if test $ac_count -gt ${ac_path_SED_max-0}; then
  7182. # Best one so far, save it but keep looking for a better one
  7183. ac_cv_path_SED="$ac_path_SED"
  7184. ac_path_SED_max=$ac_count
  7185. fi
  7186. # 10*(2^10) chars as input seems more than enough
  7187. test $ac_count -gt 10 && break
  7188. done
  7189. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7190. esac
  7191. $ac_path_SED_found && break 3
  7192. done
  7193. done
  7194. done
  7195. IFS=$as_save_IFS
  7196. if test -z "$ac_cv_path_SED"; then
  7197. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  7198. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  7199. { (exit 1); exit 1; }; }
  7200. fi
  7201. else
  7202. ac_cv_path_SED=$SED
  7203. fi
  7204. fi
  7205. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  7206. $as_echo "$ac_cv_path_SED" >&6; }
  7207. SED="$ac_cv_path_SED"
  7208. rm -f conftest.sed
  7209. test -z "$SED" && SED=sed
  7210. Xsed="$SED -e 1s/^X//"
  7211. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  7212. $as_echo_n "checking for fgrep... " >&6; }
  7213. if test "${ac_cv_path_FGREP+set}" = set; then
  7214. $as_echo_n "(cached) " >&6
  7215. else
  7216. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  7217. then ac_cv_path_FGREP="$GREP -F"
  7218. else
  7219. if test -z "$FGREP"; then
  7220. ac_path_FGREP_found=false
  7221. # Loop through the user's path and test for each of PROGNAME-LIST
  7222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7223. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7224. do
  7225. IFS=$as_save_IFS
  7226. test -z "$as_dir" && as_dir=.
  7227. for ac_prog in fgrep; do
  7228. for ac_exec_ext in '' $ac_executable_extensions; do
  7229. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  7230. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  7231. # Check for GNU ac_path_FGREP and select it if it is found.
  7232. # Check for GNU $ac_path_FGREP
  7233. case `"$ac_path_FGREP" --version 2>&1` in
  7234. *GNU*)
  7235. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  7236. *)
  7237. ac_count=0
  7238. $as_echo_n 0123456789 >"conftest.in"
  7239. while :
  7240. do
  7241. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7242. mv "conftest.tmp" "conftest.in"
  7243. cp "conftest.in" "conftest.nl"
  7244. $as_echo 'FGREP' >> "conftest.nl"
  7245. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7246. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7247. ac_count=`expr $ac_count + 1`
  7248. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  7249. # Best one so far, save it but keep looking for a better one
  7250. ac_cv_path_FGREP="$ac_path_FGREP"
  7251. ac_path_FGREP_max=$ac_count
  7252. fi
  7253. # 10*(2^10) chars as input seems more than enough
  7254. test $ac_count -gt 10 && break
  7255. done
  7256. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7257. esac
  7258. $ac_path_FGREP_found && break 3
  7259. done
  7260. done
  7261. done
  7262. IFS=$as_save_IFS
  7263. if test -z "$ac_cv_path_FGREP"; then
  7264. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  7265. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  7266. { (exit 1); exit 1; }; }
  7267. fi
  7268. else
  7269. ac_cv_path_FGREP=$FGREP
  7270. fi
  7271. fi
  7272. fi
  7273. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  7274. $as_echo "$ac_cv_path_FGREP" >&6; }
  7275. FGREP="$ac_cv_path_FGREP"
  7276. test -z "$GREP" && GREP=grep
  7277. # Check whether --with-gnu-ld was given.
  7278. if test "${with_gnu_ld+set}" = set; then
  7279. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7280. else
  7281. with_gnu_ld=no
  7282. fi
  7283. ac_prog=ld
  7284. if test "$GCC" = yes; then
  7285. # Check if gcc -print-prog-name=ld gives a path.
  7286. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  7287. $as_echo_n "checking for ld used by $CC... " >&6; }
  7288. case $host in
  7289. *-*-mingw*)
  7290. # gcc leaves a trailing carriage return which upsets mingw
  7291. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7292. *)
  7293. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7294. esac
  7295. case $ac_prog in
  7296. # Accept absolute paths.
  7297. [\\/]* | ?:[\\/]*)
  7298. re_direlt='/[^/][^/]*/\.\./'
  7299. # Canonicalize the pathname of ld
  7300. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  7301. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  7302. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  7303. done
  7304. test -z "$LD" && LD="$ac_prog"
  7305. ;;
  7306. "")
  7307. # If it fails, then pretend we aren't using GCC.
  7308. ac_prog=ld
  7309. ;;
  7310. *)
  7311. # If it is relative, then search for the first ld in PATH.
  7312. with_gnu_ld=unknown
  7313. ;;
  7314. esac
  7315. elif test "$with_gnu_ld" = yes; then
  7316. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  7317. $as_echo_n "checking for GNU ld... " >&6; }
  7318. else
  7319. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7320. $as_echo_n "checking for non-GNU ld... " >&6; }
  7321. fi
  7322. if test "${lt_cv_path_LD+set}" = set; then
  7323. $as_echo_n "(cached) " >&6
  7324. else
  7325. if test -z "$LD"; then
  7326. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7327. for ac_dir in $PATH; do
  7328. IFS="$lt_save_ifs"
  7329. test -z "$ac_dir" && ac_dir=.
  7330. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7331. lt_cv_path_LD="$ac_dir/$ac_prog"
  7332. # Check to see if the program is GNU ld. I'd rather use --version,
  7333. # but apparently some variants of GNU ld only accept -v.
  7334. # Break only if it was the GNU/non-GNU ld that we prefer.
  7335. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7336. *GNU* | *'with BFD'*)
  7337. test "$with_gnu_ld" != no && break
  7338. ;;
  7339. *)
  7340. test "$with_gnu_ld" != yes && break
  7341. ;;
  7342. esac
  7343. fi
  7344. done
  7345. IFS="$lt_save_ifs"
  7346. else
  7347. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  7348. fi
  7349. fi
  7350. LD="$lt_cv_path_LD"
  7351. if test -n "$LD"; then
  7352. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  7353. $as_echo "$LD" >&6; }
  7354. else
  7355. { $as_echo "$as_me:$LINENO: result: no" >&5
  7356. $as_echo "no" >&6; }
  7357. fi
  7358. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7359. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7360. { (exit 1); exit 1; }; }
  7361. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7362. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  7363. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  7364. $as_echo_n "(cached) " >&6
  7365. else
  7366. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7367. case `$LD -v 2>&1 </dev/null` in
  7368. *GNU* | *'with BFD'*)
  7369. lt_cv_prog_gnu_ld=yes
  7370. ;;
  7371. *)
  7372. lt_cv_prog_gnu_ld=no
  7373. ;;
  7374. esac
  7375. fi
  7376. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  7377. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  7378. with_gnu_ld=$lt_cv_prog_gnu_ld
  7379. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  7380. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7381. if test "${lt_cv_path_NM+set}" = set; then
  7382. $as_echo_n "(cached) " >&6
  7383. else
  7384. if test -n "$NM"; then
  7385. # Let the user override the test.
  7386. lt_cv_path_NM="$NM"
  7387. else
  7388. lt_nm_to_check="${ac_tool_prefix}nm"
  7389. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7390. lt_nm_to_check="$lt_nm_to_check nm"
  7391. fi
  7392. for lt_tmp_nm in $lt_nm_to_check; do
  7393. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7394. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7395. IFS="$lt_save_ifs"
  7396. test -z "$ac_dir" && ac_dir=.
  7397. tmp_nm="$ac_dir/$lt_tmp_nm"
  7398. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  7399. # Check to see if the nm accepts a BSD-compat flag.
  7400. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  7401. # nm: unknown option "B" ignored
  7402. # Tru64's nm complains that /dev/null is an invalid object file
  7403. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  7404. */dev/null* | *'Invalid file or object type'*)
  7405. lt_cv_path_NM="$tmp_nm -B"
  7406. break
  7407. ;;
  7408. *)
  7409. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7410. */dev/null*)
  7411. lt_cv_path_NM="$tmp_nm -p"
  7412. break
  7413. ;;
  7414. *)
  7415. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7416. continue # so that we can try to find one that supports BSD flags
  7417. ;;
  7418. esac
  7419. ;;
  7420. esac
  7421. fi
  7422. done
  7423. IFS="$lt_save_ifs"
  7424. done
  7425. : ${lt_cv_path_NM=no}
  7426. fi
  7427. fi
  7428. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  7429. $as_echo "$lt_cv_path_NM" >&6; }
  7430. if test "$lt_cv_path_NM" != "no"; then
  7431. NM="$lt_cv_path_NM"
  7432. else
  7433. # Didn't find any BSD compatible name lister, look for dumpbin.
  7434. if test -n "$ac_tool_prefix"; then
  7435. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  7436. do
  7437. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7438. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7439. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7440. $as_echo_n "checking for $ac_word... " >&6; }
  7441. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  7442. $as_echo_n "(cached) " >&6
  7443. else
  7444. if test -n "$DUMPBIN"; then
  7445. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  7446. else
  7447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7448. for as_dir in $PATH
  7449. do
  7450. IFS=$as_save_IFS
  7451. test -z "$as_dir" && as_dir=.
  7452. for ac_exec_ext in '' $ac_executable_extensions; do
  7453. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7454. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  7455. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7456. break 2
  7457. fi
  7458. done
  7459. done
  7460. IFS=$as_save_IFS
  7461. fi
  7462. fi
  7463. DUMPBIN=$ac_cv_prog_DUMPBIN
  7464. if test -n "$DUMPBIN"; then
  7465. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  7466. $as_echo "$DUMPBIN" >&6; }
  7467. else
  7468. { $as_echo "$as_me:$LINENO: result: no" >&5
  7469. $as_echo "no" >&6; }
  7470. fi
  7471. test -n "$DUMPBIN" && break
  7472. done
  7473. fi
  7474. if test -z "$DUMPBIN"; then
  7475. ac_ct_DUMPBIN=$DUMPBIN
  7476. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  7477. do
  7478. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7479. set dummy $ac_prog; ac_word=$2
  7480. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7481. $as_echo_n "checking for $ac_word... " >&6; }
  7482. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  7483. $as_echo_n "(cached) " >&6
  7484. else
  7485. if test -n "$ac_ct_DUMPBIN"; then
  7486. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7487. else
  7488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7489. for as_dir in $PATH
  7490. do
  7491. IFS=$as_save_IFS
  7492. test -z "$as_dir" && as_dir=.
  7493. for ac_exec_ext in '' $ac_executable_extensions; do
  7494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7495. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7496. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7497. break 2
  7498. fi
  7499. done
  7500. done
  7501. IFS=$as_save_IFS
  7502. fi
  7503. fi
  7504. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7505. if test -n "$ac_ct_DUMPBIN"; then
  7506. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  7507. $as_echo "$ac_ct_DUMPBIN" >&6; }
  7508. else
  7509. { $as_echo "$as_me:$LINENO: result: no" >&5
  7510. $as_echo "no" >&6; }
  7511. fi
  7512. test -n "$ac_ct_DUMPBIN" && break
  7513. done
  7514. if test "x$ac_ct_DUMPBIN" = x; then
  7515. DUMPBIN=":"
  7516. else
  7517. case $cross_compiling:$ac_tool_warned in
  7518. yes:)
  7519. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7520. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7521. ac_tool_warned=yes ;;
  7522. esac
  7523. DUMPBIN=$ac_ct_DUMPBIN
  7524. fi
  7525. fi
  7526. if test "$DUMPBIN" != ":"; then
  7527. NM="$DUMPBIN"
  7528. fi
  7529. fi
  7530. test -z "$NM" && NM=nm
  7531. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  7532. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  7533. if test "${lt_cv_nm_interface+set}" = set; then
  7534. $as_echo_n "(cached) " >&6
  7535. else
  7536. lt_cv_nm_interface="BSD nm"
  7537. echo "int some_variable = 0;" > conftest.$ac_ext
  7538. (eval echo "\"\$as_me:8424: $ac_compile\"" >&5)
  7539. (eval "$ac_compile" 2>conftest.err)
  7540. cat conftest.err >&5
  7541. (eval echo "\"\$as_me:8427: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7542. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7543. cat conftest.err >&5
  7544. (eval echo "\"\$as_me:8430: output\"" >&5)
  7545. cat conftest.out >&5
  7546. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7547. lt_cv_nm_interface="MS dumpbin"
  7548. fi
  7549. rm -f conftest*
  7550. fi
  7551. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  7552. $as_echo "$lt_cv_nm_interface" >&6; }
  7553. # find the maximum length of command line arguments
  7554. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  7555. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  7556. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  7557. $as_echo_n "(cached) " >&6
  7558. else
  7559. i=0
  7560. teststring="ABCD"
  7561. case $build_os in
  7562. msdosdjgpp*)
  7563. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7564. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7565. # during glob expansion). Even if it were fixed, the result of this
  7566. # check would be larger than it should be.
  7567. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7568. ;;
  7569. gnu*)
  7570. # Under GNU Hurd, this test is not required because there is
  7571. # no limit to the length of command line arguments.
  7572. # Libtool will interpret -1 as no limit whatsoever
  7573. lt_cv_sys_max_cmd_len=-1;
  7574. ;;
  7575. cygwin* | mingw* | cegcc*)
  7576. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7577. # about 5 minutes as the teststring grows exponentially.
  7578. # Worse, since 9x/ME are not pre-emptively multitasking,
  7579. # you end up with a "frozen" computer, even though with patience
  7580. # the test eventually succeeds (with a max line length of 256k).
  7581. # Instead, let's just punt: use the minimum linelength reported by
  7582. # all of the supported platforms: 8192 (on NT/2K/XP).
  7583. lt_cv_sys_max_cmd_len=8192;
  7584. ;;
  7585. amigaos*)
  7586. # On AmigaOS with pdksh, this test takes hours, literally.
  7587. # So we just punt and use a minimum line length of 8192.
  7588. lt_cv_sys_max_cmd_len=8192;
  7589. ;;
  7590. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  7591. # This has been around since 386BSD, at least. Likely further.
  7592. if test -x /sbin/sysctl; then
  7593. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7594. elif test -x /usr/sbin/sysctl; then
  7595. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7596. else
  7597. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7598. fi
  7599. # And add a safety zone
  7600. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7601. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7602. ;;
  7603. interix*)
  7604. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7605. lt_cv_sys_max_cmd_len=196608
  7606. ;;
  7607. osf*)
  7608. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7609. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7610. # nice to cause kernel panics so lets avoid the loop below.
  7611. # First set a reasonable default.
  7612. lt_cv_sys_max_cmd_len=16384
  7613. #
  7614. if test -x /sbin/sysconfig; then
  7615. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7616. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7617. esac
  7618. fi
  7619. ;;
  7620. sco3.2v5*)
  7621. lt_cv_sys_max_cmd_len=102400
  7622. ;;
  7623. sysv5* | sco5v6* | sysv4.2uw2*)
  7624. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7625. if test -n "$kargmax"; then
  7626. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7627. else
  7628. lt_cv_sys_max_cmd_len=32768
  7629. fi
  7630. ;;
  7631. *)
  7632. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7633. if test -n "$lt_cv_sys_max_cmd_len"; then
  7634. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7635. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7636. else
  7637. # Make teststring a little bigger before we do anything with it.
  7638. # a 1K string should be a reasonable start.
  7639. for i in 1 2 3 4 5 6 7 8 ; do
  7640. teststring=$teststring$teststring
  7641. done
  7642. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7643. # If test is not a shell built-in, we'll probably end up computing a
  7644. # maximum length that is only half of the actual maximum length, but
  7645. # we can't tell.
  7646. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  7647. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  7648. test $i != 17 # 1/2 MB should be enough
  7649. do
  7650. i=`expr $i + 1`
  7651. teststring=$teststring$teststring
  7652. done
  7653. # Only check the string length outside the loop.
  7654. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7655. teststring=
  7656. # Add a significant safety factor because C++ compilers can tack on
  7657. # massive amounts of additional arguments before passing them to the
  7658. # linker. It appears as though 1/2 is a usable value.
  7659. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7660. fi
  7661. ;;
  7662. esac
  7663. fi
  7664. if test -n $lt_cv_sys_max_cmd_len ; then
  7665. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  7666. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7667. else
  7668. { $as_echo "$as_me:$LINENO: result: none" >&5
  7669. $as_echo "none" >&6; }
  7670. fi
  7671. max_cmd_len=$lt_cv_sys_max_cmd_len
  7672. : ${CP="cp -f"}
  7673. : ${MV="mv -f"}
  7674. : ${RM="rm -f"}
  7675. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  7676. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  7677. # Try some XSI features
  7678. xsi_shell=no
  7679. ( _lt_dummy="a/b/c"
  7680. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  7681. = c,a/b,, \
  7682. && eval 'test $(( 1 + 1 )) -eq 2 \
  7683. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7684. && xsi_shell=yes
  7685. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  7686. $as_echo "$xsi_shell" >&6; }
  7687. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  7688. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  7689. lt_shell_append=no
  7690. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  7691. >/dev/null 2>&1 \
  7692. && lt_shell_append=yes
  7693. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  7694. $as_echo "$lt_shell_append" >&6; }
  7695. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7696. lt_unset=unset
  7697. else
  7698. lt_unset=false
  7699. fi
  7700. # test EBCDIC or ASCII
  7701. case `echo X|tr X '\101'` in
  7702. A) # ASCII based system
  7703. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7704. lt_SP2NL='tr \040 \012'
  7705. lt_NL2SP='tr \015\012 \040\040'
  7706. ;;
  7707. *) # EBCDIC based system
  7708. lt_SP2NL='tr \100 \n'
  7709. lt_NL2SP='tr \r\n \100\100'
  7710. ;;
  7711. esac
  7712. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  7713. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7714. if test "${lt_cv_ld_reload_flag+set}" = set; then
  7715. $as_echo_n "(cached) " >&6
  7716. else
  7717. lt_cv_ld_reload_flag='-r'
  7718. fi
  7719. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  7720. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7721. reload_flag=$lt_cv_ld_reload_flag
  7722. case $reload_flag in
  7723. "" | " "*) ;;
  7724. *) reload_flag=" $reload_flag" ;;
  7725. esac
  7726. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7727. case $host_os in
  7728. darwin*)
  7729. if test "$GCC" = yes; then
  7730. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  7731. else
  7732. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7733. fi
  7734. ;;
  7735. esac
  7736. if test -n "$ac_tool_prefix"; then
  7737. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7738. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7739. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7740. $as_echo_n "checking for $ac_word... " >&6; }
  7741. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  7742. $as_echo_n "(cached) " >&6
  7743. else
  7744. if test -n "$OBJDUMP"; then
  7745. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7746. else
  7747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7748. for as_dir in $PATH
  7749. do
  7750. IFS=$as_save_IFS
  7751. test -z "$as_dir" && as_dir=.
  7752. for ac_exec_ext in '' $ac_executable_extensions; do
  7753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7754. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7755. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7756. break 2
  7757. fi
  7758. done
  7759. done
  7760. IFS=$as_save_IFS
  7761. fi
  7762. fi
  7763. OBJDUMP=$ac_cv_prog_OBJDUMP
  7764. if test -n "$OBJDUMP"; then
  7765. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  7766. $as_echo "$OBJDUMP" >&6; }
  7767. else
  7768. { $as_echo "$as_me:$LINENO: result: no" >&5
  7769. $as_echo "no" >&6; }
  7770. fi
  7771. fi
  7772. if test -z "$ac_cv_prog_OBJDUMP"; then
  7773. ac_ct_OBJDUMP=$OBJDUMP
  7774. # Extract the first word of "objdump", so it can be a program name with args.
  7775. set dummy objdump; ac_word=$2
  7776. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7777. $as_echo_n "checking for $ac_word... " >&6; }
  7778. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  7779. $as_echo_n "(cached) " >&6
  7780. else
  7781. if test -n "$ac_ct_OBJDUMP"; then
  7782. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7783. else
  7784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7785. for as_dir in $PATH
  7786. do
  7787. IFS=$as_save_IFS
  7788. test -z "$as_dir" && as_dir=.
  7789. for ac_exec_ext in '' $ac_executable_extensions; do
  7790. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7791. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7792. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7793. break 2
  7794. fi
  7795. done
  7796. done
  7797. IFS=$as_save_IFS
  7798. fi
  7799. fi
  7800. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7801. if test -n "$ac_ct_OBJDUMP"; then
  7802. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  7803. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7804. else
  7805. { $as_echo "$as_me:$LINENO: result: no" >&5
  7806. $as_echo "no" >&6; }
  7807. fi
  7808. if test "x$ac_ct_OBJDUMP" = x; then
  7809. OBJDUMP="false"
  7810. else
  7811. case $cross_compiling:$ac_tool_warned in
  7812. yes:)
  7813. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7814. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7815. ac_tool_warned=yes ;;
  7816. esac
  7817. OBJDUMP=$ac_ct_OBJDUMP
  7818. fi
  7819. else
  7820. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7821. fi
  7822. test -z "$OBJDUMP" && OBJDUMP=objdump
  7823. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  7824. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7825. if test "${lt_cv_deplibs_check_method+set}" = set; then
  7826. $as_echo_n "(cached) " >&6
  7827. else
  7828. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7829. lt_cv_file_magic_test_file=
  7830. lt_cv_deplibs_check_method='unknown'
  7831. # Need to set the preceding variable on all platforms that support
  7832. # interlibrary dependencies.
  7833. # 'none' -- dependencies not supported.
  7834. # `unknown' -- same as none, but documents that we really don't know.
  7835. # 'pass_all' -- all dependencies passed with no checks.
  7836. # 'test_compile' -- check by making test program.
  7837. # 'file_magic [[regex]]' -- check by looking for files in library path
  7838. # which responds to the $file_magic_cmd with a given extended regex.
  7839. # If you have `file' or equivalent on your system and you're not sure
  7840. # whether `pass_all' will *always* work, you probably want this one.
  7841. case $host_os in
  7842. aix[4-9]*)
  7843. lt_cv_deplibs_check_method=pass_all
  7844. ;;
  7845. beos*)
  7846. lt_cv_deplibs_check_method=pass_all
  7847. ;;
  7848. bsdi[45]*)
  7849. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7850. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7851. lt_cv_file_magic_test_file=/shlib/libc.so
  7852. ;;
  7853. cygwin*)
  7854. # func_win32_libid is a shell function defined in ltmain.sh
  7855. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7856. lt_cv_file_magic_cmd='func_win32_libid'
  7857. ;;
  7858. mingw* | pw32*)
  7859. # Base MSYS/MinGW do not provide the 'file' command needed by
  7860. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7861. # unless we find 'file', for example because we are cross-compiling.
  7862. if ( file / ) >/dev/null 2>&1; then
  7863. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7864. lt_cv_file_magic_cmd='func_win32_libid'
  7865. else
  7866. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  7867. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7868. fi
  7869. ;;
  7870. cegcc)
  7871. # use the weaker test based on 'objdump'. See mingw*.
  7872. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7873. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7874. ;;
  7875. darwin* | rhapsody*)
  7876. lt_cv_deplibs_check_method=pass_all
  7877. ;;
  7878. freebsd* | dragonfly*)
  7879. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7880. case $host_cpu in
  7881. i*86 )
  7882. # Not sure whether the presence of OpenBSD here was a mistake.
  7883. # Let's accept both of them until this is cleared up.
  7884. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7885. lt_cv_file_magic_cmd=/usr/bin/file
  7886. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7887. ;;
  7888. esac
  7889. else
  7890. lt_cv_deplibs_check_method=pass_all
  7891. fi
  7892. ;;
  7893. gnu*)
  7894. lt_cv_deplibs_check_method=pass_all
  7895. ;;
  7896. hpux10.20* | hpux11*)
  7897. lt_cv_file_magic_cmd=/usr/bin/file
  7898. case $host_cpu in
  7899. ia64*)
  7900. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7901. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7902. ;;
  7903. hppa*64*)
  7904. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  7905. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7906. ;;
  7907. *)
  7908. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  7909. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7910. ;;
  7911. esac
  7912. ;;
  7913. interix[3-9]*)
  7914. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7915. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7916. ;;
  7917. irix5* | irix6* | nonstopux*)
  7918. case $LD in
  7919. *-32|*"-32 ") libmagic=32-bit;;
  7920. *-n32|*"-n32 ") libmagic=N32;;
  7921. *-64|*"-64 ") libmagic=64-bit;;
  7922. *) libmagic=never-match;;
  7923. esac
  7924. lt_cv_deplibs_check_method=pass_all
  7925. ;;
  7926. # This must be Linux ELF.
  7927. linux* | k*bsd*-gnu)
  7928. lt_cv_deplibs_check_method=pass_all
  7929. ;;
  7930. netbsd*)
  7931. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7932. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7933. else
  7934. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7935. fi
  7936. ;;
  7937. newos6*)
  7938. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7939. lt_cv_file_magic_cmd=/usr/bin/file
  7940. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7941. ;;
  7942. *nto* | *qnx*)
  7943. lt_cv_deplibs_check_method=pass_all
  7944. ;;
  7945. openbsd*)
  7946. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7947. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7948. else
  7949. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7950. fi
  7951. ;;
  7952. osf3* | osf4* | osf5*)
  7953. lt_cv_deplibs_check_method=pass_all
  7954. ;;
  7955. rdos*)
  7956. lt_cv_deplibs_check_method=pass_all
  7957. ;;
  7958. solaris*)
  7959. lt_cv_deplibs_check_method=pass_all
  7960. ;;
  7961. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7962. lt_cv_deplibs_check_method=pass_all
  7963. ;;
  7964. sysv4 | sysv4.3*)
  7965. case $host_vendor in
  7966. motorola)
  7967. 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]'
  7968. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7969. ;;
  7970. ncr)
  7971. lt_cv_deplibs_check_method=pass_all
  7972. ;;
  7973. sequent)
  7974. lt_cv_file_magic_cmd='/bin/file'
  7975. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7976. ;;
  7977. sni)
  7978. lt_cv_file_magic_cmd='/bin/file'
  7979. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7980. lt_cv_file_magic_test_file=/lib/libc.so
  7981. ;;
  7982. siemens)
  7983. lt_cv_deplibs_check_method=pass_all
  7984. ;;
  7985. pc)
  7986. lt_cv_deplibs_check_method=pass_all
  7987. ;;
  7988. esac
  7989. ;;
  7990. tpf*)
  7991. lt_cv_deplibs_check_method=pass_all
  7992. ;;
  7993. esac
  7994. fi
  7995. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  7996. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7997. file_magic_cmd=$lt_cv_file_magic_cmd
  7998. deplibs_check_method=$lt_cv_deplibs_check_method
  7999. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  8000. if test -n "$ac_tool_prefix"; then
  8001. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  8002. set dummy ${ac_tool_prefix}ar; ac_word=$2
  8003. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8004. $as_echo_n "checking for $ac_word... " >&6; }
  8005. if test "${ac_cv_prog_AR+set}" = set; then
  8006. $as_echo_n "(cached) " >&6
  8007. else
  8008. if test -n "$AR"; then
  8009. ac_cv_prog_AR="$AR" # Let the user override the test.
  8010. else
  8011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8012. for as_dir in $PATH
  8013. do
  8014. IFS=$as_save_IFS
  8015. test -z "$as_dir" && as_dir=.
  8016. for ac_exec_ext in '' $ac_executable_extensions; do
  8017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8018. ac_cv_prog_AR="${ac_tool_prefix}ar"
  8019. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8020. break 2
  8021. fi
  8022. done
  8023. done
  8024. IFS=$as_save_IFS
  8025. fi
  8026. fi
  8027. AR=$ac_cv_prog_AR
  8028. if test -n "$AR"; then
  8029. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  8030. $as_echo "$AR" >&6; }
  8031. else
  8032. { $as_echo "$as_me:$LINENO: result: no" >&5
  8033. $as_echo "no" >&6; }
  8034. fi
  8035. fi
  8036. if test -z "$ac_cv_prog_AR"; then
  8037. ac_ct_AR=$AR
  8038. # Extract the first word of "ar", so it can be a program name with args.
  8039. set dummy ar; ac_word=$2
  8040. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8041. $as_echo_n "checking for $ac_word... " >&6; }
  8042. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  8043. $as_echo_n "(cached) " >&6
  8044. else
  8045. if test -n "$ac_ct_AR"; then
  8046. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8047. else
  8048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8049. for as_dir in $PATH
  8050. do
  8051. IFS=$as_save_IFS
  8052. test -z "$as_dir" && as_dir=.
  8053. for ac_exec_ext in '' $ac_executable_extensions; do
  8054. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8055. ac_cv_prog_ac_ct_AR="ar"
  8056. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8057. break 2
  8058. fi
  8059. done
  8060. done
  8061. IFS=$as_save_IFS
  8062. fi
  8063. fi
  8064. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8065. if test -n "$ac_ct_AR"; then
  8066. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  8067. $as_echo "$ac_ct_AR" >&6; }
  8068. else
  8069. { $as_echo "$as_me:$LINENO: result: no" >&5
  8070. $as_echo "no" >&6; }
  8071. fi
  8072. if test "x$ac_ct_AR" = x; then
  8073. AR="false"
  8074. else
  8075. case $cross_compiling:$ac_tool_warned in
  8076. yes:)
  8077. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8078. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8079. ac_tool_warned=yes ;;
  8080. esac
  8081. AR=$ac_ct_AR
  8082. fi
  8083. else
  8084. AR="$ac_cv_prog_AR"
  8085. fi
  8086. test -z "$AR" && AR=ar
  8087. test -z "$AR_FLAGS" && AR_FLAGS=cru
  8088. if test -n "$ac_tool_prefix"; then
  8089. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8090. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8091. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8092. $as_echo_n "checking for $ac_word... " >&6; }
  8093. if test "${ac_cv_prog_STRIP+set}" = set; then
  8094. $as_echo_n "(cached) " >&6
  8095. else
  8096. if test -n "$STRIP"; then
  8097. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8098. else
  8099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8100. for as_dir in $PATH
  8101. do
  8102. IFS=$as_save_IFS
  8103. test -z "$as_dir" && as_dir=.
  8104. for ac_exec_ext in '' $ac_executable_extensions; do
  8105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8106. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8107. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8108. break 2
  8109. fi
  8110. done
  8111. done
  8112. IFS=$as_save_IFS
  8113. fi
  8114. fi
  8115. STRIP=$ac_cv_prog_STRIP
  8116. if test -n "$STRIP"; then
  8117. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  8118. $as_echo "$STRIP" >&6; }
  8119. else
  8120. { $as_echo "$as_me:$LINENO: result: no" >&5
  8121. $as_echo "no" >&6; }
  8122. fi
  8123. fi
  8124. if test -z "$ac_cv_prog_STRIP"; then
  8125. ac_ct_STRIP=$STRIP
  8126. # Extract the first word of "strip", so it can be a program name with args.
  8127. set dummy strip; ac_word=$2
  8128. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8129. $as_echo_n "checking for $ac_word... " >&6; }
  8130. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  8131. $as_echo_n "(cached) " >&6
  8132. else
  8133. if test -n "$ac_ct_STRIP"; then
  8134. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8135. else
  8136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8137. for as_dir in $PATH
  8138. do
  8139. IFS=$as_save_IFS
  8140. test -z "$as_dir" && as_dir=.
  8141. for ac_exec_ext in '' $ac_executable_extensions; do
  8142. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8143. ac_cv_prog_ac_ct_STRIP="strip"
  8144. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8145. break 2
  8146. fi
  8147. done
  8148. done
  8149. IFS=$as_save_IFS
  8150. fi
  8151. fi
  8152. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8153. if test -n "$ac_ct_STRIP"; then
  8154. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  8155. $as_echo "$ac_ct_STRIP" >&6; }
  8156. else
  8157. { $as_echo "$as_me:$LINENO: result: no" >&5
  8158. $as_echo "no" >&6; }
  8159. fi
  8160. if test "x$ac_ct_STRIP" = x; then
  8161. STRIP=":"
  8162. else
  8163. case $cross_compiling:$ac_tool_warned in
  8164. yes:)
  8165. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8166. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8167. ac_tool_warned=yes ;;
  8168. esac
  8169. STRIP=$ac_ct_STRIP
  8170. fi
  8171. else
  8172. STRIP="$ac_cv_prog_STRIP"
  8173. fi
  8174. test -z "$STRIP" && STRIP=:
  8175. if test -n "$ac_tool_prefix"; then
  8176. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8177. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8178. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8179. $as_echo_n "checking for $ac_word... " >&6; }
  8180. if test "${ac_cv_prog_RANLIB+set}" = set; then
  8181. $as_echo_n "(cached) " >&6
  8182. else
  8183. if test -n "$RANLIB"; then
  8184. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8185. else
  8186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8187. for as_dir in $PATH
  8188. do
  8189. IFS=$as_save_IFS
  8190. test -z "$as_dir" && as_dir=.
  8191. for ac_exec_ext in '' $ac_executable_extensions; do
  8192. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8193. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8194. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8195. break 2
  8196. fi
  8197. done
  8198. done
  8199. IFS=$as_save_IFS
  8200. fi
  8201. fi
  8202. RANLIB=$ac_cv_prog_RANLIB
  8203. if test -n "$RANLIB"; then
  8204. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  8205. $as_echo "$RANLIB" >&6; }
  8206. else
  8207. { $as_echo "$as_me:$LINENO: result: no" >&5
  8208. $as_echo "no" >&6; }
  8209. fi
  8210. fi
  8211. if test -z "$ac_cv_prog_RANLIB"; then
  8212. ac_ct_RANLIB=$RANLIB
  8213. # Extract the first word of "ranlib", so it can be a program name with args.
  8214. set dummy ranlib; ac_word=$2
  8215. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8216. $as_echo_n "checking for $ac_word... " >&6; }
  8217. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  8218. $as_echo_n "(cached) " >&6
  8219. else
  8220. if test -n "$ac_ct_RANLIB"; then
  8221. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8222. else
  8223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8224. for as_dir in $PATH
  8225. do
  8226. IFS=$as_save_IFS
  8227. test -z "$as_dir" && as_dir=.
  8228. for ac_exec_ext in '' $ac_executable_extensions; do
  8229. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8230. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8231. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8232. break 2
  8233. fi
  8234. done
  8235. done
  8236. IFS=$as_save_IFS
  8237. fi
  8238. fi
  8239. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8240. if test -n "$ac_ct_RANLIB"; then
  8241. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  8242. $as_echo "$ac_ct_RANLIB" >&6; }
  8243. else
  8244. { $as_echo "$as_me:$LINENO: result: no" >&5
  8245. $as_echo "no" >&6; }
  8246. fi
  8247. if test "x$ac_ct_RANLIB" = x; then
  8248. RANLIB=":"
  8249. else
  8250. case $cross_compiling:$ac_tool_warned in
  8251. yes:)
  8252. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8253. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8254. ac_tool_warned=yes ;;
  8255. esac
  8256. RANLIB=$ac_ct_RANLIB
  8257. fi
  8258. else
  8259. RANLIB="$ac_cv_prog_RANLIB"
  8260. fi
  8261. test -z "$RANLIB" && RANLIB=:
  8262. # Determine commands to create old-style static archives.
  8263. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8264. old_postinstall_cmds='chmod 644 $oldlib'
  8265. old_postuninstall_cmds=
  8266. if test -n "$RANLIB"; then
  8267. case $host_os in
  8268. openbsd*)
  8269. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  8270. ;;
  8271. *)
  8272. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  8273. ;;
  8274. esac
  8275. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  8276. fi
  8277. # If no C compiler was specified, use CC.
  8278. LTCC=${LTCC-"$CC"}
  8279. # If no C compiler flags were specified, use CFLAGS.
  8280. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8281. # Allow CC to be a program name with arguments.
  8282. compiler=$CC
  8283. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8284. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  8285. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8286. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  8287. $as_echo_n "(cached) " >&6
  8288. else
  8289. # These are sane defaults that work on at least a few old systems.
  8290. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8291. # Character class describing NM global symbol codes.
  8292. symcode='[BCDEGRST]'
  8293. # Regexp to match symbols that can be accessed directly from C.
  8294. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8295. # Define system-specific variables.
  8296. case $host_os in
  8297. aix*)
  8298. symcode='[BCDT]'
  8299. ;;
  8300. cygwin* | mingw* | pw32* | cegcc*)
  8301. symcode='[ABCDGISTW]'
  8302. ;;
  8303. hpux*)
  8304. if test "$host_cpu" = ia64; then
  8305. symcode='[ABCDEGRST]'
  8306. fi
  8307. ;;
  8308. irix* | nonstopux*)
  8309. symcode='[BCDEGRST]'
  8310. ;;
  8311. osf*)
  8312. symcode='[BCDEGQRST]'
  8313. ;;
  8314. solaris*)
  8315. symcode='[BDRT]'
  8316. ;;
  8317. sco3.2v5*)
  8318. symcode='[DT]'
  8319. ;;
  8320. sysv4.2uw2*)
  8321. symcode='[DT]'
  8322. ;;
  8323. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8324. symcode='[ABDT]'
  8325. ;;
  8326. sysv4)
  8327. symcode='[DFNSTU]'
  8328. ;;
  8329. esac
  8330. # If we're using GNU nm, then use its standard symbol codes.
  8331. case `$NM -V 2>&1` in
  8332. *GNU* | *'with BFD'*)
  8333. symcode='[ABCDGIRSTW]' ;;
  8334. esac
  8335. # Transform an extracted symbol line into a proper C declaration.
  8336. # Some systems (esp. on ia64) link data and code symbols differently,
  8337. # so use this general approach.
  8338. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8339. # Transform an extracted symbol line into symbol name and symbol address
  8340. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  8341. 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'"
  8342. # Handle CRLF in mingw tool chain
  8343. opt_cr=
  8344. case $build_os in
  8345. mingw*)
  8346. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8347. ;;
  8348. esac
  8349. # Try without a prefix underscore, then with it.
  8350. for ac_symprfx in "" "_"; do
  8351. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8352. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8353. # Write the raw and C identifiers.
  8354. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8355. # Fake it for dumpbin and say T for any non-static function
  8356. # and D for any global variable.
  8357. # Also find C++ and __fastcall symbols from MSVC++,
  8358. # which start with @ or ?.
  8359. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8360. " {last_section=section; section=\$ 3};"\
  8361. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8362. " \$ 0!~/External *\|/{next};"\
  8363. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8364. " {if(hide[section]) next};"\
  8365. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  8366. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  8367. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  8368. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  8369. " ' prfx=^$ac_symprfx"
  8370. else
  8371. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8372. fi
  8373. # Check to see that the pipe works correctly.
  8374. pipe_works=no
  8375. rm -f conftest*
  8376. cat > conftest.$ac_ext <<_LT_EOF
  8377. #ifdef __cplusplus
  8378. extern "C" {
  8379. #endif
  8380. char nm_test_var;
  8381. void nm_test_func(void);
  8382. void nm_test_func(void){}
  8383. #ifdef __cplusplus
  8384. }
  8385. #endif
  8386. int main(){nm_test_var='a';nm_test_func();return(0);}
  8387. _LT_EOF
  8388. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8389. (eval $ac_compile) 2>&5
  8390. ac_status=$?
  8391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8392. (exit $ac_status); }; then
  8393. # Now try to grab the symbols.
  8394. nlist=conftest.nm
  8395. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  8396. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  8397. ac_status=$?
  8398. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8399. (exit $ac_status); } && test -s "$nlist"; then
  8400. # Try sorting and uniquifying the output.
  8401. if sort "$nlist" | uniq > "$nlist"T; then
  8402. mv -f "$nlist"T "$nlist"
  8403. else
  8404. rm -f "$nlist"T
  8405. fi
  8406. # Make sure that we snagged all the symbols we need.
  8407. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8408. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8409. cat <<_LT_EOF > conftest.$ac_ext
  8410. #ifdef __cplusplus
  8411. extern "C" {
  8412. #endif
  8413. _LT_EOF
  8414. # Now generate the symbol file.
  8415. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8416. cat <<_LT_EOF >> conftest.$ac_ext
  8417. /* The mapping between symbol names and symbols. */
  8418. const struct {
  8419. const char *name;
  8420. void *address;
  8421. }
  8422. lt__PROGRAM__LTX_preloaded_symbols[] =
  8423. {
  8424. { "@PROGRAM@", (void *) 0 },
  8425. _LT_EOF
  8426. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8427. cat <<\_LT_EOF >> conftest.$ac_ext
  8428. {0, (void *) 0}
  8429. };
  8430. /* This works around a problem in FreeBSD linker */
  8431. #ifdef FREEBSD_WORKAROUND
  8432. static const void *lt_preloaded_setup() {
  8433. return lt__PROGRAM__LTX_preloaded_symbols;
  8434. }
  8435. #endif
  8436. #ifdef __cplusplus
  8437. }
  8438. #endif
  8439. _LT_EOF
  8440. # Now try linking the two files.
  8441. mv conftest.$ac_objext conftstm.$ac_objext
  8442. lt_save_LIBS="$LIBS"
  8443. lt_save_CFLAGS="$CFLAGS"
  8444. LIBS="conftstm.$ac_objext"
  8445. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8446. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8447. (eval $ac_link) 2>&5
  8448. ac_status=$?
  8449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8450. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  8451. pipe_works=yes
  8452. fi
  8453. LIBS="$lt_save_LIBS"
  8454. CFLAGS="$lt_save_CFLAGS"
  8455. else
  8456. echo "cannot find nm_test_func in $nlist" >&5
  8457. fi
  8458. else
  8459. echo "cannot find nm_test_var in $nlist" >&5
  8460. fi
  8461. else
  8462. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8463. fi
  8464. else
  8465. echo "$progname: failed program was:" >&5
  8466. cat conftest.$ac_ext >&5
  8467. fi
  8468. rm -rf conftest* conftst*
  8469. # Do not use the global_symbol_pipe unless it works.
  8470. if test "$pipe_works" = yes; then
  8471. break
  8472. else
  8473. lt_cv_sys_global_symbol_pipe=
  8474. fi
  8475. done
  8476. fi
  8477. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8478. lt_cv_sys_global_symbol_to_cdecl=
  8479. fi
  8480. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8481. { $as_echo "$as_me:$LINENO: result: failed" >&5
  8482. $as_echo "failed" >&6; }
  8483. else
  8484. { $as_echo "$as_me:$LINENO: result: ok" >&5
  8485. $as_echo "ok" >&6; }
  8486. fi
  8487. # Check whether --enable-libtool-lock was given.
  8488. if test "${enable_libtool_lock+set}" = set; then
  8489. enableval=$enable_libtool_lock;
  8490. fi
  8491. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8492. # Some flags need to be propagated to the compiler or linker for good
  8493. # libtool support.
  8494. case $host in
  8495. ia64-*-hpux*)
  8496. # Find out which ABI we are using.
  8497. echo 'int i;' > conftest.$ac_ext
  8498. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8499. (eval $ac_compile) 2>&5
  8500. ac_status=$?
  8501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8502. (exit $ac_status); }; then
  8503. case `/usr/bin/file conftest.$ac_objext` in
  8504. *ELF-32*)
  8505. HPUX_IA64_MODE="32"
  8506. ;;
  8507. *ELF-64*)
  8508. HPUX_IA64_MODE="64"
  8509. ;;
  8510. esac
  8511. fi
  8512. rm -rf conftest*
  8513. ;;
  8514. *-*-irix6*)
  8515. # Find out which ABI we are using.
  8516. echo '#line 9621 "configure"' > conftest.$ac_ext
  8517. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8518. (eval $ac_compile) 2>&5
  8519. ac_status=$?
  8520. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8521. (exit $ac_status); }; then
  8522. if test "$lt_cv_prog_gnu_ld" = yes; then
  8523. case `/usr/bin/file conftest.$ac_objext` in
  8524. *32-bit*)
  8525. LD="${LD-ld} -melf32bsmip"
  8526. ;;
  8527. *N32*)
  8528. LD="${LD-ld} -melf32bmipn32"
  8529. ;;
  8530. *64-bit*)
  8531. LD="${LD-ld} -melf64bmip"
  8532. ;;
  8533. esac
  8534. else
  8535. case `/usr/bin/file conftest.$ac_objext` in
  8536. *32-bit*)
  8537. LD="${LD-ld} -32"
  8538. ;;
  8539. *N32*)
  8540. LD="${LD-ld} -n32"
  8541. ;;
  8542. *64-bit*)
  8543. LD="${LD-ld} -64"
  8544. ;;
  8545. esac
  8546. fi
  8547. fi
  8548. rm -rf conftest*
  8549. ;;
  8550. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  8551. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8552. # Find out which ABI we are using.
  8553. echo 'int i;' > conftest.$ac_ext
  8554. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8555. (eval $ac_compile) 2>&5
  8556. ac_status=$?
  8557. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8558. (exit $ac_status); }; then
  8559. case `/usr/bin/file conftest.o` in
  8560. *32-bit*)
  8561. case $host in
  8562. x86_64-*kfreebsd*-gnu)
  8563. LD="${LD-ld} -m elf_i386_fbsd"
  8564. ;;
  8565. x86_64-*linux*)
  8566. LD="${LD-ld} -m elf_i386"
  8567. ;;
  8568. ppc64-*linux*|powerpc64-*linux*)
  8569. LD="${LD-ld} -m elf32ppclinux"
  8570. ;;
  8571. s390x-*linux*)
  8572. LD="${LD-ld} -m elf_s390"
  8573. ;;
  8574. sparc64-*linux*)
  8575. LD="${LD-ld} -m elf32_sparc"
  8576. ;;
  8577. esac
  8578. ;;
  8579. *64-bit*)
  8580. case $host in
  8581. x86_64-*kfreebsd*-gnu)
  8582. LD="${LD-ld} -m elf_x86_64_fbsd"
  8583. ;;
  8584. x86_64-*linux*)
  8585. LD="${LD-ld} -m elf_x86_64"
  8586. ;;
  8587. ppc*-*linux*|powerpc*-*linux*)
  8588. LD="${LD-ld} -m elf64ppc"
  8589. ;;
  8590. s390*-*linux*|s390*-*tpf*)
  8591. LD="${LD-ld} -m elf64_s390"
  8592. ;;
  8593. sparc*-*linux*)
  8594. LD="${LD-ld} -m elf64_sparc"
  8595. ;;
  8596. esac
  8597. ;;
  8598. esac
  8599. fi
  8600. rm -rf conftest*
  8601. ;;
  8602. *-*-sco3.2v5*)
  8603. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8604. SAVE_CFLAGS="$CFLAGS"
  8605. CFLAGS="$CFLAGS -belf"
  8606. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  8607. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8608. if test "${lt_cv_cc_needs_belf+set}" = set; then
  8609. $as_echo_n "(cached) " >&6
  8610. else
  8611. ac_ext=c
  8612. ac_cpp='$CPP $CPPFLAGS'
  8613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8616. cat >conftest.$ac_ext <<_ACEOF
  8617. /* confdefs.h. */
  8618. _ACEOF
  8619. cat confdefs.h >>conftest.$ac_ext
  8620. cat >>conftest.$ac_ext <<_ACEOF
  8621. /* end confdefs.h. */
  8622. int
  8623. main ()
  8624. {
  8625. ;
  8626. return 0;
  8627. }
  8628. _ACEOF
  8629. rm -f conftest.$ac_objext conftest$ac_exeext
  8630. if { (ac_try="$ac_link"
  8631. case "(($ac_try" in
  8632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8633. *) ac_try_echo=$ac_try;;
  8634. esac
  8635. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8636. $as_echo "$ac_try_echo") >&5
  8637. (eval "$ac_link") 2>conftest.er1
  8638. ac_status=$?
  8639. grep -v '^ *+' conftest.er1 >conftest.err
  8640. rm -f conftest.er1
  8641. cat conftest.err >&5
  8642. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8643. (exit $ac_status); } && {
  8644. test -z "$ac_c_werror_flag" ||
  8645. test ! -s conftest.err
  8646. } && test -s conftest$ac_exeext && {
  8647. test "$cross_compiling" = yes ||
  8648. $as_test_x conftest$ac_exeext
  8649. }; then
  8650. lt_cv_cc_needs_belf=yes
  8651. else
  8652. $as_echo "$as_me: failed program was:" >&5
  8653. sed 's/^/| /' conftest.$ac_ext >&5
  8654. lt_cv_cc_needs_belf=no
  8655. fi
  8656. rm -rf conftest.dSYM
  8657. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8658. conftest$ac_exeext conftest.$ac_ext
  8659. ac_ext=c
  8660. ac_cpp='$CPP $CPPFLAGS'
  8661. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8662. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8663. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8664. fi
  8665. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  8666. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8667. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8668. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8669. CFLAGS="$SAVE_CFLAGS"
  8670. fi
  8671. ;;
  8672. sparc*-*solaris*)
  8673. # Find out which ABI we are using.
  8674. echo 'int i;' > conftest.$ac_ext
  8675. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8676. (eval $ac_compile) 2>&5
  8677. ac_status=$?
  8678. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8679. (exit $ac_status); }; then
  8680. case `/usr/bin/file conftest.o` in
  8681. *64-bit*)
  8682. case $lt_cv_prog_gnu_ld in
  8683. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  8684. *)
  8685. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8686. LD="${LD-ld} -64"
  8687. fi
  8688. ;;
  8689. esac
  8690. ;;
  8691. esac
  8692. fi
  8693. rm -rf conftest*
  8694. ;;
  8695. esac
  8696. need_locks="$enable_libtool_lock"
  8697. case $host_os in
  8698. rhapsody* | darwin*)
  8699. if test -n "$ac_tool_prefix"; then
  8700. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8701. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8702. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8703. $as_echo_n "checking for $ac_word... " >&6; }
  8704. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  8705. $as_echo_n "(cached) " >&6
  8706. else
  8707. if test -n "$DSYMUTIL"; then
  8708. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8709. else
  8710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8711. for as_dir in $PATH
  8712. do
  8713. IFS=$as_save_IFS
  8714. test -z "$as_dir" && as_dir=.
  8715. for ac_exec_ext in '' $ac_executable_extensions; do
  8716. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8717. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8718. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8719. break 2
  8720. fi
  8721. done
  8722. done
  8723. IFS=$as_save_IFS
  8724. fi
  8725. fi
  8726. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8727. if test -n "$DSYMUTIL"; then
  8728. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  8729. $as_echo "$DSYMUTIL" >&6; }
  8730. else
  8731. { $as_echo "$as_me:$LINENO: result: no" >&5
  8732. $as_echo "no" >&6; }
  8733. fi
  8734. fi
  8735. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8736. ac_ct_DSYMUTIL=$DSYMUTIL
  8737. # Extract the first word of "dsymutil", so it can be a program name with args.
  8738. set dummy dsymutil; ac_word=$2
  8739. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8740. $as_echo_n "checking for $ac_word... " >&6; }
  8741. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  8742. $as_echo_n "(cached) " >&6
  8743. else
  8744. if test -n "$ac_ct_DSYMUTIL"; then
  8745. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8746. else
  8747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8748. for as_dir in $PATH
  8749. do
  8750. IFS=$as_save_IFS
  8751. test -z "$as_dir" && as_dir=.
  8752. for ac_exec_ext in '' $ac_executable_extensions; do
  8753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8754. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8755. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8756. break 2
  8757. fi
  8758. done
  8759. done
  8760. IFS=$as_save_IFS
  8761. fi
  8762. fi
  8763. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8764. if test -n "$ac_ct_DSYMUTIL"; then
  8765. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  8766. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8767. else
  8768. { $as_echo "$as_me:$LINENO: result: no" >&5
  8769. $as_echo "no" >&6; }
  8770. fi
  8771. if test "x$ac_ct_DSYMUTIL" = x; then
  8772. DSYMUTIL=":"
  8773. else
  8774. case $cross_compiling:$ac_tool_warned in
  8775. yes:)
  8776. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8777. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8778. ac_tool_warned=yes ;;
  8779. esac
  8780. DSYMUTIL=$ac_ct_DSYMUTIL
  8781. fi
  8782. else
  8783. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8784. fi
  8785. if test -n "$ac_tool_prefix"; then
  8786. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8787. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8788. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8789. $as_echo_n "checking for $ac_word... " >&6; }
  8790. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  8791. $as_echo_n "(cached) " >&6
  8792. else
  8793. if test -n "$NMEDIT"; then
  8794. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8795. else
  8796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8797. for as_dir in $PATH
  8798. do
  8799. IFS=$as_save_IFS
  8800. test -z "$as_dir" && as_dir=.
  8801. for ac_exec_ext in '' $ac_executable_extensions; do
  8802. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8803. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8804. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8805. break 2
  8806. fi
  8807. done
  8808. done
  8809. IFS=$as_save_IFS
  8810. fi
  8811. fi
  8812. NMEDIT=$ac_cv_prog_NMEDIT
  8813. if test -n "$NMEDIT"; then
  8814. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  8815. $as_echo "$NMEDIT" >&6; }
  8816. else
  8817. { $as_echo "$as_me:$LINENO: result: no" >&5
  8818. $as_echo "no" >&6; }
  8819. fi
  8820. fi
  8821. if test -z "$ac_cv_prog_NMEDIT"; then
  8822. ac_ct_NMEDIT=$NMEDIT
  8823. # Extract the first word of "nmedit", so it can be a program name with args.
  8824. set dummy nmedit; ac_word=$2
  8825. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8826. $as_echo_n "checking for $ac_word... " >&6; }
  8827. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  8828. $as_echo_n "(cached) " >&6
  8829. else
  8830. if test -n "$ac_ct_NMEDIT"; then
  8831. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8832. else
  8833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8834. for as_dir in $PATH
  8835. do
  8836. IFS=$as_save_IFS
  8837. test -z "$as_dir" && as_dir=.
  8838. for ac_exec_ext in '' $ac_executable_extensions; do
  8839. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8840. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8841. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8842. break 2
  8843. fi
  8844. done
  8845. done
  8846. IFS=$as_save_IFS
  8847. fi
  8848. fi
  8849. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8850. if test -n "$ac_ct_NMEDIT"; then
  8851. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  8852. $as_echo "$ac_ct_NMEDIT" >&6; }
  8853. else
  8854. { $as_echo "$as_me:$LINENO: result: no" >&5
  8855. $as_echo "no" >&6; }
  8856. fi
  8857. if test "x$ac_ct_NMEDIT" = x; then
  8858. NMEDIT=":"
  8859. else
  8860. case $cross_compiling:$ac_tool_warned in
  8861. yes:)
  8862. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8863. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8864. ac_tool_warned=yes ;;
  8865. esac
  8866. NMEDIT=$ac_ct_NMEDIT
  8867. fi
  8868. else
  8869. NMEDIT="$ac_cv_prog_NMEDIT"
  8870. fi
  8871. if test -n "$ac_tool_prefix"; then
  8872. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8873. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8874. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8875. $as_echo_n "checking for $ac_word... " >&6; }
  8876. if test "${ac_cv_prog_LIPO+set}" = set; then
  8877. $as_echo_n "(cached) " >&6
  8878. else
  8879. if test -n "$LIPO"; then
  8880. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8881. else
  8882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8883. for as_dir in $PATH
  8884. do
  8885. IFS=$as_save_IFS
  8886. test -z "$as_dir" && as_dir=.
  8887. for ac_exec_ext in '' $ac_executable_extensions; do
  8888. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8889. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8890. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8891. break 2
  8892. fi
  8893. done
  8894. done
  8895. IFS=$as_save_IFS
  8896. fi
  8897. fi
  8898. LIPO=$ac_cv_prog_LIPO
  8899. if test -n "$LIPO"; then
  8900. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  8901. $as_echo "$LIPO" >&6; }
  8902. else
  8903. { $as_echo "$as_me:$LINENO: result: no" >&5
  8904. $as_echo "no" >&6; }
  8905. fi
  8906. fi
  8907. if test -z "$ac_cv_prog_LIPO"; then
  8908. ac_ct_LIPO=$LIPO
  8909. # Extract the first word of "lipo", so it can be a program name with args.
  8910. set dummy lipo; ac_word=$2
  8911. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8912. $as_echo_n "checking for $ac_word... " >&6; }
  8913. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  8914. $as_echo_n "(cached) " >&6
  8915. else
  8916. if test -n "$ac_ct_LIPO"; then
  8917. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8918. else
  8919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8920. for as_dir in $PATH
  8921. do
  8922. IFS=$as_save_IFS
  8923. test -z "$as_dir" && as_dir=.
  8924. for ac_exec_ext in '' $ac_executable_extensions; do
  8925. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8926. ac_cv_prog_ac_ct_LIPO="lipo"
  8927. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8928. break 2
  8929. fi
  8930. done
  8931. done
  8932. IFS=$as_save_IFS
  8933. fi
  8934. fi
  8935. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8936. if test -n "$ac_ct_LIPO"; then
  8937. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  8938. $as_echo "$ac_ct_LIPO" >&6; }
  8939. else
  8940. { $as_echo "$as_me:$LINENO: result: no" >&5
  8941. $as_echo "no" >&6; }
  8942. fi
  8943. if test "x$ac_ct_LIPO" = x; then
  8944. LIPO=":"
  8945. else
  8946. case $cross_compiling:$ac_tool_warned in
  8947. yes:)
  8948. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  8949. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8950. ac_tool_warned=yes ;;
  8951. esac
  8952. LIPO=$ac_ct_LIPO
  8953. fi
  8954. else
  8955. LIPO="$ac_cv_prog_LIPO"
  8956. fi
  8957. if test -n "$ac_tool_prefix"; then
  8958. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8959. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8960. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8961. $as_echo_n "checking for $ac_word... " >&6; }
  8962. if test "${ac_cv_prog_OTOOL+set}" = set; then
  8963. $as_echo_n "(cached) " >&6
  8964. else
  8965. if test -n "$OTOOL"; then
  8966. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8967. else
  8968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8969. for as_dir in $PATH
  8970. do
  8971. IFS=$as_save_IFS
  8972. test -z "$as_dir" && as_dir=.
  8973. for ac_exec_ext in '' $ac_executable_extensions; do
  8974. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8975. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8976. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8977. break 2
  8978. fi
  8979. done
  8980. done
  8981. IFS=$as_save_IFS
  8982. fi
  8983. fi
  8984. OTOOL=$ac_cv_prog_OTOOL
  8985. if test -n "$OTOOL"; then
  8986. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  8987. $as_echo "$OTOOL" >&6; }
  8988. else
  8989. { $as_echo "$as_me:$LINENO: result: no" >&5
  8990. $as_echo "no" >&6; }
  8991. fi
  8992. fi
  8993. if test -z "$ac_cv_prog_OTOOL"; then
  8994. ac_ct_OTOOL=$OTOOL
  8995. # Extract the first word of "otool", so it can be a program name with args.
  8996. set dummy otool; ac_word=$2
  8997. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  8998. $as_echo_n "checking for $ac_word... " >&6; }
  8999. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  9000. $as_echo_n "(cached) " >&6
  9001. else
  9002. if test -n "$ac_ct_OTOOL"; then
  9003. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  9004. else
  9005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9006. for as_dir in $PATH
  9007. do
  9008. IFS=$as_save_IFS
  9009. test -z "$as_dir" && as_dir=.
  9010. for ac_exec_ext in '' $ac_executable_extensions; do
  9011. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9012. ac_cv_prog_ac_ct_OTOOL="otool"
  9013. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9014. break 2
  9015. fi
  9016. done
  9017. done
  9018. IFS=$as_save_IFS
  9019. fi
  9020. fi
  9021. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  9022. if test -n "$ac_ct_OTOOL"; then
  9023. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  9024. $as_echo "$ac_ct_OTOOL" >&6; }
  9025. else
  9026. { $as_echo "$as_me:$LINENO: result: no" >&5
  9027. $as_echo "no" >&6; }
  9028. fi
  9029. if test "x$ac_ct_OTOOL" = x; then
  9030. OTOOL=":"
  9031. else
  9032. case $cross_compiling:$ac_tool_warned in
  9033. yes:)
  9034. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  9035. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9036. ac_tool_warned=yes ;;
  9037. esac
  9038. OTOOL=$ac_ct_OTOOL
  9039. fi
  9040. else
  9041. OTOOL="$ac_cv_prog_OTOOL"
  9042. fi
  9043. if test -n "$ac_tool_prefix"; then
  9044. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  9045. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  9046. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9047. $as_echo_n "checking for $ac_word... " >&6; }
  9048. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  9049. $as_echo_n "(cached) " >&6
  9050. else
  9051. if test -n "$OTOOL64"; then
  9052. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  9053. else
  9054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9055. for as_dir in $PATH
  9056. do
  9057. IFS=$as_save_IFS
  9058. test -z "$as_dir" && as_dir=.
  9059. for ac_exec_ext in '' $ac_executable_extensions; do
  9060. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9061. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  9062. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9063. break 2
  9064. fi
  9065. done
  9066. done
  9067. IFS=$as_save_IFS
  9068. fi
  9069. fi
  9070. OTOOL64=$ac_cv_prog_OTOOL64
  9071. if test -n "$OTOOL64"; then
  9072. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  9073. $as_echo "$OTOOL64" >&6; }
  9074. else
  9075. { $as_echo "$as_me:$LINENO: result: no" >&5
  9076. $as_echo "no" >&6; }
  9077. fi
  9078. fi
  9079. if test -z "$ac_cv_prog_OTOOL64"; then
  9080. ac_ct_OTOOL64=$OTOOL64
  9081. # Extract the first word of "otool64", so it can be a program name with args.
  9082. set dummy otool64; ac_word=$2
  9083. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9084. $as_echo_n "checking for $ac_word... " >&6; }
  9085. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  9086. $as_echo_n "(cached) " >&6
  9087. else
  9088. if test -n "$ac_ct_OTOOL64"; then
  9089. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  9090. else
  9091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9092. for as_dir in $PATH
  9093. do
  9094. IFS=$as_save_IFS
  9095. test -z "$as_dir" && as_dir=.
  9096. for ac_exec_ext in '' $ac_executable_extensions; do
  9097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9098. ac_cv_prog_ac_ct_OTOOL64="otool64"
  9099. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9100. break 2
  9101. fi
  9102. done
  9103. done
  9104. IFS=$as_save_IFS
  9105. fi
  9106. fi
  9107. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9108. if test -n "$ac_ct_OTOOL64"; then
  9109. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  9110. $as_echo "$ac_ct_OTOOL64" >&6; }
  9111. else
  9112. { $as_echo "$as_me:$LINENO: result: no" >&5
  9113. $as_echo "no" >&6; }
  9114. fi
  9115. if test "x$ac_ct_OTOOL64" = x; then
  9116. OTOOL64=":"
  9117. else
  9118. case $cross_compiling:$ac_tool_warned in
  9119. yes:)
  9120. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  9121. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9122. ac_tool_warned=yes ;;
  9123. esac
  9124. OTOOL64=$ac_ct_OTOOL64
  9125. fi
  9126. else
  9127. OTOOL64="$ac_cv_prog_OTOOL64"
  9128. fi
  9129. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  9130. $as_echo_n "checking for -single_module linker flag... " >&6; }
  9131. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  9132. $as_echo_n "(cached) " >&6
  9133. else
  9134. lt_cv_apple_cc_single_mod=no
  9135. if test -z "${LT_MULTI_MODULE}"; then
  9136. # By default we will add the -single_module flag. You can override
  9137. # by either setting the environment variable LT_MULTI_MODULE
  9138. # non-empty at configure time, or by adding -multi_module to the
  9139. # link flags.
  9140. rm -rf libconftest.dylib*
  9141. echo "int foo(void){return 1;}" > conftest.c
  9142. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9143. -dynamiclib -Wl,-single_module conftest.c" >&5
  9144. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9145. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9146. _lt_result=$?
  9147. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  9148. lt_cv_apple_cc_single_mod=yes
  9149. else
  9150. cat conftest.err >&5
  9151. fi
  9152. rm -rf libconftest.dylib*
  9153. rm -f conftest.*
  9154. fi
  9155. fi
  9156. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  9157. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  9158. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  9159. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  9160. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  9161. $as_echo_n "(cached) " >&6
  9162. else
  9163. lt_cv_ld_exported_symbols_list=no
  9164. save_LDFLAGS=$LDFLAGS
  9165. echo "_main" > conftest.sym
  9166. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9167. cat >conftest.$ac_ext <<_ACEOF
  9168. /* confdefs.h. */
  9169. _ACEOF
  9170. cat confdefs.h >>conftest.$ac_ext
  9171. cat >>conftest.$ac_ext <<_ACEOF
  9172. /* end confdefs.h. */
  9173. int
  9174. main ()
  9175. {
  9176. ;
  9177. return 0;
  9178. }
  9179. _ACEOF
  9180. rm -f conftest.$ac_objext conftest$ac_exeext
  9181. if { (ac_try="$ac_link"
  9182. case "(($ac_try" in
  9183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9184. *) ac_try_echo=$ac_try;;
  9185. esac
  9186. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9187. $as_echo "$ac_try_echo") >&5
  9188. (eval "$ac_link") 2>conftest.er1
  9189. ac_status=$?
  9190. grep -v '^ *+' conftest.er1 >conftest.err
  9191. rm -f conftest.er1
  9192. cat conftest.err >&5
  9193. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9194. (exit $ac_status); } && {
  9195. test -z "$ac_c_werror_flag" ||
  9196. test ! -s conftest.err
  9197. } && test -s conftest$ac_exeext && {
  9198. test "$cross_compiling" = yes ||
  9199. $as_test_x conftest$ac_exeext
  9200. }; then
  9201. lt_cv_ld_exported_symbols_list=yes
  9202. else
  9203. $as_echo "$as_me: failed program was:" >&5
  9204. sed 's/^/| /' conftest.$ac_ext >&5
  9205. lt_cv_ld_exported_symbols_list=no
  9206. fi
  9207. rm -rf conftest.dSYM
  9208. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9209. conftest$ac_exeext conftest.$ac_ext
  9210. LDFLAGS="$save_LDFLAGS"
  9211. fi
  9212. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  9213. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  9214. case $host_os in
  9215. rhapsody* | darwin1.[012])
  9216. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  9217. darwin1.*)
  9218. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9219. darwin*) # darwin 5.x on
  9220. # if running on 10.5 or later, the deployment target defaults
  9221. # to the OS version, if on x86, and 10.4, the deployment
  9222. # target defaults to 10.4. Don't you love it?
  9223. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9224. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  9225. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9226. 10.[012]*)
  9227. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9228. 10.*)
  9229. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9230. esac
  9231. ;;
  9232. esac
  9233. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  9234. _lt_dar_single_mod='$single_module'
  9235. fi
  9236. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  9237. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  9238. else
  9239. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9240. fi
  9241. if test "$DSYMUTIL" != ":"; then
  9242. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9243. else
  9244. _lt_dsymutil=
  9245. fi
  9246. ;;
  9247. esac
  9248. for ac_header in dlfcn.h
  9249. do
  9250. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9251. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9252. $as_echo_n "checking for $ac_header... " >&6; }
  9253. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9254. $as_echo_n "(cached) " >&6
  9255. else
  9256. cat >conftest.$ac_ext <<_ACEOF
  9257. /* confdefs.h. */
  9258. _ACEOF
  9259. cat confdefs.h >>conftest.$ac_ext
  9260. cat >>conftest.$ac_ext <<_ACEOF
  9261. /* end confdefs.h. */
  9262. $ac_includes_default
  9263. #include <$ac_header>
  9264. _ACEOF
  9265. rm -f conftest.$ac_objext
  9266. if { (ac_try="$ac_compile"
  9267. case "(($ac_try" in
  9268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9269. *) ac_try_echo=$ac_try;;
  9270. esac
  9271. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9272. $as_echo "$ac_try_echo") >&5
  9273. (eval "$ac_compile") 2>conftest.er1
  9274. ac_status=$?
  9275. grep -v '^ *+' conftest.er1 >conftest.err
  9276. rm -f conftest.er1
  9277. cat conftest.err >&5
  9278. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9279. (exit $ac_status); } && {
  9280. test -z "$ac_c_werror_flag" ||
  9281. test ! -s conftest.err
  9282. } && test -s conftest.$ac_objext; then
  9283. eval "$as_ac_Header=yes"
  9284. else
  9285. $as_echo "$as_me: failed program was:" >&5
  9286. sed 's/^/| /' conftest.$ac_ext >&5
  9287. eval "$as_ac_Header=no"
  9288. fi
  9289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9290. fi
  9291. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9292. $as_echo "$as_val"'`
  9293. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9294. $as_echo "$ac_res" >&6; }
  9295. as_val=`eval 'as_val=${'$as_ac_Header'}
  9296. $as_echo "$as_val"'`
  9297. if test "x$as_val" = x""yes; then
  9298. cat >>confdefs.h <<_ACEOF
  9299. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9300. _ACEOF
  9301. fi
  9302. done
  9303. # Set options
  9304. enable_dlopen=no
  9305. # Check whether --enable-shared was given.
  9306. if test "${enable_shared+set}" = set; then
  9307. enableval=$enable_shared; p=${PACKAGE-default}
  9308. case $enableval in
  9309. yes) enable_shared=yes ;;
  9310. no) enable_shared=no ;;
  9311. *)
  9312. enable_shared=no
  9313. # Look at the argument we got. We use all the common list separators.
  9314. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9315. for pkg in $enableval; do
  9316. IFS="$lt_save_ifs"
  9317. if test "X$pkg" = "X$p"; then
  9318. enable_shared=yes
  9319. fi
  9320. done
  9321. IFS="$lt_save_ifs"
  9322. ;;
  9323. esac
  9324. else
  9325. enable_shared=yes
  9326. fi
  9327. # Check whether --enable-static was given.
  9328. if test "${enable_static+set}" = set; then
  9329. enableval=$enable_static; p=${PACKAGE-default}
  9330. case $enableval in
  9331. yes) enable_static=yes ;;
  9332. no) enable_static=no ;;
  9333. *)
  9334. enable_static=no
  9335. # Look at the argument we got. We use all the common list separators.
  9336. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9337. for pkg in $enableval; do
  9338. IFS="$lt_save_ifs"
  9339. if test "X$pkg" = "X$p"; then
  9340. enable_static=yes
  9341. fi
  9342. done
  9343. IFS="$lt_save_ifs"
  9344. ;;
  9345. esac
  9346. else
  9347. enable_static=yes
  9348. fi
  9349. # Check whether --with-pic was given.
  9350. if test "${with_pic+set}" = set; then
  9351. withval=$with_pic; pic_mode="$withval"
  9352. else
  9353. pic_mode=default
  9354. fi
  9355. test -z "$pic_mode" && pic_mode=default
  9356. # Check whether --enable-fast-install was given.
  9357. if test "${enable_fast_install+set}" = set; then
  9358. enableval=$enable_fast_install; p=${PACKAGE-default}
  9359. case $enableval in
  9360. yes) enable_fast_install=yes ;;
  9361. no) enable_fast_install=no ;;
  9362. *)
  9363. enable_fast_install=no
  9364. # Look at the argument we got. We use all the common list separators.
  9365. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9366. for pkg in $enableval; do
  9367. IFS="$lt_save_ifs"
  9368. if test "X$pkg" = "X$p"; then
  9369. enable_fast_install=yes
  9370. fi
  9371. done
  9372. IFS="$lt_save_ifs"
  9373. ;;
  9374. esac
  9375. else
  9376. enable_fast_install=yes
  9377. fi
  9378. # This can be used to rebuild libtool when needed
  9379. LIBTOOL_DEPS="$ltmain"
  9380. # Always use our own libtool.
  9381. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9382. test -z "$LN_S" && LN_S="ln -s"
  9383. if test -n "${ZSH_VERSION+set}" ; then
  9384. setopt NO_GLOB_SUBST
  9385. fi
  9386. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  9387. $as_echo_n "checking for objdir... " >&6; }
  9388. if test "${lt_cv_objdir+set}" = set; then
  9389. $as_echo_n "(cached) " >&6
  9390. else
  9391. rm -f .libs 2>/dev/null
  9392. mkdir .libs 2>/dev/null
  9393. if test -d .libs; then
  9394. lt_cv_objdir=.libs
  9395. else
  9396. # MS-DOS does not allow filenames that begin with a dot.
  9397. lt_cv_objdir=_libs
  9398. fi
  9399. rmdir .libs 2>/dev/null
  9400. fi
  9401. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  9402. $as_echo "$lt_cv_objdir" >&6; }
  9403. objdir=$lt_cv_objdir
  9404. cat >>confdefs.h <<_ACEOF
  9405. #define LT_OBJDIR "$lt_cv_objdir/"
  9406. _ACEOF
  9407. case $host_os in
  9408. aix3*)
  9409. # AIX sometimes has problems with the GCC collect2 program. For some
  9410. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9411. # vanish in a puff of smoke.
  9412. if test "X${COLLECT_NAMES+set}" != Xset; then
  9413. COLLECT_NAMES=
  9414. export COLLECT_NAMES
  9415. fi
  9416. ;;
  9417. esac
  9418. # Sed substitution that helps us do robust quoting. It backslashifies
  9419. # metacharacters that are still active within double-quoted strings.
  9420. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  9421. # Same as above, but do not quote variable references.
  9422. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  9423. # Sed substitution to delay expansion of an escaped shell variable in a
  9424. # double_quote_subst'ed string.
  9425. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  9426. # Sed substitution to delay expansion of an escaped single quote.
  9427. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  9428. # Sed substitution to avoid accidental globbing in evaled expressions
  9429. no_glob_subst='s/\*/\\\*/g'
  9430. # Global variables:
  9431. ofile=libtool
  9432. can_build_shared=yes
  9433. # All known linkers require a `.a' archive for static linking (except MSVC,
  9434. # which needs '.lib').
  9435. libext=a
  9436. with_gnu_ld="$lt_cv_prog_gnu_ld"
  9437. old_CC="$CC"
  9438. old_CFLAGS="$CFLAGS"
  9439. # Set sane defaults for various variables
  9440. test -z "$CC" && CC=cc
  9441. test -z "$LTCC" && LTCC=$CC
  9442. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9443. test -z "$LD" && LD=ld
  9444. test -z "$ac_objext" && ac_objext=o
  9445. for cc_temp in $compiler""; do
  9446. case $cc_temp in
  9447. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9448. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9449. \-*) ;;
  9450. *) break;;
  9451. esac
  9452. done
  9453. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9454. # Only perform the check for file, if the check method requires it
  9455. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9456. case $deplibs_check_method in
  9457. file_magic*)
  9458. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9459. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  9460. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9461. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  9462. $as_echo_n "(cached) " >&6
  9463. else
  9464. case $MAGIC_CMD in
  9465. [\\/*] | ?:[\\/]*)
  9466. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9467. ;;
  9468. *)
  9469. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9470. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9471. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9472. for ac_dir in $ac_dummy; do
  9473. IFS="$lt_save_ifs"
  9474. test -z "$ac_dir" && ac_dir=.
  9475. if test -f $ac_dir/${ac_tool_prefix}file; then
  9476. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  9477. if test -n "$file_magic_test_file"; then
  9478. case $deplibs_check_method in
  9479. "file_magic "*)
  9480. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9481. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9482. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9483. $EGREP "$file_magic_regex" > /dev/null; then
  9484. :
  9485. else
  9486. cat <<_LT_EOF 1>&2
  9487. *** Warning: the command libtool uses to detect shared libraries,
  9488. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9489. *** The result is that libtool may fail to recognize shared libraries
  9490. *** as such. This will affect the creation of libtool libraries that
  9491. *** depend on shared libraries, but programs linked with such libtool
  9492. *** libraries will work regardless of this problem. Nevertheless, you
  9493. *** may want to report the problem to your system manager and/or to
  9494. *** bug-libtool@gnu.org
  9495. _LT_EOF
  9496. fi ;;
  9497. esac
  9498. fi
  9499. break
  9500. fi
  9501. done
  9502. IFS="$lt_save_ifs"
  9503. MAGIC_CMD="$lt_save_MAGIC_CMD"
  9504. ;;
  9505. esac
  9506. fi
  9507. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9508. if test -n "$MAGIC_CMD"; then
  9509. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  9510. $as_echo "$MAGIC_CMD" >&6; }
  9511. else
  9512. { $as_echo "$as_me:$LINENO: result: no" >&5
  9513. $as_echo "no" >&6; }
  9514. fi
  9515. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9516. if test -n "$ac_tool_prefix"; then
  9517. { $as_echo "$as_me:$LINENO: checking for file" >&5
  9518. $as_echo_n "checking for file... " >&6; }
  9519. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  9520. $as_echo_n "(cached) " >&6
  9521. else
  9522. case $MAGIC_CMD in
  9523. [\\/*] | ?:[\\/]*)
  9524. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9525. ;;
  9526. *)
  9527. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9528. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9529. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9530. for ac_dir in $ac_dummy; do
  9531. IFS="$lt_save_ifs"
  9532. test -z "$ac_dir" && ac_dir=.
  9533. if test -f $ac_dir/file; then
  9534. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  9535. if test -n "$file_magic_test_file"; then
  9536. case $deplibs_check_method in
  9537. "file_magic "*)
  9538. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9539. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9540. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9541. $EGREP "$file_magic_regex" > /dev/null; then
  9542. :
  9543. else
  9544. cat <<_LT_EOF 1>&2
  9545. *** Warning: the command libtool uses to detect shared libraries,
  9546. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9547. *** The result is that libtool may fail to recognize shared libraries
  9548. *** as such. This will affect the creation of libtool libraries that
  9549. *** depend on shared libraries, but programs linked with such libtool
  9550. *** libraries will work regardless of this problem. Nevertheless, you
  9551. *** may want to report the problem to your system manager and/or to
  9552. *** bug-libtool@gnu.org
  9553. _LT_EOF
  9554. fi ;;
  9555. esac
  9556. fi
  9557. break
  9558. fi
  9559. done
  9560. IFS="$lt_save_ifs"
  9561. MAGIC_CMD="$lt_save_MAGIC_CMD"
  9562. ;;
  9563. esac
  9564. fi
  9565. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9566. if test -n "$MAGIC_CMD"; then
  9567. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  9568. $as_echo "$MAGIC_CMD" >&6; }
  9569. else
  9570. { $as_echo "$as_me:$LINENO: result: no" >&5
  9571. $as_echo "no" >&6; }
  9572. fi
  9573. else
  9574. MAGIC_CMD=:
  9575. fi
  9576. fi
  9577. fi
  9578. ;;
  9579. esac
  9580. # Use C for the default configuration in the libtool script
  9581. lt_save_CC="$CC"
  9582. ac_ext=c
  9583. ac_cpp='$CPP $CPPFLAGS'
  9584. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9585. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9586. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9587. # Source file extension for C test sources.
  9588. ac_ext=c
  9589. # Object file extension for compiled C test sources.
  9590. objext=o
  9591. objext=$objext
  9592. # Code to be used in simple compile tests
  9593. lt_simple_compile_test_code="int some_variable = 0;"
  9594. # Code to be used in simple link tests
  9595. lt_simple_link_test_code='int main(){return(0);}'
  9596. # If no C compiler was specified, use CC.
  9597. LTCC=${LTCC-"$CC"}
  9598. # If no C compiler flags were specified, use CFLAGS.
  9599. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9600. # Allow CC to be a program name with arguments.
  9601. compiler=$CC
  9602. # Save the default compiler, since it gets overwritten when the other
  9603. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9604. compiler_DEFAULT=$CC
  9605. # save warnings/boilerplate of simple test code
  9606. ac_outfile=conftest.$ac_objext
  9607. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9608. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9609. _lt_compiler_boilerplate=`cat conftest.err`
  9610. $RM conftest*
  9611. ac_outfile=conftest.$ac_objext
  9612. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9613. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9614. _lt_linker_boilerplate=`cat conftest.err`
  9615. $RM -r conftest*
  9616. if test -n "$compiler"; then
  9617. lt_prog_compiler_no_builtin_flag=
  9618. if test "$GCC" = yes; then
  9619. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  9620. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9621. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9622. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  9623. $as_echo_n "(cached) " >&6
  9624. else
  9625. lt_cv_prog_compiler_rtti_exceptions=no
  9626. ac_outfile=conftest.$ac_objext
  9627. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9628. lt_compiler_flag="-fno-rtti -fno-exceptions"
  9629. # Insert the option either (1) after the last *FLAGS variable, or
  9630. # (2) before a word containing "conftest.", or (3) at the end.
  9631. # Note that $ac_compile itself does not contain backslashes and begins
  9632. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9633. # The option is referenced via a variable to avoid confusing sed.
  9634. lt_compile=`echo "$ac_compile" | $SED \
  9635. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9636. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9637. -e 's:$: $lt_compiler_flag:'`
  9638. (eval echo "\"\$as_me:10984: $lt_compile\"" >&5)
  9639. (eval "$lt_compile" 2>conftest.err)
  9640. ac_status=$?
  9641. cat conftest.err >&5
  9642. echo "$as_me:10988: \$? = $ac_status" >&5
  9643. if (exit $ac_status) && test -s "$ac_outfile"; then
  9644. # The compiler can only warn and ignore the option if not recognized
  9645. # So say no if there are warnings other than the usual output.
  9646. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  9647. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9648. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9649. lt_cv_prog_compiler_rtti_exceptions=yes
  9650. fi
  9651. fi
  9652. $RM conftest*
  9653. fi
  9654. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9655. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9656. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  9657. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9658. else
  9659. :
  9660. fi
  9661. fi
  9662. lt_prog_compiler_wl=
  9663. lt_prog_compiler_pic=
  9664. lt_prog_compiler_static=
  9665. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  9666. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9667. if test "$GCC" = yes; then
  9668. lt_prog_compiler_wl='-Wl,'
  9669. lt_prog_compiler_static='-static'
  9670. case $host_os in
  9671. aix*)
  9672. # All AIX code is PIC.
  9673. if test "$host_cpu" = ia64; then
  9674. # AIX 5 now supports IA64 processor
  9675. lt_prog_compiler_static='-Bstatic'
  9676. fi
  9677. ;;
  9678. amigaos*)
  9679. case $host_cpu in
  9680. powerpc)
  9681. # see comment about AmigaOS4 .so support
  9682. lt_prog_compiler_pic='-fPIC'
  9683. ;;
  9684. m68k)
  9685. # FIXME: we need at least 68020 code to build shared libraries, but
  9686. # adding the `-m68020' flag to GCC prevents building anything better,
  9687. # like `-m68040'.
  9688. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9689. ;;
  9690. esac
  9691. ;;
  9692. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9693. # PIC is the default for these OSes.
  9694. ;;
  9695. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9696. # This hack is so that the source file can tell whether it is being
  9697. # built for inclusion in a dll (and should export symbols for example).
  9698. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9699. # (--disable-auto-import) libraries
  9700. lt_prog_compiler_pic='-DDLL_EXPORT'
  9701. ;;
  9702. darwin* | rhapsody*)
  9703. # PIC is the default on this platform
  9704. # Common symbols not allowed in MH_DYLIB files
  9705. lt_prog_compiler_pic='-fno-common'
  9706. ;;
  9707. hpux*)
  9708. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9709. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9710. # sets the default TLS model and affects inlining.
  9711. case $host_cpu in
  9712. hppa*64*)
  9713. # +Z the default
  9714. ;;
  9715. *)
  9716. lt_prog_compiler_pic='-fPIC'
  9717. ;;
  9718. esac
  9719. ;;
  9720. interix[3-9]*)
  9721. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9722. # Instead, we relocate shared libraries at runtime.
  9723. ;;
  9724. msdosdjgpp*)
  9725. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9726. # on systems that don't support them.
  9727. lt_prog_compiler_can_build_shared=no
  9728. enable_shared=no
  9729. ;;
  9730. *nto* | *qnx*)
  9731. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9732. # it will coredump.
  9733. lt_prog_compiler_pic='-fPIC -shared'
  9734. ;;
  9735. sysv4*MP*)
  9736. if test -d /usr/nec; then
  9737. lt_prog_compiler_pic=-Kconform_pic
  9738. fi
  9739. ;;
  9740. *)
  9741. lt_prog_compiler_pic='-fPIC'
  9742. ;;
  9743. esac
  9744. else
  9745. # PORTME Check for flag to pass linker flags through the system compiler.
  9746. case $host_os in
  9747. aix*)
  9748. lt_prog_compiler_wl='-Wl,'
  9749. if test "$host_cpu" = ia64; then
  9750. # AIX 5 now supports IA64 processor
  9751. lt_prog_compiler_static='-Bstatic'
  9752. else
  9753. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9754. fi
  9755. ;;
  9756. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9757. # This hack is so that the source file can tell whether it is being
  9758. # built for inclusion in a dll (and should export symbols for example).
  9759. lt_prog_compiler_pic='-DDLL_EXPORT'
  9760. ;;
  9761. hpux9* | hpux10* | hpux11*)
  9762. lt_prog_compiler_wl='-Wl,'
  9763. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9764. # not for PA HP-UX.
  9765. case $host_cpu in
  9766. hppa*64*|ia64*)
  9767. # +Z the default
  9768. ;;
  9769. *)
  9770. lt_prog_compiler_pic='+Z'
  9771. ;;
  9772. esac
  9773. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9774. lt_prog_compiler_static='${wl}-a ${wl}archive'
  9775. ;;
  9776. irix5* | irix6* | nonstopux*)
  9777. lt_prog_compiler_wl='-Wl,'
  9778. # PIC (with -KPIC) is the default.
  9779. lt_prog_compiler_static='-non_shared'
  9780. ;;
  9781. linux* | k*bsd*-gnu)
  9782. case $cc_basename in
  9783. # old Intel for x86_64 which still supported -KPIC.
  9784. ecc*)
  9785. lt_prog_compiler_wl='-Wl,'
  9786. lt_prog_compiler_pic='-KPIC'
  9787. lt_prog_compiler_static='-static'
  9788. ;;
  9789. # icc used to be incompatible with GCC.
  9790. # ICC 10 doesn't accept -KPIC any more.
  9791. icc* | ifort*)
  9792. lt_prog_compiler_wl='-Wl,'
  9793. lt_prog_compiler_pic='-fPIC'
  9794. lt_prog_compiler_static='-static'
  9795. ;;
  9796. # Lahey Fortran 8.1.
  9797. lf95*)
  9798. lt_prog_compiler_wl='-Wl,'
  9799. lt_prog_compiler_pic='--shared'
  9800. lt_prog_compiler_static='--static'
  9801. ;;
  9802. pgcc* | pgf77* | pgf90* | pgf95*)
  9803. # Portland Group compilers (*not* the Pentium gcc compiler,
  9804. # which looks to be a dead project)
  9805. lt_prog_compiler_wl='-Wl,'
  9806. lt_prog_compiler_pic='-fpic'
  9807. lt_prog_compiler_static='-Bstatic'
  9808. ;;
  9809. ccc*)
  9810. lt_prog_compiler_wl='-Wl,'
  9811. # All Alpha code is PIC.
  9812. lt_prog_compiler_static='-non_shared'
  9813. ;;
  9814. xl*)
  9815. # IBM XL C 8.0/Fortran 10.1 on PPC
  9816. lt_prog_compiler_wl='-Wl,'
  9817. lt_prog_compiler_pic='-qpic'
  9818. lt_prog_compiler_static='-qstaticlink'
  9819. ;;
  9820. *)
  9821. case `$CC -V 2>&1 | sed 5q` in
  9822. *Sun\ C*)
  9823. # Sun C 5.9
  9824. lt_prog_compiler_pic='-KPIC'
  9825. lt_prog_compiler_static='-Bstatic'
  9826. lt_prog_compiler_wl='-Wl,'
  9827. ;;
  9828. *Sun\ F*)
  9829. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9830. lt_prog_compiler_pic='-KPIC'
  9831. lt_prog_compiler_static='-Bstatic'
  9832. lt_prog_compiler_wl=''
  9833. ;;
  9834. esac
  9835. ;;
  9836. esac
  9837. ;;
  9838. newsos6)
  9839. lt_prog_compiler_pic='-KPIC'
  9840. lt_prog_compiler_static='-Bstatic'
  9841. ;;
  9842. *nto* | *qnx*)
  9843. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9844. # it will coredump.
  9845. lt_prog_compiler_pic='-fPIC -shared'
  9846. ;;
  9847. osf3* | osf4* | osf5*)
  9848. lt_prog_compiler_wl='-Wl,'
  9849. # All OSF/1 code is PIC.
  9850. lt_prog_compiler_static='-non_shared'
  9851. ;;
  9852. rdos*)
  9853. lt_prog_compiler_static='-non_shared'
  9854. ;;
  9855. solaris*)
  9856. lt_prog_compiler_pic='-KPIC'
  9857. lt_prog_compiler_static='-Bstatic'
  9858. case $cc_basename in
  9859. f77* | f90* | f95*)
  9860. lt_prog_compiler_wl='-Qoption ld ';;
  9861. *)
  9862. lt_prog_compiler_wl='-Wl,';;
  9863. esac
  9864. ;;
  9865. sunos4*)
  9866. lt_prog_compiler_wl='-Qoption ld '
  9867. lt_prog_compiler_pic='-PIC'
  9868. lt_prog_compiler_static='-Bstatic'
  9869. ;;
  9870. sysv4 | sysv4.2uw2* | sysv4.3*)
  9871. lt_prog_compiler_wl='-Wl,'
  9872. lt_prog_compiler_pic='-KPIC'
  9873. lt_prog_compiler_static='-Bstatic'
  9874. ;;
  9875. sysv4*MP*)
  9876. if test -d /usr/nec ;then
  9877. lt_prog_compiler_pic='-Kconform_pic'
  9878. lt_prog_compiler_static='-Bstatic'
  9879. fi
  9880. ;;
  9881. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9882. lt_prog_compiler_wl='-Wl,'
  9883. lt_prog_compiler_pic='-KPIC'
  9884. lt_prog_compiler_static='-Bstatic'
  9885. ;;
  9886. unicos*)
  9887. lt_prog_compiler_wl='-Wl,'
  9888. lt_prog_compiler_can_build_shared=no
  9889. ;;
  9890. uts4*)
  9891. lt_prog_compiler_pic='-pic'
  9892. lt_prog_compiler_static='-Bstatic'
  9893. ;;
  9894. *)
  9895. lt_prog_compiler_can_build_shared=no
  9896. ;;
  9897. esac
  9898. fi
  9899. case $host_os in
  9900. # For platforms which do not support PIC, -DPIC is meaningless:
  9901. *djgpp*)
  9902. lt_prog_compiler_pic=
  9903. ;;
  9904. *)
  9905. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9906. ;;
  9907. esac
  9908. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  9909. $as_echo "$lt_prog_compiler_pic" >&6; }
  9910. #
  9911. # Check to make sure the PIC flag actually works.
  9912. #
  9913. if test -n "$lt_prog_compiler_pic"; then
  9914. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9915. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9916. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  9917. $as_echo_n "(cached) " >&6
  9918. else
  9919. lt_cv_prog_compiler_pic_works=no
  9920. ac_outfile=conftest.$ac_objext
  9921. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9922. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  9923. # Insert the option either (1) after the last *FLAGS variable, or
  9924. # (2) before a word containing "conftest.", or (3) at the end.
  9925. # Note that $ac_compile itself does not contain backslashes and begins
  9926. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9927. # The option is referenced via a variable to avoid confusing sed.
  9928. lt_compile=`echo "$ac_compile" | $SED \
  9929. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9930. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9931. -e 's:$: $lt_compiler_flag:'`
  9932. (eval echo "\"\$as_me:11323: $lt_compile\"" >&5)
  9933. (eval "$lt_compile" 2>conftest.err)
  9934. ac_status=$?
  9935. cat conftest.err >&5
  9936. echo "$as_me:11327: \$? = $ac_status" >&5
  9937. if (exit $ac_status) && test -s "$ac_outfile"; then
  9938. # The compiler can only warn and ignore the option if not recognized
  9939. # So say no if there are warnings other than the usual output.
  9940. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  9941. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9942. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9943. lt_cv_prog_compiler_pic_works=yes
  9944. fi
  9945. fi
  9946. $RM conftest*
  9947. fi
  9948. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  9949. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9950. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  9951. case $lt_prog_compiler_pic in
  9952. "" | " "*) ;;
  9953. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9954. esac
  9955. else
  9956. lt_prog_compiler_pic=
  9957. lt_prog_compiler_can_build_shared=no
  9958. fi
  9959. fi
  9960. #
  9961. # Check to make sure the static flag actually works.
  9962. #
  9963. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9964. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9965. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9966. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  9967. $as_echo_n "(cached) " >&6
  9968. else
  9969. lt_cv_prog_compiler_static_works=no
  9970. save_LDFLAGS="$LDFLAGS"
  9971. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9972. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9973. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9974. # The linker can only warn and ignore the option if not recognized
  9975. # So say no if there are warnings
  9976. if test -s conftest.err; then
  9977. # Append any errors to the config.log.
  9978. cat conftest.err 1>&5
  9979. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  9980. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9981. if diff conftest.exp conftest.er2 >/dev/null; then
  9982. lt_cv_prog_compiler_static_works=yes
  9983. fi
  9984. else
  9985. lt_cv_prog_compiler_static_works=yes
  9986. fi
  9987. fi
  9988. $RM -r conftest*
  9989. LDFLAGS="$save_LDFLAGS"
  9990. fi
  9991. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  9992. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9993. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  9994. :
  9995. else
  9996. lt_prog_compiler_static=
  9997. fi
  9998. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  9999. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10000. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  10001. $as_echo_n "(cached) " >&6
  10002. else
  10003. lt_cv_prog_compiler_c_o=no
  10004. $RM -r conftest 2>/dev/null
  10005. mkdir conftest
  10006. cd conftest
  10007. mkdir out
  10008. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10009. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10010. # Insert the option either (1) after the last *FLAGS variable, or
  10011. # (2) before a word containing "conftest.", or (3) at the end.
  10012. # Note that $ac_compile itself does not contain backslashes and begins
  10013. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10014. lt_compile=`echo "$ac_compile" | $SED \
  10015. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10016. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10017. -e 's:$: $lt_compiler_flag:'`
  10018. (eval echo "\"\$as_me:11428: $lt_compile\"" >&5)
  10019. (eval "$lt_compile" 2>out/conftest.err)
  10020. ac_status=$?
  10021. cat out/conftest.err >&5
  10022. echo "$as_me:11432: \$? = $ac_status" >&5
  10023. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10024. then
  10025. # The compiler can only warn and ignore the option if not recognized
  10026. # So say no if there are warnings
  10027. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10028. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10029. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10030. lt_cv_prog_compiler_c_o=yes
  10031. fi
  10032. fi
  10033. chmod u+w . 2>&5
  10034. $RM conftest*
  10035. # SGI C++ compiler will create directory out/ii_files/ for
  10036. # template instantiation
  10037. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10038. $RM out/* && rmdir out
  10039. cd ..
  10040. $RM -r conftest
  10041. $RM conftest*
  10042. fi
  10043. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  10044. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10045. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10046. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10047. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  10048. $as_echo_n "(cached) " >&6
  10049. else
  10050. lt_cv_prog_compiler_c_o=no
  10051. $RM -r conftest 2>/dev/null
  10052. mkdir conftest
  10053. cd conftest
  10054. mkdir out
  10055. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10056. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10057. # Insert the option either (1) after the last *FLAGS variable, or
  10058. # (2) before a word containing "conftest.", or (3) at the end.
  10059. # Note that $ac_compile itself does not contain backslashes and begins
  10060. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10061. lt_compile=`echo "$ac_compile" | $SED \
  10062. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10063. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10064. -e 's:$: $lt_compiler_flag:'`
  10065. (eval echo "\"\$as_me:11483: $lt_compile\"" >&5)
  10066. (eval "$lt_compile" 2>out/conftest.err)
  10067. ac_status=$?
  10068. cat out/conftest.err >&5
  10069. echo "$as_me:11487: \$? = $ac_status" >&5
  10070. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10071. then
  10072. # The compiler can only warn and ignore the option if not recognized
  10073. # So say no if there are warnings
  10074. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10075. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10076. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10077. lt_cv_prog_compiler_c_o=yes
  10078. fi
  10079. fi
  10080. chmod u+w . 2>&5
  10081. $RM conftest*
  10082. # SGI C++ compiler will create directory out/ii_files/ for
  10083. # template instantiation
  10084. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10085. $RM out/* && rmdir out
  10086. cd ..
  10087. $RM -r conftest
  10088. $RM conftest*
  10089. fi
  10090. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  10091. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10092. hard_links="nottested"
  10093. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  10094. # do not overwrite the value of need_locks provided by the user
  10095. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10096. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10097. hard_links=yes
  10098. $RM conftest*
  10099. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10100. touch conftest.a
  10101. ln conftest.a conftest.b 2>&5 || hard_links=no
  10102. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10103. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  10104. $as_echo "$hard_links" >&6; }
  10105. if test "$hard_links" = no; then
  10106. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10107. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10108. need_locks=warn
  10109. fi
  10110. else
  10111. need_locks=no
  10112. fi
  10113. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10114. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10115. runpath_var=
  10116. allow_undefined_flag=
  10117. always_export_symbols=no
  10118. archive_cmds=
  10119. archive_expsym_cmds=
  10120. compiler_needs_object=no
  10121. enable_shared_with_static_runtimes=no
  10122. export_dynamic_flag_spec=
  10123. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10124. hardcode_automatic=no
  10125. hardcode_direct=no
  10126. hardcode_direct_absolute=no
  10127. hardcode_libdir_flag_spec=
  10128. hardcode_libdir_flag_spec_ld=
  10129. hardcode_libdir_separator=
  10130. hardcode_minus_L=no
  10131. hardcode_shlibpath_var=unsupported
  10132. inherit_rpath=no
  10133. link_all_deplibs=unknown
  10134. module_cmds=
  10135. module_expsym_cmds=
  10136. old_archive_from_new_cmds=
  10137. old_archive_from_expsyms_cmds=
  10138. thread_safe_flag_spec=
  10139. whole_archive_flag_spec=
  10140. # include_expsyms should be a list of space-separated symbols to be *always*
  10141. # included in the symbol list
  10142. include_expsyms=
  10143. # exclude_expsyms can be an extended regexp of symbols to exclude
  10144. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10145. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10146. # as well as any symbol that contains `d'.
  10147. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10148. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10149. # platforms (ab)use it in PIC code, but their linkers get confused if
  10150. # the symbol is explicitly referenced. Since portable code cannot
  10151. # rely on this symbol name, it's probably fine to never include it in
  10152. # preloaded symbol tables.
  10153. # Exclude shared library initialization/finalization symbols.
  10154. extract_expsyms_cmds=
  10155. case $host_os in
  10156. cygwin* | mingw* | pw32* | cegcc*)
  10157. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10158. # When not using gcc, we currently assume that we are using
  10159. # Microsoft Visual C++.
  10160. if test "$GCC" != yes; then
  10161. with_gnu_ld=no
  10162. fi
  10163. ;;
  10164. interix*)
  10165. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10166. with_gnu_ld=yes
  10167. ;;
  10168. openbsd*)
  10169. with_gnu_ld=no
  10170. ;;
  10171. esac
  10172. ld_shlibs=yes
  10173. if test "$with_gnu_ld" = yes; then
  10174. # If archive_cmds runs LD, not CC, wlarc should be empty
  10175. wlarc='${wl}'
  10176. # Set some defaults for GNU ld with shared library support. These
  10177. # are reset later if shared libraries are not supported. Putting them
  10178. # here allows them to be overridden if necessary.
  10179. runpath_var=LD_RUN_PATH
  10180. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10181. export_dynamic_flag_spec='${wl}--export-dynamic'
  10182. # ancient GNU ld didn't support --whole-archive et. al.
  10183. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10184. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10185. else
  10186. whole_archive_flag_spec=
  10187. fi
  10188. supports_anon_versioning=no
  10189. case `$LD -v 2>&1` in
  10190. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10191. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10192. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10193. *\ 2.11.*) ;; # other 2.11 versions
  10194. *) supports_anon_versioning=yes ;;
  10195. esac
  10196. # See if GNU ld supports shared libraries.
  10197. case $host_os in
  10198. aix[3-9]*)
  10199. # On AIX/PPC, the GNU linker is very broken
  10200. if test "$host_cpu" != ia64; then
  10201. ld_shlibs=no
  10202. cat <<_LT_EOF 1>&2
  10203. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  10204. *** to be unable to reliably create shared libraries on AIX.
  10205. *** Therefore, libtool is disabling shared libraries support. If you
  10206. *** really care for shared libraries, you may want to modify your PATH
  10207. *** so that a non-GNU linker is found, and then restart.
  10208. _LT_EOF
  10209. fi
  10210. ;;
  10211. amigaos*)
  10212. case $host_cpu in
  10213. powerpc)
  10214. # see comment about AmigaOS4 .so support
  10215. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10216. archive_expsym_cmds=''
  10217. ;;
  10218. m68k)
  10219. 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)'
  10220. hardcode_libdir_flag_spec='-L$libdir'
  10221. hardcode_minus_L=yes
  10222. ;;
  10223. esac
  10224. ;;
  10225. beos*)
  10226. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10227. allow_undefined_flag=unsupported
  10228. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10229. # support --undefined. This deserves some investigation. FIXME
  10230. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10231. else
  10232. ld_shlibs=no
  10233. fi
  10234. ;;
  10235. cygwin* | mingw* | pw32* | cegcc*)
  10236. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10237. # as there is no search path for DLLs.
  10238. hardcode_libdir_flag_spec='-L$libdir'
  10239. allow_undefined_flag=unsupported
  10240. always_export_symbols=no
  10241. enable_shared_with_static_runtimes=yes
  10242. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10243. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10244. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10245. # If the export-symbols file already is a .def file (1st line
  10246. # is EXPORTS), use it as is; otherwise, prepend...
  10247. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10248. cp $export_symbols $output_objdir/$soname.def;
  10249. else
  10250. echo EXPORTS > $output_objdir/$soname.def;
  10251. cat $export_symbols >> $output_objdir/$soname.def;
  10252. fi~
  10253. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10254. else
  10255. ld_shlibs=no
  10256. fi
  10257. ;;
  10258. interix[3-9]*)
  10259. hardcode_direct=no
  10260. hardcode_shlibpath_var=no
  10261. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10262. export_dynamic_flag_spec='${wl}-E'
  10263. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10264. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10265. # default) and relocated if they conflict, which is a slow very memory
  10266. # consuming and fragmenting process. To avoid this, we pick a random,
  10267. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10268. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10269. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10270. 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'
  10271. ;;
  10272. gnu* | linux* | tpf* | k*bsd*-gnu)
  10273. tmp_diet=no
  10274. if test "$host_os" = linux-dietlibc; then
  10275. case $cc_basename in
  10276. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10277. esac
  10278. fi
  10279. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10280. && test "$tmp_diet" = no
  10281. then
  10282. tmp_addflag=
  10283. tmp_sharedflag='-shared'
  10284. case $cc_basename,$host_cpu in
  10285. pgcc*) # Portland Group C compiler
  10286. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10287. tmp_addflag=' $pic_flag'
  10288. ;;
  10289. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  10290. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10291. tmp_addflag=' $pic_flag -Mnomain' ;;
  10292. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10293. tmp_addflag=' -i_dynamic' ;;
  10294. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10295. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10296. ifc* | ifort*) # Intel Fortran compiler
  10297. tmp_addflag=' -nofor_main' ;;
  10298. lf95*) # Lahey Fortran 8.1
  10299. whole_archive_flag_spec=
  10300. tmp_sharedflag='--shared' ;;
  10301. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10302. tmp_sharedflag='-qmkshrobj'
  10303. tmp_addflag= ;;
  10304. esac
  10305. case `$CC -V 2>&1 | sed 5q` in
  10306. *Sun\ C*) # Sun C 5.9
  10307. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10308. compiler_needs_object=yes
  10309. tmp_sharedflag='-G' ;;
  10310. *Sun\ F*) # Sun Fortran 8.3
  10311. tmp_sharedflag='-G' ;;
  10312. esac
  10313. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10314. if test "x$supports_anon_versioning" = xyes; then
  10315. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10316. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10317. echo "local: *; };" >> $output_objdir/$libname.ver~
  10318. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10319. fi
  10320. case $cc_basename in
  10321. xlf*)
  10322. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10323. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10324. hardcode_libdir_flag_spec=
  10325. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  10326. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  10327. if test "x$supports_anon_versioning" = xyes; then
  10328. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10329. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10330. echo "local: *; };" >> $output_objdir/$libname.ver~
  10331. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10332. fi
  10333. ;;
  10334. esac
  10335. else
  10336. ld_shlibs=no
  10337. fi
  10338. ;;
  10339. netbsd*)
  10340. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10341. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10342. wlarc=
  10343. else
  10344. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10345. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10346. fi
  10347. ;;
  10348. solaris*)
  10349. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10350. ld_shlibs=no
  10351. cat <<_LT_EOF 1>&2
  10352. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10353. *** create shared libraries on Solaris systems. Therefore, libtool
  10354. *** is disabling shared libraries support. We urge you to upgrade GNU
  10355. *** binutils to release 2.9.1 or newer. Another option is to modify
  10356. *** your PATH or compiler configuration so that the native linker is
  10357. *** used, and then restart.
  10358. _LT_EOF
  10359. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10360. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10361. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10362. else
  10363. ld_shlibs=no
  10364. fi
  10365. ;;
  10366. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10367. case `$LD -v 2>&1` in
  10368. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10369. ld_shlibs=no
  10370. cat <<_LT_EOF 1>&2
  10371. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  10372. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10373. *** is disabling shared libraries support. We urge you to upgrade GNU
  10374. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10375. *** your PATH or compiler configuration so that the native linker is
  10376. *** used, and then restart.
  10377. _LT_EOF
  10378. ;;
  10379. *)
  10380. # For security reasons, it is highly recommended that you always
  10381. # use absolute paths for naming shared libraries, and exclude the
  10382. # DT_RUNPATH tag from executables and libraries. But doing so
  10383. # requires that you compile everything twice, which is a pain.
  10384. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10385. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10386. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10387. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10388. else
  10389. ld_shlibs=no
  10390. fi
  10391. ;;
  10392. esac
  10393. ;;
  10394. sunos4*)
  10395. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10396. wlarc=
  10397. hardcode_direct=yes
  10398. hardcode_shlibpath_var=no
  10399. ;;
  10400. *)
  10401. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10402. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10403. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10404. else
  10405. ld_shlibs=no
  10406. fi
  10407. ;;
  10408. esac
  10409. if test "$ld_shlibs" = no; then
  10410. runpath_var=
  10411. hardcode_libdir_flag_spec=
  10412. export_dynamic_flag_spec=
  10413. whole_archive_flag_spec=
  10414. fi
  10415. else
  10416. # PORTME fill in a description of your system's linker (not GNU ld)
  10417. case $host_os in
  10418. aix3*)
  10419. allow_undefined_flag=unsupported
  10420. always_export_symbols=yes
  10421. 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'
  10422. # Note: this linker hardcodes the directories in LIBPATH if there
  10423. # are no directories specified by -L.
  10424. hardcode_minus_L=yes
  10425. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  10426. # Neither direct hardcoding nor static linking is supported with a
  10427. # broken collect2.
  10428. hardcode_direct=unsupported
  10429. fi
  10430. ;;
  10431. aix[4-9]*)
  10432. if test "$host_cpu" = ia64; then
  10433. # On IA64, the linker does run time linking by default, so we don't
  10434. # have to do anything special.
  10435. aix_use_runtimelinking=no
  10436. exp_sym_flag='-Bexport'
  10437. no_entry_flag=""
  10438. else
  10439. # If we're using GNU nm, then we don't want the "-C" option.
  10440. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10441. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10442. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10443. else
  10444. 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'
  10445. fi
  10446. aix_use_runtimelinking=no
  10447. # Test if we are trying to use run time linking or normal
  10448. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10449. # need to do runtime linking.
  10450. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10451. for ld_flag in $LDFLAGS; do
  10452. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  10453. aix_use_runtimelinking=yes
  10454. break
  10455. fi
  10456. done
  10457. ;;
  10458. esac
  10459. exp_sym_flag='-bexport'
  10460. no_entry_flag='-bnoentry'
  10461. fi
  10462. # When large executables or shared objects are built, AIX ld can
  10463. # have problems creating the table of contents. If linking a library
  10464. # or program results in "error TOC overflow" add -mminimal-toc to
  10465. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10466. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10467. archive_cmds=''
  10468. hardcode_direct=yes
  10469. hardcode_direct_absolute=yes
  10470. hardcode_libdir_separator=':'
  10471. link_all_deplibs=yes
  10472. file_list_spec='${wl}-f,'
  10473. if test "$GCC" = yes; then
  10474. case $host_os in aix4.[012]|aix4.[012].*)
  10475. # We only want to do this on AIX 4.2 and lower, the check
  10476. # below for broken collect2 doesn't work under 4.3+
  10477. collect2name=`${CC} -print-prog-name=collect2`
  10478. if test -f "$collect2name" &&
  10479. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10480. then
  10481. # We have reworked collect2
  10482. :
  10483. else
  10484. # We have old collect2
  10485. hardcode_direct=unsupported
  10486. # It fails to find uninstalled libraries when the uninstalled
  10487. # path is not listed in the libpath. Setting hardcode_minus_L
  10488. # to unsupported forces relinking
  10489. hardcode_minus_L=yes
  10490. hardcode_libdir_flag_spec='-L$libdir'
  10491. hardcode_libdir_separator=
  10492. fi
  10493. ;;
  10494. esac
  10495. shared_flag='-shared'
  10496. if test "$aix_use_runtimelinking" = yes; then
  10497. shared_flag="$shared_flag "'${wl}-G'
  10498. fi
  10499. else
  10500. # not using gcc
  10501. if test "$host_cpu" = ia64; then
  10502. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10503. # chokes on -Wl,-G. The following line is correct:
  10504. shared_flag='-G'
  10505. else
  10506. if test "$aix_use_runtimelinking" = yes; then
  10507. shared_flag='${wl}-G'
  10508. else
  10509. shared_flag='${wl}-bM:SRE'
  10510. fi
  10511. fi
  10512. fi
  10513. export_dynamic_flag_spec='${wl}-bexpall'
  10514. # It seems that -bexpall does not export symbols beginning with
  10515. # underscore (_), so it is better to generate a list of symbols to export.
  10516. always_export_symbols=yes
  10517. if test "$aix_use_runtimelinking" = yes; then
  10518. # Warning - without using the other runtime loading flags (-brtl),
  10519. # -berok will link without error, but may produce a broken library.
  10520. allow_undefined_flag='-berok'
  10521. # Determine the default libpath from the value encoded in an
  10522. # empty executable.
  10523. cat >conftest.$ac_ext <<_ACEOF
  10524. /* confdefs.h. */
  10525. _ACEOF
  10526. cat confdefs.h >>conftest.$ac_ext
  10527. cat >>conftest.$ac_ext <<_ACEOF
  10528. /* end confdefs.h. */
  10529. int
  10530. main ()
  10531. {
  10532. ;
  10533. return 0;
  10534. }
  10535. _ACEOF
  10536. rm -f conftest.$ac_objext conftest$ac_exeext
  10537. if { (ac_try="$ac_link"
  10538. case "(($ac_try" in
  10539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10540. *) ac_try_echo=$ac_try;;
  10541. esac
  10542. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10543. $as_echo "$ac_try_echo") >&5
  10544. (eval "$ac_link") 2>conftest.er1
  10545. ac_status=$?
  10546. grep -v '^ *+' conftest.er1 >conftest.err
  10547. rm -f conftest.er1
  10548. cat conftest.err >&5
  10549. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10550. (exit $ac_status); } && {
  10551. test -z "$ac_c_werror_flag" ||
  10552. test ! -s conftest.err
  10553. } && test -s conftest$ac_exeext && {
  10554. test "$cross_compiling" = yes ||
  10555. $as_test_x conftest$ac_exeext
  10556. }; then
  10557. lt_aix_libpath_sed='
  10558. /Import File Strings/,/^$/ {
  10559. /^0/ {
  10560. s/^0 *\(.*\)$/\1/
  10561. p
  10562. }
  10563. }'
  10564. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10565. # Check for a 64-bit object if we didn't find anything.
  10566. if test -z "$aix_libpath"; then
  10567. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10568. fi
  10569. else
  10570. $as_echo "$as_me: failed program was:" >&5
  10571. sed 's/^/| /' conftest.$ac_ext >&5
  10572. fi
  10573. rm -rf conftest.dSYM
  10574. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10575. conftest$ac_exeext conftest.$ac_ext
  10576. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10577. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  10578. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10579. else
  10580. if test "$host_cpu" = ia64; then
  10581. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  10582. allow_undefined_flag="-z nodefs"
  10583. 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"
  10584. else
  10585. # Determine the default libpath from the value encoded in an
  10586. # empty executable.
  10587. cat >conftest.$ac_ext <<_ACEOF
  10588. /* confdefs.h. */
  10589. _ACEOF
  10590. cat confdefs.h >>conftest.$ac_ext
  10591. cat >>conftest.$ac_ext <<_ACEOF
  10592. /* end confdefs.h. */
  10593. int
  10594. main ()
  10595. {
  10596. ;
  10597. return 0;
  10598. }
  10599. _ACEOF
  10600. rm -f conftest.$ac_objext conftest$ac_exeext
  10601. if { (ac_try="$ac_link"
  10602. case "(($ac_try" in
  10603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10604. *) ac_try_echo=$ac_try;;
  10605. esac
  10606. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10607. $as_echo "$ac_try_echo") >&5
  10608. (eval "$ac_link") 2>conftest.er1
  10609. ac_status=$?
  10610. grep -v '^ *+' conftest.er1 >conftest.err
  10611. rm -f conftest.er1
  10612. cat conftest.err >&5
  10613. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10614. (exit $ac_status); } && {
  10615. test -z "$ac_c_werror_flag" ||
  10616. test ! -s conftest.err
  10617. } && test -s conftest$ac_exeext && {
  10618. test "$cross_compiling" = yes ||
  10619. $as_test_x conftest$ac_exeext
  10620. }; then
  10621. lt_aix_libpath_sed='
  10622. /Import File Strings/,/^$/ {
  10623. /^0/ {
  10624. s/^0 *\(.*\)$/\1/
  10625. p
  10626. }
  10627. }'
  10628. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10629. # Check for a 64-bit object if we didn't find anything.
  10630. if test -z "$aix_libpath"; then
  10631. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10632. fi
  10633. else
  10634. $as_echo "$as_me: failed program was:" >&5
  10635. sed 's/^/| /' conftest.$ac_ext >&5
  10636. fi
  10637. rm -rf conftest.dSYM
  10638. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10639. conftest$ac_exeext conftest.$ac_ext
  10640. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10641. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  10642. # Warning - without using the other run time loading flags,
  10643. # -berok will link without error, but may produce a broken library.
  10644. no_undefined_flag=' ${wl}-bernotok'
  10645. allow_undefined_flag=' ${wl}-berok'
  10646. # Exported symbols can be pulled into shared objects from archives
  10647. whole_archive_flag_spec='$convenience'
  10648. archive_cmds_need_lc=yes
  10649. # This is similar to how AIX traditionally builds its shared libraries.
  10650. 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'
  10651. fi
  10652. fi
  10653. ;;
  10654. amigaos*)
  10655. case $host_cpu in
  10656. powerpc)
  10657. # see comment about AmigaOS4 .so support
  10658. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10659. archive_expsym_cmds=''
  10660. ;;
  10661. m68k)
  10662. 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)'
  10663. hardcode_libdir_flag_spec='-L$libdir'
  10664. hardcode_minus_L=yes
  10665. ;;
  10666. esac
  10667. ;;
  10668. bsdi[45]*)
  10669. export_dynamic_flag_spec=-rdynamic
  10670. ;;
  10671. cygwin* | mingw* | pw32* | cegcc*)
  10672. # When not using gcc, we currently assume that we are using
  10673. # Microsoft Visual C++.
  10674. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10675. # no search path for DLLs.
  10676. hardcode_libdir_flag_spec=' '
  10677. allow_undefined_flag=unsupported
  10678. # Tell ltmain to make .lib files, not .a files.
  10679. libext=lib
  10680. # Tell ltmain to make .dll files, not .so files.
  10681. shrext_cmds=".dll"
  10682. # FIXME: Setting linknames here is a bad hack.
  10683. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  10684. # The linker will automatically build a .lib file if we build a DLL.
  10685. old_archive_from_new_cmds='true'
  10686. # FIXME: Should let the user specify the lib program.
  10687. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10688. fix_srcfile_path='`cygpath -w "$srcfile"`'
  10689. enable_shared_with_static_runtimes=yes
  10690. ;;
  10691. darwin* | rhapsody*)
  10692. archive_cmds_need_lc=no
  10693. hardcode_direct=no
  10694. hardcode_automatic=yes
  10695. hardcode_shlibpath_var=unsupported
  10696. whole_archive_flag_spec=''
  10697. link_all_deplibs=yes
  10698. allow_undefined_flag="$_lt_dar_allow_undefined"
  10699. case $cc_basename in
  10700. ifort*) _lt_dar_can_shared=yes ;;
  10701. *) _lt_dar_can_shared=$GCC ;;
  10702. esac
  10703. if test "$_lt_dar_can_shared" = "yes"; then
  10704. output_verbose_link_cmd=echo
  10705. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10706. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10707. 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}"
  10708. 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}"
  10709. else
  10710. ld_shlibs=no
  10711. fi
  10712. ;;
  10713. dgux*)
  10714. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10715. hardcode_libdir_flag_spec='-L$libdir'
  10716. hardcode_shlibpath_var=no
  10717. ;;
  10718. freebsd1*)
  10719. ld_shlibs=no
  10720. ;;
  10721. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10722. # support. Future versions do this automatically, but an explicit c++rt0.o
  10723. # does not break anything, and helps significantly (at the cost of a little
  10724. # extra space).
  10725. freebsd2.2*)
  10726. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10727. hardcode_libdir_flag_spec='-R$libdir'
  10728. hardcode_direct=yes
  10729. hardcode_shlibpath_var=no
  10730. ;;
  10731. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10732. freebsd2*)
  10733. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10734. hardcode_direct=yes
  10735. hardcode_minus_L=yes
  10736. hardcode_shlibpath_var=no
  10737. ;;
  10738. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10739. freebsd* | dragonfly*)
  10740. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  10741. hardcode_libdir_flag_spec='-R$libdir'
  10742. hardcode_direct=yes
  10743. hardcode_shlibpath_var=no
  10744. ;;
  10745. hpux9*)
  10746. if test "$GCC" = yes; then
  10747. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10748. else
  10749. 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'
  10750. fi
  10751. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10752. hardcode_libdir_separator=:
  10753. hardcode_direct=yes
  10754. # hardcode_minus_L: Not really in the search PATH,
  10755. # but as the default location of the library.
  10756. hardcode_minus_L=yes
  10757. export_dynamic_flag_spec='${wl}-E'
  10758. ;;
  10759. hpux10*)
  10760. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10761. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10762. else
  10763. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10764. fi
  10765. if test "$with_gnu_ld" = no; then
  10766. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10767. hardcode_libdir_flag_spec_ld='+b $libdir'
  10768. hardcode_libdir_separator=:
  10769. hardcode_direct=yes
  10770. hardcode_direct_absolute=yes
  10771. export_dynamic_flag_spec='${wl}-E'
  10772. # hardcode_minus_L: Not really in the search PATH,
  10773. # but as the default location of the library.
  10774. hardcode_minus_L=yes
  10775. fi
  10776. ;;
  10777. hpux11*)
  10778. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10779. case $host_cpu in
  10780. hppa*64*)
  10781. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10782. ;;
  10783. ia64*)
  10784. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10785. ;;
  10786. *)
  10787. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10788. ;;
  10789. esac
  10790. else
  10791. case $host_cpu in
  10792. hppa*64*)
  10793. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10794. ;;
  10795. ia64*)
  10796. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10797. ;;
  10798. *)
  10799. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10800. ;;
  10801. esac
  10802. fi
  10803. if test "$with_gnu_ld" = no; then
  10804. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10805. hardcode_libdir_separator=:
  10806. case $host_cpu in
  10807. hppa*64*|ia64*)
  10808. hardcode_direct=no
  10809. hardcode_shlibpath_var=no
  10810. ;;
  10811. *)
  10812. hardcode_direct=yes
  10813. hardcode_direct_absolute=yes
  10814. export_dynamic_flag_spec='${wl}-E'
  10815. # hardcode_minus_L: Not really in the search PATH,
  10816. # but as the default location of the library.
  10817. hardcode_minus_L=yes
  10818. ;;
  10819. esac
  10820. fi
  10821. ;;
  10822. irix5* | irix6* | nonstopux*)
  10823. if test "$GCC" = yes; then
  10824. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10825. # Try to use the -exported_symbol ld option, if it does not
  10826. # work, assume that -exports_file does not work either and
  10827. # implicitly export all symbols.
  10828. save_LDFLAGS="$LDFLAGS"
  10829. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  10830. cat >conftest.$ac_ext <<_ACEOF
  10831. int foo(void) {}
  10832. _ACEOF
  10833. rm -f conftest.$ac_objext conftest$ac_exeext
  10834. if { (ac_try="$ac_link"
  10835. case "(($ac_try" in
  10836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10837. *) ac_try_echo=$ac_try;;
  10838. esac
  10839. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10840. $as_echo "$ac_try_echo") >&5
  10841. (eval "$ac_link") 2>conftest.er1
  10842. ac_status=$?
  10843. grep -v '^ *+' conftest.er1 >conftest.err
  10844. rm -f conftest.er1
  10845. cat conftest.err >&5
  10846. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10847. (exit $ac_status); } && {
  10848. test -z "$ac_c_werror_flag" ||
  10849. test ! -s conftest.err
  10850. } && test -s conftest$ac_exeext && {
  10851. test "$cross_compiling" = yes ||
  10852. $as_test_x conftest$ac_exeext
  10853. }; then
  10854. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  10855. else
  10856. $as_echo "$as_me: failed program was:" >&5
  10857. sed 's/^/| /' conftest.$ac_ext >&5
  10858. fi
  10859. rm -rf conftest.dSYM
  10860. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10861. conftest$ac_exeext conftest.$ac_ext
  10862. LDFLAGS="$save_LDFLAGS"
  10863. else
  10864. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10865. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  10866. fi
  10867. archive_cmds_need_lc='no'
  10868. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10869. hardcode_libdir_separator=:
  10870. inherit_rpath=yes
  10871. link_all_deplibs=yes
  10872. ;;
  10873. netbsd*)
  10874. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10875. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10876. else
  10877. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10878. fi
  10879. hardcode_libdir_flag_spec='-R$libdir'
  10880. hardcode_direct=yes
  10881. hardcode_shlibpath_var=no
  10882. ;;
  10883. newsos6)
  10884. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10885. hardcode_direct=yes
  10886. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10887. hardcode_libdir_separator=:
  10888. hardcode_shlibpath_var=no
  10889. ;;
  10890. *nto* | *qnx*)
  10891. ;;
  10892. openbsd*)
  10893. if test -f /usr/libexec/ld.so; then
  10894. hardcode_direct=yes
  10895. hardcode_shlibpath_var=no
  10896. hardcode_direct_absolute=yes
  10897. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10898. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10899. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10900. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10901. export_dynamic_flag_spec='${wl}-E'
  10902. else
  10903. case $host_os in
  10904. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  10905. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10906. hardcode_libdir_flag_spec='-R$libdir'
  10907. ;;
  10908. *)
  10909. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10910. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10911. ;;
  10912. esac
  10913. fi
  10914. else
  10915. ld_shlibs=no
  10916. fi
  10917. ;;
  10918. os2*)
  10919. hardcode_libdir_flag_spec='-L$libdir'
  10920. hardcode_minus_L=yes
  10921. allow_undefined_flag=unsupported
  10922. 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'
  10923. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10924. ;;
  10925. osf3*)
  10926. if test "$GCC" = yes; then
  10927. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10928. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10929. else
  10930. allow_undefined_flag=' -expect_unresolved \*'
  10931. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10932. fi
  10933. archive_cmds_need_lc='no'
  10934. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10935. hardcode_libdir_separator=:
  10936. ;;
  10937. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10938. if test "$GCC" = yes; then
  10939. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10940. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10941. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10942. else
  10943. allow_undefined_flag=' -expect_unresolved \*'
  10944. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10945. 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~
  10946. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  10947. # Both c and cxx compiler support -rpath directly
  10948. hardcode_libdir_flag_spec='-rpath $libdir'
  10949. fi
  10950. archive_cmds_need_lc='no'
  10951. hardcode_libdir_separator=:
  10952. ;;
  10953. solaris*)
  10954. no_undefined_flag=' -z defs'
  10955. if test "$GCC" = yes; then
  10956. wlarc='${wl}'
  10957. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10958. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10959. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10960. else
  10961. case `$CC -V 2>&1` in
  10962. *"Compilers 5.0"*)
  10963. wlarc=''
  10964. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10965. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10966. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10967. ;;
  10968. *)
  10969. wlarc='${wl}'
  10970. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10971. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10972. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10973. ;;
  10974. esac
  10975. fi
  10976. hardcode_libdir_flag_spec='-R$libdir'
  10977. hardcode_shlibpath_var=no
  10978. case $host_os in
  10979. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10980. *)
  10981. # The compiler driver will combine and reorder linker options,
  10982. # but understands `-z linker_flag'. GCC discards it without `$wl',
  10983. # but is careful enough not to reorder.
  10984. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10985. if test "$GCC" = yes; then
  10986. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10987. else
  10988. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10989. fi
  10990. ;;
  10991. esac
  10992. link_all_deplibs=yes
  10993. ;;
  10994. sunos4*)
  10995. if test "x$host_vendor" = xsequent; then
  10996. # Use $CC to link under sequent, because it throws in some extra .o
  10997. # files that make .init and .fini sections work.
  10998. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10999. else
  11000. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11001. fi
  11002. hardcode_libdir_flag_spec='-L$libdir'
  11003. hardcode_direct=yes
  11004. hardcode_minus_L=yes
  11005. hardcode_shlibpath_var=no
  11006. ;;
  11007. sysv4)
  11008. case $host_vendor in
  11009. sni)
  11010. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11011. hardcode_direct=yes # is this really true???
  11012. ;;
  11013. siemens)
  11014. ## LD is ld it makes a PLAMLIB
  11015. ## CC just makes a GrossModule.
  11016. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11017. reload_cmds='$CC -r -o $output$reload_objs'
  11018. hardcode_direct=no
  11019. ;;
  11020. motorola)
  11021. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11022. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11023. ;;
  11024. esac
  11025. runpath_var='LD_RUN_PATH'
  11026. hardcode_shlibpath_var=no
  11027. ;;
  11028. sysv4.3*)
  11029. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11030. hardcode_shlibpath_var=no
  11031. export_dynamic_flag_spec='-Bexport'
  11032. ;;
  11033. sysv4*MP*)
  11034. if test -d /usr/nec; then
  11035. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11036. hardcode_shlibpath_var=no
  11037. runpath_var=LD_RUN_PATH
  11038. hardcode_runpath_var=yes
  11039. ld_shlibs=yes
  11040. fi
  11041. ;;
  11042. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11043. no_undefined_flag='${wl}-z,text'
  11044. archive_cmds_need_lc=no
  11045. hardcode_shlibpath_var=no
  11046. runpath_var='LD_RUN_PATH'
  11047. if test "$GCC" = yes; then
  11048. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11049. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11050. else
  11051. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11052. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11053. fi
  11054. ;;
  11055. sysv5* | sco3.2v5* | sco5v6*)
  11056. # Note: We can NOT use -z defs as we might desire, because we do not
  11057. # link with -lc, and that would cause any symbols used from libc to
  11058. # always be unresolved, which means just about no library would
  11059. # ever link correctly. If we're not using GNU ld we use -z text
  11060. # though, which does catch some bad symbols but isn't as heavy-handed
  11061. # as -z defs.
  11062. no_undefined_flag='${wl}-z,text'
  11063. allow_undefined_flag='${wl}-z,nodefs'
  11064. archive_cmds_need_lc=no
  11065. hardcode_shlibpath_var=no
  11066. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  11067. hardcode_libdir_separator=':'
  11068. link_all_deplibs=yes
  11069. export_dynamic_flag_spec='${wl}-Bexport'
  11070. runpath_var='LD_RUN_PATH'
  11071. if test "$GCC" = yes; then
  11072. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11073. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11074. else
  11075. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11076. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11077. fi
  11078. ;;
  11079. uts4*)
  11080. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11081. hardcode_libdir_flag_spec='-L$libdir'
  11082. hardcode_shlibpath_var=no
  11083. ;;
  11084. *)
  11085. ld_shlibs=no
  11086. ;;
  11087. esac
  11088. if test x$host_vendor = xsni; then
  11089. case $host in
  11090. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11091. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11092. ;;
  11093. esac
  11094. fi
  11095. fi
  11096. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  11097. $as_echo "$ld_shlibs" >&6; }
  11098. test "$ld_shlibs" = no && can_build_shared=no
  11099. with_gnu_ld=$with_gnu_ld
  11100. #
  11101. # Do we need to explicitly link libc?
  11102. #
  11103. case "x$archive_cmds_need_lc" in
  11104. x|xyes)
  11105. # Assume -lc should be added
  11106. archive_cmds_need_lc=yes
  11107. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11108. case $archive_cmds in
  11109. *'~'*)
  11110. # FIXME: we may have to deal with multi-command sequences.
  11111. ;;
  11112. '$CC '*)
  11113. # Test whether the compiler implicitly links with -lc since on some
  11114. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11115. # to ld, don't add -lc before -lgcc.
  11116. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11117. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11118. $RM conftest*
  11119. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11120. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11121. (eval $ac_compile) 2>&5
  11122. ac_status=$?
  11123. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11124. (exit $ac_status); } 2>conftest.err; then
  11125. soname=conftest
  11126. lib=conftest
  11127. libobjs=conftest.$ac_objext
  11128. deplibs=
  11129. wl=$lt_prog_compiler_wl
  11130. pic_flag=$lt_prog_compiler_pic
  11131. compiler_flags=-v
  11132. linker_flags=-v
  11133. verstring=
  11134. output_objdir=.
  11135. libname=conftest
  11136. lt_save_allow_undefined_flag=$allow_undefined_flag
  11137. allow_undefined_flag=
  11138. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11139. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11140. ac_status=$?
  11141. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11142. (exit $ac_status); }
  11143. then
  11144. archive_cmds_need_lc=no
  11145. else
  11146. archive_cmds_need_lc=yes
  11147. fi
  11148. allow_undefined_flag=$lt_save_allow_undefined_flag
  11149. else
  11150. cat conftest.err 1>&5
  11151. fi
  11152. $RM conftest*
  11153. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  11154. $as_echo "$archive_cmds_need_lc" >&6; }
  11155. ;;
  11156. esac
  11157. fi
  11158. ;;
  11159. esac
  11160. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11161. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11162. if test "$GCC" = yes; then
  11163. case $host_os in
  11164. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  11165. *) lt_awk_arg="/^libraries:/" ;;
  11166. esac
  11167. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11168. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  11169. # if the path contains ";" then we assume it to be the separator
  11170. # otherwise default to the standard path separator (i.e. ":") - it is
  11171. # assumed that no part of a normal pathname contains ";" but that should
  11172. # okay in the real world where ";" in dirpaths is itself problematic.
  11173. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  11174. else
  11175. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11176. fi
  11177. # Ok, now we have the path, separated by spaces, we can step through it
  11178. # and add multilib dir if necessary.
  11179. lt_tmp_lt_search_path_spec=
  11180. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11181. for lt_sys_path in $lt_search_path_spec; do
  11182. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  11183. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  11184. else
  11185. test -d "$lt_sys_path" && \
  11186. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11187. fi
  11188. done
  11189. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  11190. BEGIN {RS=" "; FS="/|\n";} {
  11191. lt_foo="";
  11192. lt_count=0;
  11193. for (lt_i = NF; lt_i > 0; lt_i--) {
  11194. if ($lt_i != "" && $lt_i != ".") {
  11195. if ($lt_i == "..") {
  11196. lt_count++;
  11197. } else {
  11198. if (lt_count == 0) {
  11199. lt_foo="/" $lt_i lt_foo;
  11200. } else {
  11201. lt_count--;
  11202. }
  11203. }
  11204. }
  11205. }
  11206. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11207. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11208. }'`
  11209. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  11210. else
  11211. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11212. fi
  11213. library_names_spec=
  11214. libname_spec='lib$name'
  11215. soname_spec=
  11216. shrext_cmds=".so"
  11217. postinstall_cmds=
  11218. postuninstall_cmds=
  11219. finish_cmds=
  11220. finish_eval=
  11221. shlibpath_var=
  11222. shlibpath_overrides_runpath=unknown
  11223. version_type=none
  11224. dynamic_linker="$host_os ld.so"
  11225. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11226. need_lib_prefix=unknown
  11227. hardcode_into_libs=no
  11228. # when you set need_version to no, make sure it does not cause -set_version
  11229. # flags to be left without arguments
  11230. need_version=unknown
  11231. case $host_os in
  11232. aix3*)
  11233. version_type=linux
  11234. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11235. shlibpath_var=LIBPATH
  11236. # AIX 3 has no versioning support, so we append a major version to the name.
  11237. soname_spec='${libname}${release}${shared_ext}$major'
  11238. ;;
  11239. aix[4-9]*)
  11240. version_type=linux
  11241. need_lib_prefix=no
  11242. need_version=no
  11243. hardcode_into_libs=yes
  11244. if test "$host_cpu" = ia64; then
  11245. # AIX 5 supports IA64
  11246. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11247. shlibpath_var=LD_LIBRARY_PATH
  11248. else
  11249. # With GCC up to 2.95.x, collect2 would create an import file
  11250. # for dependence libraries. The import file would start with
  11251. # the line `#! .'. This would cause the generated library to
  11252. # depend on `.', always an invalid library. This was fixed in
  11253. # development snapshots of GCC prior to 3.0.
  11254. case $host_os in
  11255. aix4 | aix4.[01] | aix4.[01].*)
  11256. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11257. echo ' yes '
  11258. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11259. :
  11260. else
  11261. can_build_shared=no
  11262. fi
  11263. ;;
  11264. esac
  11265. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11266. # soname into executable. Probably we can add versioning support to
  11267. # collect2, so additional links can be useful in future.
  11268. if test "$aix_use_runtimelinking" = yes; then
  11269. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11270. # instead of lib<name>.a to let people know that these are not
  11271. # typical AIX shared libraries.
  11272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11273. else
  11274. # We preserve .a as extension for shared libraries through AIX4.2
  11275. # and later when we are not doing run time linking.
  11276. library_names_spec='${libname}${release}.a $libname.a'
  11277. soname_spec='${libname}${release}${shared_ext}$major'
  11278. fi
  11279. shlibpath_var=LIBPATH
  11280. fi
  11281. ;;
  11282. amigaos*)
  11283. case $host_cpu in
  11284. powerpc)
  11285. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11286. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11288. ;;
  11289. m68k)
  11290. library_names_spec='$libname.ixlibrary $libname.a'
  11291. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11292. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  11293. ;;
  11294. esac
  11295. ;;
  11296. beos*)
  11297. library_names_spec='${libname}${shared_ext}'
  11298. dynamic_linker="$host_os ld.so"
  11299. shlibpath_var=LIBRARY_PATH
  11300. ;;
  11301. bsdi[45]*)
  11302. version_type=linux
  11303. need_version=no
  11304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11305. soname_spec='${libname}${release}${shared_ext}$major'
  11306. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11307. shlibpath_var=LD_LIBRARY_PATH
  11308. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11309. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11310. # the default ld.so.conf also contains /usr/contrib/lib and
  11311. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11312. # libtool to hard-code these into programs
  11313. ;;
  11314. cygwin* | mingw* | pw32* | cegcc*)
  11315. version_type=windows
  11316. shrext_cmds=".dll"
  11317. need_version=no
  11318. need_lib_prefix=no
  11319. case $GCC,$host_os in
  11320. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11321. library_names_spec='$libname.dll.a'
  11322. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11323. postinstall_cmds='base_file=`basename \${file}`~
  11324. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11325. dldir=$destdir/`dirname \$dlpath`~
  11326. test -d \$dldir || mkdir -p \$dldir~
  11327. $install_prog $dir/$dlname \$dldir/$dlname~
  11328. chmod a+x \$dldir/$dlname~
  11329. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11330. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11331. fi'
  11332. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11333. dlpath=$dir/\$dldll~
  11334. $RM \$dlpath'
  11335. shlibpath_overrides_runpath=yes
  11336. case $host_os in
  11337. cygwin*)
  11338. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11339. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11340. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11341. ;;
  11342. mingw* | cegcc*)
  11343. # MinGW DLLs use traditional 'lib' prefix
  11344. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11345. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11346. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11347. # It is most probably a Windows format PATH printed by
  11348. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11349. # path with ; separators, and with drive letters. We can handle the
  11350. # drive letters (cygwin fileutils understands them), so leave them,
  11351. # especially as we might pass files found there to a mingw objdump,
  11352. # which wouldn't understand a cygwinified path. Ahh.
  11353. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11354. else
  11355. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11356. fi
  11357. ;;
  11358. pw32*)
  11359. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11360. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11361. ;;
  11362. esac
  11363. ;;
  11364. *)
  11365. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11366. ;;
  11367. esac
  11368. dynamic_linker='Win32 ld.exe'
  11369. # FIXME: first we should search . and the directory the executable is in
  11370. shlibpath_var=PATH
  11371. ;;
  11372. darwin* | rhapsody*)
  11373. dynamic_linker="$host_os dyld"
  11374. version_type=darwin
  11375. need_lib_prefix=no
  11376. need_version=no
  11377. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11378. soname_spec='${libname}${release}${major}$shared_ext'
  11379. shlibpath_overrides_runpath=yes
  11380. shlibpath_var=DYLD_LIBRARY_PATH
  11381. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11382. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11383. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11384. ;;
  11385. dgux*)
  11386. version_type=linux
  11387. need_lib_prefix=no
  11388. need_version=no
  11389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11390. soname_spec='${libname}${release}${shared_ext}$major'
  11391. shlibpath_var=LD_LIBRARY_PATH
  11392. ;;
  11393. freebsd1*)
  11394. dynamic_linker=no
  11395. ;;
  11396. freebsd* | dragonfly*)
  11397. # DragonFly does not have aout. When/if they implement a new
  11398. # versioning mechanism, adjust this.
  11399. if test -x /usr/bin/objformat; then
  11400. objformat=`/usr/bin/objformat`
  11401. else
  11402. case $host_os in
  11403. freebsd[123]*) objformat=aout ;;
  11404. *) objformat=elf ;;
  11405. esac
  11406. fi
  11407. version_type=freebsd-$objformat
  11408. case $version_type in
  11409. freebsd-elf*)
  11410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11411. need_version=no
  11412. need_lib_prefix=no
  11413. ;;
  11414. freebsd-*)
  11415. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11416. need_version=yes
  11417. ;;
  11418. esac
  11419. shlibpath_var=LD_LIBRARY_PATH
  11420. case $host_os in
  11421. freebsd2*)
  11422. shlibpath_overrides_runpath=yes
  11423. ;;
  11424. freebsd3.[01]* | freebsdelf3.[01]*)
  11425. shlibpath_overrides_runpath=yes
  11426. hardcode_into_libs=yes
  11427. ;;
  11428. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11429. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11430. shlibpath_overrides_runpath=no
  11431. hardcode_into_libs=yes
  11432. ;;
  11433. *) # from 4.6 on, and DragonFly
  11434. shlibpath_overrides_runpath=yes
  11435. hardcode_into_libs=yes
  11436. ;;
  11437. esac
  11438. ;;
  11439. gnu*)
  11440. version_type=linux
  11441. need_lib_prefix=no
  11442. need_version=no
  11443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11444. soname_spec='${libname}${release}${shared_ext}$major'
  11445. shlibpath_var=LD_LIBRARY_PATH
  11446. hardcode_into_libs=yes
  11447. ;;
  11448. hpux9* | hpux10* | hpux11*)
  11449. # Give a soname corresponding to the major version so that dld.sl refuses to
  11450. # link against other versions.
  11451. version_type=sunos
  11452. need_lib_prefix=no
  11453. need_version=no
  11454. case $host_cpu in
  11455. ia64*)
  11456. shrext_cmds='.so'
  11457. hardcode_into_libs=yes
  11458. dynamic_linker="$host_os dld.so"
  11459. shlibpath_var=LD_LIBRARY_PATH
  11460. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11462. soname_spec='${libname}${release}${shared_ext}$major'
  11463. if test "X$HPUX_IA64_MODE" = X32; then
  11464. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11465. else
  11466. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11467. fi
  11468. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11469. ;;
  11470. hppa*64*)
  11471. shrext_cmds='.sl'
  11472. hardcode_into_libs=yes
  11473. dynamic_linker="$host_os dld.sl"
  11474. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11475. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11476. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11477. soname_spec='${libname}${release}${shared_ext}$major'
  11478. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11479. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11480. ;;
  11481. *)
  11482. shrext_cmds='.sl'
  11483. dynamic_linker="$host_os dld.sl"
  11484. shlibpath_var=SHLIB_PATH
  11485. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11487. soname_spec='${libname}${release}${shared_ext}$major'
  11488. ;;
  11489. esac
  11490. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11491. postinstall_cmds='chmod 555 $lib'
  11492. ;;
  11493. interix[3-9]*)
  11494. version_type=linux
  11495. need_lib_prefix=no
  11496. need_version=no
  11497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11498. soname_spec='${libname}${release}${shared_ext}$major'
  11499. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11500. shlibpath_var=LD_LIBRARY_PATH
  11501. shlibpath_overrides_runpath=no
  11502. hardcode_into_libs=yes
  11503. ;;
  11504. irix5* | irix6* | nonstopux*)
  11505. case $host_os in
  11506. nonstopux*) version_type=nonstopux ;;
  11507. *)
  11508. if test "$lt_cv_prog_gnu_ld" = yes; then
  11509. version_type=linux
  11510. else
  11511. version_type=irix
  11512. fi ;;
  11513. esac
  11514. need_lib_prefix=no
  11515. need_version=no
  11516. soname_spec='${libname}${release}${shared_ext}$major'
  11517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11518. case $host_os in
  11519. irix5* | nonstopux*)
  11520. libsuff= shlibsuff=
  11521. ;;
  11522. *)
  11523. case $LD in # libtool.m4 will add one of these switches to LD
  11524. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11525. libsuff= shlibsuff= libmagic=32-bit;;
  11526. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11527. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11528. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11529. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11530. *) libsuff= shlibsuff= libmagic=never-match;;
  11531. esac
  11532. ;;
  11533. esac
  11534. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11535. shlibpath_overrides_runpath=no
  11536. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11537. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11538. hardcode_into_libs=yes
  11539. ;;
  11540. # No shared lib support for Linux oldld, aout, or coff.
  11541. linux*oldld* | linux*aout* | linux*coff*)
  11542. dynamic_linker=no
  11543. ;;
  11544. # This must be Linux ELF.
  11545. linux* | k*bsd*-gnu)
  11546. version_type=linux
  11547. need_lib_prefix=no
  11548. need_version=no
  11549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11550. soname_spec='${libname}${release}${shared_ext}$major'
  11551. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11552. shlibpath_var=LD_LIBRARY_PATH
  11553. shlibpath_overrides_runpath=no
  11554. # Some binutils ld are patched to set DT_RUNPATH
  11555. save_LDFLAGS=$LDFLAGS
  11556. save_libdir=$libdir
  11557. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11558. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11559. cat >conftest.$ac_ext <<_ACEOF
  11560. /* confdefs.h. */
  11561. _ACEOF
  11562. cat confdefs.h >>conftest.$ac_ext
  11563. cat >>conftest.$ac_ext <<_ACEOF
  11564. /* end confdefs.h. */
  11565. int
  11566. main ()
  11567. {
  11568. ;
  11569. return 0;
  11570. }
  11571. _ACEOF
  11572. rm -f conftest.$ac_objext conftest$ac_exeext
  11573. if { (ac_try="$ac_link"
  11574. case "(($ac_try" in
  11575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11576. *) ac_try_echo=$ac_try;;
  11577. esac
  11578. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11579. $as_echo "$ac_try_echo") >&5
  11580. (eval "$ac_link") 2>conftest.er1
  11581. ac_status=$?
  11582. grep -v '^ *+' conftest.er1 >conftest.err
  11583. rm -f conftest.er1
  11584. cat conftest.err >&5
  11585. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11586. (exit $ac_status); } && {
  11587. test -z "$ac_c_werror_flag" ||
  11588. test ! -s conftest.err
  11589. } && test -s conftest$ac_exeext && {
  11590. test "$cross_compiling" = yes ||
  11591. $as_test_x conftest$ac_exeext
  11592. }; then
  11593. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  11594. shlibpath_overrides_runpath=yes
  11595. fi
  11596. else
  11597. $as_echo "$as_me: failed program was:" >&5
  11598. sed 's/^/| /' conftest.$ac_ext >&5
  11599. fi
  11600. rm -rf conftest.dSYM
  11601. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11602. conftest$ac_exeext conftest.$ac_ext
  11603. LDFLAGS=$save_LDFLAGS
  11604. libdir=$save_libdir
  11605. # This implies no fast_install, which is unacceptable.
  11606. # Some rework will be needed to allow for fast_install
  11607. # before this can be enabled.
  11608. hardcode_into_libs=yes
  11609. # Append ld.so.conf contents to the search path
  11610. if test -f /etc/ld.so.conf; then
  11611. 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;/^$/d' | tr '\n' ' '`
  11612. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11613. fi
  11614. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11615. # powerpc, because MkLinux only supported shared libraries with the
  11616. # GNU dynamic linker. Since this was broken with cross compilers,
  11617. # most powerpc-linux boxes support dynamic linking these days and
  11618. # people can always --disable-shared, the test was removed, and we
  11619. # assume the GNU/Linux dynamic linker is in use.
  11620. dynamic_linker='GNU/Linux ld.so'
  11621. ;;
  11622. netbsd*)
  11623. version_type=sunos
  11624. need_lib_prefix=no
  11625. need_version=no
  11626. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11628. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11629. dynamic_linker='NetBSD (a.out) ld.so'
  11630. else
  11631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11632. soname_spec='${libname}${release}${shared_ext}$major'
  11633. dynamic_linker='NetBSD ld.elf_so'
  11634. fi
  11635. shlibpath_var=LD_LIBRARY_PATH
  11636. shlibpath_overrides_runpath=yes
  11637. hardcode_into_libs=yes
  11638. ;;
  11639. newsos6)
  11640. version_type=linux
  11641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11642. shlibpath_var=LD_LIBRARY_PATH
  11643. shlibpath_overrides_runpath=yes
  11644. ;;
  11645. *nto* | *qnx*)
  11646. version_type=qnx
  11647. need_lib_prefix=no
  11648. need_version=no
  11649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11650. soname_spec='${libname}${release}${shared_ext}$major'
  11651. shlibpath_var=LD_LIBRARY_PATH
  11652. shlibpath_overrides_runpath=no
  11653. hardcode_into_libs=yes
  11654. dynamic_linker='ldqnx.so'
  11655. ;;
  11656. openbsd*)
  11657. version_type=sunos
  11658. sys_lib_dlsearch_path_spec="/usr/lib"
  11659. need_lib_prefix=no
  11660. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11661. case $host_os in
  11662. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11663. *) need_version=no ;;
  11664. esac
  11665. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11666. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11667. shlibpath_var=LD_LIBRARY_PATH
  11668. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11669. case $host_os in
  11670. openbsd2.[89] | openbsd2.[89].*)
  11671. shlibpath_overrides_runpath=no
  11672. ;;
  11673. *)
  11674. shlibpath_overrides_runpath=yes
  11675. ;;
  11676. esac
  11677. else
  11678. shlibpath_overrides_runpath=yes
  11679. fi
  11680. ;;
  11681. os2*)
  11682. libname_spec='$name'
  11683. shrext_cmds=".dll"
  11684. need_lib_prefix=no
  11685. library_names_spec='$libname${shared_ext} $libname.a'
  11686. dynamic_linker='OS/2 ld.exe'
  11687. shlibpath_var=LIBPATH
  11688. ;;
  11689. osf3* | osf4* | osf5*)
  11690. version_type=osf
  11691. need_lib_prefix=no
  11692. need_version=no
  11693. soname_spec='${libname}${release}${shared_ext}$major'
  11694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11695. shlibpath_var=LD_LIBRARY_PATH
  11696. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11697. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11698. ;;
  11699. rdos*)
  11700. dynamic_linker=no
  11701. ;;
  11702. solaris*)
  11703. version_type=linux
  11704. need_lib_prefix=no
  11705. need_version=no
  11706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11707. soname_spec='${libname}${release}${shared_ext}$major'
  11708. shlibpath_var=LD_LIBRARY_PATH
  11709. shlibpath_overrides_runpath=yes
  11710. hardcode_into_libs=yes
  11711. # ldd complains unless libraries are executable
  11712. postinstall_cmds='chmod +x $lib'
  11713. ;;
  11714. sunos4*)
  11715. version_type=sunos
  11716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11717. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11718. shlibpath_var=LD_LIBRARY_PATH
  11719. shlibpath_overrides_runpath=yes
  11720. if test "$with_gnu_ld" = yes; then
  11721. need_lib_prefix=no
  11722. fi
  11723. need_version=yes
  11724. ;;
  11725. sysv4 | sysv4.3*)
  11726. version_type=linux
  11727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11728. soname_spec='${libname}${release}${shared_ext}$major'
  11729. shlibpath_var=LD_LIBRARY_PATH
  11730. case $host_vendor in
  11731. sni)
  11732. shlibpath_overrides_runpath=no
  11733. need_lib_prefix=no
  11734. runpath_var=LD_RUN_PATH
  11735. ;;
  11736. siemens)
  11737. need_lib_prefix=no
  11738. ;;
  11739. motorola)
  11740. need_lib_prefix=no
  11741. need_version=no
  11742. shlibpath_overrides_runpath=no
  11743. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11744. ;;
  11745. esac
  11746. ;;
  11747. sysv4*MP*)
  11748. if test -d /usr/nec ;then
  11749. version_type=linux
  11750. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11751. soname_spec='$libname${shared_ext}.$major'
  11752. shlibpath_var=LD_LIBRARY_PATH
  11753. fi
  11754. ;;
  11755. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11756. version_type=freebsd-elf
  11757. need_lib_prefix=no
  11758. need_version=no
  11759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11760. soname_spec='${libname}${release}${shared_ext}$major'
  11761. shlibpath_var=LD_LIBRARY_PATH
  11762. shlibpath_overrides_runpath=yes
  11763. hardcode_into_libs=yes
  11764. if test "$with_gnu_ld" = yes; then
  11765. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11766. else
  11767. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11768. case $host_os in
  11769. sco3.2v5*)
  11770. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11771. ;;
  11772. esac
  11773. fi
  11774. sys_lib_dlsearch_path_spec='/usr/lib'
  11775. ;;
  11776. tpf*)
  11777. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11778. version_type=linux
  11779. need_lib_prefix=no
  11780. need_version=no
  11781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11782. shlibpath_var=LD_LIBRARY_PATH
  11783. shlibpath_overrides_runpath=no
  11784. hardcode_into_libs=yes
  11785. ;;
  11786. uts4*)
  11787. version_type=linux
  11788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11789. soname_spec='${libname}${release}${shared_ext}$major'
  11790. shlibpath_var=LD_LIBRARY_PATH
  11791. ;;
  11792. *)
  11793. dynamic_linker=no
  11794. ;;
  11795. esac
  11796. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11797. $as_echo "$dynamic_linker" >&6; }
  11798. test "$dynamic_linker" = no && can_build_shared=no
  11799. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11800. if test "$GCC" = yes; then
  11801. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11802. fi
  11803. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11804. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11805. fi
  11806. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11807. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11808. fi
  11809. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11810. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11811. hardcode_action=
  11812. if test -n "$hardcode_libdir_flag_spec" ||
  11813. test -n "$runpath_var" ||
  11814. test "X$hardcode_automatic" = "Xyes" ; then
  11815. # We can hardcode non-existent directories.
  11816. if test "$hardcode_direct" != no &&
  11817. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11818. # have to relink, otherwise we might link with an installed library
  11819. # when we should be linking with a yet-to-be-installed one
  11820. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11821. test "$hardcode_minus_L" != no; then
  11822. # Linking always hardcodes the temporary library directory.
  11823. hardcode_action=relink
  11824. else
  11825. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11826. hardcode_action=immediate
  11827. fi
  11828. else
  11829. # We cannot hardcode anything, or else we can only hardcode existing
  11830. # directories.
  11831. hardcode_action=unsupported
  11832. fi
  11833. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  11834. $as_echo "$hardcode_action" >&6; }
  11835. if test "$hardcode_action" = relink ||
  11836. test "$inherit_rpath" = yes; then
  11837. # Fast installation is not supported
  11838. enable_fast_install=no
  11839. elif test "$shlibpath_overrides_runpath" = yes ||
  11840. test "$enable_shared" = no; then
  11841. # Fast installation is not necessary
  11842. enable_fast_install=needless
  11843. fi
  11844. if test "x$enable_dlopen" != xyes; then
  11845. enable_dlopen=unknown
  11846. enable_dlopen_self=unknown
  11847. enable_dlopen_self_static=unknown
  11848. else
  11849. lt_cv_dlopen=no
  11850. lt_cv_dlopen_libs=
  11851. case $host_os in
  11852. beos*)
  11853. lt_cv_dlopen="load_add_on"
  11854. lt_cv_dlopen_libs=
  11855. lt_cv_dlopen_self=yes
  11856. ;;
  11857. mingw* | pw32* | cegcc*)
  11858. lt_cv_dlopen="LoadLibrary"
  11859. lt_cv_dlopen_libs=
  11860. ;;
  11861. cygwin*)
  11862. lt_cv_dlopen="dlopen"
  11863. lt_cv_dlopen_libs=
  11864. ;;
  11865. darwin*)
  11866. # if libdl is installed we need to link against it
  11867. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  11868. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11869. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  11870. $as_echo_n "(cached) " >&6
  11871. else
  11872. ac_check_lib_save_LIBS=$LIBS
  11873. LIBS="-ldl $LIBS"
  11874. cat >conftest.$ac_ext <<_ACEOF
  11875. /* confdefs.h. */
  11876. _ACEOF
  11877. cat confdefs.h >>conftest.$ac_ext
  11878. cat >>conftest.$ac_ext <<_ACEOF
  11879. /* end confdefs.h. */
  11880. /* Override any GCC internal prototype to avoid an error.
  11881. Use char because int might match the return type of a GCC
  11882. builtin and then its argument prototype would still apply. */
  11883. #ifdef __cplusplus
  11884. extern "C"
  11885. #endif
  11886. char dlopen ();
  11887. int
  11888. main ()
  11889. {
  11890. return dlopen ();
  11891. ;
  11892. return 0;
  11893. }
  11894. _ACEOF
  11895. rm -f conftest.$ac_objext conftest$ac_exeext
  11896. if { (ac_try="$ac_link"
  11897. case "(($ac_try" in
  11898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11899. *) ac_try_echo=$ac_try;;
  11900. esac
  11901. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11902. $as_echo "$ac_try_echo") >&5
  11903. (eval "$ac_link") 2>conftest.er1
  11904. ac_status=$?
  11905. grep -v '^ *+' conftest.er1 >conftest.err
  11906. rm -f conftest.er1
  11907. cat conftest.err >&5
  11908. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11909. (exit $ac_status); } && {
  11910. test -z "$ac_c_werror_flag" ||
  11911. test ! -s conftest.err
  11912. } && test -s conftest$ac_exeext && {
  11913. test "$cross_compiling" = yes ||
  11914. $as_test_x conftest$ac_exeext
  11915. }; then
  11916. ac_cv_lib_dl_dlopen=yes
  11917. else
  11918. $as_echo "$as_me: failed program was:" >&5
  11919. sed 's/^/| /' conftest.$ac_ext >&5
  11920. ac_cv_lib_dl_dlopen=no
  11921. fi
  11922. rm -rf conftest.dSYM
  11923. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11924. conftest$ac_exeext conftest.$ac_ext
  11925. LIBS=$ac_check_lib_save_LIBS
  11926. fi
  11927. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  11928. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11929. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  11930. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11931. else
  11932. lt_cv_dlopen="dyld"
  11933. lt_cv_dlopen_libs=
  11934. lt_cv_dlopen_self=yes
  11935. fi
  11936. ;;
  11937. *)
  11938. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  11939. $as_echo_n "checking for shl_load... " >&6; }
  11940. if test "${ac_cv_func_shl_load+set}" = set; then
  11941. $as_echo_n "(cached) " >&6
  11942. else
  11943. cat >conftest.$ac_ext <<_ACEOF
  11944. /* confdefs.h. */
  11945. _ACEOF
  11946. cat confdefs.h >>conftest.$ac_ext
  11947. cat >>conftest.$ac_ext <<_ACEOF
  11948. /* end confdefs.h. */
  11949. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  11950. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11951. #define shl_load innocuous_shl_load
  11952. /* System header to define __stub macros and hopefully few prototypes,
  11953. which can conflict with char shl_load (); below.
  11954. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11955. <limits.h> exists even on freestanding compilers. */
  11956. #ifdef __STDC__
  11957. # include <limits.h>
  11958. #else
  11959. # include <assert.h>
  11960. #endif
  11961. #undef shl_load
  11962. /* Override any GCC internal prototype to avoid an error.
  11963. Use char because int might match the return type of a GCC
  11964. builtin and then its argument prototype would still apply. */
  11965. #ifdef __cplusplus
  11966. extern "C"
  11967. #endif
  11968. char shl_load ();
  11969. /* The GNU C library defines this for functions which it implements
  11970. to always fail with ENOSYS. Some functions are actually named
  11971. something starting with __ and the normal name is an alias. */
  11972. #if defined __stub_shl_load || defined __stub___shl_load
  11973. choke me
  11974. #endif
  11975. int
  11976. main ()
  11977. {
  11978. return shl_load ();
  11979. ;
  11980. return 0;
  11981. }
  11982. _ACEOF
  11983. rm -f conftest.$ac_objext conftest$ac_exeext
  11984. if { (ac_try="$ac_link"
  11985. case "(($ac_try" in
  11986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11987. *) ac_try_echo=$ac_try;;
  11988. esac
  11989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11990. $as_echo "$ac_try_echo") >&5
  11991. (eval "$ac_link") 2>conftest.er1
  11992. ac_status=$?
  11993. grep -v '^ *+' conftest.er1 >conftest.err
  11994. rm -f conftest.er1
  11995. cat conftest.err >&5
  11996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11997. (exit $ac_status); } && {
  11998. test -z "$ac_c_werror_flag" ||
  11999. test ! -s conftest.err
  12000. } && test -s conftest$ac_exeext && {
  12001. test "$cross_compiling" = yes ||
  12002. $as_test_x conftest$ac_exeext
  12003. }; then
  12004. ac_cv_func_shl_load=yes
  12005. else
  12006. $as_echo "$as_me: failed program was:" >&5
  12007. sed 's/^/| /' conftest.$ac_ext >&5
  12008. ac_cv_func_shl_load=no
  12009. fi
  12010. rm -rf conftest.dSYM
  12011. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12012. conftest$ac_exeext conftest.$ac_ext
  12013. fi
  12014. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  12015. $as_echo "$ac_cv_func_shl_load" >&6; }
  12016. if test "x$ac_cv_func_shl_load" = x""yes; then
  12017. lt_cv_dlopen="shl_load"
  12018. else
  12019. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  12020. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  12021. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  12022. $as_echo_n "(cached) " >&6
  12023. else
  12024. ac_check_lib_save_LIBS=$LIBS
  12025. LIBS="-ldld $LIBS"
  12026. cat >conftest.$ac_ext <<_ACEOF
  12027. /* confdefs.h. */
  12028. _ACEOF
  12029. cat confdefs.h >>conftest.$ac_ext
  12030. cat >>conftest.$ac_ext <<_ACEOF
  12031. /* end confdefs.h. */
  12032. /* Override any GCC internal prototype to avoid an error.
  12033. Use char because int might match the return type of a GCC
  12034. builtin and then its argument prototype would still apply. */
  12035. #ifdef __cplusplus
  12036. extern "C"
  12037. #endif
  12038. char shl_load ();
  12039. int
  12040. main ()
  12041. {
  12042. return shl_load ();
  12043. ;
  12044. return 0;
  12045. }
  12046. _ACEOF
  12047. rm -f conftest.$ac_objext conftest$ac_exeext
  12048. if { (ac_try="$ac_link"
  12049. case "(($ac_try" in
  12050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12051. *) ac_try_echo=$ac_try;;
  12052. esac
  12053. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12054. $as_echo "$ac_try_echo") >&5
  12055. (eval "$ac_link") 2>conftest.er1
  12056. ac_status=$?
  12057. grep -v '^ *+' conftest.er1 >conftest.err
  12058. rm -f conftest.er1
  12059. cat conftest.err >&5
  12060. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12061. (exit $ac_status); } && {
  12062. test -z "$ac_c_werror_flag" ||
  12063. test ! -s conftest.err
  12064. } && test -s conftest$ac_exeext && {
  12065. test "$cross_compiling" = yes ||
  12066. $as_test_x conftest$ac_exeext
  12067. }; then
  12068. ac_cv_lib_dld_shl_load=yes
  12069. else
  12070. $as_echo "$as_me: failed program was:" >&5
  12071. sed 's/^/| /' conftest.$ac_ext >&5
  12072. ac_cv_lib_dld_shl_load=no
  12073. fi
  12074. rm -rf conftest.dSYM
  12075. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12076. conftest$ac_exeext conftest.$ac_ext
  12077. LIBS=$ac_check_lib_save_LIBS
  12078. fi
  12079. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  12080. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  12081. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  12082. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  12083. else
  12084. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  12085. $as_echo_n "checking for dlopen... " >&6; }
  12086. if test "${ac_cv_func_dlopen+set}" = set; then
  12087. $as_echo_n "(cached) " >&6
  12088. else
  12089. cat >conftest.$ac_ext <<_ACEOF
  12090. /* confdefs.h. */
  12091. _ACEOF
  12092. cat confdefs.h >>conftest.$ac_ext
  12093. cat >>conftest.$ac_ext <<_ACEOF
  12094. /* end confdefs.h. */
  12095. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  12096. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12097. #define dlopen innocuous_dlopen
  12098. /* System header to define __stub macros and hopefully few prototypes,
  12099. which can conflict with char dlopen (); below.
  12100. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12101. <limits.h> exists even on freestanding compilers. */
  12102. #ifdef __STDC__
  12103. # include <limits.h>
  12104. #else
  12105. # include <assert.h>
  12106. #endif
  12107. #undef dlopen
  12108. /* Override any GCC internal prototype to avoid an error.
  12109. Use char because int might match the return type of a GCC
  12110. builtin and then its argument prototype would still apply. */
  12111. #ifdef __cplusplus
  12112. extern "C"
  12113. #endif
  12114. char dlopen ();
  12115. /* The GNU C library defines this for functions which it implements
  12116. to always fail with ENOSYS. Some functions are actually named
  12117. something starting with __ and the normal name is an alias. */
  12118. #if defined __stub_dlopen || defined __stub___dlopen
  12119. choke me
  12120. #endif
  12121. int
  12122. main ()
  12123. {
  12124. return dlopen ();
  12125. ;
  12126. return 0;
  12127. }
  12128. _ACEOF
  12129. rm -f conftest.$ac_objext conftest$ac_exeext
  12130. if { (ac_try="$ac_link"
  12131. case "(($ac_try" in
  12132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12133. *) ac_try_echo=$ac_try;;
  12134. esac
  12135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12136. $as_echo "$ac_try_echo") >&5
  12137. (eval "$ac_link") 2>conftest.er1
  12138. ac_status=$?
  12139. grep -v '^ *+' conftest.er1 >conftest.err
  12140. rm -f conftest.er1
  12141. cat conftest.err >&5
  12142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12143. (exit $ac_status); } && {
  12144. test -z "$ac_c_werror_flag" ||
  12145. test ! -s conftest.err
  12146. } && test -s conftest$ac_exeext && {
  12147. test "$cross_compiling" = yes ||
  12148. $as_test_x conftest$ac_exeext
  12149. }; then
  12150. ac_cv_func_dlopen=yes
  12151. else
  12152. $as_echo "$as_me: failed program was:" >&5
  12153. sed 's/^/| /' conftest.$ac_ext >&5
  12154. ac_cv_func_dlopen=no
  12155. fi
  12156. rm -rf conftest.dSYM
  12157. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12158. conftest$ac_exeext conftest.$ac_ext
  12159. fi
  12160. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  12161. $as_echo "$ac_cv_func_dlopen" >&6; }
  12162. if test "x$ac_cv_func_dlopen" = x""yes; then
  12163. lt_cv_dlopen="dlopen"
  12164. else
  12165. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  12166. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12167. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  12168. $as_echo_n "(cached) " >&6
  12169. else
  12170. ac_check_lib_save_LIBS=$LIBS
  12171. LIBS="-ldl $LIBS"
  12172. cat >conftest.$ac_ext <<_ACEOF
  12173. /* confdefs.h. */
  12174. _ACEOF
  12175. cat confdefs.h >>conftest.$ac_ext
  12176. cat >>conftest.$ac_ext <<_ACEOF
  12177. /* end confdefs.h. */
  12178. /* Override any GCC internal prototype to avoid an error.
  12179. Use char because int might match the return type of a GCC
  12180. builtin and then its argument prototype would still apply. */
  12181. #ifdef __cplusplus
  12182. extern "C"
  12183. #endif
  12184. char dlopen ();
  12185. int
  12186. main ()
  12187. {
  12188. return dlopen ();
  12189. ;
  12190. return 0;
  12191. }
  12192. _ACEOF
  12193. rm -f conftest.$ac_objext conftest$ac_exeext
  12194. if { (ac_try="$ac_link"
  12195. case "(($ac_try" in
  12196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12197. *) ac_try_echo=$ac_try;;
  12198. esac
  12199. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12200. $as_echo "$ac_try_echo") >&5
  12201. (eval "$ac_link") 2>conftest.er1
  12202. ac_status=$?
  12203. grep -v '^ *+' conftest.er1 >conftest.err
  12204. rm -f conftest.er1
  12205. cat conftest.err >&5
  12206. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12207. (exit $ac_status); } && {
  12208. test -z "$ac_c_werror_flag" ||
  12209. test ! -s conftest.err
  12210. } && test -s conftest$ac_exeext && {
  12211. test "$cross_compiling" = yes ||
  12212. $as_test_x conftest$ac_exeext
  12213. }; then
  12214. ac_cv_lib_dl_dlopen=yes
  12215. else
  12216. $as_echo "$as_me: failed program was:" >&5
  12217. sed 's/^/| /' conftest.$ac_ext >&5
  12218. ac_cv_lib_dl_dlopen=no
  12219. fi
  12220. rm -rf conftest.dSYM
  12221. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12222. conftest$ac_exeext conftest.$ac_ext
  12223. LIBS=$ac_check_lib_save_LIBS
  12224. fi
  12225. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  12226. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12227. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  12228. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12229. else
  12230. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  12231. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12232. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  12233. $as_echo_n "(cached) " >&6
  12234. else
  12235. ac_check_lib_save_LIBS=$LIBS
  12236. LIBS="-lsvld $LIBS"
  12237. cat >conftest.$ac_ext <<_ACEOF
  12238. /* confdefs.h. */
  12239. _ACEOF
  12240. cat confdefs.h >>conftest.$ac_ext
  12241. cat >>conftest.$ac_ext <<_ACEOF
  12242. /* end confdefs.h. */
  12243. /* Override any GCC internal prototype to avoid an error.
  12244. Use char because int might match the return type of a GCC
  12245. builtin and then its argument prototype would still apply. */
  12246. #ifdef __cplusplus
  12247. extern "C"
  12248. #endif
  12249. char dlopen ();
  12250. int
  12251. main ()
  12252. {
  12253. return dlopen ();
  12254. ;
  12255. return 0;
  12256. }
  12257. _ACEOF
  12258. rm -f conftest.$ac_objext conftest$ac_exeext
  12259. if { (ac_try="$ac_link"
  12260. case "(($ac_try" in
  12261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12262. *) ac_try_echo=$ac_try;;
  12263. esac
  12264. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12265. $as_echo "$ac_try_echo") >&5
  12266. (eval "$ac_link") 2>conftest.er1
  12267. ac_status=$?
  12268. grep -v '^ *+' conftest.er1 >conftest.err
  12269. rm -f conftest.er1
  12270. cat conftest.err >&5
  12271. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12272. (exit $ac_status); } && {
  12273. test -z "$ac_c_werror_flag" ||
  12274. test ! -s conftest.err
  12275. } && test -s conftest$ac_exeext && {
  12276. test "$cross_compiling" = yes ||
  12277. $as_test_x conftest$ac_exeext
  12278. }; then
  12279. ac_cv_lib_svld_dlopen=yes
  12280. else
  12281. $as_echo "$as_me: failed program was:" >&5
  12282. sed 's/^/| /' conftest.$ac_ext >&5
  12283. ac_cv_lib_svld_dlopen=no
  12284. fi
  12285. rm -rf conftest.dSYM
  12286. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12287. conftest$ac_exeext conftest.$ac_ext
  12288. LIBS=$ac_check_lib_save_LIBS
  12289. fi
  12290. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  12291. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12292. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  12293. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12294. else
  12295. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  12296. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12297. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  12298. $as_echo_n "(cached) " >&6
  12299. else
  12300. ac_check_lib_save_LIBS=$LIBS
  12301. LIBS="-ldld $LIBS"
  12302. cat >conftest.$ac_ext <<_ACEOF
  12303. /* confdefs.h. */
  12304. _ACEOF
  12305. cat confdefs.h >>conftest.$ac_ext
  12306. cat >>conftest.$ac_ext <<_ACEOF
  12307. /* end confdefs.h. */
  12308. /* Override any GCC internal prototype to avoid an error.
  12309. Use char because int might match the return type of a GCC
  12310. builtin and then its argument prototype would still apply. */
  12311. #ifdef __cplusplus
  12312. extern "C"
  12313. #endif
  12314. char dld_link ();
  12315. int
  12316. main ()
  12317. {
  12318. return dld_link ();
  12319. ;
  12320. return 0;
  12321. }
  12322. _ACEOF
  12323. rm -f conftest.$ac_objext conftest$ac_exeext
  12324. if { (ac_try="$ac_link"
  12325. case "(($ac_try" in
  12326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12327. *) ac_try_echo=$ac_try;;
  12328. esac
  12329. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12330. $as_echo "$ac_try_echo") >&5
  12331. (eval "$ac_link") 2>conftest.er1
  12332. ac_status=$?
  12333. grep -v '^ *+' conftest.er1 >conftest.err
  12334. rm -f conftest.er1
  12335. cat conftest.err >&5
  12336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12337. (exit $ac_status); } && {
  12338. test -z "$ac_c_werror_flag" ||
  12339. test ! -s conftest.err
  12340. } && test -s conftest$ac_exeext && {
  12341. test "$cross_compiling" = yes ||
  12342. $as_test_x conftest$ac_exeext
  12343. }; then
  12344. ac_cv_lib_dld_dld_link=yes
  12345. else
  12346. $as_echo "$as_me: failed program was:" >&5
  12347. sed 's/^/| /' conftest.$ac_ext >&5
  12348. ac_cv_lib_dld_dld_link=no
  12349. fi
  12350. rm -rf conftest.dSYM
  12351. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12352. conftest$ac_exeext conftest.$ac_ext
  12353. LIBS=$ac_check_lib_save_LIBS
  12354. fi
  12355. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  12356. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12357. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  12358. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  12359. fi
  12360. fi
  12361. fi
  12362. fi
  12363. fi
  12364. fi
  12365. ;;
  12366. esac
  12367. if test "x$lt_cv_dlopen" != xno; then
  12368. enable_dlopen=yes
  12369. else
  12370. enable_dlopen=no
  12371. fi
  12372. case $lt_cv_dlopen in
  12373. dlopen)
  12374. save_CPPFLAGS="$CPPFLAGS"
  12375. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12376. save_LDFLAGS="$LDFLAGS"
  12377. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12378. save_LIBS="$LIBS"
  12379. LIBS="$lt_cv_dlopen_libs $LIBS"
  12380. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  12381. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12382. if test "${lt_cv_dlopen_self+set}" = set; then
  12383. $as_echo_n "(cached) " >&6
  12384. else
  12385. if test "$cross_compiling" = yes; then :
  12386. lt_cv_dlopen_self=cross
  12387. else
  12388. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12389. lt_status=$lt_dlunknown
  12390. cat > conftest.$ac_ext <<_LT_EOF
  12391. #line 14283 "configure"
  12392. #include "confdefs.h"
  12393. #if HAVE_DLFCN_H
  12394. #include <dlfcn.h>
  12395. #endif
  12396. #include <stdio.h>
  12397. #ifdef RTLD_GLOBAL
  12398. # define LT_DLGLOBAL RTLD_GLOBAL
  12399. #else
  12400. # ifdef DL_GLOBAL
  12401. # define LT_DLGLOBAL DL_GLOBAL
  12402. # else
  12403. # define LT_DLGLOBAL 0
  12404. # endif
  12405. #endif
  12406. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12407. find out it does not work in some platform. */
  12408. #ifndef LT_DLLAZY_OR_NOW
  12409. # ifdef RTLD_LAZY
  12410. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12411. # else
  12412. # ifdef DL_LAZY
  12413. # define LT_DLLAZY_OR_NOW DL_LAZY
  12414. # else
  12415. # ifdef RTLD_NOW
  12416. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12417. # else
  12418. # ifdef DL_NOW
  12419. # define LT_DLLAZY_OR_NOW DL_NOW
  12420. # else
  12421. # define LT_DLLAZY_OR_NOW 0
  12422. # endif
  12423. # endif
  12424. # endif
  12425. # endif
  12426. #endif
  12427. void fnord() { int i=42;}
  12428. int main ()
  12429. {
  12430. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12431. int status = $lt_dlunknown;
  12432. if (self)
  12433. {
  12434. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12435. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12436. /* dlclose (self); */
  12437. }
  12438. else
  12439. puts (dlerror ());
  12440. return status;
  12441. }
  12442. _LT_EOF
  12443. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12444. (eval $ac_link) 2>&5
  12445. ac_status=$?
  12446. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12447. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12448. (./conftest; exit; ) >&5 2>/dev/null
  12449. lt_status=$?
  12450. case x$lt_status in
  12451. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12452. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12453. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12454. esac
  12455. else :
  12456. # compilation failed
  12457. lt_cv_dlopen_self=no
  12458. fi
  12459. fi
  12460. rm -fr conftest*
  12461. fi
  12462. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  12463. $as_echo "$lt_cv_dlopen_self" >&6; }
  12464. if test "x$lt_cv_dlopen_self" = xyes; then
  12465. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12466. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  12467. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12468. if test "${lt_cv_dlopen_self_static+set}" = set; then
  12469. $as_echo_n "(cached) " >&6
  12470. else
  12471. if test "$cross_compiling" = yes; then :
  12472. lt_cv_dlopen_self_static=cross
  12473. else
  12474. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12475. lt_status=$lt_dlunknown
  12476. cat > conftest.$ac_ext <<_LT_EOF
  12477. #line 14379 "configure"
  12478. #include "confdefs.h"
  12479. #if HAVE_DLFCN_H
  12480. #include <dlfcn.h>
  12481. #endif
  12482. #include <stdio.h>
  12483. #ifdef RTLD_GLOBAL
  12484. # define LT_DLGLOBAL RTLD_GLOBAL
  12485. #else
  12486. # ifdef DL_GLOBAL
  12487. # define LT_DLGLOBAL DL_GLOBAL
  12488. # else
  12489. # define LT_DLGLOBAL 0
  12490. # endif
  12491. #endif
  12492. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12493. find out it does not work in some platform. */
  12494. #ifndef LT_DLLAZY_OR_NOW
  12495. # ifdef RTLD_LAZY
  12496. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12497. # else
  12498. # ifdef DL_LAZY
  12499. # define LT_DLLAZY_OR_NOW DL_LAZY
  12500. # else
  12501. # ifdef RTLD_NOW
  12502. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12503. # else
  12504. # ifdef DL_NOW
  12505. # define LT_DLLAZY_OR_NOW DL_NOW
  12506. # else
  12507. # define LT_DLLAZY_OR_NOW 0
  12508. # endif
  12509. # endif
  12510. # endif
  12511. # endif
  12512. #endif
  12513. void fnord() { int i=42;}
  12514. int main ()
  12515. {
  12516. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12517. int status = $lt_dlunknown;
  12518. if (self)
  12519. {
  12520. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12521. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12522. /* dlclose (self); */
  12523. }
  12524. else
  12525. puts (dlerror ());
  12526. return status;
  12527. }
  12528. _LT_EOF
  12529. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12530. (eval $ac_link) 2>&5
  12531. ac_status=$?
  12532. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12533. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  12534. (./conftest; exit; ) >&5 2>/dev/null
  12535. lt_status=$?
  12536. case x$lt_status in
  12537. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12538. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12539. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12540. esac
  12541. else :
  12542. # compilation failed
  12543. lt_cv_dlopen_self_static=no
  12544. fi
  12545. fi
  12546. rm -fr conftest*
  12547. fi
  12548. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  12549. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12550. fi
  12551. CPPFLAGS="$save_CPPFLAGS"
  12552. LDFLAGS="$save_LDFLAGS"
  12553. LIBS="$save_LIBS"
  12554. ;;
  12555. esac
  12556. case $lt_cv_dlopen_self in
  12557. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12558. *) enable_dlopen_self=unknown ;;
  12559. esac
  12560. case $lt_cv_dlopen_self_static in
  12561. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12562. *) enable_dlopen_self_static=unknown ;;
  12563. esac
  12564. fi
  12565. striplib=
  12566. old_striplib=
  12567. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  12568. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12569. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12570. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12571. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12572. { $as_echo "$as_me:$LINENO: result: yes" >&5
  12573. $as_echo "yes" >&6; }
  12574. else
  12575. # FIXME - insert some real tests, host_os isn't really good enough
  12576. case $host_os in
  12577. darwin*)
  12578. if test -n "$STRIP" ; then
  12579. striplib="$STRIP -x"
  12580. old_striplib="$STRIP -S"
  12581. { $as_echo "$as_me:$LINENO: result: yes" >&5
  12582. $as_echo "yes" >&6; }
  12583. else
  12584. { $as_echo "$as_me:$LINENO: result: no" >&5
  12585. $as_echo "no" >&6; }
  12586. fi
  12587. ;;
  12588. *)
  12589. { $as_echo "$as_me:$LINENO: result: no" >&5
  12590. $as_echo "no" >&6; }
  12591. ;;
  12592. esac
  12593. fi
  12594. # Report which library types will actually be built
  12595. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12596. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12597. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12598. $as_echo "$can_build_shared" >&6; }
  12599. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12600. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12601. test "$can_build_shared" = "no" && enable_shared=no
  12602. # On AIX, shared libraries and static libraries use the same namespace, and
  12603. # are all built from PIC.
  12604. case $host_os in
  12605. aix3*)
  12606. test "$enable_shared" = yes && enable_static=no
  12607. if test -n "$RANLIB"; then
  12608. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12609. postinstall_cmds='$RANLIB $lib'
  12610. fi
  12611. ;;
  12612. aix[4-9]*)
  12613. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12614. test "$enable_shared" = yes && enable_static=no
  12615. fi
  12616. ;;
  12617. esac
  12618. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  12619. $as_echo "$enable_shared" >&6; }
  12620. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12621. $as_echo_n "checking whether to build static libraries... " >&6; }
  12622. # Make sure either enable_shared or enable_static is yes.
  12623. test "$enable_shared" = yes || enable_static=yes
  12624. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  12625. $as_echo "$enable_static" >&6; }
  12626. fi
  12627. ac_ext=c
  12628. ac_cpp='$CPP $CPPFLAGS'
  12629. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12630. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12631. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12632. CC="$lt_save_CC"
  12633. ac_config_commands="$ac_config_commands libtool"
  12634. # Only expand once:
  12635. # Select memory manager depending on user input.
  12636. # If no "-enable-maxmem", use jmemnobs
  12637. MEMORYMGR='jmemnobs'
  12638. MAXMEM="no"
  12639. # Check whether --enable-maxmem was given.
  12640. if test "${enable_maxmem+set}" = set; then
  12641. enableval=$enable_maxmem; MAXMEM="$enableval"
  12642. fi
  12643. if test "x$MAXMEM" = xyes; then
  12644. MAXMEM=1
  12645. fi
  12646. if test "x$MAXMEM" != xno; then
  12647. if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
  12648. { { $as_echo "$as_me:$LINENO: error: non-numeric argument to --enable-maxmem" >&5
  12649. $as_echo "$as_me: error: non-numeric argument to --enable-maxmem" >&2;}
  12650. { (exit 1); exit 1; }; }
  12651. fi
  12652. DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
  12653. cat >>confdefs.h <<_ACEOF
  12654. #define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
  12655. _ACEOF
  12656. { $as_echo "$as_me:$LINENO: checking for 'tmpfile()'" >&5
  12657. $as_echo_n "checking for 'tmpfile()'... " >&6; }
  12658. cat >conftest.$ac_ext <<_ACEOF
  12659. /* confdefs.h. */
  12660. _ACEOF
  12661. cat confdefs.h >>conftest.$ac_ext
  12662. cat >>conftest.$ac_ext <<_ACEOF
  12663. /* end confdefs.h. */
  12664. #include <stdio.h>
  12665. int
  12666. main ()
  12667. {
  12668. FILE * tfile = tmpfile();
  12669. ;
  12670. return 0;
  12671. }
  12672. _ACEOF
  12673. rm -f conftest.$ac_objext conftest$ac_exeext
  12674. if { (ac_try="$ac_link"
  12675. case "(($ac_try" in
  12676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12677. *) ac_try_echo=$ac_try;;
  12678. esac
  12679. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12680. $as_echo "$ac_try_echo") >&5
  12681. (eval "$ac_link") 2>conftest.er1
  12682. ac_status=$?
  12683. grep -v '^ *+' conftest.er1 >conftest.err
  12684. rm -f conftest.er1
  12685. cat conftest.err >&5
  12686. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12687. (exit $ac_status); } && {
  12688. test -z "$ac_c_werror_flag" ||
  12689. test ! -s conftest.err
  12690. } && test -s conftest$ac_exeext && {
  12691. test "$cross_compiling" = yes ||
  12692. $as_test_x conftest$ac_exeext
  12693. }; then
  12694. { $as_echo "$as_me:$LINENO: result: yes" >&5
  12695. $as_echo "yes" >&6; }
  12696. MEMORYMGR='jmemansi'
  12697. else
  12698. $as_echo "$as_me: failed program was:" >&5
  12699. sed 's/^/| /' conftest.$ac_ext >&5
  12700. { $as_echo "$as_me:$LINENO: result: no" >&5
  12701. $as_echo "no" >&6; }
  12702. MEMORYMGR='jmemname'
  12703. # Test for the need to remove temporary files using a signal handler (for cjpeg/djpeg)
  12704. cat >>confdefs.h <<\_ACEOF
  12705. #define NEED_SIGNAL_CATCHER 1
  12706. _ACEOF
  12707. { $as_echo "$as_me:$LINENO: checking for 'mktemp()'" >&5
  12708. $as_echo_n "checking for 'mktemp()'... " >&6; }
  12709. cat >conftest.$ac_ext <<_ACEOF
  12710. /* confdefs.h. */
  12711. _ACEOF
  12712. cat confdefs.h >>conftest.$ac_ext
  12713. cat >>conftest.$ac_ext <<_ACEOF
  12714. /* end confdefs.h. */
  12715. int
  12716. main ()
  12717. {
  12718. char fname[80]; mktemp(fname);
  12719. ;
  12720. return 0;
  12721. }
  12722. _ACEOF
  12723. rm -f conftest.$ac_objext conftest$ac_exeext
  12724. if { (ac_try="$ac_link"
  12725. case "(($ac_try" in
  12726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12727. *) ac_try_echo=$ac_try;;
  12728. esac
  12729. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12730. $as_echo "$ac_try_echo") >&5
  12731. (eval "$ac_link") 2>conftest.er1
  12732. ac_status=$?
  12733. grep -v '^ *+' conftest.er1 >conftest.err
  12734. rm -f conftest.er1
  12735. cat conftest.err >&5
  12736. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12737. (exit $ac_status); } && {
  12738. test -z "$ac_c_werror_flag" ||
  12739. test ! -s conftest.err
  12740. } && test -s conftest$ac_exeext && {
  12741. test "$cross_compiling" = yes ||
  12742. $as_test_x conftest$ac_exeext
  12743. }; then
  12744. { $as_echo "$as_me:$LINENO: result: yes" >&5
  12745. $as_echo "yes" >&6; }
  12746. else
  12747. $as_echo "$as_me: failed program was:" >&5
  12748. sed 's/^/| /' conftest.$ac_ext >&5
  12749. { $as_echo "$as_me:$LINENO: result: no" >&5
  12750. $as_echo "no" >&6; }
  12751. cat >>confdefs.h <<\_ACEOF
  12752. #define NO_MKTEMP 1
  12753. _ACEOF
  12754. fi
  12755. rm -rf conftest.dSYM
  12756. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12757. conftest$ac_exeext conftest.$ac_ext
  12758. fi
  12759. rm -rf conftest.dSYM
  12760. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12761. conftest$ac_exeext conftest.$ac_ext
  12762. fi
  12763. # Extract the library version ID from jpeglib.h.
  12764. { $as_echo "$as_me:$LINENO: checking libjpeg version number" >&5
  12765. $as_echo_n "checking libjpeg version number... " >&6; }
  12766. JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
  12767. JPEG_LIB_VERSION="`expr $JPEG_LIB_VERSION / 10`:`expr $JPEG_LIB_VERSION % 10`"
  12768. { $as_echo "$as_me:$LINENO: result: $JPEG_LIB_VERSION" >&5
  12769. $as_echo "$JPEG_LIB_VERSION" >&6; }
  12770. ac_config_files="$ac_config_files Makefile"
  12771. cat >confcache <<\_ACEOF
  12772. # This file is a shell script that caches the results of configure
  12773. # tests run on this system so they can be shared between configure
  12774. # scripts and configure runs, see configure's option --config-cache.
  12775. # It is not useful on other systems. If it contains results you don't
  12776. # want to keep, you may remove or edit it.
  12777. #
  12778. # config.status only pays attention to the cache file if you give it
  12779. # the --recheck option to rerun configure.
  12780. #
  12781. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12782. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12783. # following values.
  12784. _ACEOF
  12785. # The following way of writing the cache mishandles newlines in values,
  12786. # but we know of no workaround that is simple, portable, and efficient.
  12787. # So, we kill variables containing newlines.
  12788. # Ultrix sh set writes to stderr and can't be redirected directly,
  12789. # and sets the high bit in the cache file unless we assign to the vars.
  12790. (
  12791. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12792. eval ac_val=\$$ac_var
  12793. case $ac_val in #(
  12794. *${as_nl}*)
  12795. case $ac_var in #(
  12796. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12797. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12798. esac
  12799. case $ac_var in #(
  12800. _ | IFS | as_nl) ;; #(
  12801. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12802. *) $as_unset $ac_var ;;
  12803. esac ;;
  12804. esac
  12805. done
  12806. (set) 2>&1 |
  12807. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12808. *${as_nl}ac_space=\ *)
  12809. # `set' does not quote correctly, so add quotes (double-quote
  12810. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12811. sed -n \
  12812. "s/'/'\\\\''/g;
  12813. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12814. ;; #(
  12815. *)
  12816. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12817. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12818. ;;
  12819. esac |
  12820. sort
  12821. ) |
  12822. sed '
  12823. /^ac_cv_env_/b end
  12824. t clear
  12825. :clear
  12826. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12827. t end
  12828. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12829. :end' >>confcache
  12830. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12831. if test -w "$cache_file"; then
  12832. test "x$cache_file" != "x/dev/null" &&
  12833. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12834. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12835. cat confcache >$cache_file
  12836. else
  12837. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12838. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12839. fi
  12840. fi
  12841. rm -f confcache
  12842. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12843. # Let make expand exec_prefix.
  12844. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12845. DEFS=-DHAVE_CONFIG_H
  12846. ac_libobjs=
  12847. ac_ltlibobjs=
  12848. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12849. # 1. Remove the extension, and $U if already installed.
  12850. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12851. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12852. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12853. # will be set to the directory where LIBOBJS objects are built.
  12854. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12855. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12856. done
  12857. LIBOBJS=$ac_libobjs
  12858. LTLIBOBJS=$ac_ltlibobjs
  12859. if test -n "$EXEEXT"; then
  12860. am__EXEEXT_TRUE=
  12861. am__EXEEXT_FALSE='#'
  12862. else
  12863. am__EXEEXT_TRUE='#'
  12864. am__EXEEXT_FALSE=
  12865. fi
  12866. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12867. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  12868. Usually this means the macro was only invoked conditionally." >&5
  12869. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  12870. Usually this means the macro was only invoked conditionally." >&2;}
  12871. { (exit 1); exit 1; }; }
  12872. fi
  12873. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12874. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  12875. Usually this means the macro was only invoked conditionally." >&5
  12876. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  12877. Usually this means the macro was only invoked conditionally." >&2;}
  12878. { (exit 1); exit 1; }; }
  12879. fi
  12880. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12881. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  12882. Usually this means the macro was only invoked conditionally." >&5
  12883. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  12884. Usually this means the macro was only invoked conditionally." >&2;}
  12885. { (exit 1); exit 1; }; }
  12886. fi
  12887. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12888. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  12889. Usually this means the macro was only invoked conditionally." >&5
  12890. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  12891. Usually this means the macro was only invoked conditionally." >&2;}
  12892. { (exit 1); exit 1; }; }
  12893. fi
  12894. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  12895. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  12896. Usually this means the macro was only invoked conditionally." >&5
  12897. $as_echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  12898. Usually this means the macro was only invoked conditionally." >&2;}
  12899. { (exit 1); exit 1; }; }
  12900. fi
  12901. : ${CONFIG_STATUS=./config.status}
  12902. ac_write_fail=0
  12903. ac_clean_files_save=$ac_clean_files
  12904. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12905. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12906. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12907. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12908. #! $SHELL
  12909. # Generated by $as_me.
  12910. # Run this file to recreate the current configuration.
  12911. # Compiler output produced by configure, useful for debugging
  12912. # configure, is in config.log if it exists.
  12913. debug=false
  12914. ac_cs_recheck=false
  12915. ac_cs_silent=false
  12916. SHELL=\${CONFIG_SHELL-$SHELL}
  12917. _ACEOF
  12918. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12919. ## --------------------- ##
  12920. ## M4sh Initialization. ##
  12921. ## --------------------- ##
  12922. # Be more Bourne compatible
  12923. DUALCASE=1; export DUALCASE # for MKS sh
  12924. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12925. emulate sh
  12926. NULLCMD=:
  12927. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12928. # is contrary to our usage. Disable this feature.
  12929. alias -g '${1+"$@"}'='"$@"'
  12930. setopt NO_GLOB_SUBST
  12931. else
  12932. case `(set -o) 2>/dev/null` in
  12933. *posix*) set -o posix ;;
  12934. esac
  12935. fi
  12936. # PATH needs CR
  12937. # Avoid depending upon Character Ranges.
  12938. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12939. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12940. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12941. as_cr_digits='0123456789'
  12942. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12943. as_nl='
  12944. '
  12945. export as_nl
  12946. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12947. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12948. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12949. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12950. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12951. as_echo='printf %s\n'
  12952. as_echo_n='printf %s'
  12953. else
  12954. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12955. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12956. as_echo_n='/usr/ucb/echo -n'
  12957. else
  12958. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12959. as_echo_n_body='eval
  12960. arg=$1;
  12961. case $arg in
  12962. *"$as_nl"*)
  12963. expr "X$arg" : "X\\(.*\\)$as_nl";
  12964. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12965. esac;
  12966. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12967. '
  12968. export as_echo_n_body
  12969. as_echo_n='sh -c $as_echo_n_body as_echo'
  12970. fi
  12971. export as_echo_body
  12972. as_echo='sh -c $as_echo_body as_echo'
  12973. fi
  12974. # The user is always right.
  12975. if test "${PATH_SEPARATOR+set}" != set; then
  12976. PATH_SEPARATOR=:
  12977. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12978. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12979. PATH_SEPARATOR=';'
  12980. }
  12981. fi
  12982. # Support unset when possible.
  12983. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12984. as_unset=unset
  12985. else
  12986. as_unset=false
  12987. fi
  12988. # IFS
  12989. # We need space, tab and new line, in precisely that order. Quoting is
  12990. # there to prevent editors from complaining about space-tab.
  12991. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12992. # splitting by setting IFS to empty value.)
  12993. IFS=" "" $as_nl"
  12994. # Find who we are. Look in the path if we contain no directory separator.
  12995. case $0 in
  12996. *[\\/]* ) as_myself=$0 ;;
  12997. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12998. for as_dir in $PATH
  12999. do
  13000. IFS=$as_save_IFS
  13001. test -z "$as_dir" && as_dir=.
  13002. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13003. done
  13004. IFS=$as_save_IFS
  13005. ;;
  13006. esac
  13007. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13008. # in which case we are not to be found in the path.
  13009. if test "x$as_myself" = x; then
  13010. as_myself=$0
  13011. fi
  13012. if test ! -f "$as_myself"; then
  13013. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13014. { (exit 1); exit 1; }
  13015. fi
  13016. # Work around bugs in pre-3.0 UWIN ksh.
  13017. for as_var in ENV MAIL MAILPATH
  13018. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  13019. done
  13020. PS1='$ '
  13021. PS2='> '
  13022. PS4='+ '
  13023. # NLS nuisances.
  13024. LC_ALL=C
  13025. export LC_ALL
  13026. LANGUAGE=C
  13027. export LANGUAGE
  13028. # Required to use basename.
  13029. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13030. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13031. as_expr=expr
  13032. else
  13033. as_expr=false
  13034. fi
  13035. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13036. as_basename=basename
  13037. else
  13038. as_basename=false
  13039. fi
  13040. # Name of the executable.
  13041. as_me=`$as_basename -- "$0" ||
  13042. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13043. X"$0" : 'X\(//\)$' \| \
  13044. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13045. $as_echo X/"$0" |
  13046. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13047. s//\1/
  13048. q
  13049. }
  13050. /^X\/\(\/\/\)$/{
  13051. s//\1/
  13052. q
  13053. }
  13054. /^X\/\(\/\).*/{
  13055. s//\1/
  13056. q
  13057. }
  13058. s/.*/./; q'`
  13059. # CDPATH.
  13060. $as_unset CDPATH
  13061. as_lineno_1=$LINENO
  13062. as_lineno_2=$LINENO
  13063. test "x$as_lineno_1" != "x$as_lineno_2" &&
  13064. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  13065. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  13066. # uniformly replaced by the line number. The first 'sed' inserts a
  13067. # line-number line after each line using $LINENO; the second 'sed'
  13068. # does the real work. The second script uses 'N' to pair each
  13069. # line-number line with the line containing $LINENO, and appends
  13070. # trailing '-' during substitution so that $LINENO is not a special
  13071. # case at line end.
  13072. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  13073. # scripts with optimization help from Paolo Bonzini. Blame Lee
  13074. # E. McMahon (1931-1989) for sed's syntax. :-)
  13075. sed -n '
  13076. p
  13077. /[$]LINENO/=
  13078. ' <$as_myself |
  13079. sed '
  13080. s/[$]LINENO.*/&-/
  13081. t lineno
  13082. b
  13083. :lineno
  13084. N
  13085. :loop
  13086. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  13087. t loop
  13088. s/-\n.*//
  13089. ' >$as_me.lineno &&
  13090. chmod +x "$as_me.lineno" ||
  13091. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  13092. { (exit 1); exit 1; }; }
  13093. # Don't try to exec as it changes $[0], causing all sort of problems
  13094. # (the dirname of $[0] is not the place where we might find the
  13095. # original and so on. Autoconf is especially sensitive to this).
  13096. . "./$as_me.lineno"
  13097. # Exit status is that of the last command.
  13098. exit
  13099. }
  13100. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13101. as_dirname=dirname
  13102. else
  13103. as_dirname=false
  13104. fi
  13105. ECHO_C= ECHO_N= ECHO_T=
  13106. case `echo -n x` in
  13107. -n*)
  13108. case `echo 'x\c'` in
  13109. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13110. *) ECHO_C='\c';;
  13111. esac;;
  13112. *)
  13113. ECHO_N='-n';;
  13114. esac
  13115. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13116. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13117. as_expr=expr
  13118. else
  13119. as_expr=false
  13120. fi
  13121. rm -f conf$$ conf$$.exe conf$$.file
  13122. if test -d conf$$.dir; then
  13123. rm -f conf$$.dir/conf$$.file
  13124. else
  13125. rm -f conf$$.dir
  13126. mkdir conf$$.dir 2>/dev/null
  13127. fi
  13128. if (echo >conf$$.file) 2>/dev/null; then
  13129. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13130. as_ln_s='ln -s'
  13131. # ... but there are two gotchas:
  13132. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13133. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13134. # In both cases, we have to default to `cp -p'.
  13135. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13136. as_ln_s='cp -p'
  13137. elif ln conf$$.file conf$$ 2>/dev/null; then
  13138. as_ln_s=ln
  13139. else
  13140. as_ln_s='cp -p'
  13141. fi
  13142. else
  13143. as_ln_s='cp -p'
  13144. fi
  13145. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13146. rmdir conf$$.dir 2>/dev/null
  13147. if mkdir -p . 2>/dev/null; then
  13148. as_mkdir_p=:
  13149. else
  13150. test -d ./-p && rmdir ./-p
  13151. as_mkdir_p=false
  13152. fi
  13153. if test -x / >/dev/null 2>&1; then
  13154. as_test_x='test -x'
  13155. else
  13156. if ls -dL / >/dev/null 2>&1; then
  13157. as_ls_L_option=L
  13158. else
  13159. as_ls_L_option=
  13160. fi
  13161. as_test_x='
  13162. eval sh -c '\''
  13163. if test -d "$1"; then
  13164. test -d "$1/.";
  13165. else
  13166. case $1 in
  13167. -*)set "./$1";;
  13168. esac;
  13169. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  13170. ???[sx]*):;;*)false;;esac;fi
  13171. '\'' sh
  13172. '
  13173. fi
  13174. as_executable_p=$as_test_x
  13175. # Sed expression to map a string onto a valid CPP name.
  13176. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13177. # Sed expression to map a string onto a valid variable name.
  13178. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13179. exec 6>&1
  13180. # Save the log message, to keep $[0] and so on meaningful, and to
  13181. # report actual input values of CONFIG_FILES etc. instead of their
  13182. # values after options handling.
  13183. ac_log="
  13184. This file was extended by libjpeg $as_me 7.0, which was
  13185. generated by GNU Autoconf 2.63. Invocation command line was
  13186. CONFIG_FILES = $CONFIG_FILES
  13187. CONFIG_HEADERS = $CONFIG_HEADERS
  13188. CONFIG_LINKS = $CONFIG_LINKS
  13189. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13190. $ $0 $@
  13191. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13192. "
  13193. _ACEOF
  13194. case $ac_config_files in *"
  13195. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13196. esac
  13197. case $ac_config_headers in *"
  13198. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13199. esac
  13200. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13201. # Files that config.status was made for.
  13202. config_files="$ac_config_files"
  13203. config_headers="$ac_config_headers"
  13204. config_commands="$ac_config_commands"
  13205. _ACEOF
  13206. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13207. ac_cs_usage="\
  13208. \`$as_me' instantiates files from templates according to the
  13209. current configuration.
  13210. Usage: $0 [OPTION]... [FILE]...
  13211. -h, --help print this help, then exit
  13212. -V, --version print version number and configuration settings, then exit
  13213. -q, --quiet, --silent
  13214. do not print progress messages
  13215. -d, --debug don't remove temporary files
  13216. --recheck update $as_me by reconfiguring in the same conditions
  13217. --file=FILE[:TEMPLATE]
  13218. instantiate the configuration file FILE
  13219. --header=FILE[:TEMPLATE]
  13220. instantiate the configuration header FILE
  13221. Configuration files:
  13222. $config_files
  13223. Configuration headers:
  13224. $config_headers
  13225. Configuration commands:
  13226. $config_commands
  13227. Report bugs to <bug-autoconf@gnu.org>."
  13228. _ACEOF
  13229. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13230. ac_cs_version="\\
  13231. libjpeg config.status 7.0
  13232. configured by $0, generated by GNU Autoconf 2.63,
  13233. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13234. Copyright (C) 2008 Free Software Foundation, Inc.
  13235. This config.status script is free software; the Free Software Foundation
  13236. gives unlimited permission to copy, distribute and modify it."
  13237. ac_pwd='$ac_pwd'
  13238. srcdir='$srcdir'
  13239. INSTALL='$INSTALL'
  13240. MKDIR_P='$MKDIR_P'
  13241. AWK='$AWK'
  13242. test -n "\$AWK" || AWK=awk
  13243. _ACEOF
  13244. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13245. # The default lists apply if the user does not specify any file.
  13246. ac_need_defaults=:
  13247. while test $# != 0
  13248. do
  13249. case $1 in
  13250. --*=*)
  13251. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13252. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13253. ac_shift=:
  13254. ;;
  13255. *)
  13256. ac_option=$1
  13257. ac_optarg=$2
  13258. ac_shift=shift
  13259. ;;
  13260. esac
  13261. case $ac_option in
  13262. # Handling of the options.
  13263. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13264. ac_cs_recheck=: ;;
  13265. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13266. $as_echo "$ac_cs_version"; exit ;;
  13267. --debug | --debu | --deb | --de | --d | -d )
  13268. debug=: ;;
  13269. --file | --fil | --fi | --f )
  13270. $ac_shift
  13271. case $ac_optarg in
  13272. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13273. esac
  13274. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  13275. ac_need_defaults=false;;
  13276. --header | --heade | --head | --hea )
  13277. $ac_shift
  13278. case $ac_optarg in
  13279. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13280. esac
  13281. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  13282. ac_need_defaults=false;;
  13283. --he | --h)
  13284. # Conflict between --help and --header
  13285. { $as_echo "$as_me: error: ambiguous option: $1
  13286. Try \`$0 --help' for more information." >&2
  13287. { (exit 1); exit 1; }; };;
  13288. --help | --hel | -h )
  13289. $as_echo "$ac_cs_usage"; exit ;;
  13290. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13291. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13292. ac_cs_silent=: ;;
  13293. # This is an error.
  13294. -*) { $as_echo "$as_me: error: unrecognized option: $1
  13295. Try \`$0 --help' for more information." >&2
  13296. { (exit 1); exit 1; }; } ;;
  13297. *) ac_config_targets="$ac_config_targets $1"
  13298. ac_need_defaults=false ;;
  13299. esac
  13300. shift
  13301. done
  13302. ac_configure_extra_args=
  13303. if $ac_cs_silent; then
  13304. exec 6>/dev/null
  13305. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13306. fi
  13307. _ACEOF
  13308. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13309. if \$ac_cs_recheck; then
  13310. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13311. shift
  13312. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13313. CONFIG_SHELL='$SHELL'
  13314. export CONFIG_SHELL
  13315. exec "\$@"
  13316. fi
  13317. _ACEOF
  13318. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13319. exec 5>>config.log
  13320. {
  13321. echo
  13322. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13323. ## Running $as_me. ##
  13324. _ASBOX
  13325. $as_echo "$ac_log"
  13326. } >&5
  13327. _ACEOF
  13328. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13329. #
  13330. # INIT-COMMANDS
  13331. #
  13332. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13333. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13334. # if CDPATH is set.
  13335. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13336. sed_quote_subst='$sed_quote_subst'
  13337. double_quote_subst='$double_quote_subst'
  13338. delay_variable_subst='$delay_variable_subst'
  13339. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  13340. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13341. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13342. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13343. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13344. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13345. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13346. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13347. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13348. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13349. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13350. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13351. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13352. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13353. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13354. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13355. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13356. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13357. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13358. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13359. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13360. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13361. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13362. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13363. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13364. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13365. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13366. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13367. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13368. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13369. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13370. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13371. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13372. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13373. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13374. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13375. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13376. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13377. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13378. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13379. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13380. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13381. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13382. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13383. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13384. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13385. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  13386. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13387. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13388. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13389. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13390. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13391. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13392. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13393. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13394. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13395. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13396. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13397. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13398. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13399. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13400. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13401. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13402. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13403. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13404. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13405. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13406. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13407. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13408. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13409. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13410. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13411. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13412. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13413. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13414. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13415. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13416. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13417. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13418. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13419. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13420. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13421. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13422. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13423. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13424. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13425. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13426. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13427. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13428. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13429. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13430. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13431. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13432. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13433. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13434. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13435. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13436. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13437. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13438. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13439. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13440. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13441. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13442. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13443. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13444. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13445. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13446. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13447. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13448. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13449. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13450. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13451. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13452. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13453. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13454. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13455. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13456. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13457. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13458. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13459. LTCC='$LTCC'
  13460. LTCFLAGS='$LTCFLAGS'
  13461. compiler='$compiler_DEFAULT'
  13462. # Quote evaled strings.
  13463. for var in SED \
  13464. GREP \
  13465. EGREP \
  13466. FGREP \
  13467. LD \
  13468. NM \
  13469. LN_S \
  13470. lt_SP2NL \
  13471. lt_NL2SP \
  13472. reload_flag \
  13473. deplibs_check_method \
  13474. file_magic_cmd \
  13475. AR \
  13476. AR_FLAGS \
  13477. STRIP \
  13478. RANLIB \
  13479. CC \
  13480. CFLAGS \
  13481. compiler \
  13482. lt_cv_sys_global_symbol_pipe \
  13483. lt_cv_sys_global_symbol_to_cdecl \
  13484. lt_cv_sys_global_symbol_to_c_name_address \
  13485. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13486. SHELL \
  13487. ECHO \
  13488. lt_prog_compiler_no_builtin_flag \
  13489. lt_prog_compiler_wl \
  13490. lt_prog_compiler_pic \
  13491. lt_prog_compiler_static \
  13492. lt_cv_prog_compiler_c_o \
  13493. need_locks \
  13494. DSYMUTIL \
  13495. NMEDIT \
  13496. LIPO \
  13497. OTOOL \
  13498. OTOOL64 \
  13499. shrext_cmds \
  13500. export_dynamic_flag_spec \
  13501. whole_archive_flag_spec \
  13502. compiler_needs_object \
  13503. with_gnu_ld \
  13504. allow_undefined_flag \
  13505. no_undefined_flag \
  13506. hardcode_libdir_flag_spec \
  13507. hardcode_libdir_flag_spec_ld \
  13508. hardcode_libdir_separator \
  13509. fix_srcfile_path \
  13510. exclude_expsyms \
  13511. include_expsyms \
  13512. file_list_spec \
  13513. variables_saved_for_relink \
  13514. libname_spec \
  13515. library_names_spec \
  13516. soname_spec \
  13517. finish_eval \
  13518. old_striplib \
  13519. striplib; do
  13520. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13521. *[\\\\\\\`\\"\\\$]*)
  13522. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13523. ;;
  13524. *)
  13525. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13526. ;;
  13527. esac
  13528. done
  13529. # Double-quote double-evaled strings.
  13530. for var in reload_cmds \
  13531. old_postinstall_cmds \
  13532. old_postuninstall_cmds \
  13533. old_archive_cmds \
  13534. extract_expsyms_cmds \
  13535. old_archive_from_new_cmds \
  13536. old_archive_from_expsyms_cmds \
  13537. archive_cmds \
  13538. archive_expsym_cmds \
  13539. module_cmds \
  13540. module_expsym_cmds \
  13541. export_symbols_cmds \
  13542. prelink_cmds \
  13543. postinstall_cmds \
  13544. postuninstall_cmds \
  13545. finish_cmds \
  13546. sys_lib_search_path_spec \
  13547. sys_lib_dlsearch_path_spec; do
  13548. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13549. *[\\\\\\\`\\"\\\$]*)
  13550. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13551. ;;
  13552. *)
  13553. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13554. ;;
  13555. esac
  13556. done
  13557. # Fix-up fallback echo if it was mangled by the above quoting rules.
  13558. case \$lt_ECHO in
  13559. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  13560. ;;
  13561. esac
  13562. ac_aux_dir='$ac_aux_dir'
  13563. xsi_shell='$xsi_shell'
  13564. lt_shell_append='$lt_shell_append'
  13565. # See if we are running on zsh, and set the options which allow our
  13566. # commands through without removal of \ escapes INIT.
  13567. if test -n "\${ZSH_VERSION+set}" ; then
  13568. setopt NO_GLOB_SUBST
  13569. fi
  13570. PACKAGE='$PACKAGE'
  13571. VERSION='$VERSION'
  13572. TIMESTAMP='$TIMESTAMP'
  13573. RM='$RM'
  13574. ofile='$ofile'
  13575. _ACEOF
  13576. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13577. # Handling of arguments.
  13578. for ac_config_target in $ac_config_targets
  13579. do
  13580. case $ac_config_target in
  13581. "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
  13582. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13583. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13584. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13585. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  13586. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  13587. { (exit 1); exit 1; }; };;
  13588. esac
  13589. done
  13590. # If the user did not use the arguments to specify the items to instantiate,
  13591. # then the envvar interface is used. Set only those that are not.
  13592. # We use the long form for the default assignment because of an extremely
  13593. # bizarre bug on SunOS 4.1.3.
  13594. if $ac_need_defaults; then
  13595. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13596. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13597. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13598. fi
  13599. # Have a temporary directory for convenience. Make it in the build tree
  13600. # simply because there is no reason against having it here, and in addition,
  13601. # creating and moving files from /tmp can sometimes cause problems.
  13602. # Hook for its removal unless debugging.
  13603. # Note that there is a small window in which the directory will not be cleaned:
  13604. # after its creation but before its name has been assigned to `$tmp'.
  13605. $debug ||
  13606. {
  13607. tmp=
  13608. trap 'exit_status=$?
  13609. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13610. ' 0
  13611. trap '{ (exit 1); exit 1; }' 1 2 13 15
  13612. }
  13613. # Create a (secure) tmp directory for tmp files.
  13614. {
  13615. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13616. test -n "$tmp" && test -d "$tmp"
  13617. } ||
  13618. {
  13619. tmp=./conf$$-$RANDOM
  13620. (umask 077 && mkdir "$tmp")
  13621. } ||
  13622. {
  13623. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  13624. { (exit 1); exit 1; }
  13625. }
  13626. # Set up the scripts for CONFIG_FILES section.
  13627. # No need to generate them if there are no CONFIG_FILES.
  13628. # This happens for instance with `./config.status config.h'.
  13629. if test -n "$CONFIG_FILES"; then
  13630. ac_cr=' '
  13631. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13632. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13633. ac_cs_awk_cr='\\r'
  13634. else
  13635. ac_cs_awk_cr=$ac_cr
  13636. fi
  13637. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13638. _ACEOF
  13639. {
  13640. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13641. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13642. echo "_ACEOF"
  13643. } >conf$$subs.sh ||
  13644. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13645. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13646. { (exit 1); exit 1; }; }
  13647. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13648. ac_delim='%!_!# '
  13649. for ac_last_try in false false false false false :; do
  13650. . ./conf$$subs.sh ||
  13651. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13652. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13653. { (exit 1); exit 1; }; }
  13654. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13655. if test $ac_delim_n = $ac_delim_num; then
  13656. break
  13657. elif $ac_last_try; then
  13658. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13659. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13660. { (exit 1); exit 1; }; }
  13661. else
  13662. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13663. fi
  13664. done
  13665. rm -f conf$$subs.sh
  13666. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13667. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13668. _ACEOF
  13669. sed -n '
  13670. h
  13671. s/^/S["/; s/!.*/"]=/
  13672. p
  13673. g
  13674. s/^[^!]*!//
  13675. :repl
  13676. t repl
  13677. s/'"$ac_delim"'$//
  13678. t delim
  13679. :nl
  13680. h
  13681. s/\(.\{148\}\).*/\1/
  13682. t more1
  13683. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13684. p
  13685. n
  13686. b repl
  13687. :more1
  13688. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13689. p
  13690. g
  13691. s/.\{148\}//
  13692. t nl
  13693. :delim
  13694. h
  13695. s/\(.\{148\}\).*/\1/
  13696. t more2
  13697. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13698. p
  13699. b
  13700. :more2
  13701. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13702. p
  13703. g
  13704. s/.\{148\}//
  13705. t delim
  13706. ' <conf$$subs.awk | sed '
  13707. /^[^""]/{
  13708. N
  13709. s/\n//
  13710. }
  13711. ' >>$CONFIG_STATUS || ac_write_fail=1
  13712. rm -f conf$$subs.awk
  13713. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13714. _ACAWK
  13715. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13716. for (key in S) S_is_set[key] = 1
  13717. FS = ""
  13718. }
  13719. {
  13720. line = $ 0
  13721. nfields = split(line, field, "@")
  13722. substed = 0
  13723. len = length(field[1])
  13724. for (i = 2; i < nfields; i++) {
  13725. key = field[i]
  13726. keylen = length(key)
  13727. if (S_is_set[key]) {
  13728. value = S[key]
  13729. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13730. len += length(value) + length(field[++i])
  13731. substed = 1
  13732. } else
  13733. len += 1 + keylen
  13734. }
  13735. print line
  13736. }
  13737. _ACAWK
  13738. _ACEOF
  13739. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13740. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13741. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13742. else
  13743. cat
  13744. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13745. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  13746. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  13747. { (exit 1); exit 1; }; }
  13748. _ACEOF
  13749. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13750. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13751. # trailing colons and then remove the whole line if VPATH becomes empty
  13752. # (actually we leave an empty line to preserve line numbers).
  13753. if test "x$srcdir" = x.; then
  13754. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13755. s/:*\$(srcdir):*/:/
  13756. s/:*\${srcdir}:*/:/
  13757. s/:*@srcdir@:*/:/
  13758. s/^\([^=]*=[ ]*\):*/\1/
  13759. s/:*$//
  13760. s/^[^=]*=[ ]*$//
  13761. }'
  13762. fi
  13763. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13764. fi # test -n "$CONFIG_FILES"
  13765. # Set up the scripts for CONFIG_HEADERS section.
  13766. # No need to generate them if there are no CONFIG_HEADERS.
  13767. # This happens for instance with `./config.status Makefile'.
  13768. if test -n "$CONFIG_HEADERS"; then
  13769. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13770. BEGIN {
  13771. _ACEOF
  13772. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13773. # here-document in config.status, that substitutes the proper values into
  13774. # config.h.in to produce config.h.
  13775. # Create a delimiter string that does not exist in confdefs.h, to ease
  13776. # handling of long lines.
  13777. ac_delim='%!_!# '
  13778. for ac_last_try in false false :; do
  13779. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13780. if test -z "$ac_t"; then
  13781. break
  13782. elif $ac_last_try; then
  13783. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  13784. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  13785. { (exit 1); exit 1; }; }
  13786. else
  13787. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13788. fi
  13789. done
  13790. # For the awk script, D is an array of macro values keyed by name,
  13791. # likewise P contains macro parameters if any. Preserve backslash
  13792. # newline sequences.
  13793. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13794. sed -n '
  13795. s/.\{148\}/&'"$ac_delim"'/g
  13796. t rset
  13797. :rset
  13798. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13799. t def
  13800. d
  13801. :def
  13802. s/\\$//
  13803. t bsnl
  13804. s/["\\]/\\&/g
  13805. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13806. D["\1"]=" \3"/p
  13807. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13808. d
  13809. :bsnl
  13810. s/["\\]/\\&/g
  13811. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13812. D["\1"]=" \3\\\\\\n"\\/p
  13813. t cont
  13814. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13815. t cont
  13816. d
  13817. :cont
  13818. n
  13819. s/.\{148\}/&'"$ac_delim"'/g
  13820. t clear
  13821. :clear
  13822. s/\\$//
  13823. t bsnlc
  13824. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13825. d
  13826. :bsnlc
  13827. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13828. b cont
  13829. ' <confdefs.h | sed '
  13830. s/'"$ac_delim"'/"\\\
  13831. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13832. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13833. for (key in D) D_is_set[key] = 1
  13834. FS = ""
  13835. }
  13836. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13837. line = \$ 0
  13838. split(line, arg, " ")
  13839. if (arg[1] == "#") {
  13840. defundef = arg[2]
  13841. mac1 = arg[3]
  13842. } else {
  13843. defundef = substr(arg[1], 2)
  13844. mac1 = arg[2]
  13845. }
  13846. split(mac1, mac2, "(") #)
  13847. macro = mac2[1]
  13848. prefix = substr(line, 1, index(line, defundef) - 1)
  13849. if (D_is_set[macro]) {
  13850. # Preserve the white space surrounding the "#".
  13851. print prefix "define", macro P[macro] D[macro]
  13852. next
  13853. } else {
  13854. # Replace #undef with comments. This is necessary, for example,
  13855. # in the case of _POSIX_SOURCE, which is predefined and required
  13856. # on some systems where configure will not decide to define it.
  13857. if (defundef == "undef") {
  13858. print "/*", prefix defundef, macro, "*/"
  13859. next
  13860. }
  13861. }
  13862. }
  13863. { print }
  13864. _ACAWK
  13865. _ACEOF
  13866. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13867. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  13868. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  13869. { (exit 1); exit 1; }; }
  13870. fi # test -n "$CONFIG_HEADERS"
  13871. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13872. shift
  13873. for ac_tag
  13874. do
  13875. case $ac_tag in
  13876. :[FHLC]) ac_mode=$ac_tag; continue;;
  13877. esac
  13878. case $ac_mode$ac_tag in
  13879. :[FHL]*:*);;
  13880. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  13881. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  13882. { (exit 1); exit 1; }; };;
  13883. :[FH]-) ac_tag=-:-;;
  13884. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13885. esac
  13886. ac_save_IFS=$IFS
  13887. IFS=:
  13888. set x $ac_tag
  13889. IFS=$ac_save_IFS
  13890. shift
  13891. ac_file=$1
  13892. shift
  13893. case $ac_mode in
  13894. :L) ac_source=$1;;
  13895. :[FH])
  13896. ac_file_inputs=
  13897. for ac_f
  13898. do
  13899. case $ac_f in
  13900. -) ac_f="$tmp/stdin";;
  13901. *) # Look for the file first in the build tree, then in the source tree
  13902. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13903. # because $ac_f cannot contain `:'.
  13904. test -f "$ac_f" ||
  13905. case $ac_f in
  13906. [\\/$]*) false;;
  13907. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13908. esac ||
  13909. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13910. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13911. { (exit 1); exit 1; }; };;
  13912. esac
  13913. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13914. ac_file_inputs="$ac_file_inputs '$ac_f'"
  13915. done
  13916. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13917. # use $as_me), people would be surprised to read:
  13918. # /* config.h. Generated by config.status. */
  13919. configure_input='Generated from '`
  13920. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13921. `' by configure.'
  13922. if test x"$ac_file" != x-; then
  13923. configure_input="$ac_file. $configure_input"
  13924. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  13925. $as_echo "$as_me: creating $ac_file" >&6;}
  13926. fi
  13927. # Neutralize special characters interpreted by sed in replacement strings.
  13928. case $configure_input in #(
  13929. *\&* | *\|* | *\\* )
  13930. ac_sed_conf_input=`$as_echo "$configure_input" |
  13931. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13932. *) ac_sed_conf_input=$configure_input;;
  13933. esac
  13934. case $ac_tag in
  13935. *:-:* | *:-) cat >"$tmp/stdin" \
  13936. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13937. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13938. { (exit 1); exit 1; }; } ;;
  13939. esac
  13940. ;;
  13941. esac
  13942. ac_dir=`$as_dirname -- "$ac_file" ||
  13943. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13944. X"$ac_file" : 'X\(//\)[^/]' \| \
  13945. X"$ac_file" : 'X\(//\)$' \| \
  13946. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13947. $as_echo X"$ac_file" |
  13948. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13949. s//\1/
  13950. q
  13951. }
  13952. /^X\(\/\/\)[^/].*/{
  13953. s//\1/
  13954. q
  13955. }
  13956. /^X\(\/\/\)$/{
  13957. s//\1/
  13958. q
  13959. }
  13960. /^X\(\/\).*/{
  13961. s//\1/
  13962. q
  13963. }
  13964. s/.*/./; q'`
  13965. { as_dir="$ac_dir"
  13966. case $as_dir in #(
  13967. -*) as_dir=./$as_dir;;
  13968. esac
  13969. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13970. as_dirs=
  13971. while :; do
  13972. case $as_dir in #(
  13973. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13974. *) as_qdir=$as_dir;;
  13975. esac
  13976. as_dirs="'$as_qdir' $as_dirs"
  13977. as_dir=`$as_dirname -- "$as_dir" ||
  13978. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13979. X"$as_dir" : 'X\(//\)[^/]' \| \
  13980. X"$as_dir" : 'X\(//\)$' \| \
  13981. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13982. $as_echo X"$as_dir" |
  13983. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13984. s//\1/
  13985. q
  13986. }
  13987. /^X\(\/\/\)[^/].*/{
  13988. s//\1/
  13989. q
  13990. }
  13991. /^X\(\/\/\)$/{
  13992. s//\1/
  13993. q
  13994. }
  13995. /^X\(\/\).*/{
  13996. s//\1/
  13997. q
  13998. }
  13999. s/.*/./; q'`
  14000. test -d "$as_dir" && break
  14001. done
  14002. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14003. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  14004. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  14005. { (exit 1); exit 1; }; }; }
  14006. ac_builddir=.
  14007. case "$ac_dir" in
  14008. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14009. *)
  14010. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14011. # A ".." for each directory in $ac_dir_suffix.
  14012. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14013. case $ac_top_builddir_sub in
  14014. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14015. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14016. esac ;;
  14017. esac
  14018. ac_abs_top_builddir=$ac_pwd
  14019. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14020. # for backward compatibility:
  14021. ac_top_builddir=$ac_top_build_prefix
  14022. case $srcdir in
  14023. .) # We are building in place.
  14024. ac_srcdir=.
  14025. ac_top_srcdir=$ac_top_builddir_sub
  14026. ac_abs_top_srcdir=$ac_pwd ;;
  14027. [\\/]* | ?:[\\/]* ) # Absolute name.
  14028. ac_srcdir=$srcdir$ac_dir_suffix;
  14029. ac_top_srcdir=$srcdir
  14030. ac_abs_top_srcdir=$srcdir ;;
  14031. *) # Relative name.
  14032. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14033. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14034. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14035. esac
  14036. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14037. case $ac_mode in
  14038. :F)
  14039. #
  14040. # CONFIG_FILE
  14041. #
  14042. case $INSTALL in
  14043. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14044. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14045. esac
  14046. ac_MKDIR_P=$MKDIR_P
  14047. case $MKDIR_P in
  14048. [\\/$]* | ?:[\\/]* ) ;;
  14049. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14050. esac
  14051. _ACEOF
  14052. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14053. # If the template does not know about datarootdir, expand it.
  14054. # FIXME: This hack should be removed a few years after 2.60.
  14055. ac_datarootdir_hack=; ac_datarootdir_seen=
  14056. ac_sed_dataroot='
  14057. /datarootdir/ {
  14058. p
  14059. q
  14060. }
  14061. /@datadir@/p
  14062. /@docdir@/p
  14063. /@infodir@/p
  14064. /@localedir@/p
  14065. /@mandir@/p
  14066. '
  14067. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14068. *datarootdir*) ac_datarootdir_seen=yes;;
  14069. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14070. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14071. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14072. _ACEOF
  14073. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14074. ac_datarootdir_hack='
  14075. s&@datadir@&$datadir&g
  14076. s&@docdir@&$docdir&g
  14077. s&@infodir@&$infodir&g
  14078. s&@localedir@&$localedir&g
  14079. s&@mandir@&$mandir&g
  14080. s&\\\${datarootdir}&$datarootdir&g' ;;
  14081. esac
  14082. _ACEOF
  14083. # Neutralize VPATH when `$srcdir' = `.'.
  14084. # Shell code in configure.ac might set extrasub.
  14085. # FIXME: do we really want to maintain this feature?
  14086. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14087. ac_sed_extra="$ac_vpsub
  14088. $extrasub
  14089. _ACEOF
  14090. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14091. :t
  14092. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14093. s|@configure_input@|$ac_sed_conf_input|;t t
  14094. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14095. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14096. s&@srcdir@&$ac_srcdir&;t t
  14097. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14098. s&@top_srcdir@&$ac_top_srcdir&;t t
  14099. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14100. s&@builddir@&$ac_builddir&;t t
  14101. s&@abs_builddir@&$ac_abs_builddir&;t t
  14102. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14103. s&@INSTALL@&$ac_INSTALL&;t t
  14104. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14105. $ac_datarootdir_hack
  14106. "
  14107. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14108. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  14109. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  14110. { (exit 1); exit 1; }; }
  14111. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14112. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14113. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14114. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14115. which seems to be undefined. Please make sure it is defined." >&5
  14116. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14117. which seems to be undefined. Please make sure it is defined." >&2;}
  14118. rm -f "$tmp/stdin"
  14119. case $ac_file in
  14120. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14121. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14122. esac \
  14123. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  14124. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  14125. { (exit 1); exit 1; }; }
  14126. ;;
  14127. :H)
  14128. #
  14129. # CONFIG_HEADER
  14130. #
  14131. if test x"$ac_file" != x-; then
  14132. {
  14133. $as_echo "/* $configure_input */" \
  14134. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14135. } >"$tmp/config.h" \
  14136. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  14137. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  14138. { (exit 1); exit 1; }; }
  14139. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14140. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  14141. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14142. else
  14143. rm -f "$ac_file"
  14144. mv "$tmp/config.h" "$ac_file" \
  14145. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  14146. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  14147. { (exit 1); exit 1; }; }
  14148. fi
  14149. else
  14150. $as_echo "/* $configure_input */" \
  14151. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14152. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  14153. $as_echo "$as_me: error: could not create -" >&2;}
  14154. { (exit 1); exit 1; }; }
  14155. fi
  14156. # Compute "$ac_file"'s index in $config_headers.
  14157. _am_arg="$ac_file"
  14158. _am_stamp_count=1
  14159. for _am_header in $config_headers :; do
  14160. case $_am_header in
  14161. $_am_arg | $_am_arg:* )
  14162. break ;;
  14163. * )
  14164. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14165. esac
  14166. done
  14167. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14168. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14169. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14170. X"$_am_arg" : 'X\(//\)$' \| \
  14171. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14172. $as_echo X"$_am_arg" |
  14173. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14174. s//\1/
  14175. q
  14176. }
  14177. /^X\(\/\/\)[^/].*/{
  14178. s//\1/
  14179. q
  14180. }
  14181. /^X\(\/\/\)$/{
  14182. s//\1/
  14183. q
  14184. }
  14185. /^X\(\/\).*/{
  14186. s//\1/
  14187. q
  14188. }
  14189. s/.*/./; q'`/stamp-h$_am_stamp_count
  14190. ;;
  14191. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  14192. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14193. ;;
  14194. esac
  14195. case $ac_file$ac_mode in
  14196. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14197. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14198. # are listed without --file. Let's play safe and only enable the eval
  14199. # if we detect the quoting.
  14200. case $CONFIG_FILES in
  14201. *\'*) eval set x "$CONFIG_FILES" ;;
  14202. *) set x $CONFIG_FILES ;;
  14203. esac
  14204. shift
  14205. for mf
  14206. do
  14207. # Strip MF so we end up with the name of the file.
  14208. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14209. # Check whether this is an Automake generated Makefile or not.
  14210. # We used to match only the files named `Makefile.in', but
  14211. # some people rename them; so instead we look at the file content.
  14212. # Grep'ing the first line is not enough: some people post-process
  14213. # each Makefile.in and add a new line on top of each file to say so.
  14214. # Grep'ing the whole file is not good either: AIX grep has a line
  14215. # limit of 2048, but all sed's we know have understand at least 4000.
  14216. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14217. dirpart=`$as_dirname -- "$mf" ||
  14218. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14219. X"$mf" : 'X\(//\)[^/]' \| \
  14220. X"$mf" : 'X\(//\)$' \| \
  14221. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14222. $as_echo X"$mf" |
  14223. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14224. s//\1/
  14225. q
  14226. }
  14227. /^X\(\/\/\)[^/].*/{
  14228. s//\1/
  14229. q
  14230. }
  14231. /^X\(\/\/\)$/{
  14232. s//\1/
  14233. q
  14234. }
  14235. /^X\(\/\).*/{
  14236. s//\1/
  14237. q
  14238. }
  14239. s/.*/./; q'`
  14240. else
  14241. continue
  14242. fi
  14243. # Extract the definition of DEPDIR, am__include, and am__quote
  14244. # from the Makefile without running `make'.
  14245. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14246. test -z "$DEPDIR" && continue
  14247. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14248. test -z "am__include" && continue
  14249. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14250. # When using ansi2knr, U may be empty or an underscore; expand it
  14251. U=`sed -n 's/^U = //p' < "$mf"`
  14252. # Find all dependency output files, they are included files with
  14253. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14254. # simplest approach to changing $(DEPDIR) to its actual value in the
  14255. # expansion.
  14256. for file in `sed -n "
  14257. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14258. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14259. # Make sure the directory exists.
  14260. test -f "$dirpart/$file" && continue
  14261. fdir=`$as_dirname -- "$file" ||
  14262. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14263. X"$file" : 'X\(//\)[^/]' \| \
  14264. X"$file" : 'X\(//\)$' \| \
  14265. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14266. $as_echo X"$file" |
  14267. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14268. s//\1/
  14269. q
  14270. }
  14271. /^X\(\/\/\)[^/].*/{
  14272. s//\1/
  14273. q
  14274. }
  14275. /^X\(\/\/\)$/{
  14276. s//\1/
  14277. q
  14278. }
  14279. /^X\(\/\).*/{
  14280. s//\1/
  14281. q
  14282. }
  14283. s/.*/./; q'`
  14284. { as_dir=$dirpart/$fdir
  14285. case $as_dir in #(
  14286. -*) as_dir=./$as_dir;;
  14287. esac
  14288. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  14289. as_dirs=
  14290. while :; do
  14291. case $as_dir in #(
  14292. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14293. *) as_qdir=$as_dir;;
  14294. esac
  14295. as_dirs="'$as_qdir' $as_dirs"
  14296. as_dir=`$as_dirname -- "$as_dir" ||
  14297. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14298. X"$as_dir" : 'X\(//\)[^/]' \| \
  14299. X"$as_dir" : 'X\(//\)$' \| \
  14300. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14301. $as_echo X"$as_dir" |
  14302. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14303. s//\1/
  14304. q
  14305. }
  14306. /^X\(\/\/\)[^/].*/{
  14307. s//\1/
  14308. q
  14309. }
  14310. /^X\(\/\/\)$/{
  14311. s//\1/
  14312. q
  14313. }
  14314. /^X\(\/\).*/{
  14315. s//\1/
  14316. q
  14317. }
  14318. s/.*/./; q'`
  14319. test -d "$as_dir" && break
  14320. done
  14321. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14322. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  14323. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  14324. { (exit 1); exit 1; }; }; }
  14325. # echo "creating $dirpart/$file"
  14326. echo '# dummy' > "$dirpart/$file"
  14327. done
  14328. done
  14329. }
  14330. ;;
  14331. "libtool":C)
  14332. # See if we are running on zsh, and set the options which allow our
  14333. # commands through without removal of \ escapes.
  14334. if test -n "${ZSH_VERSION+set}" ; then
  14335. setopt NO_GLOB_SUBST
  14336. fi
  14337. cfgfile="${ofile}T"
  14338. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14339. $RM "$cfgfile"
  14340. cat <<_LT_EOF >> "$cfgfile"
  14341. #! $SHELL
  14342. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14343. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14344. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14345. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14346. #
  14347. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14348. # 2006, 2007, 2008 Free Software Foundation, Inc.
  14349. # Written by Gordon Matzigkeit, 1996
  14350. #
  14351. # This file is part of GNU Libtool.
  14352. #
  14353. # GNU Libtool is free software; you can redistribute it and/or
  14354. # modify it under the terms of the GNU General Public License as
  14355. # published by the Free Software Foundation; either version 2 of
  14356. # the License, or (at your option) any later version.
  14357. #
  14358. # As a special exception to the GNU General Public License,
  14359. # if you distribute this file as part of a program or library that
  14360. # is built using GNU Libtool, you may include this file under the
  14361. # same distribution terms that you use for the rest of that program.
  14362. #
  14363. # GNU Libtool is distributed in the hope that it will be useful,
  14364. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14365. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14366. # GNU General Public License for more details.
  14367. #
  14368. # You should have received a copy of the GNU General Public License
  14369. # along with GNU Libtool; see the file COPYING. If not, a copy
  14370. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14371. # obtained by writing to the Free Software Foundation, Inc.,
  14372. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14373. # The names of the tagged configurations supported by this script.
  14374. available_tags=""
  14375. # ### BEGIN LIBTOOL CONFIG
  14376. # Assembler program.
  14377. AS=$AS
  14378. # DLL creation program.
  14379. DLLTOOL=$DLLTOOL
  14380. # Object dumper program.
  14381. OBJDUMP=$OBJDUMP
  14382. # Which release of libtool.m4 was used?
  14383. macro_version=$macro_version
  14384. macro_revision=$macro_revision
  14385. # Whether or not to build shared libraries.
  14386. build_libtool_libs=$enable_shared
  14387. # Whether or not to build static libraries.
  14388. build_old_libs=$enable_static
  14389. # What type of objects to build.
  14390. pic_mode=$pic_mode
  14391. # Whether or not to optimize for fast installation.
  14392. fast_install=$enable_fast_install
  14393. # The host system.
  14394. host_alias=$host_alias
  14395. host=$host
  14396. host_os=$host_os
  14397. # The build system.
  14398. build_alias=$build_alias
  14399. build=$build
  14400. build_os=$build_os
  14401. # A sed program that does not truncate output.
  14402. SED=$lt_SED
  14403. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14404. Xsed="\$SED -e 1s/^X//"
  14405. # A grep program that handles long lines.
  14406. GREP=$lt_GREP
  14407. # An ERE matcher.
  14408. EGREP=$lt_EGREP
  14409. # A literal string matcher.
  14410. FGREP=$lt_FGREP
  14411. # A BSD- or MS-compatible name lister.
  14412. NM=$lt_NM
  14413. # Whether we need soft or hard links.
  14414. LN_S=$lt_LN_S
  14415. # What is the maximum length of a command?
  14416. max_cmd_len=$max_cmd_len
  14417. # Object file suffix (normally "o").
  14418. objext=$ac_objext
  14419. # Executable file suffix (normally "").
  14420. exeext=$exeext
  14421. # whether the shell understands "unset".
  14422. lt_unset=$lt_unset
  14423. # turn spaces into newlines.
  14424. SP2NL=$lt_lt_SP2NL
  14425. # turn newlines into spaces.
  14426. NL2SP=$lt_lt_NL2SP
  14427. # How to create reloadable object files.
  14428. reload_flag=$lt_reload_flag
  14429. reload_cmds=$lt_reload_cmds
  14430. # Method to check whether dependent libraries are shared objects.
  14431. deplibs_check_method=$lt_deplibs_check_method
  14432. # Command to use when deplibs_check_method == "file_magic".
  14433. file_magic_cmd=$lt_file_magic_cmd
  14434. # The archiver.
  14435. AR=$lt_AR
  14436. AR_FLAGS=$lt_AR_FLAGS
  14437. # A symbol stripping program.
  14438. STRIP=$lt_STRIP
  14439. # Commands used to install an old-style archive.
  14440. RANLIB=$lt_RANLIB
  14441. old_postinstall_cmds=$lt_old_postinstall_cmds
  14442. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14443. # A C compiler.
  14444. LTCC=$lt_CC
  14445. # LTCC compiler flags.
  14446. LTCFLAGS=$lt_CFLAGS
  14447. # Take the output of nm and produce a listing of raw symbols and C names.
  14448. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14449. # Transform the output of nm in a proper C declaration.
  14450. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14451. # Transform the output of nm in a C name address pair.
  14452. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14453. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14454. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14455. # The name of the directory that contains temporary libtool files.
  14456. objdir=$objdir
  14457. # Shell to use when invoking shell scripts.
  14458. SHELL=$lt_SHELL
  14459. # An echo program that does not interpret backslashes.
  14460. ECHO=$lt_ECHO
  14461. # Used to examine libraries when file_magic_cmd begins with "file".
  14462. MAGIC_CMD=$MAGIC_CMD
  14463. # Must we lock files when doing compilation?
  14464. need_locks=$lt_need_locks
  14465. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14466. DSYMUTIL=$lt_DSYMUTIL
  14467. # Tool to change global to local symbols on Mac OS X.
  14468. NMEDIT=$lt_NMEDIT
  14469. # Tool to manipulate fat objects and archives on Mac OS X.
  14470. LIPO=$lt_LIPO
  14471. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14472. OTOOL=$lt_OTOOL
  14473. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14474. OTOOL64=$lt_OTOOL64
  14475. # Old archive suffix (normally "a").
  14476. libext=$libext
  14477. # Shared library suffix (normally ".so").
  14478. shrext_cmds=$lt_shrext_cmds
  14479. # The commands to extract the exported symbol list from a shared archive.
  14480. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14481. # Variables whose values should be saved in libtool wrapper scripts and
  14482. # restored at link time.
  14483. variables_saved_for_relink=$lt_variables_saved_for_relink
  14484. # Do we need the "lib" prefix for modules?
  14485. need_lib_prefix=$need_lib_prefix
  14486. # Do we need a version for libraries?
  14487. need_version=$need_version
  14488. # Library versioning type.
  14489. version_type=$version_type
  14490. # Shared library runtime path variable.
  14491. runpath_var=$runpath_var
  14492. # Shared library path variable.
  14493. shlibpath_var=$shlibpath_var
  14494. # Is shlibpath searched before the hard-coded library search path?
  14495. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14496. # Format of library name prefix.
  14497. libname_spec=$lt_libname_spec
  14498. # List of archive names. First name is the real one, the rest are links.
  14499. # The last name is the one that the linker finds with -lNAME
  14500. library_names_spec=$lt_library_names_spec
  14501. # The coded name of the library, if different from the real name.
  14502. soname_spec=$lt_soname_spec
  14503. # Command to use after installation of a shared archive.
  14504. postinstall_cmds=$lt_postinstall_cmds
  14505. # Command to use after uninstallation of a shared archive.
  14506. postuninstall_cmds=$lt_postuninstall_cmds
  14507. # Commands used to finish a libtool library installation in a directory.
  14508. finish_cmds=$lt_finish_cmds
  14509. # As "finish_cmds", except a single script fragment to be evaled but
  14510. # not shown.
  14511. finish_eval=$lt_finish_eval
  14512. # Whether we should hardcode library paths into libraries.
  14513. hardcode_into_libs=$hardcode_into_libs
  14514. # Compile-time system search path for libraries.
  14515. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14516. # Run-time system search path for libraries.
  14517. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14518. # Whether dlopen is supported.
  14519. dlopen_support=$enable_dlopen
  14520. # Whether dlopen of programs is supported.
  14521. dlopen_self=$enable_dlopen_self
  14522. # Whether dlopen of statically linked programs is supported.
  14523. dlopen_self_static=$enable_dlopen_self_static
  14524. # Commands to strip libraries.
  14525. old_striplib=$lt_old_striplib
  14526. striplib=$lt_striplib
  14527. # The linker used to build libraries.
  14528. LD=$lt_LD
  14529. # Commands used to build an old-style archive.
  14530. old_archive_cmds=$lt_old_archive_cmds
  14531. # A language specific compiler.
  14532. CC=$lt_compiler
  14533. # Is the compiler the GNU compiler?
  14534. with_gcc=$GCC
  14535. # Compiler flag to turn off builtin functions.
  14536. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14537. # How to pass a linker flag through the compiler.
  14538. wl=$lt_lt_prog_compiler_wl
  14539. # Additional compiler flags for building library objects.
  14540. pic_flag=$lt_lt_prog_compiler_pic
  14541. # Compiler flag to prevent dynamic linking.
  14542. link_static_flag=$lt_lt_prog_compiler_static
  14543. # Does compiler simultaneously support -c and -o options?
  14544. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14545. # Whether or not to add -lc for building shared libraries.
  14546. build_libtool_need_lc=$archive_cmds_need_lc
  14547. # Whether or not to disallow shared libs when runtime libs are static.
  14548. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14549. # Compiler flag to allow reflexive dlopens.
  14550. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14551. # Compiler flag to generate shared objects directly from archives.
  14552. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14553. # Whether the compiler copes with passing no objects directly.
  14554. compiler_needs_object=$lt_compiler_needs_object
  14555. # Create an old-style archive from a shared archive.
  14556. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14557. # Create a temporary old-style archive to link instead of a shared archive.
  14558. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14559. # Commands used to build a shared archive.
  14560. archive_cmds=$lt_archive_cmds
  14561. archive_expsym_cmds=$lt_archive_expsym_cmds
  14562. # Commands used to build a loadable module if different from building
  14563. # a shared archive.
  14564. module_cmds=$lt_module_cmds
  14565. module_expsym_cmds=$lt_module_expsym_cmds
  14566. # Whether we are building with GNU ld or not.
  14567. with_gnu_ld=$lt_with_gnu_ld
  14568. # Flag that allows shared libraries with undefined symbols to be built.
  14569. allow_undefined_flag=$lt_allow_undefined_flag
  14570. # Flag that enforces no undefined symbols.
  14571. no_undefined_flag=$lt_no_undefined_flag
  14572. # Flag to hardcode \$libdir into a binary during linking.
  14573. # This must work even if \$libdir does not exist
  14574. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14575. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14576. # during linking. This must work even if \$libdir does not exist.
  14577. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14578. # Whether we need a single "-rpath" flag with a separated argument.
  14579. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14580. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14581. # DIR into the resulting binary.
  14582. hardcode_direct=$hardcode_direct
  14583. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14584. # DIR into the resulting binary and the resulting library dependency is
  14585. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14586. # library is relocated.
  14587. hardcode_direct_absolute=$hardcode_direct_absolute
  14588. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14589. # into the resulting binary.
  14590. hardcode_minus_L=$hardcode_minus_L
  14591. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14592. # into the resulting binary.
  14593. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14594. # Set to "yes" if building a shared library automatically hardcodes DIR
  14595. # into the library and all subsequent libraries and executables linked
  14596. # against it.
  14597. hardcode_automatic=$hardcode_automatic
  14598. # Set to yes if linker adds runtime paths of dependent libraries
  14599. # to runtime path list.
  14600. inherit_rpath=$inherit_rpath
  14601. # Whether libtool must link a program against all its dependency libraries.
  14602. link_all_deplibs=$link_all_deplibs
  14603. # Fix the shell variable \$srcfile for the compiler.
  14604. fix_srcfile_path=$lt_fix_srcfile_path
  14605. # Set to "yes" if exported symbols are required.
  14606. always_export_symbols=$always_export_symbols
  14607. # The commands to list exported symbols.
  14608. export_symbols_cmds=$lt_export_symbols_cmds
  14609. # Symbols that should not be listed in the preloaded symbols.
  14610. exclude_expsyms=$lt_exclude_expsyms
  14611. # Symbols that must always be exported.
  14612. include_expsyms=$lt_include_expsyms
  14613. # Commands necessary for linking programs (against libraries) with templates.
  14614. prelink_cmds=$lt_prelink_cmds
  14615. # Specify filename containing input files.
  14616. file_list_spec=$lt_file_list_spec
  14617. # How to hardcode a shared library path into an executable.
  14618. hardcode_action=$hardcode_action
  14619. # ### END LIBTOOL CONFIG
  14620. _LT_EOF
  14621. case $host_os in
  14622. aix3*)
  14623. cat <<\_LT_EOF >> "$cfgfile"
  14624. # AIX sometimes has problems with the GCC collect2 program. For some
  14625. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14626. # vanish in a puff of smoke.
  14627. if test "X${COLLECT_NAMES+set}" != Xset; then
  14628. COLLECT_NAMES=
  14629. export COLLECT_NAMES
  14630. fi
  14631. _LT_EOF
  14632. ;;
  14633. esac
  14634. ltmain="$ac_aux_dir/ltmain.sh"
  14635. # We use sed instead of cat because bash on DJGPP gets confused if
  14636. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14637. # text mode, it properly converts lines to CR/LF. This bash problem
  14638. # is reportedly fixed, but why not run on old versions too?
  14639. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14640. || (rm -f "$cfgfile"; exit 1)
  14641. case $xsi_shell in
  14642. yes)
  14643. cat << \_LT_EOF >> "$cfgfile"
  14644. # func_dirname file append nondir_replacement
  14645. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14646. # otherwise set result to NONDIR_REPLACEMENT.
  14647. func_dirname ()
  14648. {
  14649. case ${1} in
  14650. */*) func_dirname_result="${1%/*}${2}" ;;
  14651. * ) func_dirname_result="${3}" ;;
  14652. esac
  14653. }
  14654. # func_basename file
  14655. func_basename ()
  14656. {
  14657. func_basename_result="${1##*/}"
  14658. }
  14659. # func_dirname_and_basename file append nondir_replacement
  14660. # perform func_basename and func_dirname in a single function
  14661. # call:
  14662. # dirname: Compute the dirname of FILE. If nonempty,
  14663. # add APPEND to the result, otherwise set result
  14664. # to NONDIR_REPLACEMENT.
  14665. # value returned in "$func_dirname_result"
  14666. # basename: Compute filename of FILE.
  14667. # value retuned in "$func_basename_result"
  14668. # Implementation must be kept synchronized with func_dirname
  14669. # and func_basename. For efficiency, we do not delegate to
  14670. # those functions but instead duplicate the functionality here.
  14671. func_dirname_and_basename ()
  14672. {
  14673. case ${1} in
  14674. */*) func_dirname_result="${1%/*}${2}" ;;
  14675. * ) func_dirname_result="${3}" ;;
  14676. esac
  14677. func_basename_result="${1##*/}"
  14678. }
  14679. # func_stripname prefix suffix name
  14680. # strip PREFIX and SUFFIX off of NAME.
  14681. # PREFIX and SUFFIX must not contain globbing or regex special
  14682. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14683. # dot (in which case that matches only a dot).
  14684. func_stripname ()
  14685. {
  14686. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14687. # positional parameters, so assign one to ordinary parameter first.
  14688. func_stripname_result=${3}
  14689. func_stripname_result=${func_stripname_result#"${1}"}
  14690. func_stripname_result=${func_stripname_result%"${2}"}
  14691. }
  14692. # func_opt_split
  14693. func_opt_split ()
  14694. {
  14695. func_opt_split_opt=${1%%=*}
  14696. func_opt_split_arg=${1#*=}
  14697. }
  14698. # func_lo2o object
  14699. func_lo2o ()
  14700. {
  14701. case ${1} in
  14702. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14703. *) func_lo2o_result=${1} ;;
  14704. esac
  14705. }
  14706. # func_xform libobj-or-source
  14707. func_xform ()
  14708. {
  14709. func_xform_result=${1%.*}.lo
  14710. }
  14711. # func_arith arithmetic-term...
  14712. func_arith ()
  14713. {
  14714. func_arith_result=$(( $* ))
  14715. }
  14716. # func_len string
  14717. # STRING may not start with a hyphen.
  14718. func_len ()
  14719. {
  14720. func_len_result=${#1}
  14721. }
  14722. _LT_EOF
  14723. ;;
  14724. *) # Bourne compatible functions.
  14725. cat << \_LT_EOF >> "$cfgfile"
  14726. # func_dirname file append nondir_replacement
  14727. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14728. # otherwise set result to NONDIR_REPLACEMENT.
  14729. func_dirname ()
  14730. {
  14731. # Extract subdirectory from the argument.
  14732. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  14733. if test "X$func_dirname_result" = "X${1}"; then
  14734. func_dirname_result="${3}"
  14735. else
  14736. func_dirname_result="$func_dirname_result${2}"
  14737. fi
  14738. }
  14739. # func_basename file
  14740. func_basename ()
  14741. {
  14742. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  14743. }
  14744. # func_stripname prefix suffix name
  14745. # strip PREFIX and SUFFIX off of NAME.
  14746. # PREFIX and SUFFIX must not contain globbing or regex special
  14747. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14748. # dot (in which case that matches only a dot).
  14749. # func_strip_suffix prefix name
  14750. func_stripname ()
  14751. {
  14752. case ${2} in
  14753. .*) func_stripname_result=`$ECHO "X${3}" \
  14754. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  14755. *) func_stripname_result=`$ECHO "X${3}" \
  14756. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  14757. esac
  14758. }
  14759. # sed scripts:
  14760. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14761. my_sed_long_arg='1s/^-[^=]*=//'
  14762. # func_opt_split
  14763. func_opt_split ()
  14764. {
  14765. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  14766. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  14767. }
  14768. # func_lo2o object
  14769. func_lo2o ()
  14770. {
  14771. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  14772. }
  14773. # func_xform libobj-or-source
  14774. func_xform ()
  14775. {
  14776. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  14777. }
  14778. # func_arith arithmetic-term...
  14779. func_arith ()
  14780. {
  14781. func_arith_result=`expr "$@"`
  14782. }
  14783. # func_len string
  14784. # STRING may not start with a hyphen.
  14785. func_len ()
  14786. {
  14787. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14788. }
  14789. _LT_EOF
  14790. esac
  14791. case $lt_shell_append in
  14792. yes)
  14793. cat << \_LT_EOF >> "$cfgfile"
  14794. # func_append var value
  14795. # Append VALUE to the end of shell variable VAR.
  14796. func_append ()
  14797. {
  14798. eval "$1+=\$2"
  14799. }
  14800. _LT_EOF
  14801. ;;
  14802. *)
  14803. cat << \_LT_EOF >> "$cfgfile"
  14804. # func_append var value
  14805. # Append VALUE to the end of shell variable VAR.
  14806. func_append ()
  14807. {
  14808. eval "$1=\$$1\$2"
  14809. }
  14810. _LT_EOF
  14811. ;;
  14812. esac
  14813. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14814. || (rm -f "$cfgfile"; exit 1)
  14815. mv -f "$cfgfile" "$ofile" ||
  14816. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14817. chmod +x "$ofile"
  14818. ;;
  14819. esac
  14820. done # for ac_tag
  14821. { (exit 0); exit 0; }
  14822. _ACEOF
  14823. chmod +x $CONFIG_STATUS
  14824. ac_clean_files=$ac_clean_files_save
  14825. test $ac_write_fail = 0 ||
  14826. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  14827. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  14828. { (exit 1); exit 1; }; }
  14829. # configure is writing to config.log, and then calls config.status.
  14830. # config.status does its own redirection, appending to config.log.
  14831. # Unfortunately, on DOS this fails, as config.log is still kept open
  14832. # by configure, so config.status won't be able to write to it; its
  14833. # output is simply discarded. So we exec the FD to /dev/null,
  14834. # effectively closing config.log, so it can be properly (re)opened and
  14835. # appended to by config.status. When coming back to configure, we
  14836. # need to make the FD available again.
  14837. if test "$no_create" != yes; then
  14838. ac_cs_success=:
  14839. ac_config_status_args=
  14840. test "$silent" = yes &&
  14841. ac_config_status_args="$ac_config_status_args --quiet"
  14842. exec 5>/dev/null
  14843. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14844. exec 5>>config.log
  14845. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14846. # would make configure fail if this is the last instruction.
  14847. $ac_cs_success || { (exit 1); exit 1; }
  14848. fi
  14849. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14850. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14851. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14852. fi