configure
author Sam Lantinga <slouken@lokigames.com>
Tue, 23 Nov 1999 05:25:15 +0000
changeset 20 ef0f22476bc5
parent 6 cb0e8db1f996
child 24 a25bb2d59ce8
permissions -rwxr-xr-x
Updated for SDL 1.0
     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 PACKAGE=mixer
   756 
   757 VERSION=$VERSION
   758 
   759 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
   760   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
   761 fi
   762 cat >> confdefs.h <<EOF
   763 #define PACKAGE "$PACKAGE"
   764 EOF
   765 
   766 cat >> confdefs.h <<EOF
   767 #define VERSION "$VERSION"
   768 EOF
   769 
   770 
   771 
   772 missing_dir=`cd $ac_aux_dir && pwd`
   773 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
   774 echo "configure:775: checking for working aclocal" >&5
   775 # Run test in a subshell; some versions of sh will print an error if
   776 # an executable is not found, even if stderr is redirected.
   777 # Redirect stdin to placate older versions of autoconf.  Sigh.
   778 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
   779    ACLOCAL=aclocal
   780    echo "$ac_t""found" 1>&6
   781 else
   782    ACLOCAL="$missing_dir/missing aclocal"
   783    echo "$ac_t""missing" 1>&6
   784 fi
   785 
   786 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
   787 echo "configure:788: checking for working autoconf" >&5
   788 # Run test in a subshell; some versions of sh will print an error if
   789 # an executable is not found, even if stderr is redirected.
   790 # Redirect stdin to placate older versions of autoconf.  Sigh.
   791 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
   792    AUTOCONF=autoconf
   793    echo "$ac_t""found" 1>&6
   794 else
   795    AUTOCONF="$missing_dir/missing autoconf"
   796    echo "$ac_t""missing" 1>&6
   797 fi
   798 
   799 echo $ac_n "checking for working automake""... $ac_c" 1>&6
   800 echo "configure:801: checking for working automake" >&5
   801 # Run test in a subshell; some versions of sh will print an error if
   802 # an executable is not found, even if stderr is redirected.
   803 # Redirect stdin to placate older versions of autoconf.  Sigh.
   804 if (automake --version) < /dev/null > /dev/null 2>&1; then
   805    AUTOMAKE=automake
   806    echo "$ac_t""found" 1>&6
   807 else
   808    AUTOMAKE="$missing_dir/missing automake"
   809    echo "$ac_t""missing" 1>&6
   810 fi
   811 
   812 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
   813 echo "configure:814: checking for working autoheader" >&5
   814 # Run test in a subshell; some versions of sh will print an error if
   815 # an executable is not found, even if stderr is redirected.
   816 # Redirect stdin to placate older versions of autoconf.  Sigh.
   817 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
   818    AUTOHEADER=autoheader
   819    echo "$ac_t""found" 1>&6
   820 else
   821    AUTOHEADER="$missing_dir/missing autoheader"
   822    echo "$ac_t""missing" 1>&6
   823 fi
   824 
   825 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
   826 echo "configure:827: checking for working makeinfo" >&5
   827 # Run test in a subshell; some versions of sh will print an error if
   828 # an executable is not found, even if stderr is redirected.
   829 # Redirect stdin to placate older versions of autoconf.  Sigh.
   830 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
   831    MAKEINFO=makeinfo
   832    echo "$ac_t""found" 1>&6
   833 else
   834    MAKEINFO="$missing_dir/missing makeinfo"
   835    echo "$ac_t""missing" 1>&6
   836 fi
   837 
   838 
   839 
   840 
   841 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
   842 echo "configure:843: checking whether ${MAKE-make} sets \${MAKE}" >&5
   843 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
   844 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
   845   echo $ac_n "(cached) $ac_c" 1>&6
   846 else
   847   cat > conftestmake <<\EOF
   848 all:
   849 	@echo 'ac_maketemp="${MAKE}"'
   850 EOF
   851 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   852 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
   853 if test -n "$ac_maketemp"; then
   854   eval ac_cv_prog_make_${ac_make}_set=yes
   855 else
   856   eval ac_cv_prog_make_${ac_make}_set=no
   857 fi
   858 rm -f conftestmake
   859 fi
   860 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
   861   echo "$ac_t""yes" 1>&6
   862   SET_MAKE=
   863 else
   864   echo "$ac_t""no" 1>&6
   865   SET_MAKE="MAKE=${MAKE-make}"
   866 fi
   867 
   868 # Extract the first word of "gcc", so it can be a program name with args.
   869 set dummy gcc; ac_word=$2
   870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   871 echo "configure:872: checking for $ac_word" >&5
   872 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   873   echo $ac_n "(cached) $ac_c" 1>&6
   874 else
   875   if test -n "$CC"; then
   876   ac_cv_prog_CC="$CC" # Let the user override the test.
   877 else
   878   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   879   ac_dummy="$PATH"
   880   for ac_dir in $ac_dummy; do
   881     test -z "$ac_dir" && ac_dir=.
   882     if test -f $ac_dir/$ac_word; then
   883       ac_cv_prog_CC="gcc"
   884       break
   885     fi
   886   done
   887   IFS="$ac_save_ifs"
   888 fi
   889 fi
   890 CC="$ac_cv_prog_CC"
   891 if test -n "$CC"; then
   892   echo "$ac_t""$CC" 1>&6
   893 else
   894   echo "$ac_t""no" 1>&6
   895 fi
   896 
   897 if test -z "$CC"; then
   898   # Extract the first word of "cc", so it can be a program name with args.
   899 set dummy cc; ac_word=$2
   900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   901 echo "configure:902: checking for $ac_word" >&5
   902 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   903   echo $ac_n "(cached) $ac_c" 1>&6
   904 else
   905   if test -n "$CC"; then
   906   ac_cv_prog_CC="$CC" # Let the user override the test.
   907 else
   908   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   909   ac_prog_rejected=no
   910   ac_dummy="$PATH"
   911   for ac_dir in $ac_dummy; do
   912     test -z "$ac_dir" && ac_dir=.
   913     if test -f $ac_dir/$ac_word; then
   914       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
   915         ac_prog_rejected=yes
   916 	continue
   917       fi
   918       ac_cv_prog_CC="cc"
   919       break
   920     fi
   921   done
   922   IFS="$ac_save_ifs"
   923 if test $ac_prog_rejected = yes; then
   924   # We found a bogon in the path, so make sure we never use it.
   925   set dummy $ac_cv_prog_CC
   926   shift
   927   if test $# -gt 0; then
   928     # We chose a different compiler from the bogus one.
   929     # However, it has the same basename, so the bogon will be chosen
   930     # first if we set CC to just the basename; use the full file name.
   931     shift
   932     set dummy "$ac_dir/$ac_word" "$@"
   933     shift
   934     ac_cv_prog_CC="$@"
   935   fi
   936 fi
   937 fi
   938 fi
   939 CC="$ac_cv_prog_CC"
   940 if test -n "$CC"; then
   941   echo "$ac_t""$CC" 1>&6
   942 else
   943   echo "$ac_t""no" 1>&6
   944 fi
   945 
   946   if test -z "$CC"; then
   947     case "`uname -s`" in
   948     *win32* | *WIN32*)
   949       # Extract the first word of "cl", so it can be a program name with args.
   950 set dummy cl; ac_word=$2
   951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   952 echo "configure:953: checking for $ac_word" >&5
   953 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   954   echo $ac_n "(cached) $ac_c" 1>&6
   955 else
   956   if test -n "$CC"; then
   957   ac_cv_prog_CC="$CC" # Let the user override the test.
   958 else
   959   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   960   ac_dummy="$PATH"
   961   for ac_dir in $ac_dummy; do
   962     test -z "$ac_dir" && ac_dir=.
   963     if test -f $ac_dir/$ac_word; then
   964       ac_cv_prog_CC="cl"
   965       break
   966     fi
   967   done
   968   IFS="$ac_save_ifs"
   969 fi
   970 fi
   971 CC="$ac_cv_prog_CC"
   972 if test -n "$CC"; then
   973   echo "$ac_t""$CC" 1>&6
   974 else
   975   echo "$ac_t""no" 1>&6
   976 fi
   977  ;;
   978     esac
   979   fi
   980   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
   981 fi
   982 
   983 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
   984 echo "configure:985: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
   985 
   986 ac_ext=c
   987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   988 ac_cpp='$CPP $CPPFLAGS'
   989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   991 cross_compiling=$ac_cv_prog_cc_cross
   992 
   993 cat > conftest.$ac_ext << EOF
   994 
   995 #line 996 "configure"
   996 #include "confdefs.h"
   997 
   998 main(){return(0);}
   999 EOF
  1000 if { (eval echo configure:1001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1001   ac_cv_prog_cc_works=yes
  1002   # If we can't run a trivial program, we are probably using a cross compiler.
  1003   if (./conftest; exit) 2>/dev/null; then
  1004     ac_cv_prog_cc_cross=no
  1005   else
  1006     ac_cv_prog_cc_cross=yes
  1007   fi
  1008 else
  1009   echo "configure: failed program was:" >&5
  1010   cat conftest.$ac_ext >&5
  1011   ac_cv_prog_cc_works=no
  1012 fi
  1013 rm -fr conftest*
  1014 ac_ext=c
  1015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1016 ac_cpp='$CPP $CPPFLAGS'
  1017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1019 cross_compiling=$ac_cv_prog_cc_cross
  1020 
  1021 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1022 if test $ac_cv_prog_cc_works = no; then
  1023   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1024 fi
  1025 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1026 echo "configure:1027: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1027 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1028 cross_compiling=$ac_cv_prog_cc_cross
  1029 
  1030 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1031 echo "configure:1032: checking whether we are using GNU C" >&5
  1032 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1033   echo $ac_n "(cached) $ac_c" 1>&6
  1034 else
  1035   cat > conftest.c <<EOF
  1036 #ifdef __GNUC__
  1037   yes;
  1038 #endif
  1039 EOF
  1040 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1041   ac_cv_prog_gcc=yes
  1042 else
  1043   ac_cv_prog_gcc=no
  1044 fi
  1045 fi
  1046 
  1047 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1048 
  1049 if test $ac_cv_prog_gcc = yes; then
  1050   GCC=yes
  1051 else
  1052   GCC=
  1053 fi
  1054 
  1055 ac_test_CFLAGS="${CFLAGS+set}"
  1056 ac_save_CFLAGS="$CFLAGS"
  1057 CFLAGS=
  1058 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1059 echo "configure:1060: checking whether ${CC-cc} accepts -g" >&5
  1060 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1061   echo $ac_n "(cached) $ac_c" 1>&6
  1062 else
  1063   echo 'void f(){}' > conftest.c
  1064 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1065   ac_cv_prog_cc_g=yes
  1066 else
  1067   ac_cv_prog_cc_g=no
  1068 fi
  1069 rm -f conftest*
  1070 
  1071 fi
  1072 
  1073 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1074 if test "$ac_test_CFLAGS" = set; then
  1075   CFLAGS="$ac_save_CFLAGS"
  1076 elif test $ac_cv_prog_cc_g = yes; then
  1077   if test "$GCC" = yes; then
  1078     CFLAGS="-g -O2"
  1079   else
  1080     CFLAGS="-g"
  1081   fi
  1082 else
  1083   if test "$GCC" = yes; then
  1084     CFLAGS="-O2"
  1085   else
  1086     CFLAGS=
  1087   fi
  1088 fi
  1089 
  1090 # Check whether --enable-shared or --disable-shared was given.
  1091 if test "${enable_shared+set}" = set; then
  1092   enableval="$enable_shared"
  1093   p=${PACKAGE-default}
  1094 case "$enableval" in
  1095 yes) enable_shared=yes ;;
  1096 no) enable_shared=no ;;
  1097 *)
  1098   enable_shared=no
  1099   # Look at the argument we got.  We use all the common list separators.
  1100   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1101   for pkg in $enableval; do
  1102     if test "X$pkg" = "X$p"; then
  1103       enable_shared=yes
  1104     fi
  1105   done
  1106   IFS="$ac_save_ifs"
  1107   ;;
  1108 esac
  1109 else
  1110   enable_shared=yes
  1111 fi
  1112 
  1113 # Check whether --enable-static or --disable-static was given.
  1114 if test "${enable_static+set}" = set; then
  1115   enableval="$enable_static"
  1116   p=${PACKAGE-default}
  1117 case "$enableval" in
  1118 yes) enable_static=yes ;;
  1119 no) enable_static=no ;;
  1120 *)
  1121   enable_static=no
  1122   # Look at the argument we got.  We use all the common list separators.
  1123   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1124   for pkg in $enableval; do
  1125     if test "X$pkg" = "X$p"; then
  1126       enable_static=yes
  1127     fi
  1128   done
  1129   IFS="$ac_save_ifs"
  1130   ;;
  1131 esac
  1132 else
  1133   enable_static=yes
  1134 fi
  1135 
  1136 # Check whether --enable-fast-install or --disable-fast-install was given.
  1137 if test "${enable_fast_install+set}" = set; then
  1138   enableval="$enable_fast_install"
  1139   p=${PACKAGE-default}
  1140 case "$enableval" in
  1141 yes) enable_fast_install=yes ;;
  1142 no) enable_fast_install=no ;;
  1143 *)
  1144   enable_fast_install=no
  1145   # Look at the argument we got.  We use all the common list separators.
  1146   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1147   for pkg in $enableval; do
  1148     if test "X$pkg" = "X$p"; then
  1149       enable_fast_install=yes
  1150     fi
  1151   done
  1152   IFS="$ac_save_ifs"
  1153   ;;
  1154 esac
  1155 else
  1156   enable_fast_install=yes
  1157 fi
  1158 
  1159 
  1160 # Make sure we can run config.sub.
  1161 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1162 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1163 fi
  1164 
  1165 echo $ac_n "checking host system type""... $ac_c" 1>&6
  1166 echo "configure:1167: checking host system type" >&5
  1167 
  1168 host_alias=$host
  1169 case "$host_alias" in
  1170 NONE)
  1171   case $nonopt in
  1172   NONE)
  1173     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1174     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1175     fi ;;
  1176   *) host_alias=$nonopt ;;
  1177   esac ;;
  1178 esac
  1179 
  1180 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1181 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1182 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1183 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1184 echo "$ac_t""$host" 1>&6
  1185 
  1186 echo $ac_n "checking build system type""... $ac_c" 1>&6
  1187 echo "configure:1188: checking build system type" >&5
  1188 
  1189 build_alias=$build
  1190 case "$build_alias" in
  1191 NONE)
  1192   case $nonopt in
  1193   NONE) build_alias=$host_alias ;;
  1194   *) build_alias=$nonopt ;;
  1195   esac ;;
  1196 esac
  1197 
  1198 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  1199 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1200 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1201 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1202 echo "$ac_t""$build" 1>&6
  1203 
  1204 # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1205 if test "${with_gnu_ld+set}" = set; then
  1206   withval="$with_gnu_ld"
  1207   test "$withval" = no || with_gnu_ld=yes
  1208 else
  1209   with_gnu_ld=no
  1210 fi
  1211 
  1212 ac_prog=ld
  1213 if test "$ac_cv_prog_gcc" = yes; then
  1214   # Check if gcc -print-prog-name=ld gives a path.
  1215   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1216 echo "configure:1217: checking for ld used by GCC" >&5
  1217   case $host in
  1218   *-*-mingw*)
  1219     # gcc leaves a trailing carriage return which upsets mingw
  1220     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1221   *)
  1222     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1223   esac
  1224   case "$ac_prog" in
  1225     # Accept absolute paths.
  1226     [\\/]* | [A-Za-z]:[\\/]*)
  1227       re_direlt='/[^/][^/]*/\.\./'
  1228       # Canonicalize the path of ld
  1229       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1230       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1231 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1232       done
  1233       test -z "$LD" && LD="$ac_prog"
  1234       ;;
  1235   "")
  1236     # If it fails, then pretend we aren't using GCC.
  1237     ac_prog=ld
  1238     ;;
  1239   *)
  1240     # If it is relative, then search for the first ld in PATH.
  1241     with_gnu_ld=unknown
  1242     ;;
  1243   esac
  1244 elif test "$with_gnu_ld" = yes; then
  1245   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1246 echo "configure:1247: checking for GNU ld" >&5
  1247 else
  1248   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1249 echo "configure:1250: checking for non-GNU ld" >&5
  1250 fi
  1251 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1252   echo $ac_n "(cached) $ac_c" 1>&6
  1253 else
  1254   if test -z "$LD"; then
  1255   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1256   for ac_dir in $PATH; do
  1257     test -z "$ac_dir" && ac_dir=.
  1258     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1259       ac_cv_path_LD="$ac_dir/$ac_prog"
  1260       # Check to see if the program is GNU ld.  I'd rather use --version,
  1261       # but apparently some GNU ld's only accept -v.
  1262       # Break only if it was the GNU/non-GNU ld that we prefer.
  1263       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1264 	test "$with_gnu_ld" != no && break
  1265       else
  1266 	test "$with_gnu_ld" != yes && break
  1267       fi
  1268     fi
  1269   done
  1270   IFS="$ac_save_ifs"
  1271 else
  1272   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1273 fi
  1274 fi
  1275 
  1276 LD="$ac_cv_path_LD"
  1277 if test -n "$LD"; then
  1278   echo "$ac_t""$LD" 1>&6
  1279 else
  1280   echo "$ac_t""no" 1>&6
  1281 fi
  1282 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1283 
  1284 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1285 echo "configure:1286: checking if the linker ($LD) is GNU ld" >&5
  1286 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1287   echo $ac_n "(cached) $ac_c" 1>&6
  1288 else
  1289   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1290 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1291   ac_cv_prog_gnu_ld=yes
  1292 else
  1293   ac_cv_prog_gnu_ld=no
  1294 fi
  1295 fi
  1296 
  1297 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1298 
  1299 
  1300 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1301 echo "configure:1302: checking for BSD-compatible nm" >&5
  1302 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1303   echo $ac_n "(cached) $ac_c" 1>&6
  1304 else
  1305   if test -n "$NM"; then
  1306   # Let the user override the test.
  1307   ac_cv_path_NM="$NM"
  1308 else
  1309   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1310   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1311     test -z "$ac_dir" && ac_dir=.
  1312     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  1313       # Check to see if the nm accepts a BSD-compat flag.
  1314       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1315       #   nm: unknown option "B" ignored
  1316       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1317 	ac_cv_path_NM="$ac_dir/nm -B"
  1318 	break
  1319       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1320 	ac_cv_path_NM="$ac_dir/nm -p"
  1321 	break
  1322       else
  1323 	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  1324 	continue # so that we can try to find one that supports BSD flags
  1325       fi
  1326     fi
  1327   done
  1328   IFS="$ac_save_ifs"
  1329   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1330 fi
  1331 fi
  1332 
  1333 NM="$ac_cv_path_NM"
  1334 echo "$ac_t""$NM" 1>&6
  1335 
  1336 
  1337 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1338 echo "configure:1339: checking whether ln -s works" >&5
  1339 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1340   echo $ac_n "(cached) $ac_c" 1>&6
  1341 else
  1342   rm -f conftestdata
  1343 if ln -s X conftestdata 2>/dev/null
  1344 then
  1345   rm -f conftestdata
  1346   ac_cv_prog_LN_S="ln -s"
  1347 else
  1348   ac_cv_prog_LN_S=ln
  1349 fi
  1350 fi
  1351 LN_S="$ac_cv_prog_LN_S"
  1352 if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1353   echo "$ac_t""yes" 1>&6
  1354 else
  1355   echo "$ac_t""no" 1>&6
  1356 fi
  1357 
  1358 if test $host != $build; then
  1359   ac_tool_prefix=${host_alias}-
  1360 else
  1361   ac_tool_prefix=
  1362 fi
  1363 
  1364 
  1365 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1368 echo "configure:1369: checking for $ac_word" >&5
  1369 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1370   echo $ac_n "(cached) $ac_c" 1>&6
  1371 else
  1372   if test -n "$RANLIB"; then
  1373   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1374 else
  1375   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1376   ac_dummy="$PATH"
  1377   for ac_dir in $ac_dummy; do
  1378     test -z "$ac_dir" && ac_dir=.
  1379     if test -f $ac_dir/$ac_word; then
  1380       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1381       break
  1382     fi
  1383   done
  1384   IFS="$ac_save_ifs"
  1385 fi
  1386 fi
  1387 RANLIB="$ac_cv_prog_RANLIB"
  1388 if test -n "$RANLIB"; then
  1389   echo "$ac_t""$RANLIB" 1>&6
  1390 else
  1391   echo "$ac_t""no" 1>&6
  1392 fi
  1393 
  1394 
  1395 if test -z "$ac_cv_prog_RANLIB"; then
  1396 if test -n "$ac_tool_prefix"; then
  1397   # Extract the first word of "ranlib", so it can be a program name with args.
  1398 set dummy ranlib; ac_word=$2
  1399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1400 echo "configure:1401: checking for $ac_word" >&5
  1401 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1402   echo $ac_n "(cached) $ac_c" 1>&6
  1403 else
  1404   if test -n "$RANLIB"; then
  1405   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1406 else
  1407   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1408   ac_dummy="$PATH"
  1409   for ac_dir in $ac_dummy; do
  1410     test -z "$ac_dir" && ac_dir=.
  1411     if test -f $ac_dir/$ac_word; then
  1412       ac_cv_prog_RANLIB="ranlib"
  1413       break
  1414     fi
  1415   done
  1416   IFS="$ac_save_ifs"
  1417   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1418 fi
  1419 fi
  1420 RANLIB="$ac_cv_prog_RANLIB"
  1421 if test -n "$RANLIB"; then
  1422   echo "$ac_t""$RANLIB" 1>&6
  1423 else
  1424   echo "$ac_t""no" 1>&6
  1425 fi
  1426 
  1427 else
  1428   RANLIB=":"
  1429 fi
  1430 fi
  1431 
  1432 
  1433 # Check for any special flags to pass to ltconfig.
  1434 libtool_flags="--cache-file=$cache_file"
  1435 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1436 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1437 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  1438 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1439 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1440 
  1441 
  1442 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  1443 if test "${enable_libtool_lock+set}" = set; then
  1444   enableval="$enable_libtool_lock"
  1445   :
  1446 fi
  1447 
  1448 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  1449 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  1450 
  1451 # Check whether --with-pic or --without-pic was given.
  1452 if test "${with_pic+set}" = set; then
  1453   withval="$with_pic"
  1454   pic_mode="$withval"
  1455 else
  1456   pic_mode=default
  1457 fi
  1458 
  1459 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
  1460 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
  1461 
  1462 # Some flags need to be propagated to the compiler or linker for good
  1463 # libtool support.
  1464 case "$host" in
  1465 *-*-irix6*)
  1466   # Find out which ABI we are using.
  1467   echo '#line 1468 "configure"' > conftest.$ac_ext
  1468   if { (eval echo configure:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1469     case "`/usr/bin/file conftest.o`" in
  1470     *32-bit*)
  1471       LD="${LD-ld} -32"
  1472       ;;
  1473     *N32*)
  1474       LD="${LD-ld} -n32"
  1475       ;;
  1476     *64-bit*)
  1477       LD="${LD-ld} -64"
  1478       ;;
  1479     esac
  1480   fi
  1481   rm -rf conftest*
  1482   ;;
  1483 
  1484 *-*-sco3.2v5*)
  1485   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1486   SAVE_CFLAGS="$CFLAGS"
  1487   CFLAGS="$CFLAGS -belf"
  1488   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  1489 echo "configure:1490: checking whether the C compiler needs -belf" >&5
  1490 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  1491   echo $ac_n "(cached) $ac_c" 1>&6
  1492 else
  1493   cat > conftest.$ac_ext <<EOF
  1494 #line 1495 "configure"
  1495 #include "confdefs.h"
  1496 
  1497 int main() {
  1498 
  1499 ; return 0; }
  1500 EOF
  1501 if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1502   rm -rf conftest*
  1503   lt_cv_cc_needs_belf=yes
  1504 else
  1505   echo "configure: failed program was:" >&5
  1506   cat conftest.$ac_ext >&5
  1507   rm -rf conftest*
  1508   lt_cv_cc_needs_belf=no
  1509 fi
  1510 rm -f conftest*
  1511 fi
  1512 
  1513 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  1514   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1515     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1516     CFLAGS="$SAVE_CFLAGS"
  1517   fi
  1518   ;;
  1519 
  1520 
  1521 esac
  1522 
  1523 
  1524 # Save cache, so that ltconfig can load it
  1525 cat > confcache <<\EOF
  1526 # This file is a shell script that caches the results of configure
  1527 # tests run on this system so they can be shared between configure
  1528 # scripts and configure runs.  It is not useful on other systems.
  1529 # If it contains results you don't want to keep, you may remove or edit it.
  1530 #
  1531 # By default, configure uses ./config.cache as the cache file,
  1532 # creating it if it does not exist already.  You can give configure
  1533 # the --cache-file=FILE option to use a different cache file; that is
  1534 # what configure does when it calls configure scripts in
  1535 # subdirectories, so they share the cache.
  1536 # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1537 # config.status only pays attention to the cache file if you give it the
  1538 # --recheck option to rerun configure.
  1539 #
  1540 EOF
  1541 # The following way of writing the cache mishandles newlines in values,
  1542 # but we know of no workaround that is simple, portable, and efficient.
  1543 # So, don't put newlines in cache variables' values.
  1544 # Ultrix sh set writes to stderr and can't be redirected directly,
  1545 # and sets the high bit in the cache file unless we assign to the vars.
  1546 (set) 2>&1 |
  1547   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1548   *ac_space=\ *)
  1549     # `set' does not quote correctly, so add quotes (double-quote substitution
  1550     # turns \\\\ into \\, and sed turns \\ into \).
  1551     sed -n \
  1552       -e "s/'/'\\\\''/g" \
  1553       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1554     ;;
  1555   *)
  1556     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1557     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1558     ;;
  1559   esac >> confcache
  1560 if cmp -s $cache_file confcache; then
  1561   :
  1562 else
  1563   if test -w $cache_file; then
  1564     echo "updating cache $cache_file"
  1565     cat confcache > $cache_file
  1566   else
  1567     echo "not updating unwritable cache $cache_file"
  1568   fi
  1569 fi
  1570 rm -f confcache
  1571 
  1572 
  1573 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  1574 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1575 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  1576 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  1577 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  1578 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  1579 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
  1580 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1581 
  1582 # Reload cache, that may have been modified by ltconfig
  1583 if test -r "$cache_file"; then
  1584   echo "loading cache $cache_file"
  1585   . $cache_file
  1586 else
  1587   echo "creating cache $cache_file"
  1588   > $cache_file
  1589 fi
  1590 
  1591 
  1592 # This can be used to rebuild libtool when needed
  1593 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  1594 
  1595 # Always use our own libtool.
  1596 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1597 
  1598 # Redirect the config.log output again, so that the ltconfig log is not
  1599 # clobbered by the next message.
  1600 exec 5>>./config.log
  1601 
  1602 # Find a good install program.  We prefer a C program (faster),
  1603 # so one script is as good as another.  But avoid the broken or
  1604 # incompatible versions:
  1605 # SysV /etc/install, /usr/sbin/install
  1606 # SunOS /usr/etc/install
  1607 # IRIX /sbin/install
  1608 # AIX /bin/install
  1609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1612 # ./install, which can be erroneously created by make from ./install.sh.
  1613 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1614 echo "configure:1615: checking for a BSD compatible install" >&5
  1615 if test -z "$INSTALL"; then
  1616 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1617   echo $ac_n "(cached) $ac_c" 1>&6
  1618 else
  1619     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  1620   for ac_dir in $PATH; do
  1621     # Account for people who put trailing slashes in PATH elements.
  1622     case "$ac_dir/" in
  1623     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1624     *)
  1625       # OSF1 and SCO ODT 3.0 have their own names for install.
  1626       # Don't use installbsd from OSF since it installs stuff as root
  1627       # by default.
  1628       for ac_prog in ginstall scoinst install; do
  1629         if test -f $ac_dir/$ac_prog; then
  1630 	  if test $ac_prog = install &&
  1631             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1632 	    # AIX install.  It has an incompatible calling convention.
  1633 	    :
  1634 	  else
  1635 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
  1636 	    break 2
  1637 	  fi
  1638 	fi
  1639       done
  1640       ;;
  1641     esac
  1642   done
  1643   IFS="$ac_save_IFS"
  1644 
  1645 fi
  1646   if test "${ac_cv_path_install+set}" = set; then
  1647     INSTALL="$ac_cv_path_install"
  1648   else
  1649     # As a last resort, use the slow shell script.  We don't cache a
  1650     # path for INSTALL within a source directory, because that will
  1651     # break other packages using the cache if that directory is
  1652     # removed, or if the path is relative.
  1653     INSTALL="$ac_install_sh"
  1654   fi
  1655 fi
  1656 echo "$ac_t""$INSTALL" 1>&6
  1657 
  1658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1659 # It thinks the first close brace ends the variable substitution.
  1660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1661 
  1662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1663 
  1664 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1665 
  1666 
  1667 echo $ac_n "checking target system type""... $ac_c" 1>&6
  1668 echo "configure:1669: checking target system type" >&5
  1669 
  1670 target_alias=$target
  1671 case "$target_alias" in
  1672 NONE)
  1673   case $nonopt in
  1674   NONE) target_alias=$host_alias ;;
  1675   *) target_alias=$nonopt ;;
  1676   esac ;;
  1677 esac
  1678 
  1679 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  1680 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1681 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1682 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1683 echo "$ac_t""$target" 1>&6
  1684 
  1685 case "$target" in
  1686     alpha*-*-linux*)
  1687         CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
  1688         ;;
  1689 esac
  1690 
  1691 SDL_VERSION=1.0.0
  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=$SDL_VERSION
  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      { echo "configure: error: *** SDL version $SDL_VERSION not found!" 1>&2; exit 1; }
  1922 
  1923   fi
  1924   
  1925   
  1926   rm -f conf.sdltest
  1927 
  1928 CFLAGS="$CFLAGS $SDL_CFLAGS"
  1929 LIBS="$LIBS $SDL_LIBS"
  1930 
  1931 # Check whether --enable-music-cmd or --disable-music-cmd was given.
  1932 if test "${enable_music_cmd+set}" = set; then
  1933   enableval="$enable_music_cmd"
  1934   :
  1935 else
  1936   enable_music_cmd=yes
  1937 fi
  1938 
  1939 if test x$enable_music_cmd = xyes; then
  1940     CFLAGS="$CFLAGS -DCMD_MUSIC"
  1941 fi
  1942 # Check whether --enable-music-wave or --disable-music-wave was given.
  1943 if test "${enable_music_wave+set}" = set; then
  1944   enableval="$enable_music_wave"
  1945   :
  1946 else
  1947   enable_music_wave=yes
  1948 fi
  1949 
  1950 if test x$enable_music_wave = xyes; then
  1951     CFLAGS="$CFLAGS -DWAV_MUSIC"
  1952 fi
  1953 # Check whether --enable-music-mod or --disable-music-mod was given.
  1954 if test "${enable_music_mod+set}" = set; then
  1955   enableval="$enable_music_mod"
  1956   :
  1957 else
  1958   enable_music_mod=yes
  1959 fi
  1960 
  1961 if test x$enable_music_mod = xyes; then
  1962     CFLAGS="$CFLAGS -DMOD_MUSIC -I\$(top_srcdir)/mikmod"
  1963     MUSIC_SUBDIRS="$MUSIC_SUBDIRS mikmod"
  1964 fi
  1965 # Check whether --enable-music-midi or --disable-music-midi was given.
  1966 if test "${enable_music_midi+set}" = set; then
  1967   enableval="$enable_music_midi"
  1968   :
  1969 else
  1970   enable_music_midi=yes
  1971 fi
  1972 
  1973 if test x$enable_music_midi = xyes; then
  1974     CFLAGS="$CFLAGS -DMID_MUSIC -I\$(top_srcdir)/timidity"
  1975     MUSIC_SUBDIRS="$MUSIC_SUBDIRS timidity"
  1976 fi
  1977 # Check whether --enable-music-mp3 or --disable-music-mp3 was given.
  1978 if test "${enable_music_mp3+set}" = set; then
  1979   enableval="$enable_music_mp3"
  1980   :
  1981 else
  1982   enable_music_mp3=yes
  1983 fi
  1984 
  1985 if test x$enable_music_mp3 = xyes; then
  1986     echo $ac_n "checking for SMPEG headers and libraries""... $ac_c" 1>&6
  1987 echo "configure:1988: checking for SMPEG headers and libraries" >&5
  1988     have_smpeg=no
  1989     cat > conftest.$ac_ext <<EOF
  1990 #line 1991 "configure"
  1991 #include "confdefs.h"
  1992 
  1993      #include <smpeg/smpeg.h>
  1994     
  1995 int main() {
  1996 
  1997     
  1998 ; return 0; }
  1999 EOF
  2000 if { (eval echo configure:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2001   rm -rf conftest*
  2002   
  2003     have_smpeg=yes
  2004     
  2005 else
  2006   echo "configure: failed program was:" >&5
  2007   cat conftest.$ac_ext >&5
  2008 fi
  2009 rm -f conftest*
  2010     echo "$ac_t""$have_smpeg" 1>&6
  2011     if test x$have_smpeg = xyes; then
  2012         CFLAGS="$CFLAGS -DMP3_MUSIC"
  2013         LIBS="$LIBS -lsmpeg"
  2014     fi
  2015 fi
  2016 
  2017 
  2018 
  2019 
  2020 if test x$enable_music_mod = xyes; then
  2021   USE_MIKMOD_TRUE=
  2022   USE_MIKMOD_FALSE='#'
  2023 else
  2024   USE_MIKMOD_TRUE='#'
  2025   USE_MIKMOD_FALSE=
  2026 fi
  2027 
  2028 
  2029 if test x$enable_music_midi = xyes; then
  2030   USE_TIMIDITY_TRUE=
  2031   USE_TIMIDITY_FALSE='#'
  2032 else
  2033   USE_TIMIDITY_TRUE='#'
  2034   USE_TIMIDITY_FALSE=
  2035 fi
  2036 
  2037 # Finally create all the generated files
  2038 trap '' 1 2 15
  2039 cat > confcache <<\EOF
  2040 # This file is a shell script that caches the results of configure
  2041 # tests run on this system so they can be shared between configure
  2042 # scripts and configure runs.  It is not useful on other systems.
  2043 # If it contains results you don't want to keep, you may remove or edit it.
  2044 #
  2045 # By default, configure uses ./config.cache as the cache file,
  2046 # creating it if it does not exist already.  You can give configure
  2047 # the --cache-file=FILE option to use a different cache file; that is
  2048 # what configure does when it calls configure scripts in
  2049 # subdirectories, so they share the cache.
  2050 # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2051 # config.status only pays attention to the cache file if you give it the
  2052 # --recheck option to rerun configure.
  2053 #
  2054 EOF
  2055 # The following way of writing the cache mishandles newlines in values,
  2056 # but we know of no workaround that is simple, portable, and efficient.
  2057 # So, don't put newlines in cache variables' values.
  2058 # Ultrix sh set writes to stderr and can't be redirected directly,
  2059 # and sets the high bit in the cache file unless we assign to the vars.
  2060 (set) 2>&1 |
  2061   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2062   *ac_space=\ *)
  2063     # `set' does not quote correctly, so add quotes (double-quote substitution
  2064     # turns \\\\ into \\, and sed turns \\ into \).
  2065     sed -n \
  2066       -e "s/'/'\\\\''/g" \
  2067       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2068     ;;
  2069   *)
  2070     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2071     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2072     ;;
  2073   esac >> confcache
  2074 if cmp -s $cache_file confcache; then
  2075   :
  2076 else
  2077   if test -w $cache_file; then
  2078     echo "updating cache $cache_file"
  2079     cat confcache > $cache_file
  2080   else
  2081     echo "not updating unwritable cache $cache_file"
  2082   fi
  2083 fi
  2084 rm -f confcache
  2085 
  2086 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2087 
  2088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2089 # Let make expand exec_prefix.
  2090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2091 
  2092 # Any assignment to VPATH causes Sun make to only execute
  2093 # the first set of double-colon rules, so remove it if not needed.
  2094 # If there is a colon in the path, we need to keep it.
  2095 if test "x$srcdir" = x.; then
  2096   ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
  2097 fi
  2098 
  2099 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2100 
  2101 # Transform confdefs.h into DEFS.
  2102 # Protect against shell expansion while executing Makefile rules.
  2103 # Protect against Makefile macro expansion.
  2104 cat > conftest.defs <<\EOF
  2105 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2106 s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
  2107 s%\[%\\&%g
  2108 s%\]%\\&%g
  2109 s%\$%$$%g
  2110 EOF
  2111 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2112 rm -f conftest.defs
  2113 
  2114 
  2115 # Without the "./", some shells look in PATH for config.status.
  2116 : ${CONFIG_STATUS=./config.status}
  2117 
  2118 echo creating $CONFIG_STATUS
  2119 rm -f $CONFIG_STATUS
  2120 cat > $CONFIG_STATUS <<EOF
  2121 #! /bin/sh
  2122 # Generated automatically by configure.
  2123 # Run this file to recreate the current configuration.
  2124 # This directory was configured as follows,
  2125 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2126 #
  2127 # $0 $ac_configure_args
  2128 #
  2129 # Compiler output produced by configure, useful for debugging
  2130 # configure, is in ./config.log if it exists.
  2131 
  2132 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2133 for ac_option
  2134 do
  2135   case "\$ac_option" in
  2136   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2137     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2138     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2139   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2140     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  2141     exit 0 ;;
  2142   -help | --help | --hel | --he | --h)
  2143     echo "\$ac_cs_usage"; exit 0 ;;
  2144   *) echo "\$ac_cs_usage"; exit 1 ;;
  2145   esac
  2146 done
  2147 
  2148 ac_given_srcdir=$srcdir
  2149 ac_given_INSTALL="$INSTALL"
  2150 
  2151 trap 'rm -fr `echo "
  2152 Makefile
  2153 mikmod/Makefile
  2154 timidity/Makefile
  2155 " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2156 EOF
  2157 cat >> $CONFIG_STATUS <<EOF
  2158 
  2159 # Protect against being on the right side of a sed subst in config.status.
  2160 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2161  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2162 $ac_vpsub
  2163 $extrasub
  2164 s%@SHELL@%$SHELL%g
  2165 s%@CFLAGS@%$CFLAGS%g
  2166 s%@CPPFLAGS@%$CPPFLAGS%g
  2167 s%@CXXFLAGS@%$CXXFLAGS%g
  2168 s%@FFLAGS@%$FFLAGS%g
  2169 s%@DEFS@%$DEFS%g
  2170 s%@LDFLAGS@%$LDFLAGS%g
  2171 s%@LIBS@%$LIBS%g
  2172 s%@exec_prefix@%$exec_prefix%g
  2173 s%@prefix@%$prefix%g
  2174 s%@program_transform_name@%$program_transform_name%g
  2175 s%@bindir@%$bindir%g
  2176 s%@sbindir@%$sbindir%g
  2177 s%@libexecdir@%$libexecdir%g
  2178 s%@datadir@%$datadir%g
  2179 s%@sysconfdir@%$sysconfdir%g
  2180 s%@sharedstatedir@%$sharedstatedir%g
  2181 s%@localstatedir@%$localstatedir%g
  2182 s%@libdir@%$libdir%g
  2183 s%@includedir@%$includedir%g
  2184 s%@oldincludedir@%$oldincludedir%g
  2185 s%@infodir@%$infodir%g
  2186 s%@mandir@%$mandir%g
  2187 s%@MAJOR_VERSION@%$MAJOR_VERSION%g
  2188 s%@MINOR_VERSION@%$MINOR_VERSION%g
  2189 s%@MICRO_VERSION@%$MICRO_VERSION%g
  2190 s%@INTERFACE_AGE@%$INTERFACE_AGE%g
  2191 s%@BINARY_AGE@%$BINARY_AGE%g
  2192 s%@VERSION@%$VERSION%g
  2193 s%@LT_RELEASE@%$LT_RELEASE%g
  2194 s%@LT_CURRENT@%$LT_CURRENT%g
  2195 s%@LT_REVISION@%$LT_REVISION%g
  2196 s%@LT_AGE@%$LT_AGE%g
  2197 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2198 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  2199 s%@INSTALL_DATA@%$INSTALL_DATA%g
  2200 s%@PACKAGE@%$PACKAGE%g
  2201 s%@ACLOCAL@%$ACLOCAL%g
  2202 s%@AUTOCONF@%$AUTOCONF%g
  2203 s%@AUTOMAKE@%$AUTOMAKE%g
  2204 s%@AUTOHEADER@%$AUTOHEADER%g
  2205 s%@MAKEINFO@%$MAKEINFO%g
  2206 s%@SET_MAKE@%$SET_MAKE%g
  2207 s%@CC@%$CC%g
  2208 s%@host@%$host%g
  2209 s%@host_alias@%$host_alias%g
  2210 s%@host_cpu@%$host_cpu%g
  2211 s%@host_vendor@%$host_vendor%g
  2212 s%@host_os@%$host_os%g
  2213 s%@build@%$build%g
  2214 s%@build_alias@%$build_alias%g
  2215 s%@build_cpu@%$build_cpu%g
  2216 s%@build_vendor@%$build_vendor%g
  2217 s%@build_os@%$build_os%g
  2218 s%@LD@%$LD%g
  2219 s%@NM@%$NM%g
  2220 s%@LN_S@%$LN_S%g
  2221 s%@RANLIB@%$RANLIB%g
  2222 s%@LIBTOOL@%$LIBTOOL%g
  2223 s%@target@%$target%g
  2224 s%@target_alias@%$target_alias%g
  2225 s%@target_cpu@%$target_cpu%g
  2226 s%@target_vendor@%$target_vendor%g
  2227 s%@target_os@%$target_os%g
  2228 s%@SDL_CONFIG@%$SDL_CONFIG%g
  2229 s%@SDL_CFLAGS@%$SDL_CFLAGS%g
  2230 s%@SDL_LIBS@%$SDL_LIBS%g
  2231 s%@MUSIC_SUBDIRS@%$MUSIC_SUBDIRS%g
  2232 s%@USE_MIKMOD_TRUE@%$USE_MIKMOD_TRUE%g
  2233 s%@USE_MIKMOD_FALSE@%$USE_MIKMOD_FALSE%g
  2234 s%@USE_TIMIDITY_TRUE@%$USE_TIMIDITY_TRUE%g
  2235 s%@USE_TIMIDITY_FALSE@%$USE_TIMIDITY_FALSE%g
  2236 
  2237 CEOF
  2238 EOF
  2239 
  2240 cat >> $CONFIG_STATUS <<\EOF
  2241 
  2242 # Split the substitutions into bite-sized pieces for seds with
  2243 # small command number limits, like on Digital OSF/1 and HP-UX.
  2244 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2245 ac_file=1 # Number of current file.
  2246 ac_beg=1 # First line for current file.
  2247 ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2248 ac_more_lines=:
  2249 ac_sed_cmds=""
  2250 while $ac_more_lines; do
  2251   if test $ac_beg -gt 1; then
  2252     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2253   else
  2254     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2255   fi
  2256   if test ! -s conftest.s$ac_file; then
  2257     ac_more_lines=false
  2258     rm -f conftest.s$ac_file
  2259   else
  2260     if test -z "$ac_sed_cmds"; then
  2261       ac_sed_cmds="sed -f conftest.s$ac_file"
  2262     else
  2263       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2264     fi
  2265     ac_file=`expr $ac_file + 1`
  2266     ac_beg=$ac_end
  2267     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2268   fi
  2269 done
  2270 if test -z "$ac_sed_cmds"; then
  2271   ac_sed_cmds=cat
  2272 fi
  2273 EOF
  2274 
  2275 cat >> $CONFIG_STATUS <<EOF
  2276 
  2277 CONFIG_FILES=\${CONFIG_FILES-"Makefile
  2278 mikmod/Makefile
  2279 timidity/Makefile
  2280 "}
  2281 EOF
  2282 cat >> $CONFIG_STATUS <<\EOF
  2283 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2284   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2285   case "$ac_file" in
  2286   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2287        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2288   *) ac_file_in="${ac_file}.in" ;;
  2289   esac
  2290 
  2291   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2292 
  2293   # Remove last slash and all that follows it.  Not all systems have dirname.
  2294   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2295   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2296     # The file is in a subdirectory.
  2297     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2298     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2299     # A "../" for each directory in $ac_dir_suffix.
  2300     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2301   else
  2302     ac_dir_suffix= ac_dots=
  2303   fi
  2304 
  2305   case "$ac_given_srcdir" in
  2306   .)  srcdir=.
  2307       if test -z "$ac_dots"; then top_srcdir=.
  2308       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2309   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2310   *) # Relative path.
  2311     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2312     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2313   esac
  2314 
  2315   case "$ac_given_INSTALL" in
  2316   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2317   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2318   esac
  2319 
  2320   echo creating "$ac_file"
  2321   rm -f "$ac_file"
  2322   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2323   case "$ac_file" in
  2324   *Makefile*) ac_comsub="1i\\
  2325 # $configure_input" ;;
  2326   *) ac_comsub= ;;
  2327   esac
  2328 
  2329   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2330   sed -e "$ac_comsub
  2331 s%@configure_input@%$configure_input%g
  2332 s%@srcdir@%$srcdir%g
  2333 s%@top_srcdir@%$top_srcdir%g
  2334 s%@INSTALL@%$INSTALL%g
  2335 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2336 fi; done
  2337 rm -f conftest.s*
  2338 
  2339 EOF
  2340 cat >> $CONFIG_STATUS <<EOF
  2341 
  2342 EOF
  2343 cat >> $CONFIG_STATUS <<\EOF
  2344 
  2345 exit 0
  2346 EOF
  2347 chmod +x $CONFIG_STATUS
  2348 rm -fr confdefs* $ac_clean_files
  2349 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2350