configure 183 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for libdecnumber .
  4. #
  5. # Report bugs to <gcc-bugs@gcc.gnu.org>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  214. $0: gcc-bugs@gcc.gnu.org about your system, including any
  215. $0: error possibly output before this message. Then install
  216. $0: a modern shell, or manually run the script under such a
  217. $0: shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. exec 7<&0 </dev/null 6>&1
  487. # Name of the host.
  488. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  489. # so uname gets run too.
  490. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  491. #
  492. # Initializations.
  493. #
  494. ac_default_prefix=/usr/local
  495. ac_clean_files=
  496. ac_config_libobj_dir=.
  497. LIBOBJS=
  498. cross_compiling=no
  499. subdirs=
  500. MFLAGS=
  501. MAKEFLAGS=
  502. # Identity of this package.
  503. PACKAGE_NAME='libdecnumber'
  504. PACKAGE_TARNAME='libdecnumber'
  505. PACKAGE_VERSION=' '
  506. PACKAGE_STRING='libdecnumber '
  507. PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
  508. PACKAGE_URL=''
  509. ac_unique_file="decNumber.h"
  510. # Factoring default headers for most tests.
  511. ac_includes_default="\
  512. #include <stdio.h>
  513. #ifdef HAVE_SYS_TYPES_H
  514. # include <sys/types.h>
  515. #endif
  516. #ifdef HAVE_SYS_STAT_H
  517. # include <sys/stat.h>
  518. #endif
  519. #ifdef STDC_HEADERS
  520. # include <stdlib.h>
  521. # include <stddef.h>
  522. #else
  523. # ifdef HAVE_STDLIB_H
  524. # include <stdlib.h>
  525. # endif
  526. #endif
  527. #ifdef HAVE_STRING_H
  528. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  529. # include <memory.h>
  530. # endif
  531. # include <string.h>
  532. #endif
  533. #ifdef HAVE_STRINGS_H
  534. # include <strings.h>
  535. #endif
  536. #ifdef HAVE_INTTYPES_H
  537. # include <inttypes.h>
  538. #endif
  539. #ifdef HAVE_STDINT_H
  540. # include <stdint.h>
  541. #endif
  542. #ifdef HAVE_UNISTD_H
  543. # include <unistd.h>
  544. #endif"
  545. ac_subst_vars='LTLIBOBJS
  546. LIBOBJS
  547. PICFLAG
  548. ADDITIONAL_OBJS
  549. enable_decimal_float
  550. target_os
  551. target_vendor
  552. target_cpu
  553. target
  554. host_os
  555. host_vendor
  556. host_cpu
  557. host
  558. build_os
  559. build_vendor
  560. build_cpu
  561. build
  562. MAINT
  563. EGREP
  564. GREP
  565. CPP
  566. WERROR
  567. WARN_PEDANTIC
  568. WARN_CFLAGS
  569. AUTOHEADER
  570. AUTOCONF
  571. ACLOCAL
  572. RANLIB
  573. OBJEXT
  574. EXEEXT
  575. ac_ct_CC
  576. CPPFLAGS
  577. LDFLAGS
  578. CFLAGS
  579. CC
  580. SET_MAKE
  581. target_alias
  582. host_alias
  583. build_alias
  584. LIBS
  585. ECHO_T
  586. ECHO_N
  587. ECHO_C
  588. DEFS
  589. mandir
  590. localedir
  591. libdir
  592. psdir
  593. pdfdir
  594. dvidir
  595. htmldir
  596. infodir
  597. docdir
  598. oldincludedir
  599. includedir
  600. localstatedir
  601. sharedstatedir
  602. sysconfdir
  603. datadir
  604. datarootdir
  605. libexecdir
  606. sbindir
  607. bindir
  608. program_transform_name
  609. prefix
  610. exec_prefix
  611. PACKAGE_URL
  612. PACKAGE_BUGREPORT
  613. PACKAGE_STRING
  614. PACKAGE_VERSION
  615. PACKAGE_TARNAME
  616. PACKAGE_NAME
  617. PATH_SEPARATOR
  618. SHELL'
  619. ac_subst_files=''
  620. ac_user_opts='
  621. enable_option_checking
  622. enable_werror_always
  623. enable_maintainer_mode
  624. enable_decimal_float
  625. enable_host_shared
  626. '
  627. ac_precious_vars='build_alias
  628. host_alias
  629. target_alias
  630. CC
  631. CFLAGS
  632. LDFLAGS
  633. LIBS
  634. CPPFLAGS
  635. CPP'
  636. # Initialize some variables set by options.
  637. ac_init_help=
  638. ac_init_version=false
  639. ac_unrecognized_opts=
  640. ac_unrecognized_sep=
  641. # The variables have the same names as the options, with
  642. # dashes changed to underlines.
  643. cache_file=/dev/null
  644. exec_prefix=NONE
  645. no_create=
  646. no_recursion=
  647. prefix=NONE
  648. program_prefix=NONE
  649. program_suffix=NONE
  650. program_transform_name=s,x,x,
  651. silent=
  652. site=
  653. srcdir=
  654. verbose=
  655. x_includes=NONE
  656. x_libraries=NONE
  657. # Installation directory options.
  658. # These are left unexpanded so users can "make install exec_prefix=/foo"
  659. # and all the variables that are supposed to be based on exec_prefix
  660. # by default will actually change.
  661. # Use braces instead of parens because sh, perl, etc. also accept them.
  662. # (The list follows the same order as the GNU Coding Standards.)
  663. bindir='${exec_prefix}/bin'
  664. sbindir='${exec_prefix}/sbin'
  665. libexecdir='${exec_prefix}/libexec'
  666. datarootdir='${prefix}/share'
  667. datadir='${datarootdir}'
  668. sysconfdir='${prefix}/etc'
  669. sharedstatedir='${prefix}/com'
  670. localstatedir='${prefix}/var'
  671. includedir='${prefix}/include'
  672. oldincludedir='/usr/include'
  673. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  674. infodir='${datarootdir}/info'
  675. htmldir='${docdir}'
  676. dvidir='${docdir}'
  677. pdfdir='${docdir}'
  678. psdir='${docdir}'
  679. libdir='${exec_prefix}/lib'
  680. localedir='${datarootdir}/locale'
  681. mandir='${datarootdir}/man'
  682. ac_prev=
  683. ac_dashdash=
  684. for ac_option
  685. do
  686. # If the previous option needs an argument, assign it.
  687. if test -n "$ac_prev"; then
  688. eval $ac_prev=\$ac_option
  689. ac_prev=
  690. continue
  691. fi
  692. case $ac_option in
  693. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  694. *) ac_optarg=yes ;;
  695. esac
  696. # Accept the important Cygnus configure options, so we can diagnose typos.
  697. case $ac_dashdash$ac_option in
  698. --)
  699. ac_dashdash=yes ;;
  700. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  701. ac_prev=bindir ;;
  702. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  703. bindir=$ac_optarg ;;
  704. -build | --build | --buil | --bui | --bu)
  705. ac_prev=build_alias ;;
  706. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  707. build_alias=$ac_optarg ;;
  708. -cache-file | --cache-file | --cache-fil | --cache-fi \
  709. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  710. ac_prev=cache_file ;;
  711. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  712. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  713. cache_file=$ac_optarg ;;
  714. --config-cache | -C)
  715. cache_file=config.cache ;;
  716. -datadir | --datadir | --datadi | --datad)
  717. ac_prev=datadir ;;
  718. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  719. datadir=$ac_optarg ;;
  720. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  721. | --dataroo | --dataro | --datar)
  722. ac_prev=datarootdir ;;
  723. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  724. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  725. datarootdir=$ac_optarg ;;
  726. -disable-* | --disable-*)
  727. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  728. # Reject names that are not valid shell variable names.
  729. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  730. as_fn_error "invalid feature name: $ac_useropt"
  731. ac_useropt_orig=$ac_useropt
  732. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  733. case $ac_user_opts in
  734. *"
  735. "enable_$ac_useropt"
  736. "*) ;;
  737. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  738. ac_unrecognized_sep=', ';;
  739. esac
  740. eval enable_$ac_useropt=no ;;
  741. -docdir | --docdir | --docdi | --doc | --do)
  742. ac_prev=docdir ;;
  743. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  744. docdir=$ac_optarg ;;
  745. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  746. ac_prev=dvidir ;;
  747. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  748. dvidir=$ac_optarg ;;
  749. -enable-* | --enable-*)
  750. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  751. # Reject names that are not valid shell variable names.
  752. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  753. as_fn_error "invalid feature name: $ac_useropt"
  754. ac_useropt_orig=$ac_useropt
  755. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  756. case $ac_user_opts in
  757. *"
  758. "enable_$ac_useropt"
  759. "*) ;;
  760. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  761. ac_unrecognized_sep=', ';;
  762. esac
  763. eval enable_$ac_useropt=\$ac_optarg ;;
  764. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  765. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  766. | --exec | --exe | --ex)
  767. ac_prev=exec_prefix ;;
  768. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  769. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  770. | --exec=* | --exe=* | --ex=*)
  771. exec_prefix=$ac_optarg ;;
  772. -gas | --gas | --ga | --g)
  773. # Obsolete; use --with-gas.
  774. with_gas=yes ;;
  775. -help | --help | --hel | --he | -h)
  776. ac_init_help=long ;;
  777. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  778. ac_init_help=recursive ;;
  779. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  780. ac_init_help=short ;;
  781. -host | --host | --hos | --ho)
  782. ac_prev=host_alias ;;
  783. -host=* | --host=* | --hos=* | --ho=*)
  784. host_alias=$ac_optarg ;;
  785. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  786. ac_prev=htmldir ;;
  787. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  788. | --ht=*)
  789. htmldir=$ac_optarg ;;
  790. -includedir | --includedir | --includedi | --included | --include \
  791. | --includ | --inclu | --incl | --inc)
  792. ac_prev=includedir ;;
  793. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  794. | --includ=* | --inclu=* | --incl=* | --inc=*)
  795. includedir=$ac_optarg ;;
  796. -infodir | --infodir | --infodi | --infod | --info | --inf)
  797. ac_prev=infodir ;;
  798. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  799. infodir=$ac_optarg ;;
  800. -libdir | --libdir | --libdi | --libd)
  801. ac_prev=libdir ;;
  802. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  803. libdir=$ac_optarg ;;
  804. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  805. | --libexe | --libex | --libe)
  806. ac_prev=libexecdir ;;
  807. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  808. | --libexe=* | --libex=* | --libe=*)
  809. libexecdir=$ac_optarg ;;
  810. -localedir | --localedir | --localedi | --localed | --locale)
  811. ac_prev=localedir ;;
  812. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  813. localedir=$ac_optarg ;;
  814. -localstatedir | --localstatedir | --localstatedi | --localstated \
  815. | --localstate | --localstat | --localsta | --localst | --locals)
  816. ac_prev=localstatedir ;;
  817. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  818. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  819. localstatedir=$ac_optarg ;;
  820. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  821. ac_prev=mandir ;;
  822. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  823. mandir=$ac_optarg ;;
  824. -nfp | --nfp | --nf)
  825. # Obsolete; use --without-fp.
  826. with_fp=no ;;
  827. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  828. | --no-cr | --no-c | -n)
  829. no_create=yes ;;
  830. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  831. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  832. no_recursion=yes ;;
  833. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  834. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  835. | --oldin | --oldi | --old | --ol | --o)
  836. ac_prev=oldincludedir ;;
  837. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  838. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  839. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  840. oldincludedir=$ac_optarg ;;
  841. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  842. ac_prev=prefix ;;
  843. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  844. prefix=$ac_optarg ;;
  845. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  846. | --program-pre | --program-pr | --program-p)
  847. ac_prev=program_prefix ;;
  848. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  849. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  850. program_prefix=$ac_optarg ;;
  851. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  852. | --program-suf | --program-su | --program-s)
  853. ac_prev=program_suffix ;;
  854. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  855. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  856. program_suffix=$ac_optarg ;;
  857. -program-transform-name | --program-transform-name \
  858. | --program-transform-nam | --program-transform-na \
  859. | --program-transform-n | --program-transform- \
  860. | --program-transform | --program-transfor \
  861. | --program-transfo | --program-transf \
  862. | --program-trans | --program-tran \
  863. | --progr-tra | --program-tr | --program-t)
  864. ac_prev=program_transform_name ;;
  865. -program-transform-name=* | --program-transform-name=* \
  866. | --program-transform-nam=* | --program-transform-na=* \
  867. | --program-transform-n=* | --program-transform-=* \
  868. | --program-transform=* | --program-transfor=* \
  869. | --program-transfo=* | --program-transf=* \
  870. | --program-trans=* | --program-tran=* \
  871. | --progr-tra=* | --program-tr=* | --program-t=*)
  872. program_transform_name=$ac_optarg ;;
  873. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  874. ac_prev=pdfdir ;;
  875. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  876. pdfdir=$ac_optarg ;;
  877. -psdir | --psdir | --psdi | --psd | --ps)
  878. ac_prev=psdir ;;
  879. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  880. psdir=$ac_optarg ;;
  881. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  882. | -silent | --silent | --silen | --sile | --sil)
  883. silent=yes ;;
  884. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  885. ac_prev=sbindir ;;
  886. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  887. | --sbi=* | --sb=*)
  888. sbindir=$ac_optarg ;;
  889. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  890. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  891. | --sharedst | --shareds | --shared | --share | --shar \
  892. | --sha | --sh)
  893. ac_prev=sharedstatedir ;;
  894. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  895. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  896. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  897. | --sha=* | --sh=*)
  898. sharedstatedir=$ac_optarg ;;
  899. -site | --site | --sit)
  900. ac_prev=site ;;
  901. -site=* | --site=* | --sit=*)
  902. site=$ac_optarg ;;
  903. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  904. ac_prev=srcdir ;;
  905. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  906. srcdir=$ac_optarg ;;
  907. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  908. | --syscon | --sysco | --sysc | --sys | --sy)
  909. ac_prev=sysconfdir ;;
  910. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  911. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  912. sysconfdir=$ac_optarg ;;
  913. -target | --target | --targe | --targ | --tar | --ta | --t)
  914. ac_prev=target_alias ;;
  915. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  916. target_alias=$ac_optarg ;;
  917. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  918. verbose=yes ;;
  919. -version | --version | --versio | --versi | --vers | -V)
  920. ac_init_version=: ;;
  921. -with-* | --with-*)
  922. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  923. # Reject names that are not valid shell variable names.
  924. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  925. as_fn_error "invalid package name: $ac_useropt"
  926. ac_useropt_orig=$ac_useropt
  927. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  928. case $ac_user_opts in
  929. *"
  930. "with_$ac_useropt"
  931. "*) ;;
  932. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  933. ac_unrecognized_sep=', ';;
  934. esac
  935. eval with_$ac_useropt=\$ac_optarg ;;
  936. -without-* | --without-*)
  937. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  938. # Reject names that are not valid shell variable names.
  939. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  940. as_fn_error "invalid package name: $ac_useropt"
  941. ac_useropt_orig=$ac_useropt
  942. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  943. case $ac_user_opts in
  944. *"
  945. "with_$ac_useropt"
  946. "*) ;;
  947. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  948. ac_unrecognized_sep=', ';;
  949. esac
  950. eval with_$ac_useropt=no ;;
  951. --x)
  952. # Obsolete; use --with-x.
  953. with_x=yes ;;
  954. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  955. | --x-incl | --x-inc | --x-in | --x-i)
  956. ac_prev=x_includes ;;
  957. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  958. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  959. x_includes=$ac_optarg ;;
  960. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  961. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  962. ac_prev=x_libraries ;;
  963. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  964. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  965. x_libraries=$ac_optarg ;;
  966. -*) as_fn_error "unrecognized option: \`$ac_option'
  967. Try \`$0 --help' for more information."
  968. ;;
  969. *=*)
  970. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  971. # Reject names that are not valid shell variable names.
  972. case $ac_envvar in #(
  973. '' | [0-9]* | *[!_$as_cr_alnum]* )
  974. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  975. esac
  976. eval $ac_envvar=\$ac_optarg
  977. export $ac_envvar ;;
  978. *)
  979. # FIXME: should be removed in autoconf 3.0.
  980. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  981. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  982. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  983. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  984. ;;
  985. esac
  986. done
  987. if test -n "$ac_prev"; then
  988. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  989. as_fn_error "missing argument to $ac_option"
  990. fi
  991. if test -n "$ac_unrecognized_opts"; then
  992. case $enable_option_checking in
  993. no) ;;
  994. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  995. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  996. esac
  997. fi
  998. # Check all directory arguments for consistency.
  999. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1000. datadir sysconfdir sharedstatedir localstatedir includedir \
  1001. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1002. libdir localedir mandir
  1003. do
  1004. eval ac_val=\$$ac_var
  1005. # Remove trailing slashes.
  1006. case $ac_val in
  1007. */ )
  1008. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1009. eval $ac_var=\$ac_val;;
  1010. esac
  1011. # Be sure to have absolute directory names.
  1012. case $ac_val in
  1013. [\\/$]* | ?:[\\/]* ) continue;;
  1014. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1015. esac
  1016. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1017. done
  1018. # There might be people who depend on the old broken behavior: `$host'
  1019. # used to hold the argument of --host etc.
  1020. # FIXME: To remove some day.
  1021. build=$build_alias
  1022. host=$host_alias
  1023. target=$target_alias
  1024. # FIXME: To remove some day.
  1025. if test "x$host_alias" != x; then
  1026. if test "x$build_alias" = x; then
  1027. cross_compiling=maybe
  1028. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1029. If a cross compiler is detected then cross compile mode will be used." >&2
  1030. elif test "x$build_alias" != "x$host_alias"; then
  1031. cross_compiling=yes
  1032. fi
  1033. fi
  1034. ac_tool_prefix=
  1035. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1036. test "$silent" = yes && exec 6>/dev/null
  1037. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1038. ac_ls_di=`ls -di .` &&
  1039. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1040. as_fn_error "working directory cannot be determined"
  1041. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1042. as_fn_error "pwd does not report name of working directory"
  1043. # Find the source files, if location was not specified.
  1044. if test -z "$srcdir"; then
  1045. ac_srcdir_defaulted=yes
  1046. # Try the directory containing this script, then the parent directory.
  1047. ac_confdir=`$as_dirname -- "$as_myself" ||
  1048. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1049. X"$as_myself" : 'X\(//\)[^/]' \| \
  1050. X"$as_myself" : 'X\(//\)$' \| \
  1051. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1052. $as_echo X"$as_myself" |
  1053. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1054. s//\1/
  1055. q
  1056. }
  1057. /^X\(\/\/\)[^/].*/{
  1058. s//\1/
  1059. q
  1060. }
  1061. /^X\(\/\/\)$/{
  1062. s//\1/
  1063. q
  1064. }
  1065. /^X\(\/\).*/{
  1066. s//\1/
  1067. q
  1068. }
  1069. s/.*/./; q'`
  1070. srcdir=$ac_confdir
  1071. if test ! -r "$srcdir/$ac_unique_file"; then
  1072. srcdir=..
  1073. fi
  1074. else
  1075. ac_srcdir_defaulted=no
  1076. fi
  1077. if test ! -r "$srcdir/$ac_unique_file"; then
  1078. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1079. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1080. fi
  1081. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1082. ac_abs_confdir=`(
  1083. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1084. pwd)`
  1085. # When building in place, set srcdir=.
  1086. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1087. srcdir=.
  1088. fi
  1089. # Remove unnecessary trailing slashes from srcdir.
  1090. # Double slashes in file names in object file debugging info
  1091. # mess up M-x gdb in Emacs.
  1092. case $srcdir in
  1093. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1094. esac
  1095. for ac_var in $ac_precious_vars; do
  1096. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1097. eval ac_env_${ac_var}_value=\$${ac_var}
  1098. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1099. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1100. done
  1101. #
  1102. # Report the --help message.
  1103. #
  1104. if test "$ac_init_help" = "long"; then
  1105. # Omit some internal or obsolete options to make the list less imposing.
  1106. # This message is too long to be a string in the A/UX 3.1 sh.
  1107. cat <<_ACEOF
  1108. \`configure' configures libdecnumber to adapt to many kinds of systems.
  1109. Usage: $0 [OPTION]... [VAR=VALUE]...
  1110. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1111. VAR=VALUE. See below for descriptions of some of the useful variables.
  1112. Defaults for the options are specified in brackets.
  1113. Configuration:
  1114. -h, --help display this help and exit
  1115. --help=short display options specific to this package
  1116. --help=recursive display the short help of all the included packages
  1117. -V, --version display version information and exit
  1118. -q, --quiet, --silent do not print \`checking...' messages
  1119. --cache-file=FILE cache test results in FILE [disabled]
  1120. -C, --config-cache alias for \`--cache-file=config.cache'
  1121. -n, --no-create do not create output files
  1122. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1123. Installation directories:
  1124. --prefix=PREFIX install architecture-independent files in PREFIX
  1125. [$ac_default_prefix]
  1126. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1127. [PREFIX]
  1128. By default, \`make install' will install all the files in
  1129. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1130. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1131. for instance \`--prefix=\$HOME'.
  1132. For better control, use the options below.
  1133. Fine tuning of the installation directories:
  1134. --bindir=DIR user executables [EPREFIX/bin]
  1135. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1136. --libexecdir=DIR program executables [EPREFIX/libexec]
  1137. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1138. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1139. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1140. --libdir=DIR object code libraries [EPREFIX/lib]
  1141. --includedir=DIR C header files [PREFIX/include]
  1142. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1143. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1144. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1145. --infodir=DIR info documentation [DATAROOTDIR/info]
  1146. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1147. --mandir=DIR man documentation [DATAROOTDIR/man]
  1148. --docdir=DIR documentation root [DATAROOTDIR/doc/libdecnumber]
  1149. --htmldir=DIR html documentation [DOCDIR]
  1150. --dvidir=DIR dvi documentation [DOCDIR]
  1151. --pdfdir=DIR pdf documentation [DOCDIR]
  1152. --psdir=DIR ps documentation [DOCDIR]
  1153. _ACEOF
  1154. cat <<\_ACEOF
  1155. System types:
  1156. --build=BUILD configure for building on BUILD [guessed]
  1157. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1158. --target=TARGET configure for building compilers for TARGET [HOST]
  1159. _ACEOF
  1160. fi
  1161. if test -n "$ac_init_help"; then
  1162. case $ac_init_help in
  1163. short | recursive ) echo "Configuration of libdecnumber :";;
  1164. esac
  1165. cat <<\_ACEOF
  1166. Optional Features:
  1167. --disable-option-checking ignore unrecognized --enable/--with options
  1168. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1169. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1170. --enable-werror-always enable -Werror despite compiler version
  1171. --enable-maintainer-mode enable rules only needed by maintainers
  1172. --enable-decimal-float={no,yes,bid,dpd}
  1173. enable decimal float extension to C. Selecting 'bid'
  1174. or 'dpd' choses which decimal floating point format
  1175. to use
  1176. --enable-host-shared build host code as shared libraries
  1177. Some influential environment variables:
  1178. CC C compiler command
  1179. CFLAGS C compiler flags
  1180. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1181. nonstandard directory <lib dir>
  1182. LIBS libraries to pass to the linker, e.g. -l<library>
  1183. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1184. you have headers in a nonstandard directory <include dir>
  1185. CPP C preprocessor
  1186. Use these variables to override the choices made by `configure' or to help
  1187. it to find libraries and programs with nonstandard names/locations.
  1188. Report bugs to <gcc-bugs@gcc.gnu.org>.
  1189. _ACEOF
  1190. ac_status=$?
  1191. fi
  1192. if test "$ac_init_help" = "recursive"; then
  1193. # If there are subdirs, report their specific --help.
  1194. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1195. test -d "$ac_dir" ||
  1196. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1197. continue
  1198. ac_builddir=.
  1199. case "$ac_dir" in
  1200. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1201. *)
  1202. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1203. # A ".." for each directory in $ac_dir_suffix.
  1204. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1205. case $ac_top_builddir_sub in
  1206. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1207. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1208. esac ;;
  1209. esac
  1210. ac_abs_top_builddir=$ac_pwd
  1211. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1212. # for backward compatibility:
  1213. ac_top_builddir=$ac_top_build_prefix
  1214. case $srcdir in
  1215. .) # We are building in place.
  1216. ac_srcdir=.
  1217. ac_top_srcdir=$ac_top_builddir_sub
  1218. ac_abs_top_srcdir=$ac_pwd ;;
  1219. [\\/]* | ?:[\\/]* ) # Absolute name.
  1220. ac_srcdir=$srcdir$ac_dir_suffix;
  1221. ac_top_srcdir=$srcdir
  1222. ac_abs_top_srcdir=$srcdir ;;
  1223. *) # Relative name.
  1224. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1225. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1226. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1227. esac
  1228. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1229. cd "$ac_dir" || { ac_status=$?; continue; }
  1230. # Check for guested configure.
  1231. if test -f "$ac_srcdir/configure.gnu"; then
  1232. echo &&
  1233. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1234. elif test -f "$ac_srcdir/configure"; then
  1235. echo &&
  1236. $SHELL "$ac_srcdir/configure" --help=recursive
  1237. else
  1238. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1239. fi || ac_status=$?
  1240. cd "$ac_pwd" || { ac_status=$?; break; }
  1241. done
  1242. fi
  1243. test -n "$ac_init_help" && exit $ac_status
  1244. if $ac_init_version; then
  1245. cat <<\_ACEOF
  1246. libdecnumber configure
  1247. generated by GNU Autoconf 2.64
  1248. Copyright (C) 2009 Free Software Foundation, Inc.
  1249. This configure script is free software; the Free Software Foundation
  1250. gives unlimited permission to copy, distribute and modify it.
  1251. _ACEOF
  1252. exit
  1253. fi
  1254. ## ------------------------ ##
  1255. ## Autoconf initialization. ##
  1256. ## ------------------------ ##
  1257. # ac_fn_c_try_compile LINENO
  1258. # --------------------------
  1259. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1260. ac_fn_c_try_compile ()
  1261. {
  1262. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1263. rm -f conftest.$ac_objext
  1264. if { { ac_try="$ac_compile"
  1265. case "(($ac_try" in
  1266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1267. *) ac_try_echo=$ac_try;;
  1268. esac
  1269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1270. $as_echo "$ac_try_echo"; } >&5
  1271. (eval "$ac_compile") 2>conftest.err
  1272. ac_status=$?
  1273. if test -s conftest.err; then
  1274. grep -v '^ *+' conftest.err >conftest.er1
  1275. cat conftest.er1 >&5
  1276. mv -f conftest.er1 conftest.err
  1277. fi
  1278. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1279. test $ac_status = 0; } && {
  1280. test -z "$ac_c_werror_flag" ||
  1281. test ! -s conftest.err
  1282. } && test -s conftest.$ac_objext; then :
  1283. ac_retval=0
  1284. else
  1285. $as_echo "$as_me: failed program was:" >&5
  1286. sed 's/^/| /' conftest.$ac_ext >&5
  1287. ac_retval=1
  1288. fi
  1289. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1290. return $ac_retval
  1291. } # ac_fn_c_try_compile
  1292. # ac_fn_c_try_cpp LINENO
  1293. # ----------------------
  1294. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1295. ac_fn_c_try_cpp ()
  1296. {
  1297. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1298. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1299. case "(($ac_try" in
  1300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1301. *) ac_try_echo=$ac_try;;
  1302. esac
  1303. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1304. $as_echo "$ac_try_echo"; } >&5
  1305. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1306. ac_status=$?
  1307. if test -s conftest.err; then
  1308. grep -v '^ *+' conftest.err >conftest.er1
  1309. cat conftest.er1 >&5
  1310. mv -f conftest.er1 conftest.err
  1311. fi
  1312. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1313. test $ac_status = 0; } >/dev/null && {
  1314. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1315. test ! -s conftest.err
  1316. }; then :
  1317. ac_retval=0
  1318. else
  1319. $as_echo "$as_me: failed program was:" >&5
  1320. sed 's/^/| /' conftest.$ac_ext >&5
  1321. ac_retval=1
  1322. fi
  1323. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1324. return $ac_retval
  1325. } # ac_fn_c_try_cpp
  1326. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1327. # -------------------------------------------------------
  1328. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1329. # the include files in INCLUDES and setting the cache variable VAR
  1330. # accordingly.
  1331. ac_fn_c_check_header_mongrel ()
  1332. {
  1333. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1334. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1336. $as_echo_n "checking for $2... " >&6; }
  1337. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1338. $as_echo_n "(cached) " >&6
  1339. fi
  1340. eval ac_res=\$$3
  1341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1342. $as_echo "$ac_res" >&6; }
  1343. else
  1344. # Is the header compilable?
  1345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1346. $as_echo_n "checking $2 usability... " >&6; }
  1347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1348. /* end confdefs.h. */
  1349. $4
  1350. #include <$2>
  1351. _ACEOF
  1352. if ac_fn_c_try_compile "$LINENO"; then :
  1353. ac_header_compiler=yes
  1354. else
  1355. ac_header_compiler=no
  1356. fi
  1357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1359. $as_echo "$ac_header_compiler" >&6; }
  1360. # Is the header present?
  1361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1362. $as_echo_n "checking $2 presence... " >&6; }
  1363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1364. /* end confdefs.h. */
  1365. #include <$2>
  1366. _ACEOF
  1367. if ac_fn_c_try_cpp "$LINENO"; then :
  1368. ac_header_preproc=yes
  1369. else
  1370. ac_header_preproc=no
  1371. fi
  1372. rm -f conftest.err conftest.$ac_ext
  1373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1374. $as_echo "$ac_header_preproc" >&6; }
  1375. # So? What about this header?
  1376. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1377. yes:no: )
  1378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1379. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1381. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1382. ;;
  1383. no:yes:* )
  1384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1385. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1386. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1387. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1389. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1391. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1393. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1394. ( cat <<\_ASBOX
  1395. ## ----------------------------------- ##
  1396. ## Report this to gcc-bugs@gcc.gnu.org ##
  1397. ## ----------------------------------- ##
  1398. _ASBOX
  1399. ) | sed "s/^/$as_me: WARNING: /" >&2
  1400. ;;
  1401. esac
  1402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1403. $as_echo_n "checking for $2... " >&6; }
  1404. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1405. $as_echo_n "(cached) " >&6
  1406. else
  1407. eval "$3=\$ac_header_compiler"
  1408. fi
  1409. eval ac_res=\$$3
  1410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1411. $as_echo "$ac_res" >&6; }
  1412. fi
  1413. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1414. } # ac_fn_c_check_header_mongrel
  1415. # ac_fn_c_try_run LINENO
  1416. # ----------------------
  1417. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1418. # that executables *can* be run.
  1419. ac_fn_c_try_run ()
  1420. {
  1421. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1422. if { { ac_try="$ac_link"
  1423. case "(($ac_try" in
  1424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1425. *) ac_try_echo=$ac_try;;
  1426. esac
  1427. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1428. $as_echo "$ac_try_echo"; } >&5
  1429. (eval "$ac_link") 2>&5
  1430. ac_status=$?
  1431. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1432. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1433. { { case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1438. $as_echo "$ac_try_echo"; } >&5
  1439. (eval "$ac_try") 2>&5
  1440. ac_status=$?
  1441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1442. test $ac_status = 0; }; }; then :
  1443. ac_retval=0
  1444. else
  1445. $as_echo "$as_me: program exited with status $ac_status" >&5
  1446. $as_echo "$as_me: failed program was:" >&5
  1447. sed 's/^/| /' conftest.$ac_ext >&5
  1448. ac_retval=$ac_status
  1449. fi
  1450. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1451. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1452. return $ac_retval
  1453. } # ac_fn_c_try_run
  1454. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1455. # -------------------------------------------------------
  1456. # Tests whether HEADER exists and can be compiled using the include files in
  1457. # INCLUDES, setting the cache variable VAR accordingly.
  1458. ac_fn_c_check_header_compile ()
  1459. {
  1460. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1462. $as_echo_n "checking for $2... " >&6; }
  1463. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1464. $as_echo_n "(cached) " >&6
  1465. else
  1466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1467. /* end confdefs.h. */
  1468. $4
  1469. #include <$2>
  1470. _ACEOF
  1471. if ac_fn_c_try_compile "$LINENO"; then :
  1472. eval "$3=yes"
  1473. else
  1474. eval "$3=no"
  1475. fi
  1476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1477. fi
  1478. eval ac_res=\$$3
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1480. $as_echo "$ac_res" >&6; }
  1481. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1482. } # ac_fn_c_check_header_compile
  1483. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1484. # -------------------------------------------
  1485. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1486. # variable VAR accordingly.
  1487. ac_fn_c_check_type ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1491. $as_echo_n "checking for $2... " >&6; }
  1492. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1493. $as_echo_n "(cached) " >&6
  1494. else
  1495. eval "$3=no"
  1496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1497. /* end confdefs.h. */
  1498. $4
  1499. int
  1500. main ()
  1501. {
  1502. if (sizeof ($2))
  1503. return 0;
  1504. ;
  1505. return 0;
  1506. }
  1507. _ACEOF
  1508. if ac_fn_c_try_compile "$LINENO"; then :
  1509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1510. /* end confdefs.h. */
  1511. $4
  1512. int
  1513. main ()
  1514. {
  1515. if (sizeof (($2)))
  1516. return 0;
  1517. ;
  1518. return 0;
  1519. }
  1520. _ACEOF
  1521. if ac_fn_c_try_compile "$LINENO"; then :
  1522. else
  1523. eval "$3=yes"
  1524. fi
  1525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1526. fi
  1527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1528. fi
  1529. eval ac_res=\$$3
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1531. $as_echo "$ac_res" >&6; }
  1532. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1533. } # ac_fn_c_check_type
  1534. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1535. # --------------------------------------------
  1536. # Tries to find the compile-time value of EXPR in a program that includes
  1537. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1538. # computed
  1539. ac_fn_c_compute_int ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. if test "$cross_compiling" = yes; then
  1543. # Depending upon the size, compute the lo and hi bounds.
  1544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1545. /* end confdefs.h. */
  1546. $4
  1547. int
  1548. main ()
  1549. {
  1550. static int test_array [1 - 2 * !(($2) >= 0)];
  1551. test_array [0] = 0
  1552. ;
  1553. return 0;
  1554. }
  1555. _ACEOF
  1556. if ac_fn_c_try_compile "$LINENO"; then :
  1557. ac_lo=0 ac_mid=0
  1558. while :; do
  1559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1560. /* end confdefs.h. */
  1561. $4
  1562. int
  1563. main ()
  1564. {
  1565. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1566. test_array [0] = 0
  1567. ;
  1568. return 0;
  1569. }
  1570. _ACEOF
  1571. if ac_fn_c_try_compile "$LINENO"; then :
  1572. ac_hi=$ac_mid; break
  1573. else
  1574. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1575. if test $ac_lo -le $ac_mid; then
  1576. ac_lo= ac_hi=
  1577. break
  1578. fi
  1579. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1580. fi
  1581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1582. done
  1583. else
  1584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1585. /* end confdefs.h. */
  1586. $4
  1587. int
  1588. main ()
  1589. {
  1590. static int test_array [1 - 2 * !(($2) < 0)];
  1591. test_array [0] = 0
  1592. ;
  1593. return 0;
  1594. }
  1595. _ACEOF
  1596. if ac_fn_c_try_compile "$LINENO"; then :
  1597. ac_hi=-1 ac_mid=-1
  1598. while :; do
  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) >= $ac_mid)];
  1606. test_array [0] = 0
  1607. ;
  1608. return 0;
  1609. }
  1610. _ACEOF
  1611. if ac_fn_c_try_compile "$LINENO"; then :
  1612. ac_lo=$ac_mid; break
  1613. else
  1614. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1615. if test $ac_mid -le $ac_hi; then
  1616. ac_lo= ac_hi=
  1617. break
  1618. fi
  1619. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1620. fi
  1621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1622. done
  1623. else
  1624. ac_lo= ac_hi=
  1625. fi
  1626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1627. fi
  1628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1629. # Binary search between lo and hi bounds.
  1630. while test "x$ac_lo" != "x$ac_hi"; do
  1631. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1633. /* end confdefs.h. */
  1634. $4
  1635. int
  1636. main ()
  1637. {
  1638. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1639. test_array [0] = 0
  1640. ;
  1641. return 0;
  1642. }
  1643. _ACEOF
  1644. if ac_fn_c_try_compile "$LINENO"; then :
  1645. ac_hi=$ac_mid
  1646. else
  1647. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1648. fi
  1649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1650. done
  1651. case $ac_lo in #((
  1652. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1653. '') ac_retval=1 ;;
  1654. esac
  1655. else
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. $4
  1659. static long int longval () { return $2; }
  1660. static unsigned long int ulongval () { return $2; }
  1661. #include <stdio.h>
  1662. #include <stdlib.h>
  1663. int
  1664. main ()
  1665. {
  1666. FILE *f = fopen ("conftest.val", "w");
  1667. if (! f)
  1668. return 1;
  1669. if (($2) < 0)
  1670. {
  1671. long int i = longval ();
  1672. if (i != ($2))
  1673. return 1;
  1674. fprintf (f, "%ld", i);
  1675. }
  1676. else
  1677. {
  1678. unsigned long int i = ulongval ();
  1679. if (i != ($2))
  1680. return 1;
  1681. fprintf (f, "%lu", i);
  1682. }
  1683. /* Do not output a trailing newline, as this causes \r\n confusion
  1684. on some platforms. */
  1685. return ferror (f) || fclose (f) != 0;
  1686. ;
  1687. return 0;
  1688. }
  1689. _ACEOF
  1690. if ac_fn_c_try_run "$LINENO"; then :
  1691. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1692. else
  1693. ac_retval=1
  1694. fi
  1695. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1696. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1697. rm -f conftest.val
  1698. fi
  1699. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1700. return $ac_retval
  1701. } # ac_fn_c_compute_int
  1702. cat >config.log <<_ACEOF
  1703. This file contains any messages produced by compilers while
  1704. running configure, to aid debugging if configure makes a mistake.
  1705. It was created by libdecnumber $as_me , which was
  1706. generated by GNU Autoconf 2.64. Invocation command line was
  1707. $ $0 $@
  1708. _ACEOF
  1709. exec 5>>config.log
  1710. {
  1711. cat <<_ASUNAME
  1712. ## --------- ##
  1713. ## Platform. ##
  1714. ## --------- ##
  1715. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1716. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1717. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1718. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1719. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1720. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1721. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1722. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1723. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1724. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1725. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1726. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1727. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1728. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1729. _ASUNAME
  1730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1731. for as_dir in $PATH
  1732. do
  1733. IFS=$as_save_IFS
  1734. test -z "$as_dir" && as_dir=.
  1735. $as_echo "PATH: $as_dir"
  1736. done
  1737. IFS=$as_save_IFS
  1738. } >&5
  1739. cat >&5 <<_ACEOF
  1740. ## ----------- ##
  1741. ## Core tests. ##
  1742. ## ----------- ##
  1743. _ACEOF
  1744. # Keep a trace of the command line.
  1745. # Strip out --no-create and --no-recursion so they do not pile up.
  1746. # Strip out --silent because we don't want to record it for future runs.
  1747. # Also quote any args containing shell meta-characters.
  1748. # Make two passes to allow for proper duplicate-argument suppression.
  1749. ac_configure_args=
  1750. ac_configure_args0=
  1751. ac_configure_args1=
  1752. ac_must_keep_next=false
  1753. for ac_pass in 1 2
  1754. do
  1755. for ac_arg
  1756. do
  1757. case $ac_arg in
  1758. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1759. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1760. | -silent | --silent | --silen | --sile | --sil)
  1761. continue ;;
  1762. *\'*)
  1763. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1764. esac
  1765. case $ac_pass in
  1766. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1767. 2)
  1768. as_fn_append ac_configure_args1 " '$ac_arg'"
  1769. if test $ac_must_keep_next = true; then
  1770. ac_must_keep_next=false # Got value, back to normal.
  1771. else
  1772. case $ac_arg in
  1773. *=* | --config-cache | -C | -disable-* | --disable-* \
  1774. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1775. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1776. | -with-* | --with-* | -without-* | --without-* | --x)
  1777. case "$ac_configure_args0 " in
  1778. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1779. esac
  1780. ;;
  1781. -* ) ac_must_keep_next=true ;;
  1782. esac
  1783. fi
  1784. as_fn_append ac_configure_args " '$ac_arg'"
  1785. ;;
  1786. esac
  1787. done
  1788. done
  1789. { ac_configure_args0=; unset ac_configure_args0;}
  1790. { ac_configure_args1=; unset ac_configure_args1;}
  1791. # When interrupted or exit'd, cleanup temporary files, and complete
  1792. # config.log. We remove comments because anyway the quotes in there
  1793. # would cause problems or look ugly.
  1794. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1795. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1796. trap 'exit_status=$?
  1797. # Save into config.log some information that might help in debugging.
  1798. {
  1799. echo
  1800. cat <<\_ASBOX
  1801. ## ---------------- ##
  1802. ## Cache variables. ##
  1803. ## ---------------- ##
  1804. _ASBOX
  1805. echo
  1806. # The following way of writing the cache mishandles newlines in values,
  1807. (
  1808. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1809. eval ac_val=\$$ac_var
  1810. case $ac_val in #(
  1811. *${as_nl}*)
  1812. case $ac_var in #(
  1813. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1814. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1815. esac
  1816. case $ac_var in #(
  1817. _ | IFS | as_nl) ;; #(
  1818. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1819. *) { eval $ac_var=; unset $ac_var;} ;;
  1820. esac ;;
  1821. esac
  1822. done
  1823. (set) 2>&1 |
  1824. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1825. *${as_nl}ac_space=\ *)
  1826. sed -n \
  1827. "s/'\''/'\''\\\\'\'''\''/g;
  1828. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1829. ;; #(
  1830. *)
  1831. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1832. ;;
  1833. esac |
  1834. sort
  1835. )
  1836. echo
  1837. cat <<\_ASBOX
  1838. ## ----------------- ##
  1839. ## Output variables. ##
  1840. ## ----------------- ##
  1841. _ASBOX
  1842. echo
  1843. for ac_var in $ac_subst_vars
  1844. do
  1845. eval ac_val=\$$ac_var
  1846. case $ac_val in
  1847. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1848. esac
  1849. $as_echo "$ac_var='\''$ac_val'\''"
  1850. done | sort
  1851. echo
  1852. if test -n "$ac_subst_files"; then
  1853. cat <<\_ASBOX
  1854. ## ------------------- ##
  1855. ## File substitutions. ##
  1856. ## ------------------- ##
  1857. _ASBOX
  1858. echo
  1859. for ac_var in $ac_subst_files
  1860. do
  1861. eval ac_val=\$$ac_var
  1862. case $ac_val in
  1863. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1864. esac
  1865. $as_echo "$ac_var='\''$ac_val'\''"
  1866. done | sort
  1867. echo
  1868. fi
  1869. if test -s confdefs.h; then
  1870. cat <<\_ASBOX
  1871. ## ----------- ##
  1872. ## confdefs.h. ##
  1873. ## ----------- ##
  1874. _ASBOX
  1875. echo
  1876. cat confdefs.h
  1877. echo
  1878. fi
  1879. test "$ac_signal" != 0 &&
  1880. $as_echo "$as_me: caught signal $ac_signal"
  1881. $as_echo "$as_me: exit $exit_status"
  1882. } >&5
  1883. rm -f core *.core core.conftest.* &&
  1884. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1885. exit $exit_status
  1886. ' 0
  1887. for ac_signal in 1 2 13 15; do
  1888. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1889. done
  1890. ac_signal=0
  1891. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1892. rm -f -r conftest* confdefs.h
  1893. $as_echo "/* confdefs.h */" > confdefs.h
  1894. # Predefined preprocessor variables.
  1895. cat >>confdefs.h <<_ACEOF
  1896. #define PACKAGE_NAME "$PACKAGE_NAME"
  1897. _ACEOF
  1898. cat >>confdefs.h <<_ACEOF
  1899. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1900. _ACEOF
  1901. cat >>confdefs.h <<_ACEOF
  1902. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1903. _ACEOF
  1904. cat >>confdefs.h <<_ACEOF
  1905. #define PACKAGE_STRING "$PACKAGE_STRING"
  1906. _ACEOF
  1907. cat >>confdefs.h <<_ACEOF
  1908. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1909. _ACEOF
  1910. cat >>confdefs.h <<_ACEOF
  1911. #define PACKAGE_URL "$PACKAGE_URL"
  1912. _ACEOF
  1913. # Let the site file select an alternate cache file if it wants to.
  1914. # Prefer an explicitly selected file to automatically selected ones.
  1915. ac_site_file1=NONE
  1916. ac_site_file2=NONE
  1917. if test -n "$CONFIG_SITE"; then
  1918. ac_site_file1=$CONFIG_SITE
  1919. elif test "x$prefix" != xNONE; then
  1920. ac_site_file1=$prefix/share/config.site
  1921. ac_site_file2=$prefix/etc/config.site
  1922. else
  1923. ac_site_file1=$ac_default_prefix/share/config.site
  1924. ac_site_file2=$ac_default_prefix/etc/config.site
  1925. fi
  1926. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1927. do
  1928. test "x$ac_site_file" = xNONE && continue
  1929. if test -r "$ac_site_file"; then
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1931. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1932. sed 's/^/| /' "$ac_site_file" >&5
  1933. . "$ac_site_file"
  1934. fi
  1935. done
  1936. if test -r "$cache_file"; then
  1937. # Some versions of bash will fail to source /dev/null (special
  1938. # files actually), so we avoid doing that.
  1939. if test -f "$cache_file"; then
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1941. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1942. case $cache_file in
  1943. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1944. *) . "./$cache_file";;
  1945. esac
  1946. fi
  1947. else
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1949. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1950. >$cache_file
  1951. fi
  1952. # Check that the precious variables saved in the cache have kept the same
  1953. # value.
  1954. ac_cache_corrupted=false
  1955. for ac_var in $ac_precious_vars; do
  1956. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1957. eval ac_new_set=\$ac_env_${ac_var}_set
  1958. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1959. eval ac_new_val=\$ac_env_${ac_var}_value
  1960. case $ac_old_set,$ac_new_set in
  1961. set,)
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1963. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1964. ac_cache_corrupted=: ;;
  1965. ,set)
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1967. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1968. ac_cache_corrupted=: ;;
  1969. ,);;
  1970. *)
  1971. if test "x$ac_old_val" != "x$ac_new_val"; then
  1972. # differences in whitespace do not lead to failure.
  1973. ac_old_val_w=`echo x $ac_old_val`
  1974. ac_new_val_w=`echo x $ac_new_val`
  1975. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1977. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1978. ac_cache_corrupted=:
  1979. else
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1981. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1982. eval $ac_var=\$ac_old_val
  1983. fi
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1985. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1987. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1988. fi;;
  1989. esac
  1990. # Pass precious variables to config.status.
  1991. if test "$ac_new_set" = set; then
  1992. case $ac_new_val in
  1993. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1994. *) ac_arg=$ac_var=$ac_new_val ;;
  1995. esac
  1996. case " $ac_configure_args " in
  1997. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1998. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1999. esac
  2000. fi
  2001. done
  2002. if $ac_cache_corrupted; then
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2004. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2006. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2007. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2008. fi
  2009. ## -------------------- ##
  2010. ## Main body of script. ##
  2011. ## -------------------- ##
  2012. ac_ext=c
  2013. ac_cpp='$CPP $CPPFLAGS'
  2014. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2015. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2016. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2017. ac_aux_dir=
  2018. for ac_dir in .. "$srcdir"/..; do
  2019. for ac_t in install-sh install.sh shtool; do
  2020. if test -f "$ac_dir/$ac_t"; then
  2021. ac_aux_dir=$ac_dir
  2022. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2023. break 2
  2024. fi
  2025. done
  2026. done
  2027. if test -z "$ac_aux_dir"; then
  2028. as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
  2029. fi
  2030. # These three variables are undocumented and unsupported,
  2031. # and are intended to be withdrawn in a future Autoconf release.
  2032. # They can cause serious problems if a builder's source tree is in a directory
  2033. # whose full name contains unusual characters.
  2034. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2035. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2036. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2037. # Checks for programs.
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2039. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2040. set x ${MAKE-make}
  2041. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2042. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2043. $as_echo_n "(cached) " >&6
  2044. else
  2045. cat >conftest.make <<\_ACEOF
  2046. SHELL = /bin/sh
  2047. all:
  2048. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2049. _ACEOF
  2050. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2051. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2052. *@@@%%%=?*=@@@%%%*)
  2053. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2054. *)
  2055. eval ac_cv_prog_make_${ac_make}_set=no;;
  2056. esac
  2057. rm -f conftest.make
  2058. fi
  2059. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2061. $as_echo "yes" >&6; }
  2062. SET_MAKE=
  2063. else
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2065. $as_echo "no" >&6; }
  2066. SET_MAKE="MAKE=${MAKE-make}"
  2067. fi
  2068. ac_ext=c
  2069. ac_cpp='$CPP $CPPFLAGS'
  2070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2073. if test -n "$ac_tool_prefix"; then
  2074. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2075. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2077. $as_echo_n "checking for $ac_word... " >&6; }
  2078. if test "${ac_cv_prog_CC+set}" = set; then :
  2079. $as_echo_n "(cached) " >&6
  2080. else
  2081. if test -n "$CC"; then
  2082. ac_cv_prog_CC="$CC" # Let the user override the test.
  2083. else
  2084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2085. for as_dir in $PATH
  2086. do
  2087. IFS=$as_save_IFS
  2088. test -z "$as_dir" && as_dir=.
  2089. for ac_exec_ext in '' $ac_executable_extensions; do
  2090. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2091. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2093. break 2
  2094. fi
  2095. done
  2096. done
  2097. IFS=$as_save_IFS
  2098. fi
  2099. fi
  2100. CC=$ac_cv_prog_CC
  2101. if test -n "$CC"; then
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2103. $as_echo "$CC" >&6; }
  2104. else
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2106. $as_echo "no" >&6; }
  2107. fi
  2108. fi
  2109. if test -z "$ac_cv_prog_CC"; then
  2110. ac_ct_CC=$CC
  2111. # Extract the first word of "gcc", so it can be a program name with args.
  2112. set dummy gcc; ac_word=$2
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2114. $as_echo_n "checking for $ac_word... " >&6; }
  2115. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2116. $as_echo_n "(cached) " >&6
  2117. else
  2118. if test -n "$ac_ct_CC"; then
  2119. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2120. else
  2121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2122. for as_dir in $PATH
  2123. do
  2124. IFS=$as_save_IFS
  2125. test -z "$as_dir" && as_dir=.
  2126. for ac_exec_ext in '' $ac_executable_extensions; do
  2127. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2128. ac_cv_prog_ac_ct_CC="gcc"
  2129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2130. break 2
  2131. fi
  2132. done
  2133. done
  2134. IFS=$as_save_IFS
  2135. fi
  2136. fi
  2137. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2138. if test -n "$ac_ct_CC"; then
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2140. $as_echo "$ac_ct_CC" >&6; }
  2141. else
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2143. $as_echo "no" >&6; }
  2144. fi
  2145. if test "x$ac_ct_CC" = x; then
  2146. CC=""
  2147. else
  2148. case $cross_compiling:$ac_tool_warned in
  2149. yes:)
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2151. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2152. ac_tool_warned=yes ;;
  2153. esac
  2154. CC=$ac_ct_CC
  2155. fi
  2156. else
  2157. CC="$ac_cv_prog_CC"
  2158. fi
  2159. if test -z "$CC"; then
  2160. if test -n "$ac_tool_prefix"; then
  2161. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2162. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2164. $as_echo_n "checking for $ac_word... " >&6; }
  2165. if test "${ac_cv_prog_CC+set}" = set; then :
  2166. $as_echo_n "(cached) " >&6
  2167. else
  2168. if test -n "$CC"; then
  2169. ac_cv_prog_CC="$CC" # Let the user override the test.
  2170. else
  2171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2172. for as_dir in $PATH
  2173. do
  2174. IFS=$as_save_IFS
  2175. test -z "$as_dir" && as_dir=.
  2176. for ac_exec_ext in '' $ac_executable_extensions; do
  2177. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2178. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2180. break 2
  2181. fi
  2182. done
  2183. done
  2184. IFS=$as_save_IFS
  2185. fi
  2186. fi
  2187. CC=$ac_cv_prog_CC
  2188. if test -n "$CC"; then
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2190. $as_echo "$CC" >&6; }
  2191. else
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2193. $as_echo "no" >&6; }
  2194. fi
  2195. fi
  2196. fi
  2197. if test -z "$CC"; then
  2198. # Extract the first word of "cc", so it can be a program name with args.
  2199. set dummy cc; ac_word=$2
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2201. $as_echo_n "checking for $ac_word... " >&6; }
  2202. if test "${ac_cv_prog_CC+set}" = set; then :
  2203. $as_echo_n "(cached) " >&6
  2204. else
  2205. if test -n "$CC"; then
  2206. ac_cv_prog_CC="$CC" # Let the user override the test.
  2207. else
  2208. ac_prog_rejected=no
  2209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2210. for as_dir in $PATH
  2211. do
  2212. IFS=$as_save_IFS
  2213. test -z "$as_dir" && as_dir=.
  2214. for ac_exec_ext in '' $ac_executable_extensions; do
  2215. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2216. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2217. ac_prog_rejected=yes
  2218. continue
  2219. fi
  2220. ac_cv_prog_CC="cc"
  2221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2222. break 2
  2223. fi
  2224. done
  2225. done
  2226. IFS=$as_save_IFS
  2227. if test $ac_prog_rejected = yes; then
  2228. # We found a bogon in the path, so make sure we never use it.
  2229. set dummy $ac_cv_prog_CC
  2230. shift
  2231. if test $# != 0; then
  2232. # We chose a different compiler from the bogus one.
  2233. # However, it has the same basename, so the bogon will be chosen
  2234. # first if we set CC to just the basename; use the full file name.
  2235. shift
  2236. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2237. fi
  2238. fi
  2239. fi
  2240. fi
  2241. CC=$ac_cv_prog_CC
  2242. if test -n "$CC"; then
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2244. $as_echo "$CC" >&6; }
  2245. else
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2247. $as_echo "no" >&6; }
  2248. fi
  2249. fi
  2250. if test -z "$CC"; then
  2251. if test -n "$ac_tool_prefix"; then
  2252. for ac_prog in cl.exe
  2253. do
  2254. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2255. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2257. $as_echo_n "checking for $ac_word... " >&6; }
  2258. if test "${ac_cv_prog_CC+set}" = set; then :
  2259. $as_echo_n "(cached) " >&6
  2260. else
  2261. if test -n "$CC"; then
  2262. ac_cv_prog_CC="$CC" # Let the user override the test.
  2263. else
  2264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2265. for as_dir in $PATH
  2266. do
  2267. IFS=$as_save_IFS
  2268. test -z "$as_dir" && as_dir=.
  2269. for ac_exec_ext in '' $ac_executable_extensions; do
  2270. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2271. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2273. break 2
  2274. fi
  2275. done
  2276. done
  2277. IFS=$as_save_IFS
  2278. fi
  2279. fi
  2280. CC=$ac_cv_prog_CC
  2281. if test -n "$CC"; then
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2283. $as_echo "$CC" >&6; }
  2284. else
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2286. $as_echo "no" >&6; }
  2287. fi
  2288. test -n "$CC" && break
  2289. done
  2290. fi
  2291. if test -z "$CC"; then
  2292. ac_ct_CC=$CC
  2293. for ac_prog in cl.exe
  2294. do
  2295. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2296. set dummy $ac_prog; ac_word=$2
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2298. $as_echo_n "checking for $ac_word... " >&6; }
  2299. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2300. $as_echo_n "(cached) " >&6
  2301. else
  2302. if test -n "$ac_ct_CC"; then
  2303. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2304. else
  2305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2306. for as_dir in $PATH
  2307. do
  2308. IFS=$as_save_IFS
  2309. test -z "$as_dir" && as_dir=.
  2310. for ac_exec_ext in '' $ac_executable_extensions; do
  2311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2312. ac_cv_prog_ac_ct_CC="$ac_prog"
  2313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2314. break 2
  2315. fi
  2316. done
  2317. done
  2318. IFS=$as_save_IFS
  2319. fi
  2320. fi
  2321. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2322. if test -n "$ac_ct_CC"; then
  2323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2324. $as_echo "$ac_ct_CC" >&6; }
  2325. else
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2327. $as_echo "no" >&6; }
  2328. fi
  2329. test -n "$ac_ct_CC" && break
  2330. done
  2331. if test "x$ac_ct_CC" = x; then
  2332. CC=""
  2333. else
  2334. case $cross_compiling:$ac_tool_warned in
  2335. yes:)
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2337. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2338. ac_tool_warned=yes ;;
  2339. esac
  2340. CC=$ac_ct_CC
  2341. fi
  2342. fi
  2343. fi
  2344. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2345. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2346. as_fn_error "no acceptable C compiler found in \$PATH
  2347. See \`config.log' for more details." "$LINENO" 5; }
  2348. # Provide some information about the compiler.
  2349. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2350. set X $ac_compile
  2351. ac_compiler=$2
  2352. for ac_option in --version -v -V -qversion; do
  2353. { { ac_try="$ac_compiler $ac_option >&5"
  2354. case "(($ac_try" in
  2355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2356. *) ac_try_echo=$ac_try;;
  2357. esac
  2358. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2359. $as_echo "$ac_try_echo"; } >&5
  2360. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2361. ac_status=$?
  2362. if test -s conftest.err; then
  2363. sed '10a\
  2364. ... rest of stderr output deleted ...
  2365. 10q' conftest.err >conftest.er1
  2366. cat conftest.er1 >&5
  2367. rm -f conftest.er1 conftest.err
  2368. fi
  2369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2370. test $ac_status = 0; }
  2371. done
  2372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2373. /* end confdefs.h. */
  2374. int
  2375. main ()
  2376. {
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. ac_clean_files_save=$ac_clean_files
  2382. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2383. # Try to create an executable without -o first, disregard a.out.
  2384. # It will help us diagnose broken compilers, and finding out an intuition
  2385. # of exeext.
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2387. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2388. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2389. # The possible output files:
  2390. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2391. ac_rmfiles=
  2392. for ac_file in $ac_files
  2393. do
  2394. case $ac_file in
  2395. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2396. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2397. esac
  2398. done
  2399. rm -f $ac_rmfiles
  2400. if { { ac_try="$ac_link_default"
  2401. case "(($ac_try" in
  2402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2403. *) ac_try_echo=$ac_try;;
  2404. esac
  2405. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2406. $as_echo "$ac_try_echo"; } >&5
  2407. (eval "$ac_link_default") 2>&5
  2408. ac_status=$?
  2409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2410. test $ac_status = 0; }; then :
  2411. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2412. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2413. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2414. # so that the user can short-circuit this test for compilers unknown to
  2415. # Autoconf.
  2416. for ac_file in $ac_files ''
  2417. do
  2418. test -f "$ac_file" || continue
  2419. case $ac_file in
  2420. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2421. ;;
  2422. [ab].out )
  2423. # We found the default executable, but exeext='' is most
  2424. # certainly right.
  2425. break;;
  2426. *.* )
  2427. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2428. then :; else
  2429. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2430. fi
  2431. # We set ac_cv_exeext here because the later test for it is not
  2432. # safe: cross compilers may not add the suffix if given an `-o'
  2433. # argument, so we may need to know it at that point already.
  2434. # Even if this section looks crufty: it has the advantage of
  2435. # actually working.
  2436. break;;
  2437. * )
  2438. break;;
  2439. esac
  2440. done
  2441. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2442. else
  2443. ac_file=''
  2444. fi
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2446. $as_echo "$ac_file" >&6; }
  2447. if test -z "$ac_file"; then :
  2448. $as_echo "$as_me: failed program was:" >&5
  2449. sed 's/^/| /' conftest.$ac_ext >&5
  2450. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2451. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2452. { as_fn_set_status 77
  2453. as_fn_error "C compiler cannot create executables
  2454. See \`config.log' for more details." "$LINENO" 5; }; }
  2455. fi
  2456. ac_exeext=$ac_cv_exeext
  2457. # Check that the compiler produces executables we can run. If not, either
  2458. # the compiler is broken, or we cross compile.
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2460. $as_echo_n "checking whether the C compiler works... " >&6; }
  2461. # If not cross compiling, check that we can run a simple program.
  2462. if test "$cross_compiling" != yes; then
  2463. if { ac_try='./$ac_file'
  2464. { { case "(($ac_try" in
  2465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2466. *) ac_try_echo=$ac_try;;
  2467. esac
  2468. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2469. $as_echo "$ac_try_echo"; } >&5
  2470. (eval "$ac_try") 2>&5
  2471. ac_status=$?
  2472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2473. test $ac_status = 0; }; }; then
  2474. cross_compiling=no
  2475. else
  2476. if test "$cross_compiling" = maybe; then
  2477. cross_compiling=yes
  2478. else
  2479. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2480. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2481. as_fn_error "cannot run C compiled programs.
  2482. If you meant to cross compile, use \`--host'.
  2483. See \`config.log' for more details." "$LINENO" 5; }
  2484. fi
  2485. fi
  2486. fi
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2488. $as_echo "yes" >&6; }
  2489. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2490. ac_clean_files=$ac_clean_files_save
  2491. # Check that the compiler produces executables we can run. If not, either
  2492. # the compiler is broken, or we cross compile.
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2494. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2496. $as_echo "$cross_compiling" >&6; }
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2498. $as_echo_n "checking for suffix of executables... " >&6; }
  2499. if { { ac_try="$ac_link"
  2500. case "(($ac_try" in
  2501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2502. *) ac_try_echo=$ac_try;;
  2503. esac
  2504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2505. $as_echo "$ac_try_echo"; } >&5
  2506. (eval "$ac_link") 2>&5
  2507. ac_status=$?
  2508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2509. test $ac_status = 0; }; then :
  2510. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2511. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2512. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2513. # `rm'.
  2514. for ac_file in conftest.exe conftest conftest.*; do
  2515. test -f "$ac_file" || continue
  2516. case $ac_file in
  2517. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2518. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2519. break;;
  2520. * ) break;;
  2521. esac
  2522. done
  2523. else
  2524. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2525. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2526. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2527. See \`config.log' for more details." "$LINENO" 5; }
  2528. fi
  2529. rm -f conftest$ac_cv_exeext
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2531. $as_echo "$ac_cv_exeext" >&6; }
  2532. rm -f conftest.$ac_ext
  2533. EXEEXT=$ac_cv_exeext
  2534. ac_exeext=$EXEEXT
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2536. $as_echo_n "checking for suffix of object files... " >&6; }
  2537. if test "${ac_cv_objext+set}" = set; then :
  2538. $as_echo_n "(cached) " >&6
  2539. else
  2540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2541. /* end confdefs.h. */
  2542. int
  2543. main ()
  2544. {
  2545. ;
  2546. return 0;
  2547. }
  2548. _ACEOF
  2549. rm -f conftest.o conftest.obj
  2550. if { { ac_try="$ac_compile"
  2551. case "(($ac_try" in
  2552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2553. *) ac_try_echo=$ac_try;;
  2554. esac
  2555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2556. $as_echo "$ac_try_echo"; } >&5
  2557. (eval "$ac_compile") 2>&5
  2558. ac_status=$?
  2559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2560. test $ac_status = 0; }; then :
  2561. for ac_file in conftest.o conftest.obj conftest.*; do
  2562. test -f "$ac_file" || continue;
  2563. case $ac_file in
  2564. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2565. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2566. break;;
  2567. esac
  2568. done
  2569. else
  2570. $as_echo "$as_me: failed program was:" >&5
  2571. sed 's/^/| /' conftest.$ac_ext >&5
  2572. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2573. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2574. as_fn_error "cannot compute suffix of object files: cannot compile
  2575. See \`config.log' for more details." "$LINENO" 5; }
  2576. fi
  2577. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2578. fi
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2580. $as_echo "$ac_cv_objext" >&6; }
  2581. OBJEXT=$ac_cv_objext
  2582. ac_objext=$OBJEXT
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2584. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2585. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2586. $as_echo_n "(cached) " >&6
  2587. else
  2588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2589. /* end confdefs.h. */
  2590. int
  2591. main ()
  2592. {
  2593. #ifndef __GNUC__
  2594. choke me
  2595. #endif
  2596. ;
  2597. return 0;
  2598. }
  2599. _ACEOF
  2600. if ac_fn_c_try_compile "$LINENO"; then :
  2601. ac_compiler_gnu=yes
  2602. else
  2603. ac_compiler_gnu=no
  2604. fi
  2605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2606. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2607. fi
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2609. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2610. if test $ac_compiler_gnu = yes; then
  2611. GCC=yes
  2612. else
  2613. GCC=
  2614. fi
  2615. ac_test_CFLAGS=${CFLAGS+set}
  2616. ac_save_CFLAGS=$CFLAGS
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2618. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2619. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2620. $as_echo_n "(cached) " >&6
  2621. else
  2622. ac_save_c_werror_flag=$ac_c_werror_flag
  2623. ac_c_werror_flag=yes
  2624. ac_cv_prog_cc_g=no
  2625. CFLAGS="-g"
  2626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2627. /* end confdefs.h. */
  2628. int
  2629. main ()
  2630. {
  2631. ;
  2632. return 0;
  2633. }
  2634. _ACEOF
  2635. if ac_fn_c_try_compile "$LINENO"; then :
  2636. ac_cv_prog_cc_g=yes
  2637. else
  2638. CFLAGS=""
  2639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2640. /* end confdefs.h. */
  2641. int
  2642. main ()
  2643. {
  2644. ;
  2645. return 0;
  2646. }
  2647. _ACEOF
  2648. if ac_fn_c_try_compile "$LINENO"; then :
  2649. else
  2650. ac_c_werror_flag=$ac_save_c_werror_flag
  2651. CFLAGS="-g"
  2652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2653. /* end confdefs.h. */
  2654. int
  2655. main ()
  2656. {
  2657. ;
  2658. return 0;
  2659. }
  2660. _ACEOF
  2661. if ac_fn_c_try_compile "$LINENO"; then :
  2662. ac_cv_prog_cc_g=yes
  2663. fi
  2664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2665. fi
  2666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2667. fi
  2668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2669. ac_c_werror_flag=$ac_save_c_werror_flag
  2670. fi
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2672. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2673. if test "$ac_test_CFLAGS" = set; then
  2674. CFLAGS=$ac_save_CFLAGS
  2675. elif test $ac_cv_prog_cc_g = yes; then
  2676. if test "$GCC" = yes; then
  2677. CFLAGS="-g -O2"
  2678. else
  2679. CFLAGS="-g"
  2680. fi
  2681. else
  2682. if test "$GCC" = yes; then
  2683. CFLAGS="-O2"
  2684. else
  2685. CFLAGS=
  2686. fi
  2687. fi
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2689. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2690. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2691. $as_echo_n "(cached) " >&6
  2692. else
  2693. ac_cv_prog_cc_c89=no
  2694. ac_save_CC=$CC
  2695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2696. /* end confdefs.h. */
  2697. #include <stdarg.h>
  2698. #include <stdio.h>
  2699. #include <sys/types.h>
  2700. #include <sys/stat.h>
  2701. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2702. struct buf { int x; };
  2703. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2704. static char *e (p, i)
  2705. char **p;
  2706. int i;
  2707. {
  2708. return p[i];
  2709. }
  2710. static char *f (char * (*g) (char **, int), char **p, ...)
  2711. {
  2712. char *s;
  2713. va_list v;
  2714. va_start (v,p);
  2715. s = g (p, va_arg (v,int));
  2716. va_end (v);
  2717. return s;
  2718. }
  2719. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2720. function prototypes and stuff, but not '\xHH' hex character constants.
  2721. These don't provoke an error unfortunately, instead are silently treated
  2722. as 'x'. The following induces an error, until -std is added to get
  2723. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2724. array size at least. It's necessary to write '\x00'==0 to get something
  2725. that's true only with -std. */
  2726. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2727. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2728. inside strings and character constants. */
  2729. #define FOO(x) 'x'
  2730. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2731. int test (int i, double x);
  2732. struct s1 {int (*f) (int a);};
  2733. struct s2 {int (*f) (double a);};
  2734. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2735. int argc;
  2736. char **argv;
  2737. int
  2738. main ()
  2739. {
  2740. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2741. ;
  2742. return 0;
  2743. }
  2744. _ACEOF
  2745. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2746. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2747. do
  2748. CC="$ac_save_CC $ac_arg"
  2749. if ac_fn_c_try_compile "$LINENO"; then :
  2750. ac_cv_prog_cc_c89=$ac_arg
  2751. fi
  2752. rm -f core conftest.err conftest.$ac_objext
  2753. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2754. done
  2755. rm -f conftest.$ac_ext
  2756. CC=$ac_save_CC
  2757. fi
  2758. # AC_CACHE_VAL
  2759. case "x$ac_cv_prog_cc_c89" in
  2760. x)
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2762. $as_echo "none needed" >&6; } ;;
  2763. xno)
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2765. $as_echo "unsupported" >&6; } ;;
  2766. *)
  2767. CC="$CC $ac_cv_prog_cc_c89"
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2769. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2770. esac
  2771. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2772. fi
  2773. ac_ext=c
  2774. ac_cpp='$CPP $CPPFLAGS'
  2775. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2776. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2778. if test -n "$ac_tool_prefix"; then
  2779. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2780. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2782. $as_echo_n "checking for $ac_word... " >&6; }
  2783. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  2784. $as_echo_n "(cached) " >&6
  2785. else
  2786. if test -n "$RANLIB"; then
  2787. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2788. else
  2789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2790. for as_dir in $PATH
  2791. do
  2792. IFS=$as_save_IFS
  2793. test -z "$as_dir" && as_dir=.
  2794. for ac_exec_ext in '' $ac_executable_extensions; do
  2795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2796. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2798. break 2
  2799. fi
  2800. done
  2801. done
  2802. IFS=$as_save_IFS
  2803. fi
  2804. fi
  2805. RANLIB=$ac_cv_prog_RANLIB
  2806. if test -n "$RANLIB"; then
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  2808. $as_echo "$RANLIB" >&6; }
  2809. else
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2811. $as_echo "no" >&6; }
  2812. fi
  2813. fi
  2814. if test -z "$ac_cv_prog_RANLIB"; then
  2815. ac_ct_RANLIB=$RANLIB
  2816. # Extract the first word of "ranlib", so it can be a program name with args.
  2817. set dummy ranlib; ac_word=$2
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2819. $as_echo_n "checking for $ac_word... " >&6; }
  2820. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  2821. $as_echo_n "(cached) " >&6
  2822. else
  2823. if test -n "$ac_ct_RANLIB"; then
  2824. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2825. else
  2826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2827. for as_dir in $PATH
  2828. do
  2829. IFS=$as_save_IFS
  2830. test -z "$as_dir" && as_dir=.
  2831. for ac_exec_ext in '' $ac_executable_extensions; do
  2832. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2833. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2835. break 2
  2836. fi
  2837. done
  2838. done
  2839. IFS=$as_save_IFS
  2840. fi
  2841. fi
  2842. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2843. if test -n "$ac_ct_RANLIB"; then
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  2845. $as_echo "$ac_ct_RANLIB" >&6; }
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848. $as_echo "no" >&6; }
  2849. fi
  2850. if test "x$ac_ct_RANLIB" = x; then
  2851. RANLIB=":"
  2852. else
  2853. case $cross_compiling:$ac_tool_warned in
  2854. yes:)
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2856. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2857. ac_tool_warned=yes ;;
  2858. esac
  2859. RANLIB=$ac_ct_RANLIB
  2860. fi
  2861. else
  2862. RANLIB="$ac_cv_prog_RANLIB"
  2863. fi
  2864. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  2865. for ac_prog in aclocal
  2866. do
  2867. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2868. set dummy $ac_prog; ac_word=$2
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2870. $as_echo_n "checking for $ac_word... " >&6; }
  2871. if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
  2872. $as_echo_n "(cached) " >&6
  2873. else
  2874. if test -n "$ACLOCAL"; then
  2875. ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
  2876. else
  2877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2878. for as_dir in $PATH
  2879. do
  2880. IFS=$as_save_IFS
  2881. test -z "$as_dir" && as_dir=.
  2882. for ac_exec_ext in '' $ac_executable_extensions; do
  2883. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2884. ac_cv_prog_ACLOCAL="$ac_prog"
  2885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2886. break 2
  2887. fi
  2888. done
  2889. done
  2890. IFS=$as_save_IFS
  2891. fi
  2892. fi
  2893. ACLOCAL=$ac_cv_prog_ACLOCAL
  2894. if test -n "$ACLOCAL"; then
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
  2896. $as_echo "$ACLOCAL" >&6; }
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. fi
  2901. test -n "$ACLOCAL" && break
  2902. done
  2903. test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
  2904. for ac_prog in autoconf
  2905. do
  2906. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2907. set dummy $ac_prog; ac_word=$2
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2909. $as_echo_n "checking for $ac_word... " >&6; }
  2910. if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
  2911. $as_echo_n "(cached) " >&6
  2912. else
  2913. if test -n "$AUTOCONF"; then
  2914. ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
  2915. else
  2916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2917. for as_dir in $PATH
  2918. do
  2919. IFS=$as_save_IFS
  2920. test -z "$as_dir" && as_dir=.
  2921. for ac_exec_ext in '' $ac_executable_extensions; do
  2922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2923. ac_cv_prog_AUTOCONF="$ac_prog"
  2924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2925. break 2
  2926. fi
  2927. done
  2928. done
  2929. IFS=$as_save_IFS
  2930. fi
  2931. fi
  2932. AUTOCONF=$ac_cv_prog_AUTOCONF
  2933. if test -n "$AUTOCONF"; then
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
  2935. $as_echo "$AUTOCONF" >&6; }
  2936. else
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2938. $as_echo "no" >&6; }
  2939. fi
  2940. test -n "$AUTOCONF" && break
  2941. done
  2942. test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
  2943. for ac_prog in autoheader
  2944. do
  2945. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2946. set dummy $ac_prog; ac_word=$2
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. $as_echo_n "checking for $ac_word... " >&6; }
  2949. if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. if test -n "$AUTOHEADER"; then
  2953. ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
  2954. else
  2955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2956. for as_dir in $PATH
  2957. do
  2958. IFS=$as_save_IFS
  2959. test -z "$as_dir" && as_dir=.
  2960. for ac_exec_ext in '' $ac_executable_extensions; do
  2961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2962. ac_cv_prog_AUTOHEADER="$ac_prog"
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2964. break 2
  2965. fi
  2966. done
  2967. done
  2968. IFS=$as_save_IFS
  2969. fi
  2970. fi
  2971. AUTOHEADER=$ac_cv_prog_AUTOHEADER
  2972. if test -n "$AUTOHEADER"; then
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
  2974. $as_echo "$AUTOHEADER" >&6; }
  2975. else
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2977. $as_echo "no" >&6; }
  2978. fi
  2979. test -n "$AUTOHEADER" && break
  2980. done
  2981. test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
  2982. # Figure out what compiler warnings we can enable.
  2983. # See config/warnings.m4 for details.
  2984. ac_ext=c
  2985. ac_cpp='$CPP $CPPFLAGS'
  2986. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2987. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2988. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2989. WARN_CFLAGS=
  2990. save_CFLAGS="$CFLAGS"
  2991. for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
  2992. -Wmissing-prototypes -Wold-style-definition \
  2993. -Wmissing-format-attribute -Wcast-qual; do
  2994. # Do the check with the no- prefix removed since gcc silently
  2995. # accepts any -Wno-* option on purpose
  2996. case $real_option in
  2997. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  2998. *) option=$real_option ;;
  2999. esac
  3000. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  3002. $as_echo_n "checking whether $CC supports $option... " >&6; }
  3003. if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  3004. $as_echo_n "(cached) " >&6
  3005. else
  3006. CFLAGS="$option"
  3007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3008. /* end confdefs.h. */
  3009. int
  3010. main ()
  3011. {
  3012. ;
  3013. return 0;
  3014. }
  3015. _ACEOF
  3016. if ac_fn_c_try_compile "$LINENO"; then :
  3017. eval "$as_acx_Woption=yes"
  3018. else
  3019. eval "$as_acx_Woption=no"
  3020. fi
  3021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3022. fi
  3023. eval ac_res=\$$as_acx_Woption
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3025. $as_echo "$ac_res" >&6; }
  3026. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  3027. WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$real_option"
  3028. fi
  3029. done
  3030. CFLAGS="$save_CFLAGS"
  3031. ac_ext=c
  3032. ac_cpp='$CPP $CPPFLAGS'
  3033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3036. ac_ext=c
  3037. ac_cpp='$CPP $CPPFLAGS'
  3038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3041. WARN_PEDANTIC=
  3042. # Do the check with the no- prefix removed from the warning options
  3043. # since gcc silently accepts any -Wno-* option on purpose
  3044. if test "$GCC" = yes; then :
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
  3046. $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
  3047. if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then :
  3048. $as_echo_n "(cached) " >&6
  3049. else
  3050. save_CFLAGS="$CFLAGS"
  3051. CFLAGS="-pedantic -Wlong-long"
  3052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3053. /* end confdefs.h. */
  3054. int
  3055. main ()
  3056. {
  3057. ;
  3058. return 0;
  3059. }
  3060. _ACEOF
  3061. if ac_fn_c_try_compile "$LINENO"; then :
  3062. acx_cv_prog_cc_pedantic__Wlong_long=yes
  3063. else
  3064. acx_cv_prog_cc_pedantic__Wlong_long=no
  3065. fi
  3066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3067. CFLAGS="$save_CFLAGS"
  3068. fi
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
  3070. $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
  3071. if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
  3072. WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
  3073. fi
  3074. fi
  3075. ac_ext=c
  3076. ac_cpp='$CPP $CPPFLAGS'
  3077. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3078. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3079. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3080. # Only enable with --enable-werror-always until existing warnings are
  3081. # corrected.
  3082. ac_ext=c
  3083. ac_cpp='$CPP $CPPFLAGS'
  3084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3087. WERROR=
  3088. # Check whether --enable-werror-always was given.
  3089. if test "${enable_werror_always+set}" = set; then :
  3090. enableval=$enable_werror_always;
  3091. else
  3092. enable_werror_always=no
  3093. fi
  3094. if test $enable_werror_always = yes; then :
  3095. WERROR="$WERROR${WERROR:+ }-Werror"
  3096. fi
  3097. ac_ext=c
  3098. ac_cpp='$CPP $CPPFLAGS'
  3099. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3100. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3101. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3102. # Checks for header files.
  3103. ac_ext=c
  3104. ac_cpp='$CPP $CPPFLAGS'
  3105. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3106. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3107. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3109. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3110. # On Suns, sometimes $CPP names a directory.
  3111. if test -n "$CPP" && test -d "$CPP"; then
  3112. CPP=
  3113. fi
  3114. if test -z "$CPP"; then
  3115. if test "${ac_cv_prog_CPP+set}" = set; then :
  3116. $as_echo_n "(cached) " >&6
  3117. else
  3118. # Double quotes because CPP needs to be expanded
  3119. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3120. do
  3121. ac_preproc_ok=false
  3122. for ac_c_preproc_warn_flag in '' yes
  3123. do
  3124. # Use a header file that comes with gcc, so configuring glibc
  3125. # with a fresh cross-compiler works.
  3126. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3127. # <limits.h> exists even on freestanding compilers.
  3128. # On the NeXT, cc -E runs the code through the compiler's parser,
  3129. # not just through cpp. "Syntax error" is here to catch this case.
  3130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3131. /* end confdefs.h. */
  3132. #ifdef __STDC__
  3133. # include <limits.h>
  3134. #else
  3135. # include <assert.h>
  3136. #endif
  3137. Syntax error
  3138. _ACEOF
  3139. if ac_fn_c_try_cpp "$LINENO"; then :
  3140. else
  3141. # Broken: fails on valid input.
  3142. continue
  3143. fi
  3144. rm -f conftest.err conftest.$ac_ext
  3145. # OK, works on sane cases. Now check whether nonexistent headers
  3146. # can be detected and how.
  3147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end confdefs.h. */
  3149. #include <ac_nonexistent.h>
  3150. _ACEOF
  3151. if ac_fn_c_try_cpp "$LINENO"; then :
  3152. # Broken: success on invalid input.
  3153. continue
  3154. else
  3155. # Passes both tests.
  3156. ac_preproc_ok=:
  3157. break
  3158. fi
  3159. rm -f conftest.err conftest.$ac_ext
  3160. done
  3161. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3162. rm -f conftest.err conftest.$ac_ext
  3163. if $ac_preproc_ok; then :
  3164. break
  3165. fi
  3166. done
  3167. ac_cv_prog_CPP=$CPP
  3168. fi
  3169. CPP=$ac_cv_prog_CPP
  3170. else
  3171. ac_cv_prog_CPP=$CPP
  3172. fi
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3174. $as_echo "$CPP" >&6; }
  3175. ac_preproc_ok=false
  3176. for ac_c_preproc_warn_flag in '' yes
  3177. do
  3178. # Use a header file that comes with gcc, so configuring glibc
  3179. # with a fresh cross-compiler works.
  3180. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3181. # <limits.h> exists even on freestanding compilers.
  3182. # On the NeXT, cc -E runs the code through the compiler's parser,
  3183. # not just through cpp. "Syntax error" is here to catch this case.
  3184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3185. /* end confdefs.h. */
  3186. #ifdef __STDC__
  3187. # include <limits.h>
  3188. #else
  3189. # include <assert.h>
  3190. #endif
  3191. Syntax error
  3192. _ACEOF
  3193. if ac_fn_c_try_cpp "$LINENO"; then :
  3194. else
  3195. # Broken: fails on valid input.
  3196. continue
  3197. fi
  3198. rm -f conftest.err conftest.$ac_ext
  3199. # OK, works on sane cases. Now check whether nonexistent headers
  3200. # can be detected and how.
  3201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3202. /* end confdefs.h. */
  3203. #include <ac_nonexistent.h>
  3204. _ACEOF
  3205. if ac_fn_c_try_cpp "$LINENO"; then :
  3206. # Broken: success on invalid input.
  3207. continue
  3208. else
  3209. # Passes both tests.
  3210. ac_preproc_ok=:
  3211. break
  3212. fi
  3213. rm -f conftest.err conftest.$ac_ext
  3214. done
  3215. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3216. rm -f conftest.err conftest.$ac_ext
  3217. if $ac_preproc_ok; then :
  3218. else
  3219. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3220. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3221. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3222. See \`config.log' for more details." "$LINENO" 5; }
  3223. fi
  3224. ac_ext=c
  3225. ac_cpp='$CPP $CPPFLAGS'
  3226. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3227. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3228. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3230. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3231. if test "${ac_cv_path_GREP+set}" = set; then :
  3232. $as_echo_n "(cached) " >&6
  3233. else
  3234. if test -z "$GREP"; then
  3235. ac_path_GREP_found=false
  3236. # Loop through the user's path and test for each of PROGNAME-LIST
  3237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3238. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3239. do
  3240. IFS=$as_save_IFS
  3241. test -z "$as_dir" && as_dir=.
  3242. for ac_prog in grep ggrep; do
  3243. for ac_exec_ext in '' $ac_executable_extensions; do
  3244. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3245. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3246. # Check for GNU ac_path_GREP and select it if it is found.
  3247. # Check for GNU $ac_path_GREP
  3248. case `"$ac_path_GREP" --version 2>&1` in
  3249. *GNU*)
  3250. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3251. *)
  3252. ac_count=0
  3253. $as_echo_n 0123456789 >"conftest.in"
  3254. while :
  3255. do
  3256. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3257. mv "conftest.tmp" "conftest.in"
  3258. cp "conftest.in" "conftest.nl"
  3259. $as_echo 'GREP' >> "conftest.nl"
  3260. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3261. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3262. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3263. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3264. # Best one so far, save it but keep looking for a better one
  3265. ac_cv_path_GREP="$ac_path_GREP"
  3266. ac_path_GREP_max=$ac_count
  3267. fi
  3268. # 10*(2^10) chars as input seems more than enough
  3269. test $ac_count -gt 10 && break
  3270. done
  3271. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3272. esac
  3273. $ac_path_GREP_found && break 3
  3274. done
  3275. done
  3276. done
  3277. IFS=$as_save_IFS
  3278. if test -z "$ac_cv_path_GREP"; then
  3279. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3280. fi
  3281. else
  3282. ac_cv_path_GREP=$GREP
  3283. fi
  3284. fi
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3286. $as_echo "$ac_cv_path_GREP" >&6; }
  3287. GREP="$ac_cv_path_GREP"
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3289. $as_echo_n "checking for egrep... " >&6; }
  3290. if test "${ac_cv_path_EGREP+set}" = set; then :
  3291. $as_echo_n "(cached) " >&6
  3292. else
  3293. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3294. then ac_cv_path_EGREP="$GREP -E"
  3295. else
  3296. if test -z "$EGREP"; then
  3297. ac_path_EGREP_found=false
  3298. # Loop through the user's path and test for each of PROGNAME-LIST
  3299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3300. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3301. do
  3302. IFS=$as_save_IFS
  3303. test -z "$as_dir" && as_dir=.
  3304. for ac_prog in egrep; do
  3305. for ac_exec_ext in '' $ac_executable_extensions; do
  3306. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3307. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3308. # Check for GNU ac_path_EGREP and select it if it is found.
  3309. # Check for GNU $ac_path_EGREP
  3310. case `"$ac_path_EGREP" --version 2>&1` in
  3311. *GNU*)
  3312. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3313. *)
  3314. ac_count=0
  3315. $as_echo_n 0123456789 >"conftest.in"
  3316. while :
  3317. do
  3318. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3319. mv "conftest.tmp" "conftest.in"
  3320. cp "conftest.in" "conftest.nl"
  3321. $as_echo 'EGREP' >> "conftest.nl"
  3322. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3323. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3324. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3325. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3326. # Best one so far, save it but keep looking for a better one
  3327. ac_cv_path_EGREP="$ac_path_EGREP"
  3328. ac_path_EGREP_max=$ac_count
  3329. fi
  3330. # 10*(2^10) chars as input seems more than enough
  3331. test $ac_count -gt 10 && break
  3332. done
  3333. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3334. esac
  3335. $ac_path_EGREP_found && break 3
  3336. done
  3337. done
  3338. done
  3339. IFS=$as_save_IFS
  3340. if test -z "$ac_cv_path_EGREP"; then
  3341. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3342. fi
  3343. else
  3344. ac_cv_path_EGREP=$EGREP
  3345. fi
  3346. fi
  3347. fi
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3349. $as_echo "$ac_cv_path_EGREP" >&6; }
  3350. EGREP="$ac_cv_path_EGREP"
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3352. $as_echo_n "checking for ANSI C header files... " >&6; }
  3353. if test "${ac_cv_header_stdc+set}" = set; then :
  3354. $as_echo_n "(cached) " >&6
  3355. else
  3356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3357. /* end confdefs.h. */
  3358. #include <stdlib.h>
  3359. #include <stdarg.h>
  3360. #include <string.h>
  3361. #include <float.h>
  3362. int
  3363. main ()
  3364. {
  3365. ;
  3366. return 0;
  3367. }
  3368. _ACEOF
  3369. if ac_fn_c_try_compile "$LINENO"; then :
  3370. ac_cv_header_stdc=yes
  3371. else
  3372. ac_cv_header_stdc=no
  3373. fi
  3374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3375. if test $ac_cv_header_stdc = yes; then
  3376. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3378. /* end confdefs.h. */
  3379. #include <string.h>
  3380. _ACEOF
  3381. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3382. $EGREP "memchr" >/dev/null 2>&1; then :
  3383. else
  3384. ac_cv_header_stdc=no
  3385. fi
  3386. rm -f conftest*
  3387. fi
  3388. if test $ac_cv_header_stdc = yes; then
  3389. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3391. /* end confdefs.h. */
  3392. #include <stdlib.h>
  3393. _ACEOF
  3394. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3395. $EGREP "free" >/dev/null 2>&1; then :
  3396. else
  3397. ac_cv_header_stdc=no
  3398. fi
  3399. rm -f conftest*
  3400. fi
  3401. if test $ac_cv_header_stdc = yes; then
  3402. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3403. if test "$cross_compiling" = yes; then :
  3404. :
  3405. else
  3406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3407. /* end confdefs.h. */
  3408. #include <ctype.h>
  3409. #include <stdlib.h>
  3410. #if ((' ' & 0x0FF) == 0x020)
  3411. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3412. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3413. #else
  3414. # define ISLOWER(c) \
  3415. (('a' <= (c) && (c) <= 'i') \
  3416. || ('j' <= (c) && (c) <= 'r') \
  3417. || ('s' <= (c) && (c) <= 'z'))
  3418. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3419. #endif
  3420. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3421. int
  3422. main ()
  3423. {
  3424. int i;
  3425. for (i = 0; i < 256; i++)
  3426. if (XOR (islower (i), ISLOWER (i))
  3427. || toupper (i) != TOUPPER (i))
  3428. return 2;
  3429. return 0;
  3430. }
  3431. _ACEOF
  3432. if ac_fn_c_try_run "$LINENO"; then :
  3433. else
  3434. ac_cv_header_stdc=no
  3435. fi
  3436. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3437. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3438. fi
  3439. fi
  3440. fi
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3442. $as_echo "$ac_cv_header_stdc" >&6; }
  3443. if test $ac_cv_header_stdc = yes; then
  3444. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3445. fi
  3446. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3447. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3448. inttypes.h stdint.h unistd.h
  3449. do :
  3450. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3451. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3452. "
  3453. eval as_val=\$$as_ac_Header
  3454. if test "x$as_val" = x""yes; then :
  3455. cat >>confdefs.h <<_ACEOF
  3456. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3457. _ACEOF
  3458. fi
  3459. done
  3460. for ac_header in ctype.h stddef.h string.h stdio.h
  3461. do :
  3462. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3463. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3464. eval as_val=\$$as_ac_Header
  3465. if test "x$as_val" = x""yes; then :
  3466. cat >>confdefs.h <<_ACEOF
  3467. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3468. _ACEOF
  3469. fi
  3470. done
  3471. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  3472. acx_cv_header_stdint=stddef.h
  3473. acx_cv_header_stdint_kind="(already complete)"
  3474. for i in stdint.h $inttype_headers; do
  3475. unset ac_cv_type_uintptr_t
  3476. unset ac_cv_type_uintmax_t
  3477. unset ac_cv_type_int_least32_t
  3478. unset ac_cv_type_int_fast32_t
  3479. unset ac_cv_type_uint64_t
  3480. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  3481. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  3482. #include <$i>
  3483. "
  3484. if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  3485. acx_cv_header_stdint=$i
  3486. else
  3487. continue
  3488. fi
  3489. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  3490. #include <$i>
  3491. "
  3492. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  3493. else
  3494. acx_cv_header_stdint_kind="(mostly complete)"
  3495. fi
  3496. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  3497. #include <$i>
  3498. "
  3499. if test "x$ac_cv_type_int_least32_t" = x""yes; then :
  3500. else
  3501. acx_cv_header_stdint_kind="(mostly complete)"
  3502. fi
  3503. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  3504. #include <$i>
  3505. "
  3506. if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
  3507. else
  3508. acx_cv_header_stdint_kind="(mostly complete)"
  3509. fi
  3510. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  3511. #include <$i>
  3512. "
  3513. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  3514. else
  3515. acx_cv_header_stdint_kind="(lacks uint64_t)"
  3516. fi
  3517. break
  3518. done
  3519. if test "$acx_cv_header_stdint" = stddef.h; then
  3520. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  3521. for i in stdint.h $inttype_headers; do
  3522. unset ac_cv_type_uintptr_t
  3523. unset ac_cv_type_uint32_t
  3524. unset ac_cv_type_uint64_t
  3525. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  3526. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  3527. #include <$i>
  3528. "
  3529. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  3530. acx_cv_header_stdint=$i
  3531. else
  3532. continue
  3533. fi
  3534. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  3535. #include <$i>
  3536. "
  3537. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  3538. fi
  3539. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  3540. #include <$i>
  3541. "
  3542. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  3543. fi
  3544. break
  3545. done
  3546. fi
  3547. if test "$acx_cv_header_stdint" = stddef.h; then
  3548. acx_cv_header_stdint_kind="(u_intXX_t style)"
  3549. for i in sys/types.h $inttype_headers; do
  3550. unset ac_cv_type_u_int32_t
  3551. unset ac_cv_type_u_int64_t
  3552. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  3553. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  3554. #include <$i>
  3555. "
  3556. if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  3557. acx_cv_header_stdint=$i
  3558. else
  3559. continue
  3560. fi
  3561. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  3562. #include <$i>
  3563. "
  3564. if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  3565. fi
  3566. break
  3567. done
  3568. fi
  3569. if test "$acx_cv_header_stdint" = stddef.h; then
  3570. acx_cv_header_stdint_kind="(using manual detection)"
  3571. fi
  3572. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  3573. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  3574. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  3575. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  3576. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  3577. # ----------------- Summarize what we found so far
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  3579. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  3580. case `$as_basename -- gstdint.h ||
  3581. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  3582. Xgstdint.h : 'X\(//\)$' \| \
  3583. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  3584. $as_echo X/gstdint.h |
  3585. sed '/^.*\/\([^/][^/]*\)\/*$/{
  3586. s//\1/
  3587. q
  3588. }
  3589. /^X\/\(\/\/\)$/{
  3590. s//\1/
  3591. q
  3592. }
  3593. /^X\/\(\/\).*/{
  3594. s//\1/
  3595. q
  3596. }
  3597. s/.*/./; q'` in
  3598. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  3599. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  3600. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  3601. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  3602. *) ;;
  3603. esac
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  3605. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  3606. # ----------------- done included file, check C basic types --------
  3607. # Lacking an uintptr_t? Test size of void *
  3608. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  3609. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  3610. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3611. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3612. # This bug is HP SR number 8606223364.
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  3614. $as_echo_n "checking size of void *... " >&6; }
  3615. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  3616. $as_echo_n "(cached) " >&6
  3617. else
  3618. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  3619. else
  3620. if test "$ac_cv_type_void_p" = yes; then
  3621. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3622. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3623. { as_fn_set_status 77
  3624. as_fn_error "cannot compute sizeof (void *)
  3625. See \`config.log' for more details." "$LINENO" 5; }; }
  3626. else
  3627. ac_cv_sizeof_void_p=0
  3628. fi
  3629. fi
  3630. fi
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  3632. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  3633. cat >>confdefs.h <<_ACEOF
  3634. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  3635. _ACEOF
  3636. ;;
  3637. esac
  3638. # Lacking an uint64_t? Test size of long
  3639. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  3640. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  3641. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3642. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3643. # This bug is HP SR number 8606223364.
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  3645. $as_echo_n "checking size of long... " >&6; }
  3646. if test "${ac_cv_sizeof_long+set}" = set; then :
  3647. $as_echo_n "(cached) " >&6
  3648. else
  3649. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  3650. else
  3651. if test "$ac_cv_type_long" = yes; then
  3652. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3653. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3654. { as_fn_set_status 77
  3655. as_fn_error "cannot compute sizeof (long)
  3656. See \`config.log' for more details." "$LINENO" 5; }; }
  3657. else
  3658. ac_cv_sizeof_long=0
  3659. fi
  3660. fi
  3661. fi
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  3663. $as_echo "$ac_cv_sizeof_long" >&6; }
  3664. cat >>confdefs.h <<_ACEOF
  3665. #define SIZEOF_LONG $ac_cv_sizeof_long
  3666. _ACEOF
  3667. ;;
  3668. esac
  3669. if test $acx_cv_header_stdint = stddef.h; then
  3670. # Lacking a good header? Test size of everything and deduce all types.
  3671. # The cast to long int works around a bug in the HP C Compiler
  3672. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3673. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3674. # This bug is HP SR number 8606223364.
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  3676. $as_echo_n "checking size of int... " >&6; }
  3677. if test "${ac_cv_sizeof_int+set}" = set; then :
  3678. $as_echo_n "(cached) " >&6
  3679. else
  3680. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  3681. else
  3682. if test "$ac_cv_type_int" = yes; then
  3683. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3684. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3685. { as_fn_set_status 77
  3686. as_fn_error "cannot compute sizeof (int)
  3687. See \`config.log' for more details." "$LINENO" 5; }; }
  3688. else
  3689. ac_cv_sizeof_int=0
  3690. fi
  3691. fi
  3692. fi
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  3694. $as_echo "$ac_cv_sizeof_int" >&6; }
  3695. cat >>confdefs.h <<_ACEOF
  3696. #define SIZEOF_INT $ac_cv_sizeof_int
  3697. _ACEOF
  3698. # The cast to long int works around a bug in the HP C Compiler
  3699. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3700. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3701. # This bug is HP SR number 8606223364.
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  3703. $as_echo_n "checking size of short... " >&6; }
  3704. if test "${ac_cv_sizeof_short+set}" = set; then :
  3705. $as_echo_n "(cached) " >&6
  3706. else
  3707. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  3708. else
  3709. if test "$ac_cv_type_short" = yes; then
  3710. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3711. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3712. { as_fn_set_status 77
  3713. as_fn_error "cannot compute sizeof (short)
  3714. See \`config.log' for more details." "$LINENO" 5; }; }
  3715. else
  3716. ac_cv_sizeof_short=0
  3717. fi
  3718. fi
  3719. fi
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  3721. $as_echo "$ac_cv_sizeof_short" >&6; }
  3722. cat >>confdefs.h <<_ACEOF
  3723. #define SIZEOF_SHORT $ac_cv_sizeof_short
  3724. _ACEOF
  3725. # The cast to long int works around a bug in the HP C Compiler
  3726. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3727. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3728. # This bug is HP SR number 8606223364.
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  3730. $as_echo_n "checking size of char... " >&6; }
  3731. if test "${ac_cv_sizeof_char+set}" = set; then :
  3732. $as_echo_n "(cached) " >&6
  3733. else
  3734. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  3735. else
  3736. if test "$ac_cv_type_char" = yes; then
  3737. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3738. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3739. { as_fn_set_status 77
  3740. as_fn_error "cannot compute sizeof (char)
  3741. See \`config.log' for more details." "$LINENO" 5; }; }
  3742. else
  3743. ac_cv_sizeof_char=0
  3744. fi
  3745. fi
  3746. fi
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  3748. $as_echo "$ac_cv_sizeof_char" >&6; }
  3749. cat >>confdefs.h <<_ACEOF
  3750. #define SIZEOF_CHAR $ac_cv_sizeof_char
  3751. _ACEOF
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  3753. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  3754. case "$ac_cv_sizeof_char" in
  3755. 1) acx_cv_type_int8_t=char ;;
  3756. *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
  3757. esac
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  3759. $as_echo "$acx_cv_type_int8_t" >&6; }
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  3761. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  3762. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  3763. 2:*) acx_cv_type_int16_t=int ;;
  3764. *:2) acx_cv_type_int16_t=short ;;
  3765. *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
  3766. esac
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  3768. $as_echo "$acx_cv_type_int16_t" >&6; }
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  3770. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  3771. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  3772. 4:*) acx_cv_type_int32_t=int ;;
  3773. *:4) acx_cv_type_int32_t=long ;;
  3774. *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
  3775. esac
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  3777. $as_echo "$acx_cv_type_int32_t" >&6; }
  3778. fi
  3779. # These tests are here to make the output prettier
  3780. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  3781. case "$ac_cv_sizeof_long" in
  3782. 8) acx_cv_type_int64_t=long ;;
  3783. esac
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  3785. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  3787. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  3788. fi
  3789. # Now we can use the above types
  3790. if test "$ac_cv_type_uintptr_t" != yes; then
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  3792. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  3793. case $ac_cv_sizeof_void_p in
  3794. 2) acx_cv_type_intptr_t=int16_t ;;
  3795. 4) acx_cv_type_intptr_t=int32_t ;;
  3796. 8) acx_cv_type_intptr_t=int64_t ;;
  3797. *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  3798. esac
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  3800. $as_echo "$acx_cv_type_intptr_t" >&6; }
  3801. fi
  3802. # ----------------- done all checks, emit header -------------
  3803. ac_config_commands="$ac_config_commands gstdint.h"
  3804. # Checks for typedefs, structures, and compiler characteristics.
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3806. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3807. if test "${ac_cv_c_const+set}" = set; then :
  3808. $as_echo_n "(cached) " >&6
  3809. else
  3810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3811. /* end confdefs.h. */
  3812. int
  3813. main ()
  3814. {
  3815. /* FIXME: Include the comments suggested by Paul. */
  3816. #ifndef __cplusplus
  3817. /* Ultrix mips cc rejects this. */
  3818. typedef int charset[2];
  3819. const charset cs;
  3820. /* SunOS 4.1.1 cc rejects this. */
  3821. char const *const *pcpcc;
  3822. char **ppc;
  3823. /* NEC SVR4.0.2 mips cc rejects this. */
  3824. struct point {int x, y;};
  3825. static struct point const zero = {0,0};
  3826. /* AIX XL C 1.02.0.0 rejects this.
  3827. It does not let you subtract one const X* pointer from another in
  3828. an arm of an if-expression whose if-part is not a constant
  3829. expression */
  3830. const char *g = "string";
  3831. pcpcc = &g + (g ? g-g : 0);
  3832. /* HPUX 7.0 cc rejects these. */
  3833. ++pcpcc;
  3834. ppc = (char**) pcpcc;
  3835. pcpcc = (char const *const *) ppc;
  3836. { /* SCO 3.2v4 cc rejects this. */
  3837. char *t;
  3838. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3839. *t++ = 0;
  3840. if (s) return 0;
  3841. }
  3842. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3843. int x[] = {25, 17};
  3844. const int *foo = &x[0];
  3845. ++foo;
  3846. }
  3847. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3848. typedef const int *iptr;
  3849. iptr p = 0;
  3850. ++p;
  3851. }
  3852. { /* AIX XL C 1.02.0.0 rejects this saying
  3853. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3854. struct s { int j; const int *ap[3]; };
  3855. struct s *b; b->j = 5;
  3856. }
  3857. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3858. const int foo = 10;
  3859. if (!foo) return 0;
  3860. }
  3861. return !cs[0] && !zero.x;
  3862. #endif
  3863. ;
  3864. return 0;
  3865. }
  3866. _ACEOF
  3867. if ac_fn_c_try_compile "$LINENO"; then :
  3868. ac_cv_c_const=yes
  3869. else
  3870. ac_cv_c_const=no
  3871. fi
  3872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3875. $as_echo "$ac_cv_c_const" >&6; }
  3876. if test $ac_cv_c_const = no; then
  3877. $as_echo "#define const /**/" >>confdefs.h
  3878. fi
  3879. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  3880. if test "x$ac_cv_type_off_t" = x""yes; then :
  3881. else
  3882. cat >>confdefs.h <<_ACEOF
  3883. #define off_t long int
  3884. _ACEOF
  3885. fi
  3886. # The cast to long int works around a bug in the HP C Compiler
  3887. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3888. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3889. # This bug is HP SR number 8606223364.
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  3891. $as_echo_n "checking size of int... " >&6; }
  3892. if test "${ac_cv_sizeof_int+set}" = set; then :
  3893. $as_echo_n "(cached) " >&6
  3894. else
  3895. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  3896. else
  3897. if test "$ac_cv_type_int" = yes; then
  3898. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3899. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3900. { as_fn_set_status 77
  3901. as_fn_error "cannot compute sizeof (int)
  3902. See \`config.log' for more details." "$LINENO" 5; }; }
  3903. else
  3904. ac_cv_sizeof_int=0
  3905. fi
  3906. fi
  3907. fi
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  3909. $as_echo "$ac_cv_sizeof_int" >&6; }
  3910. cat >>confdefs.h <<_ACEOF
  3911. #define SIZEOF_INT $ac_cv_sizeof_int
  3912. _ACEOF
  3913. # The cast to long int works around a bug in the HP C Compiler
  3914. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3915. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3916. # This bug is HP SR number 8606223364.
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  3918. $as_echo_n "checking size of long... " >&6; }
  3919. if test "${ac_cv_sizeof_long+set}" = set; then :
  3920. $as_echo_n "(cached) " >&6
  3921. else
  3922. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  3923. else
  3924. if test "$ac_cv_type_long" = yes; then
  3925. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3926. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3927. { as_fn_set_status 77
  3928. as_fn_error "cannot compute sizeof (long)
  3929. See \`config.log' for more details." "$LINENO" 5; }; }
  3930. else
  3931. ac_cv_sizeof_long=0
  3932. fi
  3933. fi
  3934. fi
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  3936. $as_echo "$ac_cv_sizeof_long" >&6; }
  3937. cat >>confdefs.h <<_ACEOF
  3938. #define SIZEOF_LONG $ac_cv_sizeof_long
  3939. _ACEOF
  3940. # Checks for library functions.
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3942. $as_echo_n "checking for ANSI C header files... " >&6; }
  3943. if test "${ac_cv_header_stdc+set}" = set; then :
  3944. $as_echo_n "(cached) " >&6
  3945. else
  3946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3947. /* end confdefs.h. */
  3948. #include <stdlib.h>
  3949. #include <stdarg.h>
  3950. #include <string.h>
  3951. #include <float.h>
  3952. int
  3953. main ()
  3954. {
  3955. ;
  3956. return 0;
  3957. }
  3958. _ACEOF
  3959. if ac_fn_c_try_compile "$LINENO"; then :
  3960. ac_cv_header_stdc=yes
  3961. else
  3962. ac_cv_header_stdc=no
  3963. fi
  3964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3965. if test $ac_cv_header_stdc = yes; then
  3966. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3968. /* end confdefs.h. */
  3969. #include <string.h>
  3970. _ACEOF
  3971. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3972. $EGREP "memchr" >/dev/null 2>&1; then :
  3973. else
  3974. ac_cv_header_stdc=no
  3975. fi
  3976. rm -f conftest*
  3977. fi
  3978. if test $ac_cv_header_stdc = yes; then
  3979. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3981. /* end confdefs.h. */
  3982. #include <stdlib.h>
  3983. _ACEOF
  3984. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3985. $EGREP "free" >/dev/null 2>&1; then :
  3986. else
  3987. ac_cv_header_stdc=no
  3988. fi
  3989. rm -f conftest*
  3990. fi
  3991. if test $ac_cv_header_stdc = yes; then
  3992. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3993. if test "$cross_compiling" = yes; then :
  3994. :
  3995. else
  3996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3997. /* end confdefs.h. */
  3998. #include <ctype.h>
  3999. #include <stdlib.h>
  4000. #if ((' ' & 0x0FF) == 0x020)
  4001. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4002. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4003. #else
  4004. # define ISLOWER(c) \
  4005. (('a' <= (c) && (c) <= 'i') \
  4006. || ('j' <= (c) && (c) <= 'r') \
  4007. || ('s' <= (c) && (c) <= 'z'))
  4008. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4009. #endif
  4010. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4011. int
  4012. main ()
  4013. {
  4014. int i;
  4015. for (i = 0; i < 256; i++)
  4016. if (XOR (islower (i), ISLOWER (i))
  4017. || toupper (i) != TOUPPER (i))
  4018. return 2;
  4019. return 0;
  4020. }
  4021. _ACEOF
  4022. if ac_fn_c_try_run "$LINENO"; then :
  4023. else
  4024. ac_cv_header_stdc=no
  4025. fi
  4026. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4027. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4028. fi
  4029. fi
  4030. fi
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4032. $as_echo "$ac_cv_header_stdc" >&6; }
  4033. if test $ac_cv_header_stdc = yes; then
  4034. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4035. fi
  4036. # Check whether --enable-maintainer-mode was given.
  4037. if test "${enable_maintainer_mode+set}" = set; then :
  4038. enableval=$enable_maintainer_mode;
  4039. else
  4040. enable_maintainer_mode=no
  4041. fi
  4042. if test "x$enable_maintainer_mode" = xno; then
  4043. MAINT='#'
  4044. else
  4045. MAINT=
  4046. fi
  4047. # Make sure we can run config.sub.
  4048. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4049. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4051. $as_echo_n "checking build system type... " >&6; }
  4052. if test "${ac_cv_build+set}" = set; then :
  4053. $as_echo_n "(cached) " >&6
  4054. else
  4055. ac_build_alias=$build_alias
  4056. test "x$ac_build_alias" = x &&
  4057. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4058. test "x$ac_build_alias" = x &&
  4059. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  4060. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4061. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4062. fi
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4064. $as_echo "$ac_cv_build" >&6; }
  4065. case $ac_cv_build in
  4066. *-*-*) ;;
  4067. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  4068. esac
  4069. build=$ac_cv_build
  4070. ac_save_IFS=$IFS; IFS='-'
  4071. set x $ac_cv_build
  4072. shift
  4073. build_cpu=$1
  4074. build_vendor=$2
  4075. shift; shift
  4076. # Remember, the first character of IFS is used to create $*,
  4077. # except with old shells:
  4078. build_os=$*
  4079. IFS=$ac_save_IFS
  4080. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4082. $as_echo_n "checking host system type... " >&6; }
  4083. if test "${ac_cv_host+set}" = set; then :
  4084. $as_echo_n "(cached) " >&6
  4085. else
  4086. if test "x$host_alias" = x; then
  4087. ac_cv_host=$ac_cv_build
  4088. else
  4089. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4090. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4091. fi
  4092. fi
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4094. $as_echo "$ac_cv_host" >&6; }
  4095. case $ac_cv_host in
  4096. *-*-*) ;;
  4097. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  4098. esac
  4099. host=$ac_cv_host
  4100. ac_save_IFS=$IFS; IFS='-'
  4101. set x $ac_cv_host
  4102. shift
  4103. host_cpu=$1
  4104. host_vendor=$2
  4105. shift; shift
  4106. # Remember, the first character of IFS is used to create $*,
  4107. # except with old shells:
  4108. host_os=$*
  4109. IFS=$ac_save_IFS
  4110. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  4112. $as_echo_n "checking target system type... " >&6; }
  4113. if test "${ac_cv_target+set}" = set; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. if test "x$target_alias" = x; then
  4117. ac_cv_target=$ac_cv_host
  4118. else
  4119. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  4120. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  4121. fi
  4122. fi
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  4124. $as_echo "$ac_cv_target" >&6; }
  4125. case $ac_cv_target in
  4126. *-*-*) ;;
  4127. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  4128. esac
  4129. target=$ac_cv_target
  4130. ac_save_IFS=$IFS; IFS='-'
  4131. set x $ac_cv_target
  4132. shift
  4133. target_cpu=$1
  4134. target_vendor=$2
  4135. shift; shift
  4136. # Remember, the first character of IFS is used to create $*,
  4137. # except with old shells:
  4138. target_os=$*
  4139. IFS=$ac_save_IFS
  4140. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  4141. # The aliases save the names the user supplied, while $host etc.
  4142. # will get canonicalized.
  4143. test -n "$target_alias" &&
  4144. test "$program_prefix$program_suffix$program_transform_name" = \
  4145. NONENONEs,x,x, &&
  4146. program_prefix=${target_alias}-
  4147. # Default decimal format
  4148. # If you change the defaults here, be sure to change them in the GCC directory also
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decimal floating point" >&5
  4150. $as_echo_n "checking for decimal floating point... " >&6; }
  4151. # Check whether --enable-decimal-float was given.
  4152. if test "${enable_decimal_float+set}" = set; then :
  4153. enableval=$enable_decimal_float;
  4154. case $enable_decimal_float in
  4155. yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
  4156. *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
  4157. Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
  4158. esac
  4159. else
  4160. case $target in
  4161. powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
  4162. i?86*-*-elfiamcu | i?86*-*-gnu* | \
  4163. i?86*-*-mingw* | x86_64*-*-mingw* | \
  4164. i?86*-*-cygwin* | x86_64*-*-cygwin*)
  4165. enable_decimal_float=yes
  4166. ;;
  4167. *)
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
  4169. $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
  4170. enable_decimal_float=no
  4171. ;;
  4172. esac
  4173. fi
  4174. # x86's use BID format instead of DPD
  4175. case x$enable_decimal_float in
  4176. xyes)
  4177. case $target in
  4178. i?86*-*-* | x86_64*-*-*)
  4179. enable_decimal_float=bid
  4180. ;;
  4181. *)
  4182. enable_decimal_float=dpd
  4183. ;;
  4184. esac
  4185. default_decimal_float=$enable_decimal_float
  4186. ;;
  4187. xno)
  4188. # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
  4189. # dependency on libdecnumber.
  4190. default_decimal_float=dpd
  4191. ;;
  4192. esac
  4193. # Use default_decimal_float for dependency.
  4194. enable_decimal_float=$default_decimal_float
  4195. # If BID is being used, additional objects should be linked in.
  4196. if test x$enable_decimal_float = xbid; then
  4197. ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
  4198. else
  4199. ADDITIONAL_OBJS=
  4200. fi
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_decimal_float" >&5
  4202. $as_echo "$enable_decimal_float" >&6; }
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4204. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4205. if test "${ac_cv_c_bigendian+set}" = set; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. ac_cv_c_bigendian=unknown
  4209. # See if we're dealing with a universal compiler.
  4210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4211. /* end confdefs.h. */
  4212. #ifndef __APPLE_CC__
  4213. not a universal capable compiler
  4214. #endif
  4215. typedef int dummy;
  4216. _ACEOF
  4217. if ac_fn_c_try_compile "$LINENO"; then :
  4218. # Check for potential -arch flags. It is not universal unless
  4219. # there are at least two -arch flags with different values.
  4220. ac_arch=
  4221. ac_prev=
  4222. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4223. if test -n "$ac_prev"; then
  4224. case $ac_word in
  4225. i?86 | x86_64 | ppc | ppc64)
  4226. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4227. ac_arch=$ac_word
  4228. else
  4229. ac_cv_c_bigendian=universal
  4230. break
  4231. fi
  4232. ;;
  4233. esac
  4234. ac_prev=
  4235. elif test "x$ac_word" = "x-arch"; then
  4236. ac_prev=arch
  4237. fi
  4238. done
  4239. fi
  4240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4241. if test $ac_cv_c_bigendian = unknown; then
  4242. # See if sys/param.h defines the BYTE_ORDER macro.
  4243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4244. /* end confdefs.h. */
  4245. #include <sys/types.h>
  4246. #include <sys/param.h>
  4247. int
  4248. main ()
  4249. {
  4250. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4251. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4252. && LITTLE_ENDIAN)
  4253. bogus endian macros
  4254. #endif
  4255. ;
  4256. return 0;
  4257. }
  4258. _ACEOF
  4259. if ac_fn_c_try_compile "$LINENO"; then :
  4260. # It does; now see whether it defined to BIG_ENDIAN or not.
  4261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4262. /* end confdefs.h. */
  4263. #include <sys/types.h>
  4264. #include <sys/param.h>
  4265. int
  4266. main ()
  4267. {
  4268. #if BYTE_ORDER != BIG_ENDIAN
  4269. not big endian
  4270. #endif
  4271. ;
  4272. return 0;
  4273. }
  4274. _ACEOF
  4275. if ac_fn_c_try_compile "$LINENO"; then :
  4276. ac_cv_c_bigendian=yes
  4277. else
  4278. ac_cv_c_bigendian=no
  4279. fi
  4280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4281. fi
  4282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4283. fi
  4284. if test $ac_cv_c_bigendian = unknown; then
  4285. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4287. /* end confdefs.h. */
  4288. #include <limits.h>
  4289. int
  4290. main ()
  4291. {
  4292. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4293. bogus endian macros
  4294. #endif
  4295. ;
  4296. return 0;
  4297. }
  4298. _ACEOF
  4299. if ac_fn_c_try_compile "$LINENO"; then :
  4300. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4302. /* end confdefs.h. */
  4303. #include <limits.h>
  4304. int
  4305. main ()
  4306. {
  4307. #ifndef _BIG_ENDIAN
  4308. not big endian
  4309. #endif
  4310. ;
  4311. return 0;
  4312. }
  4313. _ACEOF
  4314. if ac_fn_c_try_compile "$LINENO"; then :
  4315. ac_cv_c_bigendian=yes
  4316. else
  4317. ac_cv_c_bigendian=no
  4318. fi
  4319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4320. fi
  4321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4322. fi
  4323. if test $ac_cv_c_bigendian = unknown; then
  4324. # Compile a test program.
  4325. if test "$cross_compiling" = yes; then :
  4326. # Try to guess by grepping values from an object file.
  4327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4328. /* end confdefs.h. */
  4329. short int ascii_mm[] =
  4330. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4331. short int ascii_ii[] =
  4332. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4333. int use_ascii (int i) {
  4334. return ascii_mm[i] + ascii_ii[i];
  4335. }
  4336. short int ebcdic_ii[] =
  4337. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4338. short int ebcdic_mm[] =
  4339. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4340. int use_ebcdic (int i) {
  4341. return ebcdic_mm[i] + ebcdic_ii[i];
  4342. }
  4343. extern int foo;
  4344. int
  4345. main ()
  4346. {
  4347. return use_ascii (foo) == use_ebcdic (foo);
  4348. ;
  4349. return 0;
  4350. }
  4351. _ACEOF
  4352. if ac_fn_c_try_compile "$LINENO"; then :
  4353. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4354. ac_cv_c_bigendian=yes
  4355. fi
  4356. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4357. if test "$ac_cv_c_bigendian" = unknown; then
  4358. ac_cv_c_bigendian=no
  4359. else
  4360. # finding both strings is unlikely to happen, but who knows?
  4361. ac_cv_c_bigendian=unknown
  4362. fi
  4363. fi
  4364. fi
  4365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4366. else
  4367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4368. /* end confdefs.h. */
  4369. $ac_includes_default
  4370. int
  4371. main ()
  4372. {
  4373. /* Are we little or big endian? From Harbison&Steele. */
  4374. union
  4375. {
  4376. long int l;
  4377. char c[sizeof (long int)];
  4378. } u;
  4379. u.l = 1;
  4380. return u.c[sizeof (long int) - 1] == 1;
  4381. ;
  4382. return 0;
  4383. }
  4384. _ACEOF
  4385. if ac_fn_c_try_run "$LINENO"; then :
  4386. ac_cv_c_bigendian=no
  4387. else
  4388. ac_cv_c_bigendian=yes
  4389. fi
  4390. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4391. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4392. fi
  4393. fi
  4394. fi
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4396. $as_echo "$ac_cv_c_bigendian" >&6; }
  4397. case $ac_cv_c_bigendian in #(
  4398. yes)
  4399. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4400. ;; #(
  4401. no)
  4402. ;; #(
  4403. universal)
  4404. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4405. ;; #(
  4406. *)
  4407. as_fn_error "unknown endianness
  4408. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4409. esac
  4410. # Enable --enable-host-shared.
  4411. # Check whether --enable-host-shared was given.
  4412. if test "${enable_host_shared+set}" = set; then :
  4413. enableval=$enable_host_shared; PICFLAG=-fPIC
  4414. else
  4415. PICFLAG=
  4416. fi
  4417. # Output.
  4418. ac_config_headers="$ac_config_headers config.h:config.in"
  4419. ac_config_files="$ac_config_files Makefile"
  4420. cat >confcache <<\_ACEOF
  4421. # This file is a shell script that caches the results of configure
  4422. # tests run on this system so they can be shared between configure
  4423. # scripts and configure runs, see configure's option --config-cache.
  4424. # It is not useful on other systems. If it contains results you don't
  4425. # want to keep, you may remove or edit it.
  4426. #
  4427. # config.status only pays attention to the cache file if you give it
  4428. # the --recheck option to rerun configure.
  4429. #
  4430. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4431. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4432. # following values.
  4433. _ACEOF
  4434. # The following way of writing the cache mishandles newlines in values,
  4435. # but we know of no workaround that is simple, portable, and efficient.
  4436. # So, we kill variables containing newlines.
  4437. # Ultrix sh set writes to stderr and can't be redirected directly,
  4438. # and sets the high bit in the cache file unless we assign to the vars.
  4439. (
  4440. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4441. eval ac_val=\$$ac_var
  4442. case $ac_val in #(
  4443. *${as_nl}*)
  4444. case $ac_var in #(
  4445. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4446. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4447. esac
  4448. case $ac_var in #(
  4449. _ | IFS | as_nl) ;; #(
  4450. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4451. *) { eval $ac_var=; unset $ac_var;} ;;
  4452. esac ;;
  4453. esac
  4454. done
  4455. (set) 2>&1 |
  4456. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4457. *${as_nl}ac_space=\ *)
  4458. # `set' does not quote correctly, so add quotes: double-quote
  4459. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4460. sed -n \
  4461. "s/'/'\\\\''/g;
  4462. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4463. ;; #(
  4464. *)
  4465. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4466. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4467. ;;
  4468. esac |
  4469. sort
  4470. ) |
  4471. sed '
  4472. /^ac_cv_env_/b end
  4473. t clear
  4474. :clear
  4475. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4476. t end
  4477. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4478. :end' >>confcache
  4479. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4480. if test -w "$cache_file"; then
  4481. test "x$cache_file" != "x/dev/null" &&
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4483. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4484. cat confcache >$cache_file
  4485. else
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4487. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4488. fi
  4489. fi
  4490. rm -f confcache
  4491. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4492. # Let make expand exec_prefix.
  4493. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4494. DEFS=-DHAVE_CONFIG_H
  4495. ac_libobjs=
  4496. ac_ltlibobjs=
  4497. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4498. # 1. Remove the extension, and $U if already installed.
  4499. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4500. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4501. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4502. # will be set to the directory where LIBOBJS objects are built.
  4503. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4504. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4505. done
  4506. LIBOBJS=$ac_libobjs
  4507. LTLIBOBJS=$ac_ltlibobjs
  4508. : ${CONFIG_STATUS=./config.status}
  4509. ac_write_fail=0
  4510. ac_clean_files_save=$ac_clean_files
  4511. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4513. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4514. as_write_fail=0
  4515. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4516. #! $SHELL
  4517. # Generated by $as_me.
  4518. # Run this file to recreate the current configuration.
  4519. # Compiler output produced by configure, useful for debugging
  4520. # configure, is in config.log if it exists.
  4521. debug=false
  4522. ac_cs_recheck=false
  4523. ac_cs_silent=false
  4524. SHELL=\${CONFIG_SHELL-$SHELL}
  4525. export SHELL
  4526. _ASEOF
  4527. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4528. ## -------------------- ##
  4529. ## M4sh Initialization. ##
  4530. ## -------------------- ##
  4531. # Be more Bourne compatible
  4532. DUALCASE=1; export DUALCASE # for MKS sh
  4533. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4534. emulate sh
  4535. NULLCMD=:
  4536. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4537. # is contrary to our usage. Disable this feature.
  4538. alias -g '${1+"$@"}'='"$@"'
  4539. setopt NO_GLOB_SUBST
  4540. else
  4541. case `(set -o) 2>/dev/null` in #(
  4542. *posix*) :
  4543. set -o posix ;; #(
  4544. *) :
  4545. ;;
  4546. esac
  4547. fi
  4548. as_nl='
  4549. '
  4550. export as_nl
  4551. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4552. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4553. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4554. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4555. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4556. # but without wasting forks for bash or zsh.
  4557. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4558. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4559. as_echo='print -r --'
  4560. as_echo_n='print -rn --'
  4561. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4562. as_echo='printf %s\n'
  4563. as_echo_n='printf %s'
  4564. else
  4565. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4566. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4567. as_echo_n='/usr/ucb/echo -n'
  4568. else
  4569. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4570. as_echo_n_body='eval
  4571. arg=$1;
  4572. case $arg in #(
  4573. *"$as_nl"*)
  4574. expr "X$arg" : "X\\(.*\\)$as_nl";
  4575. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4576. esac;
  4577. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4578. '
  4579. export as_echo_n_body
  4580. as_echo_n='sh -c $as_echo_n_body as_echo'
  4581. fi
  4582. export as_echo_body
  4583. as_echo='sh -c $as_echo_body as_echo'
  4584. fi
  4585. # The user is always right.
  4586. if test "${PATH_SEPARATOR+set}" != set; then
  4587. PATH_SEPARATOR=:
  4588. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4589. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4590. PATH_SEPARATOR=';'
  4591. }
  4592. fi
  4593. # IFS
  4594. # We need space, tab and new line, in precisely that order. Quoting is
  4595. # there to prevent editors from complaining about space-tab.
  4596. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4597. # splitting by setting IFS to empty value.)
  4598. IFS=" "" $as_nl"
  4599. # Find who we are. Look in the path if we contain no directory separator.
  4600. case $0 in #((
  4601. *[\\/]* ) as_myself=$0 ;;
  4602. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. test -z "$as_dir" && as_dir=.
  4607. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4608. done
  4609. IFS=$as_save_IFS
  4610. ;;
  4611. esac
  4612. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4613. # in which case we are not to be found in the path.
  4614. if test "x$as_myself" = x; then
  4615. as_myself=$0
  4616. fi
  4617. if test ! -f "$as_myself"; then
  4618. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4619. exit 1
  4620. fi
  4621. # Unset variables that we do not need and which cause bugs (e.g. in
  4622. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4623. # suppresses any "Segmentation fault" message there. '((' could
  4624. # trigger a bug in pdksh 5.2.14.
  4625. for as_var in BASH_ENV ENV MAIL MAILPATH
  4626. do eval test x\${$as_var+set} = xset \
  4627. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4628. done
  4629. PS1='$ '
  4630. PS2='> '
  4631. PS4='+ '
  4632. # NLS nuisances.
  4633. LC_ALL=C
  4634. export LC_ALL
  4635. LANGUAGE=C
  4636. export LANGUAGE
  4637. # CDPATH.
  4638. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4639. # as_fn_error ERROR [LINENO LOG_FD]
  4640. # ---------------------------------
  4641. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4642. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4643. # script with status $?, using 1 if that was 0.
  4644. as_fn_error ()
  4645. {
  4646. as_status=$?; test $as_status -eq 0 && as_status=1
  4647. if test "$3"; then
  4648. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4649. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  4650. fi
  4651. $as_echo "$as_me: error: $1" >&2
  4652. as_fn_exit $as_status
  4653. } # as_fn_error
  4654. # as_fn_set_status STATUS
  4655. # -----------------------
  4656. # Set $? to STATUS, without forking.
  4657. as_fn_set_status ()
  4658. {
  4659. return $1
  4660. } # as_fn_set_status
  4661. # as_fn_exit STATUS
  4662. # -----------------
  4663. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4664. as_fn_exit ()
  4665. {
  4666. set +e
  4667. as_fn_set_status $1
  4668. exit $1
  4669. } # as_fn_exit
  4670. # as_fn_unset VAR
  4671. # ---------------
  4672. # Portably unset VAR.
  4673. as_fn_unset ()
  4674. {
  4675. { eval $1=; unset $1;}
  4676. }
  4677. as_unset=as_fn_unset
  4678. # as_fn_append VAR VALUE
  4679. # ----------------------
  4680. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4681. # advantage of any shell optimizations that allow amortized linear growth over
  4682. # repeated appends, instead of the typical quadratic growth present in naive
  4683. # implementations.
  4684. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4685. eval 'as_fn_append ()
  4686. {
  4687. eval $1+=\$2
  4688. }'
  4689. else
  4690. as_fn_append ()
  4691. {
  4692. eval $1=\$$1\$2
  4693. }
  4694. fi # as_fn_append
  4695. # as_fn_arith ARG...
  4696. # ------------------
  4697. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4698. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4699. # must be portable across $(()) and expr.
  4700. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4701. eval 'as_fn_arith ()
  4702. {
  4703. as_val=$(( $* ))
  4704. }'
  4705. else
  4706. as_fn_arith ()
  4707. {
  4708. as_val=`expr "$@" || test $? -eq 1`
  4709. }
  4710. fi # as_fn_arith
  4711. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4712. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4713. as_expr=expr
  4714. else
  4715. as_expr=false
  4716. fi
  4717. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4718. as_basename=basename
  4719. else
  4720. as_basename=false
  4721. fi
  4722. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4723. as_dirname=dirname
  4724. else
  4725. as_dirname=false
  4726. fi
  4727. as_me=`$as_basename -- "$0" ||
  4728. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4729. X"$0" : 'X\(//\)$' \| \
  4730. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4731. $as_echo X/"$0" |
  4732. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4733. s//\1/
  4734. q
  4735. }
  4736. /^X\/\(\/\/\)$/{
  4737. s//\1/
  4738. q
  4739. }
  4740. /^X\/\(\/\).*/{
  4741. s//\1/
  4742. q
  4743. }
  4744. s/.*/./; q'`
  4745. # Avoid depending upon Character Ranges.
  4746. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4747. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4748. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4749. as_cr_digits='0123456789'
  4750. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4751. ECHO_C= ECHO_N= ECHO_T=
  4752. case `echo -n x` in #(((((
  4753. -n*)
  4754. case `echo 'xy\c'` in
  4755. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4756. xy) ECHO_C='\c';;
  4757. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4758. ECHO_T=' ';;
  4759. esac;;
  4760. *)
  4761. ECHO_N='-n';;
  4762. esac
  4763. rm -f conf$$ conf$$.exe conf$$.file
  4764. if test -d conf$$.dir; then
  4765. rm -f conf$$.dir/conf$$.file
  4766. else
  4767. rm -f conf$$.dir
  4768. mkdir conf$$.dir 2>/dev/null
  4769. fi
  4770. if (echo >conf$$.file) 2>/dev/null; then
  4771. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4772. as_ln_s='ln -s'
  4773. # ... but there are two gotchas:
  4774. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4775. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4776. # In both cases, we have to default to `cp -p'.
  4777. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4778. as_ln_s='cp -p'
  4779. elif ln conf$$.file conf$$ 2>/dev/null; then
  4780. as_ln_s=ln
  4781. else
  4782. as_ln_s='cp -p'
  4783. fi
  4784. else
  4785. as_ln_s='cp -p'
  4786. fi
  4787. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4788. rmdir conf$$.dir 2>/dev/null
  4789. # as_fn_mkdir_p
  4790. # -------------
  4791. # Create "$as_dir" as a directory, including parents if necessary.
  4792. as_fn_mkdir_p ()
  4793. {
  4794. case $as_dir in #(
  4795. -*) as_dir=./$as_dir;;
  4796. esac
  4797. test -d "$as_dir" || eval $as_mkdir_p || {
  4798. as_dirs=
  4799. while :; do
  4800. case $as_dir in #(
  4801. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4802. *) as_qdir=$as_dir;;
  4803. esac
  4804. as_dirs="'$as_qdir' $as_dirs"
  4805. as_dir=`$as_dirname -- "$as_dir" ||
  4806. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4807. X"$as_dir" : 'X\(//\)[^/]' \| \
  4808. X"$as_dir" : 'X\(//\)$' \| \
  4809. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4810. $as_echo X"$as_dir" |
  4811. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4812. s//\1/
  4813. q
  4814. }
  4815. /^X\(\/\/\)[^/].*/{
  4816. s//\1/
  4817. q
  4818. }
  4819. /^X\(\/\/\)$/{
  4820. s//\1/
  4821. q
  4822. }
  4823. /^X\(\/\).*/{
  4824. s//\1/
  4825. q
  4826. }
  4827. s/.*/./; q'`
  4828. test -d "$as_dir" && break
  4829. done
  4830. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4831. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  4832. } # as_fn_mkdir_p
  4833. if mkdir -p . 2>/dev/null; then
  4834. as_mkdir_p='mkdir -p "$as_dir"'
  4835. else
  4836. test -d ./-p && rmdir ./-p
  4837. as_mkdir_p=false
  4838. fi
  4839. if test -x / >/dev/null 2>&1; then
  4840. as_test_x='test -x'
  4841. else
  4842. if ls -dL / >/dev/null 2>&1; then
  4843. as_ls_L_option=L
  4844. else
  4845. as_ls_L_option=
  4846. fi
  4847. as_test_x='
  4848. eval sh -c '\''
  4849. if test -d "$1"; then
  4850. test -d "$1/.";
  4851. else
  4852. case $1 in #(
  4853. -*)set "./$1";;
  4854. esac;
  4855. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  4856. ???[sx]*):;;*)false;;esac;fi
  4857. '\'' sh
  4858. '
  4859. fi
  4860. as_executable_p=$as_test_x
  4861. # Sed expression to map a string onto a valid CPP name.
  4862. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4863. # Sed expression to map a string onto a valid variable name.
  4864. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4865. exec 6>&1
  4866. ## ----------------------------------- ##
  4867. ## Main body of $CONFIG_STATUS script. ##
  4868. ## ----------------------------------- ##
  4869. _ASEOF
  4870. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4871. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4872. # Save the log message, to keep $0 and so on meaningful, and to
  4873. # report actual input values of CONFIG_FILES etc. instead of their
  4874. # values after options handling.
  4875. ac_log="
  4876. This file was extended by libdecnumber $as_me , which was
  4877. generated by GNU Autoconf 2.64. Invocation command line was
  4878. CONFIG_FILES = $CONFIG_FILES
  4879. CONFIG_HEADERS = $CONFIG_HEADERS
  4880. CONFIG_LINKS = $CONFIG_LINKS
  4881. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4882. $ $0 $@
  4883. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4884. "
  4885. _ACEOF
  4886. case $ac_config_files in *"
  4887. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4888. esac
  4889. case $ac_config_headers in *"
  4890. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  4891. esac
  4892. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4893. # Files that config.status was made for.
  4894. config_files="$ac_config_files"
  4895. config_headers="$ac_config_headers"
  4896. config_commands="$ac_config_commands"
  4897. _ACEOF
  4898. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4899. ac_cs_usage="\
  4900. \`$as_me' instantiates files and other configuration actions
  4901. from templates according to the current configuration. Unless the files
  4902. and actions are specified as TAGs, all are instantiated by default.
  4903. Usage: $0 [OPTION]... [TAG]...
  4904. -h, --help print this help, then exit
  4905. -V, --version print version number and configuration settings, then exit
  4906. -q, --quiet, --silent
  4907. do not print progress messages
  4908. -d, --debug don't remove temporary files
  4909. --recheck update $as_me by reconfiguring in the same conditions
  4910. --file=FILE[:TEMPLATE]
  4911. instantiate the configuration file FILE
  4912. --header=FILE[:TEMPLATE]
  4913. instantiate the configuration header FILE
  4914. Configuration files:
  4915. $config_files
  4916. Configuration headers:
  4917. $config_headers
  4918. Configuration commands:
  4919. $config_commands
  4920. Report bugs to <gcc-bugs@gcc.gnu.org>."
  4921. _ACEOF
  4922. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4923. ac_cs_version="\\
  4924. libdecnumber config.status
  4925. configured by $0, generated by GNU Autoconf 2.64,
  4926. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  4927. Copyright (C) 2009 Free Software Foundation, Inc.
  4928. This config.status script is free software; the Free Software Foundation
  4929. gives unlimited permission to copy, distribute and modify it."
  4930. ac_pwd='$ac_pwd'
  4931. srcdir='$srcdir'
  4932. test -n "\$AWK" || AWK=awk
  4933. _ACEOF
  4934. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4935. # The default lists apply if the user does not specify any file.
  4936. ac_need_defaults=:
  4937. while test $# != 0
  4938. do
  4939. case $1 in
  4940. --*=*)
  4941. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4942. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4943. ac_shift=:
  4944. ;;
  4945. *)
  4946. ac_option=$1
  4947. ac_optarg=$2
  4948. ac_shift=shift
  4949. ;;
  4950. esac
  4951. case $ac_option in
  4952. # Handling of the options.
  4953. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4954. ac_cs_recheck=: ;;
  4955. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4956. $as_echo "$ac_cs_version"; exit ;;
  4957. --debug | --debu | --deb | --de | --d | -d )
  4958. debug=: ;;
  4959. --file | --fil | --fi | --f )
  4960. $ac_shift
  4961. case $ac_optarg in
  4962. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4963. esac
  4964. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4965. ac_need_defaults=false;;
  4966. --header | --heade | --head | --hea )
  4967. $ac_shift
  4968. case $ac_optarg in
  4969. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4970. esac
  4971. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  4972. ac_need_defaults=false;;
  4973. --he | --h)
  4974. # Conflict between --help and --header
  4975. as_fn_error "ambiguous option: \`$1'
  4976. Try \`$0 --help' for more information.";;
  4977. --help | --hel | -h )
  4978. $as_echo "$ac_cs_usage"; exit ;;
  4979. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4980. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4981. ac_cs_silent=: ;;
  4982. # This is an error.
  4983. -*) as_fn_error "unrecognized option: \`$1'
  4984. Try \`$0 --help' for more information." ;;
  4985. *) as_fn_append ac_config_targets " $1"
  4986. ac_need_defaults=false ;;
  4987. esac
  4988. shift
  4989. done
  4990. ac_configure_extra_args=
  4991. if $ac_cs_silent; then
  4992. exec 6>/dev/null
  4993. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4994. fi
  4995. _ACEOF
  4996. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4997. if \$ac_cs_recheck; then
  4998. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4999. shift
  5000. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  5001. CONFIG_SHELL='$SHELL'
  5002. export CONFIG_SHELL
  5003. exec "\$@"
  5004. fi
  5005. _ACEOF
  5006. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5007. exec 5>>config.log
  5008. {
  5009. echo
  5010. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5011. ## Running $as_me. ##
  5012. _ASBOX
  5013. $as_echo "$ac_log"
  5014. } >&5
  5015. _ACEOF
  5016. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5017. #
  5018. # INIT-COMMANDS
  5019. #
  5020. GCC="$GCC"
  5021. CC="$CC"
  5022. acx_cv_header_stdint="$acx_cv_header_stdint"
  5023. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  5024. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  5025. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  5026. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  5027. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  5028. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  5029. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  5030. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  5031. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  5032. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  5033. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  5034. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  5035. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  5036. _ACEOF
  5037. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5038. # Handling of arguments.
  5039. for ac_config_target in $ac_config_targets
  5040. do
  5041. case $ac_config_target in
  5042. "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  5043. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  5044. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5045. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5046. esac
  5047. done
  5048. # If the user did not use the arguments to specify the items to instantiate,
  5049. # then the envvar interface is used. Set only those that are not.
  5050. # We use the long form for the default assignment because of an extremely
  5051. # bizarre bug on SunOS 4.1.3.
  5052. if $ac_need_defaults; then
  5053. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5054. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5055. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  5056. fi
  5057. # Have a temporary directory for convenience. Make it in the build tree
  5058. # simply because there is no reason against having it here, and in addition,
  5059. # creating and moving files from /tmp can sometimes cause problems.
  5060. # Hook for its removal unless debugging.
  5061. # Note that there is a small window in which the directory will not be cleaned:
  5062. # after its creation but before its name has been assigned to `$tmp'.
  5063. $debug ||
  5064. {
  5065. tmp=
  5066. trap 'exit_status=$?
  5067. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  5068. ' 0
  5069. trap 'as_fn_exit 1' 1 2 13 15
  5070. }
  5071. # Create a (secure) tmp directory for tmp files.
  5072. {
  5073. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5074. test -n "$tmp" && test -d "$tmp"
  5075. } ||
  5076. {
  5077. tmp=./conf$$-$RANDOM
  5078. (umask 077 && mkdir "$tmp")
  5079. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  5080. # Set up the scripts for CONFIG_FILES section.
  5081. # No need to generate them if there are no CONFIG_FILES.
  5082. # This happens for instance with `./config.status config.h'.
  5083. if test -n "$CONFIG_FILES"; then
  5084. ac_cr=`echo X | tr X '\015'`
  5085. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5086. # But we know of no other shell where ac_cr would be empty at this
  5087. # point, so we can use a bashism as a fallback.
  5088. if test "x$ac_cr" = x; then
  5089. eval ac_cr=\$\'\\r\'
  5090. fi
  5091. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5092. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5093. ac_cs_awk_cr='\r'
  5094. else
  5095. ac_cs_awk_cr=$ac_cr
  5096. fi
  5097. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  5098. _ACEOF
  5099. {
  5100. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5101. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5102. echo "_ACEOF"
  5103. } >conf$$subs.sh ||
  5104. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  5105. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  5106. ac_delim='%!_!# '
  5107. for ac_last_try in false false false false false :; do
  5108. . ./conf$$subs.sh ||
  5109. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  5110. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5111. if test $ac_delim_n = $ac_delim_num; then
  5112. break
  5113. elif $ac_last_try; then
  5114. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  5115. else
  5116. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5117. fi
  5118. done
  5119. rm -f conf$$subs.sh
  5120. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5121. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  5122. _ACEOF
  5123. sed -n '
  5124. h
  5125. s/^/S["/; s/!.*/"]=/
  5126. p
  5127. g
  5128. s/^[^!]*!//
  5129. :repl
  5130. t repl
  5131. s/'"$ac_delim"'$//
  5132. t delim
  5133. :nl
  5134. h
  5135. s/\(.\{148\}\).*/\1/
  5136. t more1
  5137. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5138. p
  5139. n
  5140. b repl
  5141. :more1
  5142. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5143. p
  5144. g
  5145. s/.\{148\}//
  5146. t nl
  5147. :delim
  5148. h
  5149. s/\(.\{148\}\).*/\1/
  5150. t more2
  5151. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5152. p
  5153. b
  5154. :more2
  5155. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5156. p
  5157. g
  5158. s/.\{148\}//
  5159. t delim
  5160. ' <conf$$subs.awk | sed '
  5161. /^[^""]/{
  5162. N
  5163. s/\n//
  5164. }
  5165. ' >>$CONFIG_STATUS || ac_write_fail=1
  5166. rm -f conf$$subs.awk
  5167. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5168. _ACAWK
  5169. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  5170. for (key in S) S_is_set[key] = 1
  5171. FS = ""
  5172. }
  5173. {
  5174. line = $ 0
  5175. nfields = split(line, field, "@")
  5176. substed = 0
  5177. len = length(field[1])
  5178. for (i = 2; i < nfields; i++) {
  5179. key = field[i]
  5180. keylen = length(key)
  5181. if (S_is_set[key]) {
  5182. value = S[key]
  5183. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5184. len += length(value) + length(field[++i])
  5185. substed = 1
  5186. } else
  5187. len += 1 + keylen
  5188. }
  5189. print line
  5190. }
  5191. _ACAWK
  5192. _ACEOF
  5193. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5194. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5195. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5196. else
  5197. cat
  5198. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  5199. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  5200. _ACEOF
  5201. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  5202. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  5203. # trailing colons and then remove the whole line if VPATH becomes empty
  5204. # (actually we leave an empty line to preserve line numbers).
  5205. if test "x$srcdir" = x.; then
  5206. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  5207. s/:*\$(srcdir):*/:/
  5208. s/:*\${srcdir}:*/:/
  5209. s/:*@srcdir@:*/:/
  5210. s/^\([^=]*=[ ]*\):*/\1/
  5211. s/:*$//
  5212. s/^[^=]*=[ ]*$//
  5213. }'
  5214. fi
  5215. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5216. fi # test -n "$CONFIG_FILES"
  5217. # Set up the scripts for CONFIG_HEADERS section.
  5218. # No need to generate them if there are no CONFIG_HEADERS.
  5219. # This happens for instance with `./config.status Makefile'.
  5220. if test -n "$CONFIG_HEADERS"; then
  5221. cat >"$tmp/defines.awk" <<\_ACAWK ||
  5222. BEGIN {
  5223. _ACEOF
  5224. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5225. # here-document in config.status, that substitutes the proper values into
  5226. # config.h.in to produce config.h.
  5227. # Create a delimiter string that does not exist in confdefs.h, to ease
  5228. # handling of long lines.
  5229. ac_delim='%!_!# '
  5230. for ac_last_try in false false :; do
  5231. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  5232. if test -z "$ac_t"; then
  5233. break
  5234. elif $ac_last_try; then
  5235. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  5236. else
  5237. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5238. fi
  5239. done
  5240. # For the awk script, D is an array of macro values keyed by name,
  5241. # likewise P contains macro parameters if any. Preserve backslash
  5242. # newline sequences.
  5243. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5244. sed -n '
  5245. s/.\{148\}/&'"$ac_delim"'/g
  5246. t rset
  5247. :rset
  5248. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5249. t def
  5250. d
  5251. :def
  5252. s/\\$//
  5253. t bsnl
  5254. s/["\\]/\\&/g
  5255. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5256. D["\1"]=" \3"/p
  5257. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5258. d
  5259. :bsnl
  5260. s/["\\]/\\&/g
  5261. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5262. D["\1"]=" \3\\\\\\n"\\/p
  5263. t cont
  5264. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5265. t cont
  5266. d
  5267. :cont
  5268. n
  5269. s/.\{148\}/&'"$ac_delim"'/g
  5270. t clear
  5271. :clear
  5272. s/\\$//
  5273. t bsnlc
  5274. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5275. d
  5276. :bsnlc
  5277. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5278. b cont
  5279. ' <confdefs.h | sed '
  5280. s/'"$ac_delim"'/"\\\
  5281. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5282. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5283. for (key in D) D_is_set[key] = 1
  5284. FS = ""
  5285. }
  5286. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5287. line = \$ 0
  5288. split(line, arg, " ")
  5289. if (arg[1] == "#") {
  5290. defundef = arg[2]
  5291. mac1 = arg[3]
  5292. } else {
  5293. defundef = substr(arg[1], 2)
  5294. mac1 = arg[2]
  5295. }
  5296. split(mac1, mac2, "(") #)
  5297. macro = mac2[1]
  5298. prefix = substr(line, 1, index(line, defundef) - 1)
  5299. if (D_is_set[macro]) {
  5300. # Preserve the white space surrounding the "#".
  5301. print prefix "define", macro P[macro] D[macro]
  5302. next
  5303. } else {
  5304. # Replace #undef with comments. This is necessary, for example,
  5305. # in the case of _POSIX_SOURCE, which is predefined and required
  5306. # on some systems where configure will not decide to define it.
  5307. if (defundef == "undef") {
  5308. print "/*", prefix defundef, macro, "*/"
  5309. next
  5310. }
  5311. }
  5312. }
  5313. { print }
  5314. _ACAWK
  5315. _ACEOF
  5316. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5317. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  5318. fi # test -n "$CONFIG_HEADERS"
  5319. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  5320. shift
  5321. for ac_tag
  5322. do
  5323. case $ac_tag in
  5324. :[FHLC]) ac_mode=$ac_tag; continue;;
  5325. esac
  5326. case $ac_mode$ac_tag in
  5327. :[FHL]*:*);;
  5328. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5329. :[FH]-) ac_tag=-:-;;
  5330. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5331. esac
  5332. ac_save_IFS=$IFS
  5333. IFS=:
  5334. set x $ac_tag
  5335. IFS=$ac_save_IFS
  5336. shift
  5337. ac_file=$1
  5338. shift
  5339. case $ac_mode in
  5340. :L) ac_source=$1;;
  5341. :[FH])
  5342. ac_file_inputs=
  5343. for ac_f
  5344. do
  5345. case $ac_f in
  5346. -) ac_f="$tmp/stdin";;
  5347. *) # Look for the file first in the build tree, then in the source tree
  5348. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5349. # because $ac_f cannot contain `:'.
  5350. test -f "$ac_f" ||
  5351. case $ac_f in
  5352. [\\/$]*) false;;
  5353. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5354. esac ||
  5355. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5356. esac
  5357. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5358. as_fn_append ac_file_inputs " '$ac_f'"
  5359. done
  5360. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5361. # use $as_me), people would be surprised to read:
  5362. # /* config.h. Generated by config.status. */
  5363. configure_input='Generated from '`
  5364. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5365. `' by configure.'
  5366. if test x"$ac_file" != x-; then
  5367. configure_input="$ac_file. $configure_input"
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5369. $as_echo "$as_me: creating $ac_file" >&6;}
  5370. fi
  5371. # Neutralize special characters interpreted by sed in replacement strings.
  5372. case $configure_input in #(
  5373. *\&* | *\|* | *\\* )
  5374. ac_sed_conf_input=`$as_echo "$configure_input" |
  5375. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5376. *) ac_sed_conf_input=$configure_input;;
  5377. esac
  5378. case $ac_tag in
  5379. *:-:* | *:-) cat >"$tmp/stdin" \
  5380. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  5381. esac
  5382. ;;
  5383. esac
  5384. ac_dir=`$as_dirname -- "$ac_file" ||
  5385. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5386. X"$ac_file" : 'X\(//\)[^/]' \| \
  5387. X"$ac_file" : 'X\(//\)$' \| \
  5388. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5389. $as_echo X"$ac_file" |
  5390. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5391. s//\1/
  5392. q
  5393. }
  5394. /^X\(\/\/\)[^/].*/{
  5395. s//\1/
  5396. q
  5397. }
  5398. /^X\(\/\/\)$/{
  5399. s//\1/
  5400. q
  5401. }
  5402. /^X\(\/\).*/{
  5403. s//\1/
  5404. q
  5405. }
  5406. s/.*/./; q'`
  5407. as_dir="$ac_dir"; as_fn_mkdir_p
  5408. ac_builddir=.
  5409. case "$ac_dir" in
  5410. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5411. *)
  5412. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5413. # A ".." for each directory in $ac_dir_suffix.
  5414. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5415. case $ac_top_builddir_sub in
  5416. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5417. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5418. esac ;;
  5419. esac
  5420. ac_abs_top_builddir=$ac_pwd
  5421. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5422. # for backward compatibility:
  5423. ac_top_builddir=$ac_top_build_prefix
  5424. case $srcdir in
  5425. .) # We are building in place.
  5426. ac_srcdir=.
  5427. ac_top_srcdir=$ac_top_builddir_sub
  5428. ac_abs_top_srcdir=$ac_pwd ;;
  5429. [\\/]* | ?:[\\/]* ) # Absolute name.
  5430. ac_srcdir=$srcdir$ac_dir_suffix;
  5431. ac_top_srcdir=$srcdir
  5432. ac_abs_top_srcdir=$srcdir ;;
  5433. *) # Relative name.
  5434. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5435. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5436. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5437. esac
  5438. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5439. case $ac_mode in
  5440. :F)
  5441. #
  5442. # CONFIG_FILE
  5443. #
  5444. _ACEOF
  5445. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5446. # If the template does not know about datarootdir, expand it.
  5447. # FIXME: This hack should be removed a few years after 2.60.
  5448. ac_datarootdir_hack=; ac_datarootdir_seen=
  5449. ac_sed_dataroot='
  5450. /datarootdir/ {
  5451. p
  5452. q
  5453. }
  5454. /@datadir@/p
  5455. /@docdir@/p
  5456. /@infodir@/p
  5457. /@localedir@/p
  5458. /@mandir@/p'
  5459. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5460. *datarootdir*) ac_datarootdir_seen=yes;;
  5461. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5463. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5464. _ACEOF
  5465. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5466. ac_datarootdir_hack='
  5467. s&@datadir@&$datadir&g
  5468. s&@docdir@&$docdir&g
  5469. s&@infodir@&$infodir&g
  5470. s&@localedir@&$localedir&g
  5471. s&@mandir@&$mandir&g
  5472. s&\\\${datarootdir}&$datarootdir&g' ;;
  5473. esac
  5474. _ACEOF
  5475. # Neutralize VPATH when `$srcdir' = `.'.
  5476. # Shell code in configure.ac might set extrasub.
  5477. # FIXME: do we really want to maintain this feature?
  5478. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5479. ac_sed_extra="$ac_vpsub
  5480. $extrasub
  5481. _ACEOF
  5482. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5483. :t
  5484. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5485. s|@configure_input@|$ac_sed_conf_input|;t t
  5486. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5487. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5488. s&@srcdir@&$ac_srcdir&;t t
  5489. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5490. s&@top_srcdir@&$ac_top_srcdir&;t t
  5491. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5492. s&@builddir@&$ac_builddir&;t t
  5493. s&@abs_builddir@&$ac_abs_builddir&;t t
  5494. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5495. $ac_datarootdir_hack
  5496. "
  5497. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  5498. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5499. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5500. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  5501. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5503. which seems to be undefined. Please make sure it is defined." >&5
  5504. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5505. which seems to be undefined. Please make sure it is defined." >&2;}
  5506. rm -f "$tmp/stdin"
  5507. case $ac_file in
  5508. -) cat "$tmp/out" && rm -f "$tmp/out";;
  5509. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  5510. esac \
  5511. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5512. ;;
  5513. :H)
  5514. #
  5515. # CONFIG_HEADER
  5516. #
  5517. if test x"$ac_file" != x-; then
  5518. {
  5519. $as_echo "/* $configure_input */" \
  5520. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  5521. } >"$tmp/config.h" \
  5522. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5523. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5525. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5526. else
  5527. rm -f "$ac_file"
  5528. mv "$tmp/config.h" "$ac_file" \
  5529. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5530. fi
  5531. else
  5532. $as_echo "/* $configure_input */" \
  5533. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  5534. || as_fn_error "could not create -" "$LINENO" 5
  5535. fi
  5536. ;;
  5537. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  5538. $as_echo "$as_me: executing $ac_file commands" >&6;}
  5539. ;;
  5540. esac
  5541. case $ac_file$ac_mode in
  5542. "gstdint.h":C)
  5543. if test "$GCC" = yes; then
  5544. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  5545. else
  5546. echo "/* generated for $CC */" > tmp-stdint.h
  5547. fi
  5548. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5549. #ifndef GCC_GENERATED_STDINT_H
  5550. #define GCC_GENERATED_STDINT_H 1
  5551. #include <sys/types.h>
  5552. EOF
  5553. if test "$acx_cv_header_stdint" != stdint.h; then
  5554. echo "#include <stddef.h>" >> tmp-stdint.h
  5555. fi
  5556. if test "$acx_cv_header_stdint" != stddef.h; then
  5557. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  5558. fi
  5559. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5560. /* glibc uses these symbols as guards to prevent redefinitions. */
  5561. #ifdef __int8_t_defined
  5562. #define _INT8_T
  5563. #define _INT16_T
  5564. #define _INT32_T
  5565. #endif
  5566. #ifdef __uint32_t_defined
  5567. #define _UINT32_T
  5568. #endif
  5569. EOF
  5570. # ----------------- done header, emit basic int types -------------
  5571. if test "$acx_cv_header_stdint" = stddef.h; then
  5572. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5573. #ifndef _UINT8_T
  5574. #define _UINT8_T
  5575. #ifndef __uint8_t_defined
  5576. #define __uint8_t_defined
  5577. #ifndef uint8_t
  5578. typedef unsigned $acx_cv_type_int8_t uint8_t;
  5579. #endif
  5580. #endif
  5581. #endif
  5582. #ifndef _UINT16_T
  5583. #define _UINT16_T
  5584. #ifndef __uint16_t_defined
  5585. #define __uint16_t_defined
  5586. #ifndef uint16_t
  5587. typedef unsigned $acx_cv_type_int16_t uint16_t;
  5588. #endif
  5589. #endif
  5590. #endif
  5591. #ifndef _UINT32_T
  5592. #define _UINT32_T
  5593. #ifndef __uint32_t_defined
  5594. #define __uint32_t_defined
  5595. #ifndef uint32_t
  5596. typedef unsigned $acx_cv_type_int32_t uint32_t;
  5597. #endif
  5598. #endif
  5599. #endif
  5600. #ifndef _INT8_T
  5601. #define _INT8_T
  5602. #ifndef __int8_t_defined
  5603. #define __int8_t_defined
  5604. #ifndef int8_t
  5605. typedef $acx_cv_type_int8_t int8_t;
  5606. #endif
  5607. #endif
  5608. #endif
  5609. #ifndef _INT16_T
  5610. #define _INT16_T
  5611. #ifndef __int16_t_defined
  5612. #define __int16_t_defined
  5613. #ifndef int16_t
  5614. typedef $acx_cv_type_int16_t int16_t;
  5615. #endif
  5616. #endif
  5617. #endif
  5618. #ifndef _INT32_T
  5619. #define _INT32_T
  5620. #ifndef __int32_t_defined
  5621. #define __int32_t_defined
  5622. #ifndef int32_t
  5623. typedef $acx_cv_type_int32_t int32_t;
  5624. #endif
  5625. #endif
  5626. #endif
  5627. EOF
  5628. elif test "$ac_cv_type_u_int32_t" = yes; then
  5629. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5630. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  5631. #ifndef _INT8_T
  5632. #define _INT8_T
  5633. #endif
  5634. #ifndef _INT16_T
  5635. #define _INT16_T
  5636. #endif
  5637. #ifndef _INT32_T
  5638. #define _INT32_T
  5639. #endif
  5640. #ifndef _UINT8_T
  5641. #define _UINT8_T
  5642. #ifndef __uint8_t_defined
  5643. #define __uint8_t_defined
  5644. #ifndef uint8_t
  5645. typedef u_int8_t uint8_t;
  5646. #endif
  5647. #endif
  5648. #endif
  5649. #ifndef _UINT16_T
  5650. #define _UINT16_T
  5651. #ifndef __uint16_t_defined
  5652. #define __uint16_t_defined
  5653. #ifndef uint16_t
  5654. typedef u_int16_t uint16_t;
  5655. #endif
  5656. #endif
  5657. #endif
  5658. #ifndef _UINT32_T
  5659. #define _UINT32_T
  5660. #ifndef __uint32_t_defined
  5661. #define __uint32_t_defined
  5662. #ifndef uint32_t
  5663. typedef u_int32_t uint32_t;
  5664. #endif
  5665. #endif
  5666. #endif
  5667. EOF
  5668. else
  5669. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5670. /* Some systems have guard macros to prevent redefinitions, define them. */
  5671. #ifndef _INT8_T
  5672. #define _INT8_T
  5673. #endif
  5674. #ifndef _INT16_T
  5675. #define _INT16_T
  5676. #endif
  5677. #ifndef _INT32_T
  5678. #define _INT32_T
  5679. #endif
  5680. #ifndef _UINT8_T
  5681. #define _UINT8_T
  5682. #endif
  5683. #ifndef _UINT16_T
  5684. #define _UINT16_T
  5685. #endif
  5686. #ifndef _UINT32_T
  5687. #define _UINT32_T
  5688. #endif
  5689. EOF
  5690. fi
  5691. # ------------- done basic int types, emit int64_t types ------------
  5692. if test "$ac_cv_type_uint64_t" = yes; then
  5693. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5694. /* system headers have good uint64_t and int64_t */
  5695. #ifndef _INT64_T
  5696. #define _INT64_T
  5697. #endif
  5698. #ifndef _UINT64_T
  5699. #define _UINT64_T
  5700. #endif
  5701. EOF
  5702. elif test "$ac_cv_type_u_int64_t" = yes; then
  5703. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5704. /* system headers have an u_int64_t (and int64_t) */
  5705. #ifndef _INT64_T
  5706. #define _INT64_T
  5707. #endif
  5708. #ifndef _UINT64_T
  5709. #define _UINT64_T
  5710. #ifndef __uint64_t_defined
  5711. #define __uint64_t_defined
  5712. #ifndef uint64_t
  5713. typedef u_int64_t uint64_t;
  5714. #endif
  5715. #endif
  5716. #endif
  5717. EOF
  5718. elif test -n "$acx_cv_type_int64_t"; then
  5719. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5720. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  5721. #ifndef _INT64_T
  5722. #define _INT64_T
  5723. #ifndef int64_t
  5724. typedef $acx_cv_type_int64_t int64_t;
  5725. #endif
  5726. #endif
  5727. #ifndef _UINT64_T
  5728. #define _UINT64_T
  5729. #ifndef __uint64_t_defined
  5730. #define __uint64_t_defined
  5731. #ifndef uint64_t
  5732. typedef unsigned $acx_cv_type_int64_t uint64_t;
  5733. #endif
  5734. #endif
  5735. #endif
  5736. EOF
  5737. else
  5738. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5739. /* some common heuristics for int64_t, using compiler-specific tests */
  5740. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  5741. #ifndef _INT64_T
  5742. #define _INT64_T
  5743. #ifndef __int64_t_defined
  5744. #ifndef int64_t
  5745. typedef long long int64_t;
  5746. #endif
  5747. #endif
  5748. #endif
  5749. #ifndef _UINT64_T
  5750. #define _UINT64_T
  5751. #ifndef uint64_t
  5752. typedef unsigned long long uint64_t;
  5753. #endif
  5754. #endif
  5755. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  5756. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  5757. does not implement __extension__. But that compiler doesn't define
  5758. __GNUC_MINOR__. */
  5759. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  5760. # define __extension__
  5761. # endif
  5762. # ifndef _INT64_T
  5763. # define _INT64_T
  5764. # ifndef int64_t
  5765. __extension__ typedef long long int64_t;
  5766. # endif
  5767. # endif
  5768. # ifndef _UINT64_T
  5769. # define _UINT64_T
  5770. # ifndef uint64_t
  5771. __extension__ typedef unsigned long long uint64_t;
  5772. # endif
  5773. # endif
  5774. #elif !defined __STRICT_ANSI__
  5775. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  5776. # ifndef _INT64_T
  5777. # define _INT64_T
  5778. # ifndef int64_t
  5779. typedef __int64 int64_t;
  5780. # endif
  5781. # endif
  5782. # ifndef _UINT64_T
  5783. # define _UINT64_T
  5784. # ifndef uint64_t
  5785. typedef unsigned __int64 uint64_t;
  5786. # endif
  5787. # endif
  5788. # endif /* compiler */
  5789. #endif /* ANSI version */
  5790. EOF
  5791. fi
  5792. # ------------- done int64_t types, emit intptr types ------------
  5793. if test "$ac_cv_type_uintptr_t" != yes; then
  5794. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5795. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  5796. #ifndef __uintptr_t_defined
  5797. #ifndef uintptr_t
  5798. typedef u$acx_cv_type_intptr_t uintptr_t;
  5799. #endif
  5800. #endif
  5801. #ifndef __intptr_t_defined
  5802. #ifndef intptr_t
  5803. typedef $acx_cv_type_intptr_t intptr_t;
  5804. #endif
  5805. #endif
  5806. EOF
  5807. fi
  5808. # ------------- done intptr types, emit int_least types ------------
  5809. if test "$ac_cv_type_int_least32_t" != yes; then
  5810. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5811. /* Define int_least types */
  5812. typedef int8_t int_least8_t;
  5813. typedef int16_t int_least16_t;
  5814. typedef int32_t int_least32_t;
  5815. #ifdef _INT64_T
  5816. typedef int64_t int_least64_t;
  5817. #endif
  5818. typedef uint8_t uint_least8_t;
  5819. typedef uint16_t uint_least16_t;
  5820. typedef uint32_t uint_least32_t;
  5821. #ifdef _UINT64_T
  5822. typedef uint64_t uint_least64_t;
  5823. #endif
  5824. EOF
  5825. fi
  5826. # ------------- done intptr types, emit int_fast types ------------
  5827. if test "$ac_cv_type_int_fast32_t" != yes; then
  5828. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5829. /* Define int_fast types. short is often slow */
  5830. typedef int8_t int_fast8_t;
  5831. typedef int int_fast16_t;
  5832. typedef int32_t int_fast32_t;
  5833. #ifdef _INT64_T
  5834. typedef int64_t int_fast64_t;
  5835. #endif
  5836. typedef uint8_t uint_fast8_t;
  5837. typedef unsigned int uint_fast16_t;
  5838. typedef uint32_t uint_fast32_t;
  5839. #ifdef _UINT64_T
  5840. typedef uint64_t uint_fast64_t;
  5841. #endif
  5842. EOF
  5843. fi
  5844. if test "$ac_cv_type_uintmax_t" != yes; then
  5845. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5846. /* Define intmax based on what we found */
  5847. #ifndef intmax_t
  5848. #ifdef _INT64_T
  5849. typedef int64_t intmax_t;
  5850. #else
  5851. typedef long intmax_t;
  5852. #endif
  5853. #endif
  5854. #ifndef uintmax_t
  5855. #ifdef _UINT64_T
  5856. typedef uint64_t uintmax_t;
  5857. #else
  5858. typedef unsigned long uintmax_t;
  5859. #endif
  5860. #endif
  5861. EOF
  5862. fi
  5863. sed 's/^ *//' >> tmp-stdint.h <<EOF
  5864. #endif /* GCC_GENERATED_STDINT_H */
  5865. EOF
  5866. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  5867. rm -f tmp-stdint.h
  5868. else
  5869. mv -f tmp-stdint.h gstdint.h
  5870. fi
  5871. ;;
  5872. "config.h":H) echo timestamp > stamp-h1 ;;
  5873. esac
  5874. done # for ac_tag
  5875. as_fn_exit 0
  5876. _ACEOF
  5877. ac_clean_files=$ac_clean_files_save
  5878. test $ac_write_fail = 0 ||
  5879. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5880. # configure is writing to config.log, and then calls config.status.
  5881. # config.status does its own redirection, appending to config.log.
  5882. # Unfortunately, on DOS this fails, as config.log is still kept open
  5883. # by configure, so config.status won't be able to write to it; its
  5884. # output is simply discarded. So we exec the FD to /dev/null,
  5885. # effectively closing config.log, so it can be properly (re)opened and
  5886. # appended to by config.status. When coming back to configure, we
  5887. # need to make the FD available again.
  5888. if test "$no_create" != yes; then
  5889. ac_cs_success=:
  5890. ac_config_status_args=
  5891. test "$silent" = yes &&
  5892. ac_config_status_args="$ac_config_status_args --quiet"
  5893. exec 5>/dev/null
  5894. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5895. exec 5>>config.log
  5896. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5897. # would make configure fail if this is the last instruction.
  5898. $ac_cs_success || as_fn_exit $?
  5899. fi
  5900. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5902. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5903. fi