configure 162 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.57 for Windstille 0.1.0.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20. set -o posix
  21. fi
  22. # Support unset when possible.
  23. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. as_mkdir_p=false
  200. fi
  201. as_executable_p="test -f"
  202. # Sed expression to map a string onto a valid CPP name.
  203. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  204. # Sed expression to map a string onto a valid variable name.
  205. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  206. # IFS
  207. # We need space, tab and new line, in precisely that order.
  208. as_nl='
  209. '
  210. IFS=" $as_nl"
  211. # CDPATH.
  212. $as_unset CDPATH
  213. # Name of the host.
  214. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  215. # so uname gets run too.
  216. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  217. exec 6>&1
  218. #
  219. # Initializations.
  220. #
  221. ac_default_prefix=/usr/local
  222. ac_config_libobj_dir=.
  223. cross_compiling=no
  224. subdirs=
  225. MFLAGS=
  226. MAKEFLAGS=
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. # Maximum number of lines to put in a shell here document.
  229. # This variable seems obsolete. It should probably be removed, and
  230. # only ac_max_sed_lines should be used.
  231. : ${ac_max_here_lines=38}
  232. # Identity of this package.
  233. PACKAGE_NAME='Windstille'
  234. PACKAGE_TARNAME='windstille'
  235. PACKAGE_VERSION='0.1.0'
  236. PACKAGE_STRING='Windstille 0.1.0'
  237. PACKAGE_BUGREPORT=''
  238. ac_unique_file="src/windstille_main.cxx"
  239. # Factoring default headers for most tests.
  240. ac_includes_default="\
  241. #include <stdio.h>
  242. #if HAVE_SYS_TYPES_H
  243. # include <sys/types.h>
  244. #endif
  245. #if HAVE_SYS_STAT_H
  246. # include <sys/stat.h>
  247. #endif
  248. #if STDC_HEADERS
  249. # include <stdlib.h>
  250. # include <stddef.h>
  251. #else
  252. # if HAVE_STDLIB_H
  253. # include <stdlib.h>
  254. # endif
  255. #endif
  256. #if HAVE_STRING_H
  257. # if !STDC_HEADERS && HAVE_MEMORY_H
  258. # include <memory.h>
  259. # endif
  260. # include <string.h>
  261. #endif
  262. #if HAVE_STRINGS_H
  263. # include <strings.h>
  264. #endif
  265. #if HAVE_INTTYPES_H
  266. # include <inttypes.h>
  267. #else
  268. # if HAVE_STDINT_H
  269. # include <stdint.h>
  270. # endif
  271. #endif
  272. #if HAVE_UNISTD_H
  273. # include <unistd.h>
  274. #endif"
  275. 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 am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CXXCPP EGREP PKG_CONFIG WINDSTILLE_DEPS_CFLAGS WINDSTILLE_DEPS_LIBS LIBOBJS LTLIBOBJS'
  276. ac_subst_files=''
  277. # Initialize some variables set by options.
  278. ac_init_help=
  279. ac_init_version=false
  280. # The variables have the same names as the options, with
  281. # dashes changed to underlines.
  282. cache_file=/dev/null
  283. exec_prefix=NONE
  284. no_create=
  285. no_recursion=
  286. prefix=NONE
  287. program_prefix=NONE
  288. program_suffix=NONE
  289. program_transform_name=s,x,x,
  290. silent=
  291. site=
  292. srcdir=
  293. verbose=
  294. x_includes=NONE
  295. x_libraries=NONE
  296. # Installation directory options.
  297. # These are left unexpanded so users can "make install exec_prefix=/foo"
  298. # and all the variables that are supposed to be based on exec_prefix
  299. # by default will actually change.
  300. # Use braces instead of parens because sh, perl, etc. also accept them.
  301. bindir='${exec_prefix}/bin'
  302. sbindir='${exec_prefix}/sbin'
  303. libexecdir='${exec_prefix}/libexec'
  304. datadir='${prefix}/share'
  305. sysconfdir='${prefix}/etc'
  306. sharedstatedir='${prefix}/com'
  307. localstatedir='${prefix}/var'
  308. libdir='${exec_prefix}/lib'
  309. includedir='${prefix}/include'
  310. oldincludedir='/usr/include'
  311. infodir='${prefix}/info'
  312. mandir='${prefix}/man'
  313. ac_prev=
  314. for ac_option
  315. do
  316. # If the previous option needs an argument, assign it.
  317. if test -n "$ac_prev"; then
  318. eval "$ac_prev=\$ac_option"
  319. ac_prev=
  320. continue
  321. fi
  322. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  323. # Accept the important Cygnus configure options, so we can diagnose typos.
  324. case $ac_option in
  325. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  326. ac_prev=bindir ;;
  327. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  328. bindir=$ac_optarg ;;
  329. -build | --build | --buil | --bui | --bu)
  330. ac_prev=build_alias ;;
  331. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  332. build_alias=$ac_optarg ;;
  333. -cache-file | --cache-file | --cache-fil | --cache-fi \
  334. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  335. ac_prev=cache_file ;;
  336. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  337. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  338. cache_file=$ac_optarg ;;
  339. --config-cache | -C)
  340. cache_file=config.cache ;;
  341. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  342. ac_prev=datadir ;;
  343. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  344. | --da=*)
  345. datadir=$ac_optarg ;;
  346. -disable-* | --disable-*)
  347. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  348. # Reject names that are not valid shell variable names.
  349. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  350. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  351. { (exit 1); exit 1; }; }
  352. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  353. eval "enable_$ac_feature=no" ;;
  354. -enable-* | --enable-*)
  355. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  356. # Reject names that are not valid shell variable names.
  357. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  358. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  359. { (exit 1); exit 1; }; }
  360. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  361. case $ac_option in
  362. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  363. *) ac_optarg=yes ;;
  364. esac
  365. eval "enable_$ac_feature='$ac_optarg'" ;;
  366. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  367. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  368. | --exec | --exe | --ex)
  369. ac_prev=exec_prefix ;;
  370. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  371. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  372. | --exec=* | --exe=* | --ex=*)
  373. exec_prefix=$ac_optarg ;;
  374. -gas | --gas | --ga | --g)
  375. # Obsolete; use --with-gas.
  376. with_gas=yes ;;
  377. -help | --help | --hel | --he | -h)
  378. ac_init_help=long ;;
  379. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  380. ac_init_help=recursive ;;
  381. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  382. ac_init_help=short ;;
  383. -host | --host | --hos | --ho)
  384. ac_prev=host_alias ;;
  385. -host=* | --host=* | --hos=* | --ho=*)
  386. host_alias=$ac_optarg ;;
  387. -includedir | --includedir | --includedi | --included | --include \
  388. | --includ | --inclu | --incl | --inc)
  389. ac_prev=includedir ;;
  390. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  391. | --includ=* | --inclu=* | --incl=* | --inc=*)
  392. includedir=$ac_optarg ;;
  393. -infodir | --infodir | --infodi | --infod | --info | --inf)
  394. ac_prev=infodir ;;
  395. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  396. infodir=$ac_optarg ;;
  397. -libdir | --libdir | --libdi | --libd)
  398. ac_prev=libdir ;;
  399. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  400. libdir=$ac_optarg ;;
  401. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  402. | --libexe | --libex | --libe)
  403. ac_prev=libexecdir ;;
  404. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  405. | --libexe=* | --libex=* | --libe=*)
  406. libexecdir=$ac_optarg ;;
  407. -localstatedir | --localstatedir | --localstatedi | --localstated \
  408. | --localstate | --localstat | --localsta | --localst \
  409. | --locals | --local | --loca | --loc | --lo)
  410. ac_prev=localstatedir ;;
  411. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  412. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  413. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  414. localstatedir=$ac_optarg ;;
  415. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  416. ac_prev=mandir ;;
  417. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  418. mandir=$ac_optarg ;;
  419. -nfp | --nfp | --nf)
  420. # Obsolete; use --without-fp.
  421. with_fp=no ;;
  422. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  423. | --no-cr | --no-c | -n)
  424. no_create=yes ;;
  425. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  426. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  427. no_recursion=yes ;;
  428. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  429. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  430. | --oldin | --oldi | --old | --ol | --o)
  431. ac_prev=oldincludedir ;;
  432. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  433. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  434. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  435. oldincludedir=$ac_optarg ;;
  436. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  437. ac_prev=prefix ;;
  438. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  439. prefix=$ac_optarg ;;
  440. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  441. | --program-pre | --program-pr | --program-p)
  442. ac_prev=program_prefix ;;
  443. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  444. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  445. program_prefix=$ac_optarg ;;
  446. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  447. | --program-suf | --program-su | --program-s)
  448. ac_prev=program_suffix ;;
  449. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  450. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  451. program_suffix=$ac_optarg ;;
  452. -program-transform-name | --program-transform-name \
  453. | --program-transform-nam | --program-transform-na \
  454. | --program-transform-n | --program-transform- \
  455. | --program-transform | --program-transfor \
  456. | --program-transfo | --program-transf \
  457. | --program-trans | --program-tran \
  458. | --progr-tra | --program-tr | --program-t)
  459. ac_prev=program_transform_name ;;
  460. -program-transform-name=* | --program-transform-name=* \
  461. | --program-transform-nam=* | --program-transform-na=* \
  462. | --program-transform-n=* | --program-transform-=* \
  463. | --program-transform=* | --program-transfor=* \
  464. | --program-transfo=* | --program-transf=* \
  465. | --program-trans=* | --program-tran=* \
  466. | --progr-tra=* | --program-tr=* | --program-t=*)
  467. program_transform_name=$ac_optarg ;;
  468. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  469. | -silent | --silent | --silen | --sile | --sil)
  470. silent=yes ;;
  471. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  472. ac_prev=sbindir ;;
  473. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  474. | --sbi=* | --sb=*)
  475. sbindir=$ac_optarg ;;
  476. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  477. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  478. | --sharedst | --shareds | --shared | --share | --shar \
  479. | --sha | --sh)
  480. ac_prev=sharedstatedir ;;
  481. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  482. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  483. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  484. | --sha=* | --sh=*)
  485. sharedstatedir=$ac_optarg ;;
  486. -site | --site | --sit)
  487. ac_prev=site ;;
  488. -site=* | --site=* | --sit=*)
  489. site=$ac_optarg ;;
  490. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  491. ac_prev=srcdir ;;
  492. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  493. srcdir=$ac_optarg ;;
  494. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  495. | --syscon | --sysco | --sysc | --sys | --sy)
  496. ac_prev=sysconfdir ;;
  497. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  498. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  499. sysconfdir=$ac_optarg ;;
  500. -target | --target | --targe | --targ | --tar | --ta | --t)
  501. ac_prev=target_alias ;;
  502. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  503. target_alias=$ac_optarg ;;
  504. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  505. verbose=yes ;;
  506. -version | --version | --versio | --versi | --vers | -V)
  507. ac_init_version=: ;;
  508. -with-* | --with-*)
  509. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  510. # Reject names that are not valid shell variable names.
  511. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  512. { echo "$as_me: error: invalid package name: $ac_package" >&2
  513. { (exit 1); exit 1; }; }
  514. ac_package=`echo $ac_package| sed 's/-/_/g'`
  515. case $ac_option in
  516. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  517. *) ac_optarg=yes ;;
  518. esac
  519. eval "with_$ac_package='$ac_optarg'" ;;
  520. -without-* | --without-*)
  521. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  522. # Reject names that are not valid shell variable names.
  523. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  524. { echo "$as_me: error: invalid package name: $ac_package" >&2
  525. { (exit 1); exit 1; }; }
  526. ac_package=`echo $ac_package | sed 's/-/_/g'`
  527. eval "with_$ac_package=no" ;;
  528. --x)
  529. # Obsolete; use --with-x.
  530. with_x=yes ;;
  531. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  532. | --x-incl | --x-inc | --x-in | --x-i)
  533. ac_prev=x_includes ;;
  534. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  535. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  536. x_includes=$ac_optarg ;;
  537. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  538. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  539. ac_prev=x_libraries ;;
  540. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  541. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  542. x_libraries=$ac_optarg ;;
  543. -*) { echo "$as_me: error: unrecognized option: $ac_option
  544. Try \`$0 --help' for more information." >&2
  545. { (exit 1); exit 1; }; }
  546. ;;
  547. *=*)
  548. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  549. # Reject names that are not valid shell variable names.
  550. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  551. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  552. { (exit 1); exit 1; }; }
  553. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  554. eval "$ac_envvar='$ac_optarg'"
  555. export $ac_envvar ;;
  556. *)
  557. # FIXME: should be removed in autoconf 3.0.
  558. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  559. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  560. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  561. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  562. ;;
  563. esac
  564. done
  565. if test -n "$ac_prev"; then
  566. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  567. { echo "$as_me: error: missing argument to $ac_option" >&2
  568. { (exit 1); exit 1; }; }
  569. fi
  570. # Be sure to have absolute paths.
  571. for ac_var in exec_prefix prefix
  572. do
  573. eval ac_val=$`echo $ac_var`
  574. case $ac_val in
  575. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  576. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  577. { (exit 1); exit 1; }; };;
  578. esac
  579. done
  580. # Be sure to have absolute paths.
  581. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  582. localstatedir libdir includedir oldincludedir infodir mandir
  583. do
  584. eval ac_val=$`echo $ac_var`
  585. case $ac_val in
  586. [\\/$]* | ?:[\\/]* ) ;;
  587. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  588. { (exit 1); exit 1; }; };;
  589. esac
  590. done
  591. # There might be people who depend on the old broken behavior: `$host'
  592. # used to hold the argument of --host etc.
  593. # FIXME: To remove some day.
  594. build=$build_alias
  595. host=$host_alias
  596. target=$target_alias
  597. # FIXME: To remove some day.
  598. if test "x$host_alias" != x; then
  599. if test "x$build_alias" = x; then
  600. cross_compiling=maybe
  601. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  602. If a cross compiler is detected then cross compile mode will be used." >&2
  603. elif test "x$build_alias" != "x$host_alias"; then
  604. cross_compiling=yes
  605. fi
  606. fi
  607. ac_tool_prefix=
  608. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  609. test "$silent" = yes && exec 6>/dev/null
  610. # Find the source files, if location was not specified.
  611. if test -z "$srcdir"; then
  612. ac_srcdir_defaulted=yes
  613. # Try the directory containing this script, then its parent.
  614. ac_confdir=`(dirname "$0") 2>/dev/null ||
  615. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  616. X"$0" : 'X\(//\)[^/]' \| \
  617. X"$0" : 'X\(//\)$' \| \
  618. X"$0" : 'X\(/\)' \| \
  619. . : '\(.\)' 2>/dev/null ||
  620. echo X"$0" |
  621. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  622. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  623. /^X\(\/\/\)$/{ s//\1/; q; }
  624. /^X\(\/\).*/{ s//\1/; q; }
  625. s/.*/./; q'`
  626. srcdir=$ac_confdir
  627. if test ! -r $srcdir/$ac_unique_file; then
  628. srcdir=..
  629. fi
  630. else
  631. ac_srcdir_defaulted=no
  632. fi
  633. if test ! -r $srcdir/$ac_unique_file; then
  634. if test "$ac_srcdir_defaulted" = yes; then
  635. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  636. { (exit 1); exit 1; }; }
  637. else
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  639. { (exit 1); exit 1; }; }
  640. fi
  641. fi
  642. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  643. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  644. { (exit 1); exit 1; }; }
  645. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  646. ac_env_build_alias_set=${build_alias+set}
  647. ac_env_build_alias_value=$build_alias
  648. ac_cv_env_build_alias_set=${build_alias+set}
  649. ac_cv_env_build_alias_value=$build_alias
  650. ac_env_host_alias_set=${host_alias+set}
  651. ac_env_host_alias_value=$host_alias
  652. ac_cv_env_host_alias_set=${host_alias+set}
  653. ac_cv_env_host_alias_value=$host_alias
  654. ac_env_target_alias_set=${target_alias+set}
  655. ac_env_target_alias_value=$target_alias
  656. ac_cv_env_target_alias_set=${target_alias+set}
  657. ac_cv_env_target_alias_value=$target_alias
  658. ac_env_CC_set=${CC+set}
  659. ac_env_CC_value=$CC
  660. ac_cv_env_CC_set=${CC+set}
  661. ac_cv_env_CC_value=$CC
  662. ac_env_CFLAGS_set=${CFLAGS+set}
  663. ac_env_CFLAGS_value=$CFLAGS
  664. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  665. ac_cv_env_CFLAGS_value=$CFLAGS
  666. ac_env_LDFLAGS_set=${LDFLAGS+set}
  667. ac_env_LDFLAGS_value=$LDFLAGS
  668. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  669. ac_cv_env_LDFLAGS_value=$LDFLAGS
  670. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  671. ac_env_CPPFLAGS_value=$CPPFLAGS
  672. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  673. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  674. ac_env_CXX_set=${CXX+set}
  675. ac_env_CXX_value=$CXX
  676. ac_cv_env_CXX_set=${CXX+set}
  677. ac_cv_env_CXX_value=$CXX
  678. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  679. ac_env_CXXFLAGS_value=$CXXFLAGS
  680. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  681. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  682. ac_env_CXXCPP_set=${CXXCPP+set}
  683. ac_env_CXXCPP_value=$CXXCPP
  684. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  685. ac_cv_env_CXXCPP_value=$CXXCPP
  686. #
  687. # Report the --help message.
  688. #
  689. if test "$ac_init_help" = "long"; then
  690. # Omit some internal or obsolete options to make the list less imposing.
  691. # This message is too long to be a string in the A/UX 3.1 sh.
  692. cat <<_ACEOF
  693. \`configure' configures Windstille 0.1.0 to adapt to many kinds of systems.
  694. Usage: $0 [OPTION]... [VAR=VALUE]...
  695. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  696. VAR=VALUE. See below for descriptions of some of the useful variables.
  697. Defaults for the options are specified in brackets.
  698. Configuration:
  699. -h, --help display this help and exit
  700. --help=short display options specific to this package
  701. --help=recursive display the short help of all the included packages
  702. -V, --version display version information and exit
  703. -q, --quiet, --silent do not print \`checking...' messages
  704. --cache-file=FILE cache test results in FILE [disabled]
  705. -C, --config-cache alias for \`--cache-file=config.cache'
  706. -n, --no-create do not create output files
  707. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  708. _ACEOF
  709. cat <<_ACEOF
  710. Installation directories:
  711. --prefix=PREFIX install architecture-independent files in PREFIX
  712. [$ac_default_prefix]
  713. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  714. [PREFIX]
  715. By default, \`make install' will install all the files in
  716. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  717. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  718. for instance \`--prefix=\$HOME'.
  719. For better control, use the options below.
  720. Fine tuning of the installation directories:
  721. --bindir=DIR user executables [EPREFIX/bin]
  722. --sbindir=DIR system admin executables [EPREFIX/sbin]
  723. --libexecdir=DIR program executables [EPREFIX/libexec]
  724. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  725. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  726. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  727. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  728. --libdir=DIR object code libraries [EPREFIX/lib]
  729. --includedir=DIR C header files [PREFIX/include]
  730. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  731. --infodir=DIR info documentation [PREFIX/info]
  732. --mandir=DIR man documentation [PREFIX/man]
  733. _ACEOF
  734. cat <<\_ACEOF
  735. Program names:
  736. --program-prefix=PREFIX prepend PREFIX to installed program names
  737. --program-suffix=SUFFIX append SUFFIX to installed program names
  738. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  739. _ACEOF
  740. fi
  741. if test -n "$ac_init_help"; then
  742. case $ac_init_help in
  743. short | recursive ) echo "Configuration of Windstille 0.1.0:";;
  744. esac
  745. cat <<\_ACEOF
  746. Optional Features:
  747. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  748. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  749. --disable-dependency-tracking Speeds up one-time builds
  750. --enable-dependency-tracking Do not reject slow dependency extractors
  751. Some influential environment variables:
  752. CC C compiler command
  753. CFLAGS C compiler flags
  754. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  755. nonstandard directory <lib dir>
  756. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  757. headers in a nonstandard directory <include dir>
  758. CXX C++ compiler command
  759. CXXFLAGS C++ compiler flags
  760. CXXCPP C++ preprocessor
  761. Use these variables to override the choices made by `configure' or to help
  762. it to find libraries and programs with nonstandard names/locations.
  763. _ACEOF
  764. fi
  765. if test "$ac_init_help" = "recursive"; then
  766. # If there are subdirs, report their specific --help.
  767. ac_popdir=`pwd`
  768. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  769. test -d $ac_dir || continue
  770. ac_builddir=.
  771. if test "$ac_dir" != .; then
  772. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  773. # A "../" for each directory in $ac_dir_suffix.
  774. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  775. else
  776. ac_dir_suffix= ac_top_builddir=
  777. fi
  778. case $srcdir in
  779. .) # No --srcdir option. We are building in place.
  780. ac_srcdir=.
  781. if test -z "$ac_top_builddir"; then
  782. ac_top_srcdir=.
  783. else
  784. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  785. fi ;;
  786. [\\/]* | ?:[\\/]* ) # Absolute path.
  787. ac_srcdir=$srcdir$ac_dir_suffix;
  788. ac_top_srcdir=$srcdir ;;
  789. *) # Relative path.
  790. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  791. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  792. esac
  793. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  794. # absolute.
  795. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  796. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  797. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  798. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  799. cd $ac_dir
  800. # Check for guested configure; otherwise get Cygnus style configure.
  801. if test -f $ac_srcdir/configure.gnu; then
  802. echo
  803. $SHELL $ac_srcdir/configure.gnu --help=recursive
  804. elif test -f $ac_srcdir/configure; then
  805. echo
  806. $SHELL $ac_srcdir/configure --help=recursive
  807. elif test -f $ac_srcdir/configure.ac ||
  808. test -f $ac_srcdir/configure.in; then
  809. echo
  810. $ac_configure --help
  811. else
  812. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  813. fi
  814. cd $ac_popdir
  815. done
  816. fi
  817. test -n "$ac_init_help" && exit 0
  818. if $ac_init_version; then
  819. cat <<\_ACEOF
  820. Windstille configure 0.1.0
  821. generated by GNU Autoconf 2.57
  822. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  823. Free Software Foundation, Inc.
  824. This configure script is free software; the Free Software Foundation
  825. gives unlimited permission to copy, distribute and modify it.
  826. _ACEOF
  827. exit 0
  828. fi
  829. exec 5>config.log
  830. cat >&5 <<_ACEOF
  831. This file contains any messages produced by compilers while
  832. running configure, to aid debugging if configure makes a mistake.
  833. It was created by Windstille $as_me 0.1.0, which was
  834. generated by GNU Autoconf 2.57. Invocation command line was
  835. $ $0 $@
  836. _ACEOF
  837. {
  838. cat <<_ASUNAME
  839. ## --------- ##
  840. ## Platform. ##
  841. ## --------- ##
  842. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  843. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  844. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  845. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  846. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  847. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  848. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  849. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  850. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  851. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  852. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  853. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  854. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  855. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  856. _ASUNAME
  857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  858. for as_dir in $PATH
  859. do
  860. IFS=$as_save_IFS
  861. test -z "$as_dir" && as_dir=.
  862. echo "PATH: $as_dir"
  863. done
  864. } >&5
  865. cat >&5 <<_ACEOF
  866. ## ----------- ##
  867. ## Core tests. ##
  868. ## ----------- ##
  869. _ACEOF
  870. # Keep a trace of the command line.
  871. # Strip out --no-create and --no-recursion so they do not pile up.
  872. # Strip out --silent because we don't want to record it for future runs.
  873. # Also quote any args containing shell meta-characters.
  874. # Make two passes to allow for proper duplicate-argument suppression.
  875. ac_configure_args=
  876. ac_configure_args0=
  877. ac_configure_args1=
  878. ac_sep=
  879. ac_must_keep_next=false
  880. for ac_pass in 1 2
  881. do
  882. for ac_arg
  883. do
  884. case $ac_arg in
  885. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  886. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  887. | -silent | --silent | --silen | --sile | --sil)
  888. continue ;;
  889. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  890. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  891. esac
  892. case $ac_pass in
  893. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  894. 2)
  895. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  896. if test $ac_must_keep_next = true; then
  897. ac_must_keep_next=false # Got value, back to normal.
  898. else
  899. case $ac_arg in
  900. *=* | --config-cache | -C | -disable-* | --disable-* \
  901. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  902. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  903. | -with-* | --with-* | -without-* | --without-* | --x)
  904. case "$ac_configure_args0 " in
  905. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  906. esac
  907. ;;
  908. -* ) ac_must_keep_next=true ;;
  909. esac
  910. fi
  911. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  912. # Get rid of the leading space.
  913. ac_sep=" "
  914. ;;
  915. esac
  916. done
  917. done
  918. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  919. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  920. # When interrupted or exit'd, cleanup temporary files, and complete
  921. # config.log. We remove comments because anyway the quotes in there
  922. # would cause problems or look ugly.
  923. # WARNING: Be sure not to use single quotes in there, as some shells,
  924. # such as our DU 5.0 friend, will then `close' the trap.
  925. trap 'exit_status=$?
  926. # Save into config.log some information that might help in debugging.
  927. {
  928. echo
  929. cat <<\_ASBOX
  930. ## ---------------- ##
  931. ## Cache variables. ##
  932. ## ---------------- ##
  933. _ASBOX
  934. echo
  935. # The following way of writing the cache mishandles newlines in values,
  936. {
  937. (set) 2>&1 |
  938. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  939. *ac_space=\ *)
  940. sed -n \
  941. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  942. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  943. ;;
  944. *)
  945. sed -n \
  946. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  947. ;;
  948. esac;
  949. }
  950. echo
  951. cat <<\_ASBOX
  952. ## ----------------- ##
  953. ## Output variables. ##
  954. ## ----------------- ##
  955. _ASBOX
  956. echo
  957. for ac_var in $ac_subst_vars
  958. do
  959. eval ac_val=$`echo $ac_var`
  960. echo "$ac_var='"'"'$ac_val'"'"'"
  961. done | sort
  962. echo
  963. if test -n "$ac_subst_files"; then
  964. cat <<\_ASBOX
  965. ## ------------- ##
  966. ## Output files. ##
  967. ## ------------- ##
  968. _ASBOX
  969. echo
  970. for ac_var in $ac_subst_files
  971. do
  972. eval ac_val=$`echo $ac_var`
  973. echo "$ac_var='"'"'$ac_val'"'"'"
  974. done | sort
  975. echo
  976. fi
  977. if test -s confdefs.h; then
  978. cat <<\_ASBOX
  979. ## ----------- ##
  980. ## confdefs.h. ##
  981. ## ----------- ##
  982. _ASBOX
  983. echo
  984. sed "/^$/d" confdefs.h | sort
  985. echo
  986. fi
  987. test "$ac_signal" != 0 &&
  988. echo "$as_me: caught signal $ac_signal"
  989. echo "$as_me: exit $exit_status"
  990. } >&5
  991. rm -f core core.* *.core &&
  992. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  993. exit $exit_status
  994. ' 0
  995. for ac_signal in 1 2 13 15; do
  996. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  997. done
  998. ac_signal=0
  999. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1000. rm -rf conftest* confdefs.h
  1001. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1002. echo >confdefs.h
  1003. # Predefined preprocessor variables.
  1004. cat >>confdefs.h <<_ACEOF
  1005. #define PACKAGE_NAME "$PACKAGE_NAME"
  1006. _ACEOF
  1007. cat >>confdefs.h <<_ACEOF
  1008. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1009. _ACEOF
  1010. cat >>confdefs.h <<_ACEOF
  1011. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1012. _ACEOF
  1013. cat >>confdefs.h <<_ACEOF
  1014. #define PACKAGE_STRING "$PACKAGE_STRING"
  1015. _ACEOF
  1016. cat >>confdefs.h <<_ACEOF
  1017. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1018. _ACEOF
  1019. # Let the site file select an alternate cache file if it wants to.
  1020. # Prefer explicitly selected file to automatically selected ones.
  1021. if test -z "$CONFIG_SITE"; then
  1022. if test "x$prefix" != xNONE; then
  1023. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1024. else
  1025. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1026. fi
  1027. fi
  1028. for ac_site_file in $CONFIG_SITE; do
  1029. if test -r "$ac_site_file"; then
  1030. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1031. echo "$as_me: loading site script $ac_site_file" >&6;}
  1032. sed 's/^/| /' "$ac_site_file" >&5
  1033. . "$ac_site_file"
  1034. fi
  1035. done
  1036. if test -r "$cache_file"; then
  1037. # Some versions of bash will fail to source /dev/null (special
  1038. # files actually), so we avoid doing that.
  1039. if test -f "$cache_file"; then
  1040. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1041. echo "$as_me: loading cache $cache_file" >&6;}
  1042. case $cache_file in
  1043. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1044. *) . ./$cache_file;;
  1045. esac
  1046. fi
  1047. else
  1048. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1049. echo "$as_me: creating cache $cache_file" >&6;}
  1050. >$cache_file
  1051. fi
  1052. # Check that the precious variables saved in the cache have kept the same
  1053. # value.
  1054. ac_cache_corrupted=false
  1055. for ac_var in `(set) 2>&1 |
  1056. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1057. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1058. eval ac_new_set=\$ac_env_${ac_var}_set
  1059. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1060. eval ac_new_val="\$ac_env_${ac_var}_value"
  1061. case $ac_old_set,$ac_new_set in
  1062. set,)
  1063. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1064. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1065. ac_cache_corrupted=: ;;
  1066. ,set)
  1067. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1068. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1069. ac_cache_corrupted=: ;;
  1070. ,);;
  1071. *)
  1072. if test "x$ac_old_val" != "x$ac_new_val"; then
  1073. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1074. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1075. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1076. echo "$as_me: former value: $ac_old_val" >&2;}
  1077. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1078. echo "$as_me: current value: $ac_new_val" >&2;}
  1079. ac_cache_corrupted=:
  1080. fi;;
  1081. esac
  1082. # Pass precious variables to config.status.
  1083. if test "$ac_new_set" = set; then
  1084. case $ac_new_val in
  1085. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1086. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1087. *) ac_arg=$ac_var=$ac_new_val ;;
  1088. esac
  1089. case " $ac_configure_args " in
  1090. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1091. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1092. esac
  1093. fi
  1094. done
  1095. if $ac_cache_corrupted; then
  1096. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1097. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1098. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1099. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1100. { (exit 1); exit 1; }; }
  1101. fi
  1102. ac_ext=c
  1103. ac_cpp='$CPP $CPPFLAGS'
  1104. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1105. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1106. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1107. ac_config_headers="$ac_config_headers config.h"
  1108. am__api_version="1.7"
  1109. ac_aux_dir=
  1110. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1111. if test -f $ac_dir/install-sh; then
  1112. ac_aux_dir=$ac_dir
  1113. ac_install_sh="$ac_aux_dir/install-sh -c"
  1114. break
  1115. elif test -f $ac_dir/install.sh; then
  1116. ac_aux_dir=$ac_dir
  1117. ac_install_sh="$ac_aux_dir/install.sh -c"
  1118. break
  1119. elif test -f $ac_dir/shtool; then
  1120. ac_aux_dir=$ac_dir
  1121. ac_install_sh="$ac_aux_dir/shtool install -c"
  1122. break
  1123. fi
  1124. done
  1125. if test -z "$ac_aux_dir"; then
  1126. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1127. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1128. { (exit 1); exit 1; }; }
  1129. fi
  1130. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1131. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1132. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1133. # Find a good install program. We prefer a C program (faster),
  1134. # so one script is as good as another. But avoid the broken or
  1135. # incompatible versions:
  1136. # SysV /etc/install, /usr/sbin/install
  1137. # SunOS /usr/etc/install
  1138. # IRIX /sbin/install
  1139. # AIX /bin/install
  1140. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1141. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1142. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1143. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1144. # ./install, which can be erroneously created by make from ./install.sh.
  1145. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1146. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1147. if test -z "$INSTALL"; then
  1148. if test "${ac_cv_path_install+set}" = set; then
  1149. echo $ECHO_N "(cached) $ECHO_C" >&6
  1150. else
  1151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1152. for as_dir in $PATH
  1153. do
  1154. IFS=$as_save_IFS
  1155. test -z "$as_dir" && as_dir=.
  1156. # Account for people who put trailing slashes in PATH elements.
  1157. case $as_dir/ in
  1158. ./ | .// | /cC/* | \
  1159. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1160. /usr/ucb/* ) ;;
  1161. *)
  1162. # OSF1 and SCO ODT 3.0 have their own names for install.
  1163. # Don't use installbsd from OSF since it installs stuff as root
  1164. # by default.
  1165. for ac_prog in ginstall scoinst install; do
  1166. for ac_exec_ext in '' $ac_executable_extensions; do
  1167. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1168. if test $ac_prog = install &&
  1169. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1170. # AIX install. It has an incompatible calling convention.
  1171. :
  1172. elif test $ac_prog = install &&
  1173. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1174. # program-specific install script used by HP pwplus--don't use.
  1175. :
  1176. else
  1177. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1178. break 3
  1179. fi
  1180. fi
  1181. done
  1182. done
  1183. ;;
  1184. esac
  1185. done
  1186. fi
  1187. if test "${ac_cv_path_install+set}" = set; then
  1188. INSTALL=$ac_cv_path_install
  1189. else
  1190. # As a last resort, use the slow shell script. We don't cache a
  1191. # path for INSTALL within a source directory, because that will
  1192. # break other packages using the cache if that directory is
  1193. # removed, or if the path is relative.
  1194. INSTALL=$ac_install_sh
  1195. fi
  1196. fi
  1197. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1198. echo "${ECHO_T}$INSTALL" >&6
  1199. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1200. # It thinks the first close brace ends the variable substitution.
  1201. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1202. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1203. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1204. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1205. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1206. # Just in case
  1207. sleep 1
  1208. echo timestamp > conftest.file
  1209. # Do `set' in a subshell so we don't clobber the current shell's
  1210. # arguments. Must try -L first in case configure is actually a
  1211. # symlink; some systems play weird games with the mod time of symlinks
  1212. # (eg FreeBSD returns the mod time of the symlink's containing
  1213. # directory).
  1214. if (
  1215. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1216. if test "$*" = "X"; then
  1217. # -L didn't work.
  1218. set X `ls -t $srcdir/configure conftest.file`
  1219. fi
  1220. rm -f conftest.file
  1221. if test "$*" != "X $srcdir/configure conftest.file" \
  1222. && test "$*" != "X conftest.file $srcdir/configure"; then
  1223. # If neither matched, then we have a broken ls. This can happen
  1224. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1225. # broken ls alias from the environment. This has actually
  1226. # happened. Such a system could not be considered "sane".
  1227. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1228. alias in your environment" >&5
  1229. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1230. alias in your environment" >&2;}
  1231. { (exit 1); exit 1; }; }
  1232. fi
  1233. test "$2" = conftest.file
  1234. )
  1235. then
  1236. # Ok.
  1237. :
  1238. else
  1239. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1240. Check your system clock" >&5
  1241. echo "$as_me: error: newly created file is older than distributed files!
  1242. Check your system clock" >&2;}
  1243. { (exit 1); exit 1; }; }
  1244. fi
  1245. echo "$as_me:$LINENO: result: yes" >&5
  1246. echo "${ECHO_T}yes" >&6
  1247. test "$program_prefix" != NONE &&
  1248. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1249. # Use a double $ so make ignores it.
  1250. test "$program_suffix" != NONE &&
  1251. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1252. # Double any \ or $. echo might interpret backslashes.
  1253. # By default was `s,x,x', remove it if useless.
  1254. cat <<\_ACEOF >conftest.sed
  1255. s/[\\$]/&&/g;s/;s,x,x,$//
  1256. _ACEOF
  1257. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1258. rm conftest.sed
  1259. # expand $ac_aux_dir to an absolute path
  1260. am_aux_dir=`cd $ac_aux_dir && pwd`
  1261. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1262. # Use eval to expand $SHELL
  1263. if eval "$MISSING --run true"; then
  1264. am_missing_run="$MISSING --run "
  1265. else
  1266. am_missing_run=
  1267. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1268. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1269. fi
  1270. for ac_prog in gawk mawk nawk awk
  1271. do
  1272. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1273. set dummy $ac_prog; ac_word=$2
  1274. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1275. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1276. if test "${ac_cv_prog_AWK+set}" = set; then
  1277. echo $ECHO_N "(cached) $ECHO_C" >&6
  1278. else
  1279. if test -n "$AWK"; then
  1280. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1281. else
  1282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1283. for as_dir in $PATH
  1284. do
  1285. IFS=$as_save_IFS
  1286. test -z "$as_dir" && as_dir=.
  1287. for ac_exec_ext in '' $ac_executable_extensions; do
  1288. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1289. ac_cv_prog_AWK="$ac_prog"
  1290. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1291. break 2
  1292. fi
  1293. done
  1294. done
  1295. fi
  1296. fi
  1297. AWK=$ac_cv_prog_AWK
  1298. if test -n "$AWK"; then
  1299. echo "$as_me:$LINENO: result: $AWK" >&5
  1300. echo "${ECHO_T}$AWK" >&6
  1301. else
  1302. echo "$as_me:$LINENO: result: no" >&5
  1303. echo "${ECHO_T}no" >&6
  1304. fi
  1305. test -n "$AWK" && break
  1306. done
  1307. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1308. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1309. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1310. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1311. echo $ECHO_N "(cached) $ECHO_C" >&6
  1312. else
  1313. cat >conftest.make <<\_ACEOF
  1314. all:
  1315. @echo 'ac_maketemp="$(MAKE)"'
  1316. _ACEOF
  1317. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1318. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1319. if test -n "$ac_maketemp"; then
  1320. eval ac_cv_prog_make_${ac_make}_set=yes
  1321. else
  1322. eval ac_cv_prog_make_${ac_make}_set=no
  1323. fi
  1324. rm -f conftest.make
  1325. fi
  1326. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1327. echo "$as_me:$LINENO: result: yes" >&5
  1328. echo "${ECHO_T}yes" >&6
  1329. SET_MAKE=
  1330. else
  1331. echo "$as_me:$LINENO: result: no" >&5
  1332. echo "${ECHO_T}no" >&6
  1333. SET_MAKE="MAKE=${MAKE-make}"
  1334. fi
  1335. rm -rf .tst 2>/dev/null
  1336. mkdir .tst 2>/dev/null
  1337. if test -d .tst; then
  1338. am__leading_dot=.
  1339. else
  1340. am__leading_dot=_
  1341. fi
  1342. rmdir .tst 2>/dev/null
  1343. # test to see if srcdir already configured
  1344. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1345. test -f $srcdir/config.status; then
  1346. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1347. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1348. { (exit 1); exit 1; }; }
  1349. fi
  1350. # test whether we have cygpath
  1351. if test -z "$CYGPATH_W"; then
  1352. if (cygpath --version) >/dev/null 2>/dev/null; then
  1353. CYGPATH_W='cygpath -w'
  1354. else
  1355. CYGPATH_W=echo
  1356. fi
  1357. fi
  1358. # Define the identity of the package.
  1359. PACKAGE='windstille'
  1360. VERSION='0.1.0'
  1361. cat >>confdefs.h <<_ACEOF
  1362. #define PACKAGE "$PACKAGE"
  1363. _ACEOF
  1364. cat >>confdefs.h <<_ACEOF
  1365. #define VERSION "$VERSION"
  1366. _ACEOF
  1367. # Some tools Automake needs.
  1368. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1369. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1370. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1371. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1372. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1373. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1374. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1375. # Installed binaries are usually stripped using `strip' when the user
  1376. # run `make install-strip'. However `strip' might not be the right
  1377. # tool to use in cross-compilation environments, therefore Automake
  1378. # will honor the `STRIP' environment variable to overrule this program.
  1379. if test "$cross_compiling" != no; then
  1380. if test -n "$ac_tool_prefix"; then
  1381. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1382. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1383. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1384. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1385. if test "${ac_cv_prog_STRIP+set}" = set; then
  1386. echo $ECHO_N "(cached) $ECHO_C" >&6
  1387. else
  1388. if test -n "$STRIP"; then
  1389. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1390. else
  1391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1392. for as_dir in $PATH
  1393. do
  1394. IFS=$as_save_IFS
  1395. test -z "$as_dir" && as_dir=.
  1396. for ac_exec_ext in '' $ac_executable_extensions; do
  1397. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1398. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1399. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1400. break 2
  1401. fi
  1402. done
  1403. done
  1404. fi
  1405. fi
  1406. STRIP=$ac_cv_prog_STRIP
  1407. if test -n "$STRIP"; then
  1408. echo "$as_me:$LINENO: result: $STRIP" >&5
  1409. echo "${ECHO_T}$STRIP" >&6
  1410. else
  1411. echo "$as_me:$LINENO: result: no" >&5
  1412. echo "${ECHO_T}no" >&6
  1413. fi
  1414. fi
  1415. if test -z "$ac_cv_prog_STRIP"; then
  1416. ac_ct_STRIP=$STRIP
  1417. # Extract the first word of "strip", so it can be a program name with args.
  1418. set dummy strip; ac_word=$2
  1419. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1420. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1421. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1422. echo $ECHO_N "(cached) $ECHO_C" >&6
  1423. else
  1424. if test -n "$ac_ct_STRIP"; then
  1425. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1426. else
  1427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1428. for as_dir in $PATH
  1429. do
  1430. IFS=$as_save_IFS
  1431. test -z "$as_dir" && as_dir=.
  1432. for ac_exec_ext in '' $ac_executable_extensions; do
  1433. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1434. ac_cv_prog_ac_ct_STRIP="strip"
  1435. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1436. break 2
  1437. fi
  1438. done
  1439. done
  1440. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1441. fi
  1442. fi
  1443. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1444. if test -n "$ac_ct_STRIP"; then
  1445. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1446. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1447. else
  1448. echo "$as_me:$LINENO: result: no" >&5
  1449. echo "${ECHO_T}no" >&6
  1450. fi
  1451. STRIP=$ac_ct_STRIP
  1452. else
  1453. STRIP="$ac_cv_prog_STRIP"
  1454. fi
  1455. fi
  1456. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1457. # We need awk for the "check" target. The system "awk" is bad on
  1458. # some platforms.
  1459. ac_ext=c
  1460. ac_cpp='$CPP $CPPFLAGS'
  1461. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1462. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1463. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1464. if test -n "$ac_tool_prefix"; then
  1465. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1466. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1467. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1468. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1469. if test "${ac_cv_prog_CC+set}" = set; then
  1470. echo $ECHO_N "(cached) $ECHO_C" >&6
  1471. else
  1472. if test -n "$CC"; then
  1473. ac_cv_prog_CC="$CC" # Let the user override the test.
  1474. else
  1475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1476. for as_dir in $PATH
  1477. do
  1478. IFS=$as_save_IFS
  1479. test -z "$as_dir" && as_dir=.
  1480. for ac_exec_ext in '' $ac_executable_extensions; do
  1481. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1482. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1483. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1484. break 2
  1485. fi
  1486. done
  1487. done
  1488. fi
  1489. fi
  1490. CC=$ac_cv_prog_CC
  1491. if test -n "$CC"; then
  1492. echo "$as_me:$LINENO: result: $CC" >&5
  1493. echo "${ECHO_T}$CC" >&6
  1494. else
  1495. echo "$as_me:$LINENO: result: no" >&5
  1496. echo "${ECHO_T}no" >&6
  1497. fi
  1498. fi
  1499. if test -z "$ac_cv_prog_CC"; then
  1500. ac_ct_CC=$CC
  1501. # Extract the first word of "gcc", so it can be a program name with args.
  1502. set dummy gcc; ac_word=$2
  1503. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1504. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1505. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1506. echo $ECHO_N "(cached) $ECHO_C" >&6
  1507. else
  1508. if test -n "$ac_ct_CC"; then
  1509. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1510. else
  1511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1512. for as_dir in $PATH
  1513. do
  1514. IFS=$as_save_IFS
  1515. test -z "$as_dir" && as_dir=.
  1516. for ac_exec_ext in '' $ac_executable_extensions; do
  1517. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1518. ac_cv_prog_ac_ct_CC="gcc"
  1519. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1520. break 2
  1521. fi
  1522. done
  1523. done
  1524. fi
  1525. fi
  1526. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1527. if test -n "$ac_ct_CC"; then
  1528. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1529. echo "${ECHO_T}$ac_ct_CC" >&6
  1530. else
  1531. echo "$as_me:$LINENO: result: no" >&5
  1532. echo "${ECHO_T}no" >&6
  1533. fi
  1534. CC=$ac_ct_CC
  1535. else
  1536. CC="$ac_cv_prog_CC"
  1537. fi
  1538. if test -z "$CC"; then
  1539. if test -n "$ac_tool_prefix"; then
  1540. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1541. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1542. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1543. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1544. if test "${ac_cv_prog_CC+set}" = set; then
  1545. echo $ECHO_N "(cached) $ECHO_C" >&6
  1546. else
  1547. if test -n "$CC"; then
  1548. ac_cv_prog_CC="$CC" # Let the user override the test.
  1549. else
  1550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1551. for as_dir in $PATH
  1552. do
  1553. IFS=$as_save_IFS
  1554. test -z "$as_dir" && as_dir=.
  1555. for ac_exec_ext in '' $ac_executable_extensions; do
  1556. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1557. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1558. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1559. break 2
  1560. fi
  1561. done
  1562. done
  1563. fi
  1564. fi
  1565. CC=$ac_cv_prog_CC
  1566. if test -n "$CC"; then
  1567. echo "$as_me:$LINENO: result: $CC" >&5
  1568. echo "${ECHO_T}$CC" >&6
  1569. else
  1570. echo "$as_me:$LINENO: result: no" >&5
  1571. echo "${ECHO_T}no" >&6
  1572. fi
  1573. fi
  1574. if test -z "$ac_cv_prog_CC"; then
  1575. ac_ct_CC=$CC
  1576. # Extract the first word of "cc", so it can be a program name with args.
  1577. set dummy cc; ac_word=$2
  1578. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1579. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1580. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1581. echo $ECHO_N "(cached) $ECHO_C" >&6
  1582. else
  1583. if test -n "$ac_ct_CC"; then
  1584. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1585. else
  1586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1587. for as_dir in $PATH
  1588. do
  1589. IFS=$as_save_IFS
  1590. test -z "$as_dir" && as_dir=.
  1591. for ac_exec_ext in '' $ac_executable_extensions; do
  1592. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1593. ac_cv_prog_ac_ct_CC="cc"
  1594. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1595. break 2
  1596. fi
  1597. done
  1598. done
  1599. fi
  1600. fi
  1601. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1602. if test -n "$ac_ct_CC"; then
  1603. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1604. echo "${ECHO_T}$ac_ct_CC" >&6
  1605. else
  1606. echo "$as_me:$LINENO: result: no" >&5
  1607. echo "${ECHO_T}no" >&6
  1608. fi
  1609. CC=$ac_ct_CC
  1610. else
  1611. CC="$ac_cv_prog_CC"
  1612. fi
  1613. fi
  1614. if test -z "$CC"; then
  1615. # Extract the first word of "cc", so it can be a program name with args.
  1616. set dummy cc; ac_word=$2
  1617. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1618. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1619. if test "${ac_cv_prog_CC+set}" = set; then
  1620. echo $ECHO_N "(cached) $ECHO_C" >&6
  1621. else
  1622. if test -n "$CC"; then
  1623. ac_cv_prog_CC="$CC" # Let the user override the test.
  1624. else
  1625. ac_prog_rejected=no
  1626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1627. for as_dir in $PATH
  1628. do
  1629. IFS=$as_save_IFS
  1630. test -z "$as_dir" && as_dir=.
  1631. for ac_exec_ext in '' $ac_executable_extensions; do
  1632. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1633. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1634. ac_prog_rejected=yes
  1635. continue
  1636. fi
  1637. ac_cv_prog_CC="cc"
  1638. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1639. break 2
  1640. fi
  1641. done
  1642. done
  1643. if test $ac_prog_rejected = yes; then
  1644. # We found a bogon in the path, so make sure we never use it.
  1645. set dummy $ac_cv_prog_CC
  1646. shift
  1647. if test $# != 0; then
  1648. # We chose a different compiler from the bogus one.
  1649. # However, it has the same basename, so the bogon will be chosen
  1650. # first if we set CC to just the basename; use the full file name.
  1651. shift
  1652. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1653. fi
  1654. fi
  1655. fi
  1656. fi
  1657. CC=$ac_cv_prog_CC
  1658. if test -n "$CC"; then
  1659. echo "$as_me:$LINENO: result: $CC" >&5
  1660. echo "${ECHO_T}$CC" >&6
  1661. else
  1662. echo "$as_me:$LINENO: result: no" >&5
  1663. echo "${ECHO_T}no" >&6
  1664. fi
  1665. fi
  1666. if test -z "$CC"; then
  1667. if test -n "$ac_tool_prefix"; then
  1668. for ac_prog in cl
  1669. do
  1670. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1671. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1672. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1673. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1674. if test "${ac_cv_prog_CC+set}" = set; then
  1675. echo $ECHO_N "(cached) $ECHO_C" >&6
  1676. else
  1677. if test -n "$CC"; then
  1678. ac_cv_prog_CC="$CC" # Let the user override the test.
  1679. else
  1680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1681. for as_dir in $PATH
  1682. do
  1683. IFS=$as_save_IFS
  1684. test -z "$as_dir" && as_dir=.
  1685. for ac_exec_ext in '' $ac_executable_extensions; do
  1686. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1687. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1688. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1689. break 2
  1690. fi
  1691. done
  1692. done
  1693. fi
  1694. fi
  1695. CC=$ac_cv_prog_CC
  1696. if test -n "$CC"; then
  1697. echo "$as_me:$LINENO: result: $CC" >&5
  1698. echo "${ECHO_T}$CC" >&6
  1699. else
  1700. echo "$as_me:$LINENO: result: no" >&5
  1701. echo "${ECHO_T}no" >&6
  1702. fi
  1703. test -n "$CC" && break
  1704. done
  1705. fi
  1706. if test -z "$CC"; then
  1707. ac_ct_CC=$CC
  1708. for ac_prog in cl
  1709. do
  1710. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1711. set dummy $ac_prog; ac_word=$2
  1712. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1713. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1714. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1715. echo $ECHO_N "(cached) $ECHO_C" >&6
  1716. else
  1717. if test -n "$ac_ct_CC"; then
  1718. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1719. else
  1720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1721. for as_dir in $PATH
  1722. do
  1723. IFS=$as_save_IFS
  1724. test -z "$as_dir" && as_dir=.
  1725. for ac_exec_ext in '' $ac_executable_extensions; do
  1726. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1727. ac_cv_prog_ac_ct_CC="$ac_prog"
  1728. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1729. break 2
  1730. fi
  1731. done
  1732. done
  1733. fi
  1734. fi
  1735. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1736. if test -n "$ac_ct_CC"; then
  1737. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1738. echo "${ECHO_T}$ac_ct_CC" >&6
  1739. else
  1740. echo "$as_me:$LINENO: result: no" >&5
  1741. echo "${ECHO_T}no" >&6
  1742. fi
  1743. test -n "$ac_ct_CC" && break
  1744. done
  1745. CC=$ac_ct_CC
  1746. fi
  1747. fi
  1748. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1749. See \`config.log' for more details." >&5
  1750. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1751. See \`config.log' for more details." >&2;}
  1752. { (exit 1); exit 1; }; }
  1753. # Provide some information about the compiler.
  1754. echo "$as_me:$LINENO:" \
  1755. "checking for C compiler version" >&5
  1756. ac_compiler=`set X $ac_compile; echo $2`
  1757. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1758. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1759. ac_status=$?
  1760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1761. (exit $ac_status); }
  1762. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1763. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1764. ac_status=$?
  1765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1766. (exit $ac_status); }
  1767. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1768. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1769. ac_status=$?
  1770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1771. (exit $ac_status); }
  1772. cat >conftest.$ac_ext <<_ACEOF
  1773. #line $LINENO "configure"
  1774. /* confdefs.h. */
  1775. _ACEOF
  1776. cat confdefs.h >>conftest.$ac_ext
  1777. cat >>conftest.$ac_ext <<_ACEOF
  1778. /* end confdefs.h. */
  1779. int
  1780. main ()
  1781. {
  1782. ;
  1783. return 0;
  1784. }
  1785. _ACEOF
  1786. ac_clean_files_save=$ac_clean_files
  1787. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1788. # Try to create an executable without -o first, disregard a.out.
  1789. # It will help us diagnose broken compilers, and finding out an intuition
  1790. # of exeext.
  1791. echo "$as_me:$LINENO: checking for C compiler default output" >&5
  1792. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1793. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1794. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1795. (eval $ac_link_default) 2>&5
  1796. ac_status=$?
  1797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1798. (exit $ac_status); }; then
  1799. # Find the output, starting from the most likely. This scheme is
  1800. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1801. # resort.
  1802. # Be careful to initialize this variable, since it used to be cached.
  1803. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1804. ac_cv_exeext=
  1805. # b.out is created by i960 compilers.
  1806. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1807. do
  1808. test -f "$ac_file" || continue
  1809. case $ac_file in
  1810. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1811. ;;
  1812. conftest.$ac_ext )
  1813. # This is the source file.
  1814. ;;
  1815. [ab].out )
  1816. # We found the default executable, but exeext='' is most
  1817. # certainly right.
  1818. break;;
  1819. *.* )
  1820. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1821. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1822. # but it would be cool to find out if it's true. Does anybody
  1823. # maintain Libtool? --akim.
  1824. export ac_cv_exeext
  1825. break;;
  1826. * )
  1827. break;;
  1828. esac
  1829. done
  1830. else
  1831. echo "$as_me: failed program was:" >&5
  1832. sed 's/^/| /' conftest.$ac_ext >&5
  1833. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1834. See \`config.log' for more details." >&5
  1835. echo "$as_me: error: C compiler cannot create executables
  1836. See \`config.log' for more details." >&2;}
  1837. { (exit 77); exit 77; }; }
  1838. fi
  1839. ac_exeext=$ac_cv_exeext
  1840. echo "$as_me:$LINENO: result: $ac_file" >&5
  1841. echo "${ECHO_T}$ac_file" >&6
  1842. # Check the compiler produces executables we can run. If not, either
  1843. # the compiler is broken, or we cross compile.
  1844. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1845. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1846. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1847. # If not cross compiling, check that we can run a simple program.
  1848. if test "$cross_compiling" != yes; then
  1849. if { ac_try='./$ac_file'
  1850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1851. (eval $ac_try) 2>&5
  1852. ac_status=$?
  1853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1854. (exit $ac_status); }; }; then
  1855. cross_compiling=no
  1856. else
  1857. if test "$cross_compiling" = maybe; then
  1858. cross_compiling=yes
  1859. else
  1860. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1861. If you meant to cross compile, use \`--host'.
  1862. See \`config.log' for more details." >&5
  1863. echo "$as_me: error: cannot run C compiled programs.
  1864. If you meant to cross compile, use \`--host'.
  1865. See \`config.log' for more details." >&2;}
  1866. { (exit 1); exit 1; }; }
  1867. fi
  1868. fi
  1869. fi
  1870. echo "$as_me:$LINENO: result: yes" >&5
  1871. echo "${ECHO_T}yes" >&6
  1872. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1873. ac_clean_files=$ac_clean_files_save
  1874. # Check the compiler produces executables we can run. If not, either
  1875. # the compiler is broken, or we cross compile.
  1876. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1877. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1878. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1879. echo "${ECHO_T}$cross_compiling" >&6
  1880. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1881. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1882. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1883. (eval $ac_link) 2>&5
  1884. ac_status=$?
  1885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1886. (exit $ac_status); }; then
  1887. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1888. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1889. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1890. # `rm'.
  1891. for ac_file in conftest.exe conftest conftest.*; do
  1892. test -f "$ac_file" || continue
  1893. case $ac_file in
  1894. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1895. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1896. export ac_cv_exeext
  1897. break;;
  1898. * ) break;;
  1899. esac
  1900. done
  1901. else
  1902. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1903. See \`config.log' for more details." >&5
  1904. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1905. See \`config.log' for more details." >&2;}
  1906. { (exit 1); exit 1; }; }
  1907. fi
  1908. rm -f conftest$ac_cv_exeext
  1909. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1910. echo "${ECHO_T}$ac_cv_exeext" >&6
  1911. rm -f conftest.$ac_ext
  1912. EXEEXT=$ac_cv_exeext
  1913. ac_exeext=$EXEEXT
  1914. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1915. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1916. if test "${ac_cv_objext+set}" = set; then
  1917. echo $ECHO_N "(cached) $ECHO_C" >&6
  1918. else
  1919. cat >conftest.$ac_ext <<_ACEOF
  1920. #line $LINENO "configure"
  1921. /* confdefs.h. */
  1922. _ACEOF
  1923. cat confdefs.h >>conftest.$ac_ext
  1924. cat >>conftest.$ac_ext <<_ACEOF
  1925. /* end confdefs.h. */
  1926. int
  1927. main ()
  1928. {
  1929. ;
  1930. return 0;
  1931. }
  1932. _ACEOF
  1933. rm -f conftest.o conftest.obj
  1934. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1935. (eval $ac_compile) 2>&5
  1936. ac_status=$?
  1937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1938. (exit $ac_status); }; then
  1939. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1940. case $ac_file in
  1941. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1942. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1943. break;;
  1944. esac
  1945. done
  1946. else
  1947. echo "$as_me: failed program was:" >&5
  1948. sed 's/^/| /' conftest.$ac_ext >&5
  1949. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1950. See \`config.log' for more details." >&5
  1951. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1952. See \`config.log' for more details." >&2;}
  1953. { (exit 1); exit 1; }; }
  1954. fi
  1955. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1956. fi
  1957. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1958. echo "${ECHO_T}$ac_cv_objext" >&6
  1959. OBJEXT=$ac_cv_objext
  1960. ac_objext=$OBJEXT
  1961. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1962. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1963. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1964. echo $ECHO_N "(cached) $ECHO_C" >&6
  1965. else
  1966. cat >conftest.$ac_ext <<_ACEOF
  1967. #line $LINENO "configure"
  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. #ifndef __GNUC__
  1977. choke me
  1978. #endif
  1979. ;
  1980. return 0;
  1981. }
  1982. _ACEOF
  1983. rm -f conftest.$ac_objext
  1984. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1985. (eval $ac_compile) 2>&5
  1986. ac_status=$?
  1987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1988. (exit $ac_status); } &&
  1989. { ac_try='test -s conftest.$ac_objext'
  1990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1991. (eval $ac_try) 2>&5
  1992. ac_status=$?
  1993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1994. (exit $ac_status); }; }; then
  1995. ac_compiler_gnu=yes
  1996. else
  1997. echo "$as_me: failed program was:" >&5
  1998. sed 's/^/| /' conftest.$ac_ext >&5
  1999. ac_compiler_gnu=no
  2000. fi
  2001. rm -f conftest.$ac_objext conftest.$ac_ext
  2002. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2003. fi
  2004. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2005. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2006. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2007. ac_test_CFLAGS=${CFLAGS+set}
  2008. ac_save_CFLAGS=$CFLAGS
  2009. CFLAGS="-g"
  2010. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2011. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2012. if test "${ac_cv_prog_cc_g+set}" = set; then
  2013. echo $ECHO_N "(cached) $ECHO_C" >&6
  2014. else
  2015. cat >conftest.$ac_ext <<_ACEOF
  2016. #line $LINENO "configure"
  2017. /* confdefs.h. */
  2018. _ACEOF
  2019. cat confdefs.h >>conftest.$ac_ext
  2020. cat >>conftest.$ac_ext <<_ACEOF
  2021. /* end confdefs.h. */
  2022. int
  2023. main ()
  2024. {
  2025. ;
  2026. return 0;
  2027. }
  2028. _ACEOF
  2029. rm -f conftest.$ac_objext
  2030. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2031. (eval $ac_compile) 2>&5
  2032. ac_status=$?
  2033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2034. (exit $ac_status); } &&
  2035. { ac_try='test -s conftest.$ac_objext'
  2036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2037. (eval $ac_try) 2>&5
  2038. ac_status=$?
  2039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2040. (exit $ac_status); }; }; then
  2041. ac_cv_prog_cc_g=yes
  2042. else
  2043. echo "$as_me: failed program was:" >&5
  2044. sed 's/^/| /' conftest.$ac_ext >&5
  2045. ac_cv_prog_cc_g=no
  2046. fi
  2047. rm -f conftest.$ac_objext conftest.$ac_ext
  2048. fi
  2049. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2050. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2051. if test "$ac_test_CFLAGS" = set; then
  2052. CFLAGS=$ac_save_CFLAGS
  2053. elif test $ac_cv_prog_cc_g = yes; then
  2054. if test "$GCC" = yes; then
  2055. CFLAGS="-g -O2"
  2056. else
  2057. CFLAGS="-g"
  2058. fi
  2059. else
  2060. if test "$GCC" = yes; then
  2061. CFLAGS="-O2"
  2062. else
  2063. CFLAGS=
  2064. fi
  2065. fi
  2066. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2067. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2068. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2069. echo $ECHO_N "(cached) $ECHO_C" >&6
  2070. else
  2071. ac_cv_prog_cc_stdc=no
  2072. ac_save_CC=$CC
  2073. cat >conftest.$ac_ext <<_ACEOF
  2074. #line $LINENO "configure"
  2075. /* confdefs.h. */
  2076. _ACEOF
  2077. cat confdefs.h >>conftest.$ac_ext
  2078. cat >>conftest.$ac_ext <<_ACEOF
  2079. /* end confdefs.h. */
  2080. #include <stdarg.h>
  2081. #include <stdio.h>
  2082. #include <sys/types.h>
  2083. #include <sys/stat.h>
  2084. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2085. struct buf { int x; };
  2086. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2087. static char *e (p, i)
  2088. char **p;
  2089. int i;
  2090. {
  2091. return p[i];
  2092. }
  2093. static char *f (char * (*g) (char **, int), char **p, ...)
  2094. {
  2095. char *s;
  2096. va_list v;
  2097. va_start (v,p);
  2098. s = g (p, va_arg (v,int));
  2099. va_end (v);
  2100. return s;
  2101. }
  2102. int test (int i, double x);
  2103. struct s1 {int (*f) (int a);};
  2104. struct s2 {int (*f) (double a);};
  2105. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2106. int argc;
  2107. char **argv;
  2108. int
  2109. main ()
  2110. {
  2111. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2112. ;
  2113. return 0;
  2114. }
  2115. _ACEOF
  2116. # Don't try gcc -ansi; that turns off useful extensions and
  2117. # breaks some systems' header files.
  2118. # AIX -qlanglvl=ansi
  2119. # Ultrix and OSF/1 -std1
  2120. # HP-UX 10.20 and later -Ae
  2121. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2122. # SVR4 -Xc -D__EXTENSIONS__
  2123. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2124. do
  2125. CC="$ac_save_CC $ac_arg"
  2126. rm -f conftest.$ac_objext
  2127. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2128. (eval $ac_compile) 2>&5
  2129. ac_status=$?
  2130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2131. (exit $ac_status); } &&
  2132. { ac_try='test -s conftest.$ac_objext'
  2133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2134. (eval $ac_try) 2>&5
  2135. ac_status=$?
  2136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2137. (exit $ac_status); }; }; then
  2138. ac_cv_prog_cc_stdc=$ac_arg
  2139. break
  2140. else
  2141. echo "$as_me: failed program was:" >&5
  2142. sed 's/^/| /' conftest.$ac_ext >&5
  2143. fi
  2144. rm -f conftest.$ac_objext
  2145. done
  2146. rm -f conftest.$ac_ext conftest.$ac_objext
  2147. CC=$ac_save_CC
  2148. fi
  2149. case "x$ac_cv_prog_cc_stdc" in
  2150. x|xno)
  2151. echo "$as_me:$LINENO: result: none needed" >&5
  2152. echo "${ECHO_T}none needed" >&6 ;;
  2153. *)
  2154. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2155. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2156. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2157. esac
  2158. # Some people use a C++ compiler to compile C. Since we use `exit',
  2159. # in C++ we need to declare it. In case someone uses the same compiler
  2160. # for both compiling C and C++ we need to have the C++ compiler decide
  2161. # the declaration of exit, since it's the most demanding environment.
  2162. cat >conftest.$ac_ext <<_ACEOF
  2163. #ifndef __cplusplus
  2164. choke me
  2165. #endif
  2166. _ACEOF
  2167. rm -f conftest.$ac_objext
  2168. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2169. (eval $ac_compile) 2>&5
  2170. ac_status=$?
  2171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2172. (exit $ac_status); } &&
  2173. { ac_try='test -s conftest.$ac_objext'
  2174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2175. (eval $ac_try) 2>&5
  2176. ac_status=$?
  2177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2178. (exit $ac_status); }; }; then
  2179. for ac_declaration in \
  2180. ''\
  2181. '#include <stdlib.h>' \
  2182. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2183. 'extern "C" void std::exit (int); using std::exit;' \
  2184. 'extern "C" void exit (int) throw ();' \
  2185. 'extern "C" void exit (int);' \
  2186. 'void exit (int);'
  2187. do
  2188. cat >conftest.$ac_ext <<_ACEOF
  2189. #line $LINENO "configure"
  2190. /* confdefs.h. */
  2191. _ACEOF
  2192. cat confdefs.h >>conftest.$ac_ext
  2193. cat >>conftest.$ac_ext <<_ACEOF
  2194. /* end confdefs.h. */
  2195. #include <stdlib.h>
  2196. $ac_declaration
  2197. int
  2198. main ()
  2199. {
  2200. exit (42);
  2201. ;
  2202. return 0;
  2203. }
  2204. _ACEOF
  2205. rm -f conftest.$ac_objext
  2206. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2207. (eval $ac_compile) 2>&5
  2208. ac_status=$?
  2209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2210. (exit $ac_status); } &&
  2211. { ac_try='test -s conftest.$ac_objext'
  2212. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2213. (eval $ac_try) 2>&5
  2214. ac_status=$?
  2215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2216. (exit $ac_status); }; }; then
  2217. :
  2218. else
  2219. echo "$as_me: failed program was:" >&5
  2220. sed 's/^/| /' conftest.$ac_ext >&5
  2221. continue
  2222. fi
  2223. rm -f conftest.$ac_objext conftest.$ac_ext
  2224. cat >conftest.$ac_ext <<_ACEOF
  2225. #line $LINENO "configure"
  2226. /* confdefs.h. */
  2227. _ACEOF
  2228. cat confdefs.h >>conftest.$ac_ext
  2229. cat >>conftest.$ac_ext <<_ACEOF
  2230. /* end confdefs.h. */
  2231. $ac_declaration
  2232. int
  2233. main ()
  2234. {
  2235. exit (42);
  2236. ;
  2237. return 0;
  2238. }
  2239. _ACEOF
  2240. rm -f conftest.$ac_objext
  2241. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2242. (eval $ac_compile) 2>&5
  2243. ac_status=$?
  2244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2245. (exit $ac_status); } &&
  2246. { ac_try='test -s conftest.$ac_objext'
  2247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2248. (eval $ac_try) 2>&5
  2249. ac_status=$?
  2250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2251. (exit $ac_status); }; }; then
  2252. break
  2253. else
  2254. echo "$as_me: failed program was:" >&5
  2255. sed 's/^/| /' conftest.$ac_ext >&5
  2256. fi
  2257. rm -f conftest.$ac_objext conftest.$ac_ext
  2258. done
  2259. rm -f conftest*
  2260. if test -n "$ac_declaration"; then
  2261. echo '#ifdef __cplusplus' >>confdefs.h
  2262. echo $ac_declaration >>confdefs.h
  2263. echo '#endif' >>confdefs.h
  2264. fi
  2265. else
  2266. echo "$as_me: failed program was:" >&5
  2267. sed 's/^/| /' conftest.$ac_ext >&5
  2268. fi
  2269. rm -f conftest.$ac_objext conftest.$ac_ext
  2270. ac_ext=c
  2271. ac_cpp='$CPP $CPPFLAGS'
  2272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2275. DEPDIR="${am__leading_dot}deps"
  2276. ac_config_commands="$ac_config_commands depfiles"
  2277. am_make=${MAKE-make}
  2278. cat > confinc << 'END'
  2279. doit:
  2280. @echo done
  2281. END
  2282. # If we don't find an include directive, just comment out the code.
  2283. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2284. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2285. am__include="#"
  2286. am__quote=
  2287. _am_result=none
  2288. # First try GNU make style include.
  2289. echo "include confinc" > confmf
  2290. # We grep out `Entering directory' and `Leaving directory'
  2291. # messages which can occur if `w' ends up in MAKEFLAGS.
  2292. # In particular we don't look at `^make:' because GNU make might
  2293. # be invoked under some other name (usually "gmake"), in which
  2294. # case it prints its new name instead of `make'.
  2295. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2296. am__include=include
  2297. am__quote=
  2298. _am_result=GNU
  2299. fi
  2300. # Now try BSD make style include.
  2301. if test "$am__include" = "#"; then
  2302. echo '.include "confinc"' > confmf
  2303. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2304. am__include=.include
  2305. am__quote="\""
  2306. _am_result=BSD
  2307. fi
  2308. fi
  2309. echo "$as_me:$LINENO: result: $_am_result" >&5
  2310. echo "${ECHO_T}$_am_result" >&6
  2311. rm -f confinc confmf
  2312. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2313. if test "${enable_dependency_tracking+set}" = set; then
  2314. enableval="$enable_dependency_tracking"
  2315. fi;
  2316. if test "x$enable_dependency_tracking" != xno; then
  2317. am_depcomp="$ac_aux_dir/depcomp"
  2318. AMDEPBACKSLASH='\'
  2319. fi
  2320. if test "x$enable_dependency_tracking" != xno; then
  2321. AMDEP_TRUE=
  2322. AMDEP_FALSE='#'
  2323. else
  2324. AMDEP_TRUE='#'
  2325. AMDEP_FALSE=
  2326. fi
  2327. depcc="$CC" am_compiler_list=
  2328. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2329. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2330. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2331. echo $ECHO_N "(cached) $ECHO_C" >&6
  2332. else
  2333. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2334. # We make a subdir and do the tests there. Otherwise we can end up
  2335. # making bogus files that we don't know about and never remove. For
  2336. # instance it was reported that on HP-UX the gcc test will end up
  2337. # making a dummy file named `D' -- because `-MD' means `put the output
  2338. # in D'.
  2339. mkdir conftest.dir
  2340. # Copy depcomp to subdir because otherwise we won't find it if we're
  2341. # using a relative directory.
  2342. cp "$am_depcomp" conftest.dir
  2343. cd conftest.dir
  2344. am_cv_CC_dependencies_compiler_type=none
  2345. if test "$am_compiler_list" = ""; then
  2346. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2347. fi
  2348. for depmode in $am_compiler_list; do
  2349. # We need to recreate these files for each test, as the compiler may
  2350. # overwrite some of them when testing with obscure command lines.
  2351. # This happens at least with the AIX C compiler.
  2352. echo '#include "conftest.h"' > conftest.c
  2353. echo 'int i;' > conftest.h
  2354. echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  2355. case $depmode in
  2356. nosideeffect)
  2357. # after this tag, mechanisms are not by side-effect, so they'll
  2358. # only be used when explicitly requested
  2359. if test "x$enable_dependency_tracking" = xyes; then
  2360. continue
  2361. else
  2362. break
  2363. fi
  2364. ;;
  2365. none) break ;;
  2366. esac
  2367. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2368. # mode. It turns out that the SunPro C++ compiler does not properly
  2369. # handle `-M -o', and we need to detect this.
  2370. if depmode=$depmode \
  2371. source=conftest.c object=conftest.o \
  2372. depfile=conftest.Po tmpdepfile=conftest.TPo \
  2373. $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
  2374. >/dev/null 2>conftest.err &&
  2375. grep conftest.h conftest.Po > /dev/null 2>&1 &&
  2376. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2377. # icc doesn't choke on unknown options, it will just issue warnings
  2378. # (even with -Werror). So we grep stderr for any message
  2379. # that says an option was ignored.
  2380. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  2381. am_cv_CC_dependencies_compiler_type=$depmode
  2382. break
  2383. fi
  2384. fi
  2385. done
  2386. cd ..
  2387. rm -rf conftest.dir
  2388. else
  2389. am_cv_CC_dependencies_compiler_type=none
  2390. fi
  2391. fi
  2392. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2393. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2394. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2395. if
  2396. test "x$enable_dependency_tracking" != xno \
  2397. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2398. am__fastdepCC_TRUE=
  2399. am__fastdepCC_FALSE='#'
  2400. else
  2401. am__fastdepCC_TRUE='#'
  2402. am__fastdepCC_FALSE=
  2403. fi
  2404. ac_ext=cc
  2405. ac_cpp='$CXXCPP $CPPFLAGS'
  2406. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2407. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2408. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2409. if test -n "$ac_tool_prefix"; then
  2410. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2411. do
  2412. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2413. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2414. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2416. if test "${ac_cv_prog_CXX+set}" = set; then
  2417. echo $ECHO_N "(cached) $ECHO_C" >&6
  2418. else
  2419. if test -n "$CXX"; then
  2420. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2421. else
  2422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2423. for as_dir in $PATH
  2424. do
  2425. IFS=$as_save_IFS
  2426. test -z "$as_dir" && as_dir=.
  2427. for ac_exec_ext in '' $ac_executable_extensions; do
  2428. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2429. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2431. break 2
  2432. fi
  2433. done
  2434. done
  2435. fi
  2436. fi
  2437. CXX=$ac_cv_prog_CXX
  2438. if test -n "$CXX"; then
  2439. echo "$as_me:$LINENO: result: $CXX" >&5
  2440. echo "${ECHO_T}$CXX" >&6
  2441. else
  2442. echo "$as_me:$LINENO: result: no" >&5
  2443. echo "${ECHO_T}no" >&6
  2444. fi
  2445. test -n "$CXX" && break
  2446. done
  2447. fi
  2448. if test -z "$CXX"; then
  2449. ac_ct_CXX=$CXX
  2450. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2451. do
  2452. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2453. set dummy $ac_prog; ac_word=$2
  2454. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2455. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2456. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2457. echo $ECHO_N "(cached) $ECHO_C" >&6
  2458. else
  2459. if test -n "$ac_ct_CXX"; then
  2460. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2461. else
  2462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2463. for as_dir in $PATH
  2464. do
  2465. IFS=$as_save_IFS
  2466. test -z "$as_dir" && as_dir=.
  2467. for ac_exec_ext in '' $ac_executable_extensions; do
  2468. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2469. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2470. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2471. break 2
  2472. fi
  2473. done
  2474. done
  2475. fi
  2476. fi
  2477. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2478. if test -n "$ac_ct_CXX"; then
  2479. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2480. echo "${ECHO_T}$ac_ct_CXX" >&6
  2481. else
  2482. echo "$as_me:$LINENO: result: no" >&5
  2483. echo "${ECHO_T}no" >&6
  2484. fi
  2485. test -n "$ac_ct_CXX" && break
  2486. done
  2487. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  2488. CXX=$ac_ct_CXX
  2489. fi
  2490. # Provide some information about the compiler.
  2491. echo "$as_me:$LINENO:" \
  2492. "checking for C++ compiler version" >&5
  2493. ac_compiler=`set X $ac_compile; echo $2`
  2494. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2495. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2496. ac_status=$?
  2497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2498. (exit $ac_status); }
  2499. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2500. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2501. ac_status=$?
  2502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2503. (exit $ac_status); }
  2504. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2505. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2506. ac_status=$?
  2507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2508. (exit $ac_status); }
  2509. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2510. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2511. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2512. echo $ECHO_N "(cached) $ECHO_C" >&6
  2513. else
  2514. cat >conftest.$ac_ext <<_ACEOF
  2515. #line $LINENO "configure"
  2516. /* confdefs.h. */
  2517. _ACEOF
  2518. cat confdefs.h >>conftest.$ac_ext
  2519. cat >>conftest.$ac_ext <<_ACEOF
  2520. /* end confdefs.h. */
  2521. int
  2522. main ()
  2523. {
  2524. #ifndef __GNUC__
  2525. choke me
  2526. #endif
  2527. ;
  2528. return 0;
  2529. }
  2530. _ACEOF
  2531. rm -f conftest.$ac_objext
  2532. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2533. (eval $ac_compile) 2>&5
  2534. ac_status=$?
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); } &&
  2537. { ac_try='test -s conftest.$ac_objext'
  2538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2539. (eval $ac_try) 2>&5
  2540. ac_status=$?
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; }; then
  2543. ac_compiler_gnu=yes
  2544. else
  2545. echo "$as_me: failed program was:" >&5
  2546. sed 's/^/| /' conftest.$ac_ext >&5
  2547. ac_compiler_gnu=no
  2548. fi
  2549. rm -f conftest.$ac_objext conftest.$ac_ext
  2550. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2551. fi
  2552. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2553. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2554. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2555. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2556. ac_save_CXXFLAGS=$CXXFLAGS
  2557. CXXFLAGS="-g"
  2558. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2559. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2560. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2561. echo $ECHO_N "(cached) $ECHO_C" >&6
  2562. else
  2563. cat >conftest.$ac_ext <<_ACEOF
  2564. #line $LINENO "configure"
  2565. /* confdefs.h. */
  2566. _ACEOF
  2567. cat confdefs.h >>conftest.$ac_ext
  2568. cat >>conftest.$ac_ext <<_ACEOF
  2569. /* end confdefs.h. */
  2570. int
  2571. main ()
  2572. {
  2573. ;
  2574. return 0;
  2575. }
  2576. _ACEOF
  2577. rm -f conftest.$ac_objext
  2578. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2579. (eval $ac_compile) 2>&5
  2580. ac_status=$?
  2581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2582. (exit $ac_status); } &&
  2583. { ac_try='test -s conftest.$ac_objext'
  2584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2585. (eval $ac_try) 2>&5
  2586. ac_status=$?
  2587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2588. (exit $ac_status); }; }; then
  2589. ac_cv_prog_cxx_g=yes
  2590. else
  2591. echo "$as_me: failed program was:" >&5
  2592. sed 's/^/| /' conftest.$ac_ext >&5
  2593. ac_cv_prog_cxx_g=no
  2594. fi
  2595. rm -f conftest.$ac_objext conftest.$ac_ext
  2596. fi
  2597. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2598. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2599. if test "$ac_test_CXXFLAGS" = set; then
  2600. CXXFLAGS=$ac_save_CXXFLAGS
  2601. elif test $ac_cv_prog_cxx_g = yes; then
  2602. if test "$GXX" = yes; then
  2603. CXXFLAGS="-g -O2"
  2604. else
  2605. CXXFLAGS="-g"
  2606. fi
  2607. else
  2608. if test "$GXX" = yes; then
  2609. CXXFLAGS="-O2"
  2610. else
  2611. CXXFLAGS=
  2612. fi
  2613. fi
  2614. for ac_declaration in \
  2615. ''\
  2616. '#include <stdlib.h>' \
  2617. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2618. 'extern "C" void std::exit (int); using std::exit;' \
  2619. 'extern "C" void exit (int) throw ();' \
  2620. 'extern "C" void exit (int);' \
  2621. 'void exit (int);'
  2622. do
  2623. cat >conftest.$ac_ext <<_ACEOF
  2624. #line $LINENO "configure"
  2625. /* confdefs.h. */
  2626. _ACEOF
  2627. cat confdefs.h >>conftest.$ac_ext
  2628. cat >>conftest.$ac_ext <<_ACEOF
  2629. /* end confdefs.h. */
  2630. #include <stdlib.h>
  2631. $ac_declaration
  2632. int
  2633. main ()
  2634. {
  2635. exit (42);
  2636. ;
  2637. return 0;
  2638. }
  2639. _ACEOF
  2640. rm -f conftest.$ac_objext
  2641. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2642. (eval $ac_compile) 2>&5
  2643. ac_status=$?
  2644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2645. (exit $ac_status); } &&
  2646. { ac_try='test -s conftest.$ac_objext'
  2647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2648. (eval $ac_try) 2>&5
  2649. ac_status=$?
  2650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2651. (exit $ac_status); }; }; then
  2652. :
  2653. else
  2654. echo "$as_me: failed program was:" >&5
  2655. sed 's/^/| /' conftest.$ac_ext >&5
  2656. continue
  2657. fi
  2658. rm -f conftest.$ac_objext conftest.$ac_ext
  2659. cat >conftest.$ac_ext <<_ACEOF
  2660. #line $LINENO "configure"
  2661. /* confdefs.h. */
  2662. _ACEOF
  2663. cat confdefs.h >>conftest.$ac_ext
  2664. cat >>conftest.$ac_ext <<_ACEOF
  2665. /* end confdefs.h. */
  2666. $ac_declaration
  2667. int
  2668. main ()
  2669. {
  2670. exit (42);
  2671. ;
  2672. return 0;
  2673. }
  2674. _ACEOF
  2675. rm -f conftest.$ac_objext
  2676. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2677. (eval $ac_compile) 2>&5
  2678. ac_status=$?
  2679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2680. (exit $ac_status); } &&
  2681. { ac_try='test -s conftest.$ac_objext'
  2682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2683. (eval $ac_try) 2>&5
  2684. ac_status=$?
  2685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2686. (exit $ac_status); }; }; then
  2687. break
  2688. else
  2689. echo "$as_me: failed program was:" >&5
  2690. sed 's/^/| /' conftest.$ac_ext >&5
  2691. fi
  2692. rm -f conftest.$ac_objext conftest.$ac_ext
  2693. done
  2694. rm -f conftest*
  2695. if test -n "$ac_declaration"; then
  2696. echo '#ifdef __cplusplus' >>confdefs.h
  2697. echo $ac_declaration >>confdefs.h
  2698. echo '#endif' >>confdefs.h
  2699. fi
  2700. ac_ext=c
  2701. ac_cpp='$CPP $CPPFLAGS'
  2702. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2703. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2704. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2705. depcc="$CXX" am_compiler_list=
  2706. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2707. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2708. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2709. echo $ECHO_N "(cached) $ECHO_C" >&6
  2710. else
  2711. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2712. # We make a subdir and do the tests there. Otherwise we can end up
  2713. # making bogus files that we don't know about and never remove. For
  2714. # instance it was reported that on HP-UX the gcc test will end up
  2715. # making a dummy file named `D' -- because `-MD' means `put the output
  2716. # in D'.
  2717. mkdir conftest.dir
  2718. # Copy depcomp to subdir because otherwise we won't find it if we're
  2719. # using a relative directory.
  2720. cp "$am_depcomp" conftest.dir
  2721. cd conftest.dir
  2722. am_cv_CXX_dependencies_compiler_type=none
  2723. if test "$am_compiler_list" = ""; then
  2724. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2725. fi
  2726. for depmode in $am_compiler_list; do
  2727. # We need to recreate these files for each test, as the compiler may
  2728. # overwrite some of them when testing with obscure command lines.
  2729. # This happens at least with the AIX C compiler.
  2730. echo '#include "conftest.h"' > conftest.c
  2731. echo 'int i;' > conftest.h
  2732. echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  2733. case $depmode in
  2734. nosideeffect)
  2735. # after this tag, mechanisms are not by side-effect, so they'll
  2736. # only be used when explicitly requested
  2737. if test "x$enable_dependency_tracking" = xyes; then
  2738. continue
  2739. else
  2740. break
  2741. fi
  2742. ;;
  2743. none) break ;;
  2744. esac
  2745. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2746. # mode. It turns out that the SunPro C++ compiler does not properly
  2747. # handle `-M -o', and we need to detect this.
  2748. if depmode=$depmode \
  2749. source=conftest.c object=conftest.o \
  2750. depfile=conftest.Po tmpdepfile=conftest.TPo \
  2751. $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
  2752. >/dev/null 2>conftest.err &&
  2753. grep conftest.h conftest.Po > /dev/null 2>&1 &&
  2754. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2755. # icc doesn't choke on unknown options, it will just issue warnings
  2756. # (even with -Werror). So we grep stderr for any message
  2757. # that says an option was ignored.
  2758. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  2759. am_cv_CXX_dependencies_compiler_type=$depmode
  2760. break
  2761. fi
  2762. fi
  2763. done
  2764. cd ..
  2765. rm -rf conftest.dir
  2766. else
  2767. am_cv_CXX_dependencies_compiler_type=none
  2768. fi
  2769. fi
  2770. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2771. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2772. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2773. if
  2774. test "x$enable_dependency_tracking" != xno \
  2775. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2776. am__fastdepCXX_TRUE=
  2777. am__fastdepCXX_FALSE='#'
  2778. else
  2779. am__fastdepCXX_TRUE='#'
  2780. am__fastdepCXX_FALSE=
  2781. fi
  2782. # Find a good install program. We prefer a C program (faster),
  2783. # so one script is as good as another. But avoid the broken or
  2784. # incompatible versions:
  2785. # SysV /etc/install, /usr/sbin/install
  2786. # SunOS /usr/etc/install
  2787. # IRIX /sbin/install
  2788. # AIX /bin/install
  2789. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2790. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2791. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2792. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2793. # ./install, which can be erroneously created by make from ./install.sh.
  2794. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2795. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2796. if test -z "$INSTALL"; then
  2797. if test "${ac_cv_path_install+set}" = set; then
  2798. echo $ECHO_N "(cached) $ECHO_C" >&6
  2799. else
  2800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2801. for as_dir in $PATH
  2802. do
  2803. IFS=$as_save_IFS
  2804. test -z "$as_dir" && as_dir=.
  2805. # Account for people who put trailing slashes in PATH elements.
  2806. case $as_dir/ in
  2807. ./ | .// | /cC/* | \
  2808. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2809. /usr/ucb/* ) ;;
  2810. *)
  2811. # OSF1 and SCO ODT 3.0 have their own names for install.
  2812. # Don't use installbsd from OSF since it installs stuff as root
  2813. # by default.
  2814. for ac_prog in ginstall scoinst install; do
  2815. for ac_exec_ext in '' $ac_executable_extensions; do
  2816. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2817. if test $ac_prog = install &&
  2818. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2819. # AIX install. It has an incompatible calling convention.
  2820. :
  2821. elif test $ac_prog = install &&
  2822. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2823. # program-specific install script used by HP pwplus--don't use.
  2824. :
  2825. else
  2826. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2827. break 3
  2828. fi
  2829. fi
  2830. done
  2831. done
  2832. ;;
  2833. esac
  2834. done
  2835. fi
  2836. if test "${ac_cv_path_install+set}" = set; then
  2837. INSTALL=$ac_cv_path_install
  2838. else
  2839. # As a last resort, use the slow shell script. We don't cache a
  2840. # path for INSTALL within a source directory, because that will
  2841. # break other packages using the cache if that directory is
  2842. # removed, or if the path is relative.
  2843. INSTALL=$ac_install_sh
  2844. fi
  2845. fi
  2846. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2847. echo "${ECHO_T}$INSTALL" >&6
  2848. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2849. # It thinks the first close brace ends the variable substitution.
  2850. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2851. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2852. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2853. if test -n "$ac_tool_prefix"; then
  2854. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2855. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2856. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2857. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2858. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2859. echo $ECHO_N "(cached) $ECHO_C" >&6
  2860. else
  2861. if test -n "$RANLIB"; then
  2862. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2863. else
  2864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2865. for as_dir in $PATH
  2866. do
  2867. IFS=$as_save_IFS
  2868. test -z "$as_dir" && as_dir=.
  2869. for ac_exec_ext in '' $ac_executable_extensions; do
  2870. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2871. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2872. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2873. break 2
  2874. fi
  2875. done
  2876. done
  2877. fi
  2878. fi
  2879. RANLIB=$ac_cv_prog_RANLIB
  2880. if test -n "$RANLIB"; then
  2881. echo "$as_me:$LINENO: result: $RANLIB" >&5
  2882. echo "${ECHO_T}$RANLIB" >&6
  2883. else
  2884. echo "$as_me:$LINENO: result: no" >&5
  2885. echo "${ECHO_T}no" >&6
  2886. fi
  2887. fi
  2888. if test -z "$ac_cv_prog_RANLIB"; then
  2889. ac_ct_RANLIB=$RANLIB
  2890. # Extract the first word of "ranlib", so it can be a program name with args.
  2891. set dummy ranlib; ac_word=$2
  2892. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2894. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2895. echo $ECHO_N "(cached) $ECHO_C" >&6
  2896. else
  2897. if test -n "$ac_ct_RANLIB"; then
  2898. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2899. else
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2907. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2914. fi
  2915. fi
  2916. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2917. if test -n "$ac_ct_RANLIB"; then
  2918. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2919. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2920. else
  2921. echo "$as_me:$LINENO: result: no" >&5
  2922. echo "${ECHO_T}no" >&6
  2923. fi
  2924. RANLIB=$ac_ct_RANLIB
  2925. else
  2926. RANLIB="$ac_cv_prog_RANLIB"
  2927. fi
  2928. ac_ext=cc
  2929. ac_cpp='$CXXCPP $CPPFLAGS'
  2930. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2931. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2932. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2933. echo "$as_me:$LINENO: checking for main in -lqthreads" >&5
  2934. echo $ECHO_N "checking for main in -lqthreads... $ECHO_C" >&6
  2935. if test "${ac_cv_lib_qthreads_main+set}" = set; then
  2936. echo $ECHO_N "(cached) $ECHO_C" >&6
  2937. else
  2938. ac_check_lib_save_LIBS=$LIBS
  2939. LIBS="-lqthreads $LIBS"
  2940. cat >conftest.$ac_ext <<_ACEOF
  2941. #line $LINENO "configure"
  2942. /* confdefs.h. */
  2943. _ACEOF
  2944. cat confdefs.h >>conftest.$ac_ext
  2945. cat >>conftest.$ac_ext <<_ACEOF
  2946. /* end confdefs.h. */
  2947. int
  2948. main ()
  2949. {
  2950. main ();
  2951. ;
  2952. return 0;
  2953. }
  2954. _ACEOF
  2955. rm -f conftest.$ac_objext conftest$ac_exeext
  2956. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2957. (eval $ac_link) 2>&5
  2958. ac_status=$?
  2959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2960. (exit $ac_status); } &&
  2961. { ac_try='test -s conftest$ac_exeext'
  2962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2963. (eval $ac_try) 2>&5
  2964. ac_status=$?
  2965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2966. (exit $ac_status); }; }; then
  2967. ac_cv_lib_qthreads_main=yes
  2968. else
  2969. echo "$as_me: failed program was:" >&5
  2970. sed 's/^/| /' conftest.$ac_ext >&5
  2971. ac_cv_lib_qthreads_main=no
  2972. fi
  2973. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2974. LIBS=$ac_check_lib_save_LIBS
  2975. fi
  2976. echo "$as_me:$LINENO: result: $ac_cv_lib_qthreads_main" >&5
  2977. echo "${ECHO_T}$ac_cv_lib_qthreads_main" >&6
  2978. if test $ac_cv_lib_qthreads_main = yes; then
  2979. cat >>confdefs.h <<_ACEOF
  2980. #define HAVE_LIBQTHREADS 1
  2981. _ACEOF
  2982. LIBS="-lqthreads $LIBS"
  2983. fi
  2984. echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
  2985. echo $ECHO_N "checking for scm_boot_guile in -lguile... $ECHO_C" >&6
  2986. if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
  2987. echo $ECHO_N "(cached) $ECHO_C" >&6
  2988. else
  2989. ac_check_lib_save_LIBS=$LIBS
  2990. LIBS="-lguile $LIBS"
  2991. cat >conftest.$ac_ext <<_ACEOF
  2992. #line $LINENO "configure"
  2993. /* confdefs.h. */
  2994. _ACEOF
  2995. cat confdefs.h >>conftest.$ac_ext
  2996. cat >>conftest.$ac_ext <<_ACEOF
  2997. /* end confdefs.h. */
  2998. /* Override any gcc2 internal prototype to avoid an error. */
  2999. #ifdef __cplusplus
  3000. extern "C"
  3001. #endif
  3002. /* We use char because int might match the return type of a gcc2
  3003. builtin and then its argument prototype would still apply. */
  3004. char scm_boot_guile ();
  3005. int
  3006. main ()
  3007. {
  3008. scm_boot_guile ();
  3009. ;
  3010. return 0;
  3011. }
  3012. _ACEOF
  3013. rm -f conftest.$ac_objext conftest$ac_exeext
  3014. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3015. (eval $ac_link) 2>&5
  3016. ac_status=$?
  3017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3018. (exit $ac_status); } &&
  3019. { ac_try='test -s conftest$ac_exeext'
  3020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3021. (eval $ac_try) 2>&5
  3022. ac_status=$?
  3023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3024. (exit $ac_status); }; }; then
  3025. ac_cv_lib_guile_scm_boot_guile=yes
  3026. else
  3027. echo "$as_me: failed program was:" >&5
  3028. sed 's/^/| /' conftest.$ac_ext >&5
  3029. ac_cv_lib_guile_scm_boot_guile=no
  3030. fi
  3031. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3032. LIBS=$ac_check_lib_save_LIBS
  3033. fi
  3034. echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
  3035. echo "${ECHO_T}$ac_cv_lib_guile_scm_boot_guile" >&6
  3036. if test $ac_cv_lib_guile_scm_boot_guile = yes; then
  3037. cat >>confdefs.h <<_ACEOF
  3038. #define HAVE_LIBGUILE 1
  3039. _ACEOF
  3040. LIBS="-lguile $LIBS"
  3041. fi
  3042. ac_ext=cc
  3043. ac_cpp='$CXXCPP $CPPFLAGS'
  3044. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3045. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3046. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3047. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  3048. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  3049. if test -z "$CXXCPP"; then
  3050. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  3051. echo $ECHO_N "(cached) $ECHO_C" >&6
  3052. else
  3053. # Double quotes because CXXCPP needs to be expanded
  3054. for CXXCPP in "$CXX -E" "/lib/cpp"
  3055. do
  3056. ac_preproc_ok=false
  3057. for ac_cxx_preproc_warn_flag in '' yes
  3058. do
  3059. # Use a header file that comes with gcc, so configuring glibc
  3060. # with a fresh cross-compiler works.
  3061. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3062. # <limits.h> exists even on freestanding compilers.
  3063. # On the NeXT, cc -E runs the code through the compiler's parser,
  3064. # not just through cpp. "Syntax error" is here to catch this case.
  3065. cat >conftest.$ac_ext <<_ACEOF
  3066. #line $LINENO "configure"
  3067. /* confdefs.h. */
  3068. _ACEOF
  3069. cat confdefs.h >>conftest.$ac_ext
  3070. cat >>conftest.$ac_ext <<_ACEOF
  3071. /* end confdefs.h. */
  3072. #ifdef __STDC__
  3073. # include <limits.h>
  3074. #else
  3075. # include <assert.h>
  3076. #endif
  3077. Syntax error
  3078. _ACEOF
  3079. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3080. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3081. ac_status=$?
  3082. grep -v '^ *+' conftest.er1 >conftest.err
  3083. rm -f conftest.er1
  3084. cat conftest.err >&5
  3085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3086. (exit $ac_status); } >/dev/null; then
  3087. if test -s conftest.err; then
  3088. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3089. else
  3090. ac_cpp_err=
  3091. fi
  3092. else
  3093. ac_cpp_err=yes
  3094. fi
  3095. if test -z "$ac_cpp_err"; then
  3096. :
  3097. else
  3098. echo "$as_me: failed program was:" >&5
  3099. sed 's/^/| /' conftest.$ac_ext >&5
  3100. # Broken: fails on valid input.
  3101. continue
  3102. fi
  3103. rm -f conftest.err conftest.$ac_ext
  3104. # OK, works on sane cases. Now check whether non-existent headers
  3105. # can be detected and how.
  3106. cat >conftest.$ac_ext <<_ACEOF
  3107. #line $LINENO "configure"
  3108. /* confdefs.h. */
  3109. _ACEOF
  3110. cat confdefs.h >>conftest.$ac_ext
  3111. cat >>conftest.$ac_ext <<_ACEOF
  3112. /* end confdefs.h. */
  3113. #include <ac_nonexistent.h>
  3114. _ACEOF
  3115. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3116. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3117. ac_status=$?
  3118. grep -v '^ *+' conftest.er1 >conftest.err
  3119. rm -f conftest.er1
  3120. cat conftest.err >&5
  3121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3122. (exit $ac_status); } >/dev/null; then
  3123. if test -s conftest.err; then
  3124. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3125. else
  3126. ac_cpp_err=
  3127. fi
  3128. else
  3129. ac_cpp_err=yes
  3130. fi
  3131. if test -z "$ac_cpp_err"; then
  3132. # Broken: success on invalid input.
  3133. continue
  3134. else
  3135. echo "$as_me: failed program was:" >&5
  3136. sed 's/^/| /' conftest.$ac_ext >&5
  3137. # Passes both tests.
  3138. ac_preproc_ok=:
  3139. break
  3140. fi
  3141. rm -f conftest.err conftest.$ac_ext
  3142. done
  3143. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3144. rm -f conftest.err conftest.$ac_ext
  3145. if $ac_preproc_ok; then
  3146. break
  3147. fi
  3148. done
  3149. ac_cv_prog_CXXCPP=$CXXCPP
  3150. fi
  3151. CXXCPP=$ac_cv_prog_CXXCPP
  3152. else
  3153. ac_cv_prog_CXXCPP=$CXXCPP
  3154. fi
  3155. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  3156. echo "${ECHO_T}$CXXCPP" >&6
  3157. ac_preproc_ok=false
  3158. for ac_cxx_preproc_warn_flag in '' yes
  3159. do
  3160. # Use a header file that comes with gcc, so configuring glibc
  3161. # with a fresh cross-compiler works.
  3162. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3163. # <limits.h> exists even on freestanding compilers.
  3164. # On the NeXT, cc -E runs the code through the compiler's parser,
  3165. # not just through cpp. "Syntax error" is here to catch this case.
  3166. cat >conftest.$ac_ext <<_ACEOF
  3167. #line $LINENO "configure"
  3168. /* confdefs.h. */
  3169. _ACEOF
  3170. cat confdefs.h >>conftest.$ac_ext
  3171. cat >>conftest.$ac_ext <<_ACEOF
  3172. /* end confdefs.h. */
  3173. #ifdef __STDC__
  3174. # include <limits.h>
  3175. #else
  3176. # include <assert.h>
  3177. #endif
  3178. Syntax error
  3179. _ACEOF
  3180. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3181. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3182. ac_status=$?
  3183. grep -v '^ *+' conftest.er1 >conftest.err
  3184. rm -f conftest.er1
  3185. cat conftest.err >&5
  3186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3187. (exit $ac_status); } >/dev/null; then
  3188. if test -s conftest.err; then
  3189. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3190. else
  3191. ac_cpp_err=
  3192. fi
  3193. else
  3194. ac_cpp_err=yes
  3195. fi
  3196. if test -z "$ac_cpp_err"; then
  3197. :
  3198. else
  3199. echo "$as_me: failed program was:" >&5
  3200. sed 's/^/| /' conftest.$ac_ext >&5
  3201. # Broken: fails on valid input.
  3202. continue
  3203. fi
  3204. rm -f conftest.err conftest.$ac_ext
  3205. # OK, works on sane cases. Now check whether non-existent headers
  3206. # can be detected and how.
  3207. cat >conftest.$ac_ext <<_ACEOF
  3208. #line $LINENO "configure"
  3209. /* confdefs.h. */
  3210. _ACEOF
  3211. cat confdefs.h >>conftest.$ac_ext
  3212. cat >>conftest.$ac_ext <<_ACEOF
  3213. /* end confdefs.h. */
  3214. #include <ac_nonexistent.h>
  3215. _ACEOF
  3216. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3217. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3218. ac_status=$?
  3219. grep -v '^ *+' conftest.er1 >conftest.err
  3220. rm -f conftest.er1
  3221. cat conftest.err >&5
  3222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3223. (exit $ac_status); } >/dev/null; then
  3224. if test -s conftest.err; then
  3225. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3226. else
  3227. ac_cpp_err=
  3228. fi
  3229. else
  3230. ac_cpp_err=yes
  3231. fi
  3232. if test -z "$ac_cpp_err"; then
  3233. # Broken: success on invalid input.
  3234. continue
  3235. else
  3236. echo "$as_me: failed program was:" >&5
  3237. sed 's/^/| /' conftest.$ac_ext >&5
  3238. # Passes both tests.
  3239. ac_preproc_ok=:
  3240. break
  3241. fi
  3242. rm -f conftest.err conftest.$ac_ext
  3243. done
  3244. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3245. rm -f conftest.err conftest.$ac_ext
  3246. if $ac_preproc_ok; then
  3247. :
  3248. else
  3249. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  3250. See \`config.log' for more details." >&5
  3251. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  3252. See \`config.log' for more details." >&2;}
  3253. { (exit 1); exit 1; }; }
  3254. fi
  3255. ac_ext=cc
  3256. ac_cpp='$CXXCPP $CPPFLAGS'
  3257. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3258. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3259. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3260. echo "$as_me:$LINENO: checking for egrep" >&5
  3261. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3262. if test "${ac_cv_prog_egrep+set}" = set; then
  3263. echo $ECHO_N "(cached) $ECHO_C" >&6
  3264. else
  3265. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3266. then ac_cv_prog_egrep='grep -E'
  3267. else ac_cv_prog_egrep='egrep'
  3268. fi
  3269. fi
  3270. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3271. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3272. EGREP=$ac_cv_prog_egrep
  3273. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3274. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3275. if test "${ac_cv_header_stdc+set}" = set; then
  3276. echo $ECHO_N "(cached) $ECHO_C" >&6
  3277. else
  3278. cat >conftest.$ac_ext <<_ACEOF
  3279. #line $LINENO "configure"
  3280. /* confdefs.h. */
  3281. _ACEOF
  3282. cat confdefs.h >>conftest.$ac_ext
  3283. cat >>conftest.$ac_ext <<_ACEOF
  3284. /* end confdefs.h. */
  3285. #include <stdlib.h>
  3286. #include <stdarg.h>
  3287. #include <string.h>
  3288. #include <float.h>
  3289. int
  3290. main ()
  3291. {
  3292. ;
  3293. return 0;
  3294. }
  3295. _ACEOF
  3296. rm -f conftest.$ac_objext
  3297. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3298. (eval $ac_compile) 2>&5
  3299. ac_status=$?
  3300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3301. (exit $ac_status); } &&
  3302. { ac_try='test -s conftest.$ac_objext'
  3303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3304. (eval $ac_try) 2>&5
  3305. ac_status=$?
  3306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3307. (exit $ac_status); }; }; then
  3308. ac_cv_header_stdc=yes
  3309. else
  3310. echo "$as_me: failed program was:" >&5
  3311. sed 's/^/| /' conftest.$ac_ext >&5
  3312. ac_cv_header_stdc=no
  3313. fi
  3314. rm -f conftest.$ac_objext conftest.$ac_ext
  3315. if test $ac_cv_header_stdc = yes; then
  3316. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3317. cat >conftest.$ac_ext <<_ACEOF
  3318. #line $LINENO "configure"
  3319. /* confdefs.h. */
  3320. _ACEOF
  3321. cat confdefs.h >>conftest.$ac_ext
  3322. cat >>conftest.$ac_ext <<_ACEOF
  3323. /* end confdefs.h. */
  3324. #include <string.h>
  3325. _ACEOF
  3326. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3327. $EGREP "memchr" >/dev/null 2>&1; then
  3328. :
  3329. else
  3330. ac_cv_header_stdc=no
  3331. fi
  3332. rm -f conftest*
  3333. fi
  3334. if test $ac_cv_header_stdc = yes; then
  3335. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3336. cat >conftest.$ac_ext <<_ACEOF
  3337. #line $LINENO "configure"
  3338. /* confdefs.h. */
  3339. _ACEOF
  3340. cat confdefs.h >>conftest.$ac_ext
  3341. cat >>conftest.$ac_ext <<_ACEOF
  3342. /* end confdefs.h. */
  3343. #include <stdlib.h>
  3344. _ACEOF
  3345. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3346. $EGREP "free" >/dev/null 2>&1; then
  3347. :
  3348. else
  3349. ac_cv_header_stdc=no
  3350. fi
  3351. rm -f conftest*
  3352. fi
  3353. if test $ac_cv_header_stdc = yes; then
  3354. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3355. if test "$cross_compiling" = yes; then
  3356. :
  3357. else
  3358. cat >conftest.$ac_ext <<_ACEOF
  3359. #line $LINENO "configure"
  3360. /* confdefs.h. */
  3361. _ACEOF
  3362. cat confdefs.h >>conftest.$ac_ext
  3363. cat >>conftest.$ac_ext <<_ACEOF
  3364. /* end confdefs.h. */
  3365. #include <ctype.h>
  3366. #if ((' ' & 0x0FF) == 0x020)
  3367. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3368. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3369. #else
  3370. # define ISLOWER(c) \
  3371. (('a' <= (c) && (c) <= 'i') \
  3372. || ('j' <= (c) && (c) <= 'r') \
  3373. || ('s' <= (c) && (c) <= 'z'))
  3374. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3375. #endif
  3376. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3377. int
  3378. main ()
  3379. {
  3380. int i;
  3381. for (i = 0; i < 256; i++)
  3382. if (XOR (islower (i), ISLOWER (i))
  3383. || toupper (i) != TOUPPER (i))
  3384. exit(2);
  3385. exit (0);
  3386. }
  3387. _ACEOF
  3388. rm -f conftest$ac_exeext
  3389. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3390. (eval $ac_link) 2>&5
  3391. ac_status=$?
  3392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3393. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3395. (eval $ac_try) 2>&5
  3396. ac_status=$?
  3397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3398. (exit $ac_status); }; }; then
  3399. :
  3400. else
  3401. echo "$as_me: program exited with status $ac_status" >&5
  3402. echo "$as_me: failed program was:" >&5
  3403. sed 's/^/| /' conftest.$ac_ext >&5
  3404. ( exit $ac_status )
  3405. ac_cv_header_stdc=no
  3406. fi
  3407. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3408. fi
  3409. fi
  3410. fi
  3411. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3412. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3413. if test $ac_cv_header_stdc = yes; then
  3414. cat >>confdefs.h <<\_ACEOF
  3415. #define STDC_HEADERS 1
  3416. _ACEOF
  3417. fi
  3418. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3419. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3420. inttypes.h stdint.h unistd.h
  3421. do
  3422. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3423. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3424. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3425. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3426. echo $ECHO_N "(cached) $ECHO_C" >&6
  3427. else
  3428. cat >conftest.$ac_ext <<_ACEOF
  3429. #line $LINENO "configure"
  3430. /* confdefs.h. */
  3431. _ACEOF
  3432. cat confdefs.h >>conftest.$ac_ext
  3433. cat >>conftest.$ac_ext <<_ACEOF
  3434. /* end confdefs.h. */
  3435. $ac_includes_default
  3436. #include <$ac_header>
  3437. _ACEOF
  3438. rm -f conftest.$ac_objext
  3439. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3440. (eval $ac_compile) 2>&5
  3441. ac_status=$?
  3442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3443. (exit $ac_status); } &&
  3444. { ac_try='test -s conftest.$ac_objext'
  3445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3446. (eval $ac_try) 2>&5
  3447. ac_status=$?
  3448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3449. (exit $ac_status); }; }; then
  3450. eval "$as_ac_Header=yes"
  3451. else
  3452. echo "$as_me: failed program was:" >&5
  3453. sed 's/^/| /' conftest.$ac_ext >&5
  3454. eval "$as_ac_Header=no"
  3455. fi
  3456. rm -f conftest.$ac_objext conftest.$ac_ext
  3457. fi
  3458. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3459. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3460. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3461. cat >>confdefs.h <<_ACEOF
  3462. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3463. _ACEOF
  3464. fi
  3465. done
  3466. if test "${ac_cv_header_guile_gh_h+set}" = set; then
  3467. echo "$as_me:$LINENO: checking for guile/gh.h" >&5
  3468. echo $ECHO_N "checking for guile/gh.h... $ECHO_C" >&6
  3469. if test "${ac_cv_header_guile_gh_h+set}" = set; then
  3470. echo $ECHO_N "(cached) $ECHO_C" >&6
  3471. fi
  3472. echo "$as_me:$LINENO: result: $ac_cv_header_guile_gh_h" >&5
  3473. echo "${ECHO_T}$ac_cv_header_guile_gh_h" >&6
  3474. else
  3475. # Is the header compilable?
  3476. echo "$as_me:$LINENO: checking guile/gh.h usability" >&5
  3477. echo $ECHO_N "checking guile/gh.h usability... $ECHO_C" >&6
  3478. cat >conftest.$ac_ext <<_ACEOF
  3479. #line $LINENO "configure"
  3480. /* confdefs.h. */
  3481. _ACEOF
  3482. cat confdefs.h >>conftest.$ac_ext
  3483. cat >>conftest.$ac_ext <<_ACEOF
  3484. /* end confdefs.h. */
  3485. $ac_includes_default
  3486. #include <guile/gh.h>
  3487. _ACEOF
  3488. rm -f conftest.$ac_objext
  3489. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3490. (eval $ac_compile) 2>&5
  3491. ac_status=$?
  3492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3493. (exit $ac_status); } &&
  3494. { ac_try='test -s conftest.$ac_objext'
  3495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3496. (eval $ac_try) 2>&5
  3497. ac_status=$?
  3498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3499. (exit $ac_status); }; }; then
  3500. ac_header_compiler=yes
  3501. else
  3502. echo "$as_me: failed program was:" >&5
  3503. sed 's/^/| /' conftest.$ac_ext >&5
  3504. ac_header_compiler=no
  3505. fi
  3506. rm -f conftest.$ac_objext conftest.$ac_ext
  3507. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3508. echo "${ECHO_T}$ac_header_compiler" >&6
  3509. # Is the header present?
  3510. echo "$as_me:$LINENO: checking guile/gh.h presence" >&5
  3511. echo $ECHO_N "checking guile/gh.h presence... $ECHO_C" >&6
  3512. cat >conftest.$ac_ext <<_ACEOF
  3513. #line $LINENO "configure"
  3514. /* confdefs.h. */
  3515. _ACEOF
  3516. cat confdefs.h >>conftest.$ac_ext
  3517. cat >>conftest.$ac_ext <<_ACEOF
  3518. /* end confdefs.h. */
  3519. #include <guile/gh.h>
  3520. _ACEOF
  3521. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3522. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3523. ac_status=$?
  3524. grep -v '^ *+' conftest.er1 >conftest.err
  3525. rm -f conftest.er1
  3526. cat conftest.err >&5
  3527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3528. (exit $ac_status); } >/dev/null; then
  3529. if test -s conftest.err; then
  3530. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3531. else
  3532. ac_cpp_err=
  3533. fi
  3534. else
  3535. ac_cpp_err=yes
  3536. fi
  3537. if test -z "$ac_cpp_err"; then
  3538. ac_header_preproc=yes
  3539. else
  3540. echo "$as_me: failed program was:" >&5
  3541. sed 's/^/| /' conftest.$ac_ext >&5
  3542. ac_header_preproc=no
  3543. fi
  3544. rm -f conftest.err conftest.$ac_ext
  3545. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3546. echo "${ECHO_T}$ac_header_preproc" >&6
  3547. # So? What about this header?
  3548. case $ac_header_compiler:$ac_header_preproc in
  3549. yes:no )
  3550. { echo "$as_me:$LINENO: WARNING: guile/gh.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3551. echo "$as_me: WARNING: guile/gh.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3552. { echo "$as_me:$LINENO: WARNING: guile/gh.h: proceeding with the preprocessor's result" >&5
  3553. echo "$as_me: WARNING: guile/gh.h: proceeding with the preprocessor's result" >&2;}
  3554. (
  3555. cat <<\_ASBOX
  3556. ## ------------------------------------ ##
  3557. ## Report this to bug-autoconf@gnu.org. ##
  3558. ## ------------------------------------ ##
  3559. _ASBOX
  3560. ) |
  3561. sed "s/^/$as_me: WARNING: /" >&2
  3562. ;;
  3563. no:yes )
  3564. { echo "$as_me:$LINENO: WARNING: guile/gh.h: present but cannot be compiled" >&5
  3565. echo "$as_me: WARNING: guile/gh.h: present but cannot be compiled" >&2;}
  3566. { echo "$as_me:$LINENO: WARNING: guile/gh.h: check for missing prerequisite headers?" >&5
  3567. echo "$as_me: WARNING: guile/gh.h: check for missing prerequisite headers?" >&2;}
  3568. { echo "$as_me:$LINENO: WARNING: guile/gh.h: proceeding with the preprocessor's result" >&5
  3569. echo "$as_me: WARNING: guile/gh.h: proceeding with the preprocessor's result" >&2;}
  3570. (
  3571. cat <<\_ASBOX
  3572. ## ------------------------------------ ##
  3573. ## Report this to bug-autoconf@gnu.org. ##
  3574. ## ------------------------------------ ##
  3575. _ASBOX
  3576. ) |
  3577. sed "s/^/$as_me: WARNING: /" >&2
  3578. ;;
  3579. esac
  3580. echo "$as_me:$LINENO: checking for guile/gh.h" >&5
  3581. echo $ECHO_N "checking for guile/gh.h... $ECHO_C" >&6
  3582. if test "${ac_cv_header_guile_gh_h+set}" = set; then
  3583. echo $ECHO_N "(cached) $ECHO_C" >&6
  3584. else
  3585. ac_cv_header_guile_gh_h=$ac_header_preproc
  3586. fi
  3587. echo "$as_me:$LINENO: result: $ac_cv_header_guile_gh_h" >&5
  3588. echo "${ECHO_T}$ac_cv_header_guile_gh_h" >&6
  3589. fi
  3590. REQUIRED_CLANLIB_VERSION="0.7.3"
  3591. succeeded=no
  3592. if test -z "$PKG_CONFIG"; then
  3593. # Extract the first word of "pkg-config", so it can be a program name with args.
  3594. set dummy pkg-config; ac_word=$2
  3595. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3596. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3597. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  3598. echo $ECHO_N "(cached) $ECHO_C" >&6
  3599. else
  3600. case $PKG_CONFIG in
  3601. [\\/]* | ?:[\\/]*)
  3602. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3603. ;;
  3604. *)
  3605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3606. for as_dir in $PATH
  3607. do
  3608. IFS=$as_save_IFS
  3609. test -z "$as_dir" && as_dir=.
  3610. for ac_exec_ext in '' $ac_executable_extensions; do
  3611. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3612. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3613. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3614. break 2
  3615. fi
  3616. done
  3617. done
  3618. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  3619. ;;
  3620. esac
  3621. fi
  3622. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3623. if test -n "$PKG_CONFIG"; then
  3624. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  3625. echo "${ECHO_T}$PKG_CONFIG" >&6
  3626. else
  3627. echo "$as_me:$LINENO: result: no" >&5
  3628. echo "${ECHO_T}no" >&6
  3629. fi
  3630. fi
  3631. if test "$PKG_CONFIG" = "no" ; then
  3632. echo "*** The pkg-config script could not be found. Make sure it is"
  3633. echo "*** in your path, or set the PKG_CONFIG environment variable"
  3634. echo "*** to the full path to pkg-config."
  3635. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  3636. else
  3637. PKG_CONFIG_MIN_VERSION=0.9.0
  3638. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  3639. echo "$as_me:$LINENO: checking for
  3640. clanCore >= $REQUIRED_CLANLIB_VERSION
  3641. clanApp >= $REQUIRED_CLANLIB_VERSION
  3642. clanDisplay >= $REQUIRED_CLANLIB_VERSION
  3643. clanGL >= $REQUIRED_CLANLIB_VERSION
  3644. " >&5
  3645. echo $ECHO_N "checking for
  3646. clanCore >= $REQUIRED_CLANLIB_VERSION
  3647. clanApp >= $REQUIRED_CLANLIB_VERSION
  3648. clanDisplay >= $REQUIRED_CLANLIB_VERSION
  3649. clanGL >= $REQUIRED_CLANLIB_VERSION
  3650. ... $ECHO_C" >&6
  3651. if $PKG_CONFIG --exists "
  3652. clanCore >= $REQUIRED_CLANLIB_VERSION
  3653. clanApp >= $REQUIRED_CLANLIB_VERSION
  3654. clanDisplay >= $REQUIRED_CLANLIB_VERSION
  3655. clanGL >= $REQUIRED_CLANLIB_VERSION
  3656. " ; then
  3657. echo "$as_me:$LINENO: result: yes" >&5
  3658. echo "${ECHO_T}yes" >&6
  3659. succeeded=yes
  3660. echo "$as_me:$LINENO: checking WINDSTILLE_DEPS_CFLAGS" >&5
  3661. echo $ECHO_N "checking WINDSTILLE_DEPS_CFLAGS... $ECHO_C" >&6
  3662. WINDSTILLE_DEPS_CFLAGS=`$PKG_CONFIG --cflags "
  3663. clanCore >= $REQUIRED_CLANLIB_VERSION
  3664. clanApp >= $REQUIRED_CLANLIB_VERSION
  3665. clanDisplay >= $REQUIRED_CLANLIB_VERSION
  3666. clanGL >= $REQUIRED_CLANLIB_VERSION
  3667. "`
  3668. echo "$as_me:$LINENO: result: $WINDSTILLE_DEPS_CFLAGS" >&5
  3669. echo "${ECHO_T}$WINDSTILLE_DEPS_CFLAGS" >&6
  3670. echo "$as_me:$LINENO: checking WINDSTILLE_DEPS_LIBS" >&5
  3671. echo $ECHO_N "checking WINDSTILLE_DEPS_LIBS... $ECHO_C" >&6
  3672. WINDSTILLE_DEPS_LIBS=`$PKG_CONFIG --libs "
  3673. clanCore >= $REQUIRED_CLANLIB_VERSION
  3674. clanApp >= $REQUIRED_CLANLIB_VERSION
  3675. clanDisplay >= $REQUIRED_CLANLIB_VERSION
  3676. clanGL >= $REQUIRED_CLANLIB_VERSION
  3677. "`
  3678. echo "$as_me:$LINENO: result: $WINDSTILLE_DEPS_LIBS" >&5
  3679. echo "${ECHO_T}$WINDSTILLE_DEPS_LIBS" >&6
  3680. else
  3681. WINDSTILLE_DEPS_CFLAGS=""
  3682. WINDSTILLE_DEPS_LIBS=""
  3683. ## If we have a custom action on failure, don't print errors, but
  3684. ## do set a variable so people can do so.
  3685. WINDSTILLE_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
  3686. clanCore >= $REQUIRED_CLANLIB_VERSION
  3687. clanApp >= $REQUIRED_CLANLIB_VERSION
  3688. clanDisplay >= $REQUIRED_CLANLIB_VERSION
  3689. clanGL >= $REQUIRED_CLANLIB_VERSION
  3690. "`
  3691. echo $WINDSTILLE_DEPS_PKG_ERRORS
  3692. fi
  3693. else
  3694. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  3695. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  3696. fi
  3697. fi
  3698. if test $succeeded = yes; then
  3699. CXXFLAGS="$CXXFLAGS $WINDSTILLE_DEPS_CFLAGS"
  3700. LIBS="$LIBS $WINDSTILLE_DEPS_LIBS"
  3701. else
  3702. { { echo "$as_me:$LINENO: error: Library requirements (
  3703. clanCore >= $REQUIRED_CLANLIB_VERSION
  3704. clanApp >= $REQUIRED_CLANLIB_VERSION
  3705. clanDisplay >= $REQUIRED_CLANLIB_VERSION
  3706. clanGL >= $REQUIRED_CLANLIB_VERSION
  3707. ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
  3708. echo "$as_me: error: Library requirements (
  3709. clanCore >= $REQUIRED_CLANLIB_VERSION
  3710. clanApp >= $REQUIRED_CLANLIB_VERSION
  3711. clanDisplay >= $REQUIRED_CLANLIB_VERSION
  3712. clanGL >= $REQUIRED_CLANLIB_VERSION
  3713. ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
  3714. { (exit 1); exit 1; }; }
  3715. fi
  3716. ac_config_files="$ac_config_files Makefile data/Makefile src/Makefile src/guile/Makefile src/editor/Makefile"
  3717. cat >confcache <<\_ACEOF
  3718. # This file is a shell script that caches the results of configure
  3719. # tests run on this system so they can be shared between configure
  3720. # scripts and configure runs, see configure's option --config-cache.
  3721. # It is not useful on other systems. If it contains results you don't
  3722. # want to keep, you may remove or edit it.
  3723. #
  3724. # config.status only pays attention to the cache file if you give it
  3725. # the --recheck option to rerun configure.
  3726. #
  3727. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3728. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3729. # following values.
  3730. _ACEOF
  3731. # The following way of writing the cache mishandles newlines in values,
  3732. # but we know of no workaround that is simple, portable, and efficient.
  3733. # So, don't put newlines in cache variables' values.
  3734. # Ultrix sh set writes to stderr and can't be redirected directly,
  3735. # and sets the high bit in the cache file unless we assign to the vars.
  3736. {
  3737. (set) 2>&1 |
  3738. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3739. *ac_space=\ *)
  3740. # `set' does not quote correctly, so add quotes (double-quote
  3741. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3742. sed -n \
  3743. "s/'/'\\\\''/g;
  3744. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3745. ;;
  3746. *)
  3747. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3748. sed -n \
  3749. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3750. ;;
  3751. esac;
  3752. } |
  3753. sed '
  3754. t clear
  3755. : clear
  3756. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3757. t end
  3758. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3759. : end' >>confcache
  3760. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3761. if test -w $cache_file; then
  3762. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  3763. cat confcache >$cache_file
  3764. else
  3765. echo "not updating unwritable cache $cache_file"
  3766. fi
  3767. fi
  3768. rm -f confcache
  3769. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3770. # Let make expand exec_prefix.
  3771. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3772. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  3773. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  3774. # trailing colons and then remove the whole line if VPATH becomes empty
  3775. # (actually we leave an empty line to preserve line numbers).
  3776. if test "x$srcdir" = x.; then
  3777. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  3778. s/:*\$(srcdir):*/:/;
  3779. s/:*\${srcdir}:*/:/;
  3780. s/:*@srcdir@:*/:/;
  3781. s/^\([^=]*=[ ]*\):*/\1/;
  3782. s/:*$//;
  3783. s/^[^=]*=[ ]*$//;
  3784. }'
  3785. fi
  3786. DEFS=-DHAVE_CONFIG_H
  3787. ac_libobjs=
  3788. ac_ltlibobjs=
  3789. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3790. # 1. Remove the extension, and $U if already installed.
  3791. ac_i=`echo "$ac_i" |
  3792. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  3793. # 2. Add them.
  3794. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  3795. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  3796. done
  3797. LIBOBJS=$ac_libobjs
  3798. LTLIBOBJS=$ac_ltlibobjs
  3799. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  3800. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  3801. Usually this means the macro was only invoked conditionally." >&5
  3802. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  3803. Usually this means the macro was only invoked conditionally." >&2;}
  3804. { (exit 1); exit 1; }; }
  3805. fi
  3806. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  3807. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  3808. Usually this means the macro was only invoked conditionally." >&5
  3809. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  3810. Usually this means the macro was only invoked conditionally." >&2;}
  3811. { (exit 1); exit 1; }; }
  3812. fi
  3813. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  3814. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  3815. Usually this means the macro was only invoked conditionally." >&5
  3816. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  3817. Usually this means the macro was only invoked conditionally." >&2;}
  3818. { (exit 1); exit 1; }; }
  3819. fi
  3820. : ${CONFIG_STATUS=./config.status}
  3821. ac_clean_files_save=$ac_clean_files
  3822. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3823. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  3824. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3825. cat >$CONFIG_STATUS <<_ACEOF
  3826. #! $SHELL
  3827. # Generated by $as_me.
  3828. # Run this file to recreate the current configuration.
  3829. # Compiler output produced by configure, useful for debugging
  3830. # configure, is in config.log if it exists.
  3831. debug=false
  3832. ac_cs_recheck=false
  3833. ac_cs_silent=false
  3834. SHELL=\${CONFIG_SHELL-$SHELL}
  3835. _ACEOF
  3836. cat >>$CONFIG_STATUS <<\_ACEOF
  3837. ## --------------------- ##
  3838. ## M4sh Initialization. ##
  3839. ## --------------------- ##
  3840. # Be Bourne compatible
  3841. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  3842. emulate sh
  3843. NULLCMD=:
  3844. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  3845. # is contrary to our usage. Disable this feature.
  3846. alias -g '${1+"$@"}'='"$@"'
  3847. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  3848. set -o posix
  3849. fi
  3850. # Support unset when possible.
  3851. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  3852. as_unset=unset
  3853. else
  3854. as_unset=false
  3855. fi
  3856. # Work around bugs in pre-3.0 UWIN ksh.
  3857. $as_unset ENV MAIL MAILPATH
  3858. PS1='$ '
  3859. PS2='> '
  3860. PS4='+ '
  3861. # NLS nuisances.
  3862. for as_var in \
  3863. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  3864. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  3865. LC_TELEPHONE LC_TIME
  3866. do
  3867. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  3868. eval $as_var=C; export $as_var
  3869. else
  3870. $as_unset $as_var
  3871. fi
  3872. done
  3873. # Required to use basename.
  3874. if expr a : '\(a\)' >/dev/null 2>&1; then
  3875. as_expr=expr
  3876. else
  3877. as_expr=false
  3878. fi
  3879. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  3880. as_basename=basename
  3881. else
  3882. as_basename=false
  3883. fi
  3884. # Name of the executable.
  3885. as_me=`$as_basename "$0" ||
  3886. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3887. X"$0" : 'X\(//\)$' \| \
  3888. X"$0" : 'X\(/\)$' \| \
  3889. . : '\(.\)' 2>/dev/null ||
  3890. echo X/"$0" |
  3891. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  3892. /^X\/\(\/\/\)$/{ s//\1/; q; }
  3893. /^X\/\(\/\).*/{ s//\1/; q; }
  3894. s/.*/./; q'`
  3895. # PATH needs CR, and LINENO needs CR and PATH.
  3896. # Avoid depending upon Character Ranges.
  3897. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3898. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3899. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3900. as_cr_digits='0123456789'
  3901. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3902. # The user is always right.
  3903. if test "${PATH_SEPARATOR+set}" != set; then
  3904. echo "#! /bin/sh" >conf$$.sh
  3905. echo "exit 0" >>conf$$.sh
  3906. chmod +x conf$$.sh
  3907. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3908. PATH_SEPARATOR=';'
  3909. else
  3910. PATH_SEPARATOR=:
  3911. fi
  3912. rm -f conf$$.sh
  3913. fi
  3914. as_lineno_1=$LINENO
  3915. as_lineno_2=$LINENO
  3916. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3917. test "x$as_lineno_1" != "x$as_lineno_2" &&
  3918. test "x$as_lineno_3" = "x$as_lineno_2" || {
  3919. # Find who we are. Look in the path if we contain no path at all
  3920. # relative or not.
  3921. case $0 in
  3922. *[\\/]* ) as_myself=$0 ;;
  3923. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3924. for as_dir in $PATH
  3925. do
  3926. IFS=$as_save_IFS
  3927. test -z "$as_dir" && as_dir=.
  3928. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3929. done
  3930. ;;
  3931. esac
  3932. # We did not find ourselves, most probably we were run as `sh COMMAND'
  3933. # in which case we are not to be found in the path.
  3934. if test "x$as_myself" = x; then
  3935. as_myself=$0
  3936. fi
  3937. if test ! -f "$as_myself"; then
  3938. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  3939. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  3940. { (exit 1); exit 1; }; }
  3941. fi
  3942. case $CONFIG_SHELL in
  3943. '')
  3944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3945. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  3946. do
  3947. IFS=$as_save_IFS
  3948. test -z "$as_dir" && as_dir=.
  3949. for as_base in sh bash ksh sh5; do
  3950. case $as_dir in
  3951. /*)
  3952. if ("$as_dir/$as_base" -c '
  3953. as_lineno_1=$LINENO
  3954. as_lineno_2=$LINENO
  3955. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3956. test "x$as_lineno_1" != "x$as_lineno_2" &&
  3957. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  3958. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  3959. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  3960. CONFIG_SHELL=$as_dir/$as_base
  3961. export CONFIG_SHELL
  3962. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  3963. fi;;
  3964. esac
  3965. done
  3966. done
  3967. ;;
  3968. esac
  3969. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  3970. # uniformly replaced by the line number. The first 'sed' inserts a
  3971. # line-number line before each line; the second 'sed' does the real
  3972. # work. The second script uses 'N' to pair each line-number line
  3973. # with the numbered line, and appends trailing '-' during
  3974. # substitution so that $LINENO is not a special case at line end.
  3975. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  3976. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  3977. sed '=' <$as_myself |
  3978. sed '
  3979. N
  3980. s,$,-,
  3981. : loop
  3982. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  3983. t loop
  3984. s,-$,,
  3985. s,^['$as_cr_digits']*\n,,
  3986. ' >$as_me.lineno &&
  3987. chmod +x $as_me.lineno ||
  3988. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  3989. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  3990. { (exit 1); exit 1; }; }
  3991. # Don't try to exec as it changes $[0], causing all sort of problems
  3992. # (the dirname of $[0] is not the place where we might find the
  3993. # original and so on. Autoconf is especially sensible to this).
  3994. . ./$as_me.lineno
  3995. # Exit status is that of the last command.
  3996. exit
  3997. }
  3998. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  3999. *c*,-n*) ECHO_N= ECHO_C='
  4000. ' ECHO_T=' ' ;;
  4001. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  4002. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  4003. esac
  4004. if expr a : '\(a\)' >/dev/null 2>&1; then
  4005. as_expr=expr
  4006. else
  4007. as_expr=false
  4008. fi
  4009. rm -f conf$$ conf$$.exe conf$$.file
  4010. echo >conf$$.file
  4011. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4012. # We could just check for DJGPP; but this test a) works b) is more generic
  4013. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  4014. if test -f conf$$.exe; then
  4015. # Don't use ln at all; we don't have any links
  4016. as_ln_s='cp -p'
  4017. else
  4018. as_ln_s='ln -s'
  4019. fi
  4020. elif ln conf$$.file conf$$ 2>/dev/null; then
  4021. as_ln_s=ln
  4022. else
  4023. as_ln_s='cp -p'
  4024. fi
  4025. rm -f conf$$ conf$$.exe conf$$.file
  4026. if mkdir -p . 2>/dev/null; then
  4027. as_mkdir_p=:
  4028. else
  4029. as_mkdir_p=false
  4030. fi
  4031. as_executable_p="test -f"
  4032. # Sed expression to map a string onto a valid CPP name.
  4033. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  4034. # Sed expression to map a string onto a valid variable name.
  4035. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  4036. # IFS
  4037. # We need space, tab and new line, in precisely that order.
  4038. as_nl='
  4039. '
  4040. IFS=" $as_nl"
  4041. # CDPATH.
  4042. $as_unset CDPATH
  4043. exec 6>&1
  4044. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  4045. # report actual input values of CONFIG_FILES etc. instead of their
  4046. # values after options handling. Logging --version etc. is OK.
  4047. exec 5>>config.log
  4048. {
  4049. echo
  4050. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4051. ## Running $as_me. ##
  4052. _ASBOX
  4053. } >&5
  4054. cat >&5 <<_CSEOF
  4055. This file was extended by Windstille $as_me 0.1.0, which was
  4056. generated by GNU Autoconf 2.57. Invocation command line was
  4057. CONFIG_FILES = $CONFIG_FILES
  4058. CONFIG_HEADERS = $CONFIG_HEADERS
  4059. CONFIG_LINKS = $CONFIG_LINKS
  4060. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4061. $ $0 $@
  4062. _CSEOF
  4063. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  4064. echo >&5
  4065. _ACEOF
  4066. # Files that config.status was made for.
  4067. if test -n "$ac_config_files"; then
  4068. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  4069. fi
  4070. if test -n "$ac_config_headers"; then
  4071. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  4072. fi
  4073. if test -n "$ac_config_links"; then
  4074. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  4075. fi
  4076. if test -n "$ac_config_commands"; then
  4077. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  4078. fi
  4079. cat >>$CONFIG_STATUS <<\_ACEOF
  4080. ac_cs_usage="\
  4081. \`$as_me' instantiates files from templates according to the
  4082. current configuration.
  4083. Usage: $0 [OPTIONS] [FILE]...
  4084. -h, --help print this help, then exit
  4085. -V, --version print version number, then exit
  4086. -q, --quiet do not print progress messages
  4087. -d, --debug don't remove temporary files
  4088. --recheck update $as_me by reconfiguring in the same conditions
  4089. --file=FILE[:TEMPLATE]
  4090. instantiate the configuration file FILE
  4091. --header=FILE[:TEMPLATE]
  4092. instantiate the configuration header FILE
  4093. Configuration files:
  4094. $config_files
  4095. Configuration headers:
  4096. $config_headers
  4097. Configuration commands:
  4098. $config_commands
  4099. Report bugs to <bug-autoconf@gnu.org>."
  4100. _ACEOF
  4101. cat >>$CONFIG_STATUS <<_ACEOF
  4102. ac_cs_version="\\
  4103. Windstille config.status 0.1.0
  4104. configured by $0, generated by GNU Autoconf 2.57,
  4105. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  4106. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  4107. Free Software Foundation, Inc.
  4108. This config.status script is free software; the Free Software Foundation
  4109. gives unlimited permission to copy, distribute and modify it."
  4110. srcdir=$srcdir
  4111. INSTALL="$INSTALL"
  4112. _ACEOF
  4113. cat >>$CONFIG_STATUS <<\_ACEOF
  4114. # If no file are specified by the user, then we need to provide default
  4115. # value. By we need to know if files were specified by the user.
  4116. ac_need_defaults=:
  4117. while test $# != 0
  4118. do
  4119. case $1 in
  4120. --*=*)
  4121. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  4122. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  4123. ac_shift=:
  4124. ;;
  4125. -*)
  4126. ac_option=$1
  4127. ac_optarg=$2
  4128. ac_shift=shift
  4129. ;;
  4130. *) # This is not an option, so the user has probably given explicit
  4131. # arguments.
  4132. ac_option=$1
  4133. ac_need_defaults=false;;
  4134. esac
  4135. case $ac_option in
  4136. # Handling of the options.
  4137. _ACEOF
  4138. cat >>$CONFIG_STATUS <<\_ACEOF
  4139. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4140. ac_cs_recheck=: ;;
  4141. --version | --vers* | -V )
  4142. echo "$ac_cs_version"; exit 0 ;;
  4143. --he | --h)
  4144. # Conflict between --help and --header
  4145. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  4146. Try \`$0 --help' for more information." >&5
  4147. echo "$as_me: error: ambiguous option: $1
  4148. Try \`$0 --help' for more information." >&2;}
  4149. { (exit 1); exit 1; }; };;
  4150. --help | --hel | -h )
  4151. echo "$ac_cs_usage"; exit 0 ;;
  4152. --debug | --d* | -d )
  4153. debug=: ;;
  4154. --file | --fil | --fi | --f )
  4155. $ac_shift
  4156. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  4157. ac_need_defaults=false;;
  4158. --header | --heade | --head | --hea )
  4159. $ac_shift
  4160. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  4161. ac_need_defaults=false;;
  4162. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4163. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4164. ac_cs_silent=: ;;
  4165. # This is an error.
  4166. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  4167. Try \`$0 --help' for more information." >&5
  4168. echo "$as_me: error: unrecognized option: $1
  4169. Try \`$0 --help' for more information." >&2;}
  4170. { (exit 1); exit 1; }; } ;;
  4171. *) ac_config_targets="$ac_config_targets $1" ;;
  4172. esac
  4173. shift
  4174. done
  4175. ac_configure_extra_args=
  4176. if $ac_cs_silent; then
  4177. exec 6>/dev/null
  4178. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4179. fi
  4180. _ACEOF
  4181. cat >>$CONFIG_STATUS <<_ACEOF
  4182. if \$ac_cs_recheck; then
  4183. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  4184. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4185. fi
  4186. _ACEOF
  4187. cat >>$CONFIG_STATUS <<_ACEOF
  4188. #
  4189. # INIT-COMMANDS section.
  4190. #
  4191. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  4192. _ACEOF
  4193. cat >>$CONFIG_STATUS <<\_ACEOF
  4194. for ac_config_target in $ac_config_targets
  4195. do
  4196. case "$ac_config_target" in
  4197. # Handling of arguments.
  4198. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4199. "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
  4200. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  4201. "src/guile/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/guile/Makefile" ;;
  4202. "src/editor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/editor/Makefile" ;;
  4203. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  4204. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  4205. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  4206. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  4207. { (exit 1); exit 1; }; };;
  4208. esac
  4209. done
  4210. # If the user did not use the arguments to specify the items to instantiate,
  4211. # then the envvar interface is used. Set only those that are not.
  4212. # We use the long form for the default assignment because of an extremely
  4213. # bizarre bug on SunOS 4.1.3.
  4214. if $ac_need_defaults; then
  4215. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4216. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  4217. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  4218. fi
  4219. # Have a temporary directory for convenience. Make it in the build tree
  4220. # simply because there is no reason to put it here, and in addition,
  4221. # creating and moving files from /tmp can sometimes cause problems.
  4222. # Create a temporary directory, and hook for its removal unless debugging.
  4223. $debug ||
  4224. {
  4225. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  4226. trap '{ (exit 1); exit 1; }' 1 2 13 15
  4227. }
  4228. # Create a (secure) tmp directory for tmp files.
  4229. {
  4230. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  4231. test -n "$tmp" && test -d "$tmp"
  4232. } ||
  4233. {
  4234. tmp=./confstat$$-$RANDOM
  4235. (umask 077 && mkdir $tmp)
  4236. } ||
  4237. {
  4238. echo "$me: cannot create a temporary directory in ." >&2
  4239. { (exit 1); exit 1; }
  4240. }
  4241. _ACEOF
  4242. cat >>$CONFIG_STATUS <<_ACEOF
  4243. #
  4244. # CONFIG_FILES section.
  4245. #
  4246. # No need to generate the scripts if there are no CONFIG_FILES.
  4247. # This happens for instance when ./config.status config.h
  4248. if test -n "\$CONFIG_FILES"; then
  4249. # Protect against being on the right side of a sed subst in config.status.
  4250. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  4251. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  4252. s,@SHELL@,$SHELL,;t t
  4253. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  4254. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  4255. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  4256. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  4257. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  4258. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  4259. s,@exec_prefix@,$exec_prefix,;t t
  4260. s,@prefix@,$prefix,;t t
  4261. s,@program_transform_name@,$program_transform_name,;t t
  4262. s,@bindir@,$bindir,;t t
  4263. s,@sbindir@,$sbindir,;t t
  4264. s,@libexecdir@,$libexecdir,;t t
  4265. s,@datadir@,$datadir,;t t
  4266. s,@sysconfdir@,$sysconfdir,;t t
  4267. s,@sharedstatedir@,$sharedstatedir,;t t
  4268. s,@localstatedir@,$localstatedir,;t t
  4269. s,@libdir@,$libdir,;t t
  4270. s,@includedir@,$includedir,;t t
  4271. s,@oldincludedir@,$oldincludedir,;t t
  4272. s,@infodir@,$infodir,;t t
  4273. s,@mandir@,$mandir,;t t
  4274. s,@build_alias@,$build_alias,;t t
  4275. s,@host_alias@,$host_alias,;t t
  4276. s,@target_alias@,$target_alias,;t t
  4277. s,@DEFS@,$DEFS,;t t
  4278. s,@ECHO_C@,$ECHO_C,;t t
  4279. s,@ECHO_N@,$ECHO_N,;t t
  4280. s,@ECHO_T@,$ECHO_T,;t t
  4281. s,@LIBS@,$LIBS,;t t
  4282. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  4283. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  4284. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  4285. s,@CYGPATH_W@,$CYGPATH_W,;t t
  4286. s,@PACKAGE@,$PACKAGE,;t t
  4287. s,@VERSION@,$VERSION,;t t
  4288. s,@ACLOCAL@,$ACLOCAL,;t t
  4289. s,@AUTOCONF@,$AUTOCONF,;t t
  4290. s,@AUTOMAKE@,$AUTOMAKE,;t t
  4291. s,@AUTOHEADER@,$AUTOHEADER,;t t
  4292. s,@MAKEINFO@,$MAKEINFO,;t t
  4293. s,@AMTAR@,$AMTAR,;t t
  4294. s,@install_sh@,$install_sh,;t t
  4295. s,@STRIP@,$STRIP,;t t
  4296. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  4297. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  4298. s,@AWK@,$AWK,;t t
  4299. s,@SET_MAKE@,$SET_MAKE,;t t
  4300. s,@am__leading_dot@,$am__leading_dot,;t t
  4301. s,@CC@,$CC,;t t
  4302. s,@CFLAGS@,$CFLAGS,;t t
  4303. s,@LDFLAGS@,$LDFLAGS,;t t
  4304. s,@CPPFLAGS@,$CPPFLAGS,;t t
  4305. s,@ac_ct_CC@,$ac_ct_CC,;t t
  4306. s,@EXEEXT@,$EXEEXT,;t t
  4307. s,@OBJEXT@,$OBJEXT,;t t
  4308. s,@DEPDIR@,$DEPDIR,;t t
  4309. s,@am__include@,$am__include,;t t
  4310. s,@am__quote@,$am__quote,;t t
  4311. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  4312. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  4313. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  4314. s,@CCDEPMODE@,$CCDEPMODE,;t t
  4315. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  4316. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  4317. s,@CXX@,$CXX,;t t
  4318. s,@CXXFLAGS@,$CXXFLAGS,;t t
  4319. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  4320. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  4321. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  4322. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  4323. s,@RANLIB@,$RANLIB,;t t
  4324. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  4325. s,@CXXCPP@,$CXXCPP,;t t
  4326. s,@EGREP@,$EGREP,;t t
  4327. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  4328. s,@WINDSTILLE_DEPS_CFLAGS@,$WINDSTILLE_DEPS_CFLAGS,;t t
  4329. s,@WINDSTILLE_DEPS_LIBS@,$WINDSTILLE_DEPS_LIBS,;t t
  4330. s,@LIBOBJS@,$LIBOBJS,;t t
  4331. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  4332. CEOF
  4333. _ACEOF
  4334. cat >>$CONFIG_STATUS <<\_ACEOF
  4335. # Split the substitutions into bite-sized pieces for seds with
  4336. # small command number limits, like on Digital OSF/1 and HP-UX.
  4337. ac_max_sed_lines=48
  4338. ac_sed_frag=1 # Number of current file.
  4339. ac_beg=1 # First line for current file.
  4340. ac_end=$ac_max_sed_lines # Line after last line for current file.
  4341. ac_more_lines=:
  4342. ac_sed_cmds=
  4343. while $ac_more_lines; do
  4344. if test $ac_beg -gt 1; then
  4345. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  4346. else
  4347. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  4348. fi
  4349. if test ! -s $tmp/subs.frag; then
  4350. ac_more_lines=false
  4351. else
  4352. # The purpose of the label and of the branching condition is to
  4353. # speed up the sed processing (if there are no `@' at all, there
  4354. # is no need to browse any of the substitutions).
  4355. # These are the two extra sed commands mentioned above.
  4356. (echo ':t
  4357. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  4358. if test -z "$ac_sed_cmds"; then
  4359. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  4360. else
  4361. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  4362. fi
  4363. ac_sed_frag=`expr $ac_sed_frag + 1`
  4364. ac_beg=$ac_end
  4365. ac_end=`expr $ac_end + $ac_max_sed_lines`
  4366. fi
  4367. done
  4368. if test -z "$ac_sed_cmds"; then
  4369. ac_sed_cmds=cat
  4370. fi
  4371. fi # test -n "$CONFIG_FILES"
  4372. _ACEOF
  4373. cat >>$CONFIG_STATUS <<\_ACEOF
  4374. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  4375. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4376. case $ac_file in
  4377. - | *:- | *:-:* ) # input from stdin
  4378. cat >$tmp/stdin
  4379. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4380. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4381. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4382. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4383. * ) ac_file_in=$ac_file.in ;;
  4384. esac
  4385. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  4386. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  4387. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4388. X"$ac_file" : 'X\(//\)[^/]' \| \
  4389. X"$ac_file" : 'X\(//\)$' \| \
  4390. X"$ac_file" : 'X\(/\)' \| \
  4391. . : '\(.\)' 2>/dev/null ||
  4392. echo X"$ac_file" |
  4393. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4394. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4395. /^X\(\/\/\)$/{ s//\1/; q; }
  4396. /^X\(\/\).*/{ s//\1/; q; }
  4397. s/.*/./; q'`
  4398. { if $as_mkdir_p; then
  4399. mkdir -p "$ac_dir"
  4400. else
  4401. as_dir="$ac_dir"
  4402. as_dirs=
  4403. while test ! -d "$as_dir"; do
  4404. as_dirs="$as_dir $as_dirs"
  4405. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  4406. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4407. X"$as_dir" : 'X\(//\)[^/]' \| \
  4408. X"$as_dir" : 'X\(//\)$' \| \
  4409. X"$as_dir" : 'X\(/\)' \| \
  4410. . : '\(.\)' 2>/dev/null ||
  4411. echo X"$as_dir" |
  4412. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4413. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4414. /^X\(\/\/\)$/{ s//\1/; q; }
  4415. /^X\(\/\).*/{ s//\1/; q; }
  4416. s/.*/./; q'`
  4417. done
  4418. test ! -n "$as_dirs" || mkdir $as_dirs
  4419. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  4420. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  4421. { (exit 1); exit 1; }; }; }
  4422. ac_builddir=.
  4423. if test "$ac_dir" != .; then
  4424. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4425. # A "../" for each directory in $ac_dir_suffix.
  4426. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  4427. else
  4428. ac_dir_suffix= ac_top_builddir=
  4429. fi
  4430. case $srcdir in
  4431. .) # No --srcdir option. We are building in place.
  4432. ac_srcdir=.
  4433. if test -z "$ac_top_builddir"; then
  4434. ac_top_srcdir=.
  4435. else
  4436. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  4437. fi ;;
  4438. [\\/]* | ?:[\\/]* ) # Absolute path.
  4439. ac_srcdir=$srcdir$ac_dir_suffix;
  4440. ac_top_srcdir=$srcdir ;;
  4441. *) # Relative path.
  4442. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  4443. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  4444. esac
  4445. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  4446. # absolute.
  4447. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  4448. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  4449. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  4450. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  4451. case $INSTALL in
  4452. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  4453. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  4454. esac
  4455. if test x"$ac_file" != x-; then
  4456. { echo "$as_me:$LINENO: creating $ac_file" >&5
  4457. echo "$as_me: creating $ac_file" >&6;}
  4458. rm -f "$ac_file"
  4459. fi
  4460. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4461. # use $as_me), people would be surprised to read:
  4462. # /* config.h. Generated by config.status. */
  4463. if test x"$ac_file" = x-; then
  4464. configure_input=
  4465. else
  4466. configure_input="$ac_file. "
  4467. fi
  4468. configure_input=$configure_input"Generated from `echo $ac_file_in |
  4469. sed 's,.*/,,'` by configure."
  4470. # First look for the input files in the build tree, otherwise in the
  4471. # src tree.
  4472. ac_file_inputs=`IFS=:
  4473. for f in $ac_file_in; do
  4474. case $f in
  4475. -) echo $tmp/stdin ;;
  4476. [\\/$]*)
  4477. # Absolute (can't be DOS-style, as IFS=:)
  4478. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4479. echo "$as_me: error: cannot find input file: $f" >&2;}
  4480. { (exit 1); exit 1; }; }
  4481. echo $f;;
  4482. *) # Relative
  4483. if test -f "$f"; then
  4484. # Build tree
  4485. echo $f
  4486. elif test -f "$srcdir/$f"; then
  4487. # Source tree
  4488. echo $srcdir/$f
  4489. else
  4490. # /dev/null tree
  4491. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4492. echo "$as_me: error: cannot find input file: $f" >&2;}
  4493. { (exit 1); exit 1; }; }
  4494. fi;;
  4495. esac
  4496. done` || { (exit 1); exit 1; }
  4497. _ACEOF
  4498. cat >>$CONFIG_STATUS <<_ACEOF
  4499. sed "$ac_vpsub
  4500. $extrasub
  4501. _ACEOF
  4502. cat >>$CONFIG_STATUS <<\_ACEOF
  4503. :t
  4504. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4505. s,@configure_input@,$configure_input,;t t
  4506. s,@srcdir@,$ac_srcdir,;t t
  4507. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  4508. s,@top_srcdir@,$ac_top_srcdir,;t t
  4509. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  4510. s,@builddir@,$ac_builddir,;t t
  4511. s,@abs_builddir@,$ac_abs_builddir,;t t
  4512. s,@top_builddir@,$ac_top_builddir,;t t
  4513. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  4514. s,@INSTALL@,$ac_INSTALL,;t t
  4515. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  4516. rm -f $tmp/stdin
  4517. if test x"$ac_file" != x-; then
  4518. mv $tmp/out $ac_file
  4519. else
  4520. cat $tmp/out
  4521. rm -f $tmp/out
  4522. fi
  4523. done
  4524. _ACEOF
  4525. cat >>$CONFIG_STATUS <<\_ACEOF
  4526. #
  4527. # CONFIG_HEADER section.
  4528. #
  4529. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  4530. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  4531. #
  4532. # ac_d sets the value in "#define NAME VALUE" lines.
  4533. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  4534. ac_dB='[ ].*$,\1#\2'
  4535. ac_dC=' '
  4536. ac_dD=',;t'
  4537. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4538. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  4539. ac_uB='$,\1#\2define\3'
  4540. ac_uC=' '
  4541. ac_uD=',;t'
  4542. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  4543. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4544. case $ac_file in
  4545. - | *:- | *:-:* ) # input from stdin
  4546. cat >$tmp/stdin
  4547. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4548. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4549. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4550. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4551. * ) ac_file_in=$ac_file.in ;;
  4552. esac
  4553. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  4554. echo "$as_me: creating $ac_file" >&6;}
  4555. # First look for the input files in the build tree, otherwise in the
  4556. # src tree.
  4557. ac_file_inputs=`IFS=:
  4558. for f in $ac_file_in; do
  4559. case $f in
  4560. -) echo $tmp/stdin ;;
  4561. [\\/$]*)
  4562. # Absolute (can't be DOS-style, as IFS=:)
  4563. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4564. echo "$as_me: error: cannot find input file: $f" >&2;}
  4565. { (exit 1); exit 1; }; }
  4566. echo $f;;
  4567. *) # Relative
  4568. if test -f "$f"; then
  4569. # Build tree
  4570. echo $f
  4571. elif test -f "$srcdir/$f"; then
  4572. # Source tree
  4573. echo $srcdir/$f
  4574. else
  4575. # /dev/null tree
  4576. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4577. echo "$as_me: error: cannot find input file: $f" >&2;}
  4578. { (exit 1); exit 1; }; }
  4579. fi;;
  4580. esac
  4581. done` || { (exit 1); exit 1; }
  4582. # Remove the trailing spaces.
  4583. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  4584. _ACEOF
  4585. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  4586. # `conftest.undefs', that substitutes the proper values into
  4587. # config.h.in to produce config.h. The first handles `#define'
  4588. # templates, and the second `#undef' templates.
  4589. # And first: Protect against being on the right side of a sed subst in
  4590. # config.status. Protect against being in an unquoted here document
  4591. # in config.status.
  4592. rm -f conftest.defines conftest.undefs
  4593. # Using a here document instead of a string reduces the quoting nightmare.
  4594. # Putting comments in sed scripts is not portable.
  4595. #
  4596. # `end' is used to avoid that the second main sed command (meant for
  4597. # 0-ary CPP macros) applies to n-ary macro definitions.
  4598. # See the Autoconf documentation for `clear'.
  4599. cat >confdef2sed.sed <<\_ACEOF
  4600. s/[\\&,]/\\&/g
  4601. s,[\\$`],\\&,g
  4602. t clear
  4603. : clear
  4604. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  4605. t end
  4606. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  4607. : end
  4608. _ACEOF
  4609. # If some macros were called several times there might be several times
  4610. # the same #defines, which is useless. Nevertheless, we may not want to
  4611. # sort them, since we want the *last* AC-DEFINE to be honored.
  4612. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  4613. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  4614. rm -f confdef2sed.sed
  4615. # This sed command replaces #undef with comments. This is necessary, for
  4616. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4617. # on some systems where configure will not decide to define it.
  4618. cat >>conftest.undefs <<\_ACEOF
  4619. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  4620. _ACEOF
  4621. # Break up conftest.defines because some shells have a limit on the size
  4622. # of here documents, and old seds have small limits too (100 cmds).
  4623. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  4624. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  4625. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  4626. echo ' :' >>$CONFIG_STATUS
  4627. rm -f conftest.tail
  4628. while grep . conftest.defines >/dev/null
  4629. do
  4630. # Write a limited-size here document to $tmp/defines.sed.
  4631. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  4632. # Speed up: don't consider the non `#define' lines.
  4633. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  4634. # Work around the forget-to-reset-the-flag bug.
  4635. echo 't clr' >>$CONFIG_STATUS
  4636. echo ': clr' >>$CONFIG_STATUS
  4637. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  4638. echo 'CEOF
  4639. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  4640. rm -f $tmp/in
  4641. mv $tmp/out $tmp/in
  4642. ' >>$CONFIG_STATUS
  4643. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  4644. rm -f conftest.defines
  4645. mv conftest.tail conftest.defines
  4646. done
  4647. rm -f conftest.defines
  4648. echo ' fi # grep' >>$CONFIG_STATUS
  4649. echo >>$CONFIG_STATUS
  4650. # Break up conftest.undefs because some shells have a limit on the size
  4651. # of here documents, and old seds have small limits too (100 cmds).
  4652. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  4653. rm -f conftest.tail
  4654. while grep . conftest.undefs >/dev/null
  4655. do
  4656. # Write a limited-size here document to $tmp/undefs.sed.
  4657. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  4658. # Speed up: don't consider the non `#undef'
  4659. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  4660. # Work around the forget-to-reset-the-flag bug.
  4661. echo 't clr' >>$CONFIG_STATUS
  4662. echo ': clr' >>$CONFIG_STATUS
  4663. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  4664. echo 'CEOF
  4665. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  4666. rm -f $tmp/in
  4667. mv $tmp/out $tmp/in
  4668. ' >>$CONFIG_STATUS
  4669. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  4670. rm -f conftest.undefs
  4671. mv conftest.tail conftest.undefs
  4672. done
  4673. rm -f conftest.undefs
  4674. cat >>$CONFIG_STATUS <<\_ACEOF
  4675. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4676. # use $as_me), people would be surprised to read:
  4677. # /* config.h. Generated by config.status. */
  4678. if test x"$ac_file" = x-; then
  4679. echo "/* Generated by configure. */" >$tmp/config.h
  4680. else
  4681. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  4682. fi
  4683. cat $tmp/in >>$tmp/config.h
  4684. rm -f $tmp/in
  4685. if test x"$ac_file" != x-; then
  4686. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  4687. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  4688. echo "$as_me: $ac_file is unchanged" >&6;}
  4689. else
  4690. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  4691. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4692. X"$ac_file" : 'X\(//\)[^/]' \| \
  4693. X"$ac_file" : 'X\(//\)$' \| \
  4694. X"$ac_file" : 'X\(/\)' \| \
  4695. . : '\(.\)' 2>/dev/null ||
  4696. echo X"$ac_file" |
  4697. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4698. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4699. /^X\(\/\/\)$/{ s//\1/; q; }
  4700. /^X\(\/\).*/{ s//\1/; q; }
  4701. s/.*/./; q'`
  4702. { if $as_mkdir_p; then
  4703. mkdir -p "$ac_dir"
  4704. else
  4705. as_dir="$ac_dir"
  4706. as_dirs=
  4707. while test ! -d "$as_dir"; do
  4708. as_dirs="$as_dir $as_dirs"
  4709. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  4710. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4711. X"$as_dir" : 'X\(//\)[^/]' \| \
  4712. X"$as_dir" : 'X\(//\)$' \| \
  4713. X"$as_dir" : 'X\(/\)' \| \
  4714. . : '\(.\)' 2>/dev/null ||
  4715. echo X"$as_dir" |
  4716. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4717. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4718. /^X\(\/\/\)$/{ s//\1/; q; }
  4719. /^X\(\/\).*/{ s//\1/; q; }
  4720. s/.*/./; q'`
  4721. done
  4722. test ! -n "$as_dirs" || mkdir $as_dirs
  4723. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  4724. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  4725. { (exit 1); exit 1; }; }; }
  4726. rm -f $ac_file
  4727. mv $tmp/config.h $ac_file
  4728. fi
  4729. else
  4730. cat $tmp/config.h
  4731. rm -f $tmp/config.h
  4732. fi
  4733. # Compute $ac_file's index in $config_headers.
  4734. _am_stamp_count=1
  4735. for _am_header in $config_headers :; do
  4736. case $_am_header in
  4737. $ac_file | $ac_file:* )
  4738. break ;;
  4739. * )
  4740. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  4741. esac
  4742. done
  4743. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  4744. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4745. X$ac_file : 'X\(//\)[^/]' \| \
  4746. X$ac_file : 'X\(//\)$' \| \
  4747. X$ac_file : 'X\(/\)' \| \
  4748. . : '\(.\)' 2>/dev/null ||
  4749. echo X$ac_file |
  4750. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4751. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4752. /^X\(\/\/\)$/{ s//\1/; q; }
  4753. /^X\(\/\).*/{ s//\1/; q; }
  4754. s/.*/./; q'`/stamp-h$_am_stamp_count
  4755. done
  4756. _ACEOF
  4757. cat >>$CONFIG_STATUS <<\_ACEOF
  4758. #
  4759. # CONFIG_COMMANDS section.
  4760. #
  4761. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  4762. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  4763. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4764. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  4765. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4766. X"$ac_dest" : 'X\(//\)[^/]' \| \
  4767. X"$ac_dest" : 'X\(//\)$' \| \
  4768. X"$ac_dest" : 'X\(/\)' \| \
  4769. . : '\(.\)' 2>/dev/null ||
  4770. echo X"$ac_dest" |
  4771. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4772. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4773. /^X\(\/\/\)$/{ s//\1/; q; }
  4774. /^X\(\/\).*/{ s//\1/; q; }
  4775. s/.*/./; q'`
  4776. ac_builddir=.
  4777. if test "$ac_dir" != .; then
  4778. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4779. # A "../" for each directory in $ac_dir_suffix.
  4780. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  4781. else
  4782. ac_dir_suffix= ac_top_builddir=
  4783. fi
  4784. case $srcdir in
  4785. .) # No --srcdir option. We are building in place.
  4786. ac_srcdir=.
  4787. if test -z "$ac_top_builddir"; then
  4788. ac_top_srcdir=.
  4789. else
  4790. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  4791. fi ;;
  4792. [\\/]* | ?:[\\/]* ) # Absolute path.
  4793. ac_srcdir=$srcdir$ac_dir_suffix;
  4794. ac_top_srcdir=$srcdir ;;
  4795. *) # Relative path.
  4796. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  4797. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  4798. esac
  4799. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  4800. # absolute.
  4801. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  4802. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  4803. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  4804. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  4805. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  4806. echo "$as_me: executing $ac_dest commands" >&6;}
  4807. case $ac_dest in
  4808. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  4809. # Strip MF so we end up with the name of the file.
  4810. mf=`echo "$mf" | sed -e 's/:.*$//'`
  4811. # Check whether this is an Automake generated Makefile or not.
  4812. # We used to match only the files named `Makefile.in', but
  4813. # some people rename them; so instead we look at the file content.
  4814. # Grep'ing the first line is not enough: some people post-process
  4815. # each Makefile.in and add a new line on top of each file to say so.
  4816. # So let's grep whole file.
  4817. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  4818. dirpart=`(dirname "$mf") 2>/dev/null ||
  4819. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4820. X"$mf" : 'X\(//\)[^/]' \| \
  4821. X"$mf" : 'X\(//\)$' \| \
  4822. X"$mf" : 'X\(/\)' \| \
  4823. . : '\(.\)' 2>/dev/null ||
  4824. echo X"$mf" |
  4825. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4826. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4827. /^X\(\/\/\)$/{ s//\1/; q; }
  4828. /^X\(\/\).*/{ s//\1/; q; }
  4829. s/.*/./; q'`
  4830. else
  4831. continue
  4832. fi
  4833. grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  4834. # Extract the definition of DEP_FILES from the Makefile without
  4835. # running `make'.
  4836. DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  4837. test -z "$DEPDIR" && continue
  4838. # When using ansi2knr, U may be empty or an underscore; expand it
  4839. U=`sed -n -e '/^U = / s///p' < "$mf"`
  4840. test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  4841. # We invoke sed twice because it is the simplest approach to
  4842. # changing $(DEPDIR) to its actual value in the expansion.
  4843. for file in `sed -n -e '
  4844. /^DEP_FILES = .*\\\\$/ {
  4845. s/^DEP_FILES = //
  4846. :loop
  4847. s/\\\\$//
  4848. p
  4849. n
  4850. /\\\\$/ b loop
  4851. p
  4852. }
  4853. /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  4854. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  4855. # Make sure the directory exists.
  4856. test -f "$dirpart/$file" && continue
  4857. fdir=`(dirname "$file") 2>/dev/null ||
  4858. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4859. X"$file" : 'X\(//\)[^/]' \| \
  4860. X"$file" : 'X\(//\)$' \| \
  4861. X"$file" : 'X\(/\)' \| \
  4862. . : '\(.\)' 2>/dev/null ||
  4863. echo X"$file" |
  4864. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4865. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4866. /^X\(\/\/\)$/{ s//\1/; q; }
  4867. /^X\(\/\).*/{ s//\1/; q; }
  4868. s/.*/./; q'`
  4869. { if $as_mkdir_p; then
  4870. mkdir -p $dirpart/$fdir
  4871. else
  4872. as_dir=$dirpart/$fdir
  4873. as_dirs=
  4874. while test ! -d "$as_dir"; do
  4875. as_dirs="$as_dir $as_dirs"
  4876. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  4877. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4878. X"$as_dir" : 'X\(//\)[^/]' \| \
  4879. X"$as_dir" : 'X\(//\)$' \| \
  4880. X"$as_dir" : 'X\(/\)' \| \
  4881. . : '\(.\)' 2>/dev/null ||
  4882. echo X"$as_dir" |
  4883. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4884. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4885. /^X\(\/\/\)$/{ s//\1/; q; }
  4886. /^X\(\/\).*/{ s//\1/; q; }
  4887. s/.*/./; q'`
  4888. done
  4889. test ! -n "$as_dirs" || mkdir $as_dirs
  4890. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  4891. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  4892. { (exit 1); exit 1; }; }; }
  4893. # echo "creating $dirpart/$file"
  4894. echo '# dummy' > "$dirpart/$file"
  4895. done
  4896. done
  4897. ;;
  4898. esac
  4899. done
  4900. _ACEOF
  4901. cat >>$CONFIG_STATUS <<\_ACEOF
  4902. { (exit 0); exit 0; }
  4903. _ACEOF
  4904. chmod +x $CONFIG_STATUS
  4905. ac_clean_files=$ac_clean_files_save
  4906. # configure is writing to config.log, and then calls config.status.
  4907. # config.status does its own redirection, appending to config.log.
  4908. # Unfortunately, on DOS this fails, as config.log is still kept open
  4909. # by configure, so config.status won't be able to write to it; its
  4910. # output is simply discarded. So we exec the FD to /dev/null,
  4911. # effectively closing config.log, so it can be properly (re)opened and
  4912. # appended to by config.status. When coming back to configure, we
  4913. # need to make the FD available again.
  4914. if test "$no_create" != yes; then
  4915. ac_cs_success=:
  4916. ac_config_status_args=
  4917. test "$silent" = yes &&
  4918. ac_config_status_args="$ac_config_status_args --quiet"
  4919. exec 5>/dev/null
  4920. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4921. exec 5>>config.log
  4922. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4923. # would make configure fail if this is the last instruction.
  4924. $ac_cs_success || { (exit 1); exit 1; }
  4925. fi