Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  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.   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)"
  16. ac_help="$ac_help
  17.   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
  18. ac_help="$ac_help
  19.   --disable-sdltest       Do not try to compile and run a test SDL program"
  20. ac_help="$ac_help
  21.   --enable-asm            enable i686 assembly routines [default=no]"
  22.  
  23. # Initialize some variables set by options.
  24. # The variables have the same names as the options, with
  25. # dashes changed to underlines.
  26. build=NONE
  27. cache_file=./config.cache
  28. exec_prefix=NONE
  29. host=NONE
  30. no_create=
  31. nonopt=NONE
  32. no_recursion=
  33. prefix=NONE
  34. program_prefix=NONE
  35. program_suffix=NONE
  36. program_transform_name=s,x,x,
  37. silent=
  38. site=
  39. srcdir=
  40. target=NONE
  41. verbose=
  42. x_includes=NONE
  43. x_libraries=NONE
  44. bindir='${exec_prefix}/bin'
  45. sbindir='${exec_prefix}/sbin'
  46. libexecdir='${exec_prefix}/libexec'
  47. datadir='${prefix}/share'
  48. sysconfdir='${prefix}/etc'
  49. sharedstatedir='${prefix}/com'
  50. localstatedir='${prefix}/var'
  51. libdir='${exec_prefix}/lib'
  52. includedir='${prefix}/include'
  53. oldincludedir='/usr/include'
  54. infodir='${prefix}/info'
  55. mandir='${prefix}/man'
  56.  
  57. # Initialize some other variables.
  58. subdirs=
  59. MFLAGS= MAKEFLAGS=
  60. SHELL=${CONFIG_SHELL-/bin/sh}
  61. # Maximum number of lines to put in a shell here document.
  62. ac_max_here_lines=12
  63.  
  64. ac_prev=
  65. for ac_option
  66. do
  67.  
  68.   # If the previous option needs an argument, assign it.
  69.   if test -n "$ac_prev"; then
  70.     eval "$ac_prev=\$ac_option"
  71.     ac_prev=
  72.     continue
  73.   fi
  74.  
  75.   case "$ac_option" in
  76.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  77.   *) ac_optarg= ;;
  78.   esac
  79.  
  80.   # Accept the important Cygnus configure options, so we can diagnose typos.
  81.  
  82.   case "$ac_option" in
  83.  
  84.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  85.     ac_prev=bindir ;;
  86.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  87.     bindir="$ac_optarg" ;;
  88.  
  89.   -build | --build | --buil | --bui | --bu)
  90.     ac_prev=build ;;
  91.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  92.     build="$ac_optarg" ;;
  93.  
  94.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  95.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  96.     ac_prev=cache_file ;;
  97.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  98.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  99.     cache_file="$ac_optarg" ;;
  100.  
  101.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  102.     ac_prev=datadir ;;
  103.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  104.   | --da=*)
  105.     datadir="$ac_optarg" ;;
  106.  
  107.   -disable-* | --disable-*)
  108.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  109.     # Reject names that are not valid shell variable names.
  110.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  111.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  112.     fi
  113.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  114.     eval "enable_${ac_feature}=no" ;;
  115.  
  116.   -enable-* | --enable-*)
  117.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  118.     # Reject names that are not valid shell variable names.
  119.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  120.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  121.     fi
  122.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  123.     case "$ac_option" in
  124.       *=*) ;;
  125.       *) ac_optarg=yes ;;
  126.     esac
  127.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  128.  
  129.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  130.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  131.   | --exec | --exe | --ex)
  132.     ac_prev=exec_prefix ;;
  133.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  134.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  135.   | --exec=* | --exe=* | --ex=*)
  136.     exec_prefix="$ac_optarg" ;;
  137.  
  138.   -gas | --gas | --ga | --g)
  139.     # Obsolete; use --with-gas.
  140.     with_gas=yes ;;
  141.  
  142.   -help | --help | --hel | --he)
  143.     # Omit some internal or obsolete options to make the list less imposing.
  144.     # This message is too long to be a string in the A/UX 3.1 sh.
  145.     cat << EOF
  146. Usage: configure [options] [host]
  147. Options: [defaults in brackets after descriptions]
  148. Configuration:
  149.   --cache-file=FILE       cache test results in FILE
  150.   --help                  print this message
  151.   --no-create             do not create output files
  152.   --quiet, --silent       do not print \`checking...' messages
  153.   --version               print the version of autoconf that created configure
  154. Directory and file names:
  155.   --prefix=PREFIX         install architecture-independent files in PREFIX
  156.                           [$ac_default_prefix]
  157.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  158.                           [same as prefix]
  159.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  160.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  161.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  162.   --datadir=DIR           read-only architecture-independent data in DIR
  163.                           [PREFIX/share]
  164.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  165.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  166.                           [PREFIX/com]
  167.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  168.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  169.   --includedir=DIR        C header files in DIR [PREFIX/include]
  170.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  171.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  172.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  173.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  174.   --program-prefix=PREFIX prepend PREFIX to installed program names
  175.   --program-suffix=SUFFIX append SUFFIX to installed program names
  176.   --program-transform-name=PROGRAM
  177.                           run sed PROGRAM on installed program names
  178. EOF
  179.     cat << EOF
  180. Host type:
  181.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  182.   --host=HOST             configure for HOST [guessed]
  183.   --target=TARGET         configure for TARGET [TARGET=HOST]
  184. Features and packages:
  185.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  186.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  187.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  188.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  189.   --x-includes=DIR        X include files are in DIR
  190.   --x-libraries=DIR       X library files are in DIR
  191. EOF
  192.     if test -n "$ac_help"; then
  193.       echo "--enable and --with options recognized:$ac_help"
  194.     fi
  195.     exit 0 ;;
  196.  
  197.   -host | --host | --hos | --ho)
  198.     ac_prev=host ;;
  199.   -host=* | --host=* | --hos=* | --ho=*)
  200.     host="$ac_optarg" ;;
  201.  
  202.   -includedir | --includedir | --includedi | --included | --include \
  203.   | --includ | --inclu | --incl | --inc)
  204.     ac_prev=includedir ;;
  205.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  206.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  207.     includedir="$ac_optarg" ;;
  208.  
  209.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  210.     ac_prev=infodir ;;
  211.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  212.     infodir="$ac_optarg" ;;
  213.  
  214.   -libdir | --libdir | --libdi | --libd)
  215.     ac_prev=libdir ;;
  216.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  217.     libdir="$ac_optarg" ;;
  218.  
  219.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  220.   | --libexe | --libex | --libe)
  221.     ac_prev=libexecdir ;;
  222.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  223.   | --libexe=* | --libex=* | --libe=*)
  224.     libexecdir="$ac_optarg" ;;
  225.  
  226.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  227.   | --localstate | --localstat | --localsta | --localst \
  228.   | --locals | --local | --loca | --loc | --lo)
  229.     ac_prev=localstatedir ;;
  230.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  231.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  232.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  233.     localstatedir="$ac_optarg" ;;
  234.  
  235.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  236.     ac_prev=mandir ;;
  237.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  238.     mandir="$ac_optarg" ;;
  239.  
  240.   -nfp | --nfp | --nf)
  241.     # Obsolete; use --without-fp.
  242.     with_fp=no ;;
  243.  
  244.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  245.   | --no-cr | --no-c)
  246.     no_create=yes ;;
  247.  
  248.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  249.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  250.     no_recursion=yes ;;
  251.  
  252.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  253.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  254.   | --oldin | --oldi | --old | --ol | --o)
  255.     ac_prev=oldincludedir ;;
  256.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  257.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  258.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  259.     oldincludedir="$ac_optarg" ;;
  260.  
  261.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  262.     ac_prev=prefix ;;
  263.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  264.     prefix="$ac_optarg" ;;
  265.  
  266.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  267.   | --program-pre | --program-pr | --program-p)
  268.     ac_prev=program_prefix ;;
  269.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  270.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  271.     program_prefix="$ac_optarg" ;;
  272.  
  273.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  274.   | --program-suf | --program-su | --program-s)
  275.     ac_prev=program_suffix ;;
  276.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  277.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  278.     program_suffix="$ac_optarg" ;;
  279.  
  280.   -program-transform-name | --program-transform-name \
  281.   | --program-transform-nam | --program-transform-na \
  282.   | --program-transform-n | --program-transform- \
  283.   | --program-transform | --program-transfor \
  284.   | --program-transfo | --program-transf \
  285.   | --program-trans | --program-tran \
  286.   | --progr-tra | --program-tr | --program-t)
  287.     ac_prev=program_transform_name ;;
  288.   -program-transform-name=* | --program-transform-name=* \
  289.   | --program-transform-nam=* | --program-transform-na=* \
  290.   | --program-transform-n=* | --program-transform-=* \
  291.   | --program-transform=* | --program-transfor=* \
  292.   | --program-transfo=* | --program-transf=* \
  293.   | --program-trans=* | --program-tran=* \
  294.   | --progr-tra=* | --program-tr=* | --program-t=*)
  295.     program_transform_name="$ac_optarg" ;;
  296.  
  297.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  298.   | -silent | --silent | --silen | --sile | --sil)
  299.     silent=yes ;;
  300.  
  301.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  302.     ac_prev=sbindir ;;
  303.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  304.   | --sbi=* | --sb=*)
  305.     sbindir="$ac_optarg" ;;
  306.  
  307.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  308.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  309.   | --sharedst | --shareds | --shared | --share | --shar \
  310.   | --sha | --sh)
  311.     ac_prev=sharedstatedir ;;
  312.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  313.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  314.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  315.   | --sha=* | --sh=*)
  316.     sharedstatedir="$ac_optarg" ;;
  317.  
  318.   -site | --site | --sit)
  319.     ac_prev=site ;;
  320.   -site=* | --site=* | --sit=*)
  321.     site="$ac_optarg" ;;
  322.  
  323.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  324.     ac_prev=srcdir ;;
  325.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  326.     srcdir="$ac_optarg" ;;
  327.  
  328.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  329.   | --syscon | --sysco | --sysc | --sys | --sy)
  330.     ac_prev=sysconfdir ;;
  331.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  332.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  333.     sysconfdir="$ac_optarg" ;;
  334.  
  335.   -target | --target | --targe | --targ | --tar | --ta | --t)
  336.     ac_prev=target ;;
  337.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  338.     target="$ac_optarg" ;;
  339.  
  340.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  341.     verbose=yes ;;
  342.  
  343.   -version | --version | --versio | --versi | --vers)
  344.     echo "configure generated by autoconf version 2.13"
  345.     exit 0 ;;
  346.  
  347.   -with-* | --with-*)
  348.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  349.     # Reject names that are not valid shell variable names.
  350.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  351.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  352.     fi
  353.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  354.     case "$ac_option" in
  355.       *=*) ;;
  356.       *) ac_optarg=yes ;;
  357.     esac
  358.     eval "with_${ac_package}='$ac_optarg'" ;;
  359.  
  360.   -without-* | --without-*)
  361.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  362.     # Reject names that are not valid shell variable names.
  363.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  364.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  365.     fi
  366.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  367.     eval "with_${ac_package}=no" ;;
  368.  
  369.   --x)
  370.     # Obsolete; use --with-x.
  371.     with_x=yes ;;
  372.  
  373.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  374.   | --x-incl | --x-inc | --x-in | --x-i)
  375.     ac_prev=x_includes ;;
  376.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  377.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  378.     x_includes="$ac_optarg" ;;
  379.  
  380.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  381.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  382.     ac_prev=x_libraries ;;
  383.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  384.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  385.     x_libraries="$ac_optarg" ;;
  386.  
  387.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  388.     ;;
  389.  
  390.   *)
  391.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  392.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  393.     fi
  394.     if test "x$nonopt" != xNONE; then
  395.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  396.     fi
  397.     nonopt="$ac_option"
  398.     ;;
  399.  
  400.   esac
  401. done
  402.  
  403. if test -n "$ac_prev"; then
  404.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  405. fi
  406.  
  407. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  408.  
  409. # File descriptor usage:
  410. # 0 standard input
  411. # 1 file creation
  412. # 2 errors and warnings
  413. # 3 some systems may open it to /dev/tty
  414. # 4 used on the Kubota Titan
  415. # 6 checking for... messages and results
  416. # 5 compiler messages saved in config.log
  417. if test "$silent" = yes; then
  418.   exec 6>/dev/null
  419. else
  420.   exec 6>&1
  421. fi
  422. exec 5>./config.log
  423.  
  424. echo "\
  425. This file contains any messages produced by compilers while
  426. running configure, to aid debugging if configure makes a mistake.
  427. " 1>&5
  428.  
  429. # Strip out --no-create and --no-recursion so they do not pile up.
  430. # Also quote any args containing shell metacharacters.
  431. ac_configure_args=
  432. for ac_arg
  433. do
  434.   case "$ac_arg" in
  435.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  436.   | --no-cr | --no-c) ;;
  437.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  438.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  439.   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  440.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  441.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  442.   esac
  443. done
  444.  
  445. # NLS nuisances.
  446. # Only set these to C if already set.  These must not be set unconditionally
  447. # because not all systems understand e.g. LANG=C (notably SCO).
  448. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  449. # Non-C LC_CTYPE values break the ctype check.
  450. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  451. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  452. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  453. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  454.  
  455. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  456. rm -rf conftest* confdefs.h
  457. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  458. echo > confdefs.h
  459.  
  460. # A filename unique to this package, relative to the directory that
  461. # configure is in, which we can look for to find out if srcdir is correct.
  462. ac_unique_file=README.SDL
  463.  
  464. # Find the source files, if location was not specified.
  465. if test -z "$srcdir"; then
  466.   ac_srcdir_defaulted=yes
  467.   # Try the directory containing this script, then its parent.
  468.   ac_prog=$0
  469.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  470.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  471.   srcdir=$ac_confdir
  472.   if test ! -r $srcdir/$ac_unique_file; then
  473.     srcdir=..
  474.   fi
  475. else
  476.   ac_srcdir_defaulted=no
  477. fi
  478. if test ! -r $srcdir/$ac_unique_file; then
  479.   if test "$ac_srcdir_defaulted" = yes; then
  480.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  481.   else
  482.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  483.   fi
  484. fi
  485. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  486.  
  487. # Prefer explicitly selected file to automatically selected ones.
  488. if test -z "$CONFIG_SITE"; then
  489.   if test "x$prefix" != xNONE; then
  490.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  491.   else
  492.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  493.   fi
  494. fi
  495. for ac_site_file in $CONFIG_SITE; do
  496.   if test -r "$ac_site_file"; then
  497.     echo "loading site script $ac_site_file"
  498.     . "$ac_site_file"
  499.   fi
  500. done
  501.  
  502. if test -r "$cache_file"; then
  503.   echo "loading cache $cache_file"
  504.   . $cache_file
  505. else
  506.   echo "creating cache $cache_file"
  507.   > $cache_file
  508. fi
  509.  
  510. ac_ext=c
  511. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  512. ac_cpp='$CPP $CPPFLAGS'
  513. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  514. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  515. cross_compiling=$ac_cv_prog_cc_cross
  516.  
  517. ac_exeext=
  518. ac_objext=o
  519. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  520.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  521.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  522.     ac_n= ac_c='
  523. ' ac_t='        '
  524.   else
  525.     ac_n=-n ac_c= ac_t=
  526.   fi
  527. else
  528.   ac_n= ac_c='\c' ac_t=
  529. fi
  530.  
  531.  
  532.  
  533. ac_aux_dir=
  534. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  535.   if test -f $ac_dir/install-sh; then
  536.     ac_aux_dir=$ac_dir
  537.     ac_install_sh="$ac_aux_dir/install-sh -c"
  538.     break
  539.   elif test -f $ac_dir/install.sh; then
  540.     ac_aux_dir=$ac_dir
  541.     ac_install_sh="$ac_aux_dir/install.sh -c"
  542.     break
  543.   fi
  544. done
  545. if test -z "$ac_aux_dir"; then
  546.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  547. fi
  548. ac_config_guess=$ac_aux_dir/config.guess
  549. ac_config_sub=$ac_aux_dir/config.sub
  550. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  551.  
  552. # Find a good install program.  We prefer a C program (faster),
  553. # so one script is as good as another.  But avoid the broken or
  554. # incompatible versions:
  555. # SysV /etc/install, /usr/sbin/install
  556. # SunOS /usr/etc/install
  557. # IRIX /sbin/install
  558. # AIX /bin/install
  559. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  560. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  561. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  562. # ./install, which can be erroneously created by make from ./install.sh.
  563. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  564. echo "configure:565: checking for a BSD compatible install" >&5
  565. if test -z "$INSTALL"; then
  566. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  567.   echo $ac_n "(cached) $ac_c" 1>&6
  568. else
  569.     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
  570.   for ac_dir in $PATH; do
  571.     # Account for people who put trailing slashes in PATH elements.
  572.     case "$ac_dir/" in
  573.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  574.     *)
  575.       # OSF1 and SCO ODT 3.0 have their own names for install.
  576.       # Don't use installbsd from OSF since it installs stuff as root
  577.       # by default.
  578.       for ac_prog in ginstall scoinst install; do
  579.         if test -f $ac_dir/$ac_prog; then
  580.           if test $ac_prog = install &&
  581.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  582.             # AIX install.  It has an incompatible calling convention.
  583.             :
  584.           else
  585.             ac_cv_path_install="$ac_dir/$ac_prog -c"
  586.             break 2
  587.           fi
  588.         fi
  589.       done
  590.       ;;
  591.     esac
  592.   done
  593.   IFS="$ac_save_IFS"
  594.  
  595. fi
  596.   if test "${ac_cv_path_install+set}" = set; then
  597.     INSTALL="$ac_cv_path_install"
  598.   else
  599.     # As a last resort, use the slow shell script.  We don't cache a
  600.     # path for INSTALL within a source directory, because that will
  601.     # break other packages using the cache if that directory is
  602.     # removed, or if the path is relative.
  603.     INSTALL="$ac_install_sh"
  604.   fi
  605. fi
  606. echo "$ac_t""$INSTALL" 1>&6
  607.  
  608. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  609. # It thinks the first close brace ends the variable substitution.
  610. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  611.  
  612. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  613.  
  614. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  615.  
  616. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  617. echo "configure:618: checking whether build environment is sane" >&5
  618. # Just in case
  619. sleep 1
  620. echo timestamp > conftestfile
  621. # Do `set' in a subshell so we don't clobber the current shell's
  622. # arguments.  Must try -L first in case configure is actually a
  623. # symlink; some systems play weird games with the mod time of symlinks
  624. # (eg FreeBSD returns the mod time of the symlink's containing
  625. # directory).
  626. if (
  627.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  628.    if test "$*" = "X"; then
  629.       # -L didn't work.
  630.       set X `ls -t $srcdir/configure conftestfile`
  631.    fi
  632.    if test "$*" != "X $srcdir/configure conftestfile" \
  633.       && test "$*" != "X conftestfile $srcdir/configure"; then
  634.  
  635.       # If neither matched, then we have a broken ls.  This can happen
  636.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  637.       # broken ls alias from the environment.  This has actually
  638.       # happened.  Such a system could not be considered "sane".
  639.       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  640. alias in your environment" 1>&2; exit 1; }
  641.    fi
  642.  
  643.    test "$2" = conftestfile
  644.    )
  645. then
  646.    # Ok.
  647.    :
  648. else
  649.    { echo "configure: error: newly created file is older than distributed files!
  650. Check your system clock" 1>&2; exit 1; }
  651. fi
  652. rm -f conftest*
  653. echo "$ac_t""yes" 1>&6
  654. if test "$program_transform_name" = s,x,x,; then
  655.   program_transform_name=
  656. else
  657.   # Double any \ or $.  echo might interpret backslashes.
  658.   cat <<\EOF_SED > conftestsed
  659. s,\\,\\\\,g; s,\$,$$,g
  660. EOF_SED
  661.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  662.   rm -f conftestsed
  663. fi
  664. test "$program_prefix" != NONE &&
  665.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  666. # Use a double $ so make ignores it.
  667. test "$program_suffix" != NONE &&
  668.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  669.  
  670. # sed with no file args requires a program.
  671. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  672.  
  673. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  674. echo "configure:675: checking whether ${MAKE-make} sets \${MAKE}" >&5
  675. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  676. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  677.   echo $ac_n "(cached) $ac_c" 1>&6
  678. else
  679.   cat > conftestmake <<\EOF
  680. all:
  681.         @echo 'ac_maketemp="${MAKE}"'
  682. EOF
  683. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  684. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  685. if test -n "$ac_maketemp"; then
  686.   eval ac_cv_prog_make_${ac_make}_set=yes
  687. else
  688.   eval ac_cv_prog_make_${ac_make}_set=no
  689. fi
  690. rm -f conftestmake
  691. fi
  692. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  693.   echo "$ac_t""yes" 1>&6
  694.   SET_MAKE=
  695. else
  696.   echo "$ac_t""no" 1>&6
  697.   SET_MAKE="MAKE=${MAKE-make}"
  698. fi
  699.  
  700.  
  701. PACKAGE=sdlquake
  702.  
  703. VERSION=1.0.9
  704.  
  705. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  706.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  707. fi
  708. cat >> confdefs.h <<EOF
  709. #define PACKAGE "$PACKAGE"
  710. EOF
  711.  
  712. cat >> confdefs.h <<EOF
  713. #define VERSION "$VERSION"
  714. EOF
  715.  
  716.  
  717.  
  718. missing_dir=`cd $ac_aux_dir && pwd`
  719. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  720. echo "configure:721: checking for working aclocal" >&5
  721. # Run test in a subshell; some versions of sh will print an error if
  722. # an executable is not found, even if stderr is redirected.
  723. # Redirect stdin to placate older versions of autoconf.  Sigh.
  724. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  725.    ACLOCAL=aclocal
  726.    echo "$ac_t""found" 1>&6
  727. else
  728.    ACLOCAL="$missing_dir/missing aclocal"
  729.    echo "$ac_t""missing" 1>&6
  730. fi
  731.  
  732. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  733. echo "configure:734: checking for working autoconf" >&5
  734. # Run test in a subshell; some versions of sh will print an error if
  735. # an executable is not found, even if stderr is redirected.
  736. # Redirect stdin to placate older versions of autoconf.  Sigh.
  737. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  738.    AUTOCONF=autoconf
  739.    echo "$ac_t""found" 1>&6
  740. else
  741.    AUTOCONF="$missing_dir/missing autoconf"
  742.    echo "$ac_t""missing" 1>&6
  743. fi
  744.  
  745. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  746. echo "configure:747: checking for working automake" >&5
  747. # Run test in a subshell; some versions of sh will print an error if
  748. # an executable is not found, even if stderr is redirected.
  749. # Redirect stdin to placate older versions of autoconf.  Sigh.
  750. if (automake --version) < /dev/null > /dev/null 2>&1; then
  751.    AUTOMAKE=automake
  752.    echo "$ac_t""found" 1>&6
  753. else
  754.    AUTOMAKE="$missing_dir/missing automake"
  755.    echo "$ac_t""missing" 1>&6
  756. fi
  757.  
  758. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  759. echo "configure:760: checking for working autoheader" >&5
  760. # Run test in a subshell; some versions of sh will print an error if
  761. # an executable is not found, even if stderr is redirected.
  762. # Redirect stdin to placate older versions of autoconf.  Sigh.
  763. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  764.    AUTOHEADER=autoheader
  765.    echo "$ac_t""found" 1>&6
  766. else
  767.    AUTOHEADER="$missing_dir/missing autoheader"
  768.    echo "$ac_t""missing" 1>&6
  769. fi
  770.  
  771. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  772. echo "configure:773: checking for working makeinfo" >&5
  773. # Run test in a subshell; some versions of sh will print an error if
  774. # an executable is not found, even if stderr is redirected.
  775. # Redirect stdin to placate older versions of autoconf.  Sigh.
  776. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  777.    MAKEINFO=makeinfo
  778.    echo "$ac_t""found" 1>&6
  779. else
  780.    MAKEINFO="$missing_dir/missing makeinfo"
  781.    echo "$ac_t""missing" 1>&6
  782. fi
  783.  
  784.  
  785.  
  786.  
  787. # Make sure we can run config.sub.
  788. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  789. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  790. fi
  791.  
  792. echo $ac_n "checking host system type""... $ac_c" 1>&6
  793. echo "configure:794: checking host system type" >&5
  794.  
  795. host_alias=$host
  796. case "$host_alias" in
  797. NONE)
  798.   case $nonopt in
  799.   NONE)
  800.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  801.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  802.     fi ;;
  803.   *) host_alias=$nonopt ;;
  804.   esac ;;
  805. esac
  806.  
  807. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  808. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  809. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  810. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  811. echo "$ac_t""$host" 1>&6
  812.  
  813. echo $ac_n "checking target system type""... $ac_c" 1>&6
  814. echo "configure:815: checking target system type" >&5
  815.  
  816. target_alias=$target
  817. case "$target_alias" in
  818. NONE)
  819.   case $nonopt in
  820.   NONE) target_alias=$host_alias ;;
  821.   *) target_alias=$nonopt ;;
  822.   esac ;;
  823. esac
  824.  
  825. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  826. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  827. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  828. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  829. echo "$ac_t""$target" 1>&6
  830.  
  831.  
  832.  
  833. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  834. echo "configure:835: checking whether ${MAKE-make} sets \${MAKE}" >&5
  835. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  836. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  837.   echo $ac_n "(cached) $ac_c" 1>&6
  838. else
  839.   cat > conftestmake <<\EOF
  840. all:
  841.         @echo 'ac_maketemp="${MAKE}"'
  842. EOF
  843. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  844. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  845. if test -n "$ac_maketemp"; then
  846.   eval ac_cv_prog_make_${ac_make}_set=yes
  847. else
  848.   eval ac_cv_prog_make_${ac_make}_set=no
  849. fi
  850. rm -f conftestmake
  851. fi
  852. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  853.   echo "$ac_t""yes" 1>&6
  854.   SET_MAKE=
  855. else
  856.   echo "$ac_t""no" 1>&6
  857.   SET_MAKE="MAKE=${MAKE-make}"
  858. fi
  859.  
  860. # Extract the first word of "gcc", so it can be a program name with args.
  861. set dummy gcc; ac_word=$2
  862. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  863. echo "configure:864: checking for $ac_word" >&5
  864. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  865.   echo $ac_n "(cached) $ac_c" 1>&6
  866. else
  867.   if test -n "$CC"; then
  868.   ac_cv_prog_CC="$CC" # Let the user override the test.
  869. else
  870.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  871.   ac_dummy="$PATH"
  872.   for ac_dir in $ac_dummy; do
  873.     test -z "$ac_dir" && ac_dir=.
  874.     if test -f $ac_dir/$ac_word; then
  875.       ac_cv_prog_CC="gcc"
  876.       break
  877.     fi
  878.   done
  879.   IFS="$ac_save_ifs"
  880. fi
  881. fi
  882. CC="$ac_cv_prog_CC"
  883. if test -n "$CC"; then
  884.   echo "$ac_t""$CC" 1>&6
  885. else
  886.   echo "$ac_t""no" 1>&6
  887. fi
  888.  
  889. if test -z "$CC"; then
  890.   # Extract the first word of "cc", so it can be a program name with args.
  891. set dummy cc; ac_word=$2
  892. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  893. echo "configure:894: checking for $ac_word" >&5
  894. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  895.   echo $ac_n "(cached) $ac_c" 1>&6
  896. else
  897.   if test -n "$CC"; then
  898.   ac_cv_prog_CC="$CC" # Let the user override the test.
  899. else
  900.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  901.   ac_prog_rejected=no
  902.   ac_dummy="$PATH"
  903.   for ac_dir in $ac_dummy; do
  904.     test -z "$ac_dir" && ac_dir=.
  905.     if test -f $ac_dir/$ac_word; then
  906.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  907.         ac_prog_rejected=yes
  908.         continue
  909.       fi
  910.       ac_cv_prog_CC="cc"
  911.       break
  912.     fi
  913.   done
  914.   IFS="$ac_save_ifs"
  915. if test $ac_prog_rejected = yes; then
  916.   # We found a bogon in the path, so make sure we never use it.
  917.   set dummy $ac_cv_prog_CC
  918.   shift
  919.   if test $# -gt 0; then
  920.     # We chose a different compiler from the bogus one.
  921.     # However, it has the same basename, so the bogon will be chosen
  922.     # first if we set CC to just the basename; use the full file name.
  923.     shift
  924.     set dummy "$ac_dir/$ac_word" "$@"
  925.     shift
  926.     ac_cv_prog_CC="$@"
  927.   fi
  928. fi
  929. fi
  930. fi
  931. CC="$ac_cv_prog_CC"
  932. if test -n "$CC"; then
  933.   echo "$ac_t""$CC" 1>&6
  934. else
  935.   echo "$ac_t""no" 1>&6
  936. fi
  937.  
  938.   if test -z "$CC"; then
  939.     case "`uname -s`" in
  940.     *win32* | *WIN32*)
  941.       # Extract the first word of "cl", so it can be a program name with args.
  942. set dummy cl; ac_word=$2
  943. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  944. echo "configure:945: checking for $ac_word" >&5
  945. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  946.   echo $ac_n "(cached) $ac_c" 1>&6
  947. else
  948.   if test -n "$CC"; then
  949.   ac_cv_prog_CC="$CC" # Let the user override the test.
  950. else
  951.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  952.   ac_dummy="$PATH"
  953.   for ac_dir in $ac_dummy; do
  954.     test -z "$ac_dir" && ac_dir=.
  955.     if test -f $ac_dir/$ac_word; then
  956.       ac_cv_prog_CC="cl"
  957.       break
  958.     fi
  959.   done
  960.   IFS="$ac_save_ifs"
  961. fi
  962. fi
  963. CC="$ac_cv_prog_CC"
  964. if test -n "$CC"; then
  965.   echo "$ac_t""$CC" 1>&6
  966. else
  967.   echo "$ac_t""no" 1>&6
  968. fi
  969.  ;;
  970.     esac
  971.   fi
  972.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  973. fi
  974.  
  975. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  976. echo "configure:977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  977.  
  978. ac_ext=c
  979. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  980. ac_cpp='$CPP $CPPFLAGS'
  981. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  982. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  983. cross_compiling=$ac_cv_prog_cc_cross
  984.  
  985. cat > conftest.$ac_ext << EOF
  986.  
  987. #line 988 "configure"
  988. #include "confdefs.h"
  989.  
  990. main(){return(0);}
  991. EOF
  992. if { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  993.   ac_cv_prog_cc_works=yes
  994.   # If we can't run a trivial program, we are probably using a cross compiler.
  995.   if (./conftest; exit) 2>/dev/null; then
  996.     ac_cv_prog_cc_cross=no
  997.   else
  998.     ac_cv_prog_cc_cross=yes
  999.   fi
  1000. else
  1001.   echo "configure: failed program was:" >&5
  1002.   cat conftest.$ac_ext >&5
  1003.   ac_cv_prog_cc_works=no
  1004. fi
  1005. rm -fr conftest*
  1006. ac_ext=c
  1007. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1008. ac_cpp='$CPP $CPPFLAGS'
  1009. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1010. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1011. cross_compiling=$ac_cv_prog_cc_cross
  1012.  
  1013. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1014. if test $ac_cv_prog_cc_works = no; then
  1015.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1016. fi
  1017. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1018. echo "configure:1019: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1019. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1020. cross_compiling=$ac_cv_prog_cc_cross
  1021.  
  1022. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1023. echo "configure:1024: checking whether we are using GNU C" >&5
  1024. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1025.   echo $ac_n "(cached) $ac_c" 1>&6
  1026. else
  1027.   cat > conftest.c <<EOF
  1028. #ifdef __GNUC__
  1029.   yes;
  1030. #endif
  1031. EOF
  1032. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1033.   ac_cv_prog_gcc=yes
  1034. else
  1035.   ac_cv_prog_gcc=no
  1036. fi
  1037. fi
  1038.  
  1039. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1040.  
  1041. if test $ac_cv_prog_gcc = yes; then
  1042.   GCC=yes
  1043. else
  1044.   GCC=
  1045. fi
  1046.  
  1047. ac_test_CFLAGS="${CFLAGS+set}"
  1048. ac_save_CFLAGS="$CFLAGS"
  1049. CFLAGS=
  1050. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1051. echo "configure:1052: checking whether ${CC-cc} accepts -g" >&5
  1052. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1053.   echo $ac_n "(cached) $ac_c" 1>&6
  1054. else
  1055.   echo 'void f(){}' > conftest.c
  1056. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1057.   ac_cv_prog_cc_g=yes
  1058. else
  1059.   ac_cv_prog_cc_g=no
  1060. fi
  1061. rm -f conftest*
  1062.  
  1063. fi
  1064.  
  1065. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1066. if test "$ac_test_CFLAGS" = set; then
  1067.   CFLAGS="$ac_save_CFLAGS"
  1068. elif test $ac_cv_prog_cc_g = yes; then
  1069.   if test "$GCC" = yes; then
  1070.     CFLAGS="-g -O2"
  1071.   else
  1072.     CFLAGS="-g"
  1073.   fi
  1074. else
  1075.   if test "$GCC" = yes; then
  1076.     CFLAGS="-O2"
  1077.   else
  1078.     CFLAGS=
  1079.   fi
  1080. fi
  1081.  
  1082. # Find a good install program.  We prefer a C program (faster),
  1083. # so one script is as good as another.  But avoid the broken or
  1084. # incompatible versions:
  1085. # SysV /etc/install, /usr/sbin/install
  1086. # SunOS /usr/etc/install
  1087. # IRIX /sbin/install
  1088. # AIX /bin/install
  1089. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1090. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1091. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1092. # ./install, which can be erroneously created by make from ./install.sh.
  1093. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1094. echo "configure:1095: checking for a BSD compatible install" >&5
  1095. if test -z "$INSTALL"; then
  1096. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1097.   echo $ac_n "(cached) $ac_c" 1>&6
  1098. else
  1099.     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
  1100.   for ac_dir in $PATH; do
  1101.     # Account for people who put trailing slashes in PATH elements.
  1102.     case "$ac_dir/" in
  1103.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1104.     *)
  1105.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1106.       # Don't use installbsd from OSF since it installs stuff as root
  1107.       # by default.
  1108.       for ac_prog in ginstall scoinst install; do
  1109.         if test -f $ac_dir/$ac_prog; then
  1110.           if test $ac_prog = install &&
  1111.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1112.             # AIX install.  It has an incompatible calling convention.
  1113.             :
  1114.           else
  1115.             ac_cv_path_install="$ac_dir/$ac_prog -c"
  1116.             break 2
  1117.           fi
  1118.         fi
  1119.       done
  1120.       ;;
  1121.     esac
  1122.   done
  1123.   IFS="$ac_save_IFS"
  1124.  
  1125. fi
  1126.   if test "${ac_cv_path_install+set}" = set; then
  1127.     INSTALL="$ac_cv_path_install"
  1128.   else
  1129.     # As a last resort, use the slow shell script.  We don't cache a
  1130.     # path for INSTALL within a source directory, because that will
  1131.     # break other packages using the cache if that directory is
  1132.     # removed, or if the path is relative.
  1133.     INSTALL="$ac_install_sh"
  1134.   fi
  1135. fi
  1136. echo "$ac_t""$INSTALL" 1>&6
  1137.  
  1138. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1139. # It thinks the first close brace ends the variable substitution.
  1140. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1141.  
  1142. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1143.  
  1144. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1145.  
  1146.  
  1147. echo $ac_n "checking target system type""... $ac_c" 1>&6
  1148. echo "configure:1149: checking target system type" >&5
  1149.  
  1150. target_alias=$target
  1151. case "$target_alias" in
  1152. NONE)
  1153.   case $nonopt in
  1154.   NONE) target_alias=$host_alias ;;
  1155.   *) target_alias=$nonopt ;;
  1156.   esac ;;
  1157. esac
  1158.  
  1159. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  1160. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1161. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1162. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1163. echo "$ac_t""$target" 1>&6
  1164.  
  1165. case "$target" in
  1166.     i686-*-linux*)
  1167.         CFLAGS="-g -mpentiumpro -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
  1168.         #CFLAGS="-g -mpentiumpro -O6 -ffast-math -funroll-loops -fexpensive-optimizations"
  1169.         ;;
  1170.     alpha*-*-linux*)
  1171.         CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
  1172.         ;;
  1173. esac
  1174.  
  1175. case "$target" in
  1176.     *-*-mingw32*)
  1177.         MATHLIB=""
  1178.         INETLIB="-lwsock32"
  1179.         ;;
  1180.     *-*-beos*)
  1181.         MATHLIB=""
  1182.         INETLIB=""
  1183.         ;;
  1184.     *)
  1185.         MATHLIB="-lm"
  1186.         INETLIB=""
  1187.         ;;
  1188. esac
  1189.  
  1190.  
  1191.  
  1192. SDL_VERSION=1.0.1
  1193. # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
  1194. if test "${with_sdl_prefix+set}" = set; then
  1195.   withval="$with_sdl_prefix"
  1196.   sdl_prefix="$withval"
  1197. else
  1198.   sdl_prefix=""
  1199. fi
  1200.  
  1201. # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
  1202. if test "${with_sdl_exec_prefix+set}" = set; then
  1203.   withval="$with_sdl_exec_prefix"
  1204.   sdl_exec_prefix="$withval"
  1205. else
  1206.   sdl_exec_prefix=""
  1207. fi
  1208.  
  1209. # Check whether --enable-sdltest or --disable-sdltest was given.
  1210. if test "${enable_sdltest+set}" = set; then
  1211.   enableval="$enable_sdltest"
  1212.   :
  1213. else
  1214.   enable_sdltest=yes
  1215. fi
  1216.  
  1217.  
  1218.   if test x$sdl_exec_prefix != x ; then
  1219.      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
  1220.      if test x${SDL_CONFIG+set} != xset ; then
  1221.         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
  1222.      fi
  1223.   fi
  1224.   if test x$sdl_prefix != x ; then
  1225.      sdl_args="$sdl_args --prefix=$sdl_prefix"
  1226.      if test x${SDL_CONFIG+set} != xset ; then
  1227.         SDL_CONFIG=$sdl_prefix/bin/sdl-config
  1228.      fi
  1229.   fi
  1230.  
  1231.   # Extract the first word of "sdl-config", so it can be a program name with args.
  1232. set dummy sdl-config; ac_word=$2
  1233. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1234. echo "configure:1235: checking for $ac_word" >&5
  1235. if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
  1236.   echo $ac_n "(cached) $ac_c" 1>&6
  1237. else
  1238.   case "$SDL_CONFIG" in
  1239.   /*)
  1240.   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  1241.   ;;
  1242.   ?:/*)                  
  1243.   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
  1244.   ;;
  1245.   *)
  1246.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  1247.   ac_dummy="$PATH"
  1248.   for ac_dir in $ac_dummy; do
  1249.     test -z "$ac_dir" && ac_dir=.
  1250.     if test -f $ac_dir/$ac_word; then
  1251.       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
  1252.       break
  1253.     fi
  1254.   done
  1255.   IFS="$ac_save_ifs"
  1256.   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  1257.   ;;
  1258. esac
  1259. fi
  1260. SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
  1261. if test -n "$SDL_CONFIG"; then
  1262.   echo "$ac_t""$SDL_CONFIG" 1>&6
  1263. else
  1264.   echo "$ac_t""no" 1>&6
  1265. fi
  1266.  
  1267.   min_sdl_version=$SDL_VERSION
  1268.   echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
  1269. echo "configure:1270: checking for SDL - version >= $min_sdl_version" >&5
  1270.   no_sdl=""
  1271.   if test "$SDL_CONFIG" = "no" ; then
  1272.     no_sdl=yes
  1273.   else
  1274.     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
  1275.     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
  1276.  
  1277.     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
  1278.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1279.     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
  1280.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1281.     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  1282.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1283.     if test "x$enable_sdltest" = "xyes" ; then
  1284.       ac_save_CFLAGS="$CFLAGS"
  1285.       ac_save_LIBS="$LIBS"
  1286.       CFLAGS="$CFLAGS $SDL_CFLAGS"
  1287.       LIBS="$LIBS $SDL_LIBS"
  1288.       rm -f conf.sdltest
  1289.       if test "$cross_compiling" = yes; then
  1290.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  1291. else
  1292.   cat > conftest.$ac_ext <<EOF
  1293. #line 1294 "configure"
  1294. #include "confdefs.h"
  1295.  
  1296. #include <stdio.h>
  1297. #include <stdlib.h>
  1298. #include <string.h>
  1299. #include "SDL.h"
  1300.  
  1301. char*
  1302. my_strdup (char *str)
  1303. {
  1304.   char *new_str;
  1305.  
  1306.   if (str)
  1307.     {
  1308.       new_str = malloc ((strlen (str) + 1) * sizeof(char));
  1309.       strcpy (new_str, str);
  1310.     }
  1311.   else
  1312.     new_str = NULL;
  1313.  
  1314.   return new_str;
  1315. }
  1316.  
  1317. int main ()
  1318. {
  1319.   int major, minor, micro;
  1320.   char *tmp_version;
  1321.  
  1322.   system ("touch conf.sdltest");
  1323.  
  1324.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  1325.   tmp_version = my_strdup("$min_sdl_version");
  1326.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  1327.      printf("%s, bad version string\n", "$min_sdl_version");
  1328.      exit(1);
  1329.    }
  1330.  
  1331.    if (($sdl_major_version > major) ||
  1332.       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  1333.       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  1334.     {
  1335.       return 0;
  1336.     }
  1337.   else
  1338.     {
  1339.       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  1340.       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
  1341.       printf("*** best to upgrade to the required version.\n");
  1342.       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
  1343.       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
  1344.       printf("*** config.cache before re-running configure\n");
  1345.       return 1;
  1346.     }
  1347. }
  1348.  
  1349.  
  1350. EOF
  1351. if { (eval echo configure:1352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1352. then
  1353.   :
  1354. else
  1355.   echo "configure: failed program was:" >&5
  1356.   cat conftest.$ac_ext >&5
  1357.   rm -fr conftest*
  1358.   no_sdl=yes
  1359. fi
  1360. rm -fr conftest*
  1361. fi
  1362.  
  1363.        CFLAGS="$ac_save_CFLAGS"
  1364.        LIBS="$ac_save_LIBS"
  1365.      fi
  1366.   fi
  1367.   if test "x$no_sdl" = x ; then
  1368.      echo "$ac_t""yes" 1>&6
  1369.      :    
  1370.   else
  1371.      echo "$ac_t""no" 1>&6
  1372.      if test "$SDL_CONFIG" = "no" ; then
  1373.        echo "*** The sdl-config script installed by SDL could not be found"
  1374.        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  1375.        echo "*** your path, or set the SDL_CONFIG environment variable to the"
  1376.        echo "*** full path to sdl-config."
  1377.      else
  1378.        if test -f conf.sdltest ; then
  1379.         :
  1380.        else
  1381.           echo "*** Could not run SDL test program, checking why..."
  1382.           CFLAGS="$CFLAGS $SDL_CFLAGS"
  1383.           LIBS="$LIBS $SDL_LIBS"
  1384.           cat > conftest.$ac_ext <<EOF
  1385. #line 1386 "configure"
  1386. #include "confdefs.h"
  1387.  
  1388. #include <stdio.h>
  1389. #include "SDL.h"
  1390.  
  1391. int main() {
  1392.  return 0;
  1393. ; return 0; }
  1394. EOF
  1395. if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1396.   rm -rf conftest*
  1397.    echo "*** The test program compiled, but did not run. This usually means"
  1398.           echo "*** that the run-time linker is not finding SDL or finding the wrong"
  1399.           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  1400.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  1401.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  1402.           echo "*** is required on your system"
  1403.           echo "***"
  1404.           echo "*** If you have an old version installed, it is best to remove it, although"
  1405.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  1406. else
  1407.   echo "configure: failed program was:" >&5
  1408.   cat conftest.$ac_ext >&5
  1409.   rm -rf conftest*
  1410.    echo "*** The test program failed to compile or link. See the file config.log for the"
  1411.           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  1412.           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  1413.           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
  1414. fi
  1415. rm -f conftest*
  1416.           CFLAGS="$ac_save_CFLAGS"
  1417.           LIBS="$ac_save_LIBS"
  1418.        fi
  1419.      fi
  1420.      SDL_CFLAGS=""
  1421.      SDL_LIBS=""
  1422.      { echo "configure: error: *** SDL version $SDL_VERSION not found!" 1>&2; exit 1; }
  1423.  
  1424.   fi
  1425.  
  1426.  
  1427.   rm -f conf.sdltest
  1428.  
  1429. CFLAGS="$CFLAGS $SDL_CFLAGS -DSDL"
  1430. LIBS="$LIBS $SDL_LIBS"
  1431.  
  1432. case "$target" in
  1433.     *-*-mingw32*)
  1434.         cp ico_o ico.o
  1435.         ICONOBJ="ico.o"
  1436.         ;;
  1437.     *)
  1438.         ICONOBJ=""
  1439.         ;;
  1440. esac
  1441.  
  1442.  
  1443. # Check whether --enable-asm or --disable-asm was given.
  1444. if test "${enable_asm+set}" = set; then
  1445.   enableval="$enable_asm"
  1446.   :
  1447. else
  1448.   enable_asm=no
  1449. fi
  1450.  
  1451. if test x$enable_asm = xyes; then
  1452.     CFLAGS="$CFLAGS -DUSE_ASM"
  1453. fi
  1454.  
  1455. CFLAGS="$CFLAGS -DELF"
  1456.  
  1457. # Finally create all the generated files
  1458. trap '' 1 2 15
  1459. cat > confcache <<\EOF
  1460. # This file is a shell script that caches the results of configure
  1461. # tests run on this system so they can be shared between configure
  1462. # scripts and configure runs.  It is not useful on other systems.
  1463. # If it contains results you don't want to keep, you may remove or edit it.
  1464. #
  1465. # By default, configure uses ./config.cache as the cache file,
  1466. # creating it if it does not exist already.  You can give configure
  1467. # the --cache-file=FILE option to use a different cache file; that is
  1468. # what configure does when it calls configure scripts in
  1469. # subdirectories, so they share the cache.
  1470. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1471. # config.status only pays attention to the cache file if you give it the
  1472. # --recheck option to rerun configure.
  1473. #
  1474. EOF
  1475. # The following way of writing the cache mishandles newlines in values,
  1476. # but we know of no workaround that is simple, portable, and efficient.
  1477. # So, don't put newlines in cache variables' values.
  1478. # Ultrix sh set writes to stderr and can't be redirected directly,
  1479. # and sets the high bit in the cache file unless we assign to the vars.
  1480. (set) 2>&1 |
  1481.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1482.   *ac_space=\ *)
  1483.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1484.     # turns \\\\ into \\, and sed turns \\ into \).
  1485.     sed -n \
  1486.       -e "s/'/'\\\\''/g" \
  1487.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1488.     ;;
  1489.   *)
  1490.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1491.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1492.     ;;
  1493.   esac >> confcache
  1494. if cmp -s $cache_file confcache; then
  1495.   :
  1496. else
  1497.   if test -w $cache_file; then
  1498.     echo "updating cache $cache_file"
  1499.     cat confcache > $cache_file
  1500.   else
  1501.     echo "not updating unwritable cache $cache_file"
  1502.   fi
  1503. fi
  1504. rm -f confcache
  1505.  
  1506. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1507.  
  1508. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1509. # Let make expand exec_prefix.
  1510. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1511.  
  1512. # Any assignment to VPATH causes Sun make to only execute
  1513. # the first set of double-colon rules, so remove it if not needed.
  1514. # If there is a colon in the path, we need to keep it.
  1515. if test "x$srcdir" = x.; then
  1516.   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
  1517. fi
  1518.  
  1519. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1520.  
  1521. # Transform confdefs.h into DEFS.
  1522. # Protect against shell expansion while executing Makefile rules.
  1523. # Protect against Makefile macro expansion.
  1524. cat > conftest.defs <<\EOF
  1525. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  1526. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1527. s%\[%\\&%g
  1528. s%\]%\\&%g
  1529. s%\$%$$%g
  1530. EOF
  1531. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1532. rm -f conftest.defs
  1533.  
  1534.  
  1535. # Without the "./", some shells look in PATH for config.status.
  1536. : ${CONFIG_STATUS=./config.status}
  1537.  
  1538. echo creating $CONFIG_STATUS
  1539. rm -f $CONFIG_STATUS
  1540. cat > $CONFIG_STATUS <<EOF
  1541. #! /bin/sh
  1542. # Generated automatically by configure.
  1543. # Run this file to recreate the current configuration.
  1544. # This directory was configured as follows,
  1545. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1546. #
  1547. # $0 $ac_configure_args
  1548. #
  1549. # Compiler output produced by configure, useful for debugging
  1550. # configure, is in ./config.log if it exists.
  1551.  
  1552. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1553. for ac_option
  1554. do
  1555.   case "\$ac_option" in
  1556.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1557.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1558.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1559.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1560.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1561.     exit 0 ;;
  1562.   -help | --help | --hel | --he | --h)
  1563.     echo "\$ac_cs_usage"; exit 0 ;;
  1564.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1565.   esac
  1566. done
  1567.  
  1568. ac_given_srcdir=$srcdir
  1569. ac_given_INSTALL="$INSTALL"
  1570.  
  1571. trap 'rm -fr `echo "
  1572. Makefile
  1573. " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1574. EOF
  1575. cat >> $CONFIG_STATUS <<EOF
  1576.  
  1577. # Protect against being on the right side of a sed subst in config.status.
  1578. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1579.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1580. $ac_vpsub
  1581. $extrasub
  1582. s%@SHELL@%$SHELL%g
  1583. s%@CFLAGS@%$CFLAGS%g
  1584. s%@CPPFLAGS@%$CPPFLAGS%g
  1585. s%@CXXFLAGS@%$CXXFLAGS%g
  1586. s%@FFLAGS@%$FFLAGS%g
  1587. s%@DEFS@%$DEFS%g
  1588. s%@LDFLAGS@%$LDFLAGS%g
  1589. s%@LIBS@%$LIBS%g
  1590. s%@exec_prefix@%$exec_prefix%g
  1591. s%@prefix@%$prefix%g
  1592. s%@program_transform_name@%$program_transform_name%g
  1593. s%@bindir@%$bindir%g
  1594. s%@sbindir@%$sbindir%g
  1595. s%@libexecdir@%$libexecdir%g
  1596. s%@datadir@%$datadir%g
  1597. s%@sysconfdir@%$sysconfdir%g
  1598. s%@sharedstatedir@%$sharedstatedir%g
  1599. s%@localstatedir@%$localstatedir%g
  1600. s%@libdir@%$libdir%g
  1601. s%@includedir@%$includedir%g
  1602. s%@oldincludedir@%$oldincludedir%g
  1603. s%@infodir@%$infodir%g
  1604. s%@mandir@%$mandir%g
  1605. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1606. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1607. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1608. s%@PACKAGE@%$PACKAGE%g
  1609. s%@VERSION@%$VERSION%g
  1610. s%@ACLOCAL@%$ACLOCAL%g
  1611. s%@AUTOCONF@%$AUTOCONF%g
  1612. s%@AUTOMAKE@%$AUTOMAKE%g
  1613. s%@AUTOHEADER@%$AUTOHEADER%g
  1614. s%@MAKEINFO@%$MAKEINFO%g
  1615. s%@SET_MAKE@%$SET_MAKE%g
  1616. s%@host@%$host%g
  1617. s%@host_alias@%$host_alias%g
  1618. s%@host_cpu@%$host_cpu%g
  1619. s%@host_vendor@%$host_vendor%g
  1620. s%@host_os@%$host_os%g
  1621. s%@target@%$target%g
  1622. s%@target_alias@%$target_alias%g
  1623. s%@target_cpu@%$target_cpu%g
  1624. s%@target_vendor@%$target_vendor%g
  1625. s%@target_os@%$target_os%g
  1626. s%@CC@%$CC%g
  1627. s%@MATHLIB@%$MATHLIB%g
  1628. s%@INETLIB@%$INETLIB%g
  1629. s%@SDL_CONFIG@%$SDL_CONFIG%g
  1630. s%@SDL_CFLAGS@%$SDL_CFLAGS%g
  1631. s%@SDL_LIBS@%$SDL_LIBS%g
  1632. s%@ICONOBJ@%$ICONOBJ%g
  1633.  
  1634. CEOF
  1635. EOF
  1636.  
  1637. cat >> $CONFIG_STATUS <<\EOF
  1638.  
  1639. # Split the substitutions into bite-sized pieces for seds with
  1640. # small command number limits, like on Digital OSF/1 and HP-UX.
  1641. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1642. ac_file=1 # Number of current file.
  1643. ac_beg=1 # First line for current file.
  1644. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1645. ac_more_lines=:
  1646. ac_sed_cmds=""
  1647. while $ac_more_lines; do
  1648.   if test $ac_beg -gt 1; then
  1649.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1650.   else
  1651.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1652.   fi
  1653.   if test ! -s conftest.s$ac_file; then
  1654.     ac_more_lines=false
  1655.     rm -f conftest.s$ac_file
  1656.   else
  1657.     if test -z "$ac_sed_cmds"; then
  1658.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1659.     else
  1660.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1661.     fi
  1662.     ac_file=`expr $ac_file + 1`
  1663.     ac_beg=$ac_end
  1664.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1665.   fi
  1666. done
  1667. if test -z "$ac_sed_cmds"; then
  1668.   ac_sed_cmds=cat
  1669. fi
  1670. EOF
  1671.  
  1672. cat >> $CONFIG_STATUS <<EOF
  1673.  
  1674. CONFIG_FILES=\${CONFIG_FILES-"Makefile
  1675. "}
  1676. EOF
  1677. cat >> $CONFIG_STATUS <<\EOF
  1678. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1679.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1680.   case "$ac_file" in
  1681.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1682.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1683.   *) ac_file_in="${ac_file}.in" ;;
  1684.   esac
  1685.  
  1686.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1687.  
  1688.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1689.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1690.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1691.     # The file is in a subdirectory.
  1692.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1693.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1694.     # A "../" for each directory in $ac_dir_suffix.
  1695.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1696.   else
  1697.     ac_dir_suffix= ac_dots=
  1698.   fi
  1699.  
  1700.   case "$ac_given_srcdir" in
  1701.   .)  srcdir=.
  1702.       if test -z "$ac_dots"; then top_srcdir=.
  1703.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1704.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1705.   *) # Relative path.
  1706.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1707.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1708.   esac
  1709.  
  1710.   case "$ac_given_INSTALL" in
  1711.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1712.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1713.   esac
  1714.  
  1715.   echo creating "$ac_file"
  1716.   rm -f "$ac_file"
  1717.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1718.   case "$ac_file" in
  1719.   *Makefile*) ac_comsub="1i\\
  1720. # $configure_input" ;;
  1721.   *) ac_comsub= ;;
  1722.   esac
  1723.  
  1724.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1725.   sed -e "$ac_comsub
  1726. s%@configure_input@%$configure_input%g
  1727. s%@srcdir@%$srcdir%g
  1728. s%@top_srcdir@%$top_srcdir%g
  1729. s%@INSTALL@%$INSTALL%g
  1730. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1731. fi; done
  1732. rm -f conftest.s*
  1733.  
  1734. EOF
  1735. cat >> $CONFIG_STATUS <<EOF
  1736.  
  1737. EOF
  1738. cat >> $CONFIG_STATUS <<\EOF
  1739.  
  1740. exit 0
  1741. EOF
  1742. chmod +x $CONFIG_STATUS
  1743. rm -fr confdefs* $ac_clean_files
  1744. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1745.  
  1746.