configure 228 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159. if (eval "$as_required") 2>/dev/null; then :
  160. as_have_required=yes
  161. else
  162. as_have_required=no
  163. fi
  164. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  165. else
  166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170. IFS=$as_save_IFS
  171. test -z "$as_dir" && as_dir=.
  172. as_found=:
  173. case $as_dir in #(
  174. /*)
  175. for as_base in sh bash ksh sh5; do
  176. # Try only shells that exist, to save several forks.
  177. as_shell=$as_dir/$as_base
  178. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180. CONFIG_SHELL=$as_shell as_have_required=yes
  181. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. break 2
  183. fi
  184. fi
  185. done;;
  186. esac
  187. as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS
  194. if test "x$CONFIG_SHELL" != x; then :
  195. # We cannot yet assume a decent shell, so we have to provide a
  196. # neutralization value for shells without unset; and this also
  197. # works around shells that cannot unset nonexistent variables.
  198. BASH_ENV=/dev/null
  199. ENV=/dev/null
  200. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201. export CONFIG_SHELL
  202. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi
  204. if test x$as_have_required = xno; then :
  205. $as_echo "$0: This script requires a shell more modern than all"
  206. $as_echo "$0: the shells that I found on your system."
  207. if test x${ZSH_VERSION+set} = xset ; then
  208. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210. else
  211. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215. fi
  216. exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS
  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233. { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset
  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241. return $1
  242. } # as_fn_set_status
  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248. set +e
  249. as_fn_set_status $1
  250. exit $1
  251. } # as_fn_exit
  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {
  257. case $as_dir in #(
  258. -*) as_dir=./$as_dir;;
  259. esac
  260. test -d "$as_dir" || eval $as_mkdir_p || {
  261. as_dirs=
  262. while :; do
  263. case $as_dir in #(
  264. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265. *) as_qdir=$as_dir;;
  266. esac
  267. as_dirs="'$as_qdir' $as_dirs"
  268. as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270. X"$as_dir" : 'X\(//\)[^/]' \| \
  271. X"$as_dir" : 'X\(//\)$' \| \
  272. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275. s//\1/
  276. q
  277. }
  278. /^X\(\/\/\)[^/].*/{
  279. s//\1/
  280. q
  281. }
  282. /^X\(\/\/\)$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\).*/{
  287. s//\1/
  288. q
  289. }
  290. s/.*/./; q'`
  291. test -d "$as_dir" && break
  292. done
  293. test -z "$as_dirs" || eval "mkdir $as_dirs"
  294. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303. eval 'as_fn_append ()
  304. {
  305. eval $1+=\$2
  306. }'
  307. else
  308. as_fn_append ()
  309. {
  310. eval $1=\$$1\$2
  311. }
  312. fi # as_fn_append
  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319. eval 'as_fn_arith ()
  320. {
  321. as_val=$(( $* ))
  322. }'
  323. else
  324. as_fn_arith ()
  325. {
  326. as_val=`expr "$@" || test $? -eq 1`
  327. }
  328. fi # as_fn_arith
  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336. as_status=$?; test $as_status -eq 0 && as_status=1
  337. if test "$3"; then
  338. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340. fi
  341. $as_echo "$as_me: error: $1" >&2
  342. as_fn_exit $as_status
  343. } # as_fn_error
  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346. as_expr=expr
  347. else
  348. as_expr=false
  349. fi
  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351. as_basename=basename
  352. else
  353. as_basename=false
  354. fi
  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356. as_dirname=dirname
  357. else
  358. as_dirname=false
  359. fi
  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362. X"$0" : 'X\(//\)$' \| \
  363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  366. s//\1/
  367. q
  368. }
  369. /^X\/\(\/\/\)$/{
  370. s//\1/
  371. q
  372. }
  373. /^X\/\(\/\).*/{
  374. s//\1/
  375. q
  376. }
  377. s/.*/./; q'`
  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  384. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  389. sed -n '
  390. p
  391. /[$]LINENO/=
  392. ' <$as_myself |
  393. sed '
  394. s/[$]LINENO.*/&-/
  395. t lineno
  396. b
  397. :lineno
  398. N
  399. :loop
  400. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401. t loop
  402. s/-\n.*//
  403. ' >$as_me.lineno &&
  404. chmod +x "$as_me.lineno" ||
  405. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  406. # Don't try to exec as it changes $[0], causing all sort of problems
  407. # (the dirname of $[0] is not the place where we might find the
  408. # original and so on. Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410. # Exit status is that of the last command.
  411. exit
  412. }
  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416. case `echo 'xy\c'` in
  417. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  418. xy) ECHO_C='\c';;
  419. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420. ECHO_T=' ';;
  421. esac;;
  422. *)
  423. ECHO_N='-n';;
  424. esac
  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427. rm -f conf$$.dir/conf$$.file
  428. else
  429. rm -f conf$$.dir
  430. mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433. if ln -s conf$$.file conf$$ 2>/dev/null; then
  434. as_ln_s='ln -s'
  435. # ... but there are two gotchas:
  436. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438. # In both cases, we have to default to `cp -p'.
  439. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440. as_ln_s='cp -p'
  441. elif ln conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s=ln
  443. else
  444. as_ln_s='cp -p'
  445. fi
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null
  451. if mkdir -p . 2>/dev/null; then
  452. as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454. test -d ./-p && rmdir ./-p
  455. as_mkdir_p=false
  456. fi
  457. if test -x / >/dev/null 2>&1; then
  458. as_test_x='test -x'
  459. else
  460. if ls -dL / >/dev/null 2>&1; then
  461. as_ls_L_option=L
  462. else
  463. as_ls_L_option=
  464. fi
  465. as_test_x='
  466. eval sh -c '\''
  467. if test -d "$1"; then
  468. test -d "$1/.";
  469. else
  470. case $1 in #(
  471. -*)set "./$1";;
  472. esac;
  473. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474. ???[sx]*):;;*)false;;esac;fi
  475. '\'' sh
  476. '
  477. fi
  478. as_executable_p=$as_test_x
  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  483. exec 7<&0 </dev/null 6>&1
  484. # Name of the host.
  485. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  486. # so uname gets run too.
  487. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  488. #
  489. # Initializations.
  490. #
  491. ac_default_prefix=/usr/local
  492. ac_clean_files=
  493. ac_config_libobj_dir=.
  494. LIBOBJS=
  495. cross_compiling=no
  496. subdirs=
  497. MFLAGS=
  498. MAKEFLAGS=
  499. # Identity of this package.
  500. PACKAGE_NAME=
  501. PACKAGE_TARNAME=
  502. PACKAGE_VERSION=
  503. PACKAGE_STRING=
  504. PACKAGE_BUGREPORT=
  505. PACKAGE_URL=
  506. ac_unique_file="xmalloc.c"
  507. # Factoring default headers for most tests.
  508. ac_includes_default="\
  509. #include <stdio.h>
  510. #ifdef HAVE_SYS_TYPES_H
  511. # include <sys/types.h>
  512. #endif
  513. #ifdef HAVE_SYS_STAT_H
  514. # include <sys/stat.h>
  515. #endif
  516. #ifdef STDC_HEADERS
  517. # include <stdlib.h>
  518. # include <stddef.h>
  519. #else
  520. # ifdef HAVE_STDLIB_H
  521. # include <stdlib.h>
  522. # endif
  523. #endif
  524. #ifdef HAVE_STRING_H
  525. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  526. # include <memory.h>
  527. # endif
  528. # include <string.h>
  529. #endif
  530. #ifdef HAVE_STRINGS_H
  531. # include <strings.h>
  532. #endif
  533. #ifdef HAVE_INTTYPES_H
  534. # include <inttypes.h>
  535. #endif
  536. #ifdef HAVE_STDINT_H
  537. # include <stdint.h>
  538. #endif
  539. #ifdef HAVE_UNISTD_H
  540. # include <unistd.h>
  541. #endif"
  542. ac_subst_vars='LTLIBOBJS
  543. INSTALL_DEST
  544. pexecute
  545. target_header_dir
  546. CHECK
  547. LIBOBJS
  548. NOASANFLAG
  549. PICFLAG
  550. INSTALL_DATA
  551. INSTALL_SCRIPT
  552. INSTALL_PROGRAM
  553. EGREP
  554. GREP
  555. OUTPUT_OPTION
  556. NO_MINUS_C_MINUS_O
  557. ac_libiberty_warn_cflags
  558. CPP
  559. OBJEXT
  560. EXEEXT
  561. ac_ct_CC
  562. CPPFLAGS
  563. LDFLAGS
  564. CFLAGS
  565. CC
  566. RANLIB
  567. AR
  568. host_os
  569. host_vendor
  570. host_cpu
  571. host
  572. build_os
  573. build_vendor
  574. build_cpu
  575. build
  576. HAVE_PERL
  577. PERL
  578. BUILD_INFO
  579. MAKEINFO
  580. NOTMAINT
  581. MAINT
  582. libiberty_topdir
  583. target_alias
  584. host_alias
  585. build_alias
  586. LIBS
  587. ECHO_T
  588. ECHO_N
  589. ECHO_C
  590. DEFS
  591. mandir
  592. localedir
  593. libdir
  594. psdir
  595. pdfdir
  596. dvidir
  597. htmldir
  598. infodir
  599. docdir
  600. oldincludedir
  601. includedir
  602. localstatedir
  603. sharedstatedir
  604. sysconfdir
  605. datadir
  606. datarootdir
  607. libexecdir
  608. sbindir
  609. bindir
  610. program_transform_name
  611. prefix
  612. exec_prefix
  613. PACKAGE_URL
  614. PACKAGE_BUGREPORT
  615. PACKAGE_STRING
  616. PACKAGE_VERSION
  617. PACKAGE_TARNAME
  618. PACKAGE_NAME
  619. PATH_SEPARATOR
  620. SHELL'
  621. ac_subst_files='host_makefile_frag'
  622. ac_user_opts='
  623. enable_option_checking
  624. with_target_subdir
  625. with_build_subdir
  626. with_cross_host
  627. with_newlib
  628. enable_maintainer_mode
  629. enable_multilib
  630. enable_install_libiberty
  631. enable_largefile
  632. '
  633. ac_precious_vars='build_alias
  634. host_alias
  635. target_alias
  636. CC
  637. CFLAGS
  638. LDFLAGS
  639. LIBS
  640. CPPFLAGS
  641. CPP'
  642. # Initialize some variables set by options.
  643. ac_init_help=
  644. ac_init_version=false
  645. ac_unrecognized_opts=
  646. ac_unrecognized_sep=
  647. # The variables have the same names as the options, with
  648. # dashes changed to underlines.
  649. cache_file=/dev/null
  650. exec_prefix=NONE
  651. no_create=
  652. no_recursion=
  653. prefix=NONE
  654. program_prefix=NONE
  655. program_suffix=NONE
  656. program_transform_name=s,x,x,
  657. silent=
  658. site=
  659. srcdir=
  660. verbose=
  661. x_includes=NONE
  662. x_libraries=NONE
  663. # Installation directory options.
  664. # These are left unexpanded so users can "make install exec_prefix=/foo"
  665. # and all the variables that are supposed to be based on exec_prefix
  666. # by default will actually change.
  667. # Use braces instead of parens because sh, perl, etc. also accept them.
  668. # (The list follows the same order as the GNU Coding Standards.)
  669. bindir='${exec_prefix}/bin'
  670. sbindir='${exec_prefix}/sbin'
  671. libexecdir='${exec_prefix}/libexec'
  672. datarootdir='${prefix}/share'
  673. datadir='${datarootdir}'
  674. sysconfdir='${prefix}/etc'
  675. sharedstatedir='${prefix}/com'
  676. localstatedir='${prefix}/var'
  677. includedir='${prefix}/include'
  678. oldincludedir='/usr/include'
  679. docdir='${datarootdir}/doc/${PACKAGE}'
  680. infodir='${datarootdir}/info'
  681. htmldir='${docdir}'
  682. dvidir='${docdir}'
  683. pdfdir='${docdir}'
  684. psdir='${docdir}'
  685. libdir='${exec_prefix}/lib'
  686. localedir='${datarootdir}/locale'
  687. mandir='${datarootdir}/man'
  688. ac_prev=
  689. ac_dashdash=
  690. for ac_option
  691. do
  692. # If the previous option needs an argument, assign it.
  693. if test -n "$ac_prev"; then
  694. eval $ac_prev=\$ac_option
  695. ac_prev=
  696. continue
  697. fi
  698. case $ac_option in
  699. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  700. *) ac_optarg=yes ;;
  701. esac
  702. # Accept the important Cygnus configure options, so we can diagnose typos.
  703. case $ac_dashdash$ac_option in
  704. --)
  705. ac_dashdash=yes ;;
  706. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  707. ac_prev=bindir ;;
  708. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  709. bindir=$ac_optarg ;;
  710. -build | --build | --buil | --bui | --bu)
  711. ac_prev=build_alias ;;
  712. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  713. build_alias=$ac_optarg ;;
  714. -cache-file | --cache-file | --cache-fil | --cache-fi \
  715. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  716. ac_prev=cache_file ;;
  717. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  718. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  719. cache_file=$ac_optarg ;;
  720. --config-cache | -C)
  721. cache_file=config.cache ;;
  722. -datadir | --datadir | --datadi | --datad)
  723. ac_prev=datadir ;;
  724. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  725. datadir=$ac_optarg ;;
  726. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  727. | --dataroo | --dataro | --datar)
  728. ac_prev=datarootdir ;;
  729. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  730. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  731. datarootdir=$ac_optarg ;;
  732. -disable-* | --disable-*)
  733. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  734. # Reject names that are not valid shell variable names.
  735. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  736. as_fn_error "invalid feature name: $ac_useropt"
  737. ac_useropt_orig=$ac_useropt
  738. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  739. case $ac_user_opts in
  740. *"
  741. "enable_$ac_useropt"
  742. "*) ;;
  743. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  744. ac_unrecognized_sep=', ';;
  745. esac
  746. eval enable_$ac_useropt=no ;;
  747. -docdir | --docdir | --docdi | --doc | --do)
  748. ac_prev=docdir ;;
  749. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  750. docdir=$ac_optarg ;;
  751. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  752. ac_prev=dvidir ;;
  753. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  754. dvidir=$ac_optarg ;;
  755. -enable-* | --enable-*)
  756. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  757. # Reject names that are not valid shell variable names.
  758. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  759. as_fn_error "invalid feature name: $ac_useropt"
  760. ac_useropt_orig=$ac_useropt
  761. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  762. case $ac_user_opts in
  763. *"
  764. "enable_$ac_useropt"
  765. "*) ;;
  766. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  767. ac_unrecognized_sep=', ';;
  768. esac
  769. eval enable_$ac_useropt=\$ac_optarg ;;
  770. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  771. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  772. | --exec | --exe | --ex)
  773. ac_prev=exec_prefix ;;
  774. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  775. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  776. | --exec=* | --exe=* | --ex=*)
  777. exec_prefix=$ac_optarg ;;
  778. -gas | --gas | --ga | --g)
  779. # Obsolete; use --with-gas.
  780. with_gas=yes ;;
  781. -help | --help | --hel | --he | -h)
  782. ac_init_help=long ;;
  783. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  784. ac_init_help=recursive ;;
  785. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  786. ac_init_help=short ;;
  787. -host | --host | --hos | --ho)
  788. ac_prev=host_alias ;;
  789. -host=* | --host=* | --hos=* | --ho=*)
  790. host_alias=$ac_optarg ;;
  791. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  792. ac_prev=htmldir ;;
  793. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  794. | --ht=*)
  795. htmldir=$ac_optarg ;;
  796. -includedir | --includedir | --includedi | --included | --include \
  797. | --includ | --inclu | --incl | --inc)
  798. ac_prev=includedir ;;
  799. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  800. | --includ=* | --inclu=* | --incl=* | --inc=*)
  801. includedir=$ac_optarg ;;
  802. -infodir | --infodir | --infodi | --infod | --info | --inf)
  803. ac_prev=infodir ;;
  804. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  805. infodir=$ac_optarg ;;
  806. -libdir | --libdir | --libdi | --libd)
  807. ac_prev=libdir ;;
  808. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  809. libdir=$ac_optarg ;;
  810. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  811. | --libexe | --libex | --libe)
  812. ac_prev=libexecdir ;;
  813. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  814. | --libexe=* | --libex=* | --libe=*)
  815. libexecdir=$ac_optarg ;;
  816. -localedir | --localedir | --localedi | --localed | --locale)
  817. ac_prev=localedir ;;
  818. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  819. localedir=$ac_optarg ;;
  820. -localstatedir | --localstatedir | --localstatedi | --localstated \
  821. | --localstate | --localstat | --localsta | --localst | --locals)
  822. ac_prev=localstatedir ;;
  823. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  824. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  825. localstatedir=$ac_optarg ;;
  826. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  827. ac_prev=mandir ;;
  828. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  829. mandir=$ac_optarg ;;
  830. -nfp | --nfp | --nf)
  831. # Obsolete; use --without-fp.
  832. with_fp=no ;;
  833. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  834. | --no-cr | --no-c | -n)
  835. no_create=yes ;;
  836. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  837. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  838. no_recursion=yes ;;
  839. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  840. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  841. | --oldin | --oldi | --old | --ol | --o)
  842. ac_prev=oldincludedir ;;
  843. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  844. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  845. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  846. oldincludedir=$ac_optarg ;;
  847. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  848. ac_prev=prefix ;;
  849. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  850. prefix=$ac_optarg ;;
  851. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  852. | --program-pre | --program-pr | --program-p)
  853. ac_prev=program_prefix ;;
  854. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  855. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  856. program_prefix=$ac_optarg ;;
  857. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  858. | --program-suf | --program-su | --program-s)
  859. ac_prev=program_suffix ;;
  860. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  861. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  862. program_suffix=$ac_optarg ;;
  863. -program-transform-name | --program-transform-name \
  864. | --program-transform-nam | --program-transform-na \
  865. | --program-transform-n | --program-transform- \
  866. | --program-transform | --program-transfor \
  867. | --program-transfo | --program-transf \
  868. | --program-trans | --program-tran \
  869. | --progr-tra | --program-tr | --program-t)
  870. ac_prev=program_transform_name ;;
  871. -program-transform-name=* | --program-transform-name=* \
  872. | --program-transform-nam=* | --program-transform-na=* \
  873. | --program-transform-n=* | --program-transform-=* \
  874. | --program-transform=* | --program-transfor=* \
  875. | --program-transfo=* | --program-transf=* \
  876. | --program-trans=* | --program-tran=* \
  877. | --progr-tra=* | --program-tr=* | --program-t=*)
  878. program_transform_name=$ac_optarg ;;
  879. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  880. ac_prev=pdfdir ;;
  881. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  882. pdfdir=$ac_optarg ;;
  883. -psdir | --psdir | --psdi | --psd | --ps)
  884. ac_prev=psdir ;;
  885. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  886. psdir=$ac_optarg ;;
  887. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  888. | -silent | --silent | --silen | --sile | --sil)
  889. silent=yes ;;
  890. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  891. ac_prev=sbindir ;;
  892. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  893. | --sbi=* | --sb=*)
  894. sbindir=$ac_optarg ;;
  895. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  896. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  897. | --sharedst | --shareds | --shared | --share | --shar \
  898. | --sha | --sh)
  899. ac_prev=sharedstatedir ;;
  900. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  901. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  902. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  903. | --sha=* | --sh=*)
  904. sharedstatedir=$ac_optarg ;;
  905. -site | --site | --sit)
  906. ac_prev=site ;;
  907. -site=* | --site=* | --sit=*)
  908. site=$ac_optarg ;;
  909. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  910. ac_prev=srcdir ;;
  911. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  912. srcdir=$ac_optarg ;;
  913. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  914. | --syscon | --sysco | --sysc | --sys | --sy)
  915. ac_prev=sysconfdir ;;
  916. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  917. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  918. sysconfdir=$ac_optarg ;;
  919. -target | --target | --targe | --targ | --tar | --ta | --t)
  920. ac_prev=target_alias ;;
  921. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  922. target_alias=$ac_optarg ;;
  923. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  924. verbose=yes ;;
  925. -version | --version | --versio | --versi | --vers | -V)
  926. ac_init_version=: ;;
  927. -with-* | --with-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error "invalid package name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "with_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval with_$ac_useropt=\$ac_optarg ;;
  942. -without-* | --without-*)
  943. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  944. # Reject names that are not valid shell variable names.
  945. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  946. as_fn_error "invalid package name: $ac_useropt"
  947. ac_useropt_orig=$ac_useropt
  948. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  949. case $ac_user_opts in
  950. *"
  951. "with_$ac_useropt"
  952. "*) ;;
  953. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  954. ac_unrecognized_sep=', ';;
  955. esac
  956. eval with_$ac_useropt=no ;;
  957. --x)
  958. # Obsolete; use --with-x.
  959. with_x=yes ;;
  960. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  961. | --x-incl | --x-inc | --x-in | --x-i)
  962. ac_prev=x_includes ;;
  963. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  964. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  965. x_includes=$ac_optarg ;;
  966. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  967. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  968. ac_prev=x_libraries ;;
  969. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  970. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  971. x_libraries=$ac_optarg ;;
  972. -*) as_fn_error "unrecognized option: \`$ac_option'
  973. Try \`$0 --help' for more information."
  974. ;;
  975. *=*)
  976. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  977. # Reject names that are not valid shell variable names.
  978. case $ac_envvar in #(
  979. '' | [0-9]* | *[!_$as_cr_alnum]* )
  980. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  981. esac
  982. eval $ac_envvar=\$ac_optarg
  983. export $ac_envvar ;;
  984. *)
  985. # FIXME: should be removed in autoconf 3.0.
  986. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  987. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  988. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  989. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  990. ;;
  991. esac
  992. done
  993. if test -n "$ac_prev"; then
  994. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  995. as_fn_error "missing argument to $ac_option"
  996. fi
  997. if test -n "$ac_unrecognized_opts"; then
  998. case $enable_option_checking in
  999. no) ;;
  1000. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1001. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1002. esac
  1003. fi
  1004. # Check all directory arguments for consistency.
  1005. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1006. datadir sysconfdir sharedstatedir localstatedir includedir \
  1007. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1008. libdir localedir mandir
  1009. do
  1010. eval ac_val=\$$ac_var
  1011. # Remove trailing slashes.
  1012. case $ac_val in
  1013. */ )
  1014. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1015. eval $ac_var=\$ac_val;;
  1016. esac
  1017. # Be sure to have absolute directory names.
  1018. case $ac_val in
  1019. [\\/$]* | ?:[\\/]* ) continue;;
  1020. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1021. esac
  1022. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1023. done
  1024. # There might be people who depend on the old broken behavior: `$host'
  1025. # used to hold the argument of --host etc.
  1026. # FIXME: To remove some day.
  1027. build=$build_alias
  1028. host=$host_alias
  1029. target=$target_alias
  1030. # FIXME: To remove some day.
  1031. if test "x$host_alias" != x; then
  1032. if test "x$build_alias" = x; then
  1033. cross_compiling=maybe
  1034. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1035. If a cross compiler is detected then cross compile mode will be used." >&2
  1036. elif test "x$build_alias" != "x$host_alias"; then
  1037. cross_compiling=yes
  1038. fi
  1039. fi
  1040. ac_tool_prefix=
  1041. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1042. test "$silent" = yes && exec 6>/dev/null
  1043. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1044. ac_ls_di=`ls -di .` &&
  1045. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1046. as_fn_error "working directory cannot be determined"
  1047. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1048. as_fn_error "pwd does not report name of working directory"
  1049. # Find the source files, if location was not specified.
  1050. if test -z "$srcdir"; then
  1051. ac_srcdir_defaulted=yes
  1052. # Try the directory containing this script, then the parent directory.
  1053. ac_confdir=`$as_dirname -- "$as_myself" ||
  1054. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1055. X"$as_myself" : 'X\(//\)[^/]' \| \
  1056. X"$as_myself" : 'X\(//\)$' \| \
  1057. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1058. $as_echo X"$as_myself" |
  1059. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1060. s//\1/
  1061. q
  1062. }
  1063. /^X\(\/\/\)[^/].*/{
  1064. s//\1/
  1065. q
  1066. }
  1067. /^X\(\/\/\)$/{
  1068. s//\1/
  1069. q
  1070. }
  1071. /^X\(\/\).*/{
  1072. s//\1/
  1073. q
  1074. }
  1075. s/.*/./; q'`
  1076. srcdir=$ac_confdir
  1077. if test ! -r "$srcdir/$ac_unique_file"; then
  1078. srcdir=..
  1079. fi
  1080. else
  1081. ac_srcdir_defaulted=no
  1082. fi
  1083. if test ! -r "$srcdir/$ac_unique_file"; then
  1084. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1085. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1086. fi
  1087. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1088. ac_abs_confdir=`(
  1089. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1090. pwd)`
  1091. # When building in place, set srcdir=.
  1092. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1093. srcdir=.
  1094. fi
  1095. # Remove unnecessary trailing slashes from srcdir.
  1096. # Double slashes in file names in object file debugging info
  1097. # mess up M-x gdb in Emacs.
  1098. case $srcdir in
  1099. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1100. esac
  1101. for ac_var in $ac_precious_vars; do
  1102. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1103. eval ac_env_${ac_var}_value=\$${ac_var}
  1104. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1105. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1106. done
  1107. #
  1108. # Report the --help message.
  1109. #
  1110. if test "$ac_init_help" = "long"; then
  1111. # Omit some internal or obsolete options to make the list less imposing.
  1112. # This message is too long to be a string in the A/UX 3.1 sh.
  1113. cat <<_ACEOF
  1114. \`configure' configures this package to adapt to many kinds of systems.
  1115. Usage: $0 [OPTION]... [VAR=VALUE]...
  1116. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1117. VAR=VALUE. See below for descriptions of some of the useful variables.
  1118. Defaults for the options are specified in brackets.
  1119. Configuration:
  1120. -h, --help display this help and exit
  1121. --help=short display options specific to this package
  1122. --help=recursive display the short help of all the included packages
  1123. -V, --version display version information and exit
  1124. -q, --quiet, --silent do not print \`checking...' messages
  1125. --cache-file=FILE cache test results in FILE [disabled]
  1126. -C, --config-cache alias for \`--cache-file=config.cache'
  1127. -n, --no-create do not create output files
  1128. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1129. Installation directories:
  1130. --prefix=PREFIX install architecture-independent files in PREFIX
  1131. [$ac_default_prefix]
  1132. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1133. [PREFIX]
  1134. By default, \`make install' will install all the files in
  1135. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1136. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1137. for instance \`--prefix=\$HOME'.
  1138. For better control, use the options below.
  1139. Fine tuning of the installation directories:
  1140. --bindir=DIR user executables [EPREFIX/bin]
  1141. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1142. --libexecdir=DIR program executables [EPREFIX/libexec]
  1143. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1144. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1145. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1146. --libdir=DIR object code libraries [EPREFIX/lib]
  1147. --includedir=DIR C header files [PREFIX/include]
  1148. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1149. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1150. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1151. --infodir=DIR info documentation [DATAROOTDIR/info]
  1152. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1153. --mandir=DIR man documentation [DATAROOTDIR/man]
  1154. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1155. --htmldir=DIR html documentation [DOCDIR]
  1156. --dvidir=DIR dvi documentation [DOCDIR]
  1157. --pdfdir=DIR pdf documentation [DOCDIR]
  1158. --psdir=DIR ps documentation [DOCDIR]
  1159. _ACEOF
  1160. cat <<\_ACEOF
  1161. System types:
  1162. --build=BUILD configure for building on BUILD [guessed]
  1163. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1164. _ACEOF
  1165. fi
  1166. if test -n "$ac_init_help"; then
  1167. cat <<\_ACEOF
  1168. Optional Features:
  1169. --disable-option-checking ignore unrecognized --enable/--with options
  1170. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1171. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1172. --enable-maintainer-mode
  1173. enable make rules and dependencies not useful
  1174. (and sometimes confusing) to the casual installer
  1175. --enable-multilib build many library versions (default)
  1176. --enable-install-libiberty Install headers and library for end users
  1177. --disable-largefile omit support for large files
  1178. Optional Packages:
  1179. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1180. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1181. --with-target-subdir=SUBDIR Configuring in a subdirectory for target
  1182. --with-build-subdir=SUBDIR Configuring in a subdirectory for build
  1183. --with-cross-host=HOST Configuring with a cross compiler
  1184. --with-newlib Configuring with newlib
  1185. Some influential environment variables:
  1186. CC C compiler command
  1187. CFLAGS C compiler flags
  1188. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1189. nonstandard directory <lib dir>
  1190. LIBS libraries to pass to the linker, e.g. -l<library>
  1191. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1192. you have headers in a nonstandard directory <include dir>
  1193. CPP C preprocessor
  1194. Use these variables to override the choices made by `configure' or to help
  1195. it to find libraries and programs with nonstandard names/locations.
  1196. Report bugs to the package provider.
  1197. _ACEOF
  1198. ac_status=$?
  1199. fi
  1200. if test "$ac_init_help" = "recursive"; then
  1201. # If there are subdirs, report their specific --help.
  1202. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1203. test -d "$ac_dir" ||
  1204. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1205. continue
  1206. ac_builddir=.
  1207. case "$ac_dir" in
  1208. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1209. *)
  1210. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1211. # A ".." for each directory in $ac_dir_suffix.
  1212. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1213. case $ac_top_builddir_sub in
  1214. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1215. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1216. esac ;;
  1217. esac
  1218. ac_abs_top_builddir=$ac_pwd
  1219. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1220. # for backward compatibility:
  1221. ac_top_builddir=$ac_top_build_prefix
  1222. case $srcdir in
  1223. .) # We are building in place.
  1224. ac_srcdir=.
  1225. ac_top_srcdir=$ac_top_builddir_sub
  1226. ac_abs_top_srcdir=$ac_pwd ;;
  1227. [\\/]* | ?:[\\/]* ) # Absolute name.
  1228. ac_srcdir=$srcdir$ac_dir_suffix;
  1229. ac_top_srcdir=$srcdir
  1230. ac_abs_top_srcdir=$srcdir ;;
  1231. *) # Relative name.
  1232. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1233. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1234. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1235. esac
  1236. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1237. cd "$ac_dir" || { ac_status=$?; continue; }
  1238. # Check for guested configure.
  1239. if test -f "$ac_srcdir/configure.gnu"; then
  1240. echo &&
  1241. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1242. elif test -f "$ac_srcdir/configure"; then
  1243. echo &&
  1244. $SHELL "$ac_srcdir/configure" --help=recursive
  1245. else
  1246. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1247. fi || ac_status=$?
  1248. cd "$ac_pwd" || { ac_status=$?; break; }
  1249. done
  1250. fi
  1251. test -n "$ac_init_help" && exit $ac_status
  1252. if $ac_init_version; then
  1253. cat <<\_ACEOF
  1254. configure
  1255. generated by GNU Autoconf 2.64
  1256. Copyright (C) 2009 Free Software Foundation, Inc.
  1257. This configure script is free software; the Free Software Foundation
  1258. gives unlimited permission to copy, distribute and modify it.
  1259. _ACEOF
  1260. exit
  1261. fi
  1262. ## ------------------------ ##
  1263. ## Autoconf initialization. ##
  1264. ## ------------------------ ##
  1265. # ac_fn_c_try_compile LINENO
  1266. # --------------------------
  1267. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1268. ac_fn_c_try_compile ()
  1269. {
  1270. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1271. rm -f conftest.$ac_objext
  1272. if { { ac_try="$ac_compile"
  1273. case "(($ac_try" in
  1274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1275. *) ac_try_echo=$ac_try;;
  1276. esac
  1277. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1278. $as_echo "$ac_try_echo"; } >&5
  1279. (eval "$ac_compile") 2>conftest.err
  1280. ac_status=$?
  1281. if test -s conftest.err; then
  1282. grep -v '^ *+' conftest.err >conftest.er1
  1283. cat conftest.er1 >&5
  1284. mv -f conftest.er1 conftest.err
  1285. fi
  1286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1287. test $ac_status = 0; } && {
  1288. test -z "$ac_c_werror_flag" ||
  1289. test ! -s conftest.err
  1290. } && test -s conftest.$ac_objext; then :
  1291. ac_retval=0
  1292. else
  1293. $as_echo "$as_me: failed program was:" >&5
  1294. sed 's/^/| /' conftest.$ac_ext >&5
  1295. ac_retval=1
  1296. fi
  1297. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1298. return $ac_retval
  1299. } # ac_fn_c_try_compile
  1300. # ac_fn_c_try_cpp LINENO
  1301. # ----------------------
  1302. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1303. ac_fn_c_try_cpp ()
  1304. {
  1305. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1306. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1307. case "(($ac_try" in
  1308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1309. *) ac_try_echo=$ac_try;;
  1310. esac
  1311. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1312. $as_echo "$ac_try_echo"; } >&5
  1313. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1314. ac_status=$?
  1315. if test -s conftest.err; then
  1316. grep -v '^ *+' conftest.err >conftest.er1
  1317. cat conftest.er1 >&5
  1318. mv -f conftest.er1 conftest.err
  1319. fi
  1320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1321. test $ac_status = 0; } >/dev/null && {
  1322. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1323. test ! -s conftest.err
  1324. }; then :
  1325. ac_retval=0
  1326. else
  1327. $as_echo "$as_me: failed program was:" >&5
  1328. sed 's/^/| /' conftest.$ac_ext >&5
  1329. ac_retval=1
  1330. fi
  1331. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1332. return $ac_retval
  1333. } # ac_fn_c_try_cpp
  1334. # ac_fn_c_try_run LINENO
  1335. # ----------------------
  1336. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1337. # that executables *can* be run.
  1338. ac_fn_c_try_run ()
  1339. {
  1340. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1341. if { { ac_try="$ac_link"
  1342. case "(($ac_try" in
  1343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1344. *) ac_try_echo=$ac_try;;
  1345. esac
  1346. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1347. $as_echo "$ac_try_echo"; } >&5
  1348. (eval "$ac_link") 2>&5
  1349. ac_status=$?
  1350. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1351. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1352. { { case "(($ac_try" in
  1353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1354. *) ac_try_echo=$ac_try;;
  1355. esac
  1356. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1357. $as_echo "$ac_try_echo"; } >&5
  1358. (eval "$ac_try") 2>&5
  1359. ac_status=$?
  1360. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1361. test $ac_status = 0; }; }; then :
  1362. ac_retval=0
  1363. else
  1364. $as_echo "$as_me: program exited with status $ac_status" >&5
  1365. $as_echo "$as_me: failed program was:" >&5
  1366. sed 's/^/| /' conftest.$ac_ext >&5
  1367. ac_retval=$ac_status
  1368. fi
  1369. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1370. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1371. return $ac_retval
  1372. } # ac_fn_c_try_run
  1373. # ac_fn_c_check_header_preproc LINENO HEADER VAR
  1374. # ----------------------------------------------
  1375. # Tests whether HEADER is present, setting the cache variable VAR accordingly.
  1376. ac_fn_c_check_header_preproc ()
  1377. {
  1378. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1380. $as_echo_n "checking for $2... " >&6; }
  1381. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1382. $as_echo_n "(cached) " >&6
  1383. else
  1384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1385. /* end confdefs.h. */
  1386. #include <$2>
  1387. _ACEOF
  1388. if ac_fn_c_try_cpp "$LINENO"; then :
  1389. eval "$3=yes"
  1390. else
  1391. eval "$3=no"
  1392. fi
  1393. rm -f conftest.err conftest.$ac_ext
  1394. fi
  1395. eval ac_res=\$$3
  1396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1397. $as_echo "$ac_res" >&6; }
  1398. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1399. } # ac_fn_c_check_header_preproc
  1400. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1401. # --------------------------------------------
  1402. # Tries to find the compile-time value of EXPR in a program that includes
  1403. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1404. # computed
  1405. ac_fn_c_compute_int ()
  1406. {
  1407. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1408. if test "$cross_compiling" = yes; then
  1409. # Depending upon the size, compute the lo and hi bounds.
  1410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1411. /* end confdefs.h. */
  1412. $4
  1413. int
  1414. main ()
  1415. {
  1416. static int test_array [1 - 2 * !(($2) >= 0)];
  1417. test_array [0] = 0
  1418. ;
  1419. return 0;
  1420. }
  1421. _ACEOF
  1422. if ac_fn_c_try_compile "$LINENO"; then :
  1423. ac_lo=0 ac_mid=0
  1424. while :; do
  1425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1426. /* end confdefs.h. */
  1427. $4
  1428. int
  1429. main ()
  1430. {
  1431. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1432. test_array [0] = 0
  1433. ;
  1434. return 0;
  1435. }
  1436. _ACEOF
  1437. if ac_fn_c_try_compile "$LINENO"; then :
  1438. ac_hi=$ac_mid; break
  1439. else
  1440. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1441. if test $ac_lo -le $ac_mid; then
  1442. ac_lo= ac_hi=
  1443. break
  1444. fi
  1445. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1446. fi
  1447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1448. done
  1449. else
  1450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1451. /* end confdefs.h. */
  1452. $4
  1453. int
  1454. main ()
  1455. {
  1456. static int test_array [1 - 2 * !(($2) < 0)];
  1457. test_array [0] = 0
  1458. ;
  1459. return 0;
  1460. }
  1461. _ACEOF
  1462. if ac_fn_c_try_compile "$LINENO"; then :
  1463. ac_hi=-1 ac_mid=-1
  1464. while :; do
  1465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1466. /* end confdefs.h. */
  1467. $4
  1468. int
  1469. main ()
  1470. {
  1471. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1472. test_array [0] = 0
  1473. ;
  1474. return 0;
  1475. }
  1476. _ACEOF
  1477. if ac_fn_c_try_compile "$LINENO"; then :
  1478. ac_lo=$ac_mid; break
  1479. else
  1480. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1481. if test $ac_mid -le $ac_hi; then
  1482. ac_lo= ac_hi=
  1483. break
  1484. fi
  1485. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1486. fi
  1487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1488. done
  1489. else
  1490. ac_lo= ac_hi=
  1491. fi
  1492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1493. fi
  1494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1495. # Binary search between lo and hi bounds.
  1496. while test "x$ac_lo" != "x$ac_hi"; do
  1497. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1499. /* end confdefs.h. */
  1500. $4
  1501. int
  1502. main ()
  1503. {
  1504. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1505. test_array [0] = 0
  1506. ;
  1507. return 0;
  1508. }
  1509. _ACEOF
  1510. if ac_fn_c_try_compile "$LINENO"; then :
  1511. ac_hi=$ac_mid
  1512. else
  1513. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1514. fi
  1515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1516. done
  1517. case $ac_lo in #((
  1518. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1519. '') ac_retval=1 ;;
  1520. esac
  1521. else
  1522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1523. /* end confdefs.h. */
  1524. $4
  1525. static long int longval () { return $2; }
  1526. static unsigned long int ulongval () { return $2; }
  1527. #include <stdio.h>
  1528. #include <stdlib.h>
  1529. int
  1530. main ()
  1531. {
  1532. FILE *f = fopen ("conftest.val", "w");
  1533. if (! f)
  1534. return 1;
  1535. if (($2) < 0)
  1536. {
  1537. long int i = longval ();
  1538. if (i != ($2))
  1539. return 1;
  1540. fprintf (f, "%ld", i);
  1541. }
  1542. else
  1543. {
  1544. unsigned long int i = ulongval ();
  1545. if (i != ($2))
  1546. return 1;
  1547. fprintf (f, "%lu", i);
  1548. }
  1549. /* Do not output a trailing newline, as this causes \r\n confusion
  1550. on some platforms. */
  1551. return ferror (f) || fclose (f) != 0;
  1552. ;
  1553. return 0;
  1554. }
  1555. _ACEOF
  1556. if ac_fn_c_try_run "$LINENO"; then :
  1557. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1558. else
  1559. ac_retval=1
  1560. fi
  1561. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1562. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1563. rm -f conftest.val
  1564. fi
  1565. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1566. return $ac_retval
  1567. } # ac_fn_c_compute_int
  1568. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1569. # -------------------------------------------
  1570. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1571. # variable VAR accordingly.
  1572. ac_fn_c_check_type ()
  1573. {
  1574. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1576. $as_echo_n "checking for $2... " >&6; }
  1577. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1578. $as_echo_n "(cached) " >&6
  1579. else
  1580. eval "$3=no"
  1581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1582. /* end confdefs.h. */
  1583. $4
  1584. int
  1585. main ()
  1586. {
  1587. if (sizeof ($2))
  1588. return 0;
  1589. ;
  1590. return 0;
  1591. }
  1592. _ACEOF
  1593. if ac_fn_c_try_compile "$LINENO"; then :
  1594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1595. /* end confdefs.h. */
  1596. $4
  1597. int
  1598. main ()
  1599. {
  1600. if (sizeof (($2)))
  1601. return 0;
  1602. ;
  1603. return 0;
  1604. }
  1605. _ACEOF
  1606. if ac_fn_c_try_compile "$LINENO"; then :
  1607. else
  1608. eval "$3=yes"
  1609. fi
  1610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1611. fi
  1612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1613. fi
  1614. eval ac_res=\$$3
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1616. $as_echo "$ac_res" >&6; }
  1617. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1618. } # ac_fn_c_check_type
  1619. # ac_fn_c_try_link LINENO
  1620. # -----------------------
  1621. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1622. ac_fn_c_try_link ()
  1623. {
  1624. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1625. rm -f conftest.$ac_objext conftest$ac_exeext
  1626. if { { ac_try="$ac_link"
  1627. case "(($ac_try" in
  1628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1629. *) ac_try_echo=$ac_try;;
  1630. esac
  1631. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1632. $as_echo "$ac_try_echo"; } >&5
  1633. (eval "$ac_link") 2>conftest.err
  1634. ac_status=$?
  1635. if test -s conftest.err; then
  1636. grep -v '^ *+' conftest.err >conftest.er1
  1637. cat conftest.er1 >&5
  1638. mv -f conftest.er1 conftest.err
  1639. fi
  1640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1641. test $ac_status = 0; } && {
  1642. test -z "$ac_c_werror_flag" ||
  1643. test ! -s conftest.err
  1644. } && test -s conftest$ac_exeext && {
  1645. test "$cross_compiling" = yes ||
  1646. $as_test_x conftest$ac_exeext
  1647. }; then :
  1648. ac_retval=0
  1649. else
  1650. $as_echo "$as_me: failed program was:" >&5
  1651. sed 's/^/| /' conftest.$ac_ext >&5
  1652. ac_retval=1
  1653. fi
  1654. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1655. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1656. # interfere with the next link command; also delete a directory that is
  1657. # left behind by Apple's compiler. We do this before executing the actions.
  1658. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1659. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1660. return $ac_retval
  1661. } # ac_fn_c_try_link
  1662. # ac_fn_c_check_func LINENO FUNC VAR
  1663. # ----------------------------------
  1664. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1665. ac_fn_c_check_func ()
  1666. {
  1667. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1669. $as_echo_n "checking for $2... " >&6; }
  1670. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1671. $as_echo_n "(cached) " >&6
  1672. else
  1673. if test x$gcc_no_link = xyes; then
  1674. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1675. fi
  1676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1677. /* end confdefs.h. */
  1678. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1679. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1680. #define $2 innocuous_$2
  1681. /* System header to define __stub macros and hopefully few prototypes,
  1682. which can conflict with char $2 (); below.
  1683. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1684. <limits.h> exists even on freestanding compilers. */
  1685. #ifdef __STDC__
  1686. # include <limits.h>
  1687. #else
  1688. # include <assert.h>
  1689. #endif
  1690. #undef $2
  1691. /* Override any GCC internal prototype to avoid an error.
  1692. Use char because int might match the return type of a GCC
  1693. builtin and then its argument prototype would still apply. */
  1694. #ifdef __cplusplus
  1695. extern "C"
  1696. #endif
  1697. char $2 ();
  1698. /* The GNU C library defines this for functions which it implements
  1699. to always fail with ENOSYS. Some functions are actually named
  1700. something starting with __ and the normal name is an alias. */
  1701. #if defined __stub_$2 || defined __stub___$2
  1702. choke me
  1703. #endif
  1704. int
  1705. main ()
  1706. {
  1707. return $2 ();
  1708. ;
  1709. return 0;
  1710. }
  1711. _ACEOF
  1712. if ac_fn_c_try_link "$LINENO"; then :
  1713. eval "$3=yes"
  1714. else
  1715. eval "$3=no"
  1716. fi
  1717. rm -f core conftest.err conftest.$ac_objext \
  1718. conftest$ac_exeext conftest.$ac_ext
  1719. fi
  1720. eval ac_res=\$$3
  1721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1722. $as_echo "$ac_res" >&6; }
  1723. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1724. } # ac_fn_c_check_func
  1725. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1726. # ------------------------------------
  1727. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1728. ac_fn_c_check_decl ()
  1729. {
  1730. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1731. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1732. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1734. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1735. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1736. $as_echo_n "(cached) " >&6
  1737. else
  1738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1739. /* end confdefs.h. */
  1740. $4
  1741. int
  1742. main ()
  1743. {
  1744. #ifndef $as_decl_name
  1745. #ifdef __cplusplus
  1746. (void) $as_decl_use;
  1747. #else
  1748. (void) $as_decl_name;
  1749. #endif
  1750. #endif
  1751. ;
  1752. return 0;
  1753. }
  1754. _ACEOF
  1755. if ac_fn_c_try_compile "$LINENO"; then :
  1756. eval "$3=yes"
  1757. else
  1758. eval "$3=no"
  1759. fi
  1760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1761. fi
  1762. eval ac_res=\$$3
  1763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1764. $as_echo "$ac_res" >&6; }
  1765. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1766. } # ac_fn_c_check_decl
  1767. cat >config.log <<_ACEOF
  1768. This file contains any messages produced by compilers while
  1769. running configure, to aid debugging if configure makes a mistake.
  1770. It was created by $as_me, which was
  1771. generated by GNU Autoconf 2.64. Invocation command line was
  1772. $ $0 $@
  1773. _ACEOF
  1774. exec 5>>config.log
  1775. {
  1776. cat <<_ASUNAME
  1777. ## --------- ##
  1778. ## Platform. ##
  1779. ## --------- ##
  1780. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1781. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1782. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1783. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1784. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1785. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1786. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1787. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1788. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1789. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1790. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1791. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1792. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1793. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1794. _ASUNAME
  1795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1796. for as_dir in $PATH
  1797. do
  1798. IFS=$as_save_IFS
  1799. test -z "$as_dir" && as_dir=.
  1800. $as_echo "PATH: $as_dir"
  1801. done
  1802. IFS=$as_save_IFS
  1803. } >&5
  1804. cat >&5 <<_ACEOF
  1805. ## ----------- ##
  1806. ## Core tests. ##
  1807. ## ----------- ##
  1808. _ACEOF
  1809. # Keep a trace of the command line.
  1810. # Strip out --no-create and --no-recursion so they do not pile up.
  1811. # Strip out --silent because we don't want to record it for future runs.
  1812. # Also quote any args containing shell meta-characters.
  1813. # Make two passes to allow for proper duplicate-argument suppression.
  1814. ac_configure_args=
  1815. ac_configure_args0=
  1816. ac_configure_args1=
  1817. ac_must_keep_next=false
  1818. for ac_pass in 1 2
  1819. do
  1820. for ac_arg
  1821. do
  1822. case $ac_arg in
  1823. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1824. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1825. | -silent | --silent | --silen | --sile | --sil)
  1826. continue ;;
  1827. *\'*)
  1828. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1829. esac
  1830. case $ac_pass in
  1831. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1832. 2)
  1833. as_fn_append ac_configure_args1 " '$ac_arg'"
  1834. if test $ac_must_keep_next = true; then
  1835. ac_must_keep_next=false # Got value, back to normal.
  1836. else
  1837. case $ac_arg in
  1838. *=* | --config-cache | -C | -disable-* | --disable-* \
  1839. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1840. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1841. | -with-* | --with-* | -without-* | --without-* | --x)
  1842. case "$ac_configure_args0 " in
  1843. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1844. esac
  1845. ;;
  1846. -* ) ac_must_keep_next=true ;;
  1847. esac
  1848. fi
  1849. as_fn_append ac_configure_args " '$ac_arg'"
  1850. ;;
  1851. esac
  1852. done
  1853. done
  1854. { ac_configure_args0=; unset ac_configure_args0;}
  1855. { ac_configure_args1=; unset ac_configure_args1;}
  1856. # When interrupted or exit'd, cleanup temporary files, and complete
  1857. # config.log. We remove comments because anyway the quotes in there
  1858. # would cause problems or look ugly.
  1859. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1860. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1861. trap 'exit_status=$?
  1862. # Save into config.log some information that might help in debugging.
  1863. {
  1864. echo
  1865. cat <<\_ASBOX
  1866. ## ---------------- ##
  1867. ## Cache variables. ##
  1868. ## ---------------- ##
  1869. _ASBOX
  1870. echo
  1871. # The following way of writing the cache mishandles newlines in values,
  1872. (
  1873. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1874. eval ac_val=\$$ac_var
  1875. case $ac_val in #(
  1876. *${as_nl}*)
  1877. case $ac_var in #(
  1878. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1879. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1880. esac
  1881. case $ac_var in #(
  1882. _ | IFS | as_nl) ;; #(
  1883. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1884. *) { eval $ac_var=; unset $ac_var;} ;;
  1885. esac ;;
  1886. esac
  1887. done
  1888. (set) 2>&1 |
  1889. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1890. *${as_nl}ac_space=\ *)
  1891. sed -n \
  1892. "s/'\''/'\''\\\\'\'''\''/g;
  1893. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1894. ;; #(
  1895. *)
  1896. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1897. ;;
  1898. esac |
  1899. sort
  1900. )
  1901. echo
  1902. cat <<\_ASBOX
  1903. ## ----------------- ##
  1904. ## Output variables. ##
  1905. ## ----------------- ##
  1906. _ASBOX
  1907. echo
  1908. for ac_var in $ac_subst_vars
  1909. do
  1910. eval ac_val=\$$ac_var
  1911. case $ac_val in
  1912. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1913. esac
  1914. $as_echo "$ac_var='\''$ac_val'\''"
  1915. done | sort
  1916. echo
  1917. if test -n "$ac_subst_files"; then
  1918. cat <<\_ASBOX
  1919. ## ------------------- ##
  1920. ## File substitutions. ##
  1921. ## ------------------- ##
  1922. _ASBOX
  1923. echo
  1924. for ac_var in $ac_subst_files
  1925. do
  1926. eval ac_val=\$$ac_var
  1927. case $ac_val in
  1928. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1929. esac
  1930. $as_echo "$ac_var='\''$ac_val'\''"
  1931. done | sort
  1932. echo
  1933. fi
  1934. if test -s confdefs.h; then
  1935. cat <<\_ASBOX
  1936. ## ----------- ##
  1937. ## confdefs.h. ##
  1938. ## ----------- ##
  1939. _ASBOX
  1940. echo
  1941. cat confdefs.h
  1942. echo
  1943. fi
  1944. test "$ac_signal" != 0 &&
  1945. $as_echo "$as_me: caught signal $ac_signal"
  1946. $as_echo "$as_me: exit $exit_status"
  1947. } >&5
  1948. rm -f core *.core core.conftest.* &&
  1949. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1950. exit $exit_status
  1951. ' 0
  1952. for ac_signal in 1 2 13 15; do
  1953. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1954. done
  1955. ac_signal=0
  1956. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1957. rm -f -r conftest* confdefs.h
  1958. $as_echo "/* confdefs.h */" > confdefs.h
  1959. # Predefined preprocessor variables.
  1960. cat >>confdefs.h <<_ACEOF
  1961. #define PACKAGE_NAME "$PACKAGE_NAME"
  1962. _ACEOF
  1963. cat >>confdefs.h <<_ACEOF
  1964. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1965. _ACEOF
  1966. cat >>confdefs.h <<_ACEOF
  1967. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1968. _ACEOF
  1969. cat >>confdefs.h <<_ACEOF
  1970. #define PACKAGE_STRING "$PACKAGE_STRING"
  1971. _ACEOF
  1972. cat >>confdefs.h <<_ACEOF
  1973. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1974. _ACEOF
  1975. cat >>confdefs.h <<_ACEOF
  1976. #define PACKAGE_URL "$PACKAGE_URL"
  1977. _ACEOF
  1978. # Let the site file select an alternate cache file if it wants to.
  1979. # Prefer an explicitly selected file to automatically selected ones.
  1980. ac_site_file1=NONE
  1981. ac_site_file2=NONE
  1982. if test -n "$CONFIG_SITE"; then
  1983. ac_site_file1=$CONFIG_SITE
  1984. elif test "x$prefix" != xNONE; then
  1985. ac_site_file1=$prefix/share/config.site
  1986. ac_site_file2=$prefix/etc/config.site
  1987. else
  1988. ac_site_file1=$ac_default_prefix/share/config.site
  1989. ac_site_file2=$ac_default_prefix/etc/config.site
  1990. fi
  1991. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1992. do
  1993. test "x$ac_site_file" = xNONE && continue
  1994. if test -r "$ac_site_file"; then
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1996. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1997. sed 's/^/| /' "$ac_site_file" >&5
  1998. . "$ac_site_file"
  1999. fi
  2000. done
  2001. if test -r "$cache_file"; then
  2002. # Some versions of bash will fail to source /dev/null (special
  2003. # files actually), so we avoid doing that.
  2004. if test -f "$cache_file"; then
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2006. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2007. case $cache_file in
  2008. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2009. *) . "./$cache_file";;
  2010. esac
  2011. fi
  2012. else
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2014. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2015. >$cache_file
  2016. fi
  2017. # Check that the precious variables saved in the cache have kept the same
  2018. # value.
  2019. ac_cache_corrupted=false
  2020. for ac_var in $ac_precious_vars; do
  2021. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2022. eval ac_new_set=\$ac_env_${ac_var}_set
  2023. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2024. eval ac_new_val=\$ac_env_${ac_var}_value
  2025. case $ac_old_set,$ac_new_set in
  2026. set,)
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2028. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2029. ac_cache_corrupted=: ;;
  2030. ,set)
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2032. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2033. ac_cache_corrupted=: ;;
  2034. ,);;
  2035. *)
  2036. if test "x$ac_old_val" != "x$ac_new_val"; then
  2037. # differences in whitespace do not lead to failure.
  2038. ac_old_val_w=`echo x $ac_old_val`
  2039. ac_new_val_w=`echo x $ac_new_val`
  2040. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2042. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2043. ac_cache_corrupted=:
  2044. else
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2046. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2047. eval $ac_var=\$ac_old_val
  2048. fi
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2050. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2051. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2052. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2053. fi;;
  2054. esac
  2055. # Pass precious variables to config.status.
  2056. if test "$ac_new_set" = set; then
  2057. case $ac_new_val in
  2058. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2059. *) ac_arg=$ac_var=$ac_new_val ;;
  2060. esac
  2061. case " $ac_configure_args " in
  2062. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2063. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2064. esac
  2065. fi
  2066. done
  2067. if $ac_cache_corrupted; then
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2071. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2072. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2073. fi
  2074. ## -------------------- ##
  2075. ## Main body of script. ##
  2076. ## -------------------- ##
  2077. ac_ext=c
  2078. ac_cpp='$CPP $CPPFLAGS'
  2079. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2080. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2081. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2082. # This works around the fact that libtool configuration may change LD
  2083. # for this particular configuration, but some shells, instead of
  2084. # keeping the changes in LD private, export them just because LD is
  2085. # exported. We don't use libtool yet, but some day we might, so...
  2086. ORIGINAL_LD_FOR_MULTILIBS=$LD
  2087. # Check whether --with-target-subdir was given.
  2088. if test "${with_target_subdir+set}" = set; then :
  2089. withval=$with_target_subdir;
  2090. fi
  2091. # Check whether --with-build-subdir was given.
  2092. if test "${with_build_subdir+set}" = set; then :
  2093. withval=$with_build_subdir;
  2094. fi
  2095. # Check whether --with-cross-host was given.
  2096. if test "${with_cross_host+set}" = set; then :
  2097. withval=$with_cross_host;
  2098. fi
  2099. # Check whether --with-newlib was given.
  2100. if test "${with_newlib+set}" = set; then :
  2101. withval=$with_newlib;
  2102. fi
  2103. if test "${srcdir}" = "."; then
  2104. if test -n "${with_build_subdir}"; then
  2105. libiberty_topdir="${srcdir}/../.."
  2106. with_target_subdir=
  2107. elif test -z "${with_target_subdir}"; then
  2108. libiberty_topdir="${srcdir}/.."
  2109. else
  2110. if test "${with_target_subdir}" != "."; then
  2111. libiberty_topdir="${srcdir}/${with_multisrctop}../.."
  2112. else
  2113. libiberty_topdir="${srcdir}/${with_multisrctop}.."
  2114. fi
  2115. fi
  2116. else
  2117. libiberty_topdir="${srcdir}/.."
  2118. fi
  2119. ac_aux_dir=
  2120. for ac_dir in $libiberty_topdir "$srcdir"/$libiberty_topdir; do
  2121. for ac_t in install-sh install.sh shtool; do
  2122. if test -f "$ac_dir/$ac_t"; then
  2123. ac_aux_dir=$ac_dir
  2124. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2125. break 2
  2126. fi
  2127. done
  2128. done
  2129. if test -z "$ac_aux_dir"; then
  2130. as_fn_error "cannot find install-sh, install.sh, or shtool in $libiberty_topdir \"$srcdir\"/$libiberty_topdir" "$LINENO" 5
  2131. fi
  2132. # These three variables are undocumented and unsupported,
  2133. # and are intended to be withdrawn in a future Autoconf release.
  2134. # They can cause serious problems if a builder's source tree is in a directory
  2135. # whose full name contains unusual characters.
  2136. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2137. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2138. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2140. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2141. # Check whether --enable-maintainer-mode was given.
  2142. if test "${enable_maintainer_mode+set}" = set; then :
  2143. enableval=$enable_maintainer_mode; maintainer_mode=$enableval
  2144. else
  2145. maintainer_mode=no
  2146. fi
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
  2148. $as_echo "$maintainer_mode" >&6; }
  2149. if test "$maintainer_mode" = "yes"; then
  2150. MAINT=''
  2151. NOTMAINT='#'
  2152. else
  2153. MAINT='#'
  2154. NOTMAINT=''
  2155. fi
  2156. # Do we have a single-tree copy of texinfo? Even if we do, we can't
  2157. # rely on it - libiberty is built before texinfo.
  2158. # Extract the first word of "makeinfo", so it can be a program name with args.
  2159. set dummy makeinfo; ac_word=$2
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2161. $as_echo_n "checking for $ac_word... " >&6; }
  2162. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  2163. $as_echo_n "(cached) " >&6
  2164. else
  2165. if test -n "$MAKEINFO"; then
  2166. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  2167. else
  2168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2169. for as_dir in $PATH
  2170. do
  2171. IFS=$as_save_IFS
  2172. test -z "$as_dir" && as_dir=.
  2173. for ac_exec_ext in '' $ac_executable_extensions; do
  2174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2175. ac_cv_prog_MAKEINFO="makeinfo"
  2176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2177. break 2
  2178. fi
  2179. done
  2180. done
  2181. IFS=$as_save_IFS
  2182. fi
  2183. fi
  2184. MAKEINFO=$ac_cv_prog_MAKEINFO
  2185. if test -n "$MAKEINFO"; then
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  2187. $as_echo "$MAKEINFO" >&6; }
  2188. else
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2190. $as_echo "no" >&6; }
  2191. fi
  2192. if test "x$MAKEINFO" = "x"; then
  2193. MAKEINFO="@echo makeinfo missing; true"
  2194. BUILD_INFO=
  2195. else
  2196. BUILD_INFO=info
  2197. case "$MAKEINFO" in
  2198. */missing\ makeinfo*)
  2199. BUILD_INFO=
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  2201. *** Makeinfo is missing. Info documentation will not be built." >&5
  2202. $as_echo "$as_me: WARNING:
  2203. *** Makeinfo is missing. Info documentation will not be built." >&2;}
  2204. ;;
  2205. *)
  2206. case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
  2207. x*\ [1-3].* )
  2208. MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
  2209. BUILD_INFO=
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  2211. *** Makeinfo is too old. Info documentation will not be built." >&5
  2212. $as_echo "$as_me: WARNING:
  2213. *** Makeinfo is too old. Info documentation will not be built." >&2;}
  2214. ;;
  2215. esac
  2216. ;;
  2217. esac
  2218. fi
  2219. # Extract the first word of "perl", so it can be a program name with args.
  2220. set dummy perl; ac_word=$2
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2222. $as_echo_n "checking for $ac_word... " >&6; }
  2223. if test "${ac_cv_prog_PERL+set}" = set; then :
  2224. $as_echo_n "(cached) " >&6
  2225. else
  2226. if test -n "$PERL"; then
  2227. ac_cv_prog_PERL="$PERL" # Let the user override the test.
  2228. else
  2229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2230. for as_dir in $PATH
  2231. do
  2232. IFS=$as_save_IFS
  2233. test -z "$as_dir" && as_dir=.
  2234. for ac_exec_ext in '' $ac_executable_extensions; do
  2235. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2236. ac_cv_prog_PERL="perl"
  2237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2238. break 2
  2239. fi
  2240. done
  2241. done
  2242. IFS=$as_save_IFS
  2243. fi
  2244. fi
  2245. PERL=$ac_cv_prog_PERL
  2246. if test -n "$PERL"; then
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  2248. $as_echo "$PERL" >&6; }
  2249. else
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2251. $as_echo "no" >&6; }
  2252. fi
  2253. if test x"$PERL" = x""; then
  2254. HAVE_PERL='#'
  2255. else
  2256. HAVE_PERL=''
  2257. fi
  2258. # Make sure we can run config.sub.
  2259. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2260. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2262. $as_echo_n "checking build system type... " >&6; }
  2263. if test "${ac_cv_build+set}" = set; then :
  2264. $as_echo_n "(cached) " >&6
  2265. else
  2266. ac_build_alias=$build_alias
  2267. test "x$ac_build_alias" = x &&
  2268. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2269. test "x$ac_build_alias" = x &&
  2270. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2271. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2272. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2273. fi
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2275. $as_echo "$ac_cv_build" >&6; }
  2276. case $ac_cv_build in
  2277. *-*-*) ;;
  2278. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2279. esac
  2280. build=$ac_cv_build
  2281. ac_save_IFS=$IFS; IFS='-'
  2282. set x $ac_cv_build
  2283. shift
  2284. build_cpu=$1
  2285. build_vendor=$2
  2286. shift; shift
  2287. # Remember, the first character of IFS is used to create $*,
  2288. # except with old shells:
  2289. build_os=$*
  2290. IFS=$ac_save_IFS
  2291. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2293. $as_echo_n "checking host system type... " >&6; }
  2294. if test "${ac_cv_host+set}" = set; then :
  2295. $as_echo_n "(cached) " >&6
  2296. else
  2297. if test "x$host_alias" = x; then
  2298. ac_cv_host=$ac_cv_build
  2299. else
  2300. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2301. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2302. fi
  2303. fi
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2305. $as_echo "$ac_cv_host" >&6; }
  2306. case $ac_cv_host in
  2307. *-*-*) ;;
  2308. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2309. esac
  2310. host=$ac_cv_host
  2311. ac_save_IFS=$IFS; IFS='-'
  2312. set x $ac_cv_host
  2313. shift
  2314. host_cpu=$1
  2315. host_vendor=$2
  2316. shift; shift
  2317. # Remember, the first character of IFS is used to create $*,
  2318. # except with old shells:
  2319. host_os=$*
  2320. IFS=$ac_save_IFS
  2321. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2322. if test -n "$ac_tool_prefix"; then
  2323. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  2324. set dummy ${ac_tool_prefix}ar; ac_word=$2
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2326. $as_echo_n "checking for $ac_word... " >&6; }
  2327. if test "${ac_cv_prog_AR+set}" = set; then :
  2328. $as_echo_n "(cached) " >&6
  2329. else
  2330. if test -n "$AR"; then
  2331. ac_cv_prog_AR="$AR" # Let the user override the test.
  2332. else
  2333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2334. for as_dir in $PATH
  2335. do
  2336. IFS=$as_save_IFS
  2337. test -z "$as_dir" && as_dir=.
  2338. for ac_exec_ext in '' $ac_executable_extensions; do
  2339. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2340. ac_cv_prog_AR="${ac_tool_prefix}ar"
  2341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2342. break 2
  2343. fi
  2344. done
  2345. done
  2346. IFS=$as_save_IFS
  2347. fi
  2348. fi
  2349. AR=$ac_cv_prog_AR
  2350. if test -n "$AR"; then
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  2352. $as_echo "$AR" >&6; }
  2353. else
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2355. $as_echo "no" >&6; }
  2356. fi
  2357. fi
  2358. if test -z "$ac_cv_prog_AR"; then
  2359. ac_ct_AR=$AR
  2360. # Extract the first word of "ar", so it can be a program name with args.
  2361. set dummy ar; ac_word=$2
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2363. $as_echo_n "checking for $ac_word... " >&6; }
  2364. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  2365. $as_echo_n "(cached) " >&6
  2366. else
  2367. if test -n "$ac_ct_AR"; then
  2368. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  2369. else
  2370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2371. for as_dir in $PATH
  2372. do
  2373. IFS=$as_save_IFS
  2374. test -z "$as_dir" && as_dir=.
  2375. for ac_exec_ext in '' $ac_executable_extensions; do
  2376. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2377. ac_cv_prog_ac_ct_AR="ar"
  2378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2379. break 2
  2380. fi
  2381. done
  2382. done
  2383. IFS=$as_save_IFS
  2384. fi
  2385. fi
  2386. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  2387. if test -n "$ac_ct_AR"; then
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  2389. $as_echo "$ac_ct_AR" >&6; }
  2390. else
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2392. $as_echo "no" >&6; }
  2393. fi
  2394. if test "x$ac_ct_AR" = x; then
  2395. AR=""
  2396. else
  2397. case $cross_compiling:$ac_tool_warned in
  2398. yes:)
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2400. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2401. ac_tool_warned=yes ;;
  2402. esac
  2403. AR=$ac_ct_AR
  2404. fi
  2405. else
  2406. AR="$ac_cv_prog_AR"
  2407. fi
  2408. if test -n "$ac_tool_prefix"; then
  2409. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2410. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2412. $as_echo_n "checking for $ac_word... " >&6; }
  2413. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  2414. $as_echo_n "(cached) " >&6
  2415. else
  2416. if test -n "$RANLIB"; then
  2417. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. for ac_exec_ext in '' $ac_executable_extensions; do
  2425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2426. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2428. break 2
  2429. fi
  2430. done
  2431. done
  2432. IFS=$as_save_IFS
  2433. fi
  2434. fi
  2435. RANLIB=$ac_cv_prog_RANLIB
  2436. if test -n "$RANLIB"; then
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  2438. $as_echo "$RANLIB" >&6; }
  2439. else
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2441. $as_echo "no" >&6; }
  2442. fi
  2443. fi
  2444. if test -z "$ac_cv_prog_RANLIB"; then
  2445. ac_ct_RANLIB=$RANLIB
  2446. # Extract the first word of "ranlib", so it can be a program name with args.
  2447. set dummy ranlib; ac_word=$2
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2449. $as_echo_n "checking for $ac_word... " >&6; }
  2450. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  2451. $as_echo_n "(cached) " >&6
  2452. else
  2453. if test -n "$ac_ct_RANLIB"; then
  2454. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2455. else
  2456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2457. for as_dir in $PATH
  2458. do
  2459. IFS=$as_save_IFS
  2460. test -z "$as_dir" && as_dir=.
  2461. for ac_exec_ext in '' $ac_executable_extensions; do
  2462. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2463. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2465. break 2
  2466. fi
  2467. done
  2468. done
  2469. IFS=$as_save_IFS
  2470. fi
  2471. fi
  2472. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2473. if test -n "$ac_ct_RANLIB"; then
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  2475. $as_echo "$ac_ct_RANLIB" >&6; }
  2476. else
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2478. $as_echo "no" >&6; }
  2479. fi
  2480. if test "x$ac_ct_RANLIB" = x; then
  2481. RANLIB=":"
  2482. else
  2483. case $cross_compiling:$ac_tool_warned in
  2484. yes:)
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2486. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2487. ac_tool_warned=yes ;;
  2488. esac
  2489. RANLIB=$ac_ct_RANLIB
  2490. fi
  2491. else
  2492. RANLIB="$ac_cv_prog_RANLIB"
  2493. fi
  2494. # Add --enable-multilib to configure.
  2495. # Default to --enable-multilib
  2496. # Check whether --enable-multilib was given.
  2497. if test "${enable_multilib+set}" = set; then :
  2498. enableval=$enable_multilib; case "$enableval" in
  2499. yes) multilib=yes ;;
  2500. no) multilib=no ;;
  2501. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2502. esac
  2503. else
  2504. multilib=yes
  2505. fi
  2506. # Even if the default multilib is not a cross compilation,
  2507. # it may be that some of the other multilibs are.
  2508. if test $cross_compiling = no && test $multilib = yes \
  2509. && test "x${with_multisubdir}" != x ; then
  2510. cross_compiling=maybe
  2511. fi
  2512. # We may wish to install the target headers somewhere.
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5
  2514. $as_echo_n "checking whether to install libiberty headers and static library... " >&6; }
  2515. # Check whether --enable-install-libiberty was given.
  2516. if test "${enable_install_libiberty+set}" = set; then :
  2517. enableval=$enable_install_libiberty; enable_install_libiberty=$enableval
  2518. else
  2519. enable_install_libiberty=no
  2520. fi
  2521. # Option parsed, now set things appropriately.
  2522. case x"$enable_install_libiberty" in
  2523. xyes|x)
  2524. target_header_dir=libiberty
  2525. ;;
  2526. xno)
  2527. target_header_dir=
  2528. ;;
  2529. *)
  2530. # This could be sanity-checked in various ways...
  2531. target_header_dir="${enable_install_libiberty}"
  2532. ;;
  2533. esac
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_install_libiberty" >&5
  2535. $as_echo "$enable_install_libiberty" >&6; }
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: target_header_dir = $target_header_dir" >&5
  2537. $as_echo "$as_me: target_header_dir = $target_header_dir" >&6;}
  2538. ac_ext=c
  2539. ac_cpp='$CPP $CPPFLAGS'
  2540. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2541. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2542. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2543. if test -n "$ac_tool_prefix"; then
  2544. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2545. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2547. $as_echo_n "checking for $ac_word... " >&6; }
  2548. if test "${ac_cv_prog_CC+set}" = set; then :
  2549. $as_echo_n "(cached) " >&6
  2550. else
  2551. if test -n "$CC"; then
  2552. ac_cv_prog_CC="$CC" # Let the user override the test.
  2553. else
  2554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2555. for as_dir in $PATH
  2556. do
  2557. IFS=$as_save_IFS
  2558. test -z "$as_dir" && as_dir=.
  2559. for ac_exec_ext in '' $ac_executable_extensions; do
  2560. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2561. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2563. break 2
  2564. fi
  2565. done
  2566. done
  2567. IFS=$as_save_IFS
  2568. fi
  2569. fi
  2570. CC=$ac_cv_prog_CC
  2571. if test -n "$CC"; then
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2573. $as_echo "$CC" >&6; }
  2574. else
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2576. $as_echo "no" >&6; }
  2577. fi
  2578. fi
  2579. if test -z "$ac_cv_prog_CC"; then
  2580. ac_ct_CC=$CC
  2581. # Extract the first word of "gcc", so it can be a program name with args.
  2582. set dummy gcc; ac_word=$2
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2584. $as_echo_n "checking for $ac_word... " >&6; }
  2585. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2586. $as_echo_n "(cached) " >&6
  2587. else
  2588. if test -n "$ac_ct_CC"; then
  2589. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2590. else
  2591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2592. for as_dir in $PATH
  2593. do
  2594. IFS=$as_save_IFS
  2595. test -z "$as_dir" && as_dir=.
  2596. for ac_exec_ext in '' $ac_executable_extensions; do
  2597. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2598. ac_cv_prog_ac_ct_CC="gcc"
  2599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2600. break 2
  2601. fi
  2602. done
  2603. done
  2604. IFS=$as_save_IFS
  2605. fi
  2606. fi
  2607. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2608. if test -n "$ac_ct_CC"; then
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2610. $as_echo "$ac_ct_CC" >&6; }
  2611. else
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2613. $as_echo "no" >&6; }
  2614. fi
  2615. if test "x$ac_ct_CC" = x; then
  2616. CC=""
  2617. else
  2618. case $cross_compiling:$ac_tool_warned in
  2619. yes:)
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2621. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2622. ac_tool_warned=yes ;;
  2623. esac
  2624. CC=$ac_ct_CC
  2625. fi
  2626. else
  2627. CC="$ac_cv_prog_CC"
  2628. fi
  2629. if test -z "$CC"; then
  2630. if test -n "$ac_tool_prefix"; then
  2631. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2632. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2634. $as_echo_n "checking for $ac_word... " >&6; }
  2635. if test "${ac_cv_prog_CC+set}" = set; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. if test -n "$CC"; then
  2639. ac_cv_prog_CC="$CC" # Let the user override the test.
  2640. else
  2641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2642. for as_dir in $PATH
  2643. do
  2644. IFS=$as_save_IFS
  2645. test -z "$as_dir" && as_dir=.
  2646. for ac_exec_ext in '' $ac_executable_extensions; do
  2647. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2648. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2650. break 2
  2651. fi
  2652. done
  2653. done
  2654. IFS=$as_save_IFS
  2655. fi
  2656. fi
  2657. CC=$ac_cv_prog_CC
  2658. if test -n "$CC"; then
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2660. $as_echo "$CC" >&6; }
  2661. else
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2663. $as_echo "no" >&6; }
  2664. fi
  2665. fi
  2666. fi
  2667. if test -z "$CC"; then
  2668. # Extract the first word of "cc", so it can be a program name with args.
  2669. set dummy cc; ac_word=$2
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2671. $as_echo_n "checking for $ac_word... " >&6; }
  2672. if test "${ac_cv_prog_CC+set}" = set; then :
  2673. $as_echo_n "(cached) " >&6
  2674. else
  2675. if test -n "$CC"; then
  2676. ac_cv_prog_CC="$CC" # Let the user override the test.
  2677. else
  2678. ac_prog_rejected=no
  2679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2680. for as_dir in $PATH
  2681. do
  2682. IFS=$as_save_IFS
  2683. test -z "$as_dir" && as_dir=.
  2684. for ac_exec_ext in '' $ac_executable_extensions; do
  2685. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2686. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2687. ac_prog_rejected=yes
  2688. continue
  2689. fi
  2690. ac_cv_prog_CC="cc"
  2691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2692. break 2
  2693. fi
  2694. done
  2695. done
  2696. IFS=$as_save_IFS
  2697. if test $ac_prog_rejected = yes; then
  2698. # We found a bogon in the path, so make sure we never use it.
  2699. set dummy $ac_cv_prog_CC
  2700. shift
  2701. if test $# != 0; then
  2702. # We chose a different compiler from the bogus one.
  2703. # However, it has the same basename, so the bogon will be chosen
  2704. # first if we set CC to just the basename; use the full file name.
  2705. shift
  2706. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2707. fi
  2708. fi
  2709. fi
  2710. fi
  2711. CC=$ac_cv_prog_CC
  2712. if test -n "$CC"; then
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2714. $as_echo "$CC" >&6; }
  2715. else
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2717. $as_echo "no" >&6; }
  2718. fi
  2719. fi
  2720. if test -z "$CC"; then
  2721. if test -n "$ac_tool_prefix"; then
  2722. for ac_prog in cl.exe
  2723. do
  2724. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2725. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2727. $as_echo_n "checking for $ac_word... " >&6; }
  2728. if test "${ac_cv_prog_CC+set}" = set; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. if test -n "$CC"; then
  2732. ac_cv_prog_CC="$CC" # Let the user override the test.
  2733. else
  2734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2735. for as_dir in $PATH
  2736. do
  2737. IFS=$as_save_IFS
  2738. test -z "$as_dir" && as_dir=.
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2741. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2743. break 2
  2744. fi
  2745. done
  2746. done
  2747. IFS=$as_save_IFS
  2748. fi
  2749. fi
  2750. CC=$ac_cv_prog_CC
  2751. if test -n "$CC"; then
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2753. $as_echo "$CC" >&6; }
  2754. else
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2756. $as_echo "no" >&6; }
  2757. fi
  2758. test -n "$CC" && break
  2759. done
  2760. fi
  2761. if test -z "$CC"; then
  2762. ac_ct_CC=$CC
  2763. for ac_prog in cl.exe
  2764. do
  2765. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2766. set dummy $ac_prog; ac_word=$2
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2768. $as_echo_n "checking for $ac_word... " >&6; }
  2769. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2770. $as_echo_n "(cached) " >&6
  2771. else
  2772. if test -n "$ac_ct_CC"; then
  2773. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2774. else
  2775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2776. for as_dir in $PATH
  2777. do
  2778. IFS=$as_save_IFS
  2779. test -z "$as_dir" && as_dir=.
  2780. for ac_exec_ext in '' $ac_executable_extensions; do
  2781. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2782. ac_cv_prog_ac_ct_CC="$ac_prog"
  2783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2784. break 2
  2785. fi
  2786. done
  2787. done
  2788. IFS=$as_save_IFS
  2789. fi
  2790. fi
  2791. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2792. if test -n "$ac_ct_CC"; then
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2794. $as_echo "$ac_ct_CC" >&6; }
  2795. else
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2797. $as_echo "no" >&6; }
  2798. fi
  2799. test -n "$ac_ct_CC" && break
  2800. done
  2801. if test "x$ac_ct_CC" = x; then
  2802. CC=""
  2803. else
  2804. case $cross_compiling:$ac_tool_warned in
  2805. yes:)
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2807. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2808. ac_tool_warned=yes ;;
  2809. esac
  2810. CC=$ac_ct_CC
  2811. fi
  2812. fi
  2813. fi
  2814. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2815. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2816. as_fn_error "no acceptable C compiler found in \$PATH
  2817. See \`config.log' for more details." "$LINENO" 5; }
  2818. # Provide some information about the compiler.
  2819. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2820. set X $ac_compile
  2821. ac_compiler=$2
  2822. for ac_option in --version -v -V -qversion; do
  2823. { { ac_try="$ac_compiler $ac_option >&5"
  2824. case "(($ac_try" in
  2825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2826. *) ac_try_echo=$ac_try;;
  2827. esac
  2828. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2829. $as_echo "$ac_try_echo"; } >&5
  2830. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2831. ac_status=$?
  2832. if test -s conftest.err; then
  2833. sed '10a\
  2834. ... rest of stderr output deleted ...
  2835. 10q' conftest.err >conftest.er1
  2836. cat conftest.er1 >&5
  2837. rm -f conftest.er1 conftest.err
  2838. fi
  2839. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2840. test $ac_status = 0; }
  2841. done
  2842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2843. /* end confdefs.h. */
  2844. int
  2845. main ()
  2846. {
  2847. ;
  2848. return 0;
  2849. }
  2850. _ACEOF
  2851. # FIXME: Cleanup?
  2852. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  2853. (eval $ac_link) 2>&5
  2854. ac_status=$?
  2855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2856. test $ac_status = 0; }; then :
  2857. gcc_no_link=no
  2858. else
  2859. gcc_no_link=yes
  2860. fi
  2861. if test x$gcc_no_link = xyes; then
  2862. # Setting cross_compile will disable run tests; it will
  2863. # also disable AC_CHECK_FILE but that's generally
  2864. # correct if we can't link.
  2865. cross_compiling=yes
  2866. EXEEXT=
  2867. else
  2868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2869. /* end confdefs.h. */
  2870. int
  2871. main ()
  2872. {
  2873. ;
  2874. return 0;
  2875. }
  2876. _ACEOF
  2877. ac_clean_files_save=$ac_clean_files
  2878. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2879. # Try to create an executable without -o first, disregard a.out.
  2880. # It will help us diagnose broken compilers, and finding out an intuition
  2881. # of exeext.
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2883. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2884. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2885. # The possible output files:
  2886. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2887. ac_rmfiles=
  2888. for ac_file in $ac_files
  2889. do
  2890. case $ac_file in
  2891. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2892. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2893. esac
  2894. done
  2895. rm -f $ac_rmfiles
  2896. if { { ac_try="$ac_link_default"
  2897. case "(($ac_try" in
  2898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2899. *) ac_try_echo=$ac_try;;
  2900. esac
  2901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2902. $as_echo "$ac_try_echo"; } >&5
  2903. (eval "$ac_link_default") 2>&5
  2904. ac_status=$?
  2905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2906. test $ac_status = 0; }; then :
  2907. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2908. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2909. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2910. # so that the user can short-circuit this test for compilers unknown to
  2911. # Autoconf.
  2912. for ac_file in $ac_files ''
  2913. do
  2914. test -f "$ac_file" || continue
  2915. case $ac_file in
  2916. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2917. ;;
  2918. [ab].out )
  2919. # We found the default executable, but exeext='' is most
  2920. # certainly right.
  2921. break;;
  2922. *.* )
  2923. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2924. then :; else
  2925. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2926. fi
  2927. # We set ac_cv_exeext here because the later test for it is not
  2928. # safe: cross compilers may not add the suffix if given an `-o'
  2929. # argument, so we may need to know it at that point already.
  2930. # Even if this section looks crufty: it has the advantage of
  2931. # actually working.
  2932. break;;
  2933. * )
  2934. break;;
  2935. esac
  2936. done
  2937. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2938. else
  2939. ac_file=''
  2940. fi
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2942. $as_echo "$ac_file" >&6; }
  2943. if test -z "$ac_file"; then :
  2944. $as_echo "$as_me: failed program was:" >&5
  2945. sed 's/^/| /' conftest.$ac_ext >&5
  2946. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2947. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2948. { as_fn_set_status 77
  2949. as_fn_error "C compiler cannot create executables
  2950. See \`config.log' for more details." "$LINENO" 5; }; }
  2951. fi
  2952. ac_exeext=$ac_cv_exeext
  2953. # Check that the compiler produces executables we can run. If not, either
  2954. # the compiler is broken, or we cross compile.
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2956. $as_echo_n "checking whether the C compiler works... " >&6; }
  2957. # If not cross compiling, check that we can run a simple program.
  2958. if test "$cross_compiling" != yes; then
  2959. if { ac_try='./$ac_file'
  2960. { { case "(($ac_try" in
  2961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2962. *) ac_try_echo=$ac_try;;
  2963. esac
  2964. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2965. $as_echo "$ac_try_echo"; } >&5
  2966. (eval "$ac_try") 2>&5
  2967. ac_status=$?
  2968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2969. test $ac_status = 0; }; }; then
  2970. cross_compiling=no
  2971. else
  2972. if test "$cross_compiling" = maybe; then
  2973. cross_compiling=yes
  2974. else
  2975. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2976. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2977. as_fn_error "cannot run C compiled programs.
  2978. If you meant to cross compile, use \`--host'.
  2979. See \`config.log' for more details." "$LINENO" 5; }
  2980. fi
  2981. fi
  2982. fi
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2984. $as_echo "yes" >&6; }
  2985. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2986. ac_clean_files=$ac_clean_files_save
  2987. # Check that the compiler produces executables we can run. If not, either
  2988. # the compiler is broken, or we cross compile.
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2990. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2992. $as_echo "$cross_compiling" >&6; }
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2994. $as_echo_n "checking for suffix of executables... " >&6; }
  2995. if { { ac_try="$ac_link"
  2996. case "(($ac_try" in
  2997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2998. *) ac_try_echo=$ac_try;;
  2999. esac
  3000. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3001. $as_echo "$ac_try_echo"; } >&5
  3002. (eval "$ac_link") 2>&5
  3003. ac_status=$?
  3004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3005. test $ac_status = 0; }; then :
  3006. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3007. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3008. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3009. # `rm'.
  3010. for ac_file in conftest.exe conftest conftest.*; do
  3011. test -f "$ac_file" || continue
  3012. case $ac_file in
  3013. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3014. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3015. break;;
  3016. * ) break;;
  3017. esac
  3018. done
  3019. else
  3020. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3021. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3022. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3023. See \`config.log' for more details." "$LINENO" 5; }
  3024. fi
  3025. rm -f conftest$ac_cv_exeext
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3027. $as_echo "$ac_cv_exeext" >&6; }
  3028. rm -f conftest.$ac_ext
  3029. EXEEXT=$ac_cv_exeext
  3030. ac_exeext=$EXEEXT
  3031. fi
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3033. $as_echo_n "checking for suffix of object files... " >&6; }
  3034. if test "${ac_cv_objext+set}" = set; then :
  3035. $as_echo_n "(cached) " >&6
  3036. else
  3037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3038. /* end confdefs.h. */
  3039. int
  3040. main ()
  3041. {
  3042. ;
  3043. return 0;
  3044. }
  3045. _ACEOF
  3046. rm -f conftest.o conftest.obj
  3047. if { { ac_try="$ac_compile"
  3048. case "(($ac_try" in
  3049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3050. *) ac_try_echo=$ac_try;;
  3051. esac
  3052. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3053. $as_echo "$ac_try_echo"; } >&5
  3054. (eval "$ac_compile") 2>&5
  3055. ac_status=$?
  3056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3057. test $ac_status = 0; }; then :
  3058. for ac_file in conftest.o conftest.obj conftest.*; do
  3059. test -f "$ac_file" || continue;
  3060. case $ac_file in
  3061. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3062. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3063. break;;
  3064. esac
  3065. done
  3066. else
  3067. $as_echo "$as_me: failed program was:" >&5
  3068. sed 's/^/| /' conftest.$ac_ext >&5
  3069. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3070. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3071. as_fn_error "cannot compute suffix of object files: cannot compile
  3072. See \`config.log' for more details." "$LINENO" 5; }
  3073. fi
  3074. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3075. fi
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3077. $as_echo "$ac_cv_objext" >&6; }
  3078. OBJEXT=$ac_cv_objext
  3079. ac_objext=$OBJEXT
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3081. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3082. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3083. $as_echo_n "(cached) " >&6
  3084. else
  3085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3086. /* end confdefs.h. */
  3087. int
  3088. main ()
  3089. {
  3090. #ifndef __GNUC__
  3091. choke me
  3092. #endif
  3093. ;
  3094. return 0;
  3095. }
  3096. _ACEOF
  3097. if ac_fn_c_try_compile "$LINENO"; then :
  3098. ac_compiler_gnu=yes
  3099. else
  3100. ac_compiler_gnu=no
  3101. fi
  3102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3103. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3104. fi
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3106. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3107. if test $ac_compiler_gnu = yes; then
  3108. GCC=yes
  3109. else
  3110. GCC=
  3111. fi
  3112. ac_test_CFLAGS=${CFLAGS+set}
  3113. ac_save_CFLAGS=$CFLAGS
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3115. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3116. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3117. $as_echo_n "(cached) " >&6
  3118. else
  3119. ac_save_c_werror_flag=$ac_c_werror_flag
  3120. ac_c_werror_flag=yes
  3121. ac_cv_prog_cc_g=no
  3122. CFLAGS="-g"
  3123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3124. /* end confdefs.h. */
  3125. int
  3126. main ()
  3127. {
  3128. ;
  3129. return 0;
  3130. }
  3131. _ACEOF
  3132. if ac_fn_c_try_compile "$LINENO"; then :
  3133. ac_cv_prog_cc_g=yes
  3134. else
  3135. CFLAGS=""
  3136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3137. /* end confdefs.h. */
  3138. int
  3139. main ()
  3140. {
  3141. ;
  3142. return 0;
  3143. }
  3144. _ACEOF
  3145. if ac_fn_c_try_compile "$LINENO"; then :
  3146. else
  3147. ac_c_werror_flag=$ac_save_c_werror_flag
  3148. CFLAGS="-g"
  3149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end confdefs.h. */
  3151. int
  3152. main ()
  3153. {
  3154. ;
  3155. return 0;
  3156. }
  3157. _ACEOF
  3158. if ac_fn_c_try_compile "$LINENO"; then :
  3159. ac_cv_prog_cc_g=yes
  3160. fi
  3161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3162. fi
  3163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3164. fi
  3165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3166. ac_c_werror_flag=$ac_save_c_werror_flag
  3167. fi
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3169. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3170. if test "$ac_test_CFLAGS" = set; then
  3171. CFLAGS=$ac_save_CFLAGS
  3172. elif test $ac_cv_prog_cc_g = yes; then
  3173. if test "$GCC" = yes; then
  3174. CFLAGS="-g -O2"
  3175. else
  3176. CFLAGS="-g"
  3177. fi
  3178. else
  3179. if test "$GCC" = yes; then
  3180. CFLAGS="-O2"
  3181. else
  3182. CFLAGS=
  3183. fi
  3184. fi
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3186. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3187. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3188. $as_echo_n "(cached) " >&6
  3189. else
  3190. ac_cv_prog_cc_c89=no
  3191. ac_save_CC=$CC
  3192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3193. /* end confdefs.h. */
  3194. #include <stdarg.h>
  3195. #include <stdio.h>
  3196. #include <sys/types.h>
  3197. #include <sys/stat.h>
  3198. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3199. struct buf { int x; };
  3200. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3201. static char *e (p, i)
  3202. char **p;
  3203. int i;
  3204. {
  3205. return p[i];
  3206. }
  3207. static char *f (char * (*g) (char **, int), char **p, ...)
  3208. {
  3209. char *s;
  3210. va_list v;
  3211. va_start (v,p);
  3212. s = g (p, va_arg (v,int));
  3213. va_end (v);
  3214. return s;
  3215. }
  3216. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3217. function prototypes and stuff, but not '\xHH' hex character constants.
  3218. These don't provoke an error unfortunately, instead are silently treated
  3219. as 'x'. The following induces an error, until -std is added to get
  3220. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3221. array size at least. It's necessary to write '\x00'==0 to get something
  3222. that's true only with -std. */
  3223. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3224. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3225. inside strings and character constants. */
  3226. #define FOO(x) 'x'
  3227. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3228. int test (int i, double x);
  3229. struct s1 {int (*f) (int a);};
  3230. struct s2 {int (*f) (double a);};
  3231. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3232. int argc;
  3233. char **argv;
  3234. int
  3235. main ()
  3236. {
  3237. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3238. ;
  3239. return 0;
  3240. }
  3241. _ACEOF
  3242. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3243. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3244. do
  3245. CC="$ac_save_CC $ac_arg"
  3246. if ac_fn_c_try_compile "$LINENO"; then :
  3247. ac_cv_prog_cc_c89=$ac_arg
  3248. fi
  3249. rm -f core conftest.err conftest.$ac_objext
  3250. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3251. done
  3252. rm -f conftest.$ac_ext
  3253. CC=$ac_save_CC
  3254. fi
  3255. # AC_CACHE_VAL
  3256. case "x$ac_cv_prog_cc_c89" in
  3257. x)
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3259. $as_echo "none needed" >&6; } ;;
  3260. xno)
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3262. $as_echo "unsupported" >&6; } ;;
  3263. *)
  3264. CC="$CC $ac_cv_prog_cc_c89"
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3266. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3267. esac
  3268. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3269. fi
  3270. ac_ext=c
  3271. ac_cpp='$CPP $CPPFLAGS'
  3272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3275. # Check whether --enable-largefile was given.
  3276. if test "${enable_largefile+set}" = set; then :
  3277. enableval=$enable_largefile;
  3278. fi
  3279. if test "$enable_largefile" != no; then
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3281. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  3282. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  3283. $as_echo_n "(cached) " >&6
  3284. else
  3285. ac_cv_sys_largefile_CC=no
  3286. if test "$GCC" != yes; then
  3287. ac_save_CC=$CC
  3288. while :; do
  3289. # IRIX 6.2 and later do not support large files by default,
  3290. # so use the C compiler's -n32 option if that helps.
  3291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3292. /* end confdefs.h. */
  3293. #include <sys/types.h>
  3294. /* Check that off_t can represent 2**63 - 1 correctly.
  3295. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3296. since some C++ compilers masquerading as C compilers
  3297. incorrectly reject 9223372036854775807. */
  3298. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3299. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3300. && LARGE_OFF_T % 2147483647 == 1)
  3301. ? 1 : -1];
  3302. int
  3303. main ()
  3304. {
  3305. ;
  3306. return 0;
  3307. }
  3308. _ACEOF
  3309. if ac_fn_c_try_compile "$LINENO"; then :
  3310. break
  3311. fi
  3312. rm -f core conftest.err conftest.$ac_objext
  3313. CC="$CC -n32"
  3314. if ac_fn_c_try_compile "$LINENO"; then :
  3315. ac_cv_sys_largefile_CC=' -n32'; break
  3316. fi
  3317. rm -f core conftest.err conftest.$ac_objext
  3318. break
  3319. done
  3320. CC=$ac_save_CC
  3321. rm -f conftest.$ac_ext
  3322. fi
  3323. fi
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  3325. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  3326. if test "$ac_cv_sys_largefile_CC" != no; then
  3327. CC=$CC$ac_cv_sys_largefile_CC
  3328. fi
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3330. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  3331. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  3332. $as_echo_n "(cached) " >&6
  3333. else
  3334. while :; do
  3335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3336. /* end confdefs.h. */
  3337. #include <sys/types.h>
  3338. /* Check that off_t can represent 2**63 - 1 correctly.
  3339. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3340. since some C++ compilers masquerading as C compilers
  3341. incorrectly reject 9223372036854775807. */
  3342. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3343. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3344. && LARGE_OFF_T % 2147483647 == 1)
  3345. ? 1 : -1];
  3346. int
  3347. main ()
  3348. {
  3349. ;
  3350. return 0;
  3351. }
  3352. _ACEOF
  3353. if ac_fn_c_try_compile "$LINENO"; then :
  3354. ac_cv_sys_file_offset_bits=no; break
  3355. fi
  3356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3358. /* end confdefs.h. */
  3359. #define _FILE_OFFSET_BITS 64
  3360. #include <sys/types.h>
  3361. /* Check that off_t can represent 2**63 - 1 correctly.
  3362. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3363. since some C++ compilers masquerading as C compilers
  3364. incorrectly reject 9223372036854775807. */
  3365. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3366. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3367. && LARGE_OFF_T % 2147483647 == 1)
  3368. ? 1 : -1];
  3369. int
  3370. main ()
  3371. {
  3372. ;
  3373. return 0;
  3374. }
  3375. _ACEOF
  3376. if ac_fn_c_try_compile "$LINENO"; then :
  3377. ac_cv_sys_file_offset_bits=64; break
  3378. fi
  3379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3380. ac_cv_sys_file_offset_bits=unknown
  3381. break
  3382. done
  3383. fi
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  3385. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  3386. case $ac_cv_sys_file_offset_bits in #(
  3387. no | unknown) ;;
  3388. *)
  3389. cat >>confdefs.h <<_ACEOF
  3390. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3391. _ACEOF
  3392. ;;
  3393. esac
  3394. rm -rf conftest*
  3395. if test $ac_cv_sys_file_offset_bits = unknown; then
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  3397. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  3398. if test "${ac_cv_sys_large_files+set}" = set; then :
  3399. $as_echo_n "(cached) " >&6
  3400. else
  3401. while :; do
  3402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3403. /* end confdefs.h. */
  3404. #include <sys/types.h>
  3405. /* Check that off_t can represent 2**63 - 1 correctly.
  3406. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3407. since some C++ compilers masquerading as C compilers
  3408. incorrectly reject 9223372036854775807. */
  3409. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3410. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3411. && LARGE_OFF_T % 2147483647 == 1)
  3412. ? 1 : -1];
  3413. int
  3414. main ()
  3415. {
  3416. ;
  3417. return 0;
  3418. }
  3419. _ACEOF
  3420. if ac_fn_c_try_compile "$LINENO"; then :
  3421. ac_cv_sys_large_files=no; break
  3422. fi
  3423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3425. /* end confdefs.h. */
  3426. #define _LARGE_FILES 1
  3427. #include <sys/types.h>
  3428. /* Check that off_t can represent 2**63 - 1 correctly.
  3429. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3430. since some C++ compilers masquerading as C compilers
  3431. incorrectly reject 9223372036854775807. */
  3432. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3433. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3434. && LARGE_OFF_T % 2147483647 == 1)
  3435. ? 1 : -1];
  3436. int
  3437. main ()
  3438. {
  3439. ;
  3440. return 0;
  3441. }
  3442. _ACEOF
  3443. if ac_fn_c_try_compile "$LINENO"; then :
  3444. ac_cv_sys_large_files=1; break
  3445. fi
  3446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3447. ac_cv_sys_large_files=unknown
  3448. break
  3449. done
  3450. fi
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  3452. $as_echo "$ac_cv_sys_large_files" >&6; }
  3453. case $ac_cv_sys_large_files in #(
  3454. no | unknown) ;;
  3455. *)
  3456. cat >>confdefs.h <<_ACEOF
  3457. #define _LARGE_FILES $ac_cv_sys_large_files
  3458. _ACEOF
  3459. ;;
  3460. esac
  3461. rm -rf conftest*
  3462. fi
  3463. fi
  3464. ac_ext=c
  3465. ac_cpp='$CPP $CPPFLAGS'
  3466. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3467. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3468. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3470. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3471. # On Suns, sometimes $CPP names a directory.
  3472. if test -n "$CPP" && test -d "$CPP"; then
  3473. CPP=
  3474. fi
  3475. if test -z "$CPP"; then
  3476. if test "${ac_cv_prog_CPP+set}" = set; then :
  3477. $as_echo_n "(cached) " >&6
  3478. else
  3479. # Double quotes because CPP needs to be expanded
  3480. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3481. do
  3482. ac_preproc_ok=false
  3483. for ac_c_preproc_warn_flag in '' yes
  3484. do
  3485. # Use a header file that comes with gcc, so configuring glibc
  3486. # with a fresh cross-compiler works.
  3487. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3488. # <limits.h> exists even on freestanding compilers.
  3489. # On the NeXT, cc -E runs the code through the compiler's parser,
  3490. # not just through cpp. "Syntax error" is here to catch this case.
  3491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3492. /* end confdefs.h. */
  3493. #ifdef __STDC__
  3494. # include <limits.h>
  3495. #else
  3496. # include <assert.h>
  3497. #endif
  3498. Syntax error
  3499. _ACEOF
  3500. if ac_fn_c_try_cpp "$LINENO"; then :
  3501. else
  3502. # Broken: fails on valid input.
  3503. continue
  3504. fi
  3505. rm -f conftest.err conftest.$ac_ext
  3506. # OK, works on sane cases. Now check whether nonexistent headers
  3507. # can be detected and how.
  3508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3509. /* end confdefs.h. */
  3510. #include <ac_nonexistent.h>
  3511. _ACEOF
  3512. if ac_fn_c_try_cpp "$LINENO"; then :
  3513. # Broken: success on invalid input.
  3514. continue
  3515. else
  3516. # Passes both tests.
  3517. ac_preproc_ok=:
  3518. break
  3519. fi
  3520. rm -f conftest.err conftest.$ac_ext
  3521. done
  3522. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3523. rm -f conftest.err conftest.$ac_ext
  3524. if $ac_preproc_ok; then :
  3525. break
  3526. fi
  3527. done
  3528. ac_cv_prog_CPP=$CPP
  3529. fi
  3530. CPP=$ac_cv_prog_CPP
  3531. else
  3532. ac_cv_prog_CPP=$CPP
  3533. fi
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3535. $as_echo "$CPP" >&6; }
  3536. ac_preproc_ok=false
  3537. for ac_c_preproc_warn_flag in '' yes
  3538. do
  3539. # Use a header file that comes with gcc, so configuring glibc
  3540. # with a fresh cross-compiler works.
  3541. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3542. # <limits.h> exists even on freestanding compilers.
  3543. # On the NeXT, cc -E runs the code through the compiler's parser,
  3544. # not just through cpp. "Syntax error" is here to catch this case.
  3545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3546. /* end confdefs.h. */
  3547. #ifdef __STDC__
  3548. # include <limits.h>
  3549. #else
  3550. # include <assert.h>
  3551. #endif
  3552. Syntax error
  3553. _ACEOF
  3554. if ac_fn_c_try_cpp "$LINENO"; then :
  3555. else
  3556. # Broken: fails on valid input.
  3557. continue
  3558. fi
  3559. rm -f conftest.err conftest.$ac_ext
  3560. # OK, works on sane cases. Now check whether nonexistent headers
  3561. # can be detected and how.
  3562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3563. /* end confdefs.h. */
  3564. #include <ac_nonexistent.h>
  3565. _ACEOF
  3566. if ac_fn_c_try_cpp "$LINENO"; then :
  3567. # Broken: success on invalid input.
  3568. continue
  3569. else
  3570. # Passes both tests.
  3571. ac_preproc_ok=:
  3572. break
  3573. fi
  3574. rm -f conftest.err conftest.$ac_ext
  3575. done
  3576. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3577. rm -f conftest.err conftest.$ac_ext
  3578. if $ac_preproc_ok; then :
  3579. else
  3580. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3581. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3582. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3583. See \`config.log' for more details." "$LINENO" 5; }
  3584. fi
  3585. ac_ext=c
  3586. ac_cpp='$CPP $CPPFLAGS'
  3587. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3588. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3589. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3590. ac_c_preproc_warn_flag=yes
  3591. ac_libiberty_warn_cflags=
  3592. save_CFLAGS="$CFLAGS"
  3593. for real_option in -W -Wall -Wwrite-strings -Wc++-compat \
  3594. -Wstrict-prototypes; do
  3595. # Do the check with the no- prefix removed since gcc silently
  3596. # accepts any -Wno-* option on purpose
  3597. case $real_option in
  3598. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  3599. *) option=$real_option ;;
  3600. esac
  3601. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  3603. $as_echo_n "checking whether $CC supports $option... " >&6; }
  3604. if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  3605. $as_echo_n "(cached) " >&6
  3606. else
  3607. CFLAGS="$option"
  3608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3609. /* end confdefs.h. */
  3610. int
  3611. main ()
  3612. {
  3613. ;
  3614. return 0;
  3615. }
  3616. _ACEOF
  3617. if ac_fn_c_try_compile "$LINENO"; then :
  3618. eval "$as_acx_Woption=yes"
  3619. else
  3620. eval "$as_acx_Woption=no"
  3621. fi
  3622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3623. fi
  3624. eval ac_res=\$$as_acx_Woption
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3626. $as_echo "$ac_res" >&6; }
  3627. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  3628. ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$real_option"
  3629. fi
  3630. done
  3631. CFLAGS="$save_CFLAGS"
  3632. # Do the check with the no- prefix removed from the warning options
  3633. # since gcc silently accepts any -Wno-* option on purpose
  3634. if test "$GCC" = yes; then :
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5
  3636. $as_echo_n "checking whether $CC supports -pedantic ... " >&6; }
  3637. if test "${acx_cv_prog_cc_pedantic_+set}" = set; then :
  3638. $as_echo_n "(cached) " >&6
  3639. else
  3640. save_CFLAGS="$CFLAGS"
  3641. CFLAGS="-pedantic "
  3642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3643. /* end confdefs.h. */
  3644. int
  3645. main ()
  3646. {
  3647. ;
  3648. return 0;
  3649. }
  3650. _ACEOF
  3651. if ac_fn_c_try_compile "$LINENO"; then :
  3652. acx_cv_prog_cc_pedantic_=yes
  3653. else
  3654. acx_cv_prog_cc_pedantic_=no
  3655. fi
  3656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3657. CFLAGS="$save_CFLAGS"
  3658. fi
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic_" >&5
  3660. $as_echo "$acx_cv_prog_cc_pedantic_" >&6; }
  3661. if test $acx_cv_prog_cc_pedantic_ = yes; then :
  3662. ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
  3663. fi
  3664. fi
  3665. if test "x$CC" != xcc; then
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3667. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3668. else
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3670. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3671. fi
  3672. set dummy $CC; ac_cc=`$as_echo "$2" |
  3673. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3674. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  3675. $as_echo_n "(cached) " >&6
  3676. else
  3677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3678. /* end confdefs.h. */
  3679. int
  3680. main ()
  3681. {
  3682. ;
  3683. return 0;
  3684. }
  3685. _ACEOF
  3686. # Make sure it works both with $CC and with simple cc.
  3687. # We do the test twice because some compilers refuse to overwrite an
  3688. # existing .o file with -o, though they will create one.
  3689. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3690. rm -f conftest2.*
  3691. if { { case "(($ac_try" in
  3692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3693. *) ac_try_echo=$ac_try;;
  3694. esac
  3695. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3696. $as_echo "$ac_try_echo"; } >&5
  3697. (eval "$ac_try") 2>&5
  3698. ac_status=$?
  3699. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3700. test $ac_status = 0; } &&
  3701. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3703. *) ac_try_echo=$ac_try;;
  3704. esac
  3705. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3706. $as_echo "$ac_try_echo"; } >&5
  3707. (eval "$ac_try") 2>&5
  3708. ac_status=$?
  3709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3710. test $ac_status = 0; };
  3711. then
  3712. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3713. if test "x$CC" != xcc; then
  3714. # Test first that cc exists at all.
  3715. if { ac_try='cc -c conftest.$ac_ext >&5'
  3716. { { case "(($ac_try" in
  3717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3718. *) ac_try_echo=$ac_try;;
  3719. esac
  3720. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3721. $as_echo "$ac_try_echo"; } >&5
  3722. (eval "$ac_try") 2>&5
  3723. ac_status=$?
  3724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3725. test $ac_status = 0; }; }; then
  3726. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3727. rm -f conftest2.*
  3728. if { { case "(($ac_try" in
  3729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3730. *) ac_try_echo=$ac_try;;
  3731. esac
  3732. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3733. $as_echo "$ac_try_echo"; } >&5
  3734. (eval "$ac_try") 2>&5
  3735. ac_status=$?
  3736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3737. test $ac_status = 0; } &&
  3738. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3740. *) ac_try_echo=$ac_try;;
  3741. esac
  3742. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3743. $as_echo "$ac_try_echo"; } >&5
  3744. (eval "$ac_try") 2>&5
  3745. ac_status=$?
  3746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3747. test $ac_status = 0; };
  3748. then
  3749. # cc works too.
  3750. :
  3751. else
  3752. # cc exists but doesn't like -o.
  3753. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3754. fi
  3755. fi
  3756. fi
  3757. else
  3758. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3759. fi
  3760. rm -f core conftest*
  3761. fi
  3762. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3764. $as_echo "yes" >&6; }
  3765. else
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3767. $as_echo "no" >&6; }
  3768. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  3769. fi
  3770. # autoconf is lame and doesn't give us any substitution variable for this.
  3771. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
  3772. NO_MINUS_C_MINUS_O=yes
  3773. else
  3774. OUTPUT_OPTION='-o $@'
  3775. fi
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3777. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3778. if test "${ac_cv_c_const+set}" = set; then :
  3779. $as_echo_n "(cached) " >&6
  3780. else
  3781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3782. /* end confdefs.h. */
  3783. int
  3784. main ()
  3785. {
  3786. /* FIXME: Include the comments suggested by Paul. */
  3787. #ifndef __cplusplus
  3788. /* Ultrix mips cc rejects this. */
  3789. typedef int charset[2];
  3790. const charset cs;
  3791. /* SunOS 4.1.1 cc rejects this. */
  3792. char const *const *pcpcc;
  3793. char **ppc;
  3794. /* NEC SVR4.0.2 mips cc rejects this. */
  3795. struct point {int x, y;};
  3796. static struct point const zero = {0,0};
  3797. /* AIX XL C 1.02.0.0 rejects this.
  3798. It does not let you subtract one const X* pointer from another in
  3799. an arm of an if-expression whose if-part is not a constant
  3800. expression */
  3801. const char *g = "string";
  3802. pcpcc = &g + (g ? g-g : 0);
  3803. /* HPUX 7.0 cc rejects these. */
  3804. ++pcpcc;
  3805. ppc = (char**) pcpcc;
  3806. pcpcc = (char const *const *) ppc;
  3807. { /* SCO 3.2v4 cc rejects this. */
  3808. char *t;
  3809. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3810. *t++ = 0;
  3811. if (s) return 0;
  3812. }
  3813. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3814. int x[] = {25, 17};
  3815. const int *foo = &x[0];
  3816. ++foo;
  3817. }
  3818. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3819. typedef const int *iptr;
  3820. iptr p = 0;
  3821. ++p;
  3822. }
  3823. { /* AIX XL C 1.02.0.0 rejects this saying
  3824. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3825. struct s { int j; const int *ap[3]; };
  3826. struct s *b; b->j = 5;
  3827. }
  3828. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3829. const int foo = 10;
  3830. if (!foo) return 0;
  3831. }
  3832. return !cs[0] && !zero.x;
  3833. #endif
  3834. ;
  3835. return 0;
  3836. }
  3837. _ACEOF
  3838. if ac_fn_c_try_compile "$LINENO"; then :
  3839. ac_cv_c_const=yes
  3840. else
  3841. ac_cv_c_const=no
  3842. fi
  3843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3844. fi
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3846. $as_echo "$ac_cv_c_const" >&6; }
  3847. if test $ac_cv_c_const = no; then
  3848. $as_echo "#define const /**/" >>confdefs.h
  3849. fi
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3851. $as_echo_n "checking for inline... " >&6; }
  3852. if test "${ac_cv_c_inline+set}" = set; then :
  3853. $as_echo_n "(cached) " >&6
  3854. else
  3855. ac_cv_c_inline=no
  3856. for ac_kw in inline __inline__ __inline; do
  3857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3858. /* end confdefs.h. */
  3859. #ifndef __cplusplus
  3860. typedef int foo_t;
  3861. static $ac_kw foo_t static_foo () {return 0; }
  3862. $ac_kw foo_t foo () {return 0; }
  3863. #endif
  3864. _ACEOF
  3865. if ac_fn_c_try_compile "$LINENO"; then :
  3866. ac_cv_c_inline=$ac_kw
  3867. fi
  3868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3869. test "$ac_cv_c_inline" != no && break
  3870. done
  3871. fi
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  3873. $as_echo "$ac_cv_c_inline" >&6; }
  3874. case $ac_cv_c_inline in
  3875. inline | yes) ;;
  3876. *)
  3877. case $ac_cv_c_inline in
  3878. no) ac_val=;;
  3879. *) ac_val=$ac_cv_c_inline;;
  3880. esac
  3881. cat >>confdefs.h <<_ACEOF
  3882. #ifndef __cplusplus
  3883. #define inline $ac_val
  3884. #endif
  3885. _ACEOF
  3886. ;;
  3887. esac
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3889. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3890. if test "${ac_cv_path_GREP+set}" = set; then :
  3891. $as_echo_n "(cached) " >&6
  3892. else
  3893. if test -z "$GREP"; then
  3894. ac_path_GREP_found=false
  3895. # Loop through the user's path and test for each of PROGNAME-LIST
  3896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3897. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3898. do
  3899. IFS=$as_save_IFS
  3900. test -z "$as_dir" && as_dir=.
  3901. for ac_prog in grep ggrep; do
  3902. for ac_exec_ext in '' $ac_executable_extensions; do
  3903. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3904. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3905. # Check for GNU ac_path_GREP and select it if it is found.
  3906. # Check for GNU $ac_path_GREP
  3907. case `"$ac_path_GREP" --version 2>&1` in
  3908. *GNU*)
  3909. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3910. *)
  3911. ac_count=0
  3912. $as_echo_n 0123456789 >"conftest.in"
  3913. while :
  3914. do
  3915. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3916. mv "conftest.tmp" "conftest.in"
  3917. cp "conftest.in" "conftest.nl"
  3918. $as_echo 'GREP' >> "conftest.nl"
  3919. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3920. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3921. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3922. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3923. # Best one so far, save it but keep looking for a better one
  3924. ac_cv_path_GREP="$ac_path_GREP"
  3925. ac_path_GREP_max=$ac_count
  3926. fi
  3927. # 10*(2^10) chars as input seems more than enough
  3928. test $ac_count -gt 10 && break
  3929. done
  3930. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3931. esac
  3932. $ac_path_GREP_found && break 3
  3933. done
  3934. done
  3935. done
  3936. IFS=$as_save_IFS
  3937. if test -z "$ac_cv_path_GREP"; then
  3938. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3939. fi
  3940. else
  3941. ac_cv_path_GREP=$GREP
  3942. fi
  3943. fi
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3945. $as_echo "$ac_cv_path_GREP" >&6; }
  3946. GREP="$ac_cv_path_GREP"
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3948. $as_echo_n "checking for egrep... " >&6; }
  3949. if test "${ac_cv_path_EGREP+set}" = set; then :
  3950. $as_echo_n "(cached) " >&6
  3951. else
  3952. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3953. then ac_cv_path_EGREP="$GREP -E"
  3954. else
  3955. if test -z "$EGREP"; then
  3956. ac_path_EGREP_found=false
  3957. # Loop through the user's path and test for each of PROGNAME-LIST
  3958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3959. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3960. do
  3961. IFS=$as_save_IFS
  3962. test -z "$as_dir" && as_dir=.
  3963. for ac_prog in egrep; do
  3964. for ac_exec_ext in '' $ac_executable_extensions; do
  3965. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3966. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3967. # Check for GNU ac_path_EGREP and select it if it is found.
  3968. # Check for GNU $ac_path_EGREP
  3969. case `"$ac_path_EGREP" --version 2>&1` in
  3970. *GNU*)
  3971. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3972. *)
  3973. ac_count=0
  3974. $as_echo_n 0123456789 >"conftest.in"
  3975. while :
  3976. do
  3977. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3978. mv "conftest.tmp" "conftest.in"
  3979. cp "conftest.in" "conftest.nl"
  3980. $as_echo 'EGREP' >> "conftest.nl"
  3981. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3982. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3983. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3984. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3985. # Best one so far, save it but keep looking for a better one
  3986. ac_cv_path_EGREP="$ac_path_EGREP"
  3987. ac_path_EGREP_max=$ac_count
  3988. fi
  3989. # 10*(2^10) chars as input seems more than enough
  3990. test $ac_count -gt 10 && break
  3991. done
  3992. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3993. esac
  3994. $ac_path_EGREP_found && break 3
  3995. done
  3996. done
  3997. done
  3998. IFS=$as_save_IFS
  3999. if test -z "$ac_cv_path_EGREP"; then
  4000. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4001. fi
  4002. else
  4003. ac_cv_path_EGREP=$EGREP
  4004. fi
  4005. fi
  4006. fi
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4008. $as_echo "$ac_cv_path_EGREP" >&6; }
  4009. EGREP="$ac_cv_path_EGREP"
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4011. $as_echo_n "checking for ANSI C header files... " >&6; }
  4012. if test "${ac_cv_header_stdc+set}" = set; then :
  4013. $as_echo_n "(cached) " >&6
  4014. else
  4015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4016. /* end confdefs.h. */
  4017. #include <stdlib.h>
  4018. #include <stdarg.h>
  4019. #include <string.h>
  4020. #include <float.h>
  4021. int
  4022. main ()
  4023. {
  4024. ;
  4025. return 0;
  4026. }
  4027. _ACEOF
  4028. if ac_fn_c_try_compile "$LINENO"; then :
  4029. ac_cv_header_stdc=yes
  4030. else
  4031. ac_cv_header_stdc=no
  4032. fi
  4033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4034. if test $ac_cv_header_stdc = yes; then
  4035. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4037. /* end confdefs.h. */
  4038. #include <string.h>
  4039. _ACEOF
  4040. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4041. $EGREP "memchr" >/dev/null 2>&1; then :
  4042. else
  4043. ac_cv_header_stdc=no
  4044. fi
  4045. rm -f conftest*
  4046. fi
  4047. if test $ac_cv_header_stdc = yes; then
  4048. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4050. /* end confdefs.h. */
  4051. #include <stdlib.h>
  4052. _ACEOF
  4053. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4054. $EGREP "free" >/dev/null 2>&1; then :
  4055. else
  4056. ac_cv_header_stdc=no
  4057. fi
  4058. rm -f conftest*
  4059. fi
  4060. if test $ac_cv_header_stdc = yes; then
  4061. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4062. if test "$cross_compiling" = yes; then :
  4063. :
  4064. else
  4065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4066. /* end confdefs.h. */
  4067. #include <ctype.h>
  4068. #include <stdlib.h>
  4069. #if ((' ' & 0x0FF) == 0x020)
  4070. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4071. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4072. #else
  4073. # define ISLOWER(c) \
  4074. (('a' <= (c) && (c) <= 'i') \
  4075. || ('j' <= (c) && (c) <= 'r') \
  4076. || ('s' <= (c) && (c) <= 'z'))
  4077. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4078. #endif
  4079. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4080. int
  4081. main ()
  4082. {
  4083. int i;
  4084. for (i = 0; i < 256; i++)
  4085. if (XOR (islower (i), ISLOWER (i))
  4086. || toupper (i) != TOUPPER (i))
  4087. return 2;
  4088. return 0;
  4089. }
  4090. _ACEOF
  4091. if ac_fn_c_try_run "$LINENO"; then :
  4092. else
  4093. ac_cv_header_stdc=no
  4094. fi
  4095. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4096. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4097. fi
  4098. fi
  4099. fi
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4101. $as_echo "$ac_cv_header_stdc" >&6; }
  4102. if test $ac_cv_header_stdc = yes; then
  4103. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4104. fi
  4105. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4106. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4107. inttypes.h stdint.h unistd.h
  4108. do :
  4109. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4110. ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
  4111. eval as_val=\$$as_ac_Header
  4112. if test "x$as_val" = x""yes; then :
  4113. cat >>confdefs.h <<_ACEOF
  4114. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4115. _ACEOF
  4116. fi
  4117. done
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4119. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4120. if test "${ac_cv_c_bigendian+set}" = set; then :
  4121. $as_echo_n "(cached) " >&6
  4122. else
  4123. ac_cv_c_bigendian=unknown
  4124. # See if we're dealing with a universal compiler.
  4125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4126. /* end confdefs.h. */
  4127. #ifndef __APPLE_CC__
  4128. not a universal capable compiler
  4129. #endif
  4130. typedef int dummy;
  4131. _ACEOF
  4132. if ac_fn_c_try_compile "$LINENO"; then :
  4133. # Check for potential -arch flags. It is not universal unless
  4134. # there are at least two -arch flags with different values.
  4135. ac_arch=
  4136. ac_prev=
  4137. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4138. if test -n "$ac_prev"; then
  4139. case $ac_word in
  4140. i?86 | x86_64 | ppc | ppc64)
  4141. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4142. ac_arch=$ac_word
  4143. else
  4144. ac_cv_c_bigendian=universal
  4145. break
  4146. fi
  4147. ;;
  4148. esac
  4149. ac_prev=
  4150. elif test "x$ac_word" = "x-arch"; then
  4151. ac_prev=arch
  4152. fi
  4153. done
  4154. fi
  4155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4156. if test $ac_cv_c_bigendian = unknown; then
  4157. # See if sys/param.h defines the BYTE_ORDER macro.
  4158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4159. /* end confdefs.h. */
  4160. #include <sys/types.h>
  4161. #include <sys/param.h>
  4162. int
  4163. main ()
  4164. {
  4165. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4166. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4167. && LITTLE_ENDIAN)
  4168. bogus endian macros
  4169. #endif
  4170. ;
  4171. return 0;
  4172. }
  4173. _ACEOF
  4174. if ac_fn_c_try_compile "$LINENO"; then :
  4175. # It does; now see whether it defined to BIG_ENDIAN or not.
  4176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4177. /* end confdefs.h. */
  4178. #include <sys/types.h>
  4179. #include <sys/param.h>
  4180. int
  4181. main ()
  4182. {
  4183. #if BYTE_ORDER != BIG_ENDIAN
  4184. not big endian
  4185. #endif
  4186. ;
  4187. return 0;
  4188. }
  4189. _ACEOF
  4190. if ac_fn_c_try_compile "$LINENO"; then :
  4191. ac_cv_c_bigendian=yes
  4192. else
  4193. ac_cv_c_bigendian=no
  4194. fi
  4195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4196. fi
  4197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4198. fi
  4199. if test $ac_cv_c_bigendian = unknown; then
  4200. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4202. /* end confdefs.h. */
  4203. #include <limits.h>
  4204. int
  4205. main ()
  4206. {
  4207. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4208. bogus endian macros
  4209. #endif
  4210. ;
  4211. return 0;
  4212. }
  4213. _ACEOF
  4214. if ac_fn_c_try_compile "$LINENO"; then :
  4215. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4217. /* end confdefs.h. */
  4218. #include <limits.h>
  4219. int
  4220. main ()
  4221. {
  4222. #ifndef _BIG_ENDIAN
  4223. not big endian
  4224. #endif
  4225. ;
  4226. return 0;
  4227. }
  4228. _ACEOF
  4229. if ac_fn_c_try_compile "$LINENO"; then :
  4230. ac_cv_c_bigendian=yes
  4231. else
  4232. ac_cv_c_bigendian=no
  4233. fi
  4234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4235. fi
  4236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4237. fi
  4238. if test $ac_cv_c_bigendian = unknown; then
  4239. # Compile a test program.
  4240. if test "$cross_compiling" = yes; then :
  4241. # Try to guess by grepping values from an object file.
  4242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4243. /* end confdefs.h. */
  4244. short int ascii_mm[] =
  4245. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4246. short int ascii_ii[] =
  4247. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4248. int use_ascii (int i) {
  4249. return ascii_mm[i] + ascii_ii[i];
  4250. }
  4251. short int ebcdic_ii[] =
  4252. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4253. short int ebcdic_mm[] =
  4254. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4255. int use_ebcdic (int i) {
  4256. return ebcdic_mm[i] + ebcdic_ii[i];
  4257. }
  4258. extern int foo;
  4259. int
  4260. main ()
  4261. {
  4262. return use_ascii (foo) == use_ebcdic (foo);
  4263. ;
  4264. return 0;
  4265. }
  4266. _ACEOF
  4267. if ac_fn_c_try_compile "$LINENO"; then :
  4268. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4269. ac_cv_c_bigendian=yes
  4270. fi
  4271. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4272. if test "$ac_cv_c_bigendian" = unknown; then
  4273. ac_cv_c_bigendian=no
  4274. else
  4275. # finding both strings is unlikely to happen, but who knows?
  4276. ac_cv_c_bigendian=unknown
  4277. fi
  4278. fi
  4279. fi
  4280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4281. else
  4282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4283. /* end confdefs.h. */
  4284. $ac_includes_default
  4285. int
  4286. main ()
  4287. {
  4288. /* Are we little or big endian? From Harbison&Steele. */
  4289. union
  4290. {
  4291. long int l;
  4292. char c[sizeof (long int)];
  4293. } u;
  4294. u.l = 1;
  4295. return u.c[sizeof (long int) - 1] == 1;
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_c_try_run "$LINENO"; then :
  4301. ac_cv_c_bigendian=no
  4302. else
  4303. ac_cv_c_bigendian=yes
  4304. fi
  4305. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4306. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4307. fi
  4308. fi
  4309. fi
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4311. $as_echo "$ac_cv_c_bigendian" >&6; }
  4312. case $ac_cv_c_bigendian in #(
  4313. yes)
  4314. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4315. ;; #(
  4316. no)
  4317. ;; #(
  4318. universal)
  4319. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4320. ;; #(
  4321. *)
  4322. as_fn_error "unknown endianness
  4323. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4324. esac
  4325. ac_config_headers="$ac_config_headers config.h:config.in"
  4326. # Find a good install program. We prefer a C program (faster),
  4327. # so one script is as good as another. But avoid the broken or
  4328. # incompatible versions:
  4329. # SysV /etc/install, /usr/sbin/install
  4330. # SunOS /usr/etc/install
  4331. # IRIX /sbin/install
  4332. # AIX /bin/install
  4333. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4334. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4335. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4336. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4337. # OS/2's system install, which has a completely different semantic
  4338. # ./install, which can be erroneously created by make from ./install.sh.
  4339. # Reject install programs that cannot install multiple files.
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4341. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4342. if test -z "$INSTALL"; then
  4343. if test "${ac_cv_path_install+set}" = set; then :
  4344. $as_echo_n "(cached) " >&6
  4345. else
  4346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4347. for as_dir in $PATH
  4348. do
  4349. IFS=$as_save_IFS
  4350. test -z "$as_dir" && as_dir=.
  4351. # Account for people who put trailing slashes in PATH elements.
  4352. case $as_dir/ in #((
  4353. ./ | .// | /[cC]/* | \
  4354. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4355. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4356. /usr/ucb/* ) ;;
  4357. *)
  4358. # OSF1 and SCO ODT 3.0 have their own names for install.
  4359. # Don't use installbsd from OSF since it installs stuff as root
  4360. # by default.
  4361. for ac_prog in ginstall scoinst install; do
  4362. for ac_exec_ext in '' $ac_executable_extensions; do
  4363. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4364. if test $ac_prog = install &&
  4365. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4366. # AIX install. It has an incompatible calling convention.
  4367. :
  4368. elif test $ac_prog = install &&
  4369. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4370. # program-specific install script used by HP pwplus--don't use.
  4371. :
  4372. else
  4373. rm -rf conftest.one conftest.two conftest.dir
  4374. echo one > conftest.one
  4375. echo two > conftest.two
  4376. mkdir conftest.dir
  4377. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4378. test -s conftest.one && test -s conftest.two &&
  4379. test -s conftest.dir/conftest.one &&
  4380. test -s conftest.dir/conftest.two
  4381. then
  4382. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4383. break 3
  4384. fi
  4385. fi
  4386. fi
  4387. done
  4388. done
  4389. ;;
  4390. esac
  4391. done
  4392. IFS=$as_save_IFS
  4393. rm -rf conftest.one conftest.two conftest.dir
  4394. fi
  4395. if test "${ac_cv_path_install+set}" = set; then
  4396. INSTALL=$ac_cv_path_install
  4397. else
  4398. # As a last resort, use the slow shell script. Don't cache a
  4399. # value for INSTALL within a source directory, because that will
  4400. # break other packages using the cache if that directory is
  4401. # removed, or if the value is a relative name.
  4402. INSTALL=$ac_install_sh
  4403. fi
  4404. fi
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4406. $as_echo "$INSTALL" >&6; }
  4407. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4408. # It thinks the first close brace ends the variable substitution.
  4409. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4410. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4411. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4412. # Don't build the shared library for build.
  4413. if [ -n "${with_build_subdir}" ]; then
  4414. enable_shared=no
  4415. fi
  4416. frag=
  4417. case "${host}" in
  4418. rs6000-ibm-aix3.1 | rs6000-ibm-aix)
  4419. frag=mh-aix ;;
  4420. *-*-cxux7*) frag=mh-cxux7 ;;
  4421. *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
  4422. *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
  4423. i370-*-opened*) frag=mh-openedition ;;
  4424. i[34567]86-*-windows*) frag=mh-windows ;;
  4425. esac
  4426. if [ -n "${frag}" ]; then
  4427. frag=${libiberty_topdir}/libiberty/config/$frag
  4428. fi
  4429. case "${host}" in
  4430. # PIC is the default on some targets or must not be used.
  4431. *-*-darwin*)
  4432. # For darwin, common symbols are not allowed in MH_DYLIB files
  4433. case "${CFLAGS}" in
  4434. # If we are using a compiler supporting mdynamic-no-pic
  4435. # and the option has been tested as safe to add, then cancel
  4436. # it here, since the code generated is incompatible with shared
  4437. # libs.
  4438. *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
  4439. *) PICFLAG=-fno-common ;;
  4440. esac
  4441. ;;
  4442. alpha*-dec-osf5*)
  4443. # PIC is the default.
  4444. ;;
  4445. hppa*64*-*-hpux*)
  4446. # PIC is the default for 64-bit PA HP-UX.
  4447. ;;
  4448. i[34567]86-*-cygwin* | x86_64-*-cygwin*)
  4449. ;;
  4450. i[34567]86-*-mingw* | x86_64-*-mingw*)
  4451. ;;
  4452. i[34567]86-*-interix[3-9]*)
  4453. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4454. # Instead, we relocate shared libraries at runtime.
  4455. ;;
  4456. i[34567]86-*-nto-qnx*)
  4457. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4458. # it will coredump.
  4459. PICFLAG='-fPIC -shared'
  4460. ;;
  4461. i[34567]86-pc-msdosdjgpp*)
  4462. # DJGPP does not support shared libraries at all.
  4463. ;;
  4464. ia64*-*-hpux*)
  4465. # On IA64 HP-UX, PIC is the default but the pic flag
  4466. # sets the default TLS model and affects inlining.
  4467. PICFLAG=-fPIC
  4468. ;;
  4469. mips-sgi-irix6*)
  4470. # PIC is the default.
  4471. ;;
  4472. rs6000-ibm-aix* | powerpc-ibm-aix*)
  4473. # All AIX code is PIC.
  4474. ;;
  4475. # Some targets support both -fPIC and -fpic, but prefer the latter.
  4476. # FIXME: Why?
  4477. i[34567]86-*-* | x86_64-*-*)
  4478. PICFLAG=-fpic
  4479. ;;
  4480. # FIXME: Override -fPIC default in libgcc only?
  4481. sh-*-linux* | sh[2346lbe]*-*-linux*)
  4482. PICFLAG=-fpic
  4483. ;;
  4484. # FIXME: Simplify to sh*-*-netbsd*?
  4485. sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
  4486. sh64-*-netbsd* | sh64l*-*-netbsd*)
  4487. PICFLAG=-fpic
  4488. ;;
  4489. # Default to -fPIC unless specified otherwise.
  4490. *)
  4491. PICFLAG=-fPIC
  4492. ;;
  4493. esac
  4494. # If the user explicitly uses -fpic/-fPIC, keep that.
  4495. case "${CFLAGS}" in
  4496. *-fpic*)
  4497. PICFLAG=-fpic
  4498. ;;
  4499. *-fPIC*)
  4500. PICFLAG=-fPIC
  4501. ;;
  4502. esac
  4503. # If they didn't specify --enable-shared, don't generate shared libs.
  4504. case "${enable_shared}" in
  4505. yes) shared=yes ;;
  4506. no) shared=no ;;
  4507. "") shared=no ;;
  4508. *) shared=yes ;;
  4509. esac
  4510. # ...unless --enable-host-shared was passed from top-level config:
  4511. if [ "${enable_host_shared}" = "yes" ]; then
  4512. shared=yes
  4513. fi
  4514. if [ "${shared}" != "yes" ]; then
  4515. PICFLAG=
  4516. fi
  4517. NOASANFLAG=
  4518. case " ${CFLAGS} " in
  4519. *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;;
  4520. esac
  4521. echo "# Warning: this fragment is automatically generated" > temp-frag
  4522. if [ -n "${frag}" ] && [ -f "${frag}" ]; then
  4523. echo "Appending ${frag} to xhost-mkfrag"
  4524. echo "# Following fragment copied from ${frag}" >> temp-frag
  4525. cat ${frag} >> temp-frag
  4526. fi
  4527. # record if we want to build shared libs.
  4528. if [ "${shared}" = "yes" ]; then
  4529. echo enable_shared = yes >> temp-frag
  4530. else
  4531. echo enable_shared = no >> temp-frag
  4532. fi
  4533. frag=xhost-mkfrag
  4534. ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
  4535. host_makefile_frag=${frag}
  4536. # It's OK to check for header files. Although the compiler may not be
  4537. # able to link anything, it had better be able to at least compile
  4538. # something.
  4539. for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h
  4540. do :
  4541. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4542. ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
  4543. eval as_val=\$$as_ac_Header
  4544. if test "x$as_val" = x""yes; then :
  4545. cat >>confdefs.h <<_ACEOF
  4546. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4547. _ACEOF
  4548. fi
  4549. done
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4551. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4552. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4556. /* end confdefs.h. */
  4557. #include <sys/types.h>
  4558. #include <sys/wait.h>
  4559. #ifndef WEXITSTATUS
  4560. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4561. #endif
  4562. #ifndef WIFEXITED
  4563. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4564. #endif
  4565. int
  4566. main ()
  4567. {
  4568. int s;
  4569. wait (&s);
  4570. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4571. ;
  4572. return 0;
  4573. }
  4574. _ACEOF
  4575. if ac_fn_c_try_compile "$LINENO"; then :
  4576. ac_cv_header_sys_wait_h=yes
  4577. else
  4578. ac_cv_header_sys_wait_h=no
  4579. fi
  4580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4581. fi
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4583. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4584. if test $ac_cv_header_sys_wait_h = yes; then
  4585. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  4586. fi
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4588. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4589. if test "${ac_cv_header_time+set}" = set; then :
  4590. $as_echo_n "(cached) " >&6
  4591. else
  4592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4593. /* end confdefs.h. */
  4594. #include <sys/types.h>
  4595. #include <sys/time.h>
  4596. #include <time.h>
  4597. int
  4598. main ()
  4599. {
  4600. if ((struct tm *) 0)
  4601. return 0;
  4602. ;
  4603. return 0;
  4604. }
  4605. _ACEOF
  4606. if ac_fn_c_try_compile "$LINENO"; then :
  4607. ac_cv_header_time=yes
  4608. else
  4609. ac_cv_header_time=no
  4610. fi
  4611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4612. fi
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4614. $as_echo "$ac_cv_header_time" >&6; }
  4615. if test $ac_cv_header_time = yes; then
  4616. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  4617. fi
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether errno must be declared" >&5
  4619. $as_echo_n "checking whether errno must be declared... " >&6; }
  4620. if test "${libiberty_cv_declare_errno+set}" = set; then :
  4621. $as_echo_n "(cached) " >&6
  4622. else
  4623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4624. /* end confdefs.h. */
  4625. #include <errno.h>
  4626. int
  4627. main ()
  4628. {
  4629. int x = errno;
  4630. ;
  4631. return 0;
  4632. }
  4633. _ACEOF
  4634. if ac_fn_c_try_compile "$LINENO"; then :
  4635. libiberty_cv_declare_errno=no
  4636. else
  4637. libiberty_cv_declare_errno=yes
  4638. fi
  4639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4640. fi
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_declare_errno" >&5
  4642. $as_echo "$libiberty_cv_declare_errno" >&6; }
  4643. if test $libiberty_cv_declare_errno = yes
  4644. then
  4645. $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
  4646. fi
  4647. # Determine sizes of some types.
  4648. # The cast to long int works around a bug in the HP C Compiler
  4649. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4650. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4651. # This bug is HP SR number 8606223364.
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  4653. $as_echo_n "checking size of int... " >&6; }
  4654. if test "${ac_cv_sizeof_int+set}" = set; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  4658. else
  4659. if test "$ac_cv_type_int" = yes; then
  4660. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4661. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4662. { as_fn_set_status 77
  4663. as_fn_error "cannot compute sizeof (int)
  4664. See \`config.log' for more details." "$LINENO" 5; }; }
  4665. else
  4666. ac_cv_sizeof_int=0
  4667. fi
  4668. fi
  4669. fi
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  4671. $as_echo "$ac_cv_sizeof_int" >&6; }
  4672. cat >>confdefs.h <<_ACEOF
  4673. #define SIZEOF_INT $ac_cv_sizeof_int
  4674. _ACEOF
  4675. # The cast to long int works around a bug in the HP C Compiler
  4676. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4677. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4678. # This bug is HP SR number 8606223364.
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  4680. $as_echo_n "checking size of long... " >&6; }
  4681. if test "${ac_cv_sizeof_long+set}" = set; then :
  4682. $as_echo_n "(cached) " >&6
  4683. else
  4684. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  4685. else
  4686. if test "$ac_cv_type_long" = yes; then
  4687. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4688. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4689. { as_fn_set_status 77
  4690. as_fn_error "cannot compute sizeof (long)
  4691. See \`config.log' for more details." "$LINENO" 5; }; }
  4692. else
  4693. ac_cv_sizeof_long=0
  4694. fi
  4695. fi
  4696. fi
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  4698. $as_echo "$ac_cv_sizeof_long" >&6; }
  4699. cat >>confdefs.h <<_ACEOF
  4700. #define SIZEOF_LONG $ac_cv_sizeof_long
  4701. _ACEOF
  4702. # Check for presense of long long
  4703. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  4704. if test "x$ac_cv_type_long_long" = x""yes; then :
  4705. $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
  4706. # The cast to long int works around a bug in the HP C Compiler
  4707. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4708. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4709. # This bug is HP SR number 8606223364.
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  4711. $as_echo_n "checking size of long long... " >&6; }
  4712. if test "${ac_cv_sizeof_long_long+set}" = set; then :
  4713. $as_echo_n "(cached) " >&6
  4714. else
  4715. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  4716. else
  4717. if test "$ac_cv_type_long_long" = yes; then
  4718. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4719. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4720. { as_fn_set_status 77
  4721. as_fn_error "cannot compute sizeof (long long)
  4722. See \`config.log' for more details." "$LINENO" 5; }; }
  4723. else
  4724. ac_cv_sizeof_long_long=0
  4725. fi
  4726. fi
  4727. fi
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  4729. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  4730. cat >>confdefs.h <<_ACEOF
  4731. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  4732. _ACEOF
  4733. fi
  4734. # Look for a 64-bit type.
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit type" >&5
  4736. $as_echo_n "checking for a 64-bit type... " >&6; }
  4737. if test "${liberty_cv_uint64+set}" = set; then :
  4738. $as_echo_n "(cached) " >&6
  4739. else
  4740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4741. /* end confdefs.h. */
  4742. #ifdef HAVE_STDINT_H
  4743. #include <stdint.h>
  4744. #endif
  4745. int
  4746. main ()
  4747. {
  4748. extern uint64_t foo;
  4749. ;
  4750. return 0;
  4751. }
  4752. _ACEOF
  4753. if ac_fn_c_try_compile "$LINENO"; then :
  4754. liberty_cv_uint64=uint64_t
  4755. else
  4756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4757. /* end confdefs.h. */
  4758. #ifdef HAVE_LIMITS_H
  4759. #include <limits.h>
  4760. #endif
  4761. #ifndef CHAR_BIT
  4762. #define CHAR_BIT 8
  4763. #endif
  4764. int
  4765. main ()
  4766. {
  4767. extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
  4768. ;
  4769. return 0;
  4770. }
  4771. _ACEOF
  4772. if ac_fn_c_try_compile "$LINENO"; then :
  4773. liberty_cv_uint64="unsigned long"
  4774. else
  4775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4776. /* end confdefs.h. */
  4777. #ifdef HAVE_LIMITS_H
  4778. #include <limits.h>
  4779. #endif
  4780. #ifndef CHAR_BIT
  4781. #define CHAR_BIT 8
  4782. #endif
  4783. int
  4784. main ()
  4785. {
  4786. extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
  4787. ;
  4788. return 0;
  4789. }
  4790. _ACEOF
  4791. if ac_fn_c_try_compile "$LINENO"; then :
  4792. liberty_cv_uint64="unsigned long long"
  4793. else
  4794. liberty_cv_uint64=none
  4795. fi
  4796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4797. fi
  4798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4799. fi
  4800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4801. fi
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liberty_cv_uint64" >&5
  4803. $as_echo "$liberty_cv_uint64" >&6; }
  4804. if test "$liberty_cv_uint64" != none; then
  4805. cat >>confdefs.h <<_ACEOF
  4806. #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
  4807. _ACEOF
  4808. fi
  4809. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  4810. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  4811. $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
  4812. else
  4813. for ac_type in 'int' 'long int' 'long long int'; do
  4814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4815. /* end confdefs.h. */
  4816. $ac_includes_default
  4817. int
  4818. main ()
  4819. {
  4820. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  4821. test_array [0] = 0
  4822. ;
  4823. return 0;
  4824. }
  4825. _ACEOF
  4826. if ac_fn_c_try_compile "$LINENO"; then :
  4827. cat >>confdefs.h <<_ACEOF
  4828. #define intptr_t $ac_type
  4829. _ACEOF
  4830. ac_type=
  4831. fi
  4832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4833. test -z "$ac_type" && break
  4834. done
  4835. fi
  4836. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  4837. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  4838. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  4839. else
  4840. for ac_type in 'unsigned int' 'unsigned long int' \
  4841. 'unsigned long long int'; do
  4842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4843. /* end confdefs.h. */
  4844. $ac_includes_default
  4845. int
  4846. main ()
  4847. {
  4848. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  4849. test_array [0] = 0
  4850. ;
  4851. return 0;
  4852. }
  4853. _ACEOF
  4854. if ac_fn_c_try_compile "$LINENO"; then :
  4855. cat >>confdefs.h <<_ACEOF
  4856. #define uintptr_t $ac_type
  4857. _ACEOF
  4858. ac_type=
  4859. fi
  4860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4861. test -z "$ac_type" && break
  4862. done
  4863. fi
  4864. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  4865. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  4866. else
  4867. cat >>confdefs.h <<_ACEOF
  4868. #define ssize_t int
  4869. _ACEOF
  4870. fi
  4871. # Given the above check, we always have uintptr_t or a fallback
  4872. # definition. So define HAVE_UINTPTR_T in case any imported code
  4873. # relies on it.
  4874. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  4875. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  4876. if test "x$ac_cv_type_pid_t" = x""yes; then :
  4877. else
  4878. cat >>confdefs.h <<_ACEOF
  4879. #define pid_t int
  4880. _ACEOF
  4881. fi
  4882. # This is the list of functions which libiberty will provide if they
  4883. # are not available on the host.
  4884. funcs="asprintf"
  4885. funcs="$funcs atexit"
  4886. funcs="$funcs basename"
  4887. funcs="$funcs bcmp"
  4888. funcs="$funcs bcopy"
  4889. funcs="$funcs bsearch"
  4890. funcs="$funcs bzero"
  4891. funcs="$funcs calloc"
  4892. funcs="$funcs clock"
  4893. funcs="$funcs ffs"
  4894. funcs="$funcs getcwd"
  4895. funcs="$funcs getpagesize"
  4896. funcs="$funcs gettimeofday"
  4897. funcs="$funcs index"
  4898. funcs="$funcs insque"
  4899. funcs="$funcs memchr"
  4900. funcs="$funcs memcmp"
  4901. funcs="$funcs memcpy"
  4902. funcs="$funcs memmem"
  4903. funcs="$funcs memmove"
  4904. funcs="$funcs mempcpy"
  4905. funcs="$funcs memset"
  4906. funcs="$funcs mkstemps"
  4907. funcs="$funcs putenv"
  4908. funcs="$funcs random"
  4909. funcs="$funcs rename"
  4910. funcs="$funcs rindex"
  4911. funcs="$funcs setenv"
  4912. funcs="$funcs snprintf"
  4913. funcs="$funcs sigsetmask"
  4914. funcs="$funcs stpcpy"
  4915. funcs="$funcs stpncpy"
  4916. funcs="$funcs strcasecmp"
  4917. funcs="$funcs strchr"
  4918. funcs="$funcs strdup"
  4919. funcs="$funcs strncasecmp"
  4920. funcs="$funcs strndup"
  4921. funcs="$funcs strnlen"
  4922. funcs="$funcs strrchr"
  4923. funcs="$funcs strstr"
  4924. funcs="$funcs strtod"
  4925. funcs="$funcs strtol"
  4926. funcs="$funcs strtoul"
  4927. funcs="$funcs strtoll"
  4928. funcs="$funcs strtoull"
  4929. funcs="$funcs strverscmp"
  4930. funcs="$funcs tmpnam"
  4931. funcs="$funcs vasprintf"
  4932. funcs="$funcs vfprintf"
  4933. funcs="$funcs vprintf"
  4934. funcs="$funcs vsnprintf"
  4935. funcs="$funcs vsprintf"
  4936. funcs="$funcs waitpid"
  4937. funcs="$funcs setproctitle"
  4938. # Also in the old function.def file: alloca, vfork, getopt.
  4939. vars="sys_errlist sys_nerr sys_siglist"
  4940. checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
  4941. getsysinfo gettimeofday on_exit psignal pstat_getdynamic pstat_getstatic \
  4942. realpath setrlimit sbrk spawnve spawnvpe strerror strsignal sysconf sysctl \
  4943. sysmp table times wait3 wait4"
  4944. # These are neither executed nor required, but they help keep
  4945. # autoheader happy without adding a bunch of text to acconfig.h.
  4946. if test "x" = "y"; then
  4947. for ac_func in asprintf atexit \
  4948. basename bcmp bcopy bsearch bzero \
  4949. calloc canonicalize_file_name clock \
  4950. dup3 \
  4951. ffs __fsetlocking \
  4952. getcwd getpagesize getrlimit getrusage getsysinfo gettimeofday \
  4953. index insque \
  4954. memchr memcmp memcpy memmem memmove memset mkstemps \
  4955. on_exit \
  4956. psignal pstat_getdynamic pstat_getstatic putenv \
  4957. random realpath rename rindex \
  4958. sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
  4959. stpcpy stpncpy strcasecmp strchr strdup \
  4960. strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \
  4961. strtol strtoul strtoll strtoull strverscmp sysconf sysctl sysmp \
  4962. table times tmpnam \
  4963. vasprintf vfprintf vprintf vsprintf \
  4964. wait3 wait4 waitpid
  4965. do :
  4966. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4967. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4968. eval as_val=\$$as_ac_var
  4969. if test "x$as_val" = x""yes; then :
  4970. cat >>confdefs.h <<_ACEOF
  4971. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4972. _ACEOF
  4973. fi
  4974. done
  4975. ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
  4976. if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
  4977. ac_have_decl=1
  4978. else
  4979. ac_have_decl=0
  4980. fi
  4981. cat >>confdefs.h <<_ACEOF
  4982. #define HAVE_DECL_BASENAME $ac_have_decl
  4983. _ACEOF
  4984. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  4985. if test "x$ac_cv_have_decl_ffs" = x""yes; then :
  4986. ac_have_decl=1
  4987. else
  4988. ac_have_decl=0
  4989. fi
  4990. cat >>confdefs.h <<_ACEOF
  4991. #define HAVE_DECL_FFS $ac_have_decl
  4992. _ACEOF
  4993. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  4994. if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
  4995. ac_have_decl=1
  4996. else
  4997. ac_have_decl=0
  4998. fi
  4999. cat >>confdefs.h <<_ACEOF
  5000. #define HAVE_DECL_ASPRINTF $ac_have_decl
  5001. _ACEOF
  5002. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  5003. if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
  5004. ac_have_decl=1
  5005. else
  5006. ac_have_decl=0
  5007. fi
  5008. cat >>confdefs.h <<_ACEOF
  5009. #define HAVE_DECL_VASPRINTF $ac_have_decl
  5010. _ACEOF
  5011. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  5012. if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
  5013. ac_have_decl=1
  5014. else
  5015. ac_have_decl=0
  5016. fi
  5017. cat >>confdefs.h <<_ACEOF
  5018. #define HAVE_DECL_SNPRINTF $ac_have_decl
  5019. _ACEOF
  5020. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  5021. if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
  5022. ac_have_decl=1
  5023. else
  5024. ac_have_decl=0
  5025. fi
  5026. cat >>confdefs.h <<_ACEOF
  5027. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  5028. _ACEOF
  5029. ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
  5030. if test "x$ac_cv_have_decl_strtol" = x""yes; then :
  5031. ac_have_decl=1
  5032. else
  5033. ac_have_decl=0
  5034. fi
  5035. cat >>confdefs.h <<_ACEOF
  5036. #define HAVE_DECL_STRTOL $ac_have_decl
  5037. _ACEOF
  5038. ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
  5039. if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
  5040. ac_have_decl=1
  5041. else
  5042. ac_have_decl=0
  5043. fi
  5044. cat >>confdefs.h <<_ACEOF
  5045. #define HAVE_DECL_STRTOUL $ac_have_decl
  5046. _ACEOF
  5047. ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
  5048. if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
  5049. ac_have_decl=1
  5050. else
  5051. ac_have_decl=0
  5052. fi
  5053. cat >>confdefs.h <<_ACEOF
  5054. #define HAVE_DECL_STRTOLL $ac_have_decl
  5055. _ACEOF
  5056. ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
  5057. if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
  5058. ac_have_decl=1
  5059. else
  5060. ac_have_decl=0
  5061. fi
  5062. cat >>confdefs.h <<_ACEOF
  5063. #define HAVE_DECL_STRTOULL $ac_have_decl
  5064. _ACEOF
  5065. $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
  5066. $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
  5067. $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
  5068. fi
  5069. # For each of these functions, if the host does not provide the
  5070. # function we want to put FN.o in LIBOBJS, and if the host does
  5071. # provide the function, we want to define HAVE_FN in config.h.
  5072. setobjs=
  5073. CHECK=
  5074. if test -n "${with_target_subdir}"; then
  5075. # We are being configured as a target library. AC_REPLACE_FUNCS
  5076. # may not work correctly, because the compiler may not be able to
  5077. # link executables. Note that we may still be being configured
  5078. # native.
  5079. # If we are being configured for newlib, we know which functions
  5080. # newlib provide and which ones we will be expected to provide.
  5081. if test "x${with_newlib}" = "xyes"; then
  5082. case " $LIBOBJS " in
  5083. *" asprintf.$ac_objext "* ) ;;
  5084. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  5085. ;;
  5086. esac
  5087. case " $LIBOBJS " in
  5088. *" basename.$ac_objext "* ) ;;
  5089. *) LIBOBJS="$LIBOBJS basename.$ac_objext"
  5090. ;;
  5091. esac
  5092. case " $LIBOBJS " in
  5093. *" insque.$ac_objext "* ) ;;
  5094. *) LIBOBJS="$LIBOBJS insque.$ac_objext"
  5095. ;;
  5096. esac
  5097. case " $LIBOBJS " in
  5098. *" random.$ac_objext "* ) ;;
  5099. *) LIBOBJS="$LIBOBJS random.$ac_objext"
  5100. ;;
  5101. esac
  5102. case " $LIBOBJS " in
  5103. *" strdup.$ac_objext "* ) ;;
  5104. *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
  5105. ;;
  5106. esac
  5107. case " $LIBOBJS " in
  5108. *" vasprintf.$ac_objext "* ) ;;
  5109. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5110. ;;
  5111. esac
  5112. for f in $funcs; do
  5113. case "$f" in
  5114. asprintf | basename | insque | random | strdup | vasprintf)
  5115. ;;
  5116. *)
  5117. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5118. cat >>confdefs.h <<_ACEOF
  5119. #define $n 1
  5120. _ACEOF
  5121. ;;
  5122. esac
  5123. done
  5124. # newlib doesnt provide any of the variables in $vars, so we
  5125. # dont have to check them here.
  5126. # Of the functions in $checkfuncs, newlib only has strerror.
  5127. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  5128. setobjs=yes
  5129. fi
  5130. # If we are being configured for Mingw, we know which functions
  5131. # Mingw provides and which ones we will be expected to provide.
  5132. case "${host}" in
  5133. *-*-mingw*)
  5134. case " $LIBOBJS " in
  5135. *" asprintf.$ac_objext "* ) ;;
  5136. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  5137. ;;
  5138. esac
  5139. case " $LIBOBJS " in
  5140. *" basename.$ac_objext "* ) ;;
  5141. *) LIBOBJS="$LIBOBJS basename.$ac_objext"
  5142. ;;
  5143. esac
  5144. case " $LIBOBJS " in
  5145. *" bcmp.$ac_objext "* ) ;;
  5146. *) LIBOBJS="$LIBOBJS bcmp.$ac_objext"
  5147. ;;
  5148. esac
  5149. case " $LIBOBJS " in
  5150. *" bcopy.$ac_objext "* ) ;;
  5151. *) LIBOBJS="$LIBOBJS bcopy.$ac_objext"
  5152. ;;
  5153. esac
  5154. case " $LIBOBJS " in
  5155. *" bzero.$ac_objext "* ) ;;
  5156. *) LIBOBJS="$LIBOBJS bzero.$ac_objext"
  5157. ;;
  5158. esac
  5159. case " $LIBOBJS " in
  5160. *" clock.$ac_objext "* ) ;;
  5161. *) LIBOBJS="$LIBOBJS clock.$ac_objext"
  5162. ;;
  5163. esac
  5164. case " $LIBOBJS " in
  5165. *" ffs.$ac_objext "* ) ;;
  5166. *) LIBOBJS="$LIBOBJS ffs.$ac_objext"
  5167. ;;
  5168. esac
  5169. case " $LIBOBJS " in
  5170. *" getpagesize.$ac_objext "* ) ;;
  5171. *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
  5172. ;;
  5173. esac
  5174. case " $LIBOBJS " in
  5175. *" index.$ac_objext "* ) ;;
  5176. *) LIBOBJS="$LIBOBJS index.$ac_objext"
  5177. ;;
  5178. esac
  5179. case " $LIBOBJS " in
  5180. *" insque.$ac_objext "* ) ;;
  5181. *) LIBOBJS="$LIBOBJS insque.$ac_objext"
  5182. ;;
  5183. esac
  5184. case " $LIBOBJS " in
  5185. *" mempcpy.$ac_objext "* ) ;;
  5186. *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext"
  5187. ;;
  5188. esac
  5189. case " $LIBOBJS " in
  5190. *" mkstemps.$ac_objext "* ) ;;
  5191. *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext"
  5192. ;;
  5193. esac
  5194. case " $LIBOBJS " in
  5195. *" random.$ac_objext "* ) ;;
  5196. *) LIBOBJS="$LIBOBJS random.$ac_objext"
  5197. ;;
  5198. esac
  5199. case " $LIBOBJS " in
  5200. *" rindex.$ac_objext "* ) ;;
  5201. *) LIBOBJS="$LIBOBJS rindex.$ac_objext"
  5202. ;;
  5203. esac
  5204. case " $LIBOBJS " in
  5205. *" sigsetmask.$ac_objext "* ) ;;
  5206. *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext"
  5207. ;;
  5208. esac
  5209. case " $LIBOBJS " in
  5210. *" stpcpy.$ac_objext "* ) ;;
  5211. *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
  5212. ;;
  5213. esac
  5214. case " $LIBOBJS " in
  5215. *" stpncpy.$ac_objext "* ) ;;
  5216. *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext"
  5217. ;;
  5218. esac
  5219. case " $LIBOBJS " in
  5220. *" strndup.$ac_objext "* ) ;;
  5221. *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
  5222. ;;
  5223. esac
  5224. case " $LIBOBJS " in
  5225. *" strnlen.$ac_objext "* ) ;;
  5226. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  5227. ;;
  5228. esac
  5229. case " $LIBOBJS " in
  5230. *" strverscmp.$ac_objext "* ) ;;
  5231. *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext"
  5232. ;;
  5233. esac
  5234. case " $LIBOBJS " in
  5235. *" vasprintf.$ac_objext "* ) ;;
  5236. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5237. ;;
  5238. esac
  5239. case " $LIBOBJS " in
  5240. *" waitpid.$ac_objext "* ) ;;
  5241. *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
  5242. ;;
  5243. esac
  5244. for f in $funcs; do
  5245. case "$f" in
  5246. asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strnlen | strverscmp | vasprintf | waitpid)
  5247. ;;
  5248. *)
  5249. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5250. cat >>confdefs.h <<_ACEOF
  5251. #define $n 1
  5252. _ACEOF
  5253. ;;
  5254. esac
  5255. done
  5256. # Mingw doesnt provide any of the variables in $vars, so we
  5257. # dont have to check them here.
  5258. # Of the functions in $checkfuncs, Mingw only has strerror.
  5259. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  5260. setobjs=yes
  5261. ;;
  5262. *-*-msdosdjgpp)
  5263. case " $LIBOBJS " in
  5264. *" vasprintf.$ac_objext "* ) ;;
  5265. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5266. ;;
  5267. esac
  5268. case " $LIBOBJS " in
  5269. *" vsnprintf.$ac_objext "* ) ;;
  5270. *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext"
  5271. ;;
  5272. esac
  5273. case " $LIBOBJS " in
  5274. *" snprintf.$ac_objext "* ) ;;
  5275. *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
  5276. ;;
  5277. esac
  5278. case " $LIBOBJS " in
  5279. *" asprintf.$ac_objext "* ) ;;
  5280. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  5281. ;;
  5282. esac
  5283. for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
  5284. getcwd getpagesize getrusage gettimeofday \
  5285. index insque memchr memcmp memcpy memmove memset psignal \
  5286. putenv random rename rindex sbrk setenv stpcpy strcasecmp \
  5287. strchr strdup strerror strncasecmp strrchr strstr strtod \
  5288. strtol strtoul sysconf times tmpnam vfprintf vprintf \
  5289. vsprintf waitpid
  5290. do
  5291. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5292. cat >>confdefs.h <<_ACEOF
  5293. #define $n 1
  5294. _ACEOF
  5295. done
  5296. setobjs=yes
  5297. ;;
  5298. esac
  5299. else
  5300. # Not a target library, so we set things up to run the test suite.
  5301. CHECK=really-check
  5302. fi
  5303. case "${host}" in
  5304. *-*-cygwin* | *-*-mingw*)
  5305. $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
  5306. $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
  5307. ;;
  5308. esac
  5309. if test -z "${setobjs}"; then
  5310. case "${host}" in
  5311. *-*-vxworks*)
  5312. # Handle VxWorks configuration specially, since on VxWorks the
  5313. # libraries are actually on the target board, not in the file
  5314. # system.
  5315. case " $LIBOBJS " in
  5316. *" basename.$ac_objext "* ) ;;
  5317. *) LIBOBJS="$LIBOBJS basename.$ac_objext"
  5318. ;;
  5319. esac
  5320. case " $LIBOBJS " in
  5321. *" getpagesize.$ac_objext "* ) ;;
  5322. *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
  5323. ;;
  5324. esac
  5325. case " $LIBOBJS " in
  5326. *" insque.$ac_objext "* ) ;;
  5327. *) LIBOBJS="$LIBOBJS insque.$ac_objext"
  5328. ;;
  5329. esac
  5330. case " $LIBOBJS " in
  5331. *" random.$ac_objext "* ) ;;
  5332. *) LIBOBJS="$LIBOBJS random.$ac_objext"
  5333. ;;
  5334. esac
  5335. case " $LIBOBJS " in
  5336. *" strcasecmp.$ac_objext "* ) ;;
  5337. *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
  5338. ;;
  5339. esac
  5340. case " $LIBOBJS " in
  5341. *" strncasecmp.$ac_objext "* ) ;;
  5342. *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
  5343. ;;
  5344. esac
  5345. case " $LIBOBJS " in
  5346. *" strdup.$ac_objext "* ) ;;
  5347. *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
  5348. ;;
  5349. esac
  5350. case " $LIBOBJS " in
  5351. *" vfork.$ac_objext "* ) ;;
  5352. *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
  5353. ;;
  5354. esac
  5355. case " $LIBOBJS " in
  5356. *" waitpid.$ac_objext "* ) ;;
  5357. *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
  5358. ;;
  5359. esac
  5360. case " $LIBOBJS " in
  5361. *" vasprintf.$ac_objext "* ) ;;
  5362. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5363. ;;
  5364. esac
  5365. for f in $funcs; do
  5366. case "$f" in
  5367. basename | getpagesize | insque | random | strcasecmp)
  5368. ;;
  5369. strncasecmp | strdup | vfork | waitpid | vasprintf)
  5370. ;;
  5371. *)
  5372. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5373. cat >>confdefs.h <<_ACEOF
  5374. #define $n 1
  5375. _ACEOF
  5376. ;;
  5377. esac
  5378. done
  5379. # VxWorks doesn't provide any of the variables in $vars, so we
  5380. # don't have to check them here.
  5381. # Of the functions in $checkfuncs, VxWorks only has strerror.
  5382. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  5383. setobjs=yes
  5384. ;;
  5385. esac
  5386. fi
  5387. if test -z "${setobjs}"; then
  5388. case "${host}" in
  5389. *-*-mingw32*)
  5390. # Under mingw32, sys_nerr and sys_errlist exist, but they are
  5391. # macros, so the test below won't find them.
  5392. libiberty_cv_var_sys_nerr=yes
  5393. libiberty_cv_var_sys_errlist=yes
  5394. ;;
  5395. *-*-msdosdjgpp*)
  5396. # vfork and fork are stubs.
  5397. ac_cv_func_vfork_works=no
  5398. ;;
  5399. *-*-uwin*)
  5400. # Under some versions of uwin, vfork is notoriously buggy and the test
  5401. # can hang configure; on other versions, vfork exists just as a stub.
  5402. # FIXME: This should be removed once vfork in uwin's runtime is fixed.
  5403. ac_cv_func_vfork_works=no
  5404. # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
  5405. # macros (actually, these are imported from a DLL, but the end effect
  5406. # is the same), so the test below won't find them.
  5407. libiberty_cv_var_sys_nerr=yes
  5408. libiberty_cv_var_sys_errlist=yes
  5409. ;;
  5410. *-*-*vms*)
  5411. # Under VMS, vfork works very different than on Unix. The standard test
  5412. # won't work, and it isn't easily adaptable. It makes more sense to
  5413. # just force it.
  5414. ac_cv_func_vfork_works=yes
  5415. ;;
  5416. esac
  5417. # We haven't set the list of objects yet. Use the standard autoconf
  5418. # tests. This will only work if the compiler works.
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  5420. $as_echo_n "checking for library containing strerror... " >&6; }
  5421. if test "${ac_cv_search_strerror+set}" = set; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. ac_func_search_save_LIBS=$LIBS
  5425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5426. /* end confdefs.h. */
  5427. /* Override any GCC internal prototype to avoid an error.
  5428. Use char because int might match the return type of a GCC
  5429. builtin and then its argument prototype would still apply. */
  5430. #ifdef __cplusplus
  5431. extern "C"
  5432. #endif
  5433. char strerror ();
  5434. int
  5435. main ()
  5436. {
  5437. return strerror ();
  5438. ;
  5439. return 0;
  5440. }
  5441. _ACEOF
  5442. for ac_lib in '' cposix; do
  5443. if test -z "$ac_lib"; then
  5444. ac_res="none required"
  5445. else
  5446. ac_res=-l$ac_lib
  5447. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5448. fi
  5449. if test x$gcc_no_link = xyes; then
  5450. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5451. fi
  5452. if ac_fn_c_try_link "$LINENO"; then :
  5453. ac_cv_search_strerror=$ac_res
  5454. fi
  5455. rm -f core conftest.err conftest.$ac_objext \
  5456. conftest$ac_exeext
  5457. if test "${ac_cv_search_strerror+set}" = set; then :
  5458. break
  5459. fi
  5460. done
  5461. if test "${ac_cv_search_strerror+set}" = set; then :
  5462. else
  5463. ac_cv_search_strerror=no
  5464. fi
  5465. rm conftest.$ac_ext
  5466. LIBS=$ac_func_search_save_LIBS
  5467. fi
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  5469. $as_echo "$ac_cv_search_strerror" >&6; }
  5470. ac_res=$ac_cv_search_strerror
  5471. if test "$ac_res" != no; then :
  5472. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5473. fi
  5474. for ac_func in $funcs
  5475. do :
  5476. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5477. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5478. eval as_val=\$$as_ac_var
  5479. if test "x$as_val" = x""yes; then :
  5480. cat >>confdefs.h <<_ACEOF
  5481. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5482. _ACEOF
  5483. else
  5484. case " $LIBOBJS " in
  5485. *" $ac_func.$ac_objext "* ) ;;
  5486. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  5487. ;;
  5488. esac
  5489. fi
  5490. done
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloca needs Cray hooks" >&5
  5492. $as_echo_n "checking whether alloca needs Cray hooks... " >&6; }
  5493. if test "${ac_cv_os_cray+set}" = set; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5497. /* end confdefs.h. */
  5498. #if defined(CRAY) && ! defined(CRAY2)
  5499. webecray
  5500. #else
  5501. wenotbecray
  5502. #endif
  5503. _ACEOF
  5504. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5505. $EGREP "webecray" >/dev/null 2>&1; then :
  5506. ac_cv_os_cray=yes
  5507. else
  5508. ac_cv_os_cray=no
  5509. fi
  5510. rm -f conftest*
  5511. fi
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  5513. $as_echo "$ac_cv_os_cray" >&6; }
  5514. if test $ac_cv_os_cray = yes; then
  5515. for ac_func in _getb67 GETB67 getb67; do
  5516. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5517. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5518. eval as_val=\$$as_ac_var
  5519. if test "x$as_val" = x""yes; then :
  5520. cat >>confdefs.h <<_ACEOF
  5521. #define CRAY_STACKSEG_END $ac_func
  5522. _ACEOF
  5523. break
  5524. fi
  5525. done
  5526. fi
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  5528. $as_echo_n "checking stack direction for C alloca... " >&6; }
  5529. if test "${ac_cv_c_stack_direction+set}" = set; then :
  5530. $as_echo_n "(cached) " >&6
  5531. else
  5532. if test "$cross_compiling" = yes; then :
  5533. ac_cv_c_stack_direction=0
  5534. else
  5535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5536. /* end confdefs.h. */
  5537. find_stack_direction ()
  5538. {
  5539. static char *addr = 0;
  5540. auto char dummy;
  5541. if (addr == 0)
  5542. {
  5543. addr = &dummy;
  5544. return find_stack_direction ();
  5545. }
  5546. else
  5547. return (&dummy > addr) ? 1 : -1;
  5548. }
  5549. main ()
  5550. {
  5551. exit (find_stack_direction() < 0);
  5552. }
  5553. _ACEOF
  5554. if ac_fn_c_try_run "$LINENO"; then :
  5555. ac_cv_c_stack_direction=1
  5556. else
  5557. ac_cv_c_stack_direction=-1
  5558. fi
  5559. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5560. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5561. fi
  5562. fi
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  5564. $as_echo "$ac_cv_c_stack_direction" >&6; }
  5565. cat >>confdefs.h <<_ACEOF
  5566. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5567. _ACEOF
  5568. for ac_header in vfork.h
  5569. do :
  5570. ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
  5571. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  5572. cat >>confdefs.h <<_ACEOF
  5573. #define HAVE_VFORK_H 1
  5574. _ACEOF
  5575. fi
  5576. done
  5577. for ac_func in fork vfork
  5578. do :
  5579. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5580. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5581. eval as_val=\$$as_ac_var
  5582. if test "x$as_val" = x""yes; then :
  5583. cat >>confdefs.h <<_ACEOF
  5584. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5585. _ACEOF
  5586. fi
  5587. done
  5588. if test "x$ac_cv_func_fork" = xyes; then
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  5590. $as_echo_n "checking for working fork... " >&6; }
  5591. if test "${ac_cv_func_fork_works+set}" = set; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. if test "$cross_compiling" = yes; then :
  5595. ac_cv_func_fork_works=cross
  5596. else
  5597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5598. /* end confdefs.h. */
  5599. $ac_includes_default
  5600. int
  5601. main ()
  5602. {
  5603. /* By Ruediger Kuhlmann. */
  5604. return fork () < 0;
  5605. ;
  5606. return 0;
  5607. }
  5608. _ACEOF
  5609. if ac_fn_c_try_run "$LINENO"; then :
  5610. ac_cv_func_fork_works=yes
  5611. else
  5612. ac_cv_func_fork_works=no
  5613. fi
  5614. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5615. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5616. fi
  5617. fi
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  5619. $as_echo "$ac_cv_func_fork_works" >&6; }
  5620. else
  5621. ac_cv_func_fork_works=$ac_cv_func_fork
  5622. fi
  5623. if test "x$ac_cv_func_fork_works" = xcross; then
  5624. case $host in
  5625. *-*-amigaos* | *-*-msdosdjgpp*)
  5626. # Override, as these systems have only a dummy fork() stub
  5627. ac_cv_func_fork_works=no
  5628. ;;
  5629. *)
  5630. ac_cv_func_fork_works=yes
  5631. ;;
  5632. esac
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  5634. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  5635. fi
  5636. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5637. if test "x$ac_cv_func_vfork" = xyes; then
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  5639. $as_echo_n "checking for working vfork... " >&6; }
  5640. if test "${ac_cv_func_vfork_works+set}" = set; then :
  5641. $as_echo_n "(cached) " >&6
  5642. else
  5643. if test "$cross_compiling" = yes; then :
  5644. ac_cv_func_vfork_works=cross
  5645. else
  5646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5647. /* end confdefs.h. */
  5648. /* Thanks to Paul Eggert for this test. */
  5649. $ac_includes_default
  5650. #include <sys/wait.h>
  5651. #ifdef HAVE_VFORK_H
  5652. # include <vfork.h>
  5653. #endif
  5654. /* On some sparc systems, changes by the child to local and incoming
  5655. argument registers are propagated back to the parent. The compiler
  5656. is told about this with #include <vfork.h>, but some compilers
  5657. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  5658. static variable whose address is put into a register that is
  5659. clobbered by the vfork. */
  5660. static void
  5661. #ifdef __cplusplus
  5662. sparc_address_test (int arg)
  5663. # else
  5664. sparc_address_test (arg) int arg;
  5665. #endif
  5666. {
  5667. static pid_t child;
  5668. if (!child) {
  5669. child = vfork ();
  5670. if (child < 0) {
  5671. perror ("vfork");
  5672. _exit(2);
  5673. }
  5674. if (!child) {
  5675. arg = getpid();
  5676. write(-1, "", 0);
  5677. _exit (arg);
  5678. }
  5679. }
  5680. }
  5681. int
  5682. main ()
  5683. {
  5684. pid_t parent = getpid ();
  5685. pid_t child;
  5686. sparc_address_test (0);
  5687. child = vfork ();
  5688. if (child == 0) {
  5689. /* Here is another test for sparc vfork register problems. This
  5690. test uses lots of local variables, at least as many local
  5691. variables as main has allocated so far including compiler
  5692. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  5693. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  5694. reuse the register of parent for one of the local variables,
  5695. since it will think that parent can't possibly be used any more
  5696. in this routine. Assigning to the local variable will thus
  5697. munge parent in the parent process. */
  5698. pid_t
  5699. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  5700. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  5701. /* Convince the compiler that p..p7 are live; otherwise, it might
  5702. use the same hardware register for all 8 local variables. */
  5703. if (p != p1 || p != p2 || p != p3 || p != p4
  5704. || p != p5 || p != p6 || p != p7)
  5705. _exit(1);
  5706. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  5707. from child file descriptors. If the child closes a descriptor
  5708. before it execs or exits, this munges the parent's descriptor
  5709. as well. Test for this by closing stdout in the child. */
  5710. _exit(close(fileno(stdout)) != 0);
  5711. } else {
  5712. int status;
  5713. struct stat st;
  5714. while (wait(&status) != child)
  5715. ;
  5716. return (
  5717. /* Was there some problem with vforking? */
  5718. child < 0
  5719. /* Did the child fail? (This shouldn't happen.) */
  5720. || status
  5721. /* Did the vfork/compiler bug occur? */
  5722. || parent != getpid()
  5723. /* Did the file descriptor bug occur? */
  5724. || fstat(fileno(stdout), &st) != 0
  5725. );
  5726. }
  5727. }
  5728. _ACEOF
  5729. if ac_fn_c_try_run "$LINENO"; then :
  5730. ac_cv_func_vfork_works=yes
  5731. else
  5732. ac_cv_func_vfork_works=no
  5733. fi
  5734. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5735. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5736. fi
  5737. fi
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  5739. $as_echo "$ac_cv_func_vfork_works" >&6; }
  5740. fi;
  5741. if test "x$ac_cv_func_fork_works" = xcross; then
  5742. ac_cv_func_vfork_works=$ac_cv_func_vfork
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  5744. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  5745. fi
  5746. if test "x$ac_cv_func_vfork_works" = xyes; then
  5747. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  5748. else
  5749. $as_echo "#define vfork fork" >>confdefs.h
  5750. fi
  5751. if test "x$ac_cv_func_fork_works" = xyes; then
  5752. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  5753. fi
  5754. if test $ac_cv_func_vfork_works = no; then
  5755. case " $LIBOBJS " in
  5756. *" vfork.$ac_objext "* ) ;;
  5757. *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
  5758. ;;
  5759. esac
  5760. fi
  5761. # We only need _doprnt if we might use it to implement v*printf.
  5762. if test $ac_cv_func_vprintf != yes \
  5763. || test $ac_cv_func_vfprintf != yes \
  5764. || test $ac_cv_func_vsprintf != yes; then
  5765. for ac_func in _doprnt
  5766. do :
  5767. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  5768. if test "x$ac_cv_func__doprnt" = x""yes; then :
  5769. cat >>confdefs.h <<_ACEOF
  5770. #define HAVE__DOPRNT 1
  5771. _ACEOF
  5772. else
  5773. case " $LIBOBJS " in
  5774. *" $ac_func.$ac_objext "* ) ;;
  5775. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  5776. ;;
  5777. esac
  5778. fi
  5779. done
  5780. else
  5781. for ac_func in _doprnt
  5782. do :
  5783. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  5784. if test "x$ac_cv_func__doprnt" = x""yes; then :
  5785. cat >>confdefs.h <<_ACEOF
  5786. #define HAVE__DOPRNT 1
  5787. _ACEOF
  5788. fi
  5789. done
  5790. fi
  5791. for v in $vars; do
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $v" >&5
  5793. $as_echo_n "checking for $v... " >&6; }
  5794. if { as_var=libiberty_cv_var_$v; eval "test \"\${$as_var+set}\" = set"; }; then :
  5795. $as_echo_n "(cached) " >&6
  5796. else
  5797. if test x$gcc_no_link = xyes; then
  5798. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5799. fi
  5800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5801. /* end confdefs.h. */
  5802. int *p;
  5803. int
  5804. main ()
  5805. {
  5806. extern int $v []; p = $v;
  5807. ;
  5808. return 0;
  5809. }
  5810. _ACEOF
  5811. if ac_fn_c_try_link "$LINENO"; then :
  5812. eval "libiberty_cv_var_$v=yes"
  5813. else
  5814. eval "libiberty_cv_var_$v=no"
  5815. fi
  5816. rm -f core conftest.err conftest.$ac_objext \
  5817. conftest$ac_exeext conftest.$ac_ext
  5818. fi
  5819. if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5821. $as_echo "yes" >&6; }
  5822. n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5823. cat >>confdefs.h <<_ACEOF
  5824. #define $n 1
  5825. _ACEOF
  5826. else
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5828. $as_echo "no" >&6; }
  5829. fi
  5830. done
  5831. # special check for _system_configuration because AIX <4.3.2 do not
  5832. # contain the `physmem' member.
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
  5834. $as_echo_n "checking for external symbol _system_configuration... " >&6; }
  5835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5836. /* end confdefs.h. */
  5837. #include <sys/systemcfg.h>
  5838. int
  5839. main ()
  5840. {
  5841. double x = _system_configuration.physmem;
  5842. ;
  5843. return 0;
  5844. }
  5845. _ACEOF
  5846. if ac_fn_c_try_compile "$LINENO"; then :
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5848. $as_echo "yes" >&6; }
  5849. $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
  5850. else
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5852. $as_echo "no" >&6; }
  5853. fi
  5854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5855. for ac_func in $checkfuncs
  5856. do :
  5857. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5858. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5859. eval as_val=\$$as_ac_var
  5860. if test "x$as_val" = x""yes; then :
  5861. cat >>confdefs.h <<_ACEOF
  5862. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5863. _ACEOF
  5864. fi
  5865. done
  5866. ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
  5867. if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
  5868. ac_have_decl=1
  5869. else
  5870. ac_have_decl=0
  5871. fi
  5872. cat >>confdefs.h <<_ACEOF
  5873. #define HAVE_DECL_BASENAME $ac_have_decl
  5874. _ACEOF
  5875. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  5876. if test "x$ac_cv_have_decl_ffs" = x""yes; then :
  5877. ac_have_decl=1
  5878. else
  5879. ac_have_decl=0
  5880. fi
  5881. cat >>confdefs.h <<_ACEOF
  5882. #define HAVE_DECL_FFS $ac_have_decl
  5883. _ACEOF
  5884. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  5885. if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
  5886. ac_have_decl=1
  5887. else
  5888. ac_have_decl=0
  5889. fi
  5890. cat >>confdefs.h <<_ACEOF
  5891. #define HAVE_DECL_ASPRINTF $ac_have_decl
  5892. _ACEOF
  5893. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  5894. if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
  5895. ac_have_decl=1
  5896. else
  5897. ac_have_decl=0
  5898. fi
  5899. cat >>confdefs.h <<_ACEOF
  5900. #define HAVE_DECL_VASPRINTF $ac_have_decl
  5901. _ACEOF
  5902. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  5903. if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
  5904. ac_have_decl=1
  5905. else
  5906. ac_have_decl=0
  5907. fi
  5908. cat >>confdefs.h <<_ACEOF
  5909. #define HAVE_DECL_SNPRINTF $ac_have_decl
  5910. _ACEOF
  5911. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  5912. if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
  5913. ac_have_decl=1
  5914. else
  5915. ac_have_decl=0
  5916. fi
  5917. cat >>confdefs.h <<_ACEOF
  5918. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  5919. _ACEOF
  5920. ac_fn_c_check_decl "$LINENO" "calloc" "ac_cv_have_decl_calloc" "$ac_includes_default"
  5921. if test "x$ac_cv_have_decl_calloc" = x""yes; then :
  5922. ac_have_decl=1
  5923. else
  5924. ac_have_decl=0
  5925. fi
  5926. cat >>confdefs.h <<_ACEOF
  5927. #define HAVE_DECL_CALLOC $ac_have_decl
  5928. _ACEOF
  5929. ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
  5930. if test "x$ac_cv_have_decl_getenv" = x""yes; then :
  5931. ac_have_decl=1
  5932. else
  5933. ac_have_decl=0
  5934. fi
  5935. cat >>confdefs.h <<_ACEOF
  5936. #define HAVE_DECL_GETENV $ac_have_decl
  5937. _ACEOF
  5938. ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
  5939. if test "x$ac_cv_have_decl_getopt" = x""yes; then :
  5940. ac_have_decl=1
  5941. else
  5942. ac_have_decl=0
  5943. fi
  5944. cat >>confdefs.h <<_ACEOF
  5945. #define HAVE_DECL_GETOPT $ac_have_decl
  5946. _ACEOF
  5947. ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
  5948. if test "x$ac_cv_have_decl_malloc" = x""yes; then :
  5949. ac_have_decl=1
  5950. else
  5951. ac_have_decl=0
  5952. fi
  5953. cat >>confdefs.h <<_ACEOF
  5954. #define HAVE_DECL_MALLOC $ac_have_decl
  5955. _ACEOF
  5956. ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
  5957. if test "x$ac_cv_have_decl_realloc" = x""yes; then :
  5958. ac_have_decl=1
  5959. else
  5960. ac_have_decl=0
  5961. fi
  5962. cat >>confdefs.h <<_ACEOF
  5963. #define HAVE_DECL_REALLOC $ac_have_decl
  5964. _ACEOF
  5965. ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
  5966. if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
  5967. ac_have_decl=1
  5968. else
  5969. ac_have_decl=0
  5970. fi
  5971. cat >>confdefs.h <<_ACEOF
  5972. #define HAVE_DECL_SBRK $ac_have_decl
  5973. _ACEOF
  5974. ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
  5975. if test "x$ac_cv_have_decl_strtol" = x""yes; then :
  5976. ac_have_decl=1
  5977. else
  5978. ac_have_decl=0
  5979. fi
  5980. cat >>confdefs.h <<_ACEOF
  5981. #define HAVE_DECL_STRTOL $ac_have_decl
  5982. _ACEOF
  5983. ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
  5984. if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
  5985. ac_have_decl=1
  5986. else
  5987. ac_have_decl=0
  5988. fi
  5989. cat >>confdefs.h <<_ACEOF
  5990. #define HAVE_DECL_STRTOUL $ac_have_decl
  5991. _ACEOF
  5992. ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
  5993. if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
  5994. ac_have_decl=1
  5995. else
  5996. ac_have_decl=0
  5997. fi
  5998. cat >>confdefs.h <<_ACEOF
  5999. #define HAVE_DECL_STRTOLL $ac_have_decl
  6000. _ACEOF
  6001. ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
  6002. if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
  6003. ac_have_decl=1
  6004. else
  6005. ac_have_decl=0
  6006. fi
  6007. cat >>confdefs.h <<_ACEOF
  6008. #define HAVE_DECL_STRTOULL $ac_have_decl
  6009. _ACEOF
  6010. ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
  6011. if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
  6012. ac_have_decl=1
  6013. else
  6014. ac_have_decl=0
  6015. fi
  6016. cat >>confdefs.h <<_ACEOF
  6017. #define HAVE_DECL_STRVERSCMP $ac_have_decl
  6018. _ACEOF
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5
  6020. $as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; }
  6021. if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then :
  6022. $as_echo_n "(cached) " >&6
  6023. else
  6024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6025. /* end confdefs.h. */
  6026. #include "confdefs.h"
  6027. #include <stdio.h>
  6028. #ifdef HAVE_STRING_H
  6029. #include <string.h>
  6030. #else
  6031. #ifdef HAVE_STRINGS_H
  6032. #include <strings.h>
  6033. #endif
  6034. #endif
  6035. #ifdef HAVE_STDLIB_H
  6036. #include <stdlib.h>
  6037. #endif
  6038. #ifdef HAVE_UNISTD_H
  6039. #include <unistd.h>
  6040. #endif
  6041. int
  6042. main ()
  6043. {
  6044. char *(*pfn) = (char *(*)) canonicalize_file_name
  6045. ;
  6046. return 0;
  6047. }
  6048. _ACEOF
  6049. if ac_fn_c_try_compile "$LINENO"; then :
  6050. libiberty_cv_decl_needed_canonicalize_file_name=no
  6051. else
  6052. libiberty_cv_decl_needed_canonicalize_file_name=yes
  6053. fi
  6054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6055. fi
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
  6057. $as_echo "$libiberty_cv_decl_needed_canonicalize_file_name" >&6; }
  6058. if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
  6059. $as_echo "#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1" >>confdefs.h
  6060. fi
  6061. fi
  6062. # Figure out which version of pexecute to use.
  6063. case "${host}" in
  6064. *-*-mingw* | *-*-winnt*) pexecute=pex-win32 ;;
  6065. *-*-msdosdjgpp*) pexecute=pex-djgpp ;;
  6066. *-*-msdos*) pexecute=pex-msdos ;;
  6067. *) pexecute=pex-unix ;;
  6068. esac
  6069. if test x$gcc_no_link = xyes; then
  6070. if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
  6071. ac_cv_func_mmap_fixed_mapped=no
  6072. fi
  6073. fi
  6074. if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
  6075. for ac_header in stdlib.h unistd.h
  6076. do :
  6077. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6078. ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
  6079. eval as_val=\$$as_ac_Header
  6080. if test "x$as_val" = x""yes; then :
  6081. cat >>confdefs.h <<_ACEOF
  6082. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6083. _ACEOF
  6084. fi
  6085. done
  6086. for ac_func in getpagesize
  6087. do :
  6088. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  6089. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  6090. cat >>confdefs.h <<_ACEOF
  6091. #define HAVE_GETPAGESIZE 1
  6092. _ACEOF
  6093. fi
  6094. done
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  6096. $as_echo_n "checking for working mmap... " >&6; }
  6097. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  6098. $as_echo_n "(cached) " >&6
  6099. else
  6100. if test "$cross_compiling" = yes; then :
  6101. ac_cv_func_mmap_fixed_mapped=no
  6102. else
  6103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6104. /* end confdefs.h. */
  6105. $ac_includes_default
  6106. /* malloc might have been renamed as rpl_malloc. */
  6107. #undef malloc
  6108. /* Thanks to Mike Haertel and Jim Avera for this test.
  6109. Here is a matrix of mmap possibilities:
  6110. mmap private not fixed
  6111. mmap private fixed at somewhere currently unmapped
  6112. mmap private fixed at somewhere already mapped
  6113. mmap shared not fixed
  6114. mmap shared fixed at somewhere currently unmapped
  6115. mmap shared fixed at somewhere already mapped
  6116. For private mappings, we should verify that changes cannot be read()
  6117. back from the file, nor mmap's back from the file at a different
  6118. address. (There have been systems where private was not correctly
  6119. implemented like the infamous i386 svr4.0, and systems where the
  6120. VM page cache was not coherent with the file system buffer cache
  6121. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6122. For shared mappings, we should conversely verify that changes get
  6123. propagated back to all the places they're supposed to be.
  6124. Grep wants private fixed already mapped.
  6125. The main things grep needs to know about mmap are:
  6126. * does it exist and is it safe to write into the mmap'd area
  6127. * how to use it (BSD variants) */
  6128. #include <fcntl.h>
  6129. #include <sys/mman.h>
  6130. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  6131. char *malloc ();
  6132. #endif
  6133. /* This mess was copied from the GNU getpagesize.h. */
  6134. #ifndef HAVE_GETPAGESIZE
  6135. /* Assume that all systems that can run configure have sys/param.h. */
  6136. # ifndef HAVE_SYS_PARAM_H
  6137. # define HAVE_SYS_PARAM_H 1
  6138. # endif
  6139. # ifdef _SC_PAGESIZE
  6140. # define getpagesize() sysconf(_SC_PAGESIZE)
  6141. # else /* no _SC_PAGESIZE */
  6142. # ifdef HAVE_SYS_PARAM_H
  6143. # include <sys/param.h>
  6144. # ifdef EXEC_PAGESIZE
  6145. # define getpagesize() EXEC_PAGESIZE
  6146. # else /* no EXEC_PAGESIZE */
  6147. # ifdef NBPG
  6148. # define getpagesize() NBPG * CLSIZE
  6149. # ifndef CLSIZE
  6150. # define CLSIZE 1
  6151. # endif /* no CLSIZE */
  6152. # else /* no NBPG */
  6153. # ifdef NBPC
  6154. # define getpagesize() NBPC
  6155. # else /* no NBPC */
  6156. # ifdef PAGESIZE
  6157. # define getpagesize() PAGESIZE
  6158. # endif /* PAGESIZE */
  6159. # endif /* no NBPC */
  6160. # endif /* no NBPG */
  6161. # endif /* no EXEC_PAGESIZE */
  6162. # else /* no HAVE_SYS_PARAM_H */
  6163. # define getpagesize() 8192 /* punt totally */
  6164. # endif /* no HAVE_SYS_PARAM_H */
  6165. # endif /* no _SC_PAGESIZE */
  6166. #endif /* no HAVE_GETPAGESIZE */
  6167. int
  6168. main ()
  6169. {
  6170. char *data, *data2, *data3;
  6171. int i, pagesize;
  6172. int fd;
  6173. pagesize = getpagesize ();
  6174. /* First, make a file with some known garbage in it. */
  6175. data = (char *) malloc (pagesize);
  6176. if (!data)
  6177. return 1;
  6178. for (i = 0; i < pagesize; ++i)
  6179. *(data + i) = rand ();
  6180. umask (0);
  6181. fd = creat ("conftest.mmap", 0600);
  6182. if (fd < 0)
  6183. return 1;
  6184. if (write (fd, data, pagesize) != pagesize)
  6185. return 1;
  6186. close (fd);
  6187. /* Next, try to mmap the file at a fixed address which already has
  6188. something else allocated at it. If we can, also make sure that
  6189. we see the same garbage. */
  6190. fd = open ("conftest.mmap", O_RDWR);
  6191. if (fd < 0)
  6192. return 1;
  6193. data2 = (char *) malloc (2 * pagesize);
  6194. if (!data2)
  6195. return 1;
  6196. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  6197. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6198. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6199. return 1;
  6200. for (i = 0; i < pagesize; ++i)
  6201. if (*(data + i) != *(data2 + i))
  6202. return 1;
  6203. /* Finally, make sure that changes to the mapped area do not
  6204. percolate back to the file as seen by read(). (This is a bug on
  6205. some variants of i386 svr4.0.) */
  6206. for (i = 0; i < pagesize; ++i)
  6207. *(data2 + i) = *(data2 + i) + 1;
  6208. data3 = (char *) malloc (pagesize);
  6209. if (!data3)
  6210. return 1;
  6211. if (read (fd, data3, pagesize) != pagesize)
  6212. return 1;
  6213. for (i = 0; i < pagesize; ++i)
  6214. if (*(data + i) != *(data3 + i))
  6215. return 1;
  6216. close (fd);
  6217. return 0;
  6218. }
  6219. _ACEOF
  6220. if ac_fn_c_try_run "$LINENO"; then :
  6221. ac_cv_func_mmap_fixed_mapped=yes
  6222. else
  6223. ac_cv_func_mmap_fixed_mapped=no
  6224. fi
  6225. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6226. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6227. fi
  6228. fi
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6230. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  6231. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6232. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  6233. fi
  6234. rm -f conftest.mmap
  6235. fi
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strncmp" >&5
  6237. $as_echo_n "checking for working strncmp... " >&6; }
  6238. if test "${ac_cv_func_strncmp_works+set}" = set; then :
  6239. $as_echo_n "(cached) " >&6
  6240. else
  6241. if test "$cross_compiling" = yes; then :
  6242. ac_cv_func_strncmp_works=yes
  6243. else
  6244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6245. /* end confdefs.h. */
  6246. /* Test by Jim Wilson and Kaveh Ghazi.
  6247. Check whether strncmp reads past the end of its string parameters. */
  6248. #include <sys/types.h>
  6249. #ifdef HAVE_FCNTL_H
  6250. #include <fcntl.h>
  6251. #endif
  6252. #ifdef HAVE_SYS_MMAN_H
  6253. #include <sys/mman.h>
  6254. #endif
  6255. #ifndef MAP_ANON
  6256. #ifdef MAP_ANONYMOUS
  6257. #define MAP_ANON MAP_ANONYMOUS
  6258. #else
  6259. #define MAP_ANON MAP_FILE
  6260. #endif
  6261. #endif
  6262. #ifndef MAP_FILE
  6263. #define MAP_FILE 0
  6264. #endif
  6265. #ifndef O_RDONLY
  6266. #define O_RDONLY 0
  6267. #endif
  6268. #define MAP_LEN 0x10000
  6269. main ()
  6270. {
  6271. #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
  6272. char *p;
  6273. int dev_zero;
  6274. dev_zero = open ("/dev/zero", O_RDONLY);
  6275. if (dev_zero < 0)
  6276. exit (1);
  6277. p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
  6278. MAP_ANON|MAP_PRIVATE, dev_zero, 0);
  6279. if (p == (char *)-1)
  6280. p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
  6281. MAP_ANON|MAP_PRIVATE, -1, 0);
  6282. if (p == (char *)-1)
  6283. exit (2);
  6284. else
  6285. {
  6286. char *string = "__si_type_info";
  6287. char *q = (char *) p + MAP_LEN - strlen (string) - 2;
  6288. char *r = (char *) p + 0xe;
  6289. strcpy (q, string);
  6290. strcpy (r, string);
  6291. strncmp (r, q, 14);
  6292. }
  6293. #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
  6294. exit (0);
  6295. }
  6296. _ACEOF
  6297. if ac_fn_c_try_run "$LINENO"; then :
  6298. ac_cv_func_strncmp_works=yes
  6299. else
  6300. ac_cv_func_strncmp_works=no
  6301. fi
  6302. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6303. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6304. fi
  6305. rm -f core core.* *.core
  6306. fi
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strncmp_works" >&5
  6308. $as_echo "$ac_cv_func_strncmp_works" >&6; }
  6309. if test $ac_cv_func_strncmp_works = no ; then
  6310. case " $LIBOBJS " in
  6311. *" strncmp.$ac_objext "* ) ;;
  6312. *) LIBOBJS="$LIBOBJS strncmp.$ac_objext"
  6313. ;;
  6314. esac
  6315. fi
  6316. # Install a library built with a cross compiler in $(tooldir) rather
  6317. # than $(libdir).
  6318. if test -z "${with_cross_host}"; then
  6319. INSTALL_DEST=libdir
  6320. else
  6321. INSTALL_DEST=tooldir
  6322. fi
  6323. L=""
  6324. for l in x $LIBOBJS; do
  6325. case $l in
  6326. x) ;;
  6327. *) L="$L ./$l" ;;
  6328. esac
  6329. done
  6330. LIBOBJS="$L"
  6331. # We need multilib support, but only if configuring for the target.
  6332. ac_config_files="$ac_config_files Makefile testsuite/Makefile"
  6333. ac_config_commands="$ac_config_commands default"
  6334. cat >confcache <<\_ACEOF
  6335. # This file is a shell script that caches the results of configure
  6336. # tests run on this system so they can be shared between configure
  6337. # scripts and configure runs, see configure's option --config-cache.
  6338. # It is not useful on other systems. If it contains results you don't
  6339. # want to keep, you may remove or edit it.
  6340. #
  6341. # config.status only pays attention to the cache file if you give it
  6342. # the --recheck option to rerun configure.
  6343. #
  6344. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6345. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6346. # following values.
  6347. _ACEOF
  6348. # The following way of writing the cache mishandles newlines in values,
  6349. # but we know of no workaround that is simple, portable, and efficient.
  6350. # So, we kill variables containing newlines.
  6351. # Ultrix sh set writes to stderr and can't be redirected directly,
  6352. # and sets the high bit in the cache file unless we assign to the vars.
  6353. (
  6354. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6355. eval ac_val=\$$ac_var
  6356. case $ac_val in #(
  6357. *${as_nl}*)
  6358. case $ac_var in #(
  6359. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6360. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6361. esac
  6362. case $ac_var in #(
  6363. _ | IFS | as_nl) ;; #(
  6364. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6365. *) { eval $ac_var=; unset $ac_var;} ;;
  6366. esac ;;
  6367. esac
  6368. done
  6369. (set) 2>&1 |
  6370. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6371. *${as_nl}ac_space=\ *)
  6372. # `set' does not quote correctly, so add quotes: double-quote
  6373. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6374. sed -n \
  6375. "s/'/'\\\\''/g;
  6376. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6377. ;; #(
  6378. *)
  6379. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6380. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6381. ;;
  6382. esac |
  6383. sort
  6384. ) |
  6385. sed '
  6386. /^ac_cv_env_/b end
  6387. t clear
  6388. :clear
  6389. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6390. t end
  6391. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6392. :end' >>confcache
  6393. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6394. if test -w "$cache_file"; then
  6395. test "x$cache_file" != "x/dev/null" &&
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6397. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6398. cat confcache >$cache_file
  6399. else
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6401. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6402. fi
  6403. fi
  6404. rm -f confcache
  6405. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6406. # Let make expand exec_prefix.
  6407. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6408. DEFS=-DHAVE_CONFIG_H
  6409. ac_libobjs=
  6410. ac_ltlibobjs=
  6411. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6412. # 1. Remove the extension, and $U if already installed.
  6413. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6414. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6415. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6416. # will be set to the directory where LIBOBJS objects are built.
  6417. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6418. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6419. done
  6420. LIBOBJS=$ac_libobjs
  6421. LTLIBOBJS=$ac_ltlibobjs
  6422. : ${CONFIG_STATUS=./config.status}
  6423. ac_write_fail=0
  6424. ac_clean_files_save=$ac_clean_files
  6425. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6427. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6428. as_write_fail=0
  6429. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6430. #! $SHELL
  6431. # Generated by $as_me.
  6432. # Run this file to recreate the current configuration.
  6433. # Compiler output produced by configure, useful for debugging
  6434. # configure, is in config.log if it exists.
  6435. debug=false
  6436. ac_cs_recheck=false
  6437. ac_cs_silent=false
  6438. SHELL=\${CONFIG_SHELL-$SHELL}
  6439. export SHELL
  6440. _ASEOF
  6441. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6442. ## -------------------- ##
  6443. ## M4sh Initialization. ##
  6444. ## -------------------- ##
  6445. # Be more Bourne compatible
  6446. DUALCASE=1; export DUALCASE # for MKS sh
  6447. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6448. emulate sh
  6449. NULLCMD=:
  6450. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6451. # is contrary to our usage. Disable this feature.
  6452. alias -g '${1+"$@"}'='"$@"'
  6453. setopt NO_GLOB_SUBST
  6454. else
  6455. case `(set -o) 2>/dev/null` in #(
  6456. *posix*) :
  6457. set -o posix ;; #(
  6458. *) :
  6459. ;;
  6460. esac
  6461. fi
  6462. as_nl='
  6463. '
  6464. export as_nl
  6465. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6466. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6467. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6468. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6469. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6470. # but without wasting forks for bash or zsh.
  6471. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6472. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6473. as_echo='print -r --'
  6474. as_echo_n='print -rn --'
  6475. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6476. as_echo='printf %s\n'
  6477. as_echo_n='printf %s'
  6478. else
  6479. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6480. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6481. as_echo_n='/usr/ucb/echo -n'
  6482. else
  6483. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6484. as_echo_n_body='eval
  6485. arg=$1;
  6486. case $arg in #(
  6487. *"$as_nl"*)
  6488. expr "X$arg" : "X\\(.*\\)$as_nl";
  6489. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6490. esac;
  6491. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6492. '
  6493. export as_echo_n_body
  6494. as_echo_n='sh -c $as_echo_n_body as_echo'
  6495. fi
  6496. export as_echo_body
  6497. as_echo='sh -c $as_echo_body as_echo'
  6498. fi
  6499. # The user is always right.
  6500. if test "${PATH_SEPARATOR+set}" != set; then
  6501. PATH_SEPARATOR=:
  6502. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6503. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6504. PATH_SEPARATOR=';'
  6505. }
  6506. fi
  6507. # IFS
  6508. # We need space, tab and new line, in precisely that order. Quoting is
  6509. # there to prevent editors from complaining about space-tab.
  6510. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6511. # splitting by setting IFS to empty value.)
  6512. IFS=" "" $as_nl"
  6513. # Find who we are. Look in the path if we contain no directory separator.
  6514. case $0 in #((
  6515. *[\\/]* ) as_myself=$0 ;;
  6516. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6517. for as_dir in $PATH
  6518. do
  6519. IFS=$as_save_IFS
  6520. test -z "$as_dir" && as_dir=.
  6521. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6522. done
  6523. IFS=$as_save_IFS
  6524. ;;
  6525. esac
  6526. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6527. # in which case we are not to be found in the path.
  6528. if test "x$as_myself" = x; then
  6529. as_myself=$0
  6530. fi
  6531. if test ! -f "$as_myself"; then
  6532. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6533. exit 1
  6534. fi
  6535. # Unset variables that we do not need and which cause bugs (e.g. in
  6536. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6537. # suppresses any "Segmentation fault" message there. '((' could
  6538. # trigger a bug in pdksh 5.2.14.
  6539. for as_var in BASH_ENV ENV MAIL MAILPATH
  6540. do eval test x\${$as_var+set} = xset \
  6541. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6542. done
  6543. PS1='$ '
  6544. PS2='> '
  6545. PS4='+ '
  6546. # NLS nuisances.
  6547. LC_ALL=C
  6548. export LC_ALL
  6549. LANGUAGE=C
  6550. export LANGUAGE
  6551. # CDPATH.
  6552. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6553. # as_fn_error ERROR [LINENO LOG_FD]
  6554. # ---------------------------------
  6555. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6556. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6557. # script with status $?, using 1 if that was 0.
  6558. as_fn_error ()
  6559. {
  6560. as_status=$?; test $as_status -eq 0 && as_status=1
  6561. if test "$3"; then
  6562. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6563. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  6564. fi
  6565. $as_echo "$as_me: error: $1" >&2
  6566. as_fn_exit $as_status
  6567. } # as_fn_error
  6568. # as_fn_set_status STATUS
  6569. # -----------------------
  6570. # Set $? to STATUS, without forking.
  6571. as_fn_set_status ()
  6572. {
  6573. return $1
  6574. } # as_fn_set_status
  6575. # as_fn_exit STATUS
  6576. # -----------------
  6577. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6578. as_fn_exit ()
  6579. {
  6580. set +e
  6581. as_fn_set_status $1
  6582. exit $1
  6583. } # as_fn_exit
  6584. # as_fn_unset VAR
  6585. # ---------------
  6586. # Portably unset VAR.
  6587. as_fn_unset ()
  6588. {
  6589. { eval $1=; unset $1;}
  6590. }
  6591. as_unset=as_fn_unset
  6592. # as_fn_append VAR VALUE
  6593. # ----------------------
  6594. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6595. # advantage of any shell optimizations that allow amortized linear growth over
  6596. # repeated appends, instead of the typical quadratic growth present in naive
  6597. # implementations.
  6598. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6599. eval 'as_fn_append ()
  6600. {
  6601. eval $1+=\$2
  6602. }'
  6603. else
  6604. as_fn_append ()
  6605. {
  6606. eval $1=\$$1\$2
  6607. }
  6608. fi # as_fn_append
  6609. # as_fn_arith ARG...
  6610. # ------------------
  6611. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6612. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6613. # must be portable across $(()) and expr.
  6614. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6615. eval 'as_fn_arith ()
  6616. {
  6617. as_val=$(( $* ))
  6618. }'
  6619. else
  6620. as_fn_arith ()
  6621. {
  6622. as_val=`expr "$@" || test $? -eq 1`
  6623. }
  6624. fi # as_fn_arith
  6625. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6626. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6627. as_expr=expr
  6628. else
  6629. as_expr=false
  6630. fi
  6631. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6632. as_basename=basename
  6633. else
  6634. as_basename=false
  6635. fi
  6636. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6637. as_dirname=dirname
  6638. else
  6639. as_dirname=false
  6640. fi
  6641. as_me=`$as_basename -- "$0" ||
  6642. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6643. X"$0" : 'X\(//\)$' \| \
  6644. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6645. $as_echo X/"$0" |
  6646. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6647. s//\1/
  6648. q
  6649. }
  6650. /^X\/\(\/\/\)$/{
  6651. s//\1/
  6652. q
  6653. }
  6654. /^X\/\(\/\).*/{
  6655. s//\1/
  6656. q
  6657. }
  6658. s/.*/./; q'`
  6659. # Avoid depending upon Character Ranges.
  6660. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6661. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6662. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6663. as_cr_digits='0123456789'
  6664. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6665. ECHO_C= ECHO_N= ECHO_T=
  6666. case `echo -n x` in #(((((
  6667. -n*)
  6668. case `echo 'xy\c'` in
  6669. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6670. xy) ECHO_C='\c';;
  6671. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6672. ECHO_T=' ';;
  6673. esac;;
  6674. *)
  6675. ECHO_N='-n';;
  6676. esac
  6677. rm -f conf$$ conf$$.exe conf$$.file
  6678. if test -d conf$$.dir; then
  6679. rm -f conf$$.dir/conf$$.file
  6680. else
  6681. rm -f conf$$.dir
  6682. mkdir conf$$.dir 2>/dev/null
  6683. fi
  6684. if (echo >conf$$.file) 2>/dev/null; then
  6685. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6686. as_ln_s='ln -s'
  6687. # ... but there are two gotchas:
  6688. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6689. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6690. # In both cases, we have to default to `cp -p'.
  6691. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6692. as_ln_s='cp -p'
  6693. elif ln conf$$.file conf$$ 2>/dev/null; then
  6694. as_ln_s=ln
  6695. else
  6696. as_ln_s='cp -p'
  6697. fi
  6698. else
  6699. as_ln_s='cp -p'
  6700. fi
  6701. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6702. rmdir conf$$.dir 2>/dev/null
  6703. # as_fn_mkdir_p
  6704. # -------------
  6705. # Create "$as_dir" as a directory, including parents if necessary.
  6706. as_fn_mkdir_p ()
  6707. {
  6708. case $as_dir in #(
  6709. -*) as_dir=./$as_dir;;
  6710. esac
  6711. test -d "$as_dir" || eval $as_mkdir_p || {
  6712. as_dirs=
  6713. while :; do
  6714. case $as_dir in #(
  6715. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6716. *) as_qdir=$as_dir;;
  6717. esac
  6718. as_dirs="'$as_qdir' $as_dirs"
  6719. as_dir=`$as_dirname -- "$as_dir" ||
  6720. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6721. X"$as_dir" : 'X\(//\)[^/]' \| \
  6722. X"$as_dir" : 'X\(//\)$' \| \
  6723. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6724. $as_echo X"$as_dir" |
  6725. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6726. s//\1/
  6727. q
  6728. }
  6729. /^X\(\/\/\)[^/].*/{
  6730. s//\1/
  6731. q
  6732. }
  6733. /^X\(\/\/\)$/{
  6734. s//\1/
  6735. q
  6736. }
  6737. /^X\(\/\).*/{
  6738. s//\1/
  6739. q
  6740. }
  6741. s/.*/./; q'`
  6742. test -d "$as_dir" && break
  6743. done
  6744. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6745. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  6746. } # as_fn_mkdir_p
  6747. if mkdir -p . 2>/dev/null; then
  6748. as_mkdir_p='mkdir -p "$as_dir"'
  6749. else
  6750. test -d ./-p && rmdir ./-p
  6751. as_mkdir_p=false
  6752. fi
  6753. if test -x / >/dev/null 2>&1; then
  6754. as_test_x='test -x'
  6755. else
  6756. if ls -dL / >/dev/null 2>&1; then
  6757. as_ls_L_option=L
  6758. else
  6759. as_ls_L_option=
  6760. fi
  6761. as_test_x='
  6762. eval sh -c '\''
  6763. if test -d "$1"; then
  6764. test -d "$1/.";
  6765. else
  6766. case $1 in #(
  6767. -*)set "./$1";;
  6768. esac;
  6769. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  6770. ???[sx]*):;;*)false;;esac;fi
  6771. '\'' sh
  6772. '
  6773. fi
  6774. as_executable_p=$as_test_x
  6775. # Sed expression to map a string onto a valid CPP name.
  6776. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6777. # Sed expression to map a string onto a valid variable name.
  6778. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6779. exec 6>&1
  6780. ## ----------------------------------- ##
  6781. ## Main body of $CONFIG_STATUS script. ##
  6782. ## ----------------------------------- ##
  6783. _ASEOF
  6784. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6785. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6786. # Save the log message, to keep $0 and so on meaningful, and to
  6787. # report actual input values of CONFIG_FILES etc. instead of their
  6788. # values after options handling.
  6789. ac_log="
  6790. This file was extended by $as_me, which was
  6791. generated by GNU Autoconf 2.64. Invocation command line was
  6792. CONFIG_FILES = $CONFIG_FILES
  6793. CONFIG_HEADERS = $CONFIG_HEADERS
  6794. CONFIG_LINKS = $CONFIG_LINKS
  6795. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6796. $ $0 $@
  6797. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6798. "
  6799. _ACEOF
  6800. case $ac_config_files in *"
  6801. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6802. esac
  6803. case $ac_config_headers in *"
  6804. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6805. esac
  6806. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6807. # Files that config.status was made for.
  6808. config_files="$ac_config_files"
  6809. config_headers="$ac_config_headers"
  6810. config_commands="$ac_config_commands"
  6811. _ACEOF
  6812. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6813. ac_cs_usage="\
  6814. \`$as_me' instantiates files and other configuration actions
  6815. from templates according to the current configuration. Unless the files
  6816. and actions are specified as TAGs, all are instantiated by default.
  6817. Usage: $0 [OPTION]... [TAG]...
  6818. -h, --help print this help, then exit
  6819. -V, --version print version number and configuration settings, then exit
  6820. -q, --quiet, --silent
  6821. do not print progress messages
  6822. -d, --debug don't remove temporary files
  6823. --recheck update $as_me by reconfiguring in the same conditions
  6824. --file=FILE[:TEMPLATE]
  6825. instantiate the configuration file FILE
  6826. --header=FILE[:TEMPLATE]
  6827. instantiate the configuration header FILE
  6828. Configuration files:
  6829. $config_files
  6830. Configuration headers:
  6831. $config_headers
  6832. Configuration commands:
  6833. $config_commands
  6834. Report bugs to the package provider."
  6835. _ACEOF
  6836. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6837. ac_cs_version="\\
  6838. config.status
  6839. configured by $0, generated by GNU Autoconf 2.64,
  6840. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  6841. Copyright (C) 2009 Free Software Foundation, Inc.
  6842. This config.status script is free software; the Free Software Foundation
  6843. gives unlimited permission to copy, distribute and modify it."
  6844. ac_pwd='$ac_pwd'
  6845. srcdir='$srcdir'
  6846. INSTALL='$INSTALL'
  6847. test -n "\$AWK" || AWK=awk
  6848. _ACEOF
  6849. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6850. # The default lists apply if the user does not specify any file.
  6851. ac_need_defaults=:
  6852. while test $# != 0
  6853. do
  6854. case $1 in
  6855. --*=*)
  6856. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6857. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6858. ac_shift=:
  6859. ;;
  6860. *)
  6861. ac_option=$1
  6862. ac_optarg=$2
  6863. ac_shift=shift
  6864. ;;
  6865. esac
  6866. case $ac_option in
  6867. # Handling of the options.
  6868. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6869. ac_cs_recheck=: ;;
  6870. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6871. $as_echo "$ac_cs_version"; exit ;;
  6872. --debug | --debu | --deb | --de | --d | -d )
  6873. debug=: ;;
  6874. --file | --fil | --fi | --f )
  6875. $ac_shift
  6876. case $ac_optarg in
  6877. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6878. esac
  6879. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6880. ac_need_defaults=false;;
  6881. --header | --heade | --head | --hea )
  6882. $ac_shift
  6883. case $ac_optarg in
  6884. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6885. esac
  6886. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6887. ac_need_defaults=false;;
  6888. --he | --h)
  6889. # Conflict between --help and --header
  6890. as_fn_error "ambiguous option: \`$1'
  6891. Try \`$0 --help' for more information.";;
  6892. --help | --hel | -h )
  6893. $as_echo "$ac_cs_usage"; exit ;;
  6894. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6895. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6896. ac_cs_silent=: ;;
  6897. # This is an error.
  6898. -*) as_fn_error "unrecognized option: \`$1'
  6899. Try \`$0 --help' for more information." ;;
  6900. *) as_fn_append ac_config_targets " $1"
  6901. ac_need_defaults=false ;;
  6902. esac
  6903. shift
  6904. done
  6905. ac_configure_extra_args=
  6906. if $ac_cs_silent; then
  6907. exec 6>/dev/null
  6908. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6909. fi
  6910. _ACEOF
  6911. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6912. if \$ac_cs_recheck; then
  6913. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6914. shift
  6915. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6916. CONFIG_SHELL='$SHELL'
  6917. export CONFIG_SHELL
  6918. exec "\$@"
  6919. fi
  6920. _ACEOF
  6921. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6922. exec 5>>config.log
  6923. {
  6924. echo
  6925. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6926. ## Running $as_me. ##
  6927. _ASBOX
  6928. $as_echo "$ac_log"
  6929. } >&5
  6930. _ACEOF
  6931. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6932. #
  6933. # INIT-COMMANDS
  6934. #
  6935. srcdir=${srcdir}
  6936. host=${host}
  6937. target=${target}
  6938. with_target_subdir=${with_target_subdir}
  6939. with_multisubdir=${with_multisubdir}
  6940. ac_configure_args="--enable-multilib ${ac_configure_args}"
  6941. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  6942. ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
  6943. libiberty_topdir=${libiberty_topdir}
  6944. _ACEOF
  6945. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6946. # Handling of arguments.
  6947. for ac_config_target in $ac_config_targets
  6948. do
  6949. case $ac_config_target in
  6950. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  6951. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6952. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  6953. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  6954. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  6955. esac
  6956. done
  6957. # If the user did not use the arguments to specify the items to instantiate,
  6958. # then the envvar interface is used. Set only those that are not.
  6959. # We use the long form for the default assignment because of an extremely
  6960. # bizarre bug on SunOS 4.1.3.
  6961. if $ac_need_defaults; then
  6962. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6963. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6964. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  6965. fi
  6966. # Have a temporary directory for convenience. Make it in the build tree
  6967. # simply because there is no reason against having it here, and in addition,
  6968. # creating and moving files from /tmp can sometimes cause problems.
  6969. # Hook for its removal unless debugging.
  6970. # Note that there is a small window in which the directory will not be cleaned:
  6971. # after its creation but before its name has been assigned to `$tmp'.
  6972. $debug ||
  6973. {
  6974. tmp=
  6975. trap 'exit_status=$?
  6976. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  6977. ' 0
  6978. trap 'as_fn_exit 1' 1 2 13 15
  6979. }
  6980. # Create a (secure) tmp directory for tmp files.
  6981. {
  6982. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6983. test -n "$tmp" && test -d "$tmp"
  6984. } ||
  6985. {
  6986. tmp=./conf$$-$RANDOM
  6987. (umask 077 && mkdir "$tmp")
  6988. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  6989. # Set up the scripts for CONFIG_FILES section.
  6990. # No need to generate them if there are no CONFIG_FILES.
  6991. # This happens for instance with `./config.status config.h'.
  6992. if test -n "$CONFIG_FILES"; then
  6993. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  6994. ac_cs_awk_getline=:
  6995. ac_cs_awk_pipe_init=
  6996. ac_cs_awk_read_file='
  6997. while ((getline aline < (F[key])) > 0)
  6998. print(aline)
  6999. close(F[key])'
  7000. ac_cs_awk_pipe_fini=
  7001. else
  7002. ac_cs_awk_getline=false
  7003. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  7004. ac_cs_awk_read_file='
  7005. print "|#_!!_#|"
  7006. print "cat " F[key] " &&"
  7007. '$ac_cs_awk_pipe_init
  7008. # The final `:' finishes the AND list.
  7009. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  7010. fi
  7011. ac_cr=`echo X | tr X '\015'`
  7012. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7013. # But we know of no other shell where ac_cr would be empty at this
  7014. # point, so we can use a bashism as a fallback.
  7015. if test "x$ac_cr" = x; then
  7016. eval ac_cr=\$\'\\r\'
  7017. fi
  7018. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7019. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7020. ac_cs_awk_cr='\r'
  7021. else
  7022. ac_cs_awk_cr=$ac_cr
  7023. fi
  7024. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  7025. _ACEOF
  7026. # Create commands to substitute file output variables.
  7027. {
  7028. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  7029. echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
  7030. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  7031. echo "_ACAWK" &&
  7032. echo "_ACEOF"
  7033. } >conf$$files.sh &&
  7034. . ./conf$$files.sh ||
  7035. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7036. rm -f conf$$files.sh
  7037. {
  7038. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7039. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7040. echo "_ACEOF"
  7041. } >conf$$subs.sh ||
  7042. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7043. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  7044. ac_delim='%!_!# '
  7045. for ac_last_try in false false false false false :; do
  7046. . ./conf$$subs.sh ||
  7047. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7048. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7049. if test $ac_delim_n = $ac_delim_num; then
  7050. break
  7051. elif $ac_last_try; then
  7052. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7053. else
  7054. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7055. fi
  7056. done
  7057. rm -f conf$$subs.sh
  7058. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7059. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  7060. _ACEOF
  7061. sed -n '
  7062. h
  7063. s/^/S["/; s/!.*/"]=/
  7064. p
  7065. g
  7066. s/^[^!]*!//
  7067. :repl
  7068. t repl
  7069. s/'"$ac_delim"'$//
  7070. t delim
  7071. :nl
  7072. h
  7073. s/\(.\{148\}\).*/\1/
  7074. t more1
  7075. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7076. p
  7077. n
  7078. b repl
  7079. :more1
  7080. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7081. p
  7082. g
  7083. s/.\{148\}//
  7084. t nl
  7085. :delim
  7086. h
  7087. s/\(.\{148\}\).*/\1/
  7088. t more2
  7089. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7090. p
  7091. b
  7092. :more2
  7093. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7094. p
  7095. g
  7096. s/.\{148\}//
  7097. t delim
  7098. ' <conf$$subs.awk | sed '
  7099. /^[^""]/{
  7100. N
  7101. s/\n//
  7102. }
  7103. ' >>$CONFIG_STATUS || ac_write_fail=1
  7104. rm -f conf$$subs.awk
  7105. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7106. _ACAWK
  7107. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  7108. for (key in S) S_is_set[key] = 1
  7109. FS = ""
  7110. \$ac_cs_awk_pipe_init
  7111. }
  7112. {
  7113. line = $ 0
  7114. nfields = split(line, field, "@")
  7115. substed = 0
  7116. len = length(field[1])
  7117. for (i = 2; i < nfields; i++) {
  7118. key = field[i]
  7119. keylen = length(key)
  7120. if (S_is_set[key]) {
  7121. value = S[key]
  7122. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7123. len += length(value) + length(field[++i])
  7124. substed = 1
  7125. } else
  7126. len += 1 + keylen
  7127. }
  7128. if (nfields == 3 && !substed) {
  7129. key = field[2]
  7130. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  7131. \$ac_cs_awk_read_file
  7132. next
  7133. }
  7134. }
  7135. print line
  7136. }
  7137. \$ac_cs_awk_pipe_fini
  7138. _ACAWK
  7139. _ACEOF
  7140. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7141. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7142. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7143. else
  7144. cat
  7145. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  7146. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  7147. _ACEOF
  7148. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  7149. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  7150. # trailing colons and then remove the whole line if VPATH becomes empty
  7151. # (actually we leave an empty line to preserve line numbers).
  7152. if test "x$srcdir" = x.; then
  7153. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  7154. s/:*\$(srcdir):*/:/
  7155. s/:*\${srcdir}:*/:/
  7156. s/:*@srcdir@:*/:/
  7157. s/^\([^=]*=[ ]*\):*/\1/
  7158. s/:*$//
  7159. s/^[^=]*=[ ]*$//
  7160. }'
  7161. fi
  7162. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7163. fi # test -n "$CONFIG_FILES"
  7164. # Set up the scripts for CONFIG_HEADERS section.
  7165. # No need to generate them if there are no CONFIG_HEADERS.
  7166. # This happens for instance with `./config.status Makefile'.
  7167. if test -n "$CONFIG_HEADERS"; then
  7168. cat >"$tmp/defines.awk" <<\_ACAWK ||
  7169. BEGIN {
  7170. _ACEOF
  7171. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7172. # here-document in config.status, that substitutes the proper values into
  7173. # config.h.in to produce config.h.
  7174. # Create a delimiter string that does not exist in confdefs.h, to ease
  7175. # handling of long lines.
  7176. ac_delim='%!_!# '
  7177. for ac_last_try in false false :; do
  7178. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  7179. if test -z "$ac_t"; then
  7180. break
  7181. elif $ac_last_try; then
  7182. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  7183. else
  7184. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7185. fi
  7186. done
  7187. # For the awk script, D is an array of macro values keyed by name,
  7188. # likewise P contains macro parameters if any. Preserve backslash
  7189. # newline sequences.
  7190. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7191. sed -n '
  7192. s/.\{148\}/&'"$ac_delim"'/g
  7193. t rset
  7194. :rset
  7195. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7196. t def
  7197. d
  7198. :def
  7199. s/\\$//
  7200. t bsnl
  7201. s/["\\]/\\&/g
  7202. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7203. D["\1"]=" \3"/p
  7204. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7205. d
  7206. :bsnl
  7207. s/["\\]/\\&/g
  7208. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7209. D["\1"]=" \3\\\\\\n"\\/p
  7210. t cont
  7211. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7212. t cont
  7213. d
  7214. :cont
  7215. n
  7216. s/.\{148\}/&'"$ac_delim"'/g
  7217. t clear
  7218. :clear
  7219. s/\\$//
  7220. t bsnlc
  7221. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7222. d
  7223. :bsnlc
  7224. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7225. b cont
  7226. ' <confdefs.h | sed '
  7227. s/'"$ac_delim"'/"\\\
  7228. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7229. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7230. for (key in D) D_is_set[key] = 1
  7231. FS = ""
  7232. }
  7233. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7234. line = \$ 0
  7235. split(line, arg, " ")
  7236. if (arg[1] == "#") {
  7237. defundef = arg[2]
  7238. mac1 = arg[3]
  7239. } else {
  7240. defundef = substr(arg[1], 2)
  7241. mac1 = arg[2]
  7242. }
  7243. split(mac1, mac2, "(") #)
  7244. macro = mac2[1]
  7245. prefix = substr(line, 1, index(line, defundef) - 1)
  7246. if (D_is_set[macro]) {
  7247. # Preserve the white space surrounding the "#".
  7248. print prefix "define", macro P[macro] D[macro]
  7249. next
  7250. } else {
  7251. # Replace #undef with comments. This is necessary, for example,
  7252. # in the case of _POSIX_SOURCE, which is predefined and required
  7253. # on some systems where configure will not decide to define it.
  7254. if (defundef == "undef") {
  7255. print "/*", prefix defundef, macro, "*/"
  7256. next
  7257. }
  7258. }
  7259. }
  7260. { print }
  7261. _ACAWK
  7262. _ACEOF
  7263. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7264. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  7265. fi # test -n "$CONFIG_HEADERS"
  7266. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  7267. shift
  7268. for ac_tag
  7269. do
  7270. case $ac_tag in
  7271. :[FHLC]) ac_mode=$ac_tag; continue;;
  7272. esac
  7273. case $ac_mode$ac_tag in
  7274. :[FHL]*:*);;
  7275. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7276. :[FH]-) ac_tag=-:-;;
  7277. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7278. esac
  7279. ac_save_IFS=$IFS
  7280. IFS=:
  7281. set x $ac_tag
  7282. IFS=$ac_save_IFS
  7283. shift
  7284. ac_file=$1
  7285. shift
  7286. case $ac_mode in
  7287. :L) ac_source=$1;;
  7288. :[FH])
  7289. ac_file_inputs=
  7290. for ac_f
  7291. do
  7292. case $ac_f in
  7293. -) ac_f="$tmp/stdin";;
  7294. *) # Look for the file first in the build tree, then in the source tree
  7295. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7296. # because $ac_f cannot contain `:'.
  7297. test -f "$ac_f" ||
  7298. case $ac_f in
  7299. [\\/$]*) false;;
  7300. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7301. esac ||
  7302. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7303. esac
  7304. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7305. as_fn_append ac_file_inputs " '$ac_f'"
  7306. done
  7307. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7308. # use $as_me), people would be surprised to read:
  7309. # /* config.h. Generated by config.status. */
  7310. configure_input='Generated from '`
  7311. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7312. `' by configure.'
  7313. if test x"$ac_file" != x-; then
  7314. configure_input="$ac_file. $configure_input"
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7316. $as_echo "$as_me: creating $ac_file" >&6;}
  7317. fi
  7318. # Neutralize special characters interpreted by sed in replacement strings.
  7319. case $configure_input in #(
  7320. *\&* | *\|* | *\\* )
  7321. ac_sed_conf_input=`$as_echo "$configure_input" |
  7322. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7323. *) ac_sed_conf_input=$configure_input;;
  7324. esac
  7325. case $ac_tag in
  7326. *:-:* | *:-) cat >"$tmp/stdin" \
  7327. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  7328. esac
  7329. ;;
  7330. esac
  7331. ac_dir=`$as_dirname -- "$ac_file" ||
  7332. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7333. X"$ac_file" : 'X\(//\)[^/]' \| \
  7334. X"$ac_file" : 'X\(//\)$' \| \
  7335. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7336. $as_echo X"$ac_file" |
  7337. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7338. s//\1/
  7339. q
  7340. }
  7341. /^X\(\/\/\)[^/].*/{
  7342. s//\1/
  7343. q
  7344. }
  7345. /^X\(\/\/\)$/{
  7346. s//\1/
  7347. q
  7348. }
  7349. /^X\(\/\).*/{
  7350. s//\1/
  7351. q
  7352. }
  7353. s/.*/./; q'`
  7354. as_dir="$ac_dir"; as_fn_mkdir_p
  7355. ac_builddir=.
  7356. case "$ac_dir" in
  7357. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7358. *)
  7359. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7360. # A ".." for each directory in $ac_dir_suffix.
  7361. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7362. case $ac_top_builddir_sub in
  7363. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7364. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7365. esac ;;
  7366. esac
  7367. ac_abs_top_builddir=$ac_pwd
  7368. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7369. # for backward compatibility:
  7370. ac_top_builddir=$ac_top_build_prefix
  7371. case $srcdir in
  7372. .) # We are building in place.
  7373. ac_srcdir=.
  7374. ac_top_srcdir=$ac_top_builddir_sub
  7375. ac_abs_top_srcdir=$ac_pwd ;;
  7376. [\\/]* | ?:[\\/]* ) # Absolute name.
  7377. ac_srcdir=$srcdir$ac_dir_suffix;
  7378. ac_top_srcdir=$srcdir
  7379. ac_abs_top_srcdir=$srcdir ;;
  7380. *) # Relative name.
  7381. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7382. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7383. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7384. esac
  7385. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7386. case $ac_mode in
  7387. :F)
  7388. #
  7389. # CONFIG_FILE
  7390. #
  7391. case $INSTALL in
  7392. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7393. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  7394. esac
  7395. _ACEOF
  7396. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7397. # If the template does not know about datarootdir, expand it.
  7398. # FIXME: This hack should be removed a few years after 2.60.
  7399. ac_datarootdir_hack=; ac_datarootdir_seen=
  7400. ac_sed_dataroot='
  7401. /datarootdir/ {
  7402. p
  7403. q
  7404. }
  7405. /@datadir@/p
  7406. /@docdir@/p
  7407. /@infodir@/p
  7408. /@localedir@/p
  7409. /@mandir@/p'
  7410. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7411. *datarootdir*) ac_datarootdir_seen=yes;;
  7412. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7414. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7415. _ACEOF
  7416. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7417. ac_datarootdir_hack='
  7418. s&@datadir@&$datadir&g
  7419. s&@docdir@&$docdir&g
  7420. s&@infodir@&$infodir&g
  7421. s&@localedir@&$localedir&g
  7422. s&@mandir@&$mandir&g
  7423. s&\\\${datarootdir}&$datarootdir&g' ;;
  7424. esac
  7425. _ACEOF
  7426. # Neutralize VPATH when `$srcdir' = `.'.
  7427. # Shell code in configure.ac might set extrasub.
  7428. # FIXME: do we really want to maintain this feature?
  7429. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7430. ac_sed_extra="$ac_vpsub
  7431. $extrasub
  7432. _ACEOF
  7433. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7434. :t
  7435. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7436. s|@configure_input@|$ac_sed_conf_input|;t t
  7437. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7438. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7439. s&@srcdir@&$ac_srcdir&;t t
  7440. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7441. s&@top_srcdir@&$ac_top_srcdir&;t t
  7442. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7443. s&@builddir@&$ac_builddir&;t t
  7444. s&@abs_builddir@&$ac_abs_builddir&;t t
  7445. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7446. s&@INSTALL@&$ac_INSTALL&;t t
  7447. $ac_datarootdir_hack
  7448. "
  7449. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  7450. if $ac_cs_awk_getline; then
  7451. $AWK -f "$tmp/subs.awk"
  7452. else
  7453. $AWK -f "$tmp/subs.awk" | $SHELL
  7454. fi >$tmp/out \
  7455. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7456. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7457. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  7458. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7460. which seems to be undefined. Please make sure it is defined." >&5
  7461. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7462. which seems to be undefined. Please make sure it is defined." >&2;}
  7463. rm -f "$tmp/stdin"
  7464. case $ac_file in
  7465. -) cat "$tmp/out" && rm -f "$tmp/out";;
  7466. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  7467. esac \
  7468. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7469. ;;
  7470. :H)
  7471. #
  7472. # CONFIG_HEADER
  7473. #
  7474. if test x"$ac_file" != x-; then
  7475. {
  7476. $as_echo "/* $configure_input */" \
  7477. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  7478. } >"$tmp/config.h" \
  7479. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7480. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  7481. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7482. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7483. else
  7484. rm -f "$ac_file"
  7485. mv "$tmp/config.h" "$ac_file" \
  7486. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7487. fi
  7488. else
  7489. $as_echo "/* $configure_input */" \
  7490. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  7491. || as_fn_error "could not create -" "$LINENO" 5
  7492. fi
  7493. ;;
  7494. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  7495. $as_echo "$as_me: executing $ac_file commands" >&6;}
  7496. ;;
  7497. esac
  7498. case $ac_file$ac_mode in
  7499. "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  7500. if test -n "$CONFIG_FILES"; then
  7501. if test -n "${with_target_subdir}"; then
  7502. # FIXME: We shouldn't need to set ac_file
  7503. ac_file=Makefile
  7504. LD="${ORIGINAL_LD_FOR_MULTILIBS}"
  7505. . ${libiberty_topdir}/config-ml.in
  7506. fi
  7507. fi ;;
  7508. esac
  7509. done # for ac_tag
  7510. as_fn_exit 0
  7511. _ACEOF
  7512. ac_clean_files=$ac_clean_files_save
  7513. test $ac_write_fail = 0 ||
  7514. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7515. # configure is writing to config.log, and then calls config.status.
  7516. # config.status does its own redirection, appending to config.log.
  7517. # Unfortunately, on DOS this fails, as config.log is still kept open
  7518. # by configure, so config.status won't be able to write to it; its
  7519. # output is simply discarded. So we exec the FD to /dev/null,
  7520. # effectively closing config.log, so it can be properly (re)opened and
  7521. # appended to by config.status. When coming back to configure, we
  7522. # need to make the FD available again.
  7523. if test "$no_create" != yes; then
  7524. ac_cs_success=:
  7525. ac_config_status_args=
  7526. test "$silent" = yes &&
  7527. ac_config_status_args="$ac_config_status_args --quiet"
  7528. exec 5>/dev/null
  7529. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7530. exec 5>>config.log
  7531. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7532. # would make configure fail if this is the last instruction.
  7533. $ac_cs_success || as_fn_exit $?
  7534. fi
  7535. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7537. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7538. fi