configure 226 KB

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