configure
author Sam Lantinga <slouken@lokigames.com>
Mon, 25 Oct 1999 14:38:12 +0000
changeset 6 cb0e8db1f996
parent 1 4ef9250a6471
child 20 ef0f22476bc5
permissions -rwxr-xr-x
Various autoconf/libtool fixes
     1 #! /bin/sh
     2 
     3 # Guess values for system-dependent variables and create Makefiles.
     4 # Generated automatically using autoconf version 2.13 
     5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
     6 #
     7 # This configure script is free software; the Free Software Foundation
     8 # gives unlimited permission to copy, distribute and modify it.
     9 
    10 # Defaults:
    11 ac_help=
    12 ac_default_prefix=/usr/local
    13 # Any additions from configure.in:
    14 ac_help="$ac_help
    15   --enable-shared[=PKGS]  build shared libraries [default=yes]"
    16 ac_help="$ac_help
    17   --enable-static[=PKGS]  build static libraries [default=yes]"
    18 ac_help="$ac_help
    19   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
    20 ac_help="$ac_help
    21   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
    22 ac_help="$ac_help
    23   --disable-libtool-lock  avoid locking (might break parallel builds)"
    24 ac_help="$ac_help
    25   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
    26 ac_help="$ac_help
    27   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)"
    28 ac_help="$ac_help
    29   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
    30 ac_help="$ac_help
    31   --disable-sdltest       Do not try to compile and run a test SDL program"
    32 ac_help="$ac_help
    33   --enable-music-cmd      support an external music player [default=yes]"
    34 ac_help="$ac_help
    35   --enable-music-wave     enable streaming WAVE music [default=yes]"
    36 ac_help="$ac_help
    37   --enable-music-mod      enable MOD music via mikmod [default=yes]"
    38 ac_help="$ac_help
    39   --enable-music-midi     enable MIDI music via timidity [default=yes]"
    40 ac_help="$ac_help
    41   --enable-music-mp3      enable MP3 music via smpeg [default=yes]"
    42 
    43 # Initialize some variables set by options.
    44 # The variables have the same names as the options, with
    45 # dashes changed to underlines.
    46 build=NONE
    47 cache_file=./config.cache
    48 exec_prefix=NONE
    49 host=NONE
    50 no_create=
    51 nonopt=NONE
    52 no_recursion=
    53 prefix=NONE
    54 program_prefix=NONE
    55 program_suffix=NONE
    56 program_transform_name=s,x,x,
    57 silent=
    58 site=
    59 srcdir=
    60 target=NONE
    61 verbose=
    62 x_includes=NONE
    63 x_libraries=NONE
    64 bindir='${exec_prefix}/bin'
    65 sbindir='${exec_prefix}/sbin'
    66 libexecdir='${exec_prefix}/libexec'
    67 datadir='${prefix}/share'
    68 sysconfdir='${prefix}/etc'
    69 sharedstatedir='${prefix}/com'
    70 localstatedir='${prefix}/var'
    71 libdir='${exec_prefix}/lib'
    72 includedir='${prefix}/include'
    73 oldincludedir='/usr/include'
    74 infodir='${prefix}/info'
    75 mandir='${prefix}/man'
    76 
    77 # Initialize some other variables.
    78 subdirs=
    79 MFLAGS= MAKEFLAGS=
    80 SHELL=${CONFIG_SHELL-/bin/sh}
    81 # Maximum number of lines to put in a shell here document.
    82 ac_max_here_lines=12
    83 
    84 ac_prev=
    85 for ac_option
    86 do
    87 
    88   # If the previous option needs an argument, assign it.
    89   if test -n "$ac_prev"; then
    90     eval "$ac_prev=\$ac_option"
    91     ac_prev=
    92     continue
    93   fi
    94 
    95   case "$ac_option" in
    96   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    97   *) ac_optarg= ;;
    98   esac
    99 
   100   # Accept the important Cygnus configure options, so we can diagnose typos.
   101 
   102   case "$ac_option" in
   103 
   104   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   105     ac_prev=bindir ;;
   106   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   107     bindir="$ac_optarg" ;;
   108 
   109   -build | --build | --buil | --bui | --bu)
   110     ac_prev=build ;;
   111   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   112     build="$ac_optarg" ;;
   113 
   114   -cache-file | --cache-file | --cache-fil | --cache-fi \
   115   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   116     ac_prev=cache_file ;;
   117   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   118   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   119     cache_file="$ac_optarg" ;;
   120 
   121   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
   122     ac_prev=datadir ;;
   123   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
   124   | --da=*)
   125     datadir="$ac_optarg" ;;
   126 
   127   -disable-* | --disable-*)
   128     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
   129     # Reject names that are not valid shell variable names.
   130     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
   131       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
   132     fi
   133     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
   134     eval "enable_${ac_feature}=no" ;;
   135 
   136   -enable-* | --enable-*)
   137     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
   138     # Reject names that are not valid shell variable names.
   139     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
   140       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
   141     fi
   142     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
   143     case "$ac_option" in
   144       *=*) ;;
   145       *) ac_optarg=yes ;;
   146     esac
   147     eval "enable_${ac_feature}='$ac_optarg'" ;;
   148 
   149   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   150   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   151   | --exec | --exe | --ex)
   152     ac_prev=exec_prefix ;;
   153   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   154   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   155   | --exec=* | --exe=* | --ex=*)
   156     exec_prefix="$ac_optarg" ;;
   157 
   158   -gas | --gas | --ga | --g)
   159     # Obsolete; use --with-gas.
   160     with_gas=yes ;;
   161 
   162   -help | --help | --hel | --he)
   163     # Omit some internal or obsolete options to make the list less imposing.
   164     # This message is too long to be a string in the A/UX 3.1 sh.
   165     cat << EOF
   166 Usage: configure [options] [host]
   167 Options: [defaults in brackets after descriptions]
   168 Configuration:
   169   --cache-file=FILE       cache test results in FILE
   170   --help                  print this message
   171   --no-create             do not create output files
   172   --quiet, --silent       do not print \`checking...' messages
   173   --version               print the version of autoconf that created configure
   174 Directory and file names:
   175   --prefix=PREFIX         install architecture-independent files in PREFIX
   176                           [$ac_default_prefix]
   177   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   178                           [same as prefix]
   179   --bindir=DIR            user executables in DIR [EPREFIX/bin]
   180   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
   181   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
   182   --datadir=DIR           read-only architecture-independent data in DIR
   183                           [PREFIX/share]
   184   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
   185   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
   186                           [PREFIX/com]
   187   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
   188   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
   189   --includedir=DIR        C header files in DIR [PREFIX/include]
   190   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
   191   --infodir=DIR           info documentation in DIR [PREFIX/info]
   192   --mandir=DIR            man documentation in DIR [PREFIX/man]
   193   --srcdir=DIR            find the sources in DIR [configure dir or ..]
   194   --program-prefix=PREFIX prepend PREFIX to installed program names
   195   --program-suffix=SUFFIX append SUFFIX to installed program names
   196   --program-transform-name=PROGRAM
   197                           run sed PROGRAM on installed program names
   198 EOF
   199     cat << EOF
   200 Host type:
   201   --build=BUILD           configure for building on BUILD [BUILD=HOST]
   202   --host=HOST             configure for HOST [guessed]
   203   --target=TARGET         configure for TARGET [TARGET=HOST]
   204 Features and packages:
   205   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   206   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   207   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   208   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   209   --x-includes=DIR        X include files are in DIR
   210   --x-libraries=DIR       X library files are in DIR
   211 EOF
   212     if test -n "$ac_help"; then
   213       echo "--enable and --with options recognized:$ac_help"
   214     fi
   215     exit 0 ;;
   216 
   217   -host | --host | --hos | --ho)
   218     ac_prev=host ;;
   219   -host=* | --host=* | --hos=* | --ho=*)
   220     host="$ac_optarg" ;;
   221 
   222   -includedir | --includedir | --includedi | --included | --include \
   223   | --includ | --inclu | --incl | --inc)
   224     ac_prev=includedir ;;
   225   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   226   | --includ=* | --inclu=* | --incl=* | --inc=*)
   227     includedir="$ac_optarg" ;;
   228 
   229   -infodir | --infodir | --infodi | --infod | --info | --inf)
   230     ac_prev=infodir ;;
   231   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   232     infodir="$ac_optarg" ;;
   233 
   234   -libdir | --libdir | --libdi | --libd)
   235     ac_prev=libdir ;;
   236   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   237     libdir="$ac_optarg" ;;
   238 
   239   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   240   | --libexe | --libex | --libe)
   241     ac_prev=libexecdir ;;
   242   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   243   | --libexe=* | --libex=* | --libe=*)
   244     libexecdir="$ac_optarg" ;;
   245 
   246   -localstatedir | --localstatedir | --localstatedi | --localstated \
   247   | --localstate | --localstat | --localsta | --localst \
   248   | --locals | --local | --loca | --loc | --lo)
   249     ac_prev=localstatedir ;;
   250   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   251   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
   252   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
   253     localstatedir="$ac_optarg" ;;
   254 
   255   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   256     ac_prev=mandir ;;
   257   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   258     mandir="$ac_optarg" ;;
   259 
   260   -nfp | --nfp | --nf)
   261     # Obsolete; use --without-fp.
   262     with_fp=no ;;
   263 
   264   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   265   | --no-cr | --no-c)
   266     no_create=yes ;;
   267 
   268   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   269   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   270     no_recursion=yes ;;
   271 
   272   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   273   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   274   | --oldin | --oldi | --old | --ol | --o)
   275     ac_prev=oldincludedir ;;
   276   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   277   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   278   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   279     oldincludedir="$ac_optarg" ;;
   280 
   281   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   282     ac_prev=prefix ;;
   283   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   284     prefix="$ac_optarg" ;;
   285 
   286   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   287   | --program-pre | --program-pr | --program-p)
   288     ac_prev=program_prefix ;;
   289   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   290   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   291     program_prefix="$ac_optarg" ;;
   292 
   293   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   294   | --program-suf | --program-su | --program-s)
   295     ac_prev=program_suffix ;;
   296   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   297   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   298     program_suffix="$ac_optarg" ;;
   299 
   300   -program-transform-name | --program-transform-name \
   301   | --program-transform-nam | --program-transform-na \
   302   | --program-transform-n | --program-transform- \
   303   | --program-transform | --program-transfor \
   304   | --program-transfo | --program-transf \
   305   | --program-trans | --program-tran \
   306   | --progr-tra | --program-tr | --program-t)
   307     ac_prev=program_transform_name ;;
   308   -program-transform-name=* | --program-transform-name=* \
   309   | --program-transform-nam=* | --program-transform-na=* \
   310   | --program-transform-n=* | --program-transform-=* \
   311   | --program-transform=* | --program-transfor=* \
   312   | --program-transfo=* | --program-transf=* \
   313   | --program-trans=* | --program-tran=* \
   314   | --progr-tra=* | --program-tr=* | --program-t=*)
   315     program_transform_name="$ac_optarg" ;;
   316 
   317   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   318   | -silent | --silent | --silen | --sile | --sil)
   319     silent=yes ;;
   320 
   321   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   322     ac_prev=sbindir ;;
   323   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   324   | --sbi=* | --sb=*)
   325     sbindir="$ac_optarg" ;;
   326 
   327   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   328   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   329   | --sharedst | --shareds | --shared | --share | --shar \
   330   | --sha | --sh)
   331     ac_prev=sharedstatedir ;;
   332   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   333   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   334   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   335   | --sha=* | --sh=*)
   336     sharedstatedir="$ac_optarg" ;;
   337 
   338   -site | --site | --sit)
   339     ac_prev=site ;;
   340   -site=* | --site=* | --sit=*)
   341     site="$ac_optarg" ;;
   342 
   343   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   344     ac_prev=srcdir ;;
   345   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   346     srcdir="$ac_optarg" ;;
   347 
   348   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   349   | --syscon | --sysco | --sysc | --sys | --sy)
   350     ac_prev=sysconfdir ;;
   351   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   352   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   353     sysconfdir="$ac_optarg" ;;
   354 
   355   -target | --target | --targe | --targ | --tar | --ta | --t)
   356     ac_prev=target ;;
   357   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   358     target="$ac_optarg" ;;
   359 
   360   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   361     verbose=yes ;;
   362 
   363   -version | --version | --versio | --versi | --vers)
   364     echo "configure generated by autoconf version 2.13"
   365     exit 0 ;;
   366 
   367   -with-* | --with-*)
   368     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
   369     # Reject names that are not valid shell variable names.
   370     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
   371       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
   372     fi
   373     ac_package=`echo $ac_package| sed 's/-/_/g'`
   374     case "$ac_option" in
   375       *=*) ;;
   376       *) ac_optarg=yes ;;
   377     esac
   378     eval "with_${ac_package}='$ac_optarg'" ;;
   379 
   380   -without-* | --without-*)
   381     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
   382     # Reject names that are not valid shell variable names.
   383     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
   384       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
   385     fi
   386     ac_package=`echo $ac_package| sed 's/-/_/g'`
   387     eval "with_${ac_package}=no" ;;
   388 
   389   --x)
   390     # Obsolete; use --with-x.
   391     with_x=yes ;;
   392 
   393   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   394   | --x-incl | --x-inc | --x-in | --x-i)
   395     ac_prev=x_includes ;;
   396   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   397   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   398     x_includes="$ac_optarg" ;;
   399 
   400   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   401   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   402     ac_prev=x_libraries ;;
   403   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   404   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   405     x_libraries="$ac_optarg" ;;
   406 
   407   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
   408     ;;
   409 
   410   *)
   411     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
   412       echo "configure: warning: $ac_option: invalid host type" 1>&2
   413     fi
   414     if test "x$nonopt" != xNONE; then
   415       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
   416     fi
   417     nonopt="$ac_option"
   418     ;;
   419 
   420   esac
   421 done
   422 
   423 if test -n "$ac_prev"; then
   424   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
   425 fi
   426 
   427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
   428 
   429 # File descriptor usage:
   430 # 0 standard input
   431 # 1 file creation
   432 # 2 errors and warnings
   433 # 3 some systems may open it to /dev/tty
   434 # 4 used on the Kubota Titan
   435 # 6 checking for... messages and results
   436 # 5 compiler messages saved in config.log
   437 if test "$silent" = yes; then
   438   exec 6>/dev/null
   439 else
   440   exec 6>&1
   441 fi
   442 exec 5>./config.log
   443 
   444 echo "\
   445 This file contains any messages produced by compilers while
   446 running configure, to aid debugging if configure makes a mistake.
   447 " 1>&5
   448 
   449 # Strip out --no-create and --no-recursion so they do not pile up.
   450 # Also quote any args containing shell metacharacters.
   451 ac_configure_args=
   452 for ac_arg
   453 do
   454   case "$ac_arg" in
   455   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   456   | --no-cr | --no-c) ;;
   457   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   458   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
   459   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
   460   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   461   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
   462   esac
   463 done
   464 
   465 # NLS nuisances.
   466 # Only set these to C if already set.  These must not be set unconditionally
   467 # because not all systems understand e.g. LANG=C (notably SCO).
   468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
   469 # Non-C LC_CTYPE values break the ctype check.
   470 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
   471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
   472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
   473 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
   474 
   475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   476 rm -rf conftest* confdefs.h
   477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
   478 echo > confdefs.h
   479 
   480 # A filename unique to this package, relative to the directory that
   481 # configure is in, which we can look for to find out if srcdir is correct.
   482 ac_unique_file=README
   483 
   484 # Find the source files, if location was not specified.
   485 if test -z "$srcdir"; then
   486   ac_srcdir_defaulted=yes
   487   # Try the directory containing this script, then its parent.
   488   ac_prog=$0
   489   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
   490   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
   491   srcdir=$ac_confdir
   492   if test ! -r $srcdir/$ac_unique_file; then
   493     srcdir=..
   494   fi
   495 else
   496   ac_srcdir_defaulted=no
   497 fi
   498 if test ! -r $srcdir/$ac_unique_file; then
   499   if test "$ac_srcdir_defaulted" = yes; then
   500     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
   501   else
   502     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
   503   fi
   504 fi
   505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
   506 
   507 # Prefer explicitly selected file to automatically selected ones.
   508 if test -z "$CONFIG_SITE"; then
   509   if test "x$prefix" != xNONE; then
   510     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
   511   else
   512     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   513   fi
   514 fi
   515 for ac_site_file in $CONFIG_SITE; do
   516   if test -r "$ac_site_file"; then
   517     echo "loading site script $ac_site_file"
   518     . "$ac_site_file"
   519   fi
   520 done
   521 
   522 if test -r "$cache_file"; then
   523   echo "loading cache $cache_file"
   524   . $cache_file
   525 else
   526   echo "creating cache $cache_file"
   527   > $cache_file
   528 fi
   529 
   530 ac_ext=c
   531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   532 ac_cpp='$CPP $CPPFLAGS'
   533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   535 cross_compiling=$ac_cv_prog_cc_cross
   536 
   537 ac_exeext=
   538 ac_objext=o
   539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
   540   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
   541   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
   542     ac_n= ac_c='
   543 ' ac_t='	'
   544   else
   545     ac_n=-n ac_c= ac_t=
   546   fi
   547 else
   548   ac_n= ac_c='\c' ac_t=
   549 fi
   550 
   551 
   552 
   553 
   554 # Making releases:
   555 #   MICRO_VERSION += 1;
   556 #   INTERFACE_AGE += 1;
   557 #   BINARY_AGE += 1;
   558 # if any functions have been added, set INTERFACE_AGE to 0.
   559 # if backwards compatibility has been broken,
   560 # set BINARY_AGE and INTERFACE_AGE to 0.
   561 
   562 MAJOR_VERSION=1
   563 MINOR_VERSION=0
   564 MICRO_VERSION=0
   565 INTERFACE_AGE=0
   566 BINARY_AGE=0
   567 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
   568 
   569 
   570 
   571 
   572 
   573 
   574 
   575 
   576 # libtool versioning
   577 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
   578 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
   579 LT_REVISION=$INTERFACE_AGE
   580 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
   581 
   582 
   583 
   584 
   585 
   586 
   587 ac_aux_dir=
   588 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   589   if test -f $ac_dir/install-sh; then
   590     ac_aux_dir=$ac_dir
   591     ac_install_sh="$ac_aux_dir/install-sh -c"
   592     break
   593   elif test -f $ac_dir/install.sh; then
   594     ac_aux_dir=$ac_dir
   595     ac_install_sh="$ac_aux_dir/install.sh -c"
   596     break
   597   fi
   598 done
   599 if test -z "$ac_aux_dir"; then
   600   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
   601 fi
   602 ac_config_guess=$ac_aux_dir/config.guess
   603 ac_config_sub=$ac_aux_dir/config.sub
   604 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
   605 
   606 # Find a good install program.  We prefer a C program (faster),
   607 # so one script is as good as another.  But avoid the broken or
   608 # incompatible versions:
   609 # SysV /etc/install, /usr/sbin/install
   610 # SunOS /usr/etc/install
   611 # IRIX /sbin/install
   612 # AIX /bin/install
   613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   616 # ./install, which can be erroneously created by make from ./install.sh.
   617 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
   618 echo "configure:619: checking for a BSD compatible install" >&5
   619 if test -z "$INSTALL"; then
   620 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
   621   echo $ac_n "(cached) $ac_c" 1>&6
   622 else
   623     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
   624   for ac_dir in $PATH; do
   625     # Account for people who put trailing slashes in PATH elements.
   626     case "$ac_dir/" in
   627     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
   628     *)
   629       # OSF1 and SCO ODT 3.0 have their own names for install.
   630       # Don't use installbsd from OSF since it installs stuff as root
   631       # by default.
   632       for ac_prog in ginstall scoinst install; do
   633         if test -f $ac_dir/$ac_prog; then
   634 	  if test $ac_prog = install &&
   635             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
   636 	    # AIX install.  It has an incompatible calling convention.
   637 	    :
   638 	  else
   639 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   640 	    break 2
   641 	  fi
   642 	fi
   643       done
   644       ;;
   645     esac
   646   done
   647   IFS="$ac_save_IFS"
   648 
   649 fi
   650   if test "${ac_cv_path_install+set}" = set; then
   651     INSTALL="$ac_cv_path_install"
   652   else
   653     # As a last resort, use the slow shell script.  We don't cache a
   654     # path for INSTALL within a source directory, because that will
   655     # break other packages using the cache if that directory is
   656     # removed, or if the path is relative.
   657     INSTALL="$ac_install_sh"
   658   fi
   659 fi
   660 echo "$ac_t""$INSTALL" 1>&6
   661 
   662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   663 # It thinks the first close brace ends the variable substitution.
   664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   665 
   666 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
   667 
   668 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   669 
   670 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
   671 echo "configure:672: checking whether build environment is sane" >&5
   672 # Just in case
   673 sleep 1
   674 echo timestamp > conftestfile
   675 # Do `set' in a subshell so we don't clobber the current shell's
   676 # arguments.  Must try -L first in case configure is actually a
   677 # symlink; some systems play weird games with the mod time of symlinks
   678 # (eg FreeBSD returns the mod time of the symlink's containing
   679 # directory).
   680 if (
   681    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
   682    if test "$*" = "X"; then
   683       # -L didn't work.
   684       set X `ls -t $srcdir/configure conftestfile`
   685    fi
   686    if test "$*" != "X $srcdir/configure conftestfile" \
   687       && test "$*" != "X conftestfile $srcdir/configure"; then
   688 
   689       # If neither matched, then we have a broken ls.  This can happen
   690       # if, for instance, CONFIG_SHELL is bash and it inherits a
   691       # broken ls alias from the environment.  This has actually
   692       # happened.  Such a system could not be considered "sane".
   693       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
   694 alias in your environment" 1>&2; exit 1; }
   695    fi
   696 
   697    test "$2" = conftestfile
   698    )
   699 then
   700    # Ok.
   701    :
   702 else
   703    { echo "configure: error: newly created file is older than distributed files!
   704 Check your system clock" 1>&2; exit 1; }
   705 fi
   706 rm -f conftest*
   707 echo "$ac_t""yes" 1>&6
   708 if test "$program_transform_name" = s,x,x,; then
   709   program_transform_name=
   710 else
   711   # Double any \ or $.  echo might interpret backslashes.
   712   cat <<\EOF_SED > conftestsed
   713 s,\\,\\\\,g; s,\$,$$,g
   714 EOF_SED
   715   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
   716   rm -f conftestsed
   717 fi
   718 test "$program_prefix" != NONE &&
   719   program_transform_name="s,^,${program_prefix},; $program_transform_name"
   720 # Use a double $ so make ignores it.
   721 test "$program_suffix" != NONE &&
   722   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
   723 
   724 # sed with no file args requires a program.
   725 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
   726 
   727 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
   728 echo "configure:729: checking whether ${MAKE-make} sets \${MAKE}" >&5
   729 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
   730 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
   731   echo $ac_n "(cached) $ac_c" 1>&6
   732 else
   733   cat > conftestmake <<\EOF
   734 all:
   735 	@echo 'ac_maketemp="${MAKE}"'
   736 EOF
   737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   738 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
   739 if test -n "$ac_maketemp"; then
   740   eval ac_cv_prog_make_${ac_make}_set=yes
   741 else
   742   eval ac_cv_prog_make_${ac_make}_set=no
   743 fi
   744 rm -f conftestmake
   745 fi
   746 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
   747   echo "$ac_t""yes" 1>&6
   748   SET_MAKE=
   749 else
   750   echo "$ac_t""no" 1>&6
   751   SET_MAKE="MAKE=${MAKE-make}"
   752 fi
   753 
   754 
   755 
   756 PACKAGE=mixer
   757 
   758 VERSION=$VERSION
   759 
   760 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
   761   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
   762 fi
   763 cat >> confdefs.h <<EOF
   764 #define PACKAGE "$PACKAGE"
   765 EOF
   766 
   767 cat >> confdefs.h <<EOF
   768 #define VERSION "$VERSION"
   769 EOF
   770 
   771 
   772 
   773 missing_dir=`cd $ac_aux_dir && pwd`
   774 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
   775 echo "configure:776: checking for working aclocal" >&5
   776 # Run test in a subshell; some versions of sh will print an error if
   777 # an executable is not found, even if stderr is redirected.
   778 # Redirect stdin to placate older versions of autoconf.  Sigh.
   779 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
   780    ACLOCAL=aclocal
   781    echo "$ac_t""found" 1>&6
   782 else
   783    ACLOCAL="$missing_dir/missing aclocal"
   784    echo "$ac_t""missing" 1>&6
   785 fi
   786 
   787 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
   788 echo "configure:789: checking for working autoconf" >&5
   789 # Run test in a subshell; some versions of sh will print an error if
   790 # an executable is not found, even if stderr is redirected.
   791 # Redirect stdin to placate older versions of autoconf.  Sigh.
   792 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
   793    AUTOCONF=autoconf
   794    echo "$ac_t""found" 1>&6
   795 else
   796    AUTOCONF="$missing_dir/missing autoconf"
   797    echo "$ac_t""missing" 1>&6
   798 fi
   799 
   800 echo $ac_n "checking for working automake""... $ac_c" 1>&6
   801 echo "configure:802: checking for working automake" >&5
   802 # Run test in a subshell; some versions of sh will print an error if
   803 # an executable is not found, even if stderr is redirected.
   804 # Redirect stdin to placate older versions of autoconf.  Sigh.
   805 if (automake --version) < /dev/null > /dev/null 2>&1; then
   806    AUTOMAKE=automake
   807    echo "$ac_t""found" 1>&6
   808 else
   809    AUTOMAKE="$missing_dir/missing automake"
   810    echo "$ac_t""missing" 1>&6
   811 fi
   812 
   813 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
   814 echo "configure:815: checking for working autoheader" >&5
   815 # Run test in a subshell; some versions of sh will print an error if
   816 # an executable is not found, even if stderr is redirected.
   817 # Redirect stdin to placate older versions of autoconf.  Sigh.
   818 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
   819    AUTOHEADER=autoheader
   820    echo "$ac_t""found" 1>&6
   821 else
   822    AUTOHEADER="$missing_dir/missing autoheader"
   823    echo "$ac_t""missing" 1>&6
   824 fi
   825 
   826 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
   827 echo "configure:828: checking for working makeinfo" >&5
   828 # Run test in a subshell; some versions of sh will print an error if
   829 # an executable is not found, even if stderr is redirected.
   830 # Redirect stdin to placate older versions of autoconf.  Sigh.
   831 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
   832    MAKEINFO=makeinfo
   833    echo "$ac_t""found" 1>&6
   834 else
   835    MAKEINFO="$missing_dir/missing makeinfo"
   836    echo "$ac_t""missing" 1>&6
   837 fi
   838 
   839 
   840 
   841 
   842 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
   843 echo "configure:844: checking whether ${MAKE-make} sets \${MAKE}" >&5
   844 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
   845 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
   846   echo $ac_n "(cached) $ac_c" 1>&6
   847 else
   848   cat > conftestmake <<\EOF
   849 all:
   850 	@echo 'ac_maketemp="${MAKE}"'
   851 EOF
   852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   853 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
   854 if test -n "$ac_maketemp"; then
   855   eval ac_cv_prog_make_${ac_make}_set=yes
   856 else
   857   eval ac_cv_prog_make_${ac_make}_set=no
   858 fi
   859 rm -f conftestmake
   860 fi
   861 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
   862   echo "$ac_t""yes" 1>&6
   863   SET_MAKE=
   864 else
   865   echo "$ac_t""no" 1>&6
   866   SET_MAKE="MAKE=${MAKE-make}"
   867 fi
   868 
   869 # Extract the first word of "gcc", so it can be a program name with args.
   870 set dummy gcc; ac_word=$2
   871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   872 echo "configure:873: checking for $ac_word" >&5
   873 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   874   echo $ac_n "(cached) $ac_c" 1>&6
   875 else
   876   if test -n "$CC"; then
   877   ac_cv_prog_CC="$CC" # Let the user override the test.
   878 else
   879   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   880   ac_dummy="$PATH"
   881   for ac_dir in $ac_dummy; do
   882     test -z "$ac_dir" && ac_dir=.
   883     if test -f $ac_dir/$ac_word; then
   884       ac_cv_prog_CC="gcc"
   885       break
   886     fi
   887   done
   888   IFS="$ac_save_ifs"
   889 fi
   890 fi
   891 CC="$ac_cv_prog_CC"
   892 if test -n "$CC"; then
   893   echo "$ac_t""$CC" 1>&6
   894 else
   895   echo "$ac_t""no" 1>&6
   896 fi
   897 
   898 if test -z "$CC"; then
   899   # Extract the first word of "cc", so it can be a program name with args.
   900 set dummy cc; ac_word=$2
   901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   902 echo "configure:903: checking for $ac_word" >&5
   903 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   904   echo $ac_n "(cached) $ac_c" 1>&6
   905 else
   906   if test -n "$CC"; then
   907   ac_cv_prog_CC="$CC" # Let the user override the test.
   908 else
   909   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   910   ac_prog_rejected=no
   911   ac_dummy="$PATH"
   912   for ac_dir in $ac_dummy; do
   913     test -z "$ac_dir" && ac_dir=.
   914     if test -f $ac_dir/$ac_word; then
   915       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
   916         ac_prog_rejected=yes
   917 	continue
   918       fi
   919       ac_cv_prog_CC="cc"
   920       break
   921     fi
   922   done
   923   IFS="$ac_save_ifs"
   924 if test $ac_prog_rejected = yes; then
   925   # We found a bogon in the path, so make sure we never use it.
   926   set dummy $ac_cv_prog_CC
   927   shift
   928   if test $# -gt 0; then
   929     # We chose a different compiler from the bogus one.
   930     # However, it has the same basename, so the bogon will be chosen
   931     # first if we set CC to just the basename; use the full file name.
   932     shift
   933     set dummy "$ac_dir/$ac_word" "$@"
   934     shift
   935     ac_cv_prog_CC="$@"
   936   fi
   937 fi
   938 fi
   939 fi
   940 CC="$ac_cv_prog_CC"
   941 if test -n "$CC"; then
   942   echo "$ac_t""$CC" 1>&6
   943 else
   944   echo "$ac_t""no" 1>&6
   945 fi
   946 
   947   if test -z "$CC"; then
   948     case "`uname -s`" in
   949     *win32* | *WIN32*)
   950       # Extract the first word of "cl", so it can be a program name with args.
   951 set dummy cl; ac_word=$2
   952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   953 echo "configure:954: checking for $ac_word" >&5
   954 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   955   echo $ac_n "(cached) $ac_c" 1>&6
   956 else
   957   if test -n "$CC"; then
   958   ac_cv_prog_CC="$CC" # Let the user override the test.
   959 else
   960   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   961   ac_dummy="$PATH"
   962   for ac_dir in $ac_dummy; do
   963     test -z "$ac_dir" && ac_dir=.
   964     if test -f $ac_dir/$ac_word; then
   965       ac_cv_prog_CC="cl"
   966       break
   967     fi
   968   done
   969   IFS="$ac_save_ifs"
   970 fi
   971 fi
   972 CC="$ac_cv_prog_CC"
   973 if test -n "$CC"; then
   974   echo "$ac_t""$CC" 1>&6
   975 else
   976   echo "$ac_t""no" 1>&6
   977 fi
   978  ;;
   979     esac
   980   fi
   981   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
   982 fi
   983 
   984 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
   985 echo "configure:986: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
   986 
   987 ac_ext=c
   988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   989 ac_cpp='$CPP $CPPFLAGS'
   990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   992 cross_compiling=$ac_cv_prog_cc_cross
   993 
   994 cat > conftest.$ac_ext << EOF
   995 
   996 #line 997 "configure"
   997 #include "confdefs.h"
   998 
   999 main(){return(0);}
  1000 EOF
  1001 if { (eval echo configure:1002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1002   ac_cv_prog_cc_works=yes
  1003   # If we can't run a trivial program, we are probably using a cross compiler.
  1004   if (./conftest; exit) 2>/dev/null; then
  1005     ac_cv_prog_cc_cross=no
  1006   else
  1007     ac_cv_prog_cc_cross=yes
  1008   fi
  1009 else
  1010   echo "configure: failed program was:" >&5
  1011   cat conftest.$ac_ext >&5
  1012   ac_cv_prog_cc_works=no
  1013 fi
  1014 rm -fr conftest*
  1015 ac_ext=c
  1016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1017 ac_cpp='$CPP $CPPFLAGS'
  1018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1020 cross_compiling=$ac_cv_prog_cc_cross
  1021 
  1022 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1023 if test $ac_cv_prog_cc_works = no; then
  1024   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1025 fi
  1026 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1027 echo "configure:1028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1028 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1029 cross_compiling=$ac_cv_prog_cc_cross
  1030 
  1031 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1032 echo "configure:1033: checking whether we are using GNU C" >&5
  1033 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1034   echo $ac_n "(cached) $ac_c" 1>&6
  1035 else
  1036   cat > conftest.c <<EOF
  1037 #ifdef __GNUC__
  1038   yes;
  1039 #endif
  1040 EOF
  1041 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1042   ac_cv_prog_gcc=yes
  1043 else
  1044   ac_cv_prog_gcc=no
  1045 fi
  1046 fi
  1047 
  1048 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1049 
  1050 if test $ac_cv_prog_gcc = yes; then
  1051   GCC=yes
  1052 else
  1053   GCC=
  1054 fi
  1055 
  1056 ac_test_CFLAGS="${CFLAGS+set}"
  1057 ac_save_CFLAGS="$CFLAGS"
  1058 CFLAGS=
  1059 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1060 echo "configure:1061: checking whether ${CC-cc} accepts -g" >&5
  1061 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1062   echo $ac_n "(cached) $ac_c" 1>&6
  1063 else
  1064   echo 'void f(){}' > conftest.c
  1065 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1066   ac_cv_prog_cc_g=yes
  1067 else
  1068   ac_cv_prog_cc_g=no
  1069 fi
  1070 rm -f conftest*
  1071 
  1072 fi
  1073 
  1074 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1075 if test "$ac_test_CFLAGS" = set; then
  1076   CFLAGS="$ac_save_CFLAGS"
  1077 elif test $ac_cv_prog_cc_g = yes; then
  1078   if test "$GCC" = yes; then
  1079     CFLAGS="-g -O2"
  1080   else
  1081     CFLAGS="-g"
  1082   fi
  1083 else
  1084   if test "$GCC" = yes; then
  1085     CFLAGS="-O2"
  1086   else
  1087     CFLAGS=
  1088   fi
  1089 fi
  1090 
  1091 # Check whether --enable-shared or --disable-shared was given.
  1092 if test "${enable_shared+set}" = set; then
  1093   enableval="$enable_shared"
  1094   p=${PACKAGE-default}
  1095 case "$enableval" in
  1096 yes) enable_shared=yes ;;
  1097 no) enable_shared=no ;;
  1098 *)
  1099   enable_shared=no
  1100   # Look at the argument we got.  We use all the common list separators.
  1101   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1102   for pkg in $enableval; do
  1103     if test "X$pkg" = "X$p"; then
  1104       enable_shared=yes
  1105     fi
  1106   done
  1107   IFS="$ac_save_ifs"
  1108   ;;
  1109 esac
  1110 else
  1111   enable_shared=yes
  1112 fi
  1113 
  1114 # Check whether --enable-static or --disable-static was given.
  1115 if test "${enable_static+set}" = set; then
  1116   enableval="$enable_static"
  1117   p=${PACKAGE-default}
  1118 case "$enableval" in
  1119 yes) enable_static=yes ;;
  1120 no) enable_static=no ;;
  1121 *)
  1122   enable_static=no
  1123   # Look at the argument we got.  We use all the common list separators.
  1124   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1125   for pkg in $enableval; do
  1126     if test "X$pkg" = "X$p"; then
  1127       enable_static=yes
  1128     fi
  1129   done
  1130   IFS="$ac_save_ifs"
  1131   ;;
  1132 esac
  1133 else
  1134   enable_static=yes
  1135 fi
  1136 
  1137 # Check whether --enable-fast-install or --disable-fast-install was given.
  1138 if test "${enable_fast_install+set}" = set; then
  1139   enableval="$enable_fast_install"
  1140   p=${PACKAGE-default}
  1141 case "$enableval" in
  1142 yes) enable_fast_install=yes ;;
  1143 no) enable_fast_install=no ;;
  1144 *)
  1145   enable_fast_install=no
  1146   # Look at the argument we got.  We use all the common list separators.
  1147   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1148   for pkg in $enableval; do
  1149     if test "X$pkg" = "X$p"; then
  1150       enable_fast_install=yes
  1151     fi
  1152   done
  1153   IFS="$ac_save_ifs"
  1154   ;;
  1155 esac
  1156 else
  1157   enable_fast_install=yes
  1158 fi
  1159 
  1160 
  1161 # Make sure we can run config.sub.
  1162 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1163 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1164 fi
  1165 
  1166 echo $ac_n "checking host system type""... $ac_c" 1>&6
  1167 echo "configure:1168: checking host system type" >&5
  1168 
  1169 host_alias=$host
  1170 case "$host_alias" in
  1171 NONE)
  1172   case $nonopt in
  1173   NONE)
  1174     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1175     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1176     fi ;;
  1177   *) host_alias=$nonopt ;;
  1178   esac ;;
  1179 esac
  1180 
  1181 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1182 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1183 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1184 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1185 echo "$ac_t""$host" 1>&6
  1186 
  1187 echo $ac_n "checking build system type""... $ac_c" 1>&6
  1188 echo "configure:1189: checking build system type" >&5
  1189 
  1190 build_alias=$build
  1191 case "$build_alias" in
  1192 NONE)
  1193   case $nonopt in
  1194   NONE) build_alias=$host_alias ;;
  1195   *) build_alias=$nonopt ;;
  1196   esac ;;
  1197 esac
  1198 
  1199 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  1200 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1201 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1202 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1203 echo "$ac_t""$build" 1>&6
  1204 
  1205 # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1206 if test "${with_gnu_ld+set}" = set; then
  1207   withval="$with_gnu_ld"
  1208   test "$withval" = no || with_gnu_ld=yes
  1209 else
  1210   with_gnu_ld=no
  1211 fi
  1212 
  1213 ac_prog=ld
  1214 if test "$ac_cv_prog_gcc" = yes; then
  1215   # Check if gcc -print-prog-name=ld gives a path.
  1216   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1217 echo "configure:1218: checking for ld used by GCC" >&5
  1218   case $host in
  1219   *-*-mingw*)
  1220     # gcc leaves a trailing carriage return which upsets mingw
  1221     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1222   *)
  1223     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1224   esac
  1225   case "$ac_prog" in
  1226     # Accept absolute paths.
  1227     [\\/]* | [A-Za-z]:[\\/]*)
  1228       re_direlt='/[^/][^/]*/\.\./'
  1229       # Canonicalize the path of ld
  1230       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1231       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1232 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1233       done
  1234       test -z "$LD" && LD="$ac_prog"
  1235       ;;
  1236   "")
  1237     # If it fails, then pretend we aren't using GCC.
  1238     ac_prog=ld
  1239     ;;
  1240   *)
  1241     # If it is relative, then search for the first ld in PATH.
  1242     with_gnu_ld=unknown
  1243     ;;
  1244   esac
  1245 elif test "$with_gnu_ld" = yes; then
  1246   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1247 echo "configure:1248: checking for GNU ld" >&5
  1248 else
  1249   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1250 echo "configure:1251: checking for non-GNU ld" >&5
  1251 fi
  1252 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1253   echo $ac_n "(cached) $ac_c" 1>&6
  1254 else
  1255   if test -z "$LD"; then
  1256   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1257   for ac_dir in $PATH; do
  1258     test -z "$ac_dir" && ac_dir=.
  1259     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1260       ac_cv_path_LD="$ac_dir/$ac_prog"
  1261       # Check to see if the program is GNU ld.  I'd rather use --version,
  1262       # but apparently some GNU ld's only accept -v.
  1263       # Break only if it was the GNU/non-GNU ld that we prefer.
  1264       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1265 	test "$with_gnu_ld" != no && break
  1266       else
  1267 	test "$with_gnu_ld" != yes && break
  1268       fi
  1269     fi
  1270   done
  1271   IFS="$ac_save_ifs"
  1272 else
  1273   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1274 fi
  1275 fi
  1276 
  1277 LD="$ac_cv_path_LD"
  1278 if test -n "$LD"; then
  1279   echo "$ac_t""$LD" 1>&6
  1280 else
  1281   echo "$ac_t""no" 1>&6
  1282 fi
  1283 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1284 
  1285 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1286 echo "configure:1287: checking if the linker ($LD) is GNU ld" >&5
  1287 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1288   echo $ac_n "(cached) $ac_c" 1>&6
  1289 else
  1290   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1291 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1292   ac_cv_prog_gnu_ld=yes
  1293 else
  1294   ac_cv_prog_gnu_ld=no
  1295 fi
  1296 fi
  1297 
  1298 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1299 
  1300 
  1301 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1302 echo "configure:1303: checking for BSD-compatible nm" >&5
  1303 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1304   echo $ac_n "(cached) $ac_c" 1>&6
  1305 else
  1306   if test -n "$NM"; then
  1307   # Let the user override the test.
  1308   ac_cv_path_NM="$NM"
  1309 else
  1310   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1311   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1312     test -z "$ac_dir" && ac_dir=.
  1313     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  1314       # Check to see if the nm accepts a BSD-compat flag.
  1315       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1316       #   nm: unknown option "B" ignored
  1317       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1318 	ac_cv_path_NM="$ac_dir/nm -B"
  1319 	break
  1320       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1321 	ac_cv_path_NM="$ac_dir/nm -p"
  1322 	break
  1323       else
  1324 	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  1325 	continue # so that we can try to find one that supports BSD flags
  1326       fi
  1327     fi
  1328   done
  1329   IFS="$ac_save_ifs"
  1330   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1331 fi
  1332 fi
  1333 
  1334 NM="$ac_cv_path_NM"
  1335 echo "$ac_t""$NM" 1>&6
  1336 
  1337 
  1338 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1339 echo "configure:1340: checking whether ln -s works" >&5
  1340 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1341   echo $ac_n "(cached) $ac_c" 1>&6
  1342 else
  1343   rm -f conftestdata
  1344 if ln -s X conftestdata 2>/dev/null
  1345 then
  1346   rm -f conftestdata
  1347   ac_cv_prog_LN_S="ln -s"
  1348 else
  1349   ac_cv_prog_LN_S=ln
  1350 fi
  1351 fi
  1352 LN_S="$ac_cv_prog_LN_S"
  1353 if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1354   echo "$ac_t""yes" 1>&6
  1355 else
  1356   echo "$ac_t""no" 1>&6
  1357 fi
  1358 
  1359 if test $host != $build; then
  1360   ac_tool_prefix=${host_alias}-
  1361 else
  1362   ac_tool_prefix=
  1363 fi
  1364 
  1365 
  1366 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1367 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1369 echo "configure:1370: checking for $ac_word" >&5
  1370 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1371   echo $ac_n "(cached) $ac_c" 1>&6
  1372 else
  1373   if test -n "$RANLIB"; then
  1374   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1375 else
  1376   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1377   ac_dummy="$PATH"
  1378   for ac_dir in $ac_dummy; do
  1379     test -z "$ac_dir" && ac_dir=.
  1380     if test -f $ac_dir/$ac_word; then
  1381       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1382       break
  1383     fi
  1384   done
  1385   IFS="$ac_save_ifs"
  1386 fi
  1387 fi
  1388 RANLIB="$ac_cv_prog_RANLIB"
  1389 if test -n "$RANLIB"; then
  1390   echo "$ac_t""$RANLIB" 1>&6
  1391 else
  1392   echo "$ac_t""no" 1>&6
  1393 fi
  1394 
  1395 
  1396 if test -z "$ac_cv_prog_RANLIB"; then
  1397 if test -n "$ac_tool_prefix"; then
  1398   # Extract the first word of "ranlib", so it can be a program name with args.
  1399 set dummy ranlib; ac_word=$2
  1400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1401 echo "configure:1402: checking for $ac_word" >&5
  1402 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1403   echo $ac_n "(cached) $ac_c" 1>&6
  1404 else
  1405   if test -n "$RANLIB"; then
  1406   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1407 else
  1408   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1409   ac_dummy="$PATH"
  1410   for ac_dir in $ac_dummy; do
  1411     test -z "$ac_dir" && ac_dir=.
  1412     if test -f $ac_dir/$ac_word; then
  1413       ac_cv_prog_RANLIB="ranlib"
  1414       break
  1415     fi
  1416   done
  1417   IFS="$ac_save_ifs"
  1418   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1419 fi
  1420 fi
  1421 RANLIB="$ac_cv_prog_RANLIB"
  1422 if test -n "$RANLIB"; then
  1423   echo "$ac_t""$RANLIB" 1>&6
  1424 else
  1425   echo "$ac_t""no" 1>&6
  1426 fi
  1427 
  1428 else
  1429   RANLIB=":"
  1430 fi
  1431 fi
  1432 
  1433 
  1434 # Check for any special flags to pass to ltconfig.
  1435 libtool_flags="--cache-file=$cache_file"
  1436 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1437 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1438 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  1439 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1440 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1441 
  1442 
  1443 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  1444 if test "${enable_libtool_lock+set}" = set; then
  1445   enableval="$enable_libtool_lock"
  1446   :
  1447 fi
  1448 
  1449 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  1450 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  1451 
  1452 # Check whether --with-pic or --without-pic was given.
  1453 if test "${with_pic+set}" = set; then
  1454   withval="$with_pic"
  1455   pic_mode="$withval"
  1456 else
  1457   pic_mode=default
  1458 fi
  1459 
  1460 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
  1461 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
  1462 
  1463 # Some flags need to be propagated to the compiler or linker for good
  1464 # libtool support.
  1465 case "$host" in
  1466 *-*-irix6*)
  1467   # Find out which ABI we are using.
  1468   echo '#line 1469 "configure"' > conftest.$ac_ext
  1469   if { (eval echo configure:1470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1470     case "`/usr/bin/file conftest.o`" in
  1471     *32-bit*)
  1472       LD="${LD-ld} -32"
  1473       ;;
  1474     *N32*)
  1475       LD="${LD-ld} -n32"
  1476       ;;
  1477     *64-bit*)
  1478       LD="${LD-ld} -64"
  1479       ;;
  1480     esac
  1481   fi
  1482   rm -rf conftest*
  1483   ;;
  1484 
  1485 *-*-sco3.2v5*)
  1486   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1487   SAVE_CFLAGS="$CFLAGS"
  1488   CFLAGS="$CFLAGS -belf"
  1489   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  1490 echo "configure:1491: checking whether the C compiler needs -belf" >&5
  1491 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  1492   echo $ac_n "(cached) $ac_c" 1>&6
  1493 else
  1494   cat > conftest.$ac_ext <<EOF
  1495 #line 1496 "configure"
  1496 #include "confdefs.h"
  1497 
  1498 int main() {
  1499 
  1500 ; return 0; }
  1501 EOF
  1502 if { (eval echo configure:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1503   rm -rf conftest*
  1504   lt_cv_cc_needs_belf=yes
  1505 else
  1506   echo "configure: failed program was:" >&5
  1507   cat conftest.$ac_ext >&5
  1508   rm -rf conftest*
  1509   lt_cv_cc_needs_belf=no
  1510 fi
  1511 rm -f conftest*
  1512 fi
  1513 
  1514 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  1515   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1516     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1517     CFLAGS="$SAVE_CFLAGS"
  1518   fi
  1519   ;;
  1520 
  1521 
  1522 esac
  1523 
  1524 
  1525 # Save cache, so that ltconfig can load it
  1526 cat > confcache <<\EOF
  1527 # This file is a shell script that caches the results of configure
  1528 # tests run on this system so they can be shared between configure
  1529 # scripts and configure runs.  It is not useful on other systems.
  1530 # If it contains results you don't want to keep, you may remove or edit it.
  1531 #
  1532 # By default, configure uses ./config.cache as the cache file,
  1533 # creating it if it does not exist already.  You can give configure
  1534 # the --cache-file=FILE option to use a different cache file; that is
  1535 # what configure does when it calls configure scripts in
  1536 # subdirectories, so they share the cache.
  1537 # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1538 # config.status only pays attention to the cache file if you give it the
  1539 # --recheck option to rerun configure.
  1540 #
  1541 EOF
  1542 # The following way of writing the cache mishandles newlines in values,
  1543 # but we know of no workaround that is simple, portable, and efficient.
  1544 # So, don't put newlines in cache variables' values.
  1545 # Ultrix sh set writes to stderr and can't be redirected directly,
  1546 # and sets the high bit in the cache file unless we assign to the vars.
  1547 (set) 2>&1 |
  1548   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1549   *ac_space=\ *)
  1550     # `set' does not quote correctly, so add quotes (double-quote substitution
  1551     # turns \\\\ into \\, and sed turns \\ into \).
  1552     sed -n \
  1553       -e "s/'/'\\\\''/g" \
  1554       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1555     ;;
  1556   *)
  1557     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1558     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1559     ;;
  1560   esac >> confcache
  1561 if cmp -s $cache_file confcache; then
  1562   :
  1563 else
  1564   if test -w $cache_file; then
  1565     echo "updating cache $cache_file"
  1566     cat confcache > $cache_file
  1567   else
  1568     echo "not updating unwritable cache $cache_file"
  1569   fi
  1570 fi
  1571 rm -f confcache
  1572 
  1573 
  1574 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  1575 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1576 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  1577 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  1578 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  1579 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  1580 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
  1581 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1582 
  1583 # Reload cache, that may have been modified by ltconfig
  1584 if test -r "$cache_file"; then
  1585   echo "loading cache $cache_file"
  1586   . $cache_file
  1587 else
  1588   echo "creating cache $cache_file"
  1589   > $cache_file
  1590 fi
  1591 
  1592 
  1593 # This can be used to rebuild libtool when needed
  1594 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  1595 
  1596 # Always use our own libtool.
  1597 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1598 
  1599 # Redirect the config.log output again, so that the ltconfig log is not
  1600 # clobbered by the next message.
  1601 exec 5>>./config.log
  1602 
  1603 # Find a good install program.  We prefer a C program (faster),
  1604 # so one script is as good as another.  But avoid the broken or
  1605 # incompatible versions:
  1606 # SysV /etc/install, /usr/sbin/install
  1607 # SunOS /usr/etc/install
  1608 # IRIX /sbin/install
  1609 # AIX /bin/install
  1610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1613 # ./install, which can be erroneously created by make from ./install.sh.
  1614 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1615 echo "configure:1616: checking for a BSD compatible install" >&5
  1616 if test -z "$INSTALL"; then
  1617 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1618   echo $ac_n "(cached) $ac_c" 1>&6
  1619 else
  1620     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  1621   for ac_dir in $PATH; do
  1622     # Account for people who put trailing slashes in PATH elements.
  1623     case "$ac_dir/" in
  1624     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1625     *)
  1626       # OSF1 and SCO ODT 3.0 have their own names for install.
  1627       # Don't use installbsd from OSF since it installs stuff as root
  1628       # by default.
  1629       for ac_prog in ginstall scoinst install; do
  1630         if test -f $ac_dir/$ac_prog; then
  1631 	  if test $ac_prog = install &&
  1632             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1633 	    # AIX install.  It has an incompatible calling convention.
  1634 	    :
  1635 	  else
  1636 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
  1637 	    break 2
  1638 	  fi
  1639 	fi
  1640       done
  1641       ;;
  1642     esac
  1643   done
  1644   IFS="$ac_save_IFS"
  1645 
  1646 fi
  1647   if test "${ac_cv_path_install+set}" = set; then
  1648     INSTALL="$ac_cv_path_install"
  1649   else
  1650     # As a last resort, use the slow shell script.  We don't cache a
  1651     # path for INSTALL within a source directory, because that will
  1652     # break other packages using the cache if that directory is
  1653     # removed, or if the path is relative.
  1654     INSTALL="$ac_install_sh"
  1655   fi
  1656 fi
  1657 echo "$ac_t""$INSTALL" 1>&6
  1658 
  1659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1660 # It thinks the first close brace ends the variable substitution.
  1661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1662 
  1663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1664 
  1665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1666 
  1667 
  1668 echo $ac_n "checking target system type""... $ac_c" 1>&6
  1669 echo "configure:1670: checking target system type" >&5
  1670 
  1671 target_alias=$target
  1672 case "$target_alias" in
  1673 NONE)
  1674   case $nonopt in
  1675   NONE) target_alias=$host_alias ;;
  1676   *) target_alias=$nonopt ;;
  1677   esac ;;
  1678 esac
  1679 
  1680 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  1681 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1682 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1683 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1684 echo "$ac_t""$target" 1>&6
  1685 
  1686 case "$target" in
  1687     alpha*-*-linux*)
  1688         CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
  1689         ;;
  1690 esac
  1691 
  1692 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
  1693 if test "${with_sdl_prefix+set}" = set; then
  1694   withval="$with_sdl_prefix"
  1695   sdl_prefix="$withval"
  1696 else
  1697   sdl_prefix=""
  1698 fi
  1699 
  1700 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
  1701 if test "${with_sdl_exec_prefix+set}" = set; then
  1702   withval="$with_sdl_exec_prefix"
  1703   sdl_exec_prefix="$withval"
  1704 else
  1705   sdl_exec_prefix=""
  1706 fi
  1707 
  1708 # Check whether --enable-sdltest or --disable-sdltest was given.
  1709 if test "${enable_sdltest+set}" = set; then
  1710   enableval="$enable_sdltest"
  1711   :
  1712 else
  1713   enable_sdltest=yes
  1714 fi
  1715 
  1716 
  1717   if test x$sdl_exec_prefix != x ; then
  1718      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
  1719      if test x${SDL_CONFIG+set} != xset ; then
  1720         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
  1721      fi
  1722   fi
  1723   if test x$sdl_prefix != x ; then
  1724      sdl_args="$sdl_args --prefix=$sdl_prefix"
  1725      if test x${SDL_CONFIG+set} != xset ; then
  1726         SDL_CONFIG=$sdl_prefix/bin/sdl-config
  1727      fi
  1728   fi
  1729 
  1730   # Extract the first word of "sdl-config", so it can be a program name with args.
  1731 set dummy sdl-config; ac_word=$2
  1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1733 echo "configure:1734: checking for $ac_word" >&5
  1734 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
  1735   echo $ac_n "(cached) $ac_c" 1>&6
  1736 else
  1737   case "$SDL_CONFIG" in
  1738   /*)
  1739   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  1740   ;;
  1741   ?:/*)			 
  1742   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
  1743   ;;
  1744   *)
  1745   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1746   ac_dummy="$PATH"
  1747   for ac_dir in $ac_dummy; do 
  1748     test -z "$ac_dir" && ac_dir=.
  1749     if test -f $ac_dir/$ac_word; then
  1750       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
  1751       break
  1752     fi
  1753   done
  1754   IFS="$ac_save_ifs"
  1755   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  1756   ;;
  1757 esac
  1758 fi
  1759 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
  1760 if test -n "$SDL_CONFIG"; then
  1761   echo "$ac_t""$SDL_CONFIG" 1>&6
  1762 else
  1763   echo "$ac_t""no" 1>&6
  1764 fi
  1765 
  1766   min_sdl_version=0.11.2
  1767   echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
  1768 echo "configure:1769: checking for SDL - version >= $min_sdl_version" >&5
  1769   no_sdl=""
  1770   if test "$SDL_CONFIG" = "no" ; then
  1771     no_sdl=yes
  1772   else
  1773     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
  1774     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
  1775 
  1776     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
  1777            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1778     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
  1779            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1780     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  1781            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1782     if test "x$enable_sdltest" = "xyes" ; then
  1783       ac_save_CFLAGS="$CFLAGS"
  1784       ac_save_LIBS="$LIBS"
  1785       CFLAGS="$CFLAGS $SDL_CFLAGS"
  1786       LIBS="$LIBS $SDL_LIBS"
  1787       rm -f conf.sdltest
  1788       if test "$cross_compiling" = yes; then
  1789   echo $ac_n "cross compiling; assumed OK... $ac_c"
  1790 else
  1791   cat > conftest.$ac_ext <<EOF
  1792 #line 1793 "configure"
  1793 #include "confdefs.h"
  1794 
  1795 #include <stdio.h>
  1796 #include <stdlib.h>
  1797 #include <string.h>
  1798 #include <SDL/SDL.h>
  1799 
  1800 char*
  1801 my_strdup (char *str)
  1802 {
  1803   char *new_str;
  1804   
  1805   if (str)
  1806     {
  1807       new_str = malloc ((strlen (str) + 1) * sizeof(char));
  1808       strcpy (new_str, str);
  1809     }
  1810   else
  1811     new_str = NULL;
  1812   
  1813   return new_str;
  1814 }
  1815 
  1816 int main ()
  1817 {
  1818   int major, minor, micro;
  1819   char *tmp_version;
  1820 
  1821   system ("touch conf.sdltest");
  1822 
  1823   /* HP/UX 9 (%@#!) writes to sscanf strings */
  1824   tmp_version = my_strdup("$min_sdl_version");
  1825   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  1826      printf("%s, bad version string\n", "$min_sdl_version");
  1827      exit(1);
  1828    }
  1829 
  1830    if (($sdl_major_version > major) ||
  1831       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  1832       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  1833     {
  1834       return 0;
  1835     }
  1836   else
  1837     {
  1838       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  1839       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
  1840       printf("*** best to upgrade to the required version.\n");
  1841       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
  1842       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
  1843       printf("*** config.cache before re-running configure\n");
  1844       return 1;
  1845     }
  1846 }
  1847 
  1848 
  1849 EOF
  1850 if { (eval echo configure:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1851 then
  1852   :
  1853 else
  1854   echo "configure: failed program was:" >&5
  1855   cat conftest.$ac_ext >&5
  1856   rm -fr conftest*
  1857   no_sdl=yes
  1858 fi
  1859 rm -fr conftest*
  1860 fi
  1861 
  1862        CFLAGS="$ac_save_CFLAGS"
  1863        LIBS="$ac_save_LIBS"
  1864      fi
  1865   fi
  1866   if test "x$no_sdl" = x ; then
  1867      echo "$ac_t""yes" 1>&6
  1868      :     
  1869   else
  1870      echo "$ac_t""no" 1>&6
  1871      if test "$SDL_CONFIG" = "no" ; then
  1872        echo "*** The sdl-config script installed by SDL could not be found"
  1873        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  1874        echo "*** your path, or set the SDL_CONFIG environment variable to the"
  1875        echo "*** full path to sdl-config."
  1876      else
  1877        if test -f conf.sdltest ; then
  1878         :
  1879        else
  1880           echo "*** Could not run SDL test program, checking why..."
  1881           CFLAGS="$CFLAGS $SDL_CFLAGS"
  1882           LIBS="$LIBS $SDL_LIBS"
  1883           cat > conftest.$ac_ext <<EOF
  1884 #line 1885 "configure"
  1885 #include "confdefs.h"
  1886 
  1887 #include <stdio.h>
  1888 #include <SDL/SDL.h>
  1889 
  1890 int main() {
  1891  return 0; 
  1892 ; return 0; }
  1893 EOF
  1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1895   rm -rf conftest*
  1896    echo "*** The test program compiled, but did not run. This usually means"
  1897           echo "*** that the run-time linker is not finding SDL or finding the wrong"
  1898           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  1899           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  1900           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  1901           echo "*** is required on your system"
  1902 	  echo "***"
  1903           echo "*** If you have an old version installed, it is best to remove it, although"
  1904           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  1905 else
  1906   echo "configure: failed program was:" >&5
  1907   cat conftest.$ac_ext >&5
  1908   rm -rf conftest*
  1909    echo "*** The test program failed to compile or link. See the file config.log for the"
  1910           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  1911           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  1912           echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 
  1913 fi
  1914 rm -f conftest*
  1915           CFLAGS="$ac_save_CFLAGS"
  1916           LIBS="$ac_save_LIBS"
  1917        fi
  1918      fi
  1919      SDL_CFLAGS=""
  1920      SDL_LIBS=""
  1921      :
  1922   fi
  1923   
  1924   
  1925   rm -f conf.sdltest
  1926 
  1927 CFLAGS="$CFLAGS $SDL_CFLAGS"
  1928 LIBS="$LIBS $SDL_LIBS"
  1929 
  1930 # Check whether --enable-music-cmd or --disable-music-cmd was given.
  1931 if test "${enable_music_cmd+set}" = set; then
  1932   enableval="$enable_music_cmd"
  1933   :
  1934 else
  1935   enable_music_cmd=yes
  1936 fi
  1937 
  1938 if test x$enable_music_cmd = xyes; then
  1939     CFLAGS="$CFLAGS -DCMD_MUSIC"
  1940 fi
  1941 # Check whether --enable-music-wave or --disable-music-wave was given.
  1942 if test "${enable_music_wave+set}" = set; then
  1943   enableval="$enable_music_wave"
  1944   :
  1945 else
  1946   enable_music_wave=yes
  1947 fi
  1948 
  1949 if test x$enable_music_wave = xyes; then
  1950     CFLAGS="$CFLAGS -DWAV_MUSIC"
  1951 fi
  1952 # Check whether --enable-music-mod or --disable-music-mod was given.
  1953 if test "${enable_music_mod+set}" = set; then
  1954   enableval="$enable_music_mod"
  1955   :
  1956 else
  1957   enable_music_mod=yes
  1958 fi
  1959 
  1960 if test x$enable_music_mod = xyes; then
  1961     CFLAGS="$CFLAGS -DMOD_MUSIC -I\$(top_srcdir)/mikmod"
  1962     MUSIC_SUBDIRS="$MUSIC_SUBDIRS mikmod"
  1963 fi
  1964 # Check whether --enable-music-midi or --disable-music-midi was given.
  1965 if test "${enable_music_midi+set}" = set; then
  1966   enableval="$enable_music_midi"
  1967   :
  1968 else
  1969   enable_music_midi=yes
  1970 fi
  1971 
  1972 if test x$enable_music_midi = xyes; then
  1973     CFLAGS="$CFLAGS -DMID_MUSIC -I\$(top_srcdir)/timidity"
  1974     MUSIC_SUBDIRS="$MUSIC_SUBDIRS timidity"
  1975 fi
  1976 # Check whether --enable-music-mp3 or --disable-music-mp3 was given.
  1977 if test "${enable_music_mp3+set}" = set; then
  1978   enableval="$enable_music_mp3"
  1979   :
  1980 else
  1981   enable_music_mp3=yes
  1982 fi
  1983 
  1984 if test x$enable_music_mp3 = xyes; then
  1985     echo $ac_n "checking for SMPEG headers and libraries""... $ac_c" 1>&6
  1986 echo "configure:1987: checking for SMPEG headers and libraries" >&5
  1987     have_smpeg=no
  1988     cat > conftest.$ac_ext <<EOF
  1989 #line 1990 "configure"
  1990 #include "confdefs.h"
  1991 
  1992      #include <smpeg/smpeg.h>
  1993     
  1994 int main() {
  1995 
  1996     
  1997 ; return 0; }
  1998 EOF
  1999 if { (eval echo configure:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2000   rm -rf conftest*
  2001   
  2002     have_smpeg=yes
  2003     
  2004 else
  2005   echo "configure: failed program was:" >&5
  2006   cat conftest.$ac_ext >&5
  2007 fi
  2008 rm -f conftest*
  2009     echo "$ac_t""$have_smpeg" 1>&6
  2010     if test x$have_smpeg = xyes; then
  2011         CFLAGS="$CFLAGS -DMP3_MUSIC"
  2012         LIBS="$LIBS -lsmpeg"
  2013     fi
  2014 fi
  2015 
  2016 
  2017 
  2018 
  2019 if test x$enable_music_mod = xyes; then
  2020   USE_MIKMOD_TRUE=
  2021   USE_MIKMOD_FALSE='#'
  2022 else
  2023   USE_MIKMOD_TRUE='#'
  2024   USE_MIKMOD_FALSE=
  2025 fi
  2026 
  2027 
  2028 if test x$enable_music_midi = xyes; then
  2029   USE_TIMIDITY_TRUE=
  2030   USE_TIMIDITY_FALSE='#'
  2031 else
  2032   USE_TIMIDITY_TRUE='#'
  2033   USE_TIMIDITY_FALSE=
  2034 fi
  2035 
  2036 # Finally create all the generated files
  2037 trap '' 1 2 15
  2038 cat > confcache <<\EOF
  2039 # This file is a shell script that caches the results of configure
  2040 # tests run on this system so they can be shared between configure
  2041 # scripts and configure runs.  It is not useful on other systems.
  2042 # If it contains results you don't want to keep, you may remove or edit it.
  2043 #
  2044 # By default, configure uses ./config.cache as the cache file,
  2045 # creating it if it does not exist already.  You can give configure
  2046 # the --cache-file=FILE option to use a different cache file; that is
  2047 # what configure does when it calls configure scripts in
  2048 # subdirectories, so they share the cache.
  2049 # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2050 # config.status only pays attention to the cache file if you give it the
  2051 # --recheck option to rerun configure.
  2052 #
  2053 EOF
  2054 # The following way of writing the cache mishandles newlines in values,
  2055 # but we know of no workaround that is simple, portable, and efficient.
  2056 # So, don't put newlines in cache variables' values.
  2057 # Ultrix sh set writes to stderr and can't be redirected directly,
  2058 # and sets the high bit in the cache file unless we assign to the vars.
  2059 (set) 2>&1 |
  2060   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2061   *ac_space=\ *)
  2062     # `set' does not quote correctly, so add quotes (double-quote substitution
  2063     # turns \\\\ into \\, and sed turns \\ into \).
  2064     sed -n \
  2065       -e "s/'/'\\\\''/g" \
  2066       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2067     ;;
  2068   *)
  2069     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2070     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2071     ;;
  2072   esac >> confcache
  2073 if cmp -s $cache_file confcache; then
  2074   :
  2075 else
  2076   if test -w $cache_file; then
  2077     echo "updating cache $cache_file"
  2078     cat confcache > $cache_file
  2079   else
  2080     echo "not updating unwritable cache $cache_file"
  2081   fi
  2082 fi
  2083 rm -f confcache
  2084 
  2085 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2086 
  2087 test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2088 # Let make expand exec_prefix.
  2089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2090 
  2091 # Any assignment to VPATH causes Sun make to only execute
  2092 # the first set of double-colon rules, so remove it if not needed.
  2093 # If there is a colon in the path, we need to keep it.
  2094 if test "x$srcdir" = x.; then
  2095   ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
  2096 fi
  2097 
  2098 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2099 
  2100 # Transform confdefs.h into DEFS.
  2101 # Protect against shell expansion while executing Makefile rules.
  2102 # Protect against Makefile macro expansion.
  2103 cat > conftest.defs <<\EOF
  2104 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2105 s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
  2106 s%\[%\\&%g
  2107 s%\]%\\&%g
  2108 s%\$%$$%g
  2109 EOF
  2110 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2111 rm -f conftest.defs
  2112 
  2113 
  2114 # Without the "./", some shells look in PATH for config.status.
  2115 : ${CONFIG_STATUS=./config.status}
  2116 
  2117 echo creating $CONFIG_STATUS
  2118 rm -f $CONFIG_STATUS
  2119 cat > $CONFIG_STATUS <<EOF
  2120 #! /bin/sh
  2121 # Generated automatically by configure.
  2122 # Run this file to recreate the current configuration.
  2123 # This directory was configured as follows,
  2124 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2125 #
  2126 # $0 $ac_configure_args
  2127 #
  2128 # Compiler output produced by configure, useful for debugging
  2129 # configure, is in ./config.log if it exists.
  2130 
  2131 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2132 for ac_option
  2133 do
  2134   case "\$ac_option" in
  2135   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2136     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2137     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2138   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2139     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  2140     exit 0 ;;
  2141   -help | --help | --hel | --he | --h)
  2142     echo "\$ac_cs_usage"; exit 0 ;;
  2143   *) echo "\$ac_cs_usage"; exit 1 ;;
  2144   esac
  2145 done
  2146 
  2147 ac_given_srcdir=$srcdir
  2148 ac_given_INSTALL="$INSTALL"
  2149 
  2150 trap 'rm -fr `echo "
  2151 Makefile
  2152 mikmod/Makefile
  2153 timidity/Makefile
  2154 " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2155 EOF
  2156 cat >> $CONFIG_STATUS <<EOF
  2157 
  2158 # Protect against being on the right side of a sed subst in config.status.
  2159 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2160  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2161 $ac_vpsub
  2162 $extrasub
  2163 s%@SHELL@%$SHELL%g
  2164 s%@CFLAGS@%$CFLAGS%g
  2165 s%@CPPFLAGS@%$CPPFLAGS%g
  2166 s%@CXXFLAGS@%$CXXFLAGS%g
  2167 s%@FFLAGS@%$FFLAGS%g
  2168 s%@DEFS@%$DEFS%g
  2169 s%@LDFLAGS@%$LDFLAGS%g
  2170 s%@LIBS@%$LIBS%g
  2171 s%@exec_prefix@%$exec_prefix%g
  2172 s%@prefix@%$prefix%g
  2173 s%@program_transform_name@%$program_transform_name%g
  2174 s%@bindir@%$bindir%g
  2175 s%@sbindir@%$sbindir%g
  2176 s%@libexecdir@%$libexecdir%g
  2177 s%@datadir@%$datadir%g
  2178 s%@sysconfdir@%$sysconfdir%g
  2179 s%@sharedstatedir@%$sharedstatedir%g
  2180 s%@localstatedir@%$localstatedir%g
  2181 s%@libdir@%$libdir%g
  2182 s%@includedir@%$includedir%g
  2183 s%@oldincludedir@%$oldincludedir%g
  2184 s%@infodir@%$infodir%g
  2185 s%@mandir@%$mandir%g
  2186 s%@MAJOR_VERSION@%$MAJOR_VERSION%g
  2187 s%@MINOR_VERSION@%$MINOR_VERSION%g
  2188 s%@MICRO_VERSION@%$MICRO_VERSION%g
  2189 s%@INTERFACE_AGE@%$INTERFACE_AGE%g
  2190 s%@BINARY_AGE@%$BINARY_AGE%g
  2191 s%@VERSION@%$VERSION%g
  2192 s%@LT_RELEASE@%$LT_RELEASE%g
  2193 s%@LT_CURRENT@%$LT_CURRENT%g
  2194 s%@LT_REVISION@%$LT_REVISION%g
  2195 s%@LT_AGE@%$LT_AGE%g
  2196 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2197 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  2198 s%@INSTALL_DATA@%$INSTALL_DATA%g
  2199 s%@PACKAGE@%$PACKAGE%g
  2200 s%@ACLOCAL@%$ACLOCAL%g
  2201 s%@AUTOCONF@%$AUTOCONF%g
  2202 s%@AUTOMAKE@%$AUTOMAKE%g
  2203 s%@AUTOHEADER@%$AUTOHEADER%g
  2204 s%@MAKEINFO@%$MAKEINFO%g
  2205 s%@SET_MAKE@%$SET_MAKE%g
  2206 s%@CC@%$CC%g
  2207 s%@host@%$host%g
  2208 s%@host_alias@%$host_alias%g
  2209 s%@host_cpu@%$host_cpu%g
  2210 s%@host_vendor@%$host_vendor%g
  2211 s%@host_os@%$host_os%g
  2212 s%@build@%$build%g
  2213 s%@build_alias@%$build_alias%g
  2214 s%@build_cpu@%$build_cpu%g
  2215 s%@build_vendor@%$build_vendor%g
  2216 s%@build_os@%$build_os%g
  2217 s%@LD@%$LD%g
  2218 s%@NM@%$NM%g
  2219 s%@LN_S@%$LN_S%g
  2220 s%@RANLIB@%$RANLIB%g
  2221 s%@LIBTOOL@%$LIBTOOL%g
  2222 s%@target@%$target%g
  2223 s%@target_alias@%$target_alias%g
  2224 s%@target_cpu@%$target_cpu%g
  2225 s%@target_vendor@%$target_vendor%g
  2226 s%@target_os@%$target_os%g
  2227 s%@SDL_CONFIG@%$SDL_CONFIG%g
  2228 s%@SDL_CFLAGS@%$SDL_CFLAGS%g
  2229 s%@SDL_LIBS@%$SDL_LIBS%g
  2230 s%@MUSIC_SUBDIRS@%$MUSIC_SUBDIRS%g
  2231 s%@USE_MIKMOD_TRUE@%$USE_MIKMOD_TRUE%g
  2232 s%@USE_MIKMOD_FALSE@%$USE_MIKMOD_FALSE%g
  2233 s%@USE_TIMIDITY_TRUE@%$USE_TIMIDITY_TRUE%g
  2234 s%@USE_TIMIDITY_FALSE@%$USE_TIMIDITY_FALSE%g
  2235 
  2236 CEOF
  2237 EOF
  2238 
  2239 cat >> $CONFIG_STATUS <<\EOF
  2240 
  2241 # Split the substitutions into bite-sized pieces for seds with
  2242 # small command number limits, like on Digital OSF/1 and HP-UX.
  2243 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2244 ac_file=1 # Number of current file.
  2245 ac_beg=1 # First line for current file.
  2246 ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2247 ac_more_lines=:
  2248 ac_sed_cmds=""
  2249 while $ac_more_lines; do
  2250   if test $ac_beg -gt 1; then
  2251     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2252   else
  2253     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2254   fi
  2255   if test ! -s conftest.s$ac_file; then
  2256     ac_more_lines=false
  2257     rm -f conftest.s$ac_file
  2258   else
  2259     if test -z "$ac_sed_cmds"; then
  2260       ac_sed_cmds="sed -f conftest.s$ac_file"
  2261     else
  2262       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2263     fi
  2264     ac_file=`expr $ac_file + 1`
  2265     ac_beg=$ac_end
  2266     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2267   fi
  2268 done
  2269 if test -z "$ac_sed_cmds"; then
  2270   ac_sed_cmds=cat
  2271 fi
  2272 EOF
  2273 
  2274 cat >> $CONFIG_STATUS <<EOF
  2275 
  2276 CONFIG_FILES=\${CONFIG_FILES-"Makefile
  2277 mikmod/Makefile
  2278 timidity/Makefile
  2279 "}
  2280 EOF
  2281 cat >> $CONFIG_STATUS <<\EOF
  2282 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2283   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2284   case "$ac_file" in
  2285   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2286        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2287   *) ac_file_in="${ac_file}.in" ;;
  2288   esac
  2289 
  2290   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2291 
  2292   # Remove last slash and all that follows it.  Not all systems have dirname.
  2293   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2294   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2295     # The file is in a subdirectory.
  2296     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2297     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2298     # A "../" for each directory in $ac_dir_suffix.
  2299     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2300   else
  2301     ac_dir_suffix= ac_dots=
  2302   fi
  2303 
  2304   case "$ac_given_srcdir" in
  2305   .)  srcdir=.
  2306       if test -z "$ac_dots"; then top_srcdir=.
  2307       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2308   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2309   *) # Relative path.
  2310     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2311     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2312   esac
  2313 
  2314   case "$ac_given_INSTALL" in
  2315   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2316   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2317   esac
  2318 
  2319   echo creating "$ac_file"
  2320   rm -f "$ac_file"
  2321   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2322   case "$ac_file" in
  2323   *Makefile*) ac_comsub="1i\\
  2324 # $configure_input" ;;
  2325   *) ac_comsub= ;;
  2326   esac
  2327 
  2328   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2329   sed -e "$ac_comsub
  2330 s%@configure_input@%$configure_input%g
  2331 s%@srcdir@%$srcdir%g
  2332 s%@top_srcdir@%$top_srcdir%g
  2333 s%@INSTALL@%$INSTALL%g
  2334 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2335 fi; done
  2336 rm -f conftest.s*
  2337 
  2338 EOF
  2339 cat >> $CONFIG_STATUS <<EOF
  2340 
  2341 EOF
  2342 cat >> $CONFIG_STATUS <<\EOF
  2343 
  2344 exit 0
  2345 EOF
  2346 chmod +x $CONFIG_STATUS
  2347 rm -fr confdefs* $ac_clean_files
  2348 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2349