configure 244 KB

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